From ea7fe214c4d05fe6d52bf4d106216acc7eaca773 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Fri, 25 Nov 2011 15:01:23 +0000 Subject: [PATCH] check counter value against 4 * L, not 4096 --- crypto/dsa/dsa_gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.25.1