[][src]Struct hmac_drbg::HmacDRBG

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

Implementations

impl<D> HmacDRBG<D> where
    D: Update + 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> 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

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

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

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

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

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

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

type Output = T

Should always be Self

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> 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.