Function crypto::util::fixed_time_eq [-] [+] [src]

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

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