Skip to main content

chacha20poly1305_open

Function chacha20poly1305_open 

Source
pub fn chacha20poly1305_open(
    key: &[u8; 32],
    nonce: &[u8; 12],
    aad: &[u8],
    sealed: &[u8],
) -> Option<Vec<u8>>
Expand description

AEAD open: verifies the tag (constant-time) and decrypts, or None on tamper/truncation.