no-std hmac-sha256

A small, self-contained SHA256 and HMAC-SHA256 implementation

17 releases (9 stable)

1.1.7 Jun 14, 2023
1.1.6 Nov 29, 2022
1.1.5 Oct 25, 2022
1.1.4 Jul 1, 2022
0.1.1 Apr 10, 2019

#47 in Algorithms

Download history 53617/week @ 2024-06-22 41220/week @ 2024-06-29 33860/week @ 2024-07-06 28561/week @ 2024-07-13 30123/week @ 2024-07-20 30400/week @ 2024-07-27 30499/week @ 2024-08-03 33077/week @ 2024-08-10 33904/week @ 2024-08-17 33258/week @ 2024-08-24 34430/week @ 2024-08-31 36294/week @ 2024-09-07 36227/week @ 2024-09-14 34858/week @ 2024-09-21 36921/week @ 2024-09-28 27444/week @ 2024-10-05

141,683 downloads per month
Used in 148 crates (48 directly)

ISC license

19KB
493 lines

rust-hmac-sha256

A small, self-contained SHA256, HMAC-SHA256, and HKDF-SHA256 implementation in Rust.

Optional features:

  • traits: enable support for the Digest trait from the digest crate.
  • opt_size: enable size optimizations. Based on benchmarks, the .text section size is reduced by 75%, at the cost of approximately 16% performance.

lib.rs:

A small, self-contained SHA256 and HMAC-SHA256 implementation (C) Frank Denis <fdenis [at] fastly [dot] com>, public domain

Dependencies

~105KB