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

Issue 155623005: Refactor to share more code between OpenSSL and NSS implementations. (Closed)

Created:
6 years, 10 months ago by eroman
Modified:
6 years, 10 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

[webcrypto] Refactor to share more code between OpenSSL and NSS implementations. BUG=245025 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251961

Patch Set 1 : #

Patch Set 2 : Rebase #

Patch Set 3 : Fix for openssl #

Total comments: 16

Patch Set 4 : address sleevi comments (except for explicit ctor) #

Total comments: 13

Patch Set 5 : Make CryptoData ctors explicit, and other comments #

Total comments: 28

Patch Set 6 : Address comments #

Total comments: 13

Patch Set 7 : switch iv and data order, and check key length for all aes algorithms #

Patch Set 8 : Rebase #

Patch Set 9 : Change header guard #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1842 lines, -5869 lines) Patch
M content/content_renderer.gypi View 1 2 3 4 5 6 7 2 chunks +10 lines, -4 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A content/renderer/webcrypto/crypto_data.h View 1 2 3 4 5 6 7 8 1 chunk +56 lines, -0 lines 0 comments Download
A content/renderer/webcrypto/crypto_data.cc View 1 2 3 4 5 1 chunk +35 lines, -0 lines 0 comments Download
A + content/renderer/webcrypto/jwk.cc View 1 2 3 4 5 11 chunks +39 lines, -235 lines 0 comments Download
A content/renderer/webcrypto/platform_crypto.h View 1 2 3 4 5 6 1 chunk +180 lines, -0 lines 0 comments Download
A + content/renderer/webcrypto/platform_crypto_nss.cc View 1 2 3 4 5 6 35 chunks +207 lines, -552 lines 0 comments Download
A content/renderer/webcrypto/platform_crypto_openssl.cc View 1 2 3 4 5 6 7 8 1 chunk +415 lines, -0 lines 0 comments Download
A content/renderer/webcrypto/shared_crypto.h View 1 2 3 4 5 1 chunk +138 lines, -0 lines 0 comments Download
A content/renderer/webcrypto/shared_crypto.cc View 1 2 3 4 5 6 1 chunk +484 lines, -0 lines 0 comments Download
A + content/renderer/webcrypto/shared_crypto_unittest.cc View 1 2 3 4 5 64 chunks +237 lines, -314 lines 0 comments Download
M content/renderer/webcrypto/webcrypto_impl.h View 1 2 3 4 2 chunks +6 lines, -82 lines 0 comments Download
M content/renderer/webcrypto/webcrypto_impl.cc View 1 2 3 11 chunks +30 lines, -588 lines 0 comments Download
D content/renderer/webcrypto/webcrypto_impl_nss.cc View 1 chunk +0 lines, -1412 lines 0 comments Download
D content/renderer/webcrypto/webcrypto_impl_openssl.cc View 1 chunk +0 lines, -518 lines 0 comments Download
D content/renderer/webcrypto/webcrypto_impl_unittest.cc View 1 chunk +0 lines, -2162 lines 0 comments Download
M content/renderer/webcrypto/webcrypto_util.h View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
eroman
6 years, 10 months ago (2014-02-06 00:32:56 UTC) #1
Ryan Sleevi
https://codereview.chromium.org/155623005/diff/280001/content/renderer/webcrypto/crypto_data.cc File content/renderer/webcrypto/crypto_data.cc (right): https://codereview.chromium.org/155623005/diff/280001/content/renderer/webcrypto/crypto_data.cc#newcode22 content/renderer/webcrypto/crypto_data.cc:22: CryptoData::CryptoData(const blink::WebArrayBuffer& buffer) new lines between each ctor https://codereview.chromium.org/155623005/diff/280001/content/renderer/webcrypto/crypto_data.h ...
6 years, 10 months ago (2014-02-07 01:19:21 UTC) #2
eroman
https://codereview.chromium.org/155623005/diff/280001/content/renderer/webcrypto/crypto_data.cc File content/renderer/webcrypto/crypto_data.cc (right): https://codereview.chromium.org/155623005/diff/280001/content/renderer/webcrypto/crypto_data.cc#newcode22 content/renderer/webcrypto/crypto_data.cc:22: CryptoData::CryptoData(const blink::WebArrayBuffer& buffer) On 2014/02/07 01:19:21, Ryan Sleevi wrote: ...
6 years, 10 months ago (2014-02-07 21:15:56 UTC) #3
Ryan Sleevi
https://codereview.chromium.org/155623005/diff/280001/content/renderer/webcrypto/crypto_data.h File content/renderer/webcrypto/crypto_data.h (right): https://codereview.chromium.org/155623005/diff/280001/content/renderer/webcrypto/crypto_data.h#newcode47 content/renderer/webcrypto/crypto_data.h:47: DISALLOW_COPY_AND_ASSIGN(CryptoData); On 2014/02/07 21:15:57, eroman wrote: > On 2014/02/07 ...
6 years, 10 months ago (2014-02-07 21:18:48 UTC) #4
Ryan Sleevi
https://codereview.chromium.org/155623005/diff/570001/content/renderer/webcrypto/jwk.cc File content/renderer/webcrypto/jwk.cc (right): https://codereview.chromium.org/155623005/diff/570001/content/renderer/webcrypto/jwk.cc#newcode558 content/renderer/webcrypto/jwk.cc:558: key); alignment https://codereview.chromium.org/155623005/diff/570001/content/renderer/webcrypto/jwk.cc#newcode571 content/renderer/webcrypto/jwk.cc:571: unnecessary newline? https://codereview.chromium.org/155623005/diff/570001/content/renderer/webcrypto/platform_crypto.h File content/renderer/webcrypto/platform_crypto.h ...
6 years, 10 months ago (2014-02-07 21:26:39 UTC) #5
eroman
https://codereview.chromium.org/155623005/diff/570001/content/renderer/webcrypto/jwk.cc File content/renderer/webcrypto/jwk.cc (right): https://codereview.chromium.org/155623005/diff/570001/content/renderer/webcrypto/jwk.cc#newcode558 content/renderer/webcrypto/jwk.cc:558: key); On 2014/02/07 21:26:40, Ryan Sleevi wrote: > alignment ...
6 years, 10 months ago (2014-02-08 02:23:50 UTC) #6
eroman
ping
6 years, 10 months ago (2014-02-12 23:35:59 UTC) #7
Ryan Sleevi
https://codereview.chromium.org/155623005/diff/750001/content/renderer/webcrypto/crypto_data.h File content/renderer/webcrypto/crypto_data.h (right): https://codereview.chromium.org/155623005/diff/750001/content/renderer/webcrypto/crypto_data.h#newcode34 content/renderer/webcrypto/crypto_data.h:34: // Allow implicit conversions for convenience. comment is no ...
6 years, 10 months ago (2014-02-13 04:24:24 UTC) #8
eroman
https://codereview.chromium.org/155623005/diff/750001/content/renderer/webcrypto/crypto_data.h File content/renderer/webcrypto/crypto_data.h (right): https://codereview.chromium.org/155623005/diff/750001/content/renderer/webcrypto/crypto_data.h#newcode34 content/renderer/webcrypto/crypto_data.h:34: // Allow implicit conversions for convenience. On 2014/02/13 04:24:24, ...
6 years, 10 months ago (2014-02-13 23:05:38 UTC) #9
Ryan Sleevi
LGTM, mod one nit about the ordering of parameters in platform_crypto https://codereview.chromium.org/155623005/diff/950001/content/renderer/webcrypto/platform_crypto.h File content/renderer/webcrypto/platform_crypto.h (right): ...
6 years, 10 months ago (2014-02-14 00:24:18 UTC) #10
eroman
https://codereview.chromium.org/155623005/diff/950001/content/renderer/webcrypto/platform_crypto.h File content/renderer/webcrypto/platform_crypto.h (right): https://codereview.chromium.org/155623005/diff/950001/content/renderer/webcrypto/platform_crypto.h#newcode50 content/renderer/webcrypto/platform_crypto.h:50: On 2014/02/14 00:24:18, Ryan Sleevi wrote: > unnecessary new-line ...
6 years, 10 months ago (2014-02-14 05:52:41 UTC) #11
eroman
+avi for content/*.gypi approval
6 years, 10 months ago (2014-02-14 05:54:26 UTC) #12
Avi (use Gerrit)
gpyi changes lgtm
6 years, 10 months ago (2014-02-18 23:52:58 UTC) #13
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 10 months ago (2014-02-18 23:53:28 UTC) #14
eroman
The CQ bit was unchecked by eroman@chromium.org
6 years, 10 months ago (2014-02-18 23:53:38 UTC) #15
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 10 months ago (2014-02-18 23:54:42 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eroman@chromium.org/155623005/1260001
6 years, 10 months ago (2014-02-18 23:55:53 UTC) #17
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 10 months ago (2014-02-19 00:32:04 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eroman@chromium.org/155623005/1470001
6 years, 10 months ago (2014-02-19 00:33:54 UTC) #19
commit-bot: I haz the power
6 years, 10 months ago (2014-02-19 06:11:07 UTC) #20
Message was sent while issue was closed.
Change committed as 251961

Powered by Google App Engine
This is Rietveld 408576698