pub trait StatefulHasher: Default + Send + Sync {
type Size: Size;
type Digest: Digest<Self::Size>;
fn update(&mut self, input: &[u8]);
fn finalize(&self) -> Self::Digest;
fn reset(&mut self);
}
Expand description
Trait implemented by a hash function implementation.