#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

#243 in Cryptography

Download history 21438/week @ 2024-01-09 22740/week @ 2024-01-16 24627/week @ 2024-01-23 23199/week @ 2024-01-30 21463/week @ 2024-02-06 21636/week @ 2024-02-13 25475/week @ 2024-02-20 26377/week @ 2024-02-27 28581/week @ 2024-03-05 25455/week @ 2024-03-12 27353/week @ 2024-03-19 23454/week @ 2024-03-26 30549/week @ 2024-04-02 28537/week @ 2024-04-09 32924/week @ 2024-04-16 29189/week @ 2024-04-23

124,901 downloads per month
Used in 124 crates (43 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

~94KB