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]
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 for MacResult<N> where
N: ArrayLength<u8>,
[src]
N: ArrayLength<u8>,
fn eq(&self, x: &MacResult<N>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<N> Eq for MacResult<N> where
N: ArrayLength<u8>,
[src]
N: ArrayLength<u8>,