Home
last modified time | relevance | path

Searched refs:LIMB_BITS (Results 1 – 12 of 12) sorted by relevance

/external/rust/crates/ring/src/
Dlimb.rs35 pub const LIMB_BITS: usize = 64; constant
37 pub const LIMB_BITS: usize = 32; constant
55 pub const LIMB_BYTES: usize = (LIMB_BITS + 7) / 8;
117 for high_limb_num_bits in (1..=LIMB_BITS).rev() { in limbs_minimal_bits()
121 ((num_limbs - 1) * LIMB_BITS) + high_limb_num_bits, in limbs_minimal_bits()
292 let num_whole_windows = (num_limbs * LIMB_BITS) / 5; in fold_5_bit_windows()
293 let mut leading_bits = (num_limbs * LIMB_BITS) - (num_whole_windows * 5); in fold_5_bit_windows()
297 BitIndex(Wrapping(LIMB_BITS - leading_bits)) in fold_5_bit_windows()
315 if window_low_bit.0 > Wrapping(LIMB_BITS) - WINDOW_BITS { in fold_5_bit_windows()
321 while window_low_bit.0 < Wrapping(LIMB_BITS) { in fold_5_bit_windows()
[all …]
/external/rust/crates/ring/crypto/limbs/
Dlimbs.inl37 #if LIMB_BITS == 64
41 #elif LIMB_BITS == 32
49 #if LIMB_BITS == 64
51 #elif LIMB_BITS == 32
66 ret = (Carry)(x >> LIMB_BITS);
80 ret = (Carry)(x >> LIMB_BITS);
96 ret = (Carry)((x >> LIMB_BITS) & 1);
110 ret = (Carry)((x >> LIMB_BITS) & 1);
Dlimbs.h24 #define LIMB_BITS CRYPTO_WORD_BITS macro
25 #define LIMB_HIGH_BIT ((Limb)(1) << (LIMB_BITS - 1))
Dlimbs.c141 Limb new_carry = limb >> (LIMB_BITS - 1); in LIMBS_shl_mod()
155 if (num_limbs % (512 / LIMB_BITS) != 0) { in LIMBS_select_512_32()
165 Limb high_bits = (higher_limb << (LIMB_BITS - index_within_word)) in LIMBS_window5_split_window()
/external/rust/crates/ring/src/ec/suite_b/ops/
Delem.rs17 limb::{Limb, LIMB_BITS},
120 pub const MAX_LIMBS: usize = (384 + (LIMB_BITS - 1)) / LIMB_BITS;
Dp384.rs28 num_limbs: 384 / LIMB_BITS,
Dp256.rs28 num_limbs: 256 / LIMB_BITS,
/external/rust/crates/ring/src/ec/curve25519/
Dops.rs21 limb::{Limb, LIMB_BITS},
38 const ELEM_LIMBS: usize = 5 * 64 / LIMB_BITS;
/external/rust/crates/ring/crypto/fipsmodule/ec/
Decp_nistz384.h20 #define P384_LIMBS (384u / LIMB_BITS)
Decp_nistz256.h25 #define P256_LIMBS (256u / LIMB_BITS)
Dgfp_p384.c140 (a[P384_LIMBS - i - 1] >> 1) | (carry << (LIMB_BITS - 1)); in elem_div_by_2()
/external/rust/crates/ring/src/arithmetic/
Dbigint.rs42 limb::{self, Limb, LimbMask, LIMB_BITS, LIMB_BYTES},
175 pub const MODULUS_MAX_LIMBS: usize = 8192 / LIMB_BITS;
277 debug_assert_eq!(LIMB_BITS, 32); in from_boxed_limbs()
611 let r = (m_bits + (LIMB_BITS - 1)) / LIMB_BITS * LIMB_BITS; in newRR()
616 base.limbs[bit / LIMB_BITS] = 1 << (bit % LIMB_BITS); in newRR()
1188 const N0_LIMBS_USED: usize = 64 / LIMB_BITS;
1200 Self([n0 as Limb, (n0 >> LIMB_BITS) as Limb]) in from()