diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-11-25 19:00:20 +0400 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-11-25 19:00:20 +0400 |
commit | 7dcdc0d94d692cd6539bdf3950b3e4be61a0f441 (patch) | |
tree | dc4155bf286e9bcb57012141cc8925eaf4c8ab60 | |
parent | 6ecd287acc7720f89b7b11bb609988e6c67439cb (diff) |
check counter value against 4 * L, not 4096
-rw-r--r-- | crypto/dsa/dsa_gen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/dsa/dsa_gen.c b/crypto/dsa/dsa_gen.c index d5f4debc92..3b49420c76 100644 --- a/crypto/dsa/dsa_gen.c +++ b/crypto/dsa/dsa_gen.c @@ -666,7 +666,7 @@ int dsa_builtin_paramgen2(DSA *ret, size_t L, size_t N, /* "offset = offset + n + 1" */ /* step 14 */ - if (counter >= 4096) break; + if (counter >= (int)(4 * L)) break; } } end: |