Trait diem_crypto::hash::CryptoHasher [−][src]
pub trait CryptoHasher: Default + Write {
fn seed() -> &'static [u8; 32];
fn update(&mut self, bytes: &[u8]);
fn finish(self) -> HashValue;
fn hash_all(bytes: &[u8]) -> HashValue { ... }
}
Expand description
A trait for representing the state of a cryptographic hasher.
Required methods
the seed used to initialize hashing Self
before the serialization bytes of the actual value