Skip to main content

chacha20poly1305_seal

Function chacha20poly1305_seal 

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

AEAD seal: returns ciphertext ‖ tag[16].