Function constant_time_eq::constant_time_eq_64
source · [−]Expand description
Compares two 512-bit byte strings in constant time.
Examples
use constant_time_eq::constant_time_eq_64;
assert!(constant_time_eq_64(&[3; 64], &[3; 64]));
assert!(!constant_time_eq_64(&[3; 64], &[7; 64]));