pub trait Hasher { // Required methods fn update(&mut self, input: &[u8]); fn finalize(&mut self) -> &[u8] ⓘ; fn reset(&mut self); }
Trait implemented by a hash function implementation.
Consume input and update internal state.
Returns the final digest.
Reset the internal hasher state.