Skip to main content

constant_time_equal

Function constant_time_equal 

Source
pub fn constant_time_equal<A, B>(a: A, b: B) -> bool
where A: AsRef<[u8]>, B: AsRef<[u8]>,
Expand description

Compare two byte-like values without early returns based on content.