#sha-256 #hash #cryptographic-hashes #sha-2 #hmac #hkdf

no-std hmac-sha256

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

18 releases (10 stable)

1.1.8 Dec 9, 2024
1.1.7 Jun 14, 2023
1.1.6 Nov 29, 2022
1.1.4 Jul 1, 2022
0.1.1 Apr 10, 2019

#93 in Cryptography

Download history 100210/week @ 2024-12-06 126073/week @ 2024-12-13 43265/week @ 2024-12-20 42126/week @ 2024-12-27 104860/week @ 2025-01-03 159544/week @ 2025-01-10 160674/week @ 2025-01-17 200095/week @ 2025-01-24 203443/week @ 2025-01-31 230639/week @ 2025-02-07 167323/week @ 2025-02-14 132644/week @ 2025-02-21 352792/week @ 2025-02-28 416164/week @ 2025-03-07 419047/week @ 2025-03-14 991526/week @ 2025-03-21

2,200,873 downloads per month
Used in 192 crates (52 directly)

ISC license

20KB
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

~145KB