pub trait Digest {
type OutputType: AsRef<[u8]> + AsMut<[u8]> + Copy;
type BlockType: AsRef<[u8]> + AsMut<[u8]> + Copy;
// Required methods
fn new() -> Self;
fn reset(&mut self);
fn update(&mut self, input: &[u8]);
fn result(&mut self) -> Self::OutputType;
}Expand description
Hashing algorithm interface
Required Associated Types§
Required Methods§
Sourcefn result(&mut self) -> Self::OutputType
fn result(&mut self) -> Self::OutputType
Finalizes algorithm and returns output.
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.