Trait gridiron::digits::constant_time_primitives::ConstantSwap [−][src]
pub trait ConstantSwap {
fn swap_if(&mut self, other: &mut Self, swap: ConstantBool<u32>);
}
Expand description
Values which support swapping the values in place.
Required methods
fn swap_if(&mut self, other: &mut Self, swap: ConstantBool<u32>)
fn swap_if(&mut self, other: &mut Self, swap: ConstantBool<u32>)
Swapping the values if the swap was true. Note that this should be done in a constant time way to support constant time algorithms.