comparison libtommath/bn_mp_prime_next_prime.c @ 641:2b1bb792cd4d dropbear-tfm

- Update tfm changes to current default tip
author Matt Johnston <matt@ucc.asn.au>
date Mon, 21 Nov 2011 19:52:28 +0800
parents a55b97f5a485
children 60fc6476e044
comparison
equal deleted inserted replaced
640:76097ec1a29a 641:2b1bb792cd4d
141 continue; 141 continue;
142 } 142 }
143 143
144 /* is this prime? */ 144 /* is this prime? */
145 for (x = 0; x < t; x++) { 145 for (x = 0; x < t; x++) {
146 mp_set(&b, ltm_prime_tab[t]); 146 mp_set(&b, ltm_prime_tab[x]);
147 if ((err = mp_prime_miller_rabin(a, &b, &res)) != MP_OKAY) { 147 if ((err = mp_prime_miller_rabin(a, &b, &res)) != MP_OKAY) {
148 goto LBL_ERR; 148 goto LBL_ERR;
149 } 149 }
150 if (res == MP_NO) { 150 if (res == MP_NO) {
151 break; 151 break;