pub fn validate_hash_length(hash: &[u8], expected_len: usize) -> bool
Validate hash has correct length.