Trait digest::FixedOutput[][src]

pub trait FixedOutput: Sized + Update + Default + Reset {
    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> { ... }
fn digest_fixed(
        data: impl AsRef<[u8]>
    ) -> GenericArray<u8, Self::OutputSize> { ... } }

Trait for returning digest result with the fixed size

Associated Types

type OutputSize: ArrayLength<u8>[src]

Output size for fixed output digest

Loading content...

Required methods

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

Write result into provided array and consume the hasher instance.

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

Write result into provided array and reset the hasher instance.

Loading content...

Provided methods

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

Retrieve result and consume the hasher instance.

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

Retrieve result and reset the hasher instance.

fn digest_fixed(data: impl AsRef<[u8]>) -> GenericArray<u8, Self::OutputSize>[src]

Compute hash of data.

Loading content...

Implementors

impl<D: FixedOutputCore + Default> FixedOutput for UpdateCoreWrapper<D>[src]

This is supported on crate feature core-api only.

type OutputSize = D::OutputSize

Loading content...