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

Issue 196513002: [webcrypto] Implement structured clone of keys (chromium-side). (Closed)

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

Description

[webcrypto] Implement structured clone of keys (chromium-side). The serialized format saves keys as: * spki for public RSA keys * pkcs8 for private RSA keys * raw for AES and HMAC keys The testing for this is done on the blink side by (see https://codereview.chromium.org/195543002/) [2] PKCS8 import/export is not yet implemented. I will re-visit the serialization of private keys in a follow-up change. BUG=245025 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257723

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Fix to data->assign() #

Total comments: 2

Patch Set 3 : Rebase #

Patch Set 4 : rebase and add header for WebVector #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -24 lines) Patch
M content/child/webcrypto/shared_crypto.h View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M content/child/webcrypto/shared_crypto.cc View 1 2 4 chunks +119 lines, -6 lines 0 comments Download
M content/child/webcrypto/shared_crypto_unittest.cc View 1 2 1 chunk +0 lines, -11 lines 0 comments Download
M content/child/webcrypto/webcrypto_impl.h View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
M content/child/webcrypto/webcrypto_impl.cc View 1 chunk +25 lines, -0 lines 0 comments Download
M content/child/webcrypto/webcrypto_util.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M content/child/webcrypto/webcrypto_util.cc View 1 2 1 chunk +13 lines, -7 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
eroman
6 years, 9 months ago (2014-03-12 22:38:17 UTC) #1
Ryan Sleevi
https://codereview.chromium.org/196513002/diff/20001/content/child/webcrypto/webcrypto_util.cc File content/child/webcrypto/webcrypto_util.cc (right): https://codereview.chromium.org/196513002/diff/20001/content/child/webcrypto/webcrypto_util.cc#newcode262 content/child/webcrypto/webcrypto_util.cc:262: DCHECK(IsHashAlgorithm(hash_id)); Does Blink also make this check? If so, ...
6 years, 9 months ago (2014-03-12 22:56:55 UTC) #2
eroman
https://codereview.chromium.org/196513002/diff/20001/content/child/webcrypto/webcrypto_util.cc File content/child/webcrypto/webcrypto_util.cc (right): https://codereview.chromium.org/196513002/diff/20001/content/child/webcrypto/webcrypto_util.cc#newcode262 content/child/webcrypto/webcrypto_util.cc:262: DCHECK(IsHashAlgorithm(hash_id)); On 2014/03/12 22:56:55, Ryan Sleevi wrote: > Does ...
6 years, 9 months ago (2014-03-12 23:10:10 UTC) #3
Ryan Sleevi
https://codereview.chromium.org/196513002/diff/20001/content/child/webcrypto/shared_crypto.cc File content/child/webcrypto/shared_crypto.cc (right): https://codereview.chromium.org/196513002/diff/20001/content/child/webcrypto/shared_crypto.cc#newcode664 content/child/webcrypto/shared_crypto.cc:664: reinterpret_cast<unsigned char*>(buffer.data()), buffer.byteLength()); This seems to follow a double-allocation ...
6 years, 9 months ago (2014-03-12 23:18:41 UTC) #4
eroman
https://codereview.chromium.org/196513002/diff/20001/content/child/webcrypto/shared_crypto.cc File content/child/webcrypto/shared_crypto.cc (right): https://codereview.chromium.org/196513002/diff/20001/content/child/webcrypto/shared_crypto.cc#newcode664 content/child/webcrypto/shared_crypto.cc:664: reinterpret_cast<unsigned char*>(buffer.data()), buffer.byteLength()); On 2014/03/12 23:18:41, Ryan Sleevi wrote: ...
6 years, 9 months ago (2014-03-13 00:32:32 UTC) #5
eroman
Also it occurs to me that there is at least one situation where using "importKey()" ...
6 years, 9 months ago (2014-03-13 01:16:04 UTC) #6
Ryan Sleevi
LGTM, mod nit. https://codereview.chromium.org/196513002/diff/40001/content/child/webcrypto/webcrypto_util.cc File content/child/webcrypto/webcrypto_util.cc (right): https://codereview.chromium.org/196513002/diff/40001/content/child/webcrypto/webcrypto_util.cc#newcode264 content/child/webcrypto/webcrypto_util.cc:264: id == blink::WebCryptoAlgorithmIdRsaOaep); No PSS?
6 years, 9 months ago (2014-03-14 20:54:11 UTC) #7
eroman
https://codereview.chromium.org/196513002/diff/40001/content/child/webcrypto/webcrypto_util.cc File content/child/webcrypto/webcrypto_util.cc (right): https://codereview.chromium.org/196513002/diff/40001/content/child/webcrypto/webcrypto_util.cc#newcode264 content/child/webcrypto/webcrypto_util.cc:264: id == blink::WebCryptoAlgorithmIdRsaOaep); On 2014/03/14 20:54:11, Ryan Sleevi wrote: ...
6 years, 9 months ago (2014-03-14 21:16:25 UTC) #8
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 9 months ago (2014-03-17 15:50:34 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eroman@chromium.org/196513002/60001
6 years, 9 months ago (2014-03-17 15:50:55 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-17 15:52:25 UTC) #11
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-17 15:52:25 UTC) #12
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 9 months ago (2014-03-18 00:31:10 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eroman@chromium.org/196513002/80001
6 years, 9 months ago (2014-03-18 00:34:40 UTC) #14
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:42:24 UTC) #15
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=283249
6 years, 9 months ago (2014-03-18 01:42:24 UTC) #16
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 9 months ago (2014-03-18 01:44:43 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eroman@chromium.org/196513002/80001
6 years, 9 months ago (2014-03-18 01:46:38 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 05:40:37 UTC) #19
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=283433
6 years, 9 months ago (2014-03-18 05:40:38 UTC) #20
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 9 months ago (2014-03-18 05:55:30 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eroman@chromium.org/196513002/80001
6 years, 9 months ago (2014-03-18 05:56:31 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 18:42:16 UTC) #23
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 9 months ago (2014-03-18 18:42:20 UTC) #24
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 9 months ago (2014-03-18 19:12:07 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eroman@chromium.org/196513002/80001
6 years, 9 months ago (2014-03-18 19:30:04 UTC) #26
commit-bot: I haz the power
6 years, 9 months ago (2014-03-18 20:27:15 UTC) #27
Message was sent while issue was closed.
Change committed as 257723

Powered by Google App Engine
This is Rietveld 408576698