Struct crypto_mac::MacResult [] [src]

pub struct MacResult<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> PartialEq for MacResult<N> where
    N: ArrayLength<u8>, 
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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