#hmac

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
Download history 11184/week @ 2020-08-02 9966/week @ 2020-08-09 10603/week @ 2020-08-16 9960/week @ 2020-08-23 8867/week @ 2020-08-30 10558/week @ 2020-09-06 11173/week @ 2020-09-13 12125/week @ 2020-09-20 10105/week @ 2020-09-27 9817/week @ 2020-10-04 10874/week @ 2020-10-11 12944/week @ 2020-10-18 15645/week @ 2020-10-25 12360/week @ 2020-11-01 11754/week @ 2020-11-08 13010/week @ 2020-11-15

43,227 downloads per month
Used in 185 crates (2 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

~290KB