Expand description
Caller-supplied randomness traits.
dcrypt intentionally provides no operating-system RNG. Applications choose and own their entropy source and pass it into every randomized operation.
Structs§
- ChaCha20
Rng - A deterministic ChaCha20 generator seeded entirely by its caller.
- Error
- An error returned by a fallible caller-provided randomness source.
Traits§
- Crypto
Rng - Marker for generators suitable for cryptographic use.
- RngCore
- The byte-oriented randomness interface used by dcrypt.
Functions§
- try_
fill_ bytes_ zeroing_ on_ error - Fill a destination and clear it completely if the RNG reports failure.