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

Issue 1355873002: [refactor] More post-NSS WebCrypto cleanups (utility functions). (Closed)

Created:
5 years, 3 months ago by eroman
Modified:
5 years, 3 months ago
Reviewers:
davidben
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[refactor] More post-NSS WebCrypto cleanups (utility functions). Started gutting webcrypto_util.{cc,h} and util_openssl.{cc,h}. (I want to eventually kill both of these files, or at least make them rational) The main reason for webcrypto_util.cc was to share functionality between OpenSSL and NSS versions of algorithms. With NSS gone, many of these functions can be moved to the single file that uses them. util_openssl.cc is also a poorly scoped file, and the "openssl" distinction is no longer helpful. I started by splitting out the symmetric key specific stuff, and will find homes for the rest in follow-ups. Committed: https://crrev.com/d72073d80760cd7cfc41075d3b18ac59b30757d3 Cr-Commit-Position: refs/heads/master@{#349834}

Patch Set 1 #

Patch Set 2 : fix bug #

Total comments: 16

Patch Set 3 : address David's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -320 lines) Patch
M components/webcrypto/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M components/webcrypto/algorithms/aes.cc View 1 5 chunks +30 lines, -11 lines 0 comments Download
M components/webcrypto/algorithms/aes_gcm.cc View 1 chunk +12 lines, -4 lines 0 comments Download
M components/webcrypto/algorithms/hkdf.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/webcrypto/algorithms/hmac.cc View 1 2 5 chunks +75 lines, -6 lines 0 comments Download
M components/webcrypto/algorithms/pbkdf2.cc View 1 chunk +1 line, -0 lines 0 comments Download
A components/webcrypto/algorithms/secret_key_util.h View 1 chunk +68 lines, -0 lines 0 comments Download
A components/webcrypto/algorithms/secret_key_util.cc View 1 2 1 chunk +84 lines, -0 lines 0 comments Download
M components/webcrypto/algorithms/test_helpers.h View 1 chunk +11 lines, -0 lines 0 comments Download
M components/webcrypto/algorithms/test_helpers.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M components/webcrypto/algorithms/util_openssl.h View 2 chunks +1 line, -20 lines 0 comments Download
M components/webcrypto/algorithms/util_openssl.cc View 1 chunk +0 lines, -34 lines 0 comments Download
M components/webcrypto/jwk.h View 1 chunk +0 lines, -23 lines 0 comments Download
M components/webcrypto/jwk.cc View 1 chunk +0 lines, -29 lines 0 comments Download
M components/webcrypto/webcrypto.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M components/webcrypto/webcrypto_util.h View 4 chunks +4 lines, -37 lines 0 comments Download
M components/webcrypto/webcrypto_util.cc View 1 2 5 chunks +0 lines, -156 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 9 (3 generated)
eroman
5 years, 3 months ago (2015-09-18 18:55:31 UTC) #2
davidben
lgtm https://codereview.chromium.org/1355873002/diff/20001/components/webcrypto/algorithms/aes.cc File components/webcrypto/algorithms/aes.cc (right): https://codereview.chromium.org/1355873002/diff/20001/components/webcrypto/algorithms/aes.cc#newcode59 components/webcrypto/algorithms/aes.cc:59: // BoringSSL does not support 192-bit AES. (We ...
5 years, 3 months ago (2015-09-18 22:16:00 UTC) #3
eroman
https://codereview.chromium.org/1355873002/diff/20001/components/webcrypto/algorithms/aes.cc File components/webcrypto/algorithms/aes.cc (right): https://codereview.chromium.org/1355873002/diff/20001/components/webcrypto/algorithms/aes.cc#newcode59 components/webcrypto/algorithms/aes.cc:59: // BoringSSL does not support 192-bit AES. On 2015/09/18 ...
5 years, 3 months ago (2015-09-18 23:13:24 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1355873002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1355873002/40001
5 years, 3 months ago (2015-09-19 00:59:13 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 3 months ago (2015-09-19 01:37:09 UTC) #8
commit-bot: I haz the power
5 years, 3 months ago (2015-09-19 01:37:49 UTC) #9
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d72073d80760cd7cfc41075d3b18ac59b30757d3
Cr-Commit-Position: refs/heads/master@{#349834}

Powered by Google App Engine
This is Rietveld 408576698