mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 03:27:31 +00:00
EC: fix PKCS8 Ed25519 private keys
This commit is contained in:
parent
fd8389f365
commit
0c8b6961e3
@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user