Commit 907889cd authored by Niels Möller's avatar Niels Möller

(dsa_generate_keypair): Use DSA_SHA1_MIN_P_BITS and

DSA_SHA256_MIN_P_BITS.

Rev: nettle/dsa-keygen.c:1.8
parent c1fa1096
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment