PKCS8: Ed25519 / Ed448 pub keys couldn't be saved as DER

This commit is contained in:
terrafrost 2024-09-25 23:13:33 -05:00
parent a3ef82e281
commit 41c78a7d36

View File

@ -178,7 +178,8 @@ abstract class PKCS8 extends Progenitor
return self::wrapPublicKey( return self::wrapPublicKey(
$curve->encodePoint($publicKey), $curve->encodePoint($publicKey),
null, null,
$curve instanceof Ed25519 ? 'id-Ed25519' : 'id-Ed448' $curve instanceof Ed25519 ? 'id-Ed25519' : 'id-Ed448',
$options
); );
} }