[][src]Type Definition hacl_star::chacha20poly1305::ChaCha20Poly1305

type ChaCha20Poly1305<'a> = And<&'a Key, &'a Nonce>;

Methods

impl<'a> ChaCha20Poly1305<'a>[src]

pub fn encrypt(self, aad: &[u8], m: &mut [u8], mac: &mut [u8; 16])[src]

pub fn decrypt(self, aad: &[u8], c: &mut [u8], mac: &[u8; 16]) -> bool[src]