#crypto #hash #hmac #sha2 #sha512

no-std hmac-sha512

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

12 releases (4 stable)

1.1.2 Jul 1, 2022
1.1.1 Dec 9, 2021
1.0.0 Nov 5, 2021
0.1.9 Mar 23, 2021
0.1.5 May 1, 2020

#318 in Cryptography

Download history 6960/week @ 2022-06-07 8206/week @ 2022-06-14 7281/week @ 2022-06-21 7566/week @ 2022-06-28 10499/week @ 2022-07-05 13911/week @ 2022-07-12 13898/week @ 2022-07-19 13681/week @ 2022-07-26 13776/week @ 2022-08-02 14400/week @ 2022-08-09 13624/week @ 2022-08-16 15615/week @ 2022-08-23 13897/week @ 2022-08-30 13412/week @ 2022-09-06 17842/week @ 2022-09-13 16762/week @ 2022-09-20

65,061 downloads per month
Used in 17 crates (12 directly)

ISC license

26KB
702 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