mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 11:37:33 +00:00
PKCS8: Ed25519 / Ed448 pub keys couldn't be saved as DER
This commit is contained in:
parent
a3ef82e281
commit
41c78a7d36
@ -178,7 +178,8 @@ abstract class PKCS8 extends Progenitor
|
||||
return self::wrapPublicKey(
|
||||
$curve->encodePoint($publicKey),
|
||||
null,
|
||||
$curve instanceof Ed25519 ? 'id-Ed25519' : 'id-Ed448'
|
||||
$curve instanceof Ed25519 ? 'id-Ed25519' : 'id-Ed448',
|
||||
$options
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user