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]
N: ArrayLength<u8>,
fn new(code: GenericArray<u8, N>) -> MacResult<N>
[src]
Create a new MacResult.
fn from_slice(code: &[u8]) -> MacResult<N>
[src]
fn code(&self) -> &[u8]
[src]
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<MacResult<N>> for MacResult<N> where
N: ArrayLength<u8>,
[src]
N: ArrayLength<u8>,
impl<N> Eq for MacResult<N> where
N: ArrayLength<u8>,
[src]
N: ArrayLength<u8>,