Function hacl::hazmat::chacha20_poly1305::encrypt

source ยท
pub fn encrypt(
    key: &Chacha20Key,
    msg_ctxt: &mut [u8],
    iv: Iv,
    aad: &[u8],
) -> Tag
Expand description

Portable 32-bit in-place encrypt.

There are no special hardware requirements to call this function.