pub trait VariableOutputReset: VariableOutput + Reset {
    // Required method
    fn finalize_variable_reset(
        &mut self,
        out: &mut [u8]
    ) -> Result<(), InvalidBufferSize>;
}
Expand description

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

Required Methods§

source

fn finalize_variable_reset( &mut self, out: &mut [u8] ) -> Result<(), InvalidBufferSize>

Write result into the output buffer and reset the hasher state.

Returns Err(InvalidOutputSize) if out size is not equal to self.output_size().

Implementors§