macs
macs
Message Authentication Codes (MAC)
Mojo implementations of message authentication codes — keyed algorithms that produce a fixed-size tag authenticating a message’s integrity and origin.
Implemented algorithms
| Algorithm | Directory | Specification | Description |
|---|---|---|---|
| CMAC (OMAC1) | cmac/ |
NIST SP 800-38B, RFC 4493 | Cipher-based MAC built from a block cipher (e.g. AES-CMAC) |
| HMAC | hmac/ |
FIPS 198-1, RFC 2104 | Hash-based MAC built from a cryptographic hash function (e.g. HMAC-SHA-256) |
References
- Wikipedia — One-key MAC (CMAC / OMAC)
- RustCrypto — MACs
- NIST SP 800-38B — The CMAC Mode for Authentication
- RFC 4493 — The AES-CMAC Algorithm
- FIPS 198-1 — The Keyed-Hash Message Authentication Code (HMAC)
- RFC 2104 § 3 — Keys
Mojo package 🡭