/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/ |
H A D | bn_mp_cmp_d.c | 21 int mp_cmp_d(mp_int * a, mp_digit b)
|
H A D | bn_mp_div_2d.c | 23 mp_digit D, r, rr; 61 D = (mp_digit) (b % DIGIT_BIT); 63 register mp_digit *tmpc, mask, shift; 66 mask = (((mp_digit)1) << D) - 1;
|
H A D | bn_mp_div_3.c | 22 mp_div_3 (mp_int * a, mp_int *c, mp_digit * d) 26 mp_digit b; 59 q.dp[ix] = (mp_digit)t; 64 *d = (mp_digit)w;
|
H A D | bn_mp_dr_reduce.c | 35 mp_dr_reduce (mp_int * x, mp_int * n, mp_digit k) 39 mp_digit mu, *tmpx1, *tmpx2; 68 *tmpx1++ = (mp_digit)(r & MP_MASK); 69 mu = (mp_digit)(r >> ((mp_word)DIGIT_BIT));
|
H A D | bn_mp_mul_2d.c | 23 mp_digit d; 47 d = (mp_digit) (b % DIGIT_BIT); 49 register mp_digit *tmpc, shift, mask, r, rr; 53 mask = (((mp_digit)1) << d) - 1;
|
H A D | bn_mp_prime_is_divisible.c | 28 mp_digit res;
|
H A D | bn_mp_sub_d.c | 22 mp_sub_d (mp_int * a, mp_digit b, mp_int * c) 24 mp_digit *tmpa, *tmpc, mu; 72 mu = *tmpc >> (sizeof(mp_digit) * CHAR_BIT - 1); 78 mu = *tmpc >> (sizeof(mp_digit) * CHAR_BIT - 1);
|
H A D | bn_mp_zero.c | 24 mp_digit *tmp;
|
H A D | bn_s_mp_mul_digs.c | 28 mp_digit u; 30 mp_digit tmpx, *tmpt, *tmpy; 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 | 28 mp_digit u; 30 mp_digit tmpx, *tmpt, *tmpy; 67 *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK)); 70 u = (mp_digit) (r >> ((mp_word) DIGIT_BIT));
|
H A D | bn_mp_radix_size.c | 25 mp_digit d; 63 if ((res = mp_div_d (&t, (mp_digit) radix, &t, &d)) != MP_OKAY) {
|
H A D | bn_mp_read_radix.c | 65 if ((res = mp_mul_d (a, (mp_digit) radix, a)) != MP_OKAY) { 68 if ((res = mp_add_d (a, (mp_digit) y, a)) != MP_OKAY) {
|
H A D | bn_mp_toradix.c | 25 mp_digit d; 53 if ((res = mp_div_d (&t, (mp_digit) radix, &t, &d)) != MP_OKAY) {
|
H A D | bn_mp_toradix_n.c | 28 mp_digit d; 66 if ((res = mp_div_d (&t, (mp_digit) radix, &t, &d)) != MP_OKAY) {
|
H A D | bn_fast_s_mp_sqr.c | 33 mp_digit W[MP_WARRAY], *tmpx; 49 mp_digit *tmpy; 87 W[ix] = (mp_digit)(_W & MP_MASK); 98 mp_digit *tmpb;
|
H A D | bn_mp_cnt_lsb.c | 28 mp_digit q, qq;
|
H A D | bn_mp_rshd.c | 37 register mp_digit *bottom, *top;
|
H A D | bn_s_mp_add.c | 52 register mp_digit u, *tmpa, *tmpb, *tmpc; 73 u = *tmpc >> ((mp_digit)DIGIT_BIT); 88 u = *tmpc >> ((mp_digit)DIGIT_BIT);
|
H A D | tommath.h | 39 /* C++ compilers don't like assigning void * to mp_digit * */ 59 * A "mp_digit" must be able to hold DIGIT_BIT + 1 bits 62 * At the very least a mp_digit must be able to hold 7 bits 66 typedef unsigned char mp_digit; typedef 69 typedef unsigned short mp_digit; typedef 78 typedef unsigned long mp_digit; typedef 96 typedef unsigned long mp_digit; typedef 127 /* otherwise the bits per digit is calculated automatically from the size of a mp_digit */ 129 #define DIGIT_BIT ((int)((CHAR_BIT * sizeof(mp_digit) - 1))) /* bits per digit */ 133 #define MP_MASK ((((mp_digit) [all...] |
H A D | bn_mp_cmp_mag.c | 24 mp_digit *tmpa, *tmpb;
|
H A D | bn_mp_copy.c | 40 register mp_digit *tmpa, *tmpb;
|
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/ |
H A D | pprime.c | 16 static mp_digit 38 mp_digit r, x, y, next; 44 r = 3; fwrite(&r, 1, sizeof(mp_digit), out); 45 r = 5; fwrite(&r, 1, sizeof(mp_digit), out); 46 r = 7; fwrite(&r, 1, sizeof(mp_digit), out); 47 r = 11; fwrite(&r, 1, sizeof(mp_digit), out); 48 r = 13; fwrite(&r, 1, sizeof(mp_digit), out); 49 r = 17; fwrite(&r, 1, sizeof(mp_digit), out); 50 r = 19; fwrite(&r, 1, sizeof(mp_digit), out); 51 r = 23; fwrite(&r, 1, sizeof(mp_digit), ou [all...] |
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/mtest/ |
H A D | mpi.h | 80 mp_digit *dp; /* the digits themselves */ 101 void mp_set(mp_int *mp, mp_digit d); 109 mp_err mp_add_d(mp_int *a, mp_digit d, mp_int *b); 110 mp_err mp_sub_d(mp_int *a, mp_digit d, mp_int *b); 111 mp_err mp_mul_d(mp_int *a, mp_digit d, mp_int *b); 113 mp_err mp_div_d(mp_int *a, mp_digit d, mp_int *q, mp_digit *r); 115 mp_err mp_expt_d(mp_int *a, mp_digit d, mp_int *c); 129 mp_err mp_mul_2d(mp_int *a, mp_digit d, mp_int *c); 136 mp_err mp_div_2d(mp_int *a, mp_digit [all...] |
H A D | mpi.c | 70 can be contained in an mp_digit. Thus, an mp_word is used. These 135 void s_mp_setz(mp_digit *dp, mp_size count); /* zero digits */ 136 void s_mp_copy(mp_digit *sp, mp_digit *dp, mp_size count); /* copy */ 148 #define s_mp_setz(dp, count) memset(dp, 0, (count) * sizeof(mp_digit)) 155 #define s_mp_copy(sp, dp, count) memcpy(dp, sp, (count) * sizeof(mp_digit)) 171 void s_mp_div_2d(mp_int *mp, mp_digit d); /* divide by 2^d in place */ 172 void s_mp_mod_2d(mp_int *mp, mp_digit d); /* modulo 2^d in place */ 173 mp_err s_mp_mul_2d(mp_int *mp, mp_digit d); /* multiply by 2^d in place*/ 176 mp_digit s_mp_nor [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/wpa/dist/src/tls/ |
H A D | 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_BI [all...] |