7 releases (4 stable)
1.2.0 | Mar 11, 2020 |
---|---|
1.1.0 | May 12, 2019 |
0.1.2 | May 4, 2019 |
#220 in #secure
13KB
254 lines
Defines the [Ratchet] struct.
A [Ratchet] is a cryptographically secure pseudo random number generator.
use --features serde
to provide serde implementations.
Examples
use ratchet::typenum::consts;
use sha1::Sha1;
use rand_core::RngCore;
let mut ratchet = ratchet::Ratchet::<Sha1, consts::U100, consts::U5,>::default();
let mut bytes = [0; 1024];
ratchet.fill_bytes(&mut bytes,);
Author -- DMorgan
Last Moddified --- 2020-03-11
Dependencies
~0.7–1.1MB
~20K SLoC