use crate::{Error, KEY_LEN, TAG_LEN};
pub fn mac(key: &[u8; KEY_LEN], msg: &[u8], tag: &mut [u8; TAG_LEN]) -> Result<(), Error> {
let msg_len: u32 = msg.len().try_into().map_err(|_| Error::MessageTooLarge)?;
crate::hacl::mac_poly1305::mac(tag, msg, msg_len, key);
Ok(())
}