Trait digest::FixedOutputReset
source · pub trait FixedOutputReset: FixedOutput + Reset {
// Required method
fn finalize_into_reset(&mut self, out: &mut Output<Self>);
// Provided method
fn finalize_fixed_reset(&mut self) -> Output<Self> { ... }
}
Expand description
Trait for hash functions with fixed-size output able to reset themselves.
Required Methods§
sourcefn finalize_into_reset(&mut self, out: &mut Output<Self>)
fn finalize_into_reset(&mut self, out: &mut Output<Self>)
Write result into provided array and reset the hasher state.
Provided Methods§
sourcefn finalize_fixed_reset(&mut self) -> Output<Self>
fn finalize_fixed_reset(&mut self) -> Output<Self>
Retrieve result and reset the hasher state.
Implementors§
impl<T> FixedOutputReset for CoreWrapper<T>where T: FixedOutputCore + Reset, T::BlockSize: IsLess<U256>, Le<T::BlockSize, U256>: NonZero,
Available on crate feature
core-api
only.