Searched refs:mp_digit (Results 1 - 25 of 72) sorted by relevance
123
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/ |
H A D | bn_mp_dr_setup.c | 21 void mp_dr_setup(mp_int *a, mp_digit *d) 24 * the number of bits in a mp_digit [e.g. DIGIT_BIT==31] 26 *d = (mp_digit)((((mp_word)1) << ((mp_word)DIGIT_BIT)) -
|
H A D | bn_mp_mod_d.c | 21 mp_mod_d (mp_int * a, mp_digit b, mp_digit * c)
|
H A D | bn_mp_count_bits.c | 25 mp_digit q; 37 while (q > ((mp_digit) 0)) { 39 q >>= ((mp_digit) 1);
|
H A D | bn_mp_shrink.c | 23 mp_digit *tmp; 25 if ((tmp = OPT_CAST(mp_digit) XREALLOC (a->dp, sizeof (mp_digit) * a->used)) == NULL) {
|
H A D | bn_mp_mod_2d.c | 49 (mp_digit) ((((mp_digit) 1) << (((mp_digit) b) % DIGIT_BIT)) - ((mp_digit) 1));
|
H A D | bn_s_mp_sqr.c | 26 mp_digit u, tmpx, *tmpt; 43 t.dp[ix+ix] = (mp_digit) (r & ((mp_word) MP_MASK)); 46 u = (mp_digit)(r >> ((mp_word) DIGIT_BIT)); 64 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK)); 67 u = (mp_digit)(r >> ((mp_word) DIGIT_BIT)); 70 while (u != ((mp_digit) 0)) { 72 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK)); 73 u = (mp_digit)(r >> ((mp_word) DIGIT_BIT));
|
H A D | bn_mp_div_d.c | 20 static int s_is_power_of_two(mp_digit b, int *p) 30 if (b == (((mp_digit)1)<<x)) { 39 int mp_div_d (mp_int * a, mp_digit b, mp_int * c, mp_digit * d) 43 mp_digit t; 65 *d = a->dp[0] & ((((mp_digit)1)<<ix) - 1); 92 t = (mp_digit)(w / b); 97 q.dp[ix] = (mp_digit)t; 101 *d = (mp_digit)w;
|
H A D | bn_mp_expt_d.c | 21 int mp_expt_d (mp_int * a, mp_digit b, mp_int * c) 41 if ((b & (mp_digit) (((mp_digit)1) << (DIGIT_BIT - 1))) != 0) {
|
H A D | bn_mp_grow.c | 24 mp_digit *tmp; 37 tmp = OPT_CAST(mp_digit) XREALLOC (a->dp, sizeof (mp_digit) * size);
|
H A D | bn_mp_rand.c | 25 mp_digit d; 34 d = ((mp_digit) abs (rand ())) & MP_MASK; 46 if ((res = mp_add_d (a, ((mp_digit) abs (rand ())), a)) != MP_OKAY) {
|
H A D | bn_mp_init_set.c | 21 int mp_init_set (mp_int * a, mp_digit b)
|
H A D | bn_mp_mul_d.c | 22 mp_mul_d (mp_int * a, mp_digit b, mp_int * c) 24 mp_digit u, *tmpa, *tmpc; 56 *tmpc++ = (mp_digit) (r & ((mp_word) MP_MASK)); 59 u = (mp_digit) (r >> ((mp_word) DIGIT_BIT));
|
H A D | bn_mp_set.c | 21 void mp_set (mp_int * a, mp_digit b)
|
H A D | bn_mp_init.c | 26 a->dp = OPT_CAST(mp_digit) XMALLOC (sizeof (mp_digit) * MP_PREC);
|
H A D | bn_mp_init_size.c | 29 a->dp = OPT_CAST(mp_digit) XMALLOC (sizeof (mp_digit) * size);
|
H A D | bn_mp_reduce_is_2k.c | 24 mp_digit iz; 41 if (iz > (mp_digit)MP_MASK) {
|
H A D | bn_mp_montgomery_reduce.c | 22 mp_montgomery_reduce (mp_int * x, mp_int * n, mp_digit rho) 25 mp_digit mu; 57 mu = (mp_digit) (((mp_word)x->dp[ix]) * ((mp_word)rho) & MP_MASK); 62 register mp_digit *tmpn, *tmpx, u; 81 u = (mp_digit)(r >> ((mp_word) DIGIT_BIT)); 84 *tmpx++ = (mp_digit)(r & ((mp_word) MP_MASK));
|
H A D | bn_fast_mp_montgomery_reduce.c | 28 int fast_mp_montgomery_reduce (mp_int * x, mp_int * n, mp_digit rho) 48 register mp_digit *tmpx; 74 * by casting the value down to a mp_digit. Note this requires 77 register mp_digit mu; 78 mu = (mp_digit) (((W[ix] & MP_MASK) * rho) & MP_MASK); 96 register mp_digit *tmpn; 120 register mp_digit *tmpx; 138 * array of mp_word to mp_digit than calling mp_rshd 149 *tmpx++ = (mp_digit)(*_W++ & ((mp_word) MP_MASK));
|
H A D | bn_s_mp_sub.c | 40 register mp_digit u, *tmpa, *tmpb, *tmpc; 59 u = *tmpc >> ((mp_digit)(CHAR_BIT * sizeof (mp_digit) - 1)); 71 u = *tmpc >> ((mp_digit)(CHAR_BIT * sizeof (mp_digit) - 1));
|
H A D | bn_mp_mul_2.c | 36 register mp_digit r, rr, *tmpa, *tmpb; 51 rr = *tmpa >> ((mp_digit)(DIGIT_BIT - 1)); 54 *tmpb++ = ((*tmpa++ << ((mp_digit)1)) | r) & MP_MASK;
|
H A D | bn_mp_montgomery_setup.c | 22 mp_montgomery_setup (mp_int * n, mp_digit * rho) 24 mp_digit x, b;
|
H A D | bn_fast_s_mp_mul_digs.c | 39 mp_digit W[MP_WARRAY]; 57 mp_digit *tmpx, *tmpy; 79 W[ix] = ((mp_digit)_W) & MP_MASK; 90 register mp_digit *tmpc;
|
H A D | bn_fast_s_mp_mul_high_digs.c | 32 mp_digit W[MP_WARRAY]; 48 mp_digit *tmpx, *tmpy; 69 W[ix] = ((mp_digit)_W) & MP_MASK; 80 register mp_digit *tmpc;
|
H A D | bn_mp_2expt.c | 42 a->dp[b / DIGIT_BIT] = ((mp_digit)1) << (b % DIGIT_BIT);
|
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/mtest/ |
H A D | mpi-types.h | 5 typedef unsigned short mp_digit; /* 2 byte type */ typedef 10 #define MP_DIGIT_BIT (CHAR_BIT*sizeof(mp_digit))
|
Completed in 146 milliseconds
123