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