[][src]Struct hmac::Hmac

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

The Hmac struct represents an HMAC using a given hash function D.

Trait Implementations

impl<D> Clone for Hmac<D> where
    D: Update + BlockInput + FixedOutput + Reset + Default + Clone,
    D::BlockSize: ArrayLength<u8>, 
[src]

impl<D> Debug for Hmac<D> where
    D: Update + BlockInput + FixedOutput + Reset + Default + Clone + Debug,
    D::BlockSize: ArrayLength<u8>, 
[src]

impl<D> Mac for Hmac<D> where
    D: Update + BlockInput + FixedOutput + Reset + Default + Clone,
    D::BlockSize: ArrayLength<u8>,
    D::OutputSize: ArrayLength<u8>, 
[src]

type OutputSize = D::OutputSize

Output size of the [[Mac]]

impl<D> NewMac for Hmac<D> where
    D: Update + BlockInput + FixedOutput + Reset + Default + Clone,
    D::BlockSize: ArrayLength<u8>,
    D::OutputSize: ArrayLength<u8>, 
[src]

type KeySize = D::BlockSize

Key size in bytes with which cipher guaranteed to be initialized.

Auto Trait Implementations

impl<D> Send for Hmac<D> where
    D: Send

impl<D> Sync for Hmac<D> where
    D: Sync

impl<D> Unpin for Hmac<D> where
    D: Unpin,
    <<D as BlockInput>::BlockSize as ArrayLength<u8>>::ArrayType: Unpin

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

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.