[−][src]Struct crypto_mac::MacResult
MacResult
is a thin wrapper around bytes array which provides a safe Eq
implementation that runs in a fixed time.
Implementations
impl<N> MacResult<N> where
N: ArrayLength<u8>,
[src]
N: ArrayLength<u8>,
pub fn new(code: GenericArray<u8, N>) -> MacResult<N>
[src]
Create a new MacResult.
pub fn code(self) -> GenericArray<u8, N>
[src]
Get the code value as a bytes array.
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
trait.
Trait Implementations
impl<N: Clone + ArrayLength<u8>> Clone for MacResult<N>
[src]
fn clone(&self) -> MacResult<N>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<N> ConstantTimeEq 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>,
impl<N> PartialEq<MacResult<N>> for MacResult<N> where
N: ArrayLength<u8>,
[src]
N: ArrayLength<u8>,
Auto Trait Implementations
impl<N> Send for MacResult<N>
impl<N> Sync for MacResult<N>
impl<N> Unpin for MacResult<N> where
<N as ArrayLength<u8>>::ArrayType: Unpin,
<N as ArrayLength<u8>>::ArrayType: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,