mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 03:42:40 +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,
|
null,
|
||||||
$password,
|
$password,
|
||||||
$curve instanceof Ed25519 ? 'id-Ed25519' : 'id-Ed448',
|
$curve instanceof Ed25519 ? 'id-Ed25519' : 'id-Ed448',
|
||||||
$curve->encodePoint($publicKey)
|
"\0" . $curve->encodePoint($publicKey)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user