[][src]Struct universal_hash::Output

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]

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]

impl<U> ConstantTimeEq for Output<U> where
    U: UniversalHash
[src]

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]

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]

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> where
    <U as UniversalHash>::BlockSize: ArrayLength<u8>, 

impl<U> Sync for Output<U> where
    <U as UniversalHash>::BlockSize: ArrayLength<u8>, 

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.