Struct hmac::Hmac [] [src]

pub struct Hmac<D> where
    D: Input + FixedOutput + Default,
    <D as Input>::BlockSize: ArrayLength<u8>, 
{ /* fields omitted */ }

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

Trait Implementations

impl<D> Mac for Hmac<D> where
    D: Input + FixedOutput + Default,
    <D as Input>::BlockSize: ArrayLength<u8>,
    <D as FixedOutput>::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