[−][src]Crate ratchet
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
Re-exports
pub use digest; |
pub use digest::generic_array; |
pub use generic_array::typenum; |
Structs
Ratchet | A HKDF Ratchet which can be used to produce cyptographically secure pseudo random bytes. |