[−][src]Trait mundane::hash::Hasher
A cryptographic hash function.
Associated Types
Loading content...Required methods
fn update(&mut self, bytes: &[u8])
Adds bytes to the hash.
#[must_use]
fn finish(self) -> Self::Digest
Returns the digest of the bytes added so far.
Provided methods
#[must_use]
fn hash(bytes: &[u8]) -> Self::Digest
Computes the hash of a sequence of bytes.
hash
creates a new instance of this hash function, adds bytes
to it,
and then computes the digest.