[−][src]Struct hmac_drbg::HmacDRBG
Methods
impl<D> HmacDRBG<D> where
D: Input + FixedOutput + BlockInput + Reset + Clone + Default,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
[src]
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
[src]
pub fn count(&self) -> usize
[src]
pub fn reseed(&mut self, entropy: &[u8], add: Option<&[u8]>)
[src]
pub fn generate<T: ArrayLength<u8>>(
&mut self,
add: Option<&[u8]>
) -> GenericArray<u8, T>
[src]
&mut self,
add: Option<&[u8]>
) -> GenericArray<u8, T>
pub fn generate_to_slice(&mut self, result: &mut [u8], add: Option<&[u8]>)
[src]
Auto Trait Implementations
impl<D> Unpin for HmacDRBG<D> where
<<D as FixedOutput>::OutputSize as ArrayLength<u8>>::ArrayType: Unpin,
<<D as FixedOutput>::OutputSize as ArrayLength<u8>>::ArrayType: Unpin,
impl<D> Send for HmacDRBG<D>
impl<D> Sync for HmacDRBG<D>
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self