Struct universal_hash::Output [−][src]
pub struct Output<U: UniversalHash> { /* fields omitted */ }
Expand description
Outputs of universal hash functions which are a thin wrapper around a
byte array. Provides a safe Eq
implementation that runs in constant time,
which is useful for implementing Message Authentication Codes (MACs) based
on universal hashing.
Implementations
Get the inner GenericArray
this type wraps
Trait Implementations
impl<'a, U> From<&'a GenericArray<u8, <U as UniversalHash>::BlockSize>> for Output<U> where
U: UniversalHash,
impl<'a, U> From<&'a GenericArray<u8, <U as UniversalHash>::BlockSize>> for Output<U> where
U: UniversalHash,
impl<U> From<GenericArray<u8, <U as UniversalHash>::BlockSize>> for Output<U> where
U: UniversalHash,
impl<U> From<GenericArray<u8, <U as UniversalHash>::BlockSize>> for Output<U> where
U: UniversalHash,
Auto Trait Implementations
impl<U> RefUnwindSafe for Output<U> where
<<U as UniversalHash>::BlockSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<U> Unpin for Output<U> where
<<U as UniversalHash>::BlockSize as ArrayLength<u8>>::ArrayType: Unpin,
impl<U> UnwindSafe for Output<U> where
<<U as UniversalHash>::BlockSize 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