Skip to content
Snippets Groups Projects
Commit 1a13032d authored by Niels Möller's avatar Niels Möller
Browse files

FIXME-comment for next_prime.

Rev: nettle/rsa-keygen.c:1.3
parent 8d765bd2
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment