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)
commita3eb84e8cb98e97f4d06ef6d77df7c6c79b3fb45 (patch)
tree9a4dfb92b8e6611111c7e8fe06f7767b18b9e695 /libtommath/bn_mp_prime_next_prime.c
parentd5b999af66b8094ad876dd981255d78f295766aa (diff)
downloadtcl-a3eb84e8cb98e97f4d06ef6d77df7c6c79b3fb45.zip
tcl-a3eb84e8cb98e97f4d06ef6d77df7c6c79b3fb45.tar.gz
tcl-a3eb84e8cb98e97f4d06ef6d77df7c6c79b3fb45.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 $ */