Home
last modified time | relevance | path

Searched refs:BN_MASK2 (Results 1 – 11 of 11) sorted by relevance

/external/boringssl/src/crypto/bn/
Dgeneric.c135 #define L2HBITS(a) (((a) << BN_BITS4) & BN_MASK2)
151 m = (m + m1) & BN_MASK2; \
156 lt = (lt + m1) & BN_MASK2; \
175 l = (l + m) & BN_MASK2; \
192 l = (l + (c)) & BN_MASK2; \
196 l = (l + (c)) & BN_MASK2; \
199 (c) = h & BN_MASK2; \
214 if ((l & BN_MASK2) < (c)) \
216 (c) = h & BN_MASK2; \
217 (r) = l & BN_MASK2; \
[all …]
Dadd.c137 t2 = (t1 + 1) & BN_MASK2; in BN_uadd()
166 w &= BN_MASK2; in BN_add_word()
189 a->d[i] = l = (a->d[i] + w) & BN_MASK2; in BN_add_word()
290 t1 = (t1 - t2 - 1) & BN_MASK2; in BN_usub()
293 t1 = (t1 - t2) & BN_MASK2; in BN_usub()
295 *(rp++) = t1 & BN_MASK2; in BN_usub()
308 t2 = (t1 - 1) & BN_MASK2; in BN_usub()
330 w &= BN_MASK2; in BN_sub_word()
366 a->d[i] = (a->d[i] - w) & BN_MASK2; in BN_sub_word()
Dinternal.h153 #define BN_MASK2 (0xffffffffffffffffUL) macro
168 #define BN_MASK2 (0xffffffffUL) macro
197 #define Lw(t) (((BN_ULONG)(t))&BN_MASK2)
198 #define Hw(t) (((BN_ULONG)((t)>>BN_BITS2))&BN_MASK2)
230 #define L2HBITS(a) (((a) << BN_BITS4) & BN_MASK2)
246 m = (m + m1) & BN_MASK2; \
251 lt = (lt + m1) & BN_MASK2; \
Dshift.c93 t[nw + i + 1] |= (l >> rb) & BN_MASK2; in BN_lshift()
94 t[nw + i] = (l << lb) & BN_MASK2; in BN_lshift()
124 *(rp++) = ((t << 1) | c) & BN_MASK2; in BN_lshift1()
176 tmp = (l >> rb) & BN_MASK2; in BN_rshift()
178 *(t++) = (tmp | (l << lb)) & BN_MASK2; in BN_rshift()
180 if ((l = (l >> rb) & BN_MASK2)) { in BN_rshift()
213 rp[i] = ((t >> 1) & BN_MASK2) | c; in BN_rshift1()
294 a->d[w] &= ~(BN_MASK2 << b); in BN_mask_bits()
Dmul.c164 r[0] = (0 - t - c) & BN_MASK2; in bn_sub_part_words()
173 r[1] = (0 - t - c) & BN_MASK2; in bn_sub_part_words()
182 r[2] = (0 - t - c) & BN_MASK2; in bn_sub_part_words()
191 r[3] = (0 - t - c) & BN_MASK2; in bn_sub_part_words()
206 r[0] = (t - c) & BN_MASK2; in bn_sub_part_words()
215 r[1] = (t - c) & BN_MASK2; in bn_sub_part_words()
224 r[2] = (t - c) & BN_MASK2; in bn_sub_part_words()
233 r[3] = (t - c) & BN_MASK2; in bn_sub_part_words()
429 ln = (lo + c1) & BN_MASK2; in bn_mul_recursive()
438 ln = (lo + 1) & BN_MASK2; in bn_mul_recursive()
[all …]
Dmontgomery.c228 Ri->d[0] = BN_MASK2; in BN_MONT_CTX_set()
229 Ri->d[1] = BN_MASK2; in BN_MONT_CTX_set()
262 if (!BN_set_word(Ri, BN_MASK2)) { in BN_MONT_CTX_set()
361 v = bn_mul_add_words(rp, np, nl, (rp[0] * n0) & BN_MASK2);
362 v = (v + carry + rp[nl]) & BN_MASK2;
448 v=bn_mul_add_words(rp,np,nl,(rp[0]*n0)&BN_MASK2); in BN_from_montgomery_word()
449 v = (v+carry+rp[nl])&BN_MASK2; in BN_from_montgomery_word()
Ddiv.c260 q = BN_MASK2; in BN_div()
275 rem = (n1 - q * d0) & BN_MASK2; in BN_div()
301 rem = (n1 - q * d0) & BN_MASK2; in BN_div()
568 w &= BN_MASK2; in BN_div_word()
591 ret = (l - ((d * w) & BN_MASK2)) & BN_MASK2; in BN_div_word()
615 w &= BN_MASK2; in BN_mod_word()
Dexponentiation.c707 r->d[0] = (0 - m->d[0]) & BN_MASK2; in BN_mod_exp_mont()
709 r->d[i] = (~m->d[i]) & BN_MASK2; in BN_mod_exp_mont()
984 tmp.d[0] = (0 - m->d[0]) & BN_MASK2; in BN_mod_exp_mont_consttime()
986 tmp.d[i] = (~m->d[i]) & BN_MASK2; in BN_mod_exp_mont_consttime()
Dprime.c646 BN_ULONG maxdelta = BN_MASK2 - primes[NUMPRIMES - 1]; in probable_prime()
Dconvert.c523 return BN_MASK2; in BN_get_word()
/external/boringssl/src/crypto/bn/asm/
Dx86_64-gcc.c251 #define BN_MASK2 0xffffffffffffffffL macro
263 r[0] = (t1 - t2 - c) & BN_MASK2; in bn_sub_words()
273 r[1] = (t1 - t2 - c) & BN_MASK2; in bn_sub_words()
283 r[2] = (t1 - t2 - c) & BN_MASK2; in bn_sub_words()
293 r[3] = (t1 - t2 - c) & BN_MASK2; in bn_sub_words()