Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(674)

Issue 2723863003: Fix incorrectly masked seq number for GCM IV. (Closed)

Created:
3 years, 9 months ago by joachim
Modified:
3 years, 9 months ago
CC:
chromium-reviews, emadomara
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix incorrectly masked seq number for GCM IV. During the IV calculation, the sequence number has it's endianess reversed before clearing the most significant bit, bit 31. On little endian platforms, this results in the incorrect clearing of bit 7. The fix is to clear the most significant bit prior to swapping the byte order. Please note that this change results in incompatibility with libsrtp releases without this change. This is a backport of https://github.com/cisco/libsrtp/pull/259 and https://github.com/cisco/libsrtp/pull/262 BUG=webrtc:7288 TESTED=Ran all tests using: gn gen out/libsrtp --args=build_libsrtp_tests=true ninja -C out/libsrtp srtp_tests out/libsrtp/srtp_tests/run_all_tests.sh Committed: https://chromium.googlesource.com/chromium/deps/libsrtp.git/+/d15364a801e42d164486b6c8522bde271b24761d

Patch Set 1 #

Patch Set 2 : Updated with upstream changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -6 lines) Patch
M README.chromium View 1 1 chunk +4 lines, -0 lines 0 comments Download
M srtp/srtp.c View 1 5 chunks +26 lines, -6 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
joachim
Ptal, this is the backport for the issue you sent.
3 years, 9 months ago (2017-03-01 17:49:07 UTC) #2
juberti1
On 2017/03/01 17:49:07, joachim wrote: > Ptal, this is the backport for the issue you ...
3 years, 9 months ago (2017-03-01 17:56:55 UTC) #5
joachim
On 2017/03/01 17:56:55, juberti1 wrote: > On 2017/03/01 17:49:07, joachim wrote: > > Ptal, this ...
3 years, 9 months ago (2017-03-01 19:38:35 UTC) #6
pthatcher2
I see that the PR has not been merged. Are we confident that it's correct? ...
3 years, 9 months ago (2017-03-01 23:40:25 UTC) #8
juberti1
On 2017/03/01 19:38:35, joachim wrote: > On 2017/03/01 17:56:55, juberti1 wrote: > > On 2017/03/01 ...
3 years, 9 months ago (2017-03-02 06:33:57 UTC) #9
pthatcher1
On 2017/03/02 06:33:57, juberti1 wrote: > On 2017/03/01 19:38:35, joachim wrote: > > On 2017/03/01 ...
3 years, 9 months ago (2017-03-03 06:50:56 UTC) #11
joachim
On 2017/03/03 06:50:56, pthatcher1 wrote: > On 2017/03/02 06:33:57, juberti1 wrote: > > On 2017/03/01 ...
3 years, 9 months ago (2017-03-03 07:29:29 UTC) #12
pthatcher1
On 2017/03/03 07:29:29, joachim wrote: > On 2017/03/03 06:50:56, pthatcher1 wrote: > > On 2017/03/02 ...
3 years, 9 months ago (2017-03-10 23:55:57 UTC) #13
joachim
Done, ptal. We will also need somebody to land this as there is no CQ ...
3 years, 9 months ago (2017-03-11 00:15:36 UTC) #15
pthatcher2
On 2017/03/11 00:15:36, joachim wrote: > Done, ptal. > > We will also need somebody ...
3 years, 9 months ago (2017-03-11 00:33:32 UTC) #16
kjellander_chromium
On 2017/03/11 00:33:32, pthatcher2 wrote: > On 2017/03/11 00:15:36, joachim wrote: > > Done, ptal. ...
3 years, 9 months ago (2017-03-13 13:32:26 UTC) #19
kjellander_chromium
On 2017/03/13 13:32:26, kjellander_chromium wrote: > On 2017/03/11 00:33:32, pthatcher2 wrote: > > On 2017/03/11 ...
3 years, 9 months ago (2017-03-13 13:34:27 UTC) #20
joachim
On 2017/03/13 13:34:27, kjellander_chromium wrote: > On 2017/03/13 13:32:26, kjellander_chromium wrote: > > On 2017/03/11 ...
3 years, 9 months ago (2017-03-13 13:38:29 UTC) #21
kjellander_chromium
3 years, 9 months ago (2017-03-13 13:42:06 UTC) #22
On 2017/03/13 13:38:29, joachim wrote:
> On 2017/03/13 13:34:27, kjellander_chromium wrote:
> > On 2017/03/13 13:32:26, kjellander_chromium wrote:
> > > On 2017/03/11 00:33:32, pthatcher2 wrote:
> > > > On 2017/03/11 00:15:36, joachim wrote:
> > > > > Done, ptal.
> > > > > 
> > > > > We will also need somebody to land this as there is no CQ here, or
could
> > you
> > > > do
> > > > > that?
> > > > 
> > > > lgtm
> > > > 
> > > > Although I just realized that I'm not an OWNER and can't commit :).
> > > > 
> > > > I'll ask kjellander@.
> > 
> > Sorry, sent to soon. I can CQ this for you, but you still need a DEPS roll
to
> > make the code become be used in Chromium (and WebRTC after auto-rolling our
> DEPS
> > as well).
> 
> Yes, sure. I will create the DEPS roll for Chromium once this has landed
> (already did so a couple of times in the past). Can I assign it to you for
> review?

It was landed as
https://chromium.googlesource.com/chromium/deps/libsrtp.git/+/d15364a801e42d1...
I didn't have credentials so it couldn't update the CL. I'll close it manually
now.

> 
> > I don't know much about this code, but I added a TESTED section to the CL
> > description, with the tests I ran without+with this patch applied:
> > gn gen out/libsrtp --args=build_libsrtp_tests=true
> > ninja -C out/libsrtp srtp_tests
> > out/libsrtp/srtp_tests/run_all_tests.sh
> > 
> > both before+after passes on Linux for me.
> 
> Thanks for adding the TESTED section (and running the tests).
> 
> > > > Emad, you should probably replace matt with yourself in the OWNERS file.
> > 
> > That sounds like a good idea, we should clean up mattdr.
> > lgtm

Powered by Google App Engine
This is Rietveld 408576698