pub fn decrypt(
ciphertext: &[u8],
key: &EncryptionKey,
nonce: &EncryptionNonce,
) -> Result<Vec<u8>, EncryptionError>Expand description
Decrypt data using ChaCha20-Poly1305.
pub fn decrypt(
ciphertext: &[u8],
key: &EncryptionKey,
nonce: &EncryptionNonce,
) -> Result<Vec<u8>, EncryptionError>Decrypt data using ChaCha20-Poly1305.