diff --git a/src/subtle.rs b/src/subtle.rs index 7c98510..a81b3e2 100644 --- a/src/subtle.rs +++ b/src/subtle.rs @@ -118,16 +118,9 @@ impl CTNegatable for T #[inline(always)] #[cfg(feature = "std")] pub fn conditional_select(a: T, b: T, choice: T) -> T - where T: PartialEq + - PartialOrd + - One + - Copy + - Signed + - Sub + - BitAnd + - BitOr + - Not -{ + where T: PartialEq + PartialOrd + Copy + + One + Signed + Sub + Not + + BitAnd + BitOr { (!(choice - T::one()) & a) | ((choice - T::one()) & b) }