Skip to main content

decrypt

Function decrypt 

Source
pub fn decrypt(key: &[u8; 32], ciphertext: &[u8]) -> CryptoResult<Vec<u8>>
Expand description

Decrypt data encrypted with XChaCha20-Poly1305

Input: nonce (24 bytes) || ciphertext || tag (16 bytes)