Searched refs:mp_digit (Results 26 - 50 of 72) sorted by relevance

123

/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/
H A Dbn_mp_cmp_d.c21 int mp_cmp_d(mp_int * a, mp_digit b)
H A Dbn_mp_div_2d.c23 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 Dbn_mp_div_3.c22 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 Dbn_mp_dr_reduce.c35 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 Dbn_mp_mul_2d.c23 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 Dbn_mp_prime_is_divisible.c28 mp_digit res;
H A Dbn_mp_sub_d.c22 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 Dbn_mp_zero.c24 mp_digit *tmp;
H A Dbn_s_mp_mul_digs.c28 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 Dbn_s_mp_mul_high_digs.c28 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 Dbn_mp_radix_size.c25 mp_digit d;
63 if ((res = mp_div_d (&t, (mp_digit) radix, &t, &d)) != MP_OKAY) {
H A Dbn_mp_read_radix.c65 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 Dbn_mp_toradix.c25 mp_digit d;
53 if ((res = mp_div_d (&t, (mp_digit) radix, &t, &d)) != MP_OKAY) {
H A Dbn_mp_toradix_n.c28 mp_digit d;
66 if ((res = mp_div_d (&t, (mp_digit) radix, &t, &d)) != MP_OKAY) {
H A Dbn_fast_s_mp_sqr.c33 mp_digit W[MP_WARRAY], *tmpx;
49 mp_digit *tmpy;
87 W[ix] = (mp_digit)(_W & MP_MASK);
98 mp_digit *tmpb;
H A Dbn_mp_cnt_lsb.c28 mp_digit q, qq;
H A Dbn_mp_rshd.c37 register mp_digit *bottom, *top;
H A Dbn_s_mp_add.c52 register mp_digit u, *tmpa, *tmpb, *tmpc;
73 u = *tmpc >> ((mp_digit)DIGIT_BIT);
88 u = *tmpc >> ((mp_digit)DIGIT_BIT);
H A Dtommath.h39 /* 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 Dbn_mp_cmp_mag.c24 mp_digit *tmpa, *tmpb;
H A Dbn_mp_copy.c40 register mp_digit *tmpa, *tmpb;
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/
H A Dpprime.c16 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 Dmpi.h80 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 Dmpi.c70 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 Dlibtommath.c69 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...]

Completed in 220 milliseconds

123