Trait curve25519_dalek::subtle::CTAssignable [] [src]

pub trait CTAssignable {
    fn conditional_assign(&mut self, other: &Self, choice: u8);
}

Trait for items which can be conditionally assigned in constant time.

Required Methods

If choice == 1u8, assign other to self. Otherwise, leave self unchanged. Executes in constant time.

Implementors