Skip to main content

ct_hex_encode

Function ct_hex_encode 

Source
pub fn ct_hex_encode(data: &[u8]) -> String
Expand description

Constant-time hex encoding for secret material.

Unlike hex::encode(), this implementation processes all bytes uniformly regardless of value, preventing timing side-channels.