Searched refs:BN_MASK2 (Results 1 – 18 of 18) sorted by relevance
43 w &= BN_MASK2; in BN_mod_word()67 w &= BN_MASK2; in BN_div_word()86 ret = (l - ((d * w) & BN_MASK2)) & BN_MASK2; in BN_div_word()104 w &= BN_MASK2; in BN_add_word()121 a->d[i] = l = (a->d[i] + w) & BN_MASK2; in BN_add_word()139 w &= BN_MASK2; in BN_sub_word()170 a->d[i] = (a->d[i] - w) & BN_MASK2; in BN_sub_word()186 w &= BN_MASK2; in BN_mul_word()
213 return BN_MASK2; in bn_div_words()326 t = (t + c) & BN_MASK2; in bn_add_words()332 t = (t + c) & BN_MASK2; in bn_add_words()338 t = (t + c) & BN_MASK2; in bn_add_words()344 t = (t + c) & BN_MASK2; in bn_add_words()357 t = (t + c) & BN_MASK2; in bn_add_words()384 t2 = (t1 - c) & BN_MASK2; in bn_sub_words()391 t2 = (t1 - c) & BN_MASK2; in bn_sub_words()398 t2 = (t1 - c) & BN_MASK2; in bn_sub_words()405 t2 = (t1 - c) & BN_MASK2; in bn_sub_words()[all …]
94 # define BN_MASK2 (0xffffffffffffffffL) macro111 # define BN_MASK2 (0xffffffffffffffffLL) macro130 # define BN_MASK2 (0xffffffffL) macro480 # define Lw(t) (((BN_ULONG)(t))&BN_MASK2)604 l=(l+m)&BN_MASK2; h += (l < m); \618 l=(l+(c))&BN_MASK2; h += (l < (c)); \620 l=(l+(c))&BN_MASK2; h += (l < (c)); \621 (c)=h&BN_MASK2; \634 l+=(c); h += ((l&BN_MASK2) < (c)); \635 (c)=h&BN_MASK2; \[all …]
46 r[0] = (0 - t - c) & BN_MASK2; in bn_sub_part_words()53 r[1] = (0 - t - c) & BN_MASK2; in bn_sub_part_words()60 r[2] = (0 - t - c) & BN_MASK2; in bn_sub_part_words()67 r[3] = (0 - t - c) & BN_MASK2; in bn_sub_part_words()80 r[0] = (t - c) & BN_MASK2; in bn_sub_part_words()87 r[1] = (t - c) & BN_MASK2; in bn_sub_part_words()94 r[2] = (t - c) & BN_MASK2; in bn_sub_part_words()101 r[3] = (t - c) & BN_MASK2; in bn_sub_part_words()300 ln = (lo + c1) & BN_MASK2; in bn_mul_recursive()311 ln = (lo + 1) & BN_MASK2; in bn_mul_recursive()[all …]
76 temp = ((ap[ai] & mask) + carry) & BN_MASK2; in bn_mod_add_fixed_top()80 tp[i] = ((bp[bi] & mask) + temp) & BN_MASK2; in bn_mod_add_fixed_top()166 ta = ((ap[i] & mask) + carry) & BN_MASK2; in bn_mod_sub_fixed_top()168 rp[i] = (rp[i] + ta) & BN_MASK2; in bn_mod_sub_fixed_top()173 ta = ((ap[i] & mask) + carry) & BN_MASK2; in bn_mod_sub_fixed_top()175 rp[i] = (rp[i] + ta) & BN_MASK2; in bn_mod_sub_fixed_top()
36 *(rp++) = ((t << 1) | c) & BN_MASK2; in BN_lshift1()72 rp[i] = ((t >> 1) & BN_MASK2) | c; in BN_rshift1()133 t[i] = (m | ((l >> rb) & rmask)) & BN_MASK2; in bn_lshift_fixed_top()135 t[0] = (l << lb) & BN_MASK2; in bn_lshift_fixed_top()
136 return (Q | mask) & BN_MASK2; in bn_div_3_words()154 d[i] = ((n << lshift) | m) & BN_MASK2; in bn_left_align()353 q = BN_MASK2; in bn_div_fixed_top()370 rem = (n1 - q * d0) & BN_MASK2; in bn_div_fixed_top()388 rem = (n1 - q * d0) & BN_MASK2; in bn_div_fixed_top()
126 v = bn_mul_add_words(rp, np, nl, (rp[0] * n0) & BN_MASK2); in bn_from_montgomery_word()127 v = (v + carry + rp[nl]) & BN_MASK2; in bn_from_montgomery_word()327 Ri->d[0] = BN_MASK2; in BN_MONT_CTX_set()328 Ri->d[1] = BN_MASK2; in BN_MONT_CTX_set()358 if (!BN_set_word(Ri, BN_MASK2)) in BN_MONT_CTX_set()
108 mask = (0 - x) & BN_MASK2; in BN_num_bits_word()115 mask = (0 - x) & BN_MASK2; in BN_num_bits_word()121 mask = (0 - x) & BN_MASK2; in BN_num_bits_word()127 mask = (0 - x) & BN_MASK2; in BN_num_bits_word()133 mask = (0 - x) & BN_MASK2; in BN_num_bits_word()139 mask = (0 - x) & BN_MASK2; in BN_num_bits_word()410 return BN_MASK2; in BN_get_word()861 a->d[w] &= ~(BN_MASK2 << b); in ossl_bn_mask_bits_fixed_top()
112 t2 = (t1 + carry) & BN_MASK2; in BN_uadd()157 t2 = (t1 - borrow) & BN_MASK2; in BN_usub()
493 BN_ULONG maxdelta = BN_MASK2 - primes[trial_divisions - 1]; in probable_prime()553 BN_ULONG maxdelta = BN_MASK2 - primes[trial_divisions - 1]; in probable_prime_dh()559 if (maxdelta > BN_MASK2 - BN_get_word(add)) in probable_prime_dh()560 maxdelta = BN_MASK2 - BN_get_word(add); in probable_prime_dh()
222 ln = (lo + c1) & BN_MASK2; in bn_sqr_recursive()233 ln = (lo + 1) & BN_MASK2; in bn_sqr_recursive()
816 *(ap++) = ((t << 1) | c) & BN_MASK2; in BN_nist_mod_256()1075 *(ap++) = ((t << 1) | c) & BN_MASK2; in BN_nist_mod_384()1154 #define BN_NIST_521_TOP_MASK ((BN_ULONG)BN_MASK2>>BN_NIST_521_LSHIFT)1201 t_d[i] = (tmp | val << BN_NIST_521_LSHIFT) & BN_MASK2; in BN_nist_mod_521()1204 (tmp = t_d[i + 1]) << BN_NIST_521_LSHIFT) & BN_MASK2; in BN_nist_mod_521()
404 r->d[0] = (0 - m->d[0]) & BN_MASK2; in BN_mod_exp_mont()406 r->d[i] = (~m->d[i]) & BN_MASK2; in BN_mod_exp_mont()497 ret = a->d[wordpos] & BN_MASK2; in bn_get_bits()505 return ret & BN_MASK2; in bn_get_bits()769 tmp.d[0] = (0 - m->d[0]) & BN_MASK2; in BN_mod_exp_mont_consttime()771 tmp.d[i] = (~m->d[i]) & BN_MASK2; in BN_mod_exp_mont_consttime()
659 udp[i] = ((u0 >> 1) | (u1 << (BN_BITS2 - 1))) & BN_MASK2; in BN_GF2m_mod_inv_vartime()662 bdp[i] = ((b0 >> 1) | (b1 << (BN_BITS2 - 1))) & BN_MASK2; in BN_GF2m_mod_inv_vartime()
259 # define BN_MASK2 0xffffffffffffffffL macro271 r[0] = (t1 - t2 - c) & BN_MASK2; in bn_sub_words()279 r[1] = (t1 - t2 - c) & BN_MASK2; in bn_sub_words()287 r[2] = (t1 - t2 - c) & BN_MASK2; in bn_sub_words()295 r[3] = (t1 - t2 - c) & BN_MASK2; in bn_sub_words()
1724 # h = ((h<<BN_BITS4)|(l>>BN_BITS4))&BN_MASK2
17905 equal (it gave wrong results if `(rem=(n1-q*d0)&BN_MASK2) < d0)`.
Completed in 114 milliseconds