ct_eq

Function ct_eq 

Source
pub fn ct_eq(a: &[u8], b: &[u8]) -> bool
Expand description

Compare two byte slices in constant time.

Returns true if the slices are equal, false otherwise. The comparison time is independent of where the slices differ.