Trait otter_api_tests::imports::digest::FixedOutput[]

pub trait FixedOutput {
    type OutputSize: ArrayLength<u8>;
    fn finalize_into(self, out: &mut GenericArray<u8, Self::OutputSize>);
fn finalize_into_reset(
        &mut self,
        out: &mut GenericArray<u8, Self::OutputSize>
    ); fn finalize_fixed(self) -> GenericArray<u8, Self::OutputSize> { ... }
fn finalize_fixed_reset(&mut self) -> GenericArray<u8, Self::OutputSize> { ... } }
Expand description

Trait for returning digest result with the fixed size

Associated Types

type OutputSize: ArrayLength<u8>

Output size for fixed output digest

Required methods

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

Write result into provided array and consume the hasher instance.

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

Write result into provided array and reset the hasher instance.

Provided methods

fn finalize_fixed(self) -> GenericArray<u8, Self::OutputSize>

Retrieve result and consume the hasher instance.

fn finalize_fixed_reset(&mut self) -> GenericArray<u8, Self::OutputSize>

Retrieve result and reset the hasher instance.

Implementors

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

type OutputSize = <D as FixedOutputDirty>::OutputSize

pub fn finalize_into(
    self,
    out: &mut GenericArray<u8, <D as FixedOutput>::OutputSize>
)

pub fn finalize_into_reset(
    &mut self,
    out: &mut GenericArray<u8, <D as FixedOutput>::OutputSize>
)