Skip to main content

decrypt

Function decrypt 

Source
pub fn decrypt(
    key: &VaultKey,
    nonce_bytes: &[u8],
    ciphertext: &[u8],
) -> SafeResult<Vec<u8>>
Expand description

Decrypt with XChaCha20-Poly1305. Authentication failure returns DecryptionFailed.