Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dmitry Baryshkov
nettle
Commits
1a13032d
Commit
1a13032d
authored
Sep 30, 2007
by
Niels Möller
Browse files
FIXME-comment for next_prime.
Rev: nettle/rsa-keygen.c:1.3
parent
8d765bd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
rsa-keygen.c
View file @
1a13032d
...
@@ -62,6 +62,13 @@ static const unsigned long primes[NUMBER_OF_PRIMES] = {
...
@@ -62,6 +62,13 @@ static const unsigned long primes[NUMBER_OF_PRIMES] = {
977
,
983
,
991
,
997
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. */
/* NOTE: The mpz_nextprime in current GMP is unoptimized. */
static
void
static
void
bignum_next_prime
(
mpz_t
p
,
mpz_t
n
,
int
count
,
bignum_next_prime
(
mpz_t
p
,
mpz_t
n
,
int
count
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment