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

Issue 2713673002: Separate out the scheme from the GCMMessageCryptographer (Closed)

Created:
3 years, 10 months ago by Peter Beverloo
Modified:
3 years, 7 months ago
Reviewers:
eroman, davidben
CC:
chromium-reviews, johnme+watch_chromium.org, zea+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Separate out the scheme from the GCMMessageCryptographer Chrome currently implements draft-ietf-webpush-encryption-03, but following more discussion and a number of changes the Web Push working group last week announced last call for draft-ietf-webpush-encryption-08. In order to be able to support both schemes, this CL refactors the GCMMessageCryptographer to separate out the operations associated with the version of the encryption scheme. In addition, the tests are refactored to easily enable using parameterized tests for those that can be shared between the drafts. The reference test that doesn't use the auth_secret has been removed, since we don't actually ship that functionality. BUG=679789 Review-Url: https://codereview.chromium.org/2713673002 Cr-Commit-Position: refs/heads/master@{#470067} Committed: https://chromium.googlesource.com/chromium/src/+/17ae9f3ad85e9ad139bd283908ba4c0529659fce

Patch Set 1 #

Patch Set 2 : flip around args #

Patch Set 3 : Separate out the scheme from the GCMMessageCryptographer #

Total comments: 6

Patch Set 4 : Separate out the scheme from the GCMMessageCryptographer #

Total comments: 10

Patch Set 5 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+566 lines, -560 lines) Patch
M components/gcm_driver/crypto/gcm_crypto_test_helpers.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
M components/gcm_driver/crypto/gcm_encryption_provider.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M components/gcm_driver/crypto/gcm_encryption_provider_unittest.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M components/gcm_driver/crypto/gcm_message_cryptographer.h View 1 2 3 3 chunks +99 lines, -61 lines 0 comments Download
M components/gcm_driver/crypto/gcm_message_cryptographer.cc View 1 2 3 4 8 chunks +214 lines, -148 lines 0 comments Download
M components/gcm_driver/crypto/gcm_message_cryptographer_unittest.cc View 1 2 3 13 chunks +240 lines, -342 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 31 (20 generated)
Peter Beverloo
+davidben Hi David, would you mind giving this a review? In short, we'll want to ...
3 years, 10 months ago (2017-02-22 15:15:59 UTC) #2
Peter Beverloo
Sorry, please hold off for at least today. The third CL can be seen here, ...
3 years, 10 months ago (2017-02-22 20:37:36 UTC) #11
Peter Beverloo
This is now ready. The full package can be seen in https://codereview.chromium.org/2716443002
3 years, 10 months ago (2017-02-23 16:53:46 UTC) #14
martijnc
drive-by nits :) https://codereview.chromium.org/2713673002/diff/40001/components/gcm_driver/crypto/gcm_message_cryptographer.cc File components/gcm_driver/crypto/gcm_message_cryptographer.cc (right): https://codereview.chromium.org/2713673002/diff/40001/components/gcm_driver/crypto/gcm_message_cryptographer.cc#newcode166 components/gcm_driver/crypto/gcm_message_cryptographer.cc:166: switch (version) { nit: I think ...
3 years, 8 months ago (2017-03-28 16:26:36 UTC) #17
Peter Beverloo
Thanks Martijn! David, this has been open for quite a while and I'd really love ...
3 years, 8 months ago (2017-04-07 17:48:22 UTC) #18
eroman
LGTM as a code refactor. (I didn't review the specific web push draft changes to ...
3 years, 7 months ago (2017-05-05 20:52:26 UTC) #20
Peter Beverloo
Thank you! https://codereview.chromium.org/2713673002/diff/60001/components/gcm_driver/crypto/gcm_message_cryptographer.cc File components/gcm_driver/crypto/gcm_message_cryptographer.cc (right): https://codereview.chromium.org/2713673002/diff/60001/components/gcm_driver/crypto/gcm_message_cryptographer.cc#newcode57 components/gcm_driver/crypto/gcm_message_cryptographer.cc:57: info_stream << "Content-Encoding: auth" << '\x00'; On ...
3 years, 7 months ago (2017-05-08 16:08:27 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2713673002/80001
3 years, 7 months ago (2017-05-08 16:10:08 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/209644)
3 years, 7 months ago (2017-05-08 16:27:09 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2713673002/80001
3 years, 7 months ago (2017-05-08 17:30:09 UTC) #28
commit-bot: I haz the power
3 years, 7 months ago (2017-05-08 18:56:41 UTC) #31
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/17ae9f3ad85e9ad139bd283908ba...

Powered by Google App Engine
This is Rietveld 408576698