pub fn check_value_len(value: &[u8]) -> Result<(), Error>
Check that the value is of valid length, or return a descriptive error.