#hmac #digest #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

#1459 in Cryptography

Download history 711523/week @ 2024-12-23 881906/week @ 2024-12-30 1623045/week @ 2025-01-06 1784879/week @ 2025-01-13 1616525/week @ 2025-01-20 1727827/week @ 2025-01-27 1934561/week @ 2025-02-03 1975516/week @ 2025-02-10 2072210/week @ 2025-02-17 2111127/week @ 2025-02-24 2121508/week @ 2025-03-03 2362606/week @ 2025-03-10 2788708/week @ 2025-03-17 2925141/week @ 2025-03-24 2409923/week @ 2025-03-31 2445262/week @ 2025-04-07

10,684,164 downloads per month
Used in 11,680 crates (1,072 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