Skip to main content

decrypt

Function decrypt 

Source
pub fn decrypt(
    key: &[u8; 32],
    nonce: &[u8; 12],
    aad: &[u8],
    ciphertext: &[u8],
) -> Result<Vec<u8>, Error>
Expand description

Verifies and decrypts ciphertext || tag.