[][src]Struct hmac_drbg::HmacDRBG

pub struct HmacDRBG<D> where
    D: Input + BlockInput + FixedOutput + Default,
    D::BlockSize: ArrayLength<u8>,
    D::OutputSize: ArrayLength<u8>, 
{ /* fields omitted */ }

Methods

impl<D> HmacDRBG<D> where
    D: Input + FixedOutput + BlockInput + Reset + Clone + Default,
    D::BlockSize: ArrayLength<u8>,
    D::OutputSize: ArrayLength<u8>, 
[src]

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]

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

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self