summaryrefslogtreecommitdiffstats
path: root/libtommath/bn_mp_prime_next_prime.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-03-14 12:08:07 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-03-14 12:08:07 (GMT)
commitfac003f85aeba679d1cc6bea4eb8a84fc0ebd9f0 (patch)
tree9a4dfb92b8e6611111c7e8fe06f7767b18b9e695 /libtommath/bn_mp_prime_next_prime.c
parentb7a189417b38e35bb825490a1b9a15fc8d138333 (diff)
downloadtcl-fac003f85aeba679d1cc6bea4eb8a84fc0ebd9f0.zip
tcl-fac003f85aeba679d1cc6bea4eb8a84fc0ebd9f0.tar.gz
tcl-fac003f85aeba679d1cc6bea4eb8a84fc0ebd9f0.tar.bz2
Import of tommath 0.42.0
Diffstat (limited to 'libtommath/bn_mp_prime_next_prime.c')
-rw-r--r--libtommath/bn_mp_prime_next_prime.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libtommath/bn_mp_prime_next_prime.c b/libtommath/bn_mp_prime_next_prime.c
index daf2ec7..37a03c6 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;
}
@@ -165,6 +165,6 @@ LBL_ERR:
#endif
-/* $Source: /cvs/libtom/libtommath/bn_mp_prime_next_prime.c,v $ */
-/* $Revision: 1.4 $ */
-/* $Date: 2006/12/28 01:25:13 $ */
+/* $Source$ */
+/* $Revision: v0.42.0 $ */
+/* $Date: 2010-07-15 13:49:00 +0000 $ */