]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
FIXME-comment for next_prime.
authorNiels Möller <nisse@lysator.liu.se>
Sun, 30 Sep 2007 20:42:49 +0000 (22:42 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Sun, 30 Sep 2007 20:42:49 +0000 (22:42 +0200)
Rev: nettle/rsa-keygen.c:1.3

rsa-keygen.c

index e4731d546eec469f4fcbef710ef4083347c3fe1a..c1bc2f206f120bf8e298f92e0208a280786e5140 100644 (file)
@@ -62,6 +62,13 @@ static const unsigned long primes[NUMBER_OF_PRIMES] = {
   977, 983, 991, 997
 };
 
+/* FIXME: Tune and optimize this more cerefully.
+   
+   1. Avoid using % in the loop.
+
+   2. Tune the number of primes.
+*/
+
 /* NOTE: The mpz_nextprime in current GMP is unoptimized. */
 static void
 bignum_next_prime(mpz_t p, mpz_t n, int count,