Struct hmac::Hmac [] [src]

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

Formats the value using the given formatter.

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

Create new MAC instance. DO NOT USE low-entropy keys (e.g. passwords)! Read more

Process input data.

Obtain the result of a Mac computation as a MacResult.

Check if code is correct for the processed input