Type Definition ChaCha20Poly1305
hacl_star::chacha20poly1305
type ChaCha20Poly1305<'a> = And<&'a Key, &'a Nonce>;
impl<'a> ChaCha20Poly1305<'a>
pub fn encrypt(self, aad: &[u8], m: &mut [u8], mac: &mut [u8; 16])
pub fn decrypt(self, aad: &[u8], c: &mut [u8], mac: &[u8; 16]) -> bool