Skip to main content

hex_decode

Function hex_decode 

Source
pub fn hex_decode(input: &str) -> Result<Vec<u8>, ()>
Expand description

Decode a hex string (optionally _-separated), bounded to MAX_HEX_INPUT_LEN bytes for DoS safety. Err(()) on odd length or non-hex input.