pub trait ExtendableOutputReset: ExtendableOutput + Reset {
// Required method
fn finalize_xof_reset(&mut self) -> Self::Reader;
// Provided method
fn finalize_xof_reset_into(&mut self, out: &mut [u8]) { ... }
}
Expand description
Trait for hash functions with extendable-output (XOF) able to reset themselves.
Required Methods§
Sourcefn finalize_xof_reset(&mut self) -> Self::Reader
fn finalize_xof_reset(&mut self) -> Self::Reader
Retrieve XOF reader and reset hasher instance state.
Provided Methods§
Sourcefn finalize_xof_reset_into(&mut self, out: &mut [u8])
fn finalize_xof_reset_into(&mut self, out: &mut [u8])
Finalize XOF, write result into out
, and reset the hasher state.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.