Struct hmac::Hmac[][src]

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

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

Create new MAC instance from key with fixed size.

Create new MAC instance from key with variable size. Read more

Process input data.

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

Check if code is correct for the processed input and reset Mac instance. Read more

Auto Trait Implementations

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

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