diff --git a/Ed25519/Ed25519.xml b/Ed25519/Ed25519.xml index 31c63d3..68eb235 100644 --- a/Ed25519/Ed25519.xml +++ b/Ed25519/Ed25519.xml @@ -9,7 +9,7 @@ Extracts the public key out of the given private key. The private key must be valid, i.e. must consist of 32 bytes. The private key. - The corresponding public key. + The corresponding public key. Returns an empty ReadOnlySpan, when the private key's length is incorrect. @@ -18,6 +18,13 @@ The private key. The corresponding public key. + + + Extracts the public key out of the given private key. The private key must be valid, i.e. must consist of 32 bytes. + + The private key. + The corresponding public key. Returns null, when the private key's length is incorrect. + Writes a given key to a file. @@ -25,6 +32,13 @@ The chosen key The desired file + + + Writes a given key to a file. + + The chosen key + The desired file + Decrypts an encrypted private key. @@ -33,6 +47,14 @@ The matching password. The decrypted private key. + + + Decrypts an encrypted private key. + + The encrypted private key. + The matching password. + The decrypted private key. + Generates a random private key. @@ -40,12 +62,26 @@ An optional password to encrypt the key. The private key. + + + Generates a random private key. + + An optional password to encrypt the key. + The private key. + Loads a key (public or private key) from a file. The entire path to the corresponding file. - The desired key. + The desired key. Returns an empty ReadOnlySpan, when the file does not exist. + + + + Loads a key (public or private key) from a file. + + The entire path to the corresponding file. + The desired key. Returns null, when the file does not exist. @@ -56,6 +92,15 @@ The corresponding public key. The derived signature. It's length is always 64 bytes! + + + Signs a message with the given private and public keys. + + The message to sign. + The desired private key. + The corresponding public key. + The derived signature. It's length is 64 bytes. + Validates a given signature by means of the given public key. @@ -65,5 +110,14 @@ The used public key. Returns true when the combination of signature + message is valid. + + + Validates a given signature by means of the given public key. + + The signature to validate. + The corresponding message. + The used public key. + Returns true when the combination of signature + message is valid. +