[][src]Function mundane::bytes::constant_time_eq

pub fn constant_time_eq(a: &[u8], b: &[u8]) -> bool

Constant-time byte sequence equality.

Returns true iff the bytes at a and b are equal. Takes an amount of time dependent on length, but independent of individual byte values.