Searched refs:BN_BITS2 (Results 1 - 21 of 21) sorted by relevance

/freebsd-9.3-release/crypto/openssl/crypto/bn/
H A Dbn_shift.c142 nw = n / BN_BITS2;
145 lb = n % BN_BITS2;
146 rb = BN_BITS2 - lb;
183 nw = n / BN_BITS2;
184 rb = n % BN_BITS2;
185 lb = BN_BITS2 - rb;
H A Dbn_nist.c62 #define BN_NIST_192_TOP (192+BN_BITS2-1)/BN_BITS2
63 #define BN_NIST_224_TOP (224+BN_BITS2-1)/BN_BITS2
64 #define BN_NIST_256_TOP (256+BN_BITS2-1)/BN_BITS2
65 #define BN_NIST_384_TOP (384+BN_BITS2-1)/BN_BITS2
66 #define BN_NIST_521_TOP (521+BN_BITS2-1)/BN_BITS2
[all...]
H A Dexptest.c154 c = (c % BN_BITS) - BN_BITS2;
158 c = (c % BN_BITS) - BN_BITS2;
162 c = (c % BN_BITS) - BN_BITS2;
H A Dbn_lib.c223 return ((i * BN_BITS2) + BN_num_bits_word(a->d[i]));
294 if (words > (INT_MAX / (4 * BN_BITS2))) {
732 i = n / BN_BITS2;
733 j = n % BN_BITS2;
755 i = n / BN_BITS2;
756 j = n % BN_BITS2;
772 i = n / BN_BITS2;
773 j = n % BN_BITS2;
787 w = n / BN_BITS2;
788 b = n % BN_BITS2;
[all...]
H A Dbn_mont.c125 #if defined(MONT_WORD) && defined(OPENSSL_BN_ASM_MONT) && (BN_BITS2<=32)
128 * branch, OPENSSL_BN_ASM_MONT is normally not set for any BN_BITS2<=32
206 al = ri = mont->ri / BN_BITS2;
376 al = ri = mont->ri / BN_BITS2;
627 mont->ri = (BN_num_bits(mod) + (BN_BITS2 - 1)) / BN_BITS2 * BN_BITS2;
631 * (BN_BITS2<=32)", only certain BN_BITS2<=32
633 if (!(BN_set_bit(R, 2 * BN_BITS2)))
[all...]
H A Dbn_div.c146 * in reply to ((((BN_ULLONG)n0)<<BN_BITS2)|n1)/d0 (I fail to
250 norm_shift = BN_BITS2 - ((BN_num_bits(divisor)) % BN_BITS2);
254 norm_shift += BN_BITS2;
334 q = (BN_ULONG)(((((BN_ULLONG) n0) << BN_BITS2) | n1) / d0);
353 if (t2 <= ((((BN_ULLONG) rem) << BN_BITS2) | wnump[-2]))
485 norm_shift = BN_BITS2 - ((BN_num_bits(divisor)) % BN_BITS2);
489 norm_shift += BN_BITS2;
576 q = (BN_ULONG)(((((BN_ULLONG) n0) << BN_BITS2) | n
[all...]
H A Dbn_word.c82 ret = (BN_ULLONG) (((ret << (BN_ULLONG) BN_BITS2) | a->d[i]) %
104 j = BN_BITS2 - BN_num_bits_word(w);
H A Dbn.h131 # define BN_BITS2 64 macro
158 # define BN_BITS2 64 macro
183 # define BN_BITS2 32 macro
211 # define BN_BITS2 16 macro
234 # define BN_BITS2 8 macro
302 BN_ULONG *d; /* Pointer to an array of 'BN_BITS2' bit
710 bits > (INT_MAX - BN_BITS2 + 1) ? \
713 (((bits+BN_BITS2-1)/BN_BITS2) <= (a)->dmax) ? \
716 bn_expand2((a),(bits+BN_BITS2
[all...]
H A Dbn_gf2m.c143 * Product of two polynomials a, b each with degree < BN_BITS2 - 1, result is
405 * Product of two polynomials a, b each with degree < 2 * BN_BITS2 - 1,
406 * result is a polynomial r with degree < 4 * BN_BITS2 - 1 The caller MUST
495 dN = p[0] / BN_BITS2;
507 d0 = n % BN_BITS2;
508 d1 = BN_BITS2 - d0;
509 n /= BN_BITS2;
517 d0 = p[0] % BN_BITS2;
518 d1 = BN_BITS2 - d0;
527 d0 = p[0] % BN_BITS2;
[all...]
H A Dbn_print.c91 for (j = BN_BITS2 - 8; j >= 0; j -= 8) {
351 for (j = BN_BITS2 - 4; j >= 0; j -= 4) {
H A Dbn_lcl.h283 # define Hw(t) (((BN_ULONG)((t)>>BN_BITS2))&BN_MASK2)
386 # define LHBITS(a) (((a)>>BN_BITS2)&BN_MASKl)
387 # define LL2HBITS(a) ((BN_ULLONG)((a)&BN_MASKl)<<BN_BITS2)
H A Dbn_asm.c257 return ((BN_ULONG)(((((BN_ULLONG) h) << BN_BITS2) | l) / (BN_ULLONG) d));
273 assert((i == BN_BITS2) || (h <= (BN_ULONG)1 << i));
275 i = BN_BITS2 - i;
281 h = (h << i) | (l >> (BN_BITS2 - i));
341 ll >>= BN_BITS2; local
347 ll >>= BN_BITS2; local
353 ll >>= BN_BITS2; local
359 ll >>= BN_BITS2; local
H A Dbntest.c515 BN_bntest_rand(&b, BN_BITS2, -1, 0);
/freebsd-9.3-release/crypto/openssl/engines/
H A De_ubsec.c607 r->top = (BN_num_bits(m) + BN_BITS2 - 1) / BN_BITS2;
679 r->top = (BN_num_bits(p) + BN_num_bits(q) + BN_BITS2 - 1) / BN_BITS2;
767 if (!bn_wexpand(r, (160 + BN_BITS2 - 1) / BN_BITS2) ||
768 (!bn_wexpand(s, (160 + BN_BITS2 - 1) / BN_BITS2))) {
814 r->top = (160 + BN_BITS2 - 1) / BN_BITS2;
[all...]
H A De_gmp.c270 (BN_BITS2 == GMP_NUMB_BITS)) {
293 (BN_BITS2 == GMP_NUMB_BITS)) {
/freebsd-9.3-release/tools/tools/crypto/
H A Dcryptokeytest.c114 for (k = 0; k < BN_BITS2 / 8; k++) {
119 j += BN_BITS2 / 8;
/freebsd-9.3-release/crypto/openssl/crypto/ec/
H A Dec2_smpl.c182 if (bn_wexpand(&dest->a, (int)(dest->poly[0] + BN_BITS2 - 1) / BN_BITS2)
185 if (bn_wexpand(&dest->b, (int)(dest->poly[0] + BN_BITS2 - 1) / BN_BITS2)
214 if (bn_wexpand(&group->a, (int)(group->poly[0] + BN_BITS2 - 1) / BN_BITS2)
223 if (bn_wexpand(&group->b, (int)(group->poly[0] + BN_BITS2 - 1) / BN_BITS2)
H A Dec2_mult.c316 j = BN_BITS2 - 1;
327 j = BN_BITS2 - 1;
343 j = BN_BITS2 - 1;
H A Decp_nist.c116 #if BN_BITS2 == 64
/freebsd-9.3-release/crypto/openssl/demos/engines/zencod/
H A Dhw_zencod.c127 (unsigned long) ((bn)->top * BN_BITS2), \
770 r->top = (BN_num_bits(m) + BN_BITS2 - 1) / BN_BITS2;
809 r0->top = (RSA_size(rsa) * 8 + BN_BITS2 - 1) / BN_BITS2;
859 r->top = (BN_num_bits(m) + BN_BITS2 - 1) / BN_BITS2;
921 bn_r->top = bn_s->top = (160 + BN_BITS2 - 1) / BN_BITS2;
/freebsd-9.3-release/crypto/openssl/crypto/engine/
H A Deng_cryptodev.c674 for (k = 0; k < BN_BITS2 / 8; k++) {
679 j += BN_BITS2 / 8;

Completed in 141 milliseconds