[−][src]Trait crypto_api::hash::StreamingHash
A stateful (streaming) hash interface
Required methods
fn info(&self) -> HashInfo
Returns information about the hash
fn init(&mut self) -> Result<(), Box<dyn Error + 'static>>
(Re-)initializes the hash state
fn update(&mut self, input: &[u8]) -> Result<(), Box<dyn Error + 'static>>
Adds the data in input
to the hash state
fn finish(&mut self, buf: &mut [u8]) -> Result<usize, Box<dyn Error + 'static>>
Computes the hash into buf
and returns the hash length