Function curve25519_dalek::util::bytes_equal_ct [] [src]

pub fn bytes_equal_ct(a: u8, b: u8) -> u8

Check equality of two bytes in constant time.

Return

Returns 1 if a == b and 0 otherwise.