Trait Digest
Source pub trait Digest {
// Required methods
fn update(&mut self, data: &[u8]);
fn finalize(self) -> Vec<u8> ⓘ;
}
Expand description
Defines the streaming digest contract used by hash implementations.
Feeds additional bytes into the digest state.
§Arguments
data: Additional message bytes to absorb into the hash state.
§Panics
This function does not panic for conforming implementations in this crate.
Finalizes the digest and returns the resulting hash bytes.
§Returns
Final digest bytes for all input provided through update.
§Panics
This function does not panic for conforming implementations in this crate.