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

Mojo package 🡭

macs

Modules