HomeSort by relevance Sort by last modified time
    Searched refs:mp_digit (Results 1 - 25 of 75) sorted by null

1 2 3

  /external/dropbear/libtommath/
bn_mp_dr_setup.c 19 void mp_dr_setup(mp_int *a, mp_digit *d)
22 * the number of bits in a mp_digit [e.g. DIGIT_BIT==31]
24 *d = (mp_digit)((((mp_word)1) << ((mp_word)DIGIT_BIT)) -
bn_mp_mod_d.c 19 mp_mod_d (mp_int * a, mp_digit b, mp_digit * c)
bn_mp_count_bits.c 23 mp_digit q;
35 while (q > ((mp_digit) 0)) {
37 q >>= ((mp_digit) 1);
bn_mp_shrink.c 21 mp_digit *tmp;
23 if ((tmp = OPT_CAST(mp_digit) XREALLOC (a->dp, sizeof (mp_digit) * a->used)) == NULL) {
bn_mp_mod_2d.c 47 (mp_digit) ((((mp_digit) 1) << (((mp_digit) b) % DIGIT_BIT)) - ((mp_digit) 1));
bn_s_mp_sqr.c 24 mp_digit u, tmpx, *tmpt;
41 t.dp[ix+ix] = (mp_digit) (r & ((mp_word) MP_MASK));
44 u = (mp_digit)(r >> ((mp_word) DIGIT_BIT));
62 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK));
65 u = (mp_digit)(r >> ((mp_word) DIGIT_BIT));
68 while (u != ((mp_digit) 0)) {
70 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK));
71 u = (mp_digit)(r >> ((mp_word) DIGIT_BIT));
bn_mp_div_d.c 18 static int s_is_power_of_two(mp_digit b, int *p)
23 if (b == (((mp_digit)1)<<x)) {
32 int mp_div_d (mp_int * a, mp_digit b, mp_int * c, mp_digit * d)
36 mp_digit t;
58 *d = a->dp[0] & ((((mp_digit)1)<<ix) - 1);
85 t = (mp_digit)(w / b);
90 q.dp[ix] = (mp_digit)t;
94 *d = (mp_digit)w;
bn_mp_expt_d.c 19 int mp_expt_d (mp_int * a, mp_digit b, mp_int * c)
39 if ((b & (mp_digit) (((mp_digit)1) << (DIGIT_BIT - 1))) != 0) {
bn_mp_grow.c 22 mp_digit *tmp;
35 tmp = OPT_CAST(mp_digit) XREALLOC (a->dp, sizeof (mp_digit) * size);
bn_mp_rand.c 23 mp_digit d;
32 d = ((mp_digit) abs (rand ())) & MP_MASK;
44 if ((res = mp_add_d (a, ((mp_digit) abs (rand ())), a)) != MP_OKAY) {
bn_mp_init_set.c 19 int mp_init_set (mp_int * a, mp_digit b)
bn_mp_mul_d.c 20 mp_mul_d (mp_int * a, mp_digit b, mp_int * c)
22 mp_digit u, *tmpa, *tmpc;
54 *tmpc++ = (mp_digit) (r & ((mp_word) MP_MASK));
57 u = (mp_digit) (r >> ((mp_word) DIGIT_BIT));
bn_mp_set.c 19 void mp_set (mp_int * a, mp_digit b)
bn_mp_init.c 24 a->dp = OPT_CAST(mp_digit) XMALLOC (sizeof (mp_digit) * MP_PREC);
bn_mp_init_size.c 27 a->dp = OPT_CAST(mp_digit) XMALLOC (sizeof (mp_digit) * size);
bn_mp_reduce_is_2k.c 22 mp_digit iz;
39 if (iz > (mp_digit)MP_MASK) {
bn_mp_montgomery_reduce.c 20 mp_montgomery_reduce (mp_int * x, mp_int * n, mp_digit rho)
23 mp_digit mu;
55 mu = (mp_digit) (((mp_word)x->dp[ix]) * ((mp_word)rho) & MP_MASK);
60 register mp_digit *tmpn, *tmpx, u;
79 u = (mp_digit)(r >> ((mp_word) DIGIT_BIT));
82 *tmpx++ = (mp_digit)(r & ((mp_word) MP_MASK));
bn_fast_mp_montgomery_reduce.c 26 int fast_mp_montgomery_reduce (mp_int * x, mp_int * n, mp_digit rho)
46 register mp_digit *tmpx;
72 * by casting the value down to a mp_digit. Note this requires
75 register mp_digit mu;
76 mu = (mp_digit) (((W[ix] & MP_MASK) * rho) & MP_MASK);
94 register mp_digit *tmpn;
118 register mp_digit *tmpx;
136 * array of mp_word to mp_digit than calling mp_rshd
147 *tmpx++ = (mp_digit)(*_W++ & ((mp_word) MP_MASK));
bn_s_mp_sub.c 38 register mp_digit u, *tmpa, *tmpb, *tmpc;
57 u = *tmpc >> ((mp_digit)(CHAR_BIT * sizeof (mp_digit) - 1));
69 u = *tmpc >> ((mp_digit)(CHAR_BIT * sizeof (mp_digit) - 1));
bn_mp_mul_2.c 34 register mp_digit r, rr, *tmpa, *tmpb;
49 rr = *tmpa >> ((mp_digit)(DIGIT_BIT - 1));
52 *tmpb++ = ((*tmpa++ << ((mp_digit)1)) | r) & MP_MASK;
bn_mp_montgomery_setup.c 20 mp_montgomery_setup (mp_int * n, mp_digit * rho)
22 mp_digit x, b;
bn_fast_s_mp_mul_digs.c 37 mp_digit W[MP_WARRAY];
55 mp_digit *tmpx, *tmpy;
77 W[ix] = ((mp_digit)_W) & MP_MASK;
88 register mp_digit *tmpc;
bn_fast_s_mp_mul_high_digs.c 30 mp_digit W[MP_WARRAY];
46 mp_digit *tmpx, *tmpy;
67 W[ix] = ((mp_digit)_W) & MP_MASK;
78 register mp_digit *tmpc;
bn_mp_2expt.c 40 a->dp[b / DIGIT_BIT] = ((mp_digit)1) << (b % DIGIT_BIT);
  /external/dropbear/libtommath/mtest/
mpi-types.h 3 typedef unsigned short mp_digit; /* 2 byte type */ typedef
8 #define MP_DIGIT_BIT (CHAR_BIT*sizeof(mp_digit))

Completed in 1209 milliseconds

1 2 3