pub trait CryptoHasher: Default + Write {
// Required methods
fn seed() -> &'static [u8; 32];
fn update(&mut self, bytes: &[u8]);
fn finish(self) -> HashValue;
}
Expand description
A trait for representing the state of a cryptographic hasher.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.