Function skymd::chacha20poly1305::decrypt[][src]

pub fn decrypt(
    key: &[u8; 32],
    nonce: &[u8; 24],
    associated_data: &[u8],
    plaintext: &mut [u8],
    ciphertext: &[u8],
    tag: &[u8; 16]
) -> Result<(), ()>