#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

#191 in Cryptography

Download history 35034/week @ 2023-12-13 20961/week @ 2023-12-20 17221/week @ 2023-12-27 40127/week @ 2024-01-03 44631/week @ 2024-01-10 50868/week @ 2024-01-17 48655/week @ 2024-01-24 58134/week @ 2024-01-31 46141/week @ 2024-02-07 49470/week @ 2024-02-14 58829/week @ 2024-02-21 55244/week @ 2024-02-28 60145/week @ 2024-03-06 53032/week @ 2024-03-13 60790/week @ 2024-03-20 44168/week @ 2024-03-27

228,196 downloads per month
Used in 47 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

~94KB