Trait sit_core::hash::Hasher
[−]
[src]
pub trait Hasher { fn process(&mut self, input: &[u8]); fn result(self) -> Vec<u8>; fn result_box(self: Box<Self>) -> Vec<u8>; }
Hasher is a unifying trait for different hashing algorithms
Required Methods
fn process(&mut self, input: &[u8])
Process stream input
fn result(self) -> Vec<u8>
Produce a hash
fn result_box(self: Box<Self>) -> Vec<u8>
Produce a hash out of a boxed Hasher