summaryrefslogtreecommitdiff
path: root/rsa-keygen.c
diff options
context:
space:
mode:
Diffstat (limited to 'rsa-keygen.c')
-rw-r--r--rsa-keygen.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/rsa-keygen.c b/rsa-keygen.c
index b7e38f77..702b63b8 100644
--- a/rsa-keygen.c
+++ b/rsa-keygen.c
@@ -126,10 +126,6 @@ rsa_generate_keypair(struct rsa_public_key *pub,
random_ctx, random,
progress_ctx, progress);
- /* Very unlikely. */
- if (mpz_cmp (key->q, key->p) == 0)
- continue;
-
mpz_sub_ui(q1, key->q, 1);
/* If e was given, we must choose q such that q-1 has no factors in