[][src]Struct hmac::Hmac

pub struct Hmac<D> where
    D: Input + 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> Debug for Hmac<D> where
    D: Input + BlockInput + FixedOutput + Reset + Default + Clone + Debug,
    D::BlockSize: ArrayLength<u8>, 
[src]

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

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

type OutputSize = D::OutputSize

type KeySize = D::BlockSize

fn result_reset(&mut self) -> MacResult<Self::OutputSize>[src]

Obtain the result of a Mac computation as a MacResult and reset Mac instance. Read more

fn verify(self, code: &[u8]) -> Result<(), MacError>[src]

Check if code is correct for the processed input.

Auto Trait Implementations

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

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

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

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

type Output = T

Should always be Self