pub trait CtIsZero {
// Required method
fn ct_is_zero(&self) -> Choice;
}
Expand description
A trait for constant time indicating if a value is zero.
Required Methods§
sourcefn ct_is_zero(&self) -> Choice
fn ct_is_zero(&self) -> Choice
Returns a subtle::Choice
indicating if the value is zero.
Returns 1 if the value is zero, otherwise 0.