pub struct SeededEntropy { /* private fields */ }Expand description
An Entropy that expands a 32-byte seed with SHA-256 in counter mode (the construction of
NIST SP 800-90A’s Hash_df): the same seed gives the same stream, and the stream reveals
nothing about the seed.
The host must draw the seed from a cryptographic source (crypto.getRandomValues,
getrandom). A fixed seed is for tests: a file written with one has predictable keys.
Added in 0.7.0.
Implementations§
Trait Implementations§
Source§impl Clone for SeededEntropy
impl Clone for SeededEntropy
Source§impl Debug for SeededEntropy
impl Debug for SeededEntropy
Source§impl Entropy for SeededEntropy
impl Entropy for SeededEntropy
impl Eq for SeededEntropy
Source§impl PartialEq for SeededEntropy
impl PartialEq for SeededEntropy
impl StructuralPartialEq for SeededEntropy
Auto Trait Implementations§
impl Forget for SeededEntropy
impl Freeze for SeededEntropy
impl Move for SeededEntropy
impl RefUnwindSafe for SeededEntropy
impl Send for SeededEntropy
impl Sync for SeededEntropy
impl Unpin for SeededEntropy
impl UnsafeUnpin for SeededEntropy
impl UnwindSafe for SeededEntropy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more