Home
last modified time | relevance | path

Searched defs:Limb (Results 1 – 9 of 9) sorted by relevance

/external/rust/crates/serde_json/src/lexical/
Dmath.rs40 pub type Limb = u32; typedef
53 pub type Limb = u64; typedef
66 pub(crate) fn as_limb<T: Integer>(t: T) -> Limb { in as_limb()
214 pub fn add(x: Limb, y: Limb) -> (Limb, bool) { in add()
220 pub fn iadd(x: &mut Limb, y: Limb) -> bool { in iadd()
230 pub fn sub(x: Limb, y: Limb) -> (Limb, bool) { in sub()
236 pub fn isub(x: &mut Limb, y: Limb) -> bool { in isub()
248 pub fn mul(x: Limb, y: Limb, carry: Limb) -> (Limb, Limb) { in mul()
259 pub fn imul(x: &mut Limb, y: Limb, carry: Limb) -> Limb { in imul()
283 pub fn iadd_impl(x: &mut Vec<Limb>, y: Limb, xstart: usize) { in iadd_impl()
[all …]
Dbignum.rs25 fn data(&self) -> &Vec<Limb> { in data()
30 fn data_mut(&mut self) -> &mut Vec<Limb> { in data_mut()
/external/rust/crates/ring/src/ec/suite_b/ops/
Dp256.rs137 r: *mut Limb, // [3][COMMON_OPS.num_limbs] in p256_point_mul_base_impl()
138 g_scalar: *const Limb, // [COMMON_OPS.num_limbs] in p256_point_mul_base_impl()
236 fn sqr_mul(a: &Scalar<R>, squarings: Limb, b: &Scalar<R>) -> Scalar<R> { in p256_scalar_inv_to_mont()
244 fn sqr_mul_acc(acc: &mut Scalar<R>, squarings: Limb, b: &Scalar<R>) { in p256_scalar_inv_to_mont()
342 r: *mut Limb, // [COMMON_OPS.num_limbs] in GFp_nistz256_add()
343 a: *const Limb, // [COMMON_OPS.num_limbs] in GFp_nistz256_add()
344 b: *const Limb, // [COMMON_OPS.num_limbs] in GFp_nistz256_add()
347 r: *mut Limb, // [COMMON_OPS.num_limbs] in GFp_nistz256_mul_mont()
348 a: *const Limb, // [COMMON_OPS.num_limbs] in GFp_nistz256_mul_mont()
349 b: *const Limb, // [COMMON_OPS.num_limbs] in GFp_nistz256_mul_mont()
[all …]
Delem.rs51 f: unsafe extern "C" fn(r: *mut Limb, a: *const Limb, b: *const Limb), in mul_mont()
64 f: unsafe extern "C" fn(r: *mut Limb, a: *const Limb, b: *const Limb), in binary_op()
80 f: unsafe extern "C" fn(r: *mut Limb, a: *const Limb, b: *const Limb), in binary_op_assign()
90 f: unsafe extern "C" fn(r: *mut Limb, a: *const Limb), in unary_op()
105 f: unsafe extern "C" fn(r: *mut Limb, a: *const Limb), in unary_op_assign()
114 f: unsafe extern "C" fn(r: *mut Limb, a: *const Limb, b: *const Limb), in unary_op_from_binary_op_assign()
Dp384.rs329 r: *mut Limb, // [COMMON_OPS.num_limbs] in GFp_p384_elem_sqr_mont()
330 a: *const Limb, // [COMMON_OPS.num_limbs] in GFp_p384_elem_sqr_mont()
343 r: *mut Limb, // [COMMON_OPS.num_limbs] in GFp_p384_elem_add()
344 a: *const Limb, // [COMMON_OPS.num_limbs] in GFp_p384_elem_add()
345 b: *const Limb, // [COMMON_OPS.num_limbs] in GFp_p384_elem_add()
348 r: *mut Limb, // [COMMON_OPS.num_limbs] in GFp_p384_elem_mul_mont()
349 a: *const Limb, // [COMMON_OPS.num_limbs] in GFp_p384_elem_mul_mont()
350 b: *const Limb, // [COMMON_OPS.num_limbs] in GFp_p384_elem_mul_mont()
354 r: *mut Limb, // [3][COMMON_OPS.num_limbs] in GFp_nistz384_point_add()
355 a: *const Limb, // [3][COMMON_OPS.num_limbs] in GFp_nistz384_point_add()
[all …]
/external/rust/crates/ring/src/
Dlimb.rs31 pub type Limb = u64; typedef
33 pub type Limb = u32; typedef
58 pub fn limbs_equal_limbs_consttime(a: &[Limb], b: &[Limb]) -> LimbMask { in limbs_equal_limbs_consttime()
60 fn LIMBS_equal(a: *const Limb, b: *const Limb, num_limbs: c::size_t) -> LimbMask; in limbs_equal_limbs_consttime()
68 pub fn limbs_less_than_limbs_consttime(a: &[Limb], b: &[Limb]) -> LimbMask { in limbs_less_than_limbs_consttime()
74 pub fn limbs_less_than_limbs_vartime(a: &[Limb], b: &[Limb]) -> bool { 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()
97 pub fn limbs_equal_limb_constant_time(a: &[Limb], b: Limb) -> LimbMask { in limbs_equal_limb_constant_time()
133 pub fn limbs_reduce_once_constant_time(r: &mut [Limb], m: &[Limb]) { in limbs_reduce_once_constant_time()
153 m: &[Limb], in parse_big_endian_in_range_partially_reduced_and_pad_consttime()
[all …]
/external/rust/crates/ring/src/arithmetic/
Dbigint.rs485 fn LIMBS_shl_mod(r: *mut Limb, a: *const Limb, m: *const Limb, num_limbs: c::size_t); in elem_mul_by_2()
555 r: *mut Limb, in elem_add()
556 a: *const Limb, in elem_add()
557 b: *const Limb, in elem_add()
558 m: *const Limb, in elem_add()
579 r: *mut Limb, in elem_sub()
580 a: *const Limb, in elem_sub()
581 b: *const Limb, in elem_sub()
582 m: *const Limb, in elem_sub()
824 fn gather<M>(table: &[Limb], i: Window, r: &mut Elem<M, R>) { in elem_exp_consttime()
[all …]
/external/rust/crates/ring/src/ec/suite_b/
Dops.rs413 max_exclusive: &[Limb], in parse_big_endian_fixed_consttime()
430 r: *mut Limb, in LIMBS_add_mod()
431 a: *const Limb, in LIMBS_add_mod()
432 b: *const Limb, in LIMBS_add_mod()
433 m: *const Limb, in LIMBS_add_mod()
510 fn GFp_p384_elem_sub(r: *mut Limb, a: *const Limb, b: *const Limb); in p384_elem_sub_test()
521 elem_sub: unsafe extern "C" fn(r: *mut Limb, a: *const Limb, b: *const Limb), in elem_sub_test()
561 fn GFp_p384_elem_div_by_2(r: *mut Limb, a: *const Limb); in p384_elem_div_by_2_test()
572 elem_div_by_2: unsafe extern "C" fn(r: *mut Limb, a: *const Limb), in elem_div_by_2_test()
595 fn GFp_nistz256_neg(r: *mut Limb, a: *const Limb); in p256_elem_neg_test()
[all …]
/external/rust/crates/ring/crypto/limbs/
Dlimbs.h22 typedef crypto_word Limb; typedef