diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-08-12 11:28:59 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2010-08-12 11:28:59 +0200 |
commit | 5585282bbf8d8deb7fb2f87bf9110cfda87fb832 (patch) | |
tree | 15475ced9b3eabc85d58a575757791812a41e4b1 | |
parent | 0024df8d31d4d19d6b5e1c11fe6ff98046fbe825 (diff) | |
parent | 0bacb77c22c1a789cafb435d8b781dc33873fe06 (diff) | |
download | cryptodev-linux-5585282bbf8d8deb7fb2f87bf9110cfda87fb832.tar.gz cryptodev-linux-5585282bbf8d8deb7fb2f87bf9110cfda87fb832.tar.xz cryptodev-linux-5585282bbf8d8deb7fb2f87bf9110cfda87fb832.zip |
Merge branch 'bugfixes'
-rw-r--r-- | libtommath/bn_mp_prime_next_prime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libtommath/bn_mp_prime_next_prime.c b/libtommath/bn_mp_prime_next_prime.c index daf2ec7..bc31cc7 100644 --- a/libtommath/bn_mp_prime_next_prime.c +++ b/libtommath/bn_mp_prime_next_prime.c @@ -143,7 +143,7 @@ int mp_prime_next_prime(mp_int *a, int t, int bbs_style) /* 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; } |