Skip to content
Snippets Groups Projects
Commit 907889cd authored by Niels Möller's avatar Niels Möller
Browse files

(dsa_generate_keypair): Use DSA_SHA1_MIN_P_BITS and

DSA_SHA256_MIN_P_BITS.

Rev: nettle/dsa-keygen.c:1.8
parent c1fa1096
No related branches found
No related tags found
No related merge requests found
...@@ -54,11 +54,11 @@ dsa_generate_keypair(struct dsa_public_key *pub, ...@@ -54,11 +54,11 @@ dsa_generate_keypair(struct dsa_public_key *pub,
switch (q_bits) switch (q_bits)
{ {
case 160: case 160:
if (p_bits < 512) if (p_bits < DSA_SHA1_MIN_P_BITS)
return 0; return 0;
break; break;
case 256: case 256:
if (p_bits < 1024) if (p_bits < DSA_SHA256_MIN_P_BITS)
return 0; return 0;
break; break;
default: default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment