Home
last modified time | relevance | path

Searched refs:MP_MASK (Results 1 – 25 of 32) sorted by relevance

12

/external/dropbear/libtommath/
Dbn_mp_div.c199 if (tmp > (mp_word) MP_MASK) in mp_div()
200 tmp = MP_MASK; in mp_div()
201 q.dp[i - t - 1] = (mp_digit) (tmp & (mp_word) (MP_MASK)); in mp_div()
209 q.dp[i - t - 1] = (q.dp[i - t - 1] + 1) & MP_MASK; in mp_div()
211 q.dp[i - t - 1] = (q.dp[i - t - 1] - 1) & MP_MASK; in mp_div()
254 q.dp[i - t - 1] = (q.dp[i - t - 1] - 1UL) & MP_MASK; in mp_div()
Dbn_mp_montgomery_reduce.c55 mu = (mp_digit) (((mp_word)x->dp[ix]) * ((mp_word)rho) & MP_MASK); in mp_montgomery_reduce()
82 *tmpx++ = (mp_digit)(r & ((mp_word) MP_MASK)); in mp_montgomery_reduce()
91 *tmpx++ &= MP_MASK; in mp_montgomery_reduce()
Dbn_s_mp_sqr.c41 t.dp[ix+ix] = (mp_digit) (r & ((mp_word) MP_MASK)); in s_mp_sqr()
62 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK)); in s_mp_sqr()
70 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK)); in s_mp_sqr()
Dbn_fast_mp_montgomery_reduce.c76 mu = (mp_digit) (((W[ix] & MP_MASK) * rho) & MP_MASK); in fast_mp_montgomery_reduce()
147 *tmpx++ = (mp_digit)(*_W++ & ((mp_word) MP_MASK)); in fast_mp_montgomery_reduce()
Dbn_s_mp_sub.c60 *tmpc++ &= MP_MASK; in s_mp_sub()
72 *tmpc++ &= MP_MASK; in s_mp_sub()
Dbn_s_mp_add.c74 *tmpc++ &= MP_MASK; in s_mp_add()
89 *tmpc++ &= MP_MASK; in s_mp_add()
Dbn_mp_sub_d.c71 *tmpc++ &= MP_MASK; in mp_sub_d()
77 *tmpc++ &= MP_MASK; in mp_sub_d()
Dbn_mp_add_d.c68 *tmpc++ &= MP_MASK; in mp_add_d()
74 *tmpc++ &= MP_MASK; in mp_add_d()
Dbn_fast_s_mp_sqr.c85 W[ix] = (mp_digit)(_W & MP_MASK); in fast_s_mp_sqr()
99 *tmpb++ = W[ix] & MP_MASK; in fast_s_mp_sqr()
Dbn_mp_dr_is_modulus.c32 if (a->dp[ix] != MP_MASK) { in mp_dr_is_modulus()
Dbn_mp_set.c22 a->dp[0] = b & MP_MASK; in mp_set()
Dbn_mp_reduce_is_2k_l.c30 if (a->dp[ix] == MP_MASK) { in mp_reduce_is_2k_l()
Dbn_mp_reduce_is_2k.c39 if (iz > (mp_digit)MP_MASK) { in mp_reduce_is_2k()
Dbn_mp_read_unsigned_bin.c43 a->dp[0] = (*b & MP_MASK); in mp_read_unsigned_bin()
Dbn_mp_montgomery_setup.c51 *rho = (unsigned long)(((mp_word)1 << ((mp_word) DIGIT_BIT)) - x) & MP_MASK; in mp_montgomery_setup()
Dbn_mp_rand.c32 d = ((mp_digit) abs (rand ())) & MP_MASK; in mp_rand()
Dbn_mp_mul_d.c54 *tmpc++ = (mp_digit) (r & ((mp_word) MP_MASK)); in mp_mul_d()
Dbn_mp_mul_2.c52 *tmpb++ = ((*tmpa++ << ((mp_digit)1)) | r) & MP_MASK; in mp_mul_2()
Dbn_mp_dr_reduce.c66 *tmpx1++ = (mp_digit)(r & MP_MASK); in mp_dr_reduce()
Dbn_mp_mul_2d.c66 *tmpc = ((*tmpc << d) | r) & MP_MASK; in mp_mul_2d()
/external/wpa_supplicant_6/wpa_supplicant/src/tls/
Dlibtommath.c81 #define MP_MASK ((((mp_digit)1)<<((mp_digit)DIGIT_BIT))-((mp_digit)1)) macro
261 *tmpc++ &= MP_MASK; in s_mp_add()
276 *tmpc++ &= MP_MASK; in s_mp_add()
335 *tmpc++ &= MP_MASK; in s_mp_sub()
347 *tmpc++ &= MP_MASK; in s_mp_sub()
970 a->dp[0] = (*b & MP_MASK); in mp_read_unsigned_bin()
1312 a->dp[0] = b & MP_MASK; in mp_set()
1415 *tmpc = ((*tmpc << d) | r) & MP_MASK; in mp_mul_2d()
1772 if (tmp > (mp_word) MP_MASK) in mp_div()
1773 tmp = MP_MASK; in mp_div()
[all …]
/external/dropbear/libtommath/etc/
Ddrprime.c22 a.dp[y] = MP_MASK; in main()
33 if (a.dp[0] >= MP_MASK) break; in main()
D2kprime.c30 if (z > MP_MASK) { in main()
/external/dropbear/libtommath/pre_gen/
Dmpi.c280 mu = (mp_digit) (((W[ix] & MP_MASK) * rho) & MP_MASK); in fast_mp_montgomery_reduce()
351 *tmpx++ = (mp_digit)(*_W++ & ((mp_word) MP_MASK)); in fast_mp_montgomery_reduce()
457 W[ix] = ((mp_digit)_W) & MP_MASK; in fast_s_mp_mul_digs()
558 W[ix] = ((mp_digit)_W) & MP_MASK; in fast_s_mp_mul_high_digs()
678 W[ix] = (mp_digit)(_W & MP_MASK); in fast_s_mp_sqr()
692 *tmpb++ = W[ix] & MP_MASK; in fast_s_mp_sqr()
935 *tmpc++ &= MP_MASK; in mp_add_d()
941 *tmpc++ &= MP_MASK; in mp_add_d()
1754 if (tmp > (mp_word) MP_MASK) in mp_div()
1755 tmp = MP_MASK; in mp_div()
[all …]
/external/wpa_supplicant/
Dlibtommath.c58 #define MP_MASK ((((mp_digit)1)<<((mp_digit)DIGIT_BIT))-((mp_digit)1)) macro
221 *tmpc++ &= MP_MASK; in s_mp_add()
236 *tmpc++ &= MP_MASK; in s_mp_add()
295 *tmpc++ &= MP_MASK; in s_mp_sub()
307 *tmpc++ &= MP_MASK; in s_mp_sub()
922 a->dp[0] = (*b & MP_MASK); in mp_read_unsigned_bin()
1262 a->dp[0] = b & MP_MASK; in mp_set()
1363 *tmpc = ((*tmpc << d) | r) & MP_MASK; in mp_mul_2d()
2115 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK)); in s_mp_mul_digs()
2193 W[ix] = ((mp_digit)_W) & MP_MASK; in fast_s_mp_mul_digs()
[all …]

12