#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

#61 in Cryptography

Download history 26923/week @ 2024-03-14 25471/week @ 2024-03-21 25607/week @ 2024-03-28 31318/week @ 2024-04-04 28650/week @ 2024-04-11 35206/week @ 2024-04-18 35423/week @ 2024-04-25 39154/week @ 2024-05-02 37238/week @ 2024-05-09 53393/week @ 2024-05-16 50319/week @ 2024-05-23 52489/week @ 2024-05-30 51314/week @ 2024-06-06 54338/week @ 2024-06-13 49582/week @ 2024-06-20 42132/week @ 2024-06-27

208,943 downloads per month
Used in 126 crates (44 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

~97KB