Expand description
Message authentication codes (HMAC, CMAC, KMAC, GMAC). Message Authentication Codes (MACs).
This module provides a uniform stateful init / update / sign / verify API across the four MAC families supported by
arcana:
- HMAC (RFC 2104, FIPS 198-1) over SHA-1, SHA-256, SHA-384, SHA-512, SHA3-256, SHA3-384, SHA3-512, RIPEMD-160.
- CMAC (NIST SP 800-38B, RFC 4493) over AES-128, AES-192, AES-256, Triple-DES.
- KMAC (FIPS SP 800-185) — KMAC128 and KMAC256.
- GMAC (NIST SP 800-38D) over AES-128, AES-192, AES-256.
See the ctx::Mac type for the stateful API.
Modules§
- ctx
- Stateful streaming MAC context (init / update / sign / verify).