pub trait FixedOutputReset: FixedOutput + Reset {
    // Required method
    fn finalize_into_reset(
        &mut self,
        out: &mut GenericArray<u8, Self::OutputSize>
    );

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

Trait for hash functions with fixed-size output able to reset themselves.

Required Methods§

source

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

Write result into provided array and reset the hasher state.

Provided Methods§

source

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

Retrieve result and reset the hasher state.

Implementations on Foreign Types§

source§

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

source§

impl FixedOutputReset for Hash256

source§

impl FixedOutputReset for Hash160

Implementors§