#crypto #hash #hmac #sha2 #sha512

no-std hmac-sha512

A small, self-contained SHA512, HMAC-SHA512, SHA384 and HMAC-SHA384 implementation

15 releases (7 stable)

1.1.5 Jun 14, 2023
1.1.4 Nov 29, 2022
1.1.3 Oct 25, 2022
1.1.2 Jul 1, 2022
0.1.6 Jun 23, 2020

#1 in #sha512

Download history 28489/week @ 2023-06-08 28822/week @ 2023-06-15 33860/week @ 2023-06-22 32978/week @ 2023-06-29 38977/week @ 2023-07-06 38862/week @ 2023-07-13 41138/week @ 2023-07-20 40231/week @ 2023-07-27 41433/week @ 2023-08-03 42024/week @ 2023-08-10 41077/week @ 2023-08-17 39185/week @ 2023-08-24 29377/week @ 2023-08-31 39170/week @ 2023-09-07 42524/week @ 2023-09-14 38295/week @ 2023-09-21

157,496 downloads per month
Used in 33 crates (13 directly)

ISC license

27KB
710 lines

rust-hmac-sha512

A small, self-contained SHA512 and HMAC-SHA512 implementation in Rust.

Also includes SHA384 and HMAC-SHA384, that are just truncated versions of SHA512 with a different IV.

Optional features:

  • traits: enable support for the Digest trait from the digest crate.
  • sha384: includes support for SHA384 and HMAC-SHA384.
  • 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 SHA512 and HMAC-SHA512 implementation (C) Frank Denis <fdenis [at] fastly [dot] com>, public domain

Dependencies

~91KB