Skip to main content

hex_decode_16

Function hex_decode_16 

Source
pub fn hex_decode_16(hex: &str) -> Option<[u8; 16]>
Expand description

Decode exactly 16 bytes from a 32-character hex string (case-insensitive).

Returns None when the input is shorter than 32 characters or contains a non-hex digit.