summaryrefslogtreecommitdiffstats
path: root/keygen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'keygen.cpp')
-rw-r--r--keygen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/keygen.cpp b/keygen.cpp
index 53751f2..e785cfb 100644
--- a/keygen.cpp
+++ b/keygen.cpp
@@ -74,7 +74,7 @@ int main(int argc, char **argv)
/* phi = (p-1)(q-1) */
unsigned long phi = (prime_p-1) * (prime_q-1);
- unsigned long fermat_primes[4] = { 3l, 17l, 65537l, 4294967297l };
+ unsigned long fermat_primes[4] = { 3l, 17l, 19l, 31l };
unsigned long e;
/* find e, 1 < e < phi, such that gcd(e, phi) = 1 */
int i;
@@ -93,7 +93,7 @@ int main(int argc, char **argv)
printf("done\n");
/* find d */
- printf("computing d... ");
+ printf("computing d... (might take a while) ");
fflush(stdout);
unsigned long d = 1;
while (1)