| /netbsd/src/crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/ |
| D | bn_s_mp_sqr.c | 25 mp_word r; in s_mp_sqr() 39 r = ((mp_word) t.dp[2*ix]) + in s_mp_sqr() 40 ((mp_word)a->dp[ix])*((mp_word)a->dp[ix]); in s_mp_sqr() 43 t.dp[ix+ix] = (mp_digit) (r & ((mp_word) MP_MASK)); in s_mp_sqr() 46 u = (mp_digit)(r >> ((mp_word) DIGIT_BIT)); in s_mp_sqr() 56 r = ((mp_word)tmpx) * ((mp_word)a->dp[iy]); in s_mp_sqr() 61 r = ((mp_word) *tmpt) + r + r + ((mp_word) u); in s_mp_sqr() 64 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK)); in s_mp_sqr() 67 u = (mp_digit)(r >> ((mp_word) DIGIT_BIT)); in s_mp_sqr() 71 r = ((mp_word) *tmpt) + ((mp_word) u); in s_mp_sqr() [all …]
|
| D | bn_mp_montgomery_reduce.c | 36 (1 << ((CHAR_BIT * sizeof (mp_word)) - (2 * DIGIT_BIT)))) { in mp_montgomery_reduce() 57 mu = (mp_digit) (((mp_word)x->dp[ix]) * ((mp_word)rho) & MP_MASK); in mp_montgomery_reduce() 63 register mp_word r; in mp_montgomery_reduce() 77 r = ((mp_word)mu) * ((mp_word)*tmpn++) + in mp_montgomery_reduce() 78 ((mp_word) u) + ((mp_word) * tmpx); in mp_montgomery_reduce() 81 u = (mp_digit)(r >> ((mp_word) DIGIT_BIT)); in mp_montgomery_reduce() 84 *tmpx++ = (mp_digit)(r & ((mp_word) MP_MASK)); in mp_montgomery_reduce()
|
| D | bn_mp_div_3.c | 25 mp_word w, t; in mp_div_3() 30 b = (((mp_word)1) << ((mp_word)DIGIT_BIT)) / ((mp_word)3); in mp_div_3() 40 w = (w << ((mp_word)DIGIT_BIT)) | ((mp_word)a->dp[ix]); in mp_div_3() 44 t = (w * ((mp_word)b)) >> ((mp_word)DIGIT_BIT); in mp_div_3()
|
| D | bn_fast_mp_montgomery_reduce.c | 31 mp_word W[MP_WARRAY]; in fast_mp_montgomery_reduce() 47 register mp_word *_W; in fast_mp_montgomery_reduce() 97 register mp_word *_W; in fast_mp_montgomery_reduce() 107 *_W++ += ((mp_word)mu) * ((mp_word)*tmpn++); in fast_mp_montgomery_reduce() 112 W[ix + 1] += W[ix] >> ((mp_word) DIGIT_BIT); in fast_mp_montgomery_reduce() 121 register mp_word *_W, *_W1; in fast_mp_montgomery_reduce() 132 *_W++ += *_W1++ >> ((mp_word) DIGIT_BIT); in fast_mp_montgomery_reduce() 149 *tmpx++ = (mp_digit)(*_W++ & ((mp_word) MP_MASK)); in fast_mp_montgomery_reduce()
|
| D | bn_s_mp_mul_digs.c | 29 mp_word r; in s_mp_mul_digs() 35 (1 << ((CHAR_BIT * sizeof (mp_word)) - (2 * DIGIT_BIT)))) { in s_mp_mul_digs() 66 r = ((mp_word)*tmpt) + in s_mp_mul_digs() 67 ((mp_word)tmpx) * ((mp_word)*tmpy++) + in s_mp_mul_digs() 68 ((mp_word) u); in s_mp_mul_digs() 71 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK)); in s_mp_mul_digs() 74 u = (mp_digit) (r >> ((mp_word) DIGIT_BIT)); in s_mp_mul_digs()
|
| D | bn_s_mp_mul_high_digs.c | 29 mp_word r; in s_mp_mul_high_digs() 35 && MIN (a->used, b->used) < (1 << ((CHAR_BIT * sizeof (mp_word)) - (2 * DIGIT_BIT)))) { in s_mp_mul_high_digs() 62 r = ((mp_word)*tmpt) + in s_mp_mul_high_digs() 63 ((mp_word)tmpx) * ((mp_word)*tmpy++) + in s_mp_mul_high_digs() 64 ((mp_word) u); in s_mp_mul_high_digs() 67 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK)); in s_mp_mul_high_digs() 70 u = (mp_digit) (r >> ((mp_word) DIGIT_BIT)); in s_mp_mul_high_digs()
|
| D | bn_fast_s_mp_sqr.c | 34 mp_word W1; in fast_s_mp_sqr() 48 mp_word _W; in fast_s_mp_sqr() 75 _W += ((mp_word)*tmpx++)*((mp_word)*tmpy--); in fast_s_mp_sqr() 83 _W += ((mp_word)a->dp[ix>>1])*((mp_word)a->dp[ix>>1]); in fast_s_mp_sqr() 90 W1 = _W >> ((mp_word)DIGIT_BIT); in fast_s_mp_sqr()
|
| D | bn_mp_mul_d.c | 25 mp_word r; in mp_mul_d() 53 r = ((mp_word) u) + ((mp_word)*tmpa++) * ((mp_word)b); in mp_mul_d() 56 *tmpc++ = (mp_digit) (r & ((mp_word) MP_MASK)); in mp_mul_d() 59 u = (mp_digit) (r >> ((mp_word) DIGIT_BIT)); in mp_mul_d()
|
| D | bn_mp_div_d.c | 42 mp_word w; in mp_div_d() 89 w = (w << ((mp_word)DIGIT_BIT)) | ((mp_word)a->dp[ix]); in mp_div_d() 93 w -= ((mp_word)t) * ((mp_word)b); in mp_div_d()
|
| D | bn_mp_dr_reduce.c | 38 mp_word r; in mp_dr_reduce() 67 r = ((mp_word)*tmpx2++) * ((mp_word)k) + *tmpx1 + mu; in mp_dr_reduce() 69 mu = (mp_digit)(r >> ((mp_word)DIGIT_BIT)); in mp_dr_reduce()
|
| D | bn_fast_s_mp_mul_digs.c | 40 register mp_word _W; in fast_s_mp_mul_digs() 74 _W += ((mp_word)*tmpx++)*((mp_word)*tmpy--); in fast_s_mp_mul_digs() 82 _W = _W >> ((mp_word)DIGIT_BIT); in fast_s_mp_mul_digs()
|
| D | bn_fast_s_mp_mul_high_digs.c | 33 mp_word _W; in fast_s_mp_mul_high_digs() 65 _W += ((mp_word)*tmpx++)*((mp_word)*tmpy--); in fast_s_mp_mul_high_digs() 72 _W = _W >> ((mp_word)DIGIT_BIT); in fast_s_mp_mul_high_digs()
|
| D | bn_mp_dr_setup.c | 26 *d = (mp_digit)((((mp_word)1) << ((mp_word)DIGIT_BIT)) - in mp_dr_setup() 27 ((mp_word)a->dp[0])); in mp_dr_setup()
|
| D | bn_mp_div.c | 197 mp_word tmp; in mp_div() 198 tmp = ((mp_word) x.dp[i]) << ((mp_word) DIGIT_BIT); in mp_div() 199 tmp |= ((mp_word) x.dp[i - 1]); in mp_div() 200 tmp /= ((mp_word) y.dp[t]); in mp_div() 201 if (tmp > (mp_word) MP_MASK) in mp_div() 203 q.dp[i - t - 1] = (mp_digit) (tmp & (mp_word) (MP_MASK)); in mp_div()
|
| D | bn_mp_montgomery_setup.c | 53 *rho = (unsigned long)(((mp_word)1 << ((mp_word) DIGIT_BIT)) - x) & MP_MASK; in mp_montgomery_setup()
|
| D | tommath.h | 67 typedef unsigned short mp_word; typedef 70 typedef unsigned long mp_word; 79 typedef unsigned long mp_word __attribute__ ((mode(TI))); 97 typedef ulong64 mp_word; 178 #define MP_WARRAY (1 << (sizeof(mp_word) * CHAR_BIT - 2 * DIGIT_BIT + 1))
|
| D | bn_mp_sqr.c | 43 (1 << (sizeof(mp_word) * CHAR_BIT - 2*DIGIT_BIT - 1))) { in mp_sqr()
|
| D | bn_mp_mul.c | 50 (1 << ((CHAR_BIT * sizeof (mp_word)) - (2 * DIGIT_BIT)))) { in mp_mul()
|
| D | bn_mp_exptmod_fast.c | 102 P->used < (1 << ((CHAR_BIT * sizeof (mp_word)) - (2 * DIGIT_BIT)))) { in mp_exptmod_fast()
|
| /netbsd/src/external/bsd/wpa/dist/src/tls/ |
| D | libtommath.c | 66 typedef unsigned long mp_word __attribute__((mode(TI))); typedef 72 typedef u64 mp_word; typedef 115 #define MP_WARRAY (1 << (sizeof(mp_word) * CHAR_BIT - 2 * DIGIT_BIT + 1)) 514 (1 << ((CHAR_BIT * sizeof (mp_word)) - (2 * DIGIT_BIT)))) { in mp_mul() 1775 mp_word tmp; in mp_div() 1776 tmp = ((mp_word) x.dp[i]) << ((mp_word) DIGIT_BIT); in mp_div() 1777 tmp |= ((mp_word) x.dp[i - 1]); in mp_div() 1778 tmp /= ((mp_word) y.dp[t]); in mp_div() 1779 if (tmp > (mp_word) MP_MASK) in mp_div() 1781 q.dp[i - t - 1] = (mp_digit) (tmp & (mp_word) (MP_MASK)); in mp_div() [all …]
|
| /netbsd/src/crypto/external/bsd/netpgp/dist/src/libbn/ |
| D | bignum.c | 82 #define MP_WARRAY /*LINTED*/(1U << (((sizeof(mp_word) * CHAR_BIT) - (2 * DIGIT_BIT) + 1))) 840 mp_word r; in mp_mul_d() 868 r = ((mp_word) u) + ((mp_word)*tmpa++) * ((mp_word)b); in mp_mul_d() 871 *tmpc++ = (mp_digit) (r & ((mp_word) MP_MASK)); in mp_mul_d() 874 u = (mp_digit) (r >> ((mp_word) DIGIT_BIT)); in mp_mul_d() 1153 mp_word tmp; in mp_div() 1154 tmp = ((mp_word) x.dp[i]) << ((mp_word) DIGIT_BIT); in mp_div() 1155 tmp |= ((mp_word) x.dp[i - 1]); in mp_div() 1156 tmp /= ((mp_word) y.dp[t]); in mp_div() 1157 if (tmp > (mp_word) MP_MASK) in mp_div() [all …]
|
| D | bn.h | 49 typedef uint64_t mp_word; typedef
|
| /netbsd/src/crypto/external/bsd/netpgp/dist/src/netpgpverify/ |
| D | bignum.c | 79 #define MP_WARRAY /*LINTED*/(1U << (((sizeof(mp_word) * CHAR_BIT) - (2 * DIGIT_BIT) + 1))) 767 mp_word r; in multiply_digit() 795 r = ((mp_word) carry) + ((mp_word)*tmpa++) * ((mp_word)b); in multiply_digit() 798 *tmpc++ = (mp_digit) (r & ((mp_word) MP_MASK)); in multiply_digit() 801 carry = (mp_digit) (r >> ((mp_word) DIGIT_BIT)); in multiply_digit() 1080 mp_word tmp; in signed_divide() 1081 tmp = ((mp_word) x.dp[i]) << ((mp_word) DIGIT_BIT); in signed_divide() 1082 tmp |= ((mp_word) x.dp[i - 1]); in signed_divide() 1083 tmp /= ((mp_word) y.dp[t]); in signed_divide() 1084 if (tmp > (mp_word) MP_MASK) { in signed_divide() [all …]
|
| D | bn.h | 114 typedef uint64_t mp_word; typedef
|