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§

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

Consume input and update internal state.

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

Returns the final digest.

fn reset(&mut self)

Reset the internal hasher state.

Implementors§

§

impl Hasher for Keccak224

§

impl Hasher for Keccak256

§

impl Hasher for Keccak384

§

impl Hasher for Keccak512

§

impl Hasher for Sha2_256

§

impl Hasher for Sha2_512

§

impl Hasher for Sha3_224

§

impl Hasher for Sha3_256

§

impl Hasher for Sha3_384

§

impl Hasher for Sha3_512

§

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

§

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

§

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

§

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