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

Issue 184043021: [webcrypto] JWK: Updated import(ext, key_ops) and added export of symmetric keys (Closed)

Created:
6 years, 9 months ago by padolph
Modified:
6 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@wcAesKw_nss1
Visibility:
Public.

Description

[webcrypto] JWK: Updated import(ext, key_ops) and added export of symmetric keys See https://www.w3.org/Bugs/Public/show_bug.cgi?id=23796 BUG=245025 TEST=content_unittests --gtest_filter="SharedCryptoTest*" Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256399 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257078 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257217

Patch Set 1 #

Total comments: 43

Patch Set 2 : fixes for eroman #

Total comments: 23

Patch Set 3 : rebase and fixes for eroman #

Patch Set 4 : rebase #

Total comments: 16

Patch Set 5 : rebase #

Patch Set 6 : fixes for eroman and rsleevi #

Total comments: 2

Patch Set 7 : fix for eroman: removed unneeded header includes in jwk.cc #

Patch Set 8 : rebase #

Patch Set 9 : runtime-conditional AES-GCM tests/DCHECK's plus cl lint fixes #

Total comments: 8

Patch Set 10 : fixes for eroman, and reverted revert to get original files back after rebase removed them #

Total comments: 2

Patch Set 11 : added missing AES-GCM runtime check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+804 lines, -110 lines) Patch
M content/child/webcrypto/jwk.cc View 1 2 3 4 5 6 7 8 9 17 chunks +277 lines, -59 lines 0 comments Download
M content/child/webcrypto/shared_crypto.h View 1 2 3 9 1 chunk +3 lines, -0 lines 0 comments Download
M content/child/webcrypto/shared_crypto_unittest.cc View 1 2 3 4 5 6 7 8 9 10 25 chunks +401 lines, -41 lines 0 comments Download
M content/child/webcrypto/webcrypto_util.h View 1 2 3 9 4 chunks +33 lines, -5 lines 0 comments Download
M content/child/webcrypto/webcrypto_util.cc View 1 2 3 4 5 6 7 8 9 4 chunks +90 lines, -5 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
padolph
This CL replaces my previous 3 JWK-related CLs: Issue 111893010: [webcrypto] Update JWK import of ...
6 years, 9 months ago (2014-03-04 00:52:08 UTC) #1
eroman
https://codereview.chromium.org/184043021/diff/1/content/renderer/webcrypto/jwk.cc File content/renderer/webcrypto/jwk.cc (left): https://codereview.chromium.org/184043021/diff/1/content/renderer/webcrypto/jwk.cc#oldcode326 content/renderer/webcrypto/jwk.cc:326: // | "A192CBC" | AES CBC using 192 bit ...
6 years, 9 months ago (2014-03-04 02:55:13 UTC) #2
padolph
https://codereview.chromium.org/184043021/diff/1/content/renderer/webcrypto/platform_crypto_nss.cc File content/renderer/webcrypto/platform_crypto_nss.cc (right): https://codereview.chromium.org/184043021/diff/1/content/renderer/webcrypto/platform_crypto_nss.cc#newcode1200 content/renderer/webcrypto/platform_crypto_nss.cc:1200: key_algorithm, On 2014/03/04 02:55:14, eroman wrote: > Not sure ...
6 years, 9 months ago (2014-03-04 17:38:20 UTC) #3
padolph
https://codereview.chromium.org/184043021/diff/1/content/renderer/webcrypto/jwk.cc File content/renderer/webcrypto/jwk.cc (right): https://codereview.chromium.org/184043021/diff/1/content/renderer/webcrypto/jwk.cc#newcode51 content/renderer/webcrypto/jwk.cc:51: // TODO(padolph): include other AES symmetric algorithms once they ...
6 years, 9 months ago (2014-03-05 03:08:51 UTC) #4
eroman
LGTM after these comments https://codereview.chromium.org/184043021/diff/20001/content/renderer/webcrypto/jwk.cc File content/renderer/webcrypto/jwk.cc (right): https://codereview.chromium.org/184043021/diff/20001/content/renderer/webcrypto/jwk.cc#newcode283 content/renderer/webcrypto/jwk.cc:283: bool IsBitwiseSubset(unsigned int a, unsigned ...
6 years, 9 months ago (2014-03-07 19:33:06 UTC) #5
padolph
https://codereview.chromium.org/184043021/diff/20001/content/renderer/webcrypto/jwk.cc File content/renderer/webcrypto/jwk.cc (right): https://codereview.chromium.org/184043021/diff/20001/content/renderer/webcrypto/jwk.cc#newcode283 content/renderer/webcrypto/jwk.cc:283: bool IsBitwiseSubset(unsigned int a, unsigned int b) { return ...
6 years, 9 months ago (2014-03-09 22:06:35 UTC) #6
eroman
L G T M after addressing: https://codereview.chromium.org/184043021/diff/60001/content/child/webcrypto/platform_crypto_nss.cc#oldcode1206 https://codereview.chromium.org/184043021/diff/20001/content/renderer/webcrypto/webcrypto_util.cc File content/renderer/webcrypto/webcrypto_util.cc (right): https://codereview.chromium.org/184043021/diff/20001/content/renderer/webcrypto/webcrypto_util.cc#newcode270 content/renderer/webcrypto/webcrypto_util.cc:270: for (size_t ...
6 years, 9 months ago (2014-03-10 21:55:34 UTC) #7
Ryan Sleevi
https://codereview.chromium.org/184043021/diff/60001/content/child/webcrypto/jwk.cc File content/child/webcrypto/jwk.cc (right): https://codereview.chromium.org/184043021/diff/60001/content/child/webcrypto/jwk.cc#newcode491 content/child/webcrypto/jwk.cc:491: // | "HS224" | HMAC using SHA-224 hash algorithm ...
6 years, 9 months ago (2014-03-11 00:43:14 UTC) #8
padolph
https://codereview.chromium.org/184043021/diff/60001/content/child/webcrypto/jwk.cc File content/child/webcrypto/jwk.cc (right): https://codereview.chromium.org/184043021/diff/60001/content/child/webcrypto/jwk.cc#newcode301 content/child/webcrypto/jwk.cc:301: jwk_dict->SetString("k", webcrypto::Base64EncodeUrlSafe(key_str)); On 2014/03/10 21:55:34, eroman wrote: > no ...
6 years, 9 months ago (2014-03-11 01:27:52 UTC) #9
eroman
lgtm https://codereview.chromium.org/184043021/diff/100001/content/child/webcrypto/jwk.cc File content/child/webcrypto/jwk.cc (right): https://codereview.chromium.org/184043021/diff/100001/content/child/webcrypto/jwk.cc#newcode8 content/child/webcrypto/jwk.cc:8: #include "base/base64.h" Is this header necessary?
6 years, 9 months ago (2014-03-11 03:22:47 UTC) #10
padolph
https://codereview.chromium.org/184043021/diff/100001/content/child/webcrypto/jwk.cc File content/child/webcrypto/jwk.cc (right): https://codereview.chromium.org/184043021/diff/100001/content/child/webcrypto/jwk.cc#newcode8 content/child/webcrypto/jwk.cc:8: #include "base/base64.h" On 2014/03/11 03:22:47, eroman wrote: > Is ...
6 years, 9 months ago (2014-03-11 15:34:23 UTC) #11
padolph
The CQ bit was checked by padolph@netflix.com
6 years, 9 months ago (2014-03-11 19:20:42 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/padolph@netflix.com/184043021/140001
6 years, 9 months ago (2014-03-11 19:51:40 UTC) #13
commit-bot: I haz the power
Change committed as 256399
6 years, 9 months ago (2014-03-12 02:06:24 UTC) #14
kochi
On 2014/03/12 02:06:24, I haz the power (commit-bot) wrote: > Change committed as 256399 This ...
6 years, 9 months ago (2014-03-12 05:18:28 UTC) #15
padolph
On 2014/03/12 05:18:28, Takayoshi Kochi wrote: > On 2014/03/12 02:06:24, I haz the power (commit-bot) ...
6 years, 9 months ago (2014-03-13 19:48:56 UTC) #16
eroman
Can you try re-uploading? Something probably failed since only showing 1 file in patchset 9
6 years, 9 months ago (2014-03-13 22:17:23 UTC) #17
eroman
The modifications to unittest look good. Let me know when the entire patchset is available ...
6 years, 9 months ago (2014-03-13 22:31:12 UTC) #18
padolph
https://codereview.chromium.org/184043021/diff/160001/content/child/webcrypto/shared_crypto_unittest.cc File content/child/webcrypto/shared_crypto_unittest.cc (right): https://codereview.chromium.org/184043021/diff/160001/content/child/webcrypto/shared_crypto_unittest.cc#newcode69 content/child/webcrypto/shared_crypto_unittest.cc:69: EXPECT_EQ(Status::ErrorUnsupported().ToString(), status.ToString()); On 2014/03/13 22:31:13, eroman wrote: > [optional] ...
6 years, 9 months ago (2014-03-13 22:39:34 UTC) #19
eroman
lgtm https://codereview.chromium.org/184043021/diff/180001/content/child/webcrypto/shared_crypto_unittest.cc File content/child/webcrypto/shared_crypto_unittest.cc (right): https://codereview.chromium.org/184043021/diff/180001/content/child/webcrypto/shared_crypto_unittest.cc#newcode2546 content/child/webcrypto/shared_crypto_unittest.cc:2546: LOG(WARNING) << "AES GCM not supported, skipping tests"; ...
6 years, 9 months ago (2014-03-14 05:37:20 UTC) #20
padolph
https://codereview.chromium.org/184043021/diff/180001/content/child/webcrypto/shared_crypto_unittest.cc File content/child/webcrypto/shared_crypto_unittest.cc (right): https://codereview.chromium.org/184043021/diff/180001/content/child/webcrypto/shared_crypto_unittest.cc#newcode2546 content/child/webcrypto/shared_crypto_unittest.cc:2546: LOG(WARNING) << "AES GCM not supported, skipping tests"; On ...
6 years, 9 months ago (2014-03-14 07:33:51 UTC) #21
padolph
The CQ bit was checked by padolph@netflix.com
6 years, 9 months ago (2014-03-14 07:36:54 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/padolph@netflix.com/184043021/180001
6 years, 9 months ago (2014-03-14 07:36:56 UTC) #23
commit-bot: I haz the power
Change committed as 257078
6 years, 9 months ago (2014-03-14 11:21:02 UTC) #24
Finnur
A revert of this CL has been created in https://codereview.chromium.org/200263002/ by finnur@chromium.org. The reason for ...
6 years, 9 months ago (2014-03-14 12:31:54 UTC) #25
padolph
On 2014/03/14 12:31:54, Finnur wrote: > A revert of this CL has been created in ...
6 years, 9 months ago (2014-03-14 16:17:33 UTC) #26
padolph
The CQ bit was checked by padolph@netflix.com
6 years, 9 months ago (2014-03-14 16:51:30 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/padolph@netflix.com/184043021/190001
6 years, 9 months ago (2014-03-14 16:51:34 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-14 16:53:44 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_clang_dbg
6 years, 9 months ago (2014-03-14 16:53:45 UTC) #30
padolph
The CQ bit was checked by padolph@netflix.com
6 years, 9 months ago (2014-03-14 17:16:12 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/padolph@netflix.com/184043021/190001
6 years, 9 months ago (2014-03-14 17:18:01 UTC) #32
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-14 18:46:49 UTC) #33
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) net_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=282183
6 years, 9 months ago (2014-03-14 18:46:50 UTC) #34
padolph
The CQ bit was checked by padolph@netflix.com
6 years, 9 months ago (2014-03-14 18:54:33 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/padolph@netflix.com/184043021/190001
6 years, 9 months ago (2014-03-14 18:55:30 UTC) #36
eroman
patchset 11 lgtm
6 years, 9 months ago (2014-03-14 19:20:25 UTC) #37
commit-bot: I haz the power
6 years, 9 months ago (2014-03-14 21:51:57 UTC) #38
Message was sent while issue was closed.
Change committed as 257217

Powered by Google App Engine
This is Rietveld 408576698