Struct universal_hash::Output [−][src]
pub struct Output<U: UniversalHash> { /* fields omitted */ }
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]
impl<U> Output<U> where
U: UniversalHash, [src]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> ConstantTimeEq for Output<U> where
U: UniversalHash, [src]
impl<U> ConstantTimeEq for Output<U> where
U: UniversalHash, [src]impl<'a, U> From<&'a GenericArray<u8, <U as UniversalHash>::BlockSize>> for Output<U> where
U: UniversalHash, [src]
impl<'a, U> From<&'a GenericArray<u8, <U as UniversalHash>::BlockSize>> for Output<U> where
U: UniversalHash, [src]impl<U> From<GenericArray<u8, <U as UniversalHash>::BlockSize>> for Output<U> where
U: UniversalHash, [src]
impl<U> From<GenericArray<u8, <U as UniversalHash>::BlockSize>> for Output<U> where
U: UniversalHash, [src]impl<U> PartialEq<Output<U>> for Output<U> where
U: UniversalHash, [src]
impl<U> PartialEq<Output<U>> for Output<U> where
U: UniversalHash, [src]impl<U: UniversalHash> Eq for Output<U>[src]
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,