Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
5ce0c2c1
Commit
5ce0c2c1
authored
May 12, 2014
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: handle hash lengths with DSA keys larger than 1024 bits
parent
cbeef6e0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/misc/update_crypto.c
src/misc/update_crypto.c
+2
-2
No files found.
src/misc/update_crypto.c
View file @
5ce0c2c1
...
@@ -452,8 +452,8 @@ int verify_signature( signature_packet_t *sign, public_key_packet_t *p_key,
...
@@ -452,8 +452,8 @@ int verify_signature( signature_packet_t *sign, public_key_packet_t *p_key,
int
i_hash_len
=
gcry_md_get_algo_dlen
(
sign
->
digest_algo
);
int
i_hash_len
=
gcry_md_get_algo_dlen
(
sign
->
digest_algo
);
if
(
sign
->
public_key_algo
==
GCRY_PK_DSA
)
{
if
(
sign
->
public_key_algo
==
GCRY_PK_DSA
)
{
if
(
i_hash_len
>
20
)
if
(
i_hash_len
>
i_q_len
)
i_hash_len
=
20
;
i_hash_len
=
i_q_len
;
}
}
if
(
gcry_mpi_scan
(
&
hash
,
GCRYMPI_FMT_USG
,
p_hash
,
i_hash_len
,
NULL
)
||
if
(
gcry_mpi_scan
(
&
hash
,
GCRYMPI_FMT_USG
,
p_hash
,
i_hash_len
,
NULL
)
||
gcry_sexp_build
(
&
hash_sexp
,
&
erroff
,
hash_sexp_s
,
hash
)
)
gcry_sexp_build
(
&
hash_sexp
,
&
erroff
,
hash_sexp_s
,
hash
)
)
...
...
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