Skip to main content

gmac_tag

Function gmac_tag 

Source
fn gmac_tag(ek: &[u8], iv: &[u8; 12], aad: &[u8]) -> Result<Vec<u8>, String>
Expand description

Computes the 12-octet GMAC tag (AES-GCM with empty plaintext) over the additional authenticated data aad, with key ek (16 or 32 octets) and initialization vector iv. The full 16-octet tag is truncated to 96 bits (most significant octets) per NIST SP 800-38D / IEC 62056-5-3.