pub struct HmacDRBG<D> where
D: Input + BlockInput + FixedOutput + Default,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>, { /* private fields */ }
Implementations
sourceimpl<D> HmacDRBG<D> where
D: Input + FixedOutput + BlockInput + Reset + Clone + Default,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
impl<D> HmacDRBG<D> where
D: Input + FixedOutput + BlockInput + Reset + Clone + Default,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
pub fn new(entropy: &[u8], nonce: &[u8], pers: &[u8]) -> Self
pub fn count(&self) -> usize
pub fn reseed(&mut self, entropy: &[u8], add: Option<&[u8]>)
pub fn generate<T: ArrayLength<u8>>(
&mut self,
add: Option<&[u8]>
) -> GenericArray<u8, T>
pub fn generate_to_slice(&mut self, result: &mut [u8], add: Option<&[u8]>)
Auto Trait Implementations
impl<D> RefUnwindSafe for HmacDRBG<D> where
<<D as FixedOutput>::OutputSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<D> Send for HmacDRBG<D>
impl<D> Sync for HmacDRBG<D>
impl<D> Unpin for HmacDRBG<D> where
<<D as FixedOutput>::OutputSize as ArrayLength<u8>>::ArrayType: Unpin,
impl<D> UnwindSafe for HmacDRBG<D> where
<<D as FixedOutput>::OutputSize as ArrayLength<u8>>::ArrayType: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more