Skip to main content

timing_safe_equal

Function timing_safe_equal 

Source
pub fn timing_safe_equal(a: &str, b: &str) -> bool
Expand description

Constant-time comparison of two hex strings (case-insensitive).

Returns true if both strings are equal (ignoring case), using XOR accumulation to avoid timing side-channels.