Skip to main content

hash_length_ok

Function hash_length_ok 

Source
pub fn hash_length_ok(suite_id: u16, hash_len: usize) -> bool
Expand description

Invariant 3: the declared content hash length matches the digest size for the suite. (Type-level true for Hash32, but checked explicitly for wire-decoded lengths.)