[]Struct skellige::prelude::blake2::Blake2s

pub struct Blake2s { /* fields omitted */ }

Blake2s instance with a fixed output.

Implementations

impl Blake2s

pub fn with_params(key: &[u8], salt: &[u8], persona: &[u8]) -> Blake2s

Notable traits for Blake2s

impl Write for Blake2s

Creates a new hashing context with the full set of sequential-mode parameters.

Trait Implementations

impl BlockInput for Blake2s

type BlockSize = UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>

Block size

impl Clone for Blake2s

impl Debug for Blake2s

impl Default for Blake2s

impl FixedOutputDirty for Blake2s

type OutputSize = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>

Output size for fixed output digest

impl Mac for Blake2s

type OutputSize = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>

Output size of the [Mac]

impl NewMac for Blake2s

type KeySize = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>

Key size in bytes with which cipher guaranteed to be initialized.

impl Reset for Blake2s

impl Update for Blake2s

impl Write for Blake2s

Auto Trait Implementations

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<D> Digest for D where
    D: FixedOutput + Update + Reset + Clone + Default

type OutputSize = <D as FixedOutput>::OutputSize

Output size for Digest

impl<D> DynDigest for D where
    D: 'static + FixedOutput + Update + Reset + Clone

impl<D> FixedOutput for D where
    D: FixedOutputDirty + Reset

type OutputSize = <D as FixedOutputDirty>::OutputSize

Output size for fixed output digest

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.