aws_lc_rs::hex

Function decode

Source
pub fn decode(hex_str: &str) -> Result<Vec<u8>, String>
Expand description

Converts a hex string to a vector of bytes

§Errors

Returns an error if hex_str contains a non-hex digit.