ic-mac — message authentication codes
- [
Hmac] — FIPS 198-1, generic over anyDigestinic-hash. - [
CmacAes128] / [CmacAes256] — SP 800-38B CMAC over AES. - [
Poly1305] — re-exported fromic-cipherfor one-time authentication.
All verification goes through [ic_core::ct::verify], so tag comparison
cannot become a timing oracle.
use HmacSha256;
use Mac;
let tag = mac?;
verify?;
assert!;
# Ok::