diff options
author | Bodo Möller <bodo@openssl.org> | 2000-01-30 02:40:38 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-01-30 02:40:38 +0000 |
commit | 7865b871c0307ad2d71a8f3dc066b7cfd0d99c4a (patch) | |
tree | 6c91b4597cd6fed8168134eb17590e0d10975fdb /crypto | |
parent | a87030a1edf0e4c6d601895f810b2d0da84ee10a (diff) | |
download | openssl-7865b871c0307ad2d71a8f3dc066b7cfd0d99c4a.tar.gz |
Tiny changes to previous patch (the log message was meant to be
"Make DSA_generate_parameters faster").
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/dsa/dsa_gen.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crypto/dsa/dsa_gen.c b/crypto/dsa/dsa_gen.c index f7e0b585a1..710a4faa66 100644 --- a/crypto/dsa/dsa_gen.c +++ b/crypto/dsa/dsa_gen.c @@ -131,7 +131,7 @@ DSA *DSA_generate_parameters(int bits, unsigned char *seed_in, int seed_len, { for (;;) /* find q */ { - int seed_is_random = 0; + int seed_is_random; /* step 1 */ if (callback != NULL) callback(0,m++,cb_arg); @@ -142,8 +142,10 @@ DSA *DSA_generate_parameters(int bits, unsigned char *seed_in, int seed_len, seed_is_random = 1; } else - /* use random seed if 'seed_in' turns out to be bad */ - seed_len=0; + { + seed_is_random = 0; + seed_len=0; /* use random seed if 'seed_in' turns out to be bad*/ + } memcpy(buf,seed,SHA_DIGEST_LENGTH); memcpy(buf2,seed,SHA_DIGEST_LENGTH); /* precompute "SEED + 1" for step 7: */ |