Skip to main content

decrypt

Function decrypt 

Source
pub fn decrypt(
    encrypted: &[u8],
    key: &EncryptionKey,
) -> Result<Vec<u8>, CryptoError>
Expand description

Decrypt with a provided key (non-CHK)

Input: [12-byte nonce][ciphertext][auth tag]