Struct hmac::MacResult [] [src]

pub struct MacResult<N> where
    N: ArrayLength<u8>, 
{ /* fields omitted */ }

MacResult wraps a Mac code and provides a safe Eq implementation that runs in fixed time.

Methods

impl<N> MacResult<N> where
    N: ArrayLength<u8>, 
[src]

Create a new MacResult.

Get the code value. Be very careful using this method, since incorrect use of the code value may permit timing attacks which defeat the security provided by the Mac function.

Trait Implementations

impl<N> Eq for MacResult<N> where
    N: ArrayLength<u8>, 
[src]

impl<N> PartialEq<MacResult<N>> for MacResult<N> where
    N: ArrayLength<u8>, 
[src]