This website works better with JavaScript.
Home
Explore
Help
Sign In
RuhNetConsulting
/
rtpengine
mirror of
https://github.com/sipwise/rtpengine
Watch
1
Star
1
Fork
0
Code
Issues
0
Projects
0
Releases
822
Wiki
Activity
Browse Source
TT#108551 fix AEAD kernel encryption of small packets
closes
#1230
Change-Id: I26cae7b53eed1ff8155d2fa1e1aa5283a9c37d36
pull/1252/head
Richard Fuchs
5 years ago
parent
89d1a77f37
commit
e70d203802
2 changed files
with
3 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
daemon/crypto.c
+0
-2
kernel-module/xt_RTPENGINE.c
+ 3
- 0
daemon/crypto.c
View File
@ -593,6 +593,9 @@ static int aes_gcm_decrypt_rtp(struct crypto_context *c, struct rtp_header *r, s
unsigned
char
iv
[
12
]
;
int
len
,
plaintext_len
;
if
(
s
-
>
len
<
16
)
return
-
1
;
memcpy
(
iv
,
c
-
>
session_salt
,
12
)
;
*
(
u_int32_t
*
)
(
iv
+
2
)
^
=
r
-
>
ssrc
;
+ 0
- 2
kernel-module/xt_RTPENGINE.c
View File
@ -3914,8 +3914,6 @@ static int srtp_encrypt_aes_gcm(struct re_crypto_context *c,
if
(
s
-
>
session_salt_len
!
=
12
)
return
-
EINVAL
;
if
(
r
-
>
payload_len
<
16
)
return
-
EINVAL
;
memcpy
(
iv
,
c
-
>
session_salt
,
12
)
;
Write
Preview
Loading…
Cancel
Save