fn calculate_mac_with_aad(
iv: &[u8; 16],
data: &[u8],
associated_data: &[u8],
mac_key: &[u8; 32],
) -> [u8; 32]Expand description
Computes the HMAC-SHA256 MAC over MAC_DOMAIN_SEPARATOR || iv || len(data) || data || len(associated_data) || associated_data, where lengths are encoded as 8-byte big-endian u64s.