EC: fix PKCS8 Ed25519 private keys

This commit is contained in:
terrafrost 2019-12-17 07:56:16 -06:00
parent fd8389f365
commit 0c8b6961e3

View File

@ -223,7 +223,7 @@ abstract class PKCS8 extends Progenitor
null,
$password,
$curve instanceof Ed25519 ? 'id-Ed25519' : 'id-Ed448',
$curve->encodePoint($publicKey)
"\0" . $curve->encodePoint($publicKey)
);
}