Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Wim Lewis
nettle
Commits
1a13032d
Commit
1a13032d
authored
Sep 30, 2007
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIXME-comment for next_prime.
Rev: nettle/rsa-keygen.c:1.3
parent
8d765bd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
rsa-keygen.c
rsa-keygen.c
+7
-0
No files found.
rsa-keygen.c
View file @
1a13032d
...
...
@@ -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
,
...
...
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