Struct universal_hash::Output [−][src]
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
impl<U> Output<U> where
U: UniversalHash,
[src]
U: UniversalHash,
pub fn new(bytes: Block<U>) -> Output<U>
[src]
Create a new Output
block.
pub fn into_bytes(self) -> Block<U>
[src]
Get the inner GenericArray
this type wraps
Trait Implementations
impl<U: Clone + UniversalHash> Clone for Output<U> where
U::BlockSize: Clone,
[src]
U::BlockSize: Clone,
impl<U> ConstantTimeEq for Output<U> where
U: UniversalHash,
[src]
U: UniversalHash,
impl<U: UniversalHash> Eq for Output<U>
[src]
impl<'a, U> From<&'a GenericArray<u8, <U as UniversalHash>::BlockSize>> for Output<U> where
U: UniversalHash,
[src]
U: UniversalHash,
impl<U> From<GenericArray<u8, <U as UniversalHash>::BlockSize>> for Output<U> where
U: UniversalHash,
[src]
U: UniversalHash,
impl<U> PartialEq<Output<U>> for Output<U> where
U: UniversalHash,
[src]
U: UniversalHash,
Auto Trait Implementations
impl<U> RefUnwindSafe for Output<U> where
<<U as UniversalHash>::BlockSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
<<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,
<<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,
<<U as UniversalHash>::BlockSize as ArrayLength<u8>>::ArrayType: UnwindSafe,
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,
pub 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,