#hmac #cryptographic-hashes #sha-512 #sha-2 #hash

no-std hmac-sha512

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

16 releases (8 stable)

1.1.6 Dec 9, 2024
1.1.5 Jun 14, 2023
1.1.4 Nov 29, 2022
1.1.2 Jul 1, 2022
0.1.6 Jun 23, 2020

#262 in Cryptography

Download history 129363/week @ 2024-12-08 144151/week @ 2024-12-15 31300/week @ 2024-12-22 59315/week @ 2024-12-29 147805/week @ 2025-01-05 195774/week @ 2025-01-12 188605/week @ 2025-01-19 230109/week @ 2025-01-26 242198/week @ 2025-02-02 274535/week @ 2025-02-09 178424/week @ 2025-02-16 154674/week @ 2025-02-23 475666/week @ 2025-03-02 408580/week @ 2025-03-09 646681/week @ 2025-03-16 830644/week @ 2025-03-23

2,372,867 downloads per month
Used in 83 crates (19 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

~145KB