mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-11 16:49:42 +01:00
Tests/RSA: add additional assert for MSBLOBs
This commit is contained in:
parent
6470d1c80e
commit
a485e85ba5
@ -440,6 +440,7 @@ Private-MAC: 35134b7434bf828b21404099861d455e660e8740';
|
||||
$plaintext = 'zzz';
|
||||
|
||||
$privKey = PublicKeyLoader::load($key);
|
||||
$this->assertSame($key, $privKey->toString('MSBLOB'));
|
||||
$this->assertInstanceOf(PrivateKey::class, $privKey);
|
||||
$this->assertSame($privKey->getLoadedFormat(), 'MSBLOB');
|
||||
$this->assertGreaterThanOrEqual(1, strlen("$privKey"));
|
||||
|
Loading…
Reference in New Issue
Block a user