Searched refs:DIGIT_BIT (Results 26 - 46 of 46) sorted by relevance
12
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/ |
H A D | bn_mp_mul_2.c | 51 rr = *tmpa >> ((mp_digit)(DIGIT_BIT - 1));
|
H A D | bn_mp_mul_d.c | 59 u = (mp_digit) (r >> ((mp_word) DIGIT_BIT));
|
H A D | bn_fast_mp_montgomery_reduce.c | 112 W[ix + 1] += W[ix] >> ((mp_word) DIGIT_BIT); 132 *_W++ += *_W1++ >> ((mp_word) DIGIT_BIT);
|
H A D | bn_mp_div_d.c | 29 for (x = 0; x < DIGIT_BIT; x++) { 89 w = (w << ((mp_word)DIGIT_BIT)) | ((mp_word)a->dp[ix]);
|
H A D | bn_mp_prime_next_prime.c | 134 } while (y == 1 && step < ((((mp_digit)1)<<DIGIT_BIT) - kstep)); 142 if (y == 1 && step >= ((((mp_digit)1)<<DIGIT_BIT) - kstep)) {
|
H A D | bn_fast_s_mp_mul_digs.c | 82 _W = _W >> ((mp_word)DIGIT_BIT);
|
H A D | bn_fast_s_mp_mul_high_digs.c | 72 _W = _W >> ((mp_word)DIGIT_BIT);
|
H A D | bn_mp_dr_reduce.c | 69 mu = (mp_digit)(r >> ((mp_word)DIGIT_BIT));
|
H A D | bn_mp_toom_mul.c | 43 if ((res = mp_mod_2d(a, DIGIT_BIT * B, &a0)) != MP_OKAY) { 51 mp_mod_2d(&a1, DIGIT_BIT * B, &a1); 59 if ((res = mp_mod_2d(b, DIGIT_BIT * B, &b0)) != MP_OKAY) { 67 mp_mod_2d(&b1, DIGIT_BIT * B, &b1);
|
H A D | bn_mp_div.c | 153 /* normalize both x and y, ensure that y >= b/2, [b == 2**DIGIT_BIT] */ 154 norm = mp_count_bits(&y) % DIGIT_BIT; 155 if (norm < (int)(DIGIT_BIT-1)) { 156 norm = (DIGIT_BIT-1) - norm; 195 q.dp[i - t - 1] = ((((mp_digit)1) << DIGIT_BIT) - 1); 198 tmp = ((mp_word) x.dp[i]) << ((mp_word) DIGIT_BIT);
|
H A D | bn_s_mp_exptmod.c | 157 bitcnt = (int) DIGIT_BIT; 161 y = (buf >> (mp_digit)(DIGIT_BIT - 1)) & 1;
|
H A D | tommath.h | 59 * A "mp_digit" must be able to hold DIGIT_BIT + 1 bits 60 * A "mp_word" must be able to hold 2*DIGIT_BIT + 1 bits 81 #define DIGIT_BIT 60 macro 101 #define DIGIT_BIT 31 macro 104 #define DIGIT_BIT 28 macro 128 #ifndef DIGIT_BIT 129 #define DIGIT_BIT ((int)((CHAR_BIT * sizeof(mp_digit) - 1))) /* bits per digit */ macro 132 #define MP_DIGIT_BIT DIGIT_BIT 133 #define MP_MASK ((((mp_digit)1)<<((mp_digit)DIGIT_BIT))-((mp_digit)1)) 178 #define MP_WARRAY (1 << (sizeof(mp_word) * CHAR_BIT - 2 * DIGIT_BIT [all...] |
H A D | bn_fast_s_mp_sqr.c | 90 W1 = _W >> ((mp_word)DIGIT_BIT);
|
H A D | bn_mp_exptmod_fast.c | 102 P->used < (1 << ((CHAR_BIT * sizeof (mp_word)) - (2 * DIGIT_BIT)))) { 212 bitcnt = (int)DIGIT_BIT; 216 y = (mp_digit)(buf >> (DIGIT_BIT - 1)) & 1;
|
H A D | bn_mp_toom_sqr.c | 36 if ((res = mp_mod_2d(a, DIGIT_BIT * B, &a0)) != MP_OKAY) { 44 mp_mod_2d(&a1, DIGIT_BIT * B, &a1);
|
/netbsd-6-1-5-RELEASE/external/bsd/wpa/dist/src/tls/ |
H A D | libtommath.c | 72 #define DIGIT_BIT 28 macro 81 #define MP_MASK ((((mp_digit)1)<<((mp_digit)DIGIT_BIT))-((mp_digit)1)) 112 #define MP_WARRAY (1 << (sizeof(mp_word) * CHAR_BIT - 2 * DIGIT_BIT + 1)) 258 u = *tmpc >> ((mp_digit)DIGIT_BIT); 273 u = *tmpc >> ((mp_digit)DIGIT_BIT); 509 (1 << ((CHAR_BIT * sizeof (mp_word)) - (2 * DIGIT_BIT)))) { 1044 if (b >= (int)DIGIT_BIT) { 1045 mp_rshd (c, b / DIGIT_BIT); 1048 /* shift any bit count < DIGIT_BIT */ 1049 D = (mp_digit) (b % DIGIT_BIT); [all...] |
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/demo/ |
H A D | timing.c | 126 fprintf(log, "%d %9llu\n", cnt * DIGIT_BIT, tt); 148 fprintf(log, "%d %9llu\n", cnt * DIGIT_BIT, tt); 164 for (cnt = 4; cnt <= 10240 / DIGIT_BIT; cnt += 2) { 185 for (cnt = 4; cnt <= 10240 / DIGIT_BIT; cnt += 2) { 312 fprintf(log, "%d %9llu\n", cnt * DIGIT_BIT, tt);
|
H A D | demo.c | 272 mp_rand(&b, (cnt / DIGIT_BIT + 1) * 2); 327 mp_dr_reduce(&c, &a, (((mp_digit) 1) << DIGIT_BIT) - a.dp[0]);
|
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/mtest/ |
H A D | mpi.c | 79 /* #define CARRYOUT(W) (((W)>>DIGIT_BIT)&MP_DIGIT_MAX) */ 80 #define CARRYOUT(W) ((W)>>DIGIT_BIT) 1289 for(bit = 0; bit < DIGIT_BIT; bit++) { 1670 for(bit = 0; bit < DIGIT_BIT; bit++) { 2436 len = DIGIT_BIT * (USED(mp) - 1); 2909 kout = (dp[ix] >> (DIGIT_BIT - 1)) & 1; 2942 unsigned int ndig = (d / DIGIT_BIT), nbit = (d % DIGIT_BIT); 2977 if((res = s_mp_lshd(mp, d / DIGIT_BIT)) != MP_OKAY) 2981 d %= DIGIT_BIT; [all...] |
H A D | mpi.h | 54 #define DIGIT_BIT MP_DIGIT_BIT macro
|
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/ |
H A D | pprime.c | 184 if (k <= (int) DIGIT_BIT) {
|
Completed in 130 milliseconds
12