Struct crypto_mac::MacResult [−][src]
pub struct MacResult<N: ArrayLength<u8>> { /* fields omitted */ }
Expand description
MacResult
is a thin wrapper around bytes array which provides a safe Eq
implementation that runs in a fixed time.
Implementations
Create a new MacResult.
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
Auto Trait Implementations
impl<N> RefUnwindSafe for MacResult<N> where
<N as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<N> UnwindSafe for MacResult<N> where
<N as ArrayLength<u8>>::ArrayType: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self