Trait curve25519_dalek::subtle::CTNegatable
[−]
[src]
pub trait CTNegatable { fn conditional_negate(&mut self, choice: u8); }
Trait for items which can be conditionally negated in constant time.
Note: it is not necessary to implement this trait, as a generic implementation is provided.
Required Methods
fn conditional_negate(&mut self, choice: u8)
Conditionally negate an element if choice == 1u8
.
Implementors
impl<T> CTNegatable for T where
T: CTAssignable,
&'a T: Neg<Output = T>,