Skip to main content

ct_hex_decode

Function ct_hex_decode 

Source
pub fn ct_hex_decode(hex: &str) -> Option<Vec<u8>>
Expand description

Constant-time hex decoding for secret material.

Returns None if the input contains non-hex characters or has odd length. Processes the full input regardless of validity to avoid timing leaks.