diff --git a/tests/Unit/Crypt/EC/KeyTest.php b/tests/Unit/Crypt/EC/KeyTest.php index fc71ae9e1..21d0eb3a0 100644 --- a/tests/Unit/Crypt/EC/KeyTest.php +++ b/tests/Unit/Crypt/EC/KeyTest.php @@ -262,6 +262,11 @@ public function testEd25519PrivateKey() 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()