require PKCS#8 v2 format for better security
Notably, this format requires that the public key also be present. This format is what ed25519_new_keypair/1 generates, and it is strongly encouraged for higher security.
This commit is contained in:
@@ -644,9 +644,9 @@ encoding_bytes(utf8, Cs, Bs) :-
|
||||
The public key is represented as a list of characters.
|
||||
|
||||
- ed25519_sign(+Key, +Data, -Signature, +Options)
|
||||
Key and Data must be lists of characters. Key is a private key or
|
||||
key pair in PKCS#8 (v1 or v2) DER format. Sign Data with Key,
|
||||
yielding Signature as a list of hexadecimal characters.
|
||||
Key and Data must be lists of characters. Key is a key pair in
|
||||
PKCS#8 v2 format as generated by ed25519_new_keypair/1. Sign Data
|
||||
with Key, yielding Signature as a list of hexadecimal characters.
|
||||
|
||||
- ed25519_verify(+Key, +Data, +Signature, +Options)
|
||||
Key and Data must be lists of characters. Key is a public key.
|
||||
|
||||
Reference in New Issue
Block a user