pub trait StreamingHash: Send {
// Required methods
fn update(&mut self, data: &[u8]);
fn finalize(self, out: &mut [u8]) -> Result<(), CryptoError>;
fn reset(&mut self);
}Expand description
Required Methods§
Sourcefn finalize(self, out: &mut [u8]) -> Result<(), CryptoError>
fn finalize(self, out: &mut [u8]) -> Result<(), CryptoError>
Consume the hasher and write the final digest into out.
Returns CryptoError::BufferTooSmall if out is too short.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".