Module dark_crystal_secret_sharing_rust::encrypt
source · [−]Expand description
Basic authenticated encryption using xsalsa20poly1305
Structs
XSalsa20Poly1305 (a.k.a. NaCl crypto_secretbox
) authenticated
encryption cipher.
Functions
Decrypt the given ciphertext with nonce using a given key
Encrypt a given plaintext with a given key, and return the nonce used together with the ciphertext
Generate an encryption key