diff options
author | Geoff Thorpe <geoff@openssl.org> | 2004-09-19 04:55:15 +0000 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2004-09-19 04:55:15 +0000 |
commit | 280eb33b5930efef9a3dfdeab5c3df46a9425243 (patch) | |
tree | b920ce16dae223b57ed2ea86b281378de09568a0 /crypto/rsa/rsa_gen.c | |
parent | f79110c63383de7241c01e80f0dfc07d33395e77 (diff) | |
download | openssl-280eb33b5930efef9a3dfdeab5c3df46a9425243.tar.gz |
Remove distracting comments and code. Thanks to Nils for picking up on the
outstanding ticket.
PR: 926
Diffstat (limited to 'crypto/rsa/rsa_gen.c')
-rw-r--r-- | crypto/rsa/rsa_gen.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/crypto/rsa/rsa_gen.c b/crypto/rsa/rsa_gen.c index 839a3eeb8f..8e3a5821d6 100644 --- a/crypto/rsa/rsa_gen.c +++ b/crypto/rsa/rsa_gen.c @@ -165,22 +165,6 @@ static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb) if (!BN_sub(r1,rsa->p,BN_value_one())) goto err; /* p-1 */ if (!BN_sub(r2,rsa->q,BN_value_one())) goto err; /* q-1 */ if (!BN_mul(r0,r1,r2,ctx)) goto err; /* (p-1)(q-1) */ - -/* should not be needed, since gcd(p-1,e) == 1 and gcd(q-1,e) == 1 */ -/* for (;;) - { - if (!BN_gcd(r3,r0,rsa->e,ctx)) goto err; - if (BN_is_one(r3)) break; - - if (1) - { - if (!BN_add_word(rsa->e,2L)) goto err; - continue; - } - RSAerr(RSA_F_RSA_GENERATE_KEY,RSA_R_BAD_E_VALUE); - goto err; - } -*/ if (!BN_mod_inverse(rsa->d,rsa->e,r0,ctx)) goto err; /* d */ /* calculate d mod (p-1) */ |