/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/ |
H A D | bn_mp_dr_setup.c | 26 *d = (mp_digit)((((mp_word)1) << ((mp_word)DIGIT_BIT)) - 27 ((mp_word)a->dp[0]));
|
H A D | bn_s_mp_sqr.c | 25 mp_word r; 39 r = ((mp_word) t.dp[2*ix]) + 40 ((mp_word)a->dp[ix])*((mp_word)a->dp[ix]); 43 t.dp[ix+ix] = (mp_digit) (r & ((mp_word) MP_MASK)); 46 u = (mp_digit)(r >> ((mp_word) DIGIT_BIT)); 56 r = ((mp_word)tmpx) * ((mp_word)a->dp[iy]); 61 r = ((mp_word) *tmpt) + r + r + ((mp_word) [all...] |
H A D | bn_mp_montgomery_reduce.c | 36 (1 << ((CHAR_BIT * sizeof (mp_word)) - (2 * DIGIT_BIT)))) { 57 mu = (mp_digit) (((mp_word)x->dp[ix]) * ((mp_word)rho) & MP_MASK); 63 register mp_word r; 77 r = ((mp_word)mu) * ((mp_word)*tmpn++) + 78 ((mp_word) u) + ((mp_word) * tmpx); 81 u = (mp_digit)(r >> ((mp_word) DIGIT_BIT)); 84 *tmpx++ = (mp_digit)(r & ((mp_word) MP_MAS [all...] |
H A D | bn_mp_mul_d.c | 25 mp_word r; 53 r = ((mp_word) u) + ((mp_word)*tmpa++) * ((mp_word)b); 56 *tmpc++ = (mp_digit) (r & ((mp_word) MP_MASK)); 59 u = (mp_digit) (r >> ((mp_word) DIGIT_BIT));
|
H A D | bn_mp_div_3.c | 25 mp_word w, t; 30 b = (((mp_word)1) << ((mp_word)DIGIT_BIT)) / ((mp_word)3); 40 w = (w << ((mp_word)DIGIT_BIT)) | ((mp_word)a->dp[ix]); 44 t = (w * ((mp_word)b)) >> ((mp_word)DIGIT_BIT);
|
H A D | bn_s_mp_mul_digs.c | 29 mp_word r; 35 (1 << ((CHAR_BIT * sizeof (mp_word)) - (2 * DIGIT_BIT)))) { 65 /* compute the column as a mp_word */ 66 r = ((mp_word)*tmpt) + 67 ((mp_word)tmpx) * ((mp_word)*tmpy++) + 68 ((mp_word) u); 71 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK)); 74 u = (mp_digit) (r >> ((mp_word) DIGIT_BIT));
|
H A D | bn_s_mp_mul_high_digs.c | 29 mp_word r; 35 && MIN (a->used, b->used) < (1 << ((CHAR_BIT * sizeof (mp_word)) - (2 * DIGIT_BIT)))) { 62 r = ((mp_word)*tmpt) + 63 ((mp_word)tmpx) * ((mp_word)*tmpy++) + 64 ((mp_word) u); 67 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK)); 70 u = (mp_digit) (r >> ((mp_word) DIGIT_BIT));
|
H A D | bn_fast_mp_montgomery_reduce.c | 31 mp_word W[MP_WARRAY]; 47 register mp_word *_W; 97 register mp_word *_W; 107 *_W++ += ((mp_word)mu) * ((mp_word)*tmpn++); 112 W[ix + 1] += W[ix] >> ((mp_word) DIGIT_BIT); 121 register mp_word *_W, *_W1; 132 *_W++ += *_W1++ >> ((mp_word) DIGIT_BIT); 138 * array of mp_word to mp_digit than calling mp_rshd 149 *tmpx++ = (mp_digit)(*_W++ & ((mp_word) MP_MAS [all...] |
H A D | bn_fast_s_mp_sqr.c | 34 mp_word W1; 48 mp_word _W; 75 _W += ((mp_word)*tmpx++)*((mp_word)*tmpy--); 83 _W += ((mp_word)a->dp[ix>>1])*((mp_word)a->dp[ix>>1]); 90 W1 = _W >> ((mp_word)DIGIT_BIT);
|
H A D | bn_mp_montgomery_setup.c | 53 *rho = (unsigned long)(((mp_word)1 << ((mp_word) DIGIT_BIT)) - x) & MP_MASK;
|
H A D | bn_fast_s_mp_mul_digs.c | 40 register mp_word _W; 74 _W += ((mp_word)*tmpx++)*((mp_word)*tmpy--); 82 _W = _W >> ((mp_word)DIGIT_BIT);
|
H A D | bn_fast_s_mp_mul_high_digs.c | 33 mp_word _W; 65 _W += ((mp_word)*tmpx++)*((mp_word)*tmpy--); 72 _W = _W >> ((mp_word)DIGIT_BIT);
|
H A D | bn_mp_dr_reduce.c | 38 mp_word r; 67 r = ((mp_word)*tmpx2++) * ((mp_word)k) + *tmpx1 + mu; 69 mu = (mp_digit)(r >> ((mp_word)DIGIT_BIT));
|
H A D | bn_mp_div_d.c | 42 mp_word w; 89 w = (w << ((mp_word)DIGIT_BIT)) | ((mp_word)a->dp[ix]); 93 w -= ((mp_word)t) * ((mp_word)b);
|
H A D | bn_mp_sqr.c | 43 (1 << (sizeof(mp_word) * CHAR_BIT - 2*DIGIT_BIT - 1))) {
|
H A D | bn_mp_mul.c | 50 (1 << ((CHAR_BIT * sizeof (mp_word)) - (2 * DIGIT_BIT)))) {
|
H A D | bn_mp_div.c | 197 mp_word tmp; 198 tmp = ((mp_word) x.dp[i]) << ((mp_word) DIGIT_BIT); 199 tmp |= ((mp_word) x.dp[i - 1]); 200 tmp /= ((mp_word) y.dp[t]); 201 if (tmp > (mp_word) MP_MASK) 203 q.dp[i - t - 1] = (mp_digit) (tmp & (mp_word) (MP_MASK));
|
H A D | tommath.h | 60 * A "mp_word" must be able to hold 2*DIGIT_BIT + 1 bits 67 typedef unsigned short mp_word; typedef 70 typedef unsigned long mp_word; typedef 79 typedef unsigned long mp_word __attribute__ ((mode(TI))); typedef 97 typedef ulong64 mp_word; typedef 178 #define MP_WARRAY (1 << (sizeof(mp_word) * CHAR_BIT - 2 * DIGIT_BIT + 1))
|
H A D | bn_mp_exptmod_fast.c | 102 P->used < (1 << ((CHAR_BIT * sizeof (mp_word)) - (2 * DIGIT_BIT)))) {
|
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/mtest/ |
H A D | mpi-types.h | 6 typedef unsigned int mp_word; /* 4 byte type */ typedef 12 #define MP_WORD_BIT (CHAR_BIT*sizeof(mp_word))
|
H A D | mpi.c | 70 can be contained in an mp_digit. Thus, an mp_word is used. These 71 macros mask off the upper and lower digits of the mp_word (the 72 mp_word may be more than 2 mp_digits wide, but we only concern 75 If your mp_word DOES have more than 2 mp_digits, you need to 3092 mp_word w, k = 0; 3127 mp_word w, b = 0; 3162 mp_word w, k = 0; 3216 mp_word w = 0, t; 3269 mp_word w = 0; 3326 mp_word [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/wpa/dist/src/tls/ |
H A D | libtommath.c | 70 typedef u64 mp_word; typedef 112 #define MP_WARRAY (1 << (sizeof(mp_word) * CHAR_BIT - 2 * DIGIT_BIT + 1)) 509 (1 << ((CHAR_BIT * sizeof (mp_word)) - (2 * DIGIT_BIT)))) { 1768 mp_word tmp; 1769 tmp = ((mp_word) x.dp[i]) << ((mp_word) DIGIT_BIT); 1770 tmp |= ((mp_word) x.dp[i - 1]); 1771 tmp /= ((mp_word) y.dp[t]); 1772 if (tmp > (mp_word) MP_MASK) 1774 q.dp[i - t - 1] = (mp_digit) (tmp & (mp_word) (MP_MAS [all...] |
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/ |
H A D | pprime.c | 17 i_sqrt (mp_word x) 19 mp_word x1, x2;
|