[]Trait librelic::prelude::blake2::digest::FixedOutputDirty

pub trait FixedOutputDirty {
    type OutputSize: ArrayLength<u8>;
    pub fn finalize_into_dirty(
        &mut self,
        out: &mut GenericArray<u8, Self::OutputSize>
    ); }

Trait for fixed-output digest implementations to use to retrieve the hash output.

Usage of this trait in user code is discouraged. Instead use the FixedOutput::finalize_fixed or FixedOutput::finalize_fixed_reset methods.

Types which impl this trait along with Reset will receive a blanket impl of FixedOutput.

Associated Types

type OutputSize: ArrayLength<u8>

Output size for fixed output digest

Loading content...

Required methods

pub fn finalize_into_dirty(
    &mut self,
    out: &mut GenericArray<u8, Self::OutputSize>
)

Retrieve result into provided buffer and leave hasher in a dirty state.

This method is expected to only be called once unless Reset::reset is called, after which point it can be called again and reset again (and so on).

Loading content...

Implementors

impl FixedOutputDirty for Blake2b

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

impl FixedOutputDirty for Blake2s

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

Loading content...