Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Brian Smith
nettle
Commits
907889cd
Commit
907889cd
authored
Jun 04, 2010
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(dsa_generate_keypair): Use DSA_SHA1_MIN_P_BITS and
DSA_SHA256_MIN_P_BITS. Rev: nettle/dsa-keygen.c:1.8
parent
c1fa1096
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dsa-keygen.c
dsa-keygen.c
+2
-2
No files found.
dsa-keygen.c
View file @
907889cd
...
...
@@ -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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment