#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

#897 in Development tools

Download history 131144/week @ 2024-08-08 108578/week @ 2024-08-15 113475/week @ 2024-08-22 111750/week @ 2024-08-29 117490/week @ 2024-09-05 110096/week @ 2024-09-12 260298/week @ 2024-09-19 269910/week @ 2024-09-26 671432/week @ 2024-10-03 615859/week @ 2024-10-10 619466/week @ 2024-10-17 172882/week @ 2024-10-24 135383/week @ 2024-10-31 122465/week @ 2024-11-07 124438/week @ 2024-11-14 101034/week @ 2024-11-21

509,111 downloads per month
Used in 468 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

~420KB