ct_eq

Function ct_eq 

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

Constant-time comparison of two byte slices

Returns true if the slices are equal, false otherwise. This function runs in constant time regardless of the input values.