pub trait ConstantTime { // Required methods fn ct_eq(&self, other: &[u8]) -> bool; fn ct_select(condition: bool, a: Self, b: Self) -> Self where Self: Sized; }
Trait for constant-time operations
Compare two byte slices in constant time
Select between two values in constant time