Symbol: BN_BITS2
crypto/openssl/crypto/bn/bn_asm.c
200
return ((BN_ULONG)(((((BN_ULLONG)h) << BN_BITS2) | l) / (BN_ULLONG)d));
crypto/openssl/crypto/bn/bn_asm.c
216
assert((i == BN_BITS2) || (h <= (BN_ULONG)1 << i));
crypto/openssl/crypto/bn/bn_asm.c
218
i = BN_BITS2 - i;
crypto/openssl/crypto/bn/bn_asm.c
224
h = (h << i) | (l >> (BN_BITS2 - i));
crypto/openssl/crypto/bn/bn_asm.c
284
ll >>= BN_BITS2;
crypto/openssl/crypto/bn/bn_asm.c
287
ll >>= BN_BITS2;
crypto/openssl/crypto/bn/bn_asm.c
290
ll >>= BN_BITS2;
crypto/openssl/crypto/bn/bn_asm.c
293
ll >>= BN_BITS2;
crypto/openssl/crypto/bn/bn_asm.c
303
ll >>= BN_BITS2;
crypto/openssl/crypto/bn/bn_conv.c
30
for (j = BN_BITS2 - 8; j >= 0; j -= 8) {
crypto/openssl/crypto/bn/bn_dh.c
16
#if BN_BITS2 == 64
crypto/openssl/crypto/bn/bn_div.c
117
BN_ULLONG R = ((BN_ULLONG)m[0] << BN_BITS2) | m[-1];
crypto/openssl/crypto/bn/bn_div.c
118
BN_ULLONG D = ((BN_ULLONG)d0 << BN_BITS2) | d1;
crypto/openssl/crypto/bn/bn_div.c
122
for (i = 0; i < BN_BITS2; i++) {
crypto/openssl/crypto/bn/bn_div.c
131
mask = 0 - (Q >> (BN_BITS2 - 1)); /* does it overflow? */
crypto/openssl/crypto/bn/bn_div.c
147
lshift = BN_BITS2 - rshift;
crypto/openssl/crypto/bn/bn_div.c
148
rshift %= BN_BITS2; /* say no to undefined behaviour */
crypto/openssl/crypto/bn/bn_div.c
362
q = (BN_ULONG)(((((BN_ULLONG)n0) << BN_BITS2) | n1) / d0);
crypto/openssl/crypto/bn/bn_div.c
377
if (t2 <= ((((BN_ULLONG)rem) << BN_BITS2) | n2))
crypto/openssl/crypto/bn/bn_div.c
98
#if BN_BITS2 == 64 && defined(__SIZEOF_INT128__) && __SIZEOF_INT128__ == 16
crypto/openssl/crypto/bn/bn_exp.c
398
if (m->d[j - 1] & (((BN_ULONG)1) << (BN_BITS2 - 1))) {
crypto/openssl/crypto/bn/bn_exp.c
492
wordpos = bitpos / BN_BITS2;
crypto/openssl/crypto/bn/bn_exp.c
493
bitpos %= BN_BITS2;
crypto/openssl/crypto/bn/bn_exp.c
499
ret |= a->d[wordpos] << (BN_BITS2 - bitpos);
crypto/openssl/crypto/bn/bn_exp.c
636
bits = p->top * BN_BITS2;
crypto/openssl/crypto/bn/bn_exp.c
751
if (m->d[top - 1] & (((BN_ULONG)1) << (BN_BITS2 - 1))) {
crypto/openssl/crypto/bn/bn_gcd.c
626
pow2_shifts *= BN_BITS2;
crypto/openssl/crypto/bn/bn_gcd.c
628
for (j = 0; j < BN_BITS2; j++) {
crypto/openssl/crypto/bn/bn_gf2m.c
1151
for (j = BN_BITS2 - 1; j >= 0; j--) {
crypto/openssl/crypto/bn/bn_gf2m.c
1154
p[k] = BN_BITS2 * i + j;
crypto/openssl/crypto/bn/bn_gf2m.c
313
dN = p[0] / BN_BITS2;
crypto/openssl/crypto/bn/bn_gf2m.c
325
d0 = n % BN_BITS2;
crypto/openssl/crypto/bn/bn_gf2m.c
326
d1 = BN_BITS2 - d0;
crypto/openssl/crypto/bn/bn_gf2m.c
327
n /= BN_BITS2;
crypto/openssl/crypto/bn/bn_gf2m.c
335
d0 = p[0] % BN_BITS2;
crypto/openssl/crypto/bn/bn_gf2m.c
336
d1 = BN_BITS2 - d0;
crypto/openssl/crypto/bn/bn_gf2m.c
345
d0 = p[0] % BN_BITS2;
crypto/openssl/crypto/bn/bn_gf2m.c
349
d1 = BN_BITS2 - d0;
crypto/openssl/crypto/bn/bn_gf2m.c
362
n = p[k] / BN_BITS2;
crypto/openssl/crypto/bn/bn_gf2m.c
363
d0 = p[k] % BN_BITS2;
crypto/openssl/crypto/bn/bn_gf2m.c
364
d1 = BN_BITS2 - d0;
crypto/openssl/crypto/bn/bn_gf2m.c
649
udp[i] = ((u0 >> 1) | (u1 << (BN_BITS2 - 1))) & BN_MASK2;
crypto/openssl/crypto/bn/bn_gf2m.c
652
bdp[i] = ((b0 >> 1) | (b1 << (BN_BITS2 - 1))) & BN_MASK2;
crypto/openssl/crypto/bn/bn_gf2m.c
660
if (ubits <= BN_BITS2) {
crypto/openssl/crypto/bn/bn_gf2m.c
688
int utop = (ubits - 1) / BN_BITS2;
crypto/openssl/crypto/bn/bn_gf2m.c
692
ubits = utop * BN_BITS2 + BN_num_bits_word(ul);
crypto/openssl/crypto/bn/bn_lib.c
106
#if BN_BITS2 > 32
crypto/openssl/crypto/bn/bn_lib.c
109
mask = (0 - (mask >> (BN_BITS2 - 1)));
crypto/openssl/crypto/bn/bn_lib.c
1158
limb >>= BN_BITS2 - 1;
crypto/openssl/crypto/bn/bn_lib.c
116
mask = (0 - (mask >> (BN_BITS2 - 1)));
crypto/openssl/crypto/bn/bn_lib.c
122
mask = (0 - (mask >> (BN_BITS2 - 1)));
crypto/openssl/crypto/bn/bn_lib.c
128
mask = (0 - (mask >> (BN_BITS2 - 1)));
crypto/openssl/crypto/bn/bn_lib.c
134
mask = (0 - (mask >> (BN_BITS2 - 1)));
crypto/openssl/crypto/bn/bn_lib.c
140
mask = (0 - (mask >> (BN_BITS2 - 1)));
crypto/openssl/crypto/bn/bn_lib.c
163
ret += BN_BITS2 & (~mask & ~past_i);
crypto/openssl/crypto/bn/bn_lib.c
199
return ((i * BN_BITS2) + BN_num_bits_word(a->d[i]));
crypto/openssl/crypto/bn/bn_lib.c
268
if (words > (INT_MAX / (4 * BN_BITS2))) {
crypto/openssl/crypto/bn/bn_lib.c
796
i = n / BN_BITS2;
crypto/openssl/crypto/bn/bn_lib.c
797
j = n % BN_BITS2;
crypto/openssl/crypto/bn/bn_lib.c
820
i = n / BN_BITS2;
crypto/openssl/crypto/bn/bn_lib.c
821
j = n % BN_BITS2;
crypto/openssl/crypto/bn/bn_lib.c
837
i = n / BN_BITS2;
crypto/openssl/crypto/bn/bn_lib.c
838
j = n % BN_BITS2;
crypto/openssl/crypto/bn/bn_lib.c
851
w = n / BN_BITS2;
crypto/openssl/crypto/bn/bn_lib.c
852
b = n % BN_BITS2;
crypto/openssl/crypto/bn/bn_lib.c
949
condition = ((~condition & ((condition - 1))) >> (BN_BITS2 - 1)) - 1;
crypto/openssl/crypto/bn/bn_local.h
210
#define bn_check_size(bn, bits) bn_wcheck_size(bn, ((bits + BN_BITS2 - 1)) / BN_BITS2)
crypto/openssl/crypto/bn/bn_local.h
474
#define Hw(t) (((BN_ULONG)((t) >> BN_BITS2)) & BN_MASK2)
crypto/openssl/crypto/bn/bn_local.h
573
#define LHBITS(a) (((a) >> BN_BITS2) & BN_MASKl)
crypto/openssl/crypto/bn/bn_local.h
574
#define LL2HBITS(a) ((BN_ULLONG)((a) & BN_MASKl) << BN_BITS2)
crypto/openssl/crypto/bn/bn_local.h
681
if (bits > (INT_MAX - BN_BITS2 + 1))
crypto/openssl/crypto/bn/bn_local.h
684
if (((bits + BN_BITS2 - 1) / BN_BITS2) <= (a)->dmax)
crypto/openssl/crypto/bn/bn_local.h
687
return bn_expand2((a), (bits + BN_BITS2 - 1) / BN_BITS2);
crypto/openssl/crypto/bn/bn_mod.c
58
BN_ULONG storage[1024 / BN_BITS2];
crypto/openssl/crypto/bn/bn_mont.c
291
mont->ri = (BN_num_bits(mod) + (BN_BITS2 - 1)) / BN_BITS2 * BN_BITS2;
crypto/openssl/crypto/bn/bn_mont.c
293
#if defined(OPENSSL_BN_ASM_MONT) && (BN_BITS2 <= 32)
crypto/openssl/crypto/bn/bn_mont.c
302
if (!(BN_set_bit(R, 2 * BN_BITS2)))
crypto/openssl/crypto/bn/bn_mont.c
315
if (!BN_lshift(Ri, Ri, 2 * BN_BITS2))
crypto/openssl/crypto/bn/bn_mont.c
339
if (!(BN_set_bit(R, BN_BITS2)))
crypto/openssl/crypto/bn/bn_mont.c
350
if (!BN_lshift(Ri, Ri, BN_BITS2))
crypto/openssl/crypto/bn/bn_mont.c
476
#if (BN_BITS2 <= 32) && defined(OPENSSL_BN_ASM_MONT)
crypto/openssl/crypto/bn/bn_mont.c
479
#elif BN_BITS2 <= 32
crypto/openssl/crypto/bn/bn_nist.c
103
#elif BN_BITS2 == 32
crypto/openssl/crypto/bn/bn_nist.c
1070
carry = (int)bn_add_words(r_d + (128 / BN_BITS2), r_d + (128 / BN_BITS2),
crypto/openssl/crypto/bn/bn_nist.c
1138
#define BN_NIST_521_RSHIFT (521 % BN_BITS2)
crypto/openssl/crypto/bn/bn_nist.c
1139
#define BN_NIST_521_LSHIFT (BN_BITS2 - BN_NIST_521_RSHIFT)
crypto/openssl/crypto/bn/bn_nist.c
13
#define BN_NIST_192_TOP (192 + BN_BITS2 - 1) / BN_BITS2
crypto/openssl/crypto/bn/bn_nist.c
14
#define BN_NIST_224_TOP (224 + BN_BITS2 - 1) / BN_BITS2
crypto/openssl/crypto/bn/bn_nist.c
15
#define BN_NIST_256_TOP (256 + BN_BITS2 - 1) / BN_BITS2
crypto/openssl/crypto/bn/bn_nist.c
16
#define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
crypto/openssl/crypto/bn/bn_nist.c
17
#define BN_NIST_521_TOP (521 + BN_BITS2 - 1) / BN_BITS2
crypto/openssl/crypto/bn/bn_nist.c
20
#if BN_BITS2 == 64
crypto/openssl/crypto/bn/bn_nist.c
283
#if BN_BITS2 == 64
crypto/openssl/crypto/bn/bn_nist.c
524
#if BN_BITS2 == 64
crypto/openssl/crypto/bn/bn_nist.c
537
#if defined(NIST_INT64) && BN_BITS2 != 64
crypto/openssl/crypto/bn/bn_nist.c
588
#if BN_BITS2 == 64
crypto/openssl/crypto/bn/bn_nist.c
605
#if BN_BITS2 == 64
crypto/openssl/crypto/bn/bn_nist.c
614
#if BN_BITS2 == 64
crypto/openssl/crypto/bn/bn_prime.c
32
#if BN_BITS2 == 64
crypto/openssl/crypto/bn/bn_print.c
41
for (j = BN_BITS2 - 4; j >= 0; j -= 4) {
crypto/openssl/crypto/bn/bn_rsa_fips186_4.c
31
#if BN_BITS2 == 64
crypto/openssl/crypto/bn/bn_shift.c
116
nw = n / BN_BITS2;
crypto/openssl/crypto/bn/bn_shift.c
121
lb = (unsigned int)n % BN_BITS2;
crypto/openssl/crypto/bn/bn_shift.c
122
rb = BN_BITS2 - lb;
crypto/openssl/crypto/bn/bn_shift.c
123
rb %= BN_BITS2; /* say no to undefined behaviour */
crypto/openssl/crypto/bn/bn_shift.c
185
nw = n / BN_BITS2;
crypto/openssl/crypto/bn/bn_shift.c
192
rb = (unsigned int)n % BN_BITS2;
crypto/openssl/crypto/bn/bn_shift.c
193
lb = BN_BITS2 - rb;
crypto/openssl/crypto/bn/bn_shift.c
194
lb %= BN_BITS2; /* say no to undefined behaviour */
crypto/openssl/crypto/bn/bn_shift.c
37
c = t >> (BN_BITS2 - 1);
crypto/openssl/crypto/bn/bn_shift.c
68
c = t << (BN_BITS2 - 1);
crypto/openssl/crypto/bn/bn_shift.c
73
c = t << (BN_BITS2 - 1);
crypto/openssl/crypto/bn/bn_word.c
54
ret = (BN_ULLONG)(((ret << (BN_ULLONG)BN_BITS2) | a->d[i]) % (BN_ULLONG)w);
crypto/openssl/crypto/bn/bn_word.c
75
j = BN_BITS2 - BN_num_bits_word(w);
crypto/openssl/crypto/bn/rsaz_exp_x2.c
702
i = idx / BN_BITS2;
crypto/openssl/crypto/bn/rsaz_exp_x2.c
703
j = idx % BN_BITS2;
crypto/openssl/crypto/ec/ec2_smpl.c
117
if (bn_wexpand(group->a, (int)(group->poly[0] + BN_BITS2 - 1) / BN_BITS2)
crypto/openssl/crypto/ec/ec2_smpl.c
125
if (bn_wexpand(group->b, (int)(group->poly[0] + BN_BITS2 - 1) / BN_BITS2)
crypto/openssl/crypto/ec/ec2_smpl.c
89
if (bn_wexpand(dest->a, (int)(dest->poly[0] + BN_BITS2 - 1) / BN_BITS2) == NULL)
crypto/openssl/crypto/ec/ec2_smpl.c
91
if (bn_wexpand(dest->b, (int)(dest->poly[0] + BN_BITS2 - 1) / BN_BITS2) == NULL)
crypto/openssl/crypto/ec/ecp_nistz256.c
190
in >>= BN_BITS2 - 1;
crypto/openssl/crypto/ec/ecp_nistz256.c
34
#if BN_BITS2 != 64
crypto/openssl/crypto/ec/ecp_nistz256.c
41
#define P256_LIMBS (256 / BN_BITS2)
crypto/openssl/crypto/ec/ecp_sm2p256.c
24
#define P256_LIMBS (256 / BN_BITS2)
crypto/openssl/crypto/sparse_array.c
35
#elif OPENSSL_SA_BLOCK_BITS < 2 || OPENSSL_SA_BLOCK_BITS > (BN_BITS2 - 1)
crypto/openssl/include/openssl/bn.h
55
#define BN_BITS (BN_BITS2 * 2)
crypto/openssl/include/openssl/bn.h
56
#define BN_TBIT ((BN_ULONG)1 << (BN_BITS2 - 1))
crypto/openssl/test/bntest.c
167
top = BN_num_bits(a) / BN_BITS2;
crypto/openssl/test/exptest.c
178
c = (c % BN_BITS) - BN_BITS2;
crypto/openssl/test/exptest.c
185
c = (c % BN_BITS) - BN_BITS2;
crypto/openssl/test/exptest.c
192
c = (c % BN_BITS) - BN_BITS2;
crypto/openssl/test/exptest.c
23
#define NUM_BITS (BN_BITS2 * 4)