pub fn gost_gmac_tag(
key: &[u8],
iv: &[u8; 12],
aad: &[u8],
plaintext: &[u8],
) -> Result<Vec<u8>, CipherError>Expand description
GOST GMAC: Kuznyechik in GCM-like mode (CTR + GHASH).
This is an alternative to CTR+CMAC that provides:
- Encryption: Kuznyechik in CTR mode
- Authentication: GHASH (Galois field multiplication over GF(2^128))
The GHASH function uses Kuznyechik as the underlying block cipher, computing authentication tags over AAD and ciphertext.