#hash #hmac #sha2 #sha256 #hkdf

no-std hmac-sha256

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

14 releases (6 stable)

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

#75 in Cryptography

Download history 6894/week @ 2022-06-07 7447/week @ 2022-06-14 7182/week @ 2022-06-21 8196/week @ 2022-06-28 11050/week @ 2022-07-05 13227/week @ 2022-07-12 14331/week @ 2022-07-19 13712/week @ 2022-07-26 13371/week @ 2022-08-02 13928/week @ 2022-08-09 14133/week @ 2022-08-16 15725/week @ 2022-08-23 14043/week @ 2022-08-30 12859/week @ 2022-09-06 17269/week @ 2022-09-13 15156/week @ 2022-09-20

62,537 downloads per month
Used in 32 crates (25 directly)

ISC license

18KB
489 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