Trait digest::VariableOutputReset 
source · [−]pub trait VariableOutputReset: VariableOutput + Reset {
    fn finalize_variable_reset(
        &mut self, 
        out: &mut [u8]
    ) -> Result<(), InvalidBufferSize>;
    fn finalize_boxed_reset(&mut self) -> Box<[u8]> { ... }
}Expand description
Trait for hash functions with variable-size output able to reset themselves.
Required methods
fn finalize_variable_reset(
    &mut self, 
    out: &mut [u8]
) -> Result<(), InvalidBufferSize>
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().
Provided methods
Implementors
impl<T> VariableOutputReset for RtVariableCoreWrapper<T> where
    T: VariableOutputCore + UpdateCore + Reset,
    T::BlockSize: IsLess<U256>,
    Le<T::BlockSize, U256>: NonZero, 
This is supported on crate feature 
core-api only.