Searched refs:LimbMask (Results 1 – 4 of 4) sorted by relevance
/external/rust/crates/ring/src/ |
D | limb.rs | 42 pub enum LimbMask { enum 50 pub enum LimbMask { enum 58 pub fn limbs_equal_limbs_consttime(a: &[Limb], b: &[Limb]) -> LimbMask { in limbs_equal_limbs_consttime() argument 60 fn LIMBS_equal(a: *const Limb, b: *const Limb, num_limbs: c::size_t) -> LimbMask; in limbs_equal_limbs_consttime() argument 68 pub fn limbs_less_than_limbs_consttime(a: &[Limb], b: &[Limb]) -> LimbMask { in limbs_less_than_limbs_consttime() argument 75 limbs_less_than_limbs_consttime(a, b) == LimbMask::True in limbs_less_than_limbs_vartime() 80 pub fn limbs_less_than_limb_constant_time(a: &[Limb], b: Limb) -> LimbMask { in limbs_less_than_limb_constant_time() argument 85 pub fn limbs_are_zero_constant_time(limbs: &[Limb]) -> LimbMask { in limbs_are_zero_constant_time() argument 91 pub fn limbs_are_even_constant_time(limbs: &[Limb]) -> LimbMask { in limbs_are_even_constant_time() argument 97 pub fn limbs_equal_limb_constant_time(a: &[Limb], b: Limb) -> LimbMask { in limbs_equal_limb_constant_time() argument [all …]
|
/external/rust/crates/ring/src/ec/ |
D | suite_b.rs | 18 use crate::{arithmetic::montgomery::*, cpu, ec, error, io::der, limb::LimbMask, pkcs8}; 149 if ops.elems_are_equal(&lhs, &rhs) != LimbMask::True { in verify_affine_point_is_on_the_curve_scaled()
|
/external/rust/crates/ring/src/arithmetic/ |
D | bigint.rs | 42 limb::{self, Limb, LimbMask, LIMB_BITS, LIMB_BYTES}, 126 if limb::limbs_less_than_limbs_consttime(&r, &m.limbs) != LimbMask::True { in from_be_bytes_padded_less_than() 134 limb::limbs_are_zero_constant_time(&self.limbs) == LimbMask::True in is_zero() 257 if limb::limbs_are_even_constant_time(&n) != LimbMask::False { in from_boxed_limbs() 260 if limb::limbs_less_than_limb_constant_time(&n, 3) != LimbMask::False { in from_boxed_limbs() 453 limb::limbs_equal_limb_constant_time(&self.limbs, 1) == LimbMask::True in is_one() 790 if limb::limbs_are_even_constant_time(&dP) != LimbMask::False { in from_be_bytes_padded() 1117 if limb::limbs_equal_limbs_consttime(&a.limbs, &b.limbs) == LimbMask::True { in elem_verify_equal_consttime() 1145 limb::limbs_are_even_constant_time(&self.limbs) != LimbMask::True in is_odd() 1167 if limb::limbs_less_than_limbs_consttime(&self.limbs, &m.limbs) != LimbMask::True { in verify_less_than_modulus()
|
/external/rust/crates/ring/src/ec/suite_b/ |
D | ops.rs | 83 pub fn elems_are_equal(&self, a: &Elem<R>, b: &Elem<R>) -> LimbMask { in elems_are_equal() argument 121 limbs_are_zero_constant_time(&a.limbs[..self.num_limbs]) == LimbMask::True in is_zero()
|