#hash #hmac #sha2 #sha256 #hkdf

no-std hmac-sha256

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

16 releases (8 stable)

1.1.6 Nov 29, 2022
1.1.4 Jul 1, 2022
1.1.2 Feb 6, 2022
1.1.1 Dec 9, 2021
0.1.1 Apr 10, 2019

#111 in Cryptography

Download history 12507/week @ 2022-12-09 11862/week @ 2022-12-16 8557/week @ 2022-12-23 10390/week @ 2022-12-30 12424/week @ 2023-01-06 13275/week @ 2023-01-13 12701/week @ 2023-01-20 14398/week @ 2023-01-27 15763/week @ 2023-02-03 16375/week @ 2023-02-10 16187/week @ 2023-02-17 12015/week @ 2023-02-24 13820/week @ 2023-03-03 14041/week @ 2023-03-10 15051/week @ 2023-03-17 15403/week @ 2023-03-24

60,730 downloads per month
Used in 78 crates (32 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