#hmac #hash #mac

no-std hmac

Generic implementation of Hash-based Message Authentication Code (HMAC)

17 releases

Uses new Rust 2024

0.13.0-pre.5 Mar 7, 2025
0.13.0-pre.4 Jul 26, 2024
0.13.0-pre.3 Feb 1, 2024
0.12.1 Feb 17, 2022
0.0.1 Oct 21, 2016

#1565 in Cryptography

Download history 1902003/week @ 2025-02-01 1998631/week @ 2025-02-08 2032250/week @ 2025-02-15 2133697/week @ 2025-02-22 2123930/week @ 2025-03-01 2297860/week @ 2025-03-08 2709288/week @ 2025-03-15 3026966/week @ 2025-03-22 2403963/week @ 2025-03-29 2532761/week @ 2025-04-05 2287584/week @ 2025-04-12 2270243/week @ 2025-04-19 2111384/week @ 2025-04-26 2145726/week @ 2025-05-03 2236999/week @ 2025-05-10 1919622/week @ 2025-05-17

8,790,274 downloads per month
Used in 12,099 crates (1,112 directly)

MIT/Apache

45KB
258 lines

RustCrypto: HMAC

crate Docs Build Status Apache2/MIT licensed Rust Version Project Chat

Pure Rust implementation of the Hash-based Message Authentication Code (HMAC).

Documentation

Minimum Supported Rust Version

Rust 1.81 or higher.

Minimum supported Rust version can be changed in the future, but it will be done with a minor version bump.

SemVer Policy

  • All on-by-default features of this library are covered by SemVer
  • MSRV is considered exempt from SemVer as noted above

License

Licensed under either of:

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~630KB
~17K SLoC