Lines Matching refs:LimbMask
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
159 if limbs_are_zero_constant_time(&result) != LimbMask::False { in parse_big_endian_in_range_partially_reduced_and_pad_consttime()
181 if limbs_less_than_limbs_consttime(&result, max_exclusive) != LimbMask::True { in parse_big_endian_in_range_and_pad_consttime()
185 if limbs_are_zero_constant_time(&result) != LimbMask::False { in parse_big_endian_in_range_and_pad_consttime()
339 fn LIMBS_are_even(a: *const Limb, num_limbs: c::size_t) -> LimbMask; in LIMBS_are_even() argument
340 fn LIMBS_are_zero(a: *const Limb, num_limbs: c::size_t) -> LimbMask; in LIMBS_are_zero() argument
342 fn LIMBS_equal_limb(a: *const Limb, b: Limb, num_limbs: c::size_t) -> LimbMask; in LIMBS_equal_limb() argument
343 fn LIMBS_less_than(a: *const Limb, b: *const Limb, num_limbs: c::size_t) -> LimbMask; in LIMBS_less_than() argument
345 fn LIMBS_less_than_limb(a: *const Limb, b: Limb, num_limbs: c::size_t) -> LimbMask; in LIMBS_less_than_limb() argument
353 const MAX: Limb = LimbMask::True as Limb;
369 assert_eq!(limbs_are_even_constant_time(even), LimbMask::True); in test_limbs_are_even()
382 assert_eq!(limbs_are_even_constant_time(odd), LimbMask::False); in test_limbs_are_even()
411 assert_eq!(limbs_are_zero_constant_time(zero), LimbMask::True); in test_limbs_are_zero()
414 assert_eq!(limbs_are_zero_constant_time(nonzero), LimbMask::False); in test_limbs_are_zero()
421 assert_eq!(limbs_equal_limb_constant_time(zero, 0), LimbMask::True); in test_limbs_equal_limb()
424 assert_eq!(limbs_equal_limb_constant_time(nonzero, 0), LimbMask::False); in test_limbs_equal_limb()
435 assert_eq!(limbs_equal_limb_constant_time(a, b), LimbMask::True); in test_limbs_equal_limb()
449 assert_eq!(limbs_equal_limb_constant_time(a, b), LimbMask::False); in test_limbs_equal_limb()
466 assert_eq!(limbs_less_than_limb_constant_time(a, b), LimbMask::True); in test_limbs_less_than_limb_constant_time()
485 assert_eq!(limbs_less_than_limb_constant_time(a, b), LimbMask::False); in test_limbs_less_than_limb_constant_time()
583 const ALL_ONES: Limb = LimbMask::True as Limb; in test_limbs_minimal_bits()