Struct universal_hash::Output
source · pub struct Output<U: UniversalHash> { /* private fields */ }
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§
source§impl<U> Output<U>where
U: UniversalHash,
impl<U> Output<U>where U: UniversalHash,
sourcepub fn into_bytes(self) -> Block<U>
pub fn into_bytes(self) -> Block<U>
Get the inner GenericArray
this type wraps
Trait Implementations§
source§impl<U> ConstantTimeEq for Output<U>where
U: UniversalHash,
impl<U> ConstantTimeEq for Output<U>where U: UniversalHash,
source§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,
source§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,
source§impl<U> PartialEq<Output<U>> for Output<U>where
U: UniversalHash,
impl<U> PartialEq<Output<U>> for Output<U>where U: UniversalHash,
impl<U: UniversalHash> Eq for Output<U>
Auto Trait Implementations§
impl<U> RefUnwindSafe for Output<U>where <<U as UniversalHash>::BlockSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<U> Send for Output<U>
impl<U> Sync for Output<U>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more