]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
(dsa_generate_keypair): Use DSA_SHA1_MIN_P_BITS and
authorNiels Möller <nisse@lysator.liu.se>
Fri, 4 Jun 2010 13:41:19 +0000 (15:41 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Fri, 4 Jun 2010 13:41:19 +0000 (15:41 +0200)
DSA_SHA256_MIN_P_BITS.

Rev: nettle/dsa-keygen.c:1.8

dsa-keygen.c

index 5b50d0e1049432390f5bc2b35a7ea2232a4dc0f3..a32ec6c664be888ec0ba766124e266f47de27e00 100644 (file)
@@ -54,11 +54,11 @@ dsa_generate_keypair(struct dsa_public_key *pub,
   switch (q_bits)
     {
     case 160:
-      if (p_bits < 512)
+      if (p_bits < DSA_SHA1_MIN_P_BITS)
        return 0;
       break;
     case 256:
-      if (p_bits < 1024)
+      if (p_bits < DSA_SHA256_MIN_P_BITS)
        return 0;
       break;
     default: