Home | History | Annotate | Download | only in demo

Lines Matching defs:ix

58    int i, n, err, cnt, ix, old_kara_m, old_kara_s;
85 for (ix = 0; ix < 100; ix++) {
177 for (ix = 10; ix < 128; ix++) {
178 printf("Testing (not safe-prime): %9d bits \r", ix);
181 mp_prime_random_ex(&a, 8, ix,
188 if (mp_count_bits(&a) != ix) {
189 printf("Prime is %d not %d bits!!!\n", mp_count_bits(&a), ix);
194 for (ix = 16; ix < 128; ix++) {
195 printf("Testing ( safe-prime): %9d bits \r", ix);
198 mp_prime_random_ex(&a, 8, ix,
206 if (mp_count_bits(&a) != ix) {
207 printf("Prime is %d not %d bits!!!\n", mp_count_bits(&a), ix);
244 for (ix = 0; ix < 1024; ix++) {
245 if (mp_cnt_lsb(&a) != ix) {
246 printf("Failed at %d, %d\n", ix, mp_cnt_lsb(&a));
265 for (ix = 0; ix < 1000; ix++) {
266 if (!(ix & 127)) {
305 for (ix = 1; ix < cnt; ix++) {
306 a.dp[ix] = MP_MASK;
704 sscanf(buf, "%d", &ix);
707 mp_add_d(&a, ix, &c);
713 printf("d == %d\n", ix);
721 sscanf(buf, "%d", &ix);
724 mp_sub_d(&a, ix, &c);
730 printf("d == %d\n", ix);