#sha-512 #hmac #hash #sha-2 #crypto

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

#198 in Cryptography

Download history 48445/week @ 2024-01-20 62995/week @ 2024-01-27 42280/week @ 2024-02-03 52686/week @ 2024-02-10 50592/week @ 2024-02-17 59273/week @ 2024-02-24 58241/week @ 2024-03-02 52923/week @ 2024-03-09 60306/week @ 2024-03-16 56870/week @ 2024-03-23 61481/week @ 2024-03-30 41845/week @ 2024-04-06 55403/week @ 2024-04-13 66080/week @ 2024-04-20 63682/week @ 2024-04-27 61615/week @ 2024-05-04

253,752 downloads per month
Used in 44 crates (15 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

~96KB