Trait cryptraits::hash::Hash

source ·
pub trait Hash: Zeroize {
    fn new() -> Self;
    fn update(&mut self, data: &[u8]);
    fn finalize(self) -> Vec<u8>;
}
Expand description

Trait represents Hash.

Required Methods§

Create new hasher.

Update state using the provided data.

Retrieve result and consume hasher instance.

Implementors§