pub trait Hash {
// Required method
fn hash(digest: &mut [u8], payload: &[u8]) -> Result<usize, HashError>;
}Expand description
A trait for oneshot hashing, where the output is written to a provided slice.
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.