#sha-256 #hmac #hash #hkdf #sha-2 #size-optimization

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

#182 in Cryptography

Download history 30439/week @ 2024-07-21 30358/week @ 2024-07-28 30702/week @ 2024-08-04 33231/week @ 2024-08-11 33828/week @ 2024-08-18 33455/week @ 2024-08-25 34361/week @ 2024-09-01 36508/week @ 2024-09-08 35871/week @ 2024-09-15 34925/week @ 2024-09-22 36766/week @ 2024-09-29 32479/week @ 2024-10-06 37756/week @ 2024-10-13 64899/week @ 2024-10-20 68183/week @ 2024-10-27 77827/week @ 2024-11-03

249,962 downloads per month
Used in 151 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

~110KB