pub trait HashDigestAlgorithm {
const ALG: HashAlgorithm;
// Required method
fn digest(message: &[u8]) -> Result<Vec<u8>, AlgorithmError>;
}Expand description
Adapter contract for a cryptographic hash algorithm.
Required Associated Constants§
Sourceconst ALG: HashAlgorithm
const ALG: HashAlgorithm
The hash algorithm selector this adapter implements.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".