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

Issue 195983010: [webcrypto] Add JWK symmetric key AES-KW unwrap for NSS. (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@master
Visibility:
Public.

Description

[webcrypto] Add JWK symmetric key AES-KW unwrap for NSS. Note: AES-KW wrap of formats other than 'raw' is not currently supported because of strict input data size modulo requirements of RFC3394. BUG=245025 TEST=content_unittests --gtest_filter="SharedCryptoTest*" Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257759

Patch Set 1 #

Patch Set 2 : minor comment change #

Total comments: 11

Patch Set 3 : rebase #

Patch Set 4 : fixes for eroman #

Patch Set 5 : added provisional test to check generic error is returned on bad JWK unwrap #

Patch Set 6 : rebase #

Total comments: 8

Patch Set 7 : fixes for eroman #

Total comments: 2

Patch Set 8 : removed unused function #

Patch Set 9 : added missing openssl stub #

Unified diffs Side-by-side diffs Delta from patch set Stats (+419 lines, -114 lines) Patch
M content/child/webcrypto/jwk.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/child/webcrypto/platform_crypto.h View 1 2 3 4 5 6 2 chunks +15 lines, -0 lines 0 comments Download
M content/child/webcrypto/platform_crypto_nss.cc View 1 2 3 4 chunks +95 lines, -56 lines 0 comments Download
M content/child/webcrypto/platform_crypto_openssl.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M content/child/webcrypto/shared_crypto.cc View 1 2 3 4 5 6 7 4 chunks +145 lines, -57 lines 0 comments Download
M content/child/webcrypto/shared_crypto_unittest.cc View 1 2 3 4 5 6 3 chunks +154 lines, -1 line 0 comments Download

Messages

Total messages: 42 (0 generated)
padolph
6 years, 9 months ago (2014-03-12 23:41:03 UTC) #1
eroman
https://codereview.chromium.org/195983010/diff/20001/content/child/webcrypto/platform_crypto_nss.cc File content/child/webcrypto/platform_crypto_nss.cc (right): https://codereview.chromium.org/195983010/diff/20001/content/child/webcrypto/platform_crypto_nss.cc#newcode1254 content/child/webcrypto/platform_crypto_nss.cc:1254: // temporarily viewed as a symmetric key to be ...
6 years, 9 months ago (2014-03-13 00:17:18 UTC) #2
padolph
https://codereview.chromium.org/195983010/diff/20001/content/child/webcrypto/platform_crypto_nss.cc File content/child/webcrypto/platform_crypto_nss.cc (right): https://codereview.chromium.org/195983010/diff/20001/content/child/webcrypto/platform_crypto_nss.cc#newcode1254 content/child/webcrypto/platform_crypto_nss.cc:1254: // temporarily viewed as a symmetric key to be ...
6 years, 9 months ago (2014-03-13 01:26:33 UTC) #3
Ryan Sleevi
On 2014/03/13 01:26:33, padolph wrote: > https://codereview.chromium.org/195983010/diff/20001/content/child/webcrypto/platform_crypto_nss.cc > File content/child/webcrypto/platform_crypto_nss.cc (right): > > https://codereview.chromium.org/195983010/diff/20001/content/child/webcrypto/platform_crypto_nss.cc#newcode1254 > ...
6 years, 9 months ago (2014-03-13 01:44:17 UTC) #4
padolph
On 2014/03/13 01:44:17, Ryan Sleevi wrote: > On 2014/03/13 01:26:33, padolph wrote: > > > ...
6 years, 9 months ago (2014-03-14 01:01:09 UTC) #5
Ryan Sleevi
On 2014/03/14 01:01:09, padolph wrote: > On 2014/03/13 01:44:17, Ryan Sleevi wrote: > > On ...
6 years, 9 months ago (2014-03-14 01:33:17 UTC) #6
padolph
On 2014/03/14 01:33:17, Ryan Sleevi wrote: > On 2014/03/14 01:01:09, padolph wrote: > > On ...
6 years, 9 months ago (2014-03-14 04:25:41 UTC) #7
padolph
On 2014/03/14 04:25:41, padolph wrote: > On 2014/03/14 01:33:17, Ryan Sleevi wrote: > > On ...
6 years, 9 months ago (2014-03-14 17:10:25 UTC) #8
Ryan Sleevi
NSS LGTM, deferring to eroman for the rest.
6 years, 9 months ago (2014-03-14 21:42:04 UTC) #9
eroman
IMPORTANT: please answer https://codereview.chromium.org/195983010/diff/20001/content/child/webcrypto/shared_crypto.cc#newcode307 Other than that looks good. https://codereview.chromium.org/195983010/diff/20001/content/child/webcrypto/platform_crypto_nss.cc File content/child/webcrypto/platform_crypto_nss.cc (right): https://codereview.chromium.org/195983010/diff/20001/content/child/webcrypto/platform_crypto_nss.cc#newcode493 content/child/webcrypto/platform_crypto_nss.cc:493: ...
6 years, 9 months ago (2014-03-14 22:14:52 UTC) #10
padolph
https://codereview.chromium.org/195983010/diff/20001/content/child/webcrypto/platform_crypto_nss.cc File content/child/webcrypto/platform_crypto_nss.cc (right): https://codereview.chromium.org/195983010/diff/20001/content/child/webcrypto/platform_crypto_nss.cc#newcode493 content/child/webcrypto/platform_crypto_nss.cc:493: Status AesKwUnwrapSymKey(const CryptoData& wrapped_key_data, On 2014/03/14 22:14:53, eroman wrote: ...
6 years, 9 months ago (2014-03-17 03:24:35 UTC) #11
padolph
On 2014/03/17 03:24:35, padolph wrote: > Changed to report just Status::Error() for now. If we ...
6 years, 9 months ago (2014-03-17 04:23:22 UTC) #12
eroman
lgtm https://codereview.chromium.org/195983010/diff/100001/content/child/webcrypto/platform_crypto.h File content/child/webcrypto/platform_crypto.h (right): https://codereview.chromium.org/195983010/diff/100001/content/child/webcrypto/platform_crypto.h#newcode202 content/child/webcrypto/platform_crypto.h:202: // Performs AES-KW decryption on the input |data|, ...
6 years, 9 months ago (2014-03-17 19:47:46 UTC) #13
padolph
https://codereview.chromium.org/195983010/diff/100001/content/child/webcrypto/platform_crypto.h File content/child/webcrypto/platform_crypto.h (right): https://codereview.chromium.org/195983010/diff/100001/content/child/webcrypto/platform_crypto.h#newcode202 content/child/webcrypto/platform_crypto.h:202: // Performs AES-KW decryption on the input |data|, of ...
6 years, 9 months ago (2014-03-17 22:12:49 UTC) #14
eroman
patchset 7 LGTM
6 years, 9 months ago (2014-03-17 23:54:31 UTC) #15
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 9 months ago (2014-03-17 23:56:22 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/padolph@netflix.com/195983010/120001
6 years, 9 months ago (2014-03-17 23:57:16 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 00:12:20 UTC) #18
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-18 00:12:20 UTC) #19
padolph
The CQ bit was checked by padolph@netflix.com
6 years, 9 months ago (2014-03-18 00:18:12 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/padolph@netflix.com/195983010/120001
6 years, 9 months ago (2014-03-18 00:23:41 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 00:34:34 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_clang_dbg
6 years, 9 months ago (2014-03-18 00:34:35 UTC) #23
eroman
still lgtm https://codereview.chromium.org/195983010/diff/100001/content/child/webcrypto/shared_crypto_unittest.cc File content/child/webcrypto/shared_crypto_unittest.cc (right): https://codereview.chromium.org/195983010/diff/100001/content/child/webcrypto/shared_crypto_unittest.cc#newcode2691 content/child/webcrypto/shared_crypto_unittest.cc:2691: // trust the result because I say ...
6 years, 9 months ago (2014-03-18 01:02:13 UTC) #24
padolph
https://codereview.chromium.org/195983010/diff/120001/content/child/webcrypto/shared_crypto.cc File content/child/webcrypto/shared_crypto.cc (right): https://codereview.chromium.org/195983010/diff/120001/content/child/webcrypto/shared_crypto.cc#newcode29 content/child/webcrypto/shared_crypto.cc:29: bool KeyUsageAllowsAnyOf(const blink::WebCryptoKey& key, On 2014/03/18 01:02:13, eroman wrote: ...
6 years, 9 months ago (2014-03-18 01:23:01 UTC) #25
padolph
The CQ bit was checked by padolph@netflix.com
6 years, 9 months ago (2014-03-18 01:23:59 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/padolph@netflix.com/195983010/140001
6 years, 9 months ago (2014-03-18 01:24:22 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 01:29:14 UTC) #28
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-18 01:29:16 UTC) #29
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 9 months ago (2014-03-18 01:36:08 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/padolph@netflix.com/195983010/140001
6 years, 9 months ago (2014-03-18 01:36:41 UTC) #31
padolph
https://codereview.chromium.org/195983010/diff/100001/content/child/webcrypto/shared_crypto_unittest.cc File content/child/webcrypto/shared_crypto_unittest.cc (right): https://codereview.chromium.org/195983010/diff/100001/content/child/webcrypto/shared_crypto_unittest.cc#newcode2691 content/child/webcrypto/shared_crypto_unittest.cc:2691: // trust the result because I say so. On ...
6 years, 9 months ago (2014-03-18 02:54:15 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-18 04:14:30 UTC) #33
commit-bot: I haz the power
Retried try job too often on android_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_dbg&number=161802
6 years, 9 months ago (2014-03-18 04:14:32 UTC) #34
eroman
Looks like legitimate failure: need to add stub for content::webcrypto::platform::DecryptAesKw() to openssl version.
6 years, 9 months ago (2014-03-18 05:55:04 UTC) #35
padolph
The CQ bit was checked by padolph@netflix.com
6 years, 9 months ago (2014-03-18 16:06:36 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/padolph@netflix.com/195983010/160001
6 years, 9 months ago (2014-03-18 16:07:09 UTC) #37
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 17:59:38 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_rel
6 years, 9 months ago (2014-03-18 17:59:39 UTC) #39
padolph
The CQ bit was checked by padolph@netflix.com
6 years, 9 months ago (2014-03-18 18:09:17 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/padolph@netflix.com/195983010/160001
6 years, 9 months ago (2014-03-18 18:29:12 UTC) #41
commit-bot: I haz the power
6 years, 9 months ago (2014-03-18 21:23:02 UTC) #42
Message was sent while issue was closed.
Change committed as 257759

Powered by Google App Engine
This is Rietveld 408576698