pub struct HmacDRBG<D>where
D: Update + BlockInput + FixedOutput + Default,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,{ /* private fields */ }
Implementations§
Source§impl<D> HmacDRBG<D>where
D: Update + FixedOutput + BlockInput + Reset + Clone + Default,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
impl<D> HmacDRBG<D>where
D: Update + 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> Freeze for HmacDRBG<D>where
<D as FixedOutput>::OutputSize: Sized,
<D as BlockInput>::BlockSize: Sized,
<<D as FixedOutput>::OutputSize as ArrayLength<u8>>::ArrayType: Freeze,
impl<D> RefUnwindSafe for HmacDRBG<D>where
<D as FixedOutput>::OutputSize: Sized,
<D as BlockInput>::BlockSize: Sized,
<<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: Sized,
<D as BlockInput>::BlockSize: Sized,
<<D as FixedOutput>::OutputSize as ArrayLength<u8>>::ArrayType: Unpin,
impl<D> UnwindSafe for HmacDRBG<D>where
<D as FixedOutput>::OutputSize: Sized,
<D as BlockInput>::BlockSize: Sized,
<<D as FixedOutput>::OutputSize as ArrayLength<u8>>::ArrayType: UnwindSafe,
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