pub trait InnerHash:
Digest
+ BlockSizeUser
+ Clone
+ Default {
const INNER_HASH_ALGORITHM: InnerHashAlgorithm;
// Provided methods
fn update_padded(&mut self, data: &[u8], padded_size: usize) { ... }
fn update_zeroes(&mut self, amount: usize) { ... }
}Expand description
Required Associated Constants§
Sourceconst INNER_HASH_ALGORITHM: InnerHashAlgorithm
const INNER_HASH_ALGORITHM: InnerHashAlgorithm
The value of InnerHashAlgorithm that corresponds to this hash algorithm.
Provided Methods§
Sourcefn update_padded(&mut self, data: &[u8], padded_size: usize)
fn update_padded(&mut self, data: &[u8], padded_size: usize)
Update the hash state with given data, padded with zero bytes to the given size.
This will panic if data.len() > padded_size.
Sourcefn update_zeroes(&mut self, amount: usize)
fn update_zeroes(&mut self, amount: usize)
Update the hash state with the given amount of zero bytes
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.