crypto::util

Function fixed_time_eq

Source
pub fn fixed_time_eq(lhs: &[u8], rhs: &[u8]) -> bool
Expand description

Compare two vectors using a fixed number of operations. If the two vectors are not of equal length, the function returns false immediately.