diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-08-12 11:28:17 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2010-08-12 11:28:17 +0200 |
commit | 0bacb77c22c1a789cafb435d8b781dc33873fe06 (patch) | |
tree | 897533ebe85f4f982cd1da6410d96d05e123102e /libtommath | |
parent | cb21e629743317fa1e900fdad72474ec7d011ab3 (diff) | |
download | kernel-crypto-0bacb77c22c1a789cafb435d8b781dc33873fe06.tar.gz kernel-crypto-0bacb77c22c1a789cafb435d8b781dc33873fe06.tar.xz kernel-crypto-0bacb77c22c1a789cafb435d8b781dc33873fe06.zip |
Fix prime testing
Upstream commit a53ea341274300323cd2e664440d8bc0c4d8328a
Diffstat (limited to 'libtommath')
-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 daf2ec7c647..bc31cc72086 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; } |