pub trait FixedOutput: Update + OutputSizeUser + Sized {
    // Required method
    fn finalize_into(self, out: &mut GenericArray<u8, Self::OutputSize>);

    // Provided method
    fn finalize_fixed(self) -> GenericArray<u8, Self::OutputSize> { ... }
}
Expand description

Trait for hash functions with fixed-size output.

Required Methods§

source

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

Consume value and write result into provided array.

Provided Methods§

source

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

Retrieve result and consume the hasher instance.

Implementations on Foreign Types§

source§

impl<D> FixedOutput for SimpleHmac<D>where D: Digest + BlockSizeUser,

source§

impl FixedOutput for Hash256

source§

impl FixedOutput for Hash160

Implementors§