Trait tiny_crypto::hash::Hasher

source ·
pub trait Hasher {
    // Required methods
    fn new() -> Self;
    fn update(&mut self, input: &[u8]);
    fn finalize(self) -> Vec<u8>;
}
Expand description

The hash function trait with multiple updates.

Required Methods§

source

fn new() -> Self

source

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

source

fn finalize(self) -> Vec<u8>

Object Safety§

This trait is not object safe.

Implementors§