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