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

Conditionally negate an element if choice == 1u8.

Implementors