/external/dropbear/libtommath/ |
bn_mp_cmp_d.c | 19 int mp_cmp_d(mp_int * a, mp_digit b)
|
bn_mp_div_2d.c | 21 mp_digit D, r, rr; 59 D = (mp_digit) (b % DIGIT_BIT); 61 register mp_digit *tmpc, mask, shift; 64 mask = (((mp_digit)1) << D) - 1;
|
bn_mp_div_3.c | 20 mp_div_3 (mp_int * a, mp_int *c, mp_digit * d) 24 mp_digit b; 57 q.dp[ix] = (mp_digit)t; 62 *d = (mp_digit)w;
|
bn_mp_dr_reduce.c | 33 mp_dr_reduce (mp_int * x, mp_int * n, mp_digit k) 37 mp_digit mu, *tmpx1, *tmpx2; 66 *tmpx1++ = (mp_digit)(r & MP_MASK); 67 mu = (mp_digit)(r >> ((mp_word)DIGIT_BIT));
|
bn_mp_mul_2d.c | 21 mp_digit d; 45 d = (mp_digit) (b % DIGIT_BIT); 47 register mp_digit *tmpc, shift, mask, r, rr; 51 mask = (((mp_digit)1) << d) - 1;
|
bn_mp_prime_is_divisible.c | 26 mp_digit res;
|
bn_mp_sub_d.c | 20 mp_sub_d (mp_int * a, mp_digit b, mp_int * c) 22 mp_digit *tmpa, *tmpc, mu; 70 mu = *tmpc >> (sizeof(mp_digit) * CHAR_BIT - 1); 76 mu = *tmpc >> (sizeof(mp_digit) * CHAR_BIT - 1);
|
bn_mp_zero.c | 22 mp_digit *tmp;
|
bn_s_mp_mul_digs.c | 26 mp_digit u; 28 mp_digit tmpx, *tmpt, *tmpy; 69 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK)); 72 u = (mp_digit) (r >> ((mp_word) DIGIT_BIT));
|
bn_s_mp_mul_high_digs.c | 26 mp_digit u; 28 mp_digit tmpx, *tmpt, *tmpy; 65 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK)); 68 u = (mp_digit) (r >> ((mp_word) DIGIT_BIT));
|
bn_mp_radix_size.c | 23 mp_digit d; 61 if ((res = mp_div_d (&t, (mp_digit) radix, &t, &d)) != MP_OKAY) {
|
bn_mp_read_radix.c | 63 if ((res = mp_mul_d (a, (mp_digit) radix, a)) != MP_OKAY) { 66 if ((res = mp_add_d (a, (mp_digit) y, a)) != MP_OKAY) {
|
bn_mp_toradix.c | 23 mp_digit d; 51 if ((res = mp_div_d (&t, (mp_digit) radix, &t, &d)) != MP_OKAY) {
|
bn_mp_toradix_n.c | 26 mp_digit d; 64 if ((res = mp_div_d (&t, (mp_digit) radix, &t, &d)) != MP_OKAY) {
|
bn_fast_s_mp_sqr.c | 31 mp_digit W[MP_WARRAY], *tmpx; 47 mp_digit *tmpy; 85 W[ix] = (mp_digit)(_W & MP_MASK); 96 mp_digit *tmpb;
|
bn_mp_clear.c | 22 volatile mp_digit *p;
|
bn_mp_cnt_lsb.c | 26 mp_digit q, qq;
|
bn_mp_rshd.c | 35 register mp_digit *bottom, *top;
|
bn_s_mp_add.c | 50 register mp_digit u, *tmpa, *tmpb, *tmpc; 71 u = *tmpc >> ((mp_digit)DIGIT_BIT); 86 u = *tmpc >> ((mp_digit)DIGIT_BIT);
|
tommath.h | 37 /* C++ compilers don't like assigning void * to mp_digit * */ 57 * A "mp_digit" must be able to hold DIGIT_BIT + 1 bits 60 * At the very least a mp_digit must be able to hold 7 bits 64 typedef unsigned char mp_digit; typedef 67 typedef unsigned short mp_digit; typedef 76 typedef unsigned long mp_digit; typedef 94 typedef unsigned long mp_digit; typedef 125 /* otherwise the bits per digit is calculated automatically from the size of a mp_digit */ 127 #define DIGIT_BIT ((int)((CHAR_BIT * sizeof(mp_digit) - 1))) /* bits per digit */ 131 #define MP_MASK ((((mp_digit)1)<<((mp_digit)DIGIT_BIT))-((mp_digit)1) [all...] |
/external/dropbear/libtommath/etc/ |
pprime.c | 14 static mp_digit 36 mp_digit r, x, y, next; 42 r = 3; fwrite(&r, 1, sizeof(mp_digit), out); 43 r = 5; fwrite(&r, 1, sizeof(mp_digit), out); 44 r = 7; fwrite(&r, 1, sizeof(mp_digit), out); 45 r = 11; fwrite(&r, 1, sizeof(mp_digit), out); 46 r = 13; fwrite(&r, 1, sizeof(mp_digit), out); 47 r = 17; fwrite(&r, 1, sizeof(mp_digit), out); 48 r = 19; fwrite(&r, 1, sizeof(mp_digit), out); 49 r = 23; fwrite(&r, 1, sizeof(mp_digit), out) [all...] |
/external/dropbear/libtommath/mtest/ |
mpi.h | 78 mp_digit *dp; /* the digits themselves */ 99 void mp_set(mp_int *mp, mp_digit d); 107 mp_err mp_add_d(mp_int *a, mp_digit d, mp_int *b); 108 mp_err mp_sub_d(mp_int *a, mp_digit d, mp_int *b); 109 mp_err mp_mul_d(mp_int *a, mp_digit d, mp_int *b); 111 mp_err mp_div_d(mp_int *a, mp_digit d, mp_int *q, mp_digit *r); 113 mp_err mp_expt_d(mp_int *a, mp_digit d, mp_int *c); 127 mp_err mp_mul_2d(mp_int *a, mp_digit d, mp_int *c); 134 mp_err mp_div_2d(mp_int *a, mp_digit d, mp_int *q, mp_int *r) [all...] |
mpi.c | 68 can be contained in an mp_digit. Thus, an mp_word is used. These 133 void s_mp_setz(mp_digit *dp, mp_size count); /* zero digits */ 134 void s_mp_copy(mp_digit *sp, mp_digit *dp, mp_size count); /* copy */ 146 #define s_mp_setz(dp, count) memset(dp, 0, (count) * sizeof(mp_digit)) 153 #define s_mp_copy(sp, dp, count) memcpy(dp, sp, (count) * sizeof(mp_digit)) 169 void s_mp_div_2d(mp_int *mp, mp_digit d); /* divide by 2^d in place */ 170 void s_mp_mod_2d(mp_int *mp, mp_digit d); /* modulo 2^d in place */ 171 mp_err s_mp_mul_2d(mp_int *mp, mp_digit d); /* multiply by 2^d in place*/ 174 mp_digit s_mp_norm(mp_int *a, mp_int *b); /* normalize for division * [all...] |
/external/wpa_supplicant/ |
libtommath.c | 46 typedef unsigned long mp_digit; typedef 58 #define MP_MASK ((((mp_digit)1)<<((mp_digit)DIGIT_BIT))-((mp_digit)1)) 94 mp_digit *dp; 116 static void mp_set(mp_int * a, mp_digit b); 197 register mp_digit u, *tmpa, *tmpb, *tmpc; 218 u = *tmpc >> ((mp_digit)DIGIT_BIT); 233 u = *tmpc >> ((mp_digit)DIGIT_BIT); 273 register mp_digit u, *tmpa, *tmpb, *tmpc [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/tls/ |
libtommath.c | 69 typedef unsigned long mp_digit; typedef 81 #define MP_MASK ((((mp_digit)1)<<((mp_digit)DIGIT_BIT))-((mp_digit)1)) 117 mp_digit *dp; 143 static void mp_set(mp_int * a, mp_digit b); 180 static int mp_mul_d (mp_int * a, mp_digit b, mp_int * c); 237 register mp_digit u, *tmpa, *tmpb, *tmpc; 258 u = *tmpc >> ((mp_digit)DIGIT_BIT); 273 u = *tmpc >> ((mp_digit)DIGIT_BIT) [all...] |