Trait digest::FixedOutputDirty [−][src]
pub trait FixedOutputDirty {
type OutputSize: ArrayLength<u8>;
fn finalize_into_dirty(
&mut self,
out: &mut GenericArray<u8, Self::OutputSize>
);
}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>[src]
Output size for fixed output digest
Required methods
fn finalize_into_dirty(&mut self, out: &mut GenericArray<u8, Self::OutputSize>)[src]
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).