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
a3a04b83
Commit
a3a04b83
authored
May 11, 2014
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: support other hashing algorithms than
SHA-1
parent
7d8714d9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/misc/update_crypto.c
src/misc/update_crypto.c
+4
-3
No files found.
src/misc/update_crypto.c
View file @
a3a04b83
...
...
@@ -285,9 +285,6 @@ static int parse_signature_packet( signature_packet_t *p_sig,
if
(
p_sig
->
public_key_algo
!=
GCRY_PK_DSA
)
goto
error
;
if
(
p_sig
->
digest_algo
!=
GCRY_MD_SHA1
)
goto
error
;
switch
(
p_sig
->
type
)
{
case
BINARY_SIGNATURE
:
...
...
@@ -454,6 +451,10 @@ int verify_signature( signature_packet_t *sign, public_key_packet_t *p_key,
goto
problem
;
int
i_hash_len
=
gcry_md_get_algo_dlen
(
sign
->
digest_algo
);
if
(
sign
->
public_key_algo
==
GCRY_PK_DSA
)
{
if
(
i_hash_len
>
20
)
i_hash_len
=
20
;
}
if
(
gcry_mpi_scan
(
&
hash
,
GCRYMPI_FMT_USG
,
p_hash
,
i_hash_len
,
NULL
)
||
gcry_sexp_build
(
&
hash_sexp
,
&
erroff
,
hash_sexp_s
,
hash
)
)
goto
problem
;
...
...
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