summaryrefslogtreecommitdiffstats
path: root/keygen.cpp
diff options
context:
space:
mode:
authorKyle K <kylek389@gmail.com>2011-02-21 14:47:20 -0600
committerKamil Kaminski <kamilkss@gmail.com>2011-02-21 14:47:20 -0600
commit660300b28954f6120ca472940146556c11982307 (patch)
tree9249d4f2e7f7f57047b2f6338d8891e3ada89753 /keygen.cpp
parent6f39a3ebc807f66a32201ad24794ed7881151217 (diff)
downloadrsacrypt-master.tar.gz
rsacrypt-master.tar.bz2
rsacrypt-master.zip
few small changesHEADmaster
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)