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
3f3025aa
Commit
3f3025aa
authored
May 17, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix incorrect hash size limit
parent
b0f45973
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
libs/srtp/srtp.c
libs/srtp/srtp.c
+3
-1
No files found.
libs/srtp/srtp.c
View file @
3f3025aa
...
...
@@ -208,7 +208,7 @@ srtp_create (int encr, int auth, unsigned tag_len, int prf, unsigned flags)
return
NULL
;
}
if
(
tag_len
>
gcry_md_get_algo_dlen
(
auth
))
if
(
tag_len
>
gcry_md_get_algo_dlen
(
md
))
return
NULL
;
if
(
prf
!=
SRTP_PRF_AES_CM
)
...
...
@@ -331,6 +331,7 @@ srtp_derive (srtp_session_t *s, const void *key, size_t keylen,
||
gcry_cipher_setkey
(
prf
,
key
,
keylen
))
return
-
1
;
#if 0
/* RTP key derivation */
if (s->kdr != 0)
{
...
...
@@ -344,6 +345,7 @@ srtp_derive (srtp_session_t *s, const void *key, size_t keylen,
}
}
else
#endif
memset
(
r
,
0
,
sizeof
(
r
));
if
(
proto_derive
(
&
s
->
rtp
,
prf
,
salt
,
saltlen
,
r
,
6
,
false
))
...
...
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