pub trait Hasher {
    // Required methods
    fn update(&mut self, input: &[u8]);
    fn finalize(&mut self) -> &[u8] ;
    fn reset(&mut self);
}
Expand description

Trait implemented by a hash function implementation.

Required Methods§

source

fn update(&mut self, input: &[u8])

Consume input and update internal state.

source

fn finalize(&mut self) -> &[u8]

Returns the final digest.

source

fn reset(&mut self)

Reset the internal hasher state.

Implementors§

source§

impl<const S: usize> Hasher for IdentityHasher<S>