#hmac #drbg #pure #no-std

hmac-drbg

Pure Rust implementation of Hmac DRBG

5 unstable releases

0.3.0 Jun 15, 2020
0.2.0 Sep 26, 2019
0.1.2 Nov 8, 2017
0.1.1 Nov 8, 2017
0.1.0 Nov 7, 2017

#1018 in Development tools

Download history 132840/week @ 2024-10-28 139510/week @ 2024-11-04 120274/week @ 2024-11-11 121657/week @ 2024-11-18 117612/week @ 2024-11-25 134572/week @ 2024-12-02 131619/week @ 2024-12-09 108452/week @ 2024-12-16 55903/week @ 2024-12-23 69872/week @ 2024-12-30 127804/week @ 2025-01-06 157847/week @ 2025-01-13 140061/week @ 2025-01-20 131825/week @ 2025-01-27 160126/week @ 2025-02-03 150598/week @ 2025-02-10

593,671 downloads per month
Used in 616 crates (7 directly)

Apache-2.0

16KB
101 lines

Hmac DRBG

Build Status License Cargo

Pure Rust Hmac DRBG implementation with support of no_std.

Usage

Add hmac-drbg = "0.1" dependency.

let mut drbg = HmacDRBG::<Sha256>::new(
    "totally random0123456789".as_bytes(),
    "secret nonce".as_bytes(),
    "my drbg".as_bytes());
assert_eq!(drbg.generate::<U32>(None).as_slice(), read_hex("018ec5f8e08c41e5ac974eb129ac297c5388ee1864324fa13d9b15cf98d9a157").unwrap().as_slice());

Dependencies

~415KB