pub trait Sha2Config: Sha2MainChipConfig + Sha2BlockHasherVmConfig {
const MESSAGE_LENGTH_BITS: usize;
const DIGEST_BYTES: usize;
// Required methods
fn compress(state: &mut [u8], input: &[u8]);
fn hash(message: &[u8]) -> Vec<u8> ⓘ;
}Required Associated Constants§
Sourceconst MESSAGE_LENGTH_BITS: usize
const MESSAGE_LENGTH_BITS: usize
Number of bits used to store the message length (part of the message padding)
Sourceconst DIGEST_BYTES: usize
const DIGEST_BYTES: usize
Number of bytes in the digest
Required Methods§
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.