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
sourceimpl<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
sourceimpl<U> ConstantTimeEq for Output<U> where
U: UniversalHash,
impl<U> ConstantTimeEq for Output<U> where
U: UniversalHash,
sourceimpl<'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,
sourceimpl<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,
sourceimpl<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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more