Trait digest::FixedOutputDirty
source · [−]pub trait FixedOutputDirty {
type OutputSize: ArrayLength<u8>;
fn finalize_into_dirty(
&mut self,
out: &mut GenericArray<u8, Self::OutputSize>
);
}
Expand description
Trait for fixed-output digest implementations to use to retrieve the hash output.
Usage of this trait in user code is discouraged. Instead use the
FixedOutput::finalize_fixed
or FixedOutput::finalize_fixed_reset
methods.
Types which impl this trait along with Reset
will receive a blanket
impl of FixedOutput
.
Associated Types
type OutputSize: ArrayLength<u8>
type OutputSize: ArrayLength<u8>
Output size for fixed output digest
Required methods
fn finalize_into_dirty(&mut self, out: &mut GenericArray<u8, Self::OutputSize>)
fn finalize_into_dirty(&mut self, out: &mut GenericArray<u8, Self::OutputSize>)
Retrieve result into provided buffer and leave hasher in a dirty state.
This method is expected to only be called once unless
Reset::reset
is called, after which point it can be
called again and reset again (and so on).