pub trait Digest: Sealed {
type Output: AsRef<[u8]>;
const OUTPUT_SIZE: usize;
// Required methods
fn new() -> Self;
fn update(&mut self, data: &[u8]);
fn finalize(self) -> Self::Output;
}Expand description
Wrapper trait for emassy-crypto hashers
Required Associated Constants§
Sourceconst OUTPUT_SIZE: usize
const OUTPUT_SIZE: usize
The output size of the hasher (in bytes)
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".