mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-11 16:49:42 +01:00
add unit test for phpseclib created PKCS8 Ed25519 private keys
This commit is contained in:
parent
320189d94e
commit
fd8389f365
@ -262,6 +262,11 @@ MFICAQEwBwYDK2VwBQAEIgQg1O5y2/kTWErVttjx92n4rTr+fCjL8dT74Jeoj0R1
|
||||
WEKBIBm/RAlphM3+hUG6wWfcO5bIUIaqMLa2ywxcOK1wMWbh
|
||||
-----END PRIVATE KEY-----';
|
||||
$this->assertSame($expected, $key->toString('PKCS8'));
|
||||
|
||||
$expected = EC::createKey('Ed25519')->toString('PKCS8');
|
||||
$key = PublicKeyLoader::load($expected);
|
||||
$this->assertSame('Ed25519', $key->getCurve());
|
||||
$this->assertSame('Ed25519', $key->getPublicKey()->getCurve());
|
||||
}
|
||||
|
||||
public function testPuTTYnistp256()
|
||||
|
Loading…
Reference in New Issue
Block a user