diff 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
line wrap: on
line diff
--- a/libtommath/bn_mp_prime_next_prime.c	Mon Nov 21 19:19:57 2011 +0800
+++ b/libtommath/bn_mp_prime_next_prime.c	Mon Nov 21 19:52:28 2011 +0800
@@ -143,7 +143,7 @@
 
       /* is this prime? */
       for (x = 0; x < t; x++) {
-          mp_set(&b, ltm_prime_tab[t]);
+          mp_set(&b, ltm_prime_tab[x]);
           if ((err = mp_prime_miller_rabin(a, &b, &res)) != MP_OKAY) {
              goto LBL_ERR;
           }