pub fn constant_time_eq(a: &[u8], b: &[u8]) -> boolExpand description
Constant-time byte comparison to prevent timing attacks.
The length check leaks whether the two slices are the same length, but the content comparison always examines every byte regardless of where (or whether) a mismatch occurs.