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

Issue 512023002: Refactor the interface for generating keys. (Closed)

Created:
6 years, 3 months ago by eroman
Modified:
6 years, 2 months ago
Reviewers:
Ryan Sleevi
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Refactor the interface for generating keys. This allows the removal of the IsAlgorithmAsymmetric() helper. BUG=407846 Committed: https://crrev.com/9b747eaff7397e5eaf7e122161797ba1e8e9afd2 Cr-Commit-Position: refs/heads/master@{#300219}

Patch Set 1 : #

Total comments: 3

Patch Set 2 : rebase #

Patch Set 3 : Use a new return type "GenerateKeyPairResult" to encapsulate secretkey vs keypair #

Total comments: 4

Patch Set 4 : rebase onto master #

Patch Set 5 : Get rid of the mutable_* and set_type() methods. Instead use assignment #

Patch Set 6 : Run git-cl format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+343 lines, -302 lines) Patch
M content/child/webcrypto/algorithm_dispatch.h View 1 2 2 chunks +5 lines, -12 lines 0 comments Download
M content/child/webcrypto/algorithm_dispatch.cc View 1 2 1 chunk +5 lines, -34 lines 0 comments Download
M content/child/webcrypto/algorithm_implementation.h View 1 2 3 2 chunks +8 lines, -25 lines 0 comments Download
M content/child/webcrypto/algorithm_implementation.cc View 1 2 1 chunk +2 lines, -25 lines 0 comments Download
A content/child/webcrypto/generate_key_result.h View 1 2 3 4 1 chunk +60 lines, -0 lines 0 comments Download
A content/child/webcrypto/generate_key_result.cc View 1 2 3 4 1 chunk +67 lines, -0 lines 0 comments Download
M content/child/webcrypto/nss/aes_gcm_nss.cc View 1 2 3 1 chunk +7 lines, -3 lines 0 comments Download
M content/child/webcrypto/nss/aes_key_nss.h View 1 2 3 1 chunk +4 lines, -7 lines 0 comments Download
M content/child/webcrypto/nss/aes_key_nss.cc View 1 2 2 chunks +9 lines, -12 lines 0 comments Download
M content/child/webcrypto/nss/hmac_nss.cc View 1 2 3 4 chunks +10 lines, -11 lines 0 comments Download
M content/child/webcrypto/nss/rsa_key_nss.h View 1 2 3 1 chunk +4 lines, -12 lines 0 comments Download
M content/child/webcrypto/nss/rsa_key_nss.cc View 1 2 3 4 5 3 chunks +26 lines, -28 lines 0 comments Download
M content/child/webcrypto/nss/rsa_oaep_nss.cc View 1 2 3 1 chunk +6 lines, -6 lines 0 comments Download
M content/child/webcrypto/nss/sym_key_nss.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M content/child/webcrypto/nss/sym_key_nss.cc View 1 2 3 4 5 3 chunks +9 lines, -6 lines 0 comments Download
M content/child/webcrypto/openssl/aes_key_openssl.h View 1 2 3 1 chunk +4 lines, -7 lines 0 comments Download
M content/child/webcrypto/openssl/aes_key_openssl.cc View 1 2 2 chunks +9 lines, -12 lines 0 comments Download
M content/child/webcrypto/openssl/hmac_openssl.cc View 1 2 3 3 chunks +10 lines, -11 lines 0 comments Download
M content/child/webcrypto/openssl/rsa_key_openssl.h View 1 2 3 1 chunk +4 lines, -12 lines 0 comments Download
M content/child/webcrypto/openssl/rsa_key_openssl.cc View 1 2 3 4 5 4 chunks +25 lines, -23 lines 0 comments Download
M content/child/webcrypto/openssl/sym_key_openssl.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/child/webcrypto/openssl/sym_key_openssl.cc View 1 2 3 4 5 3 chunks +5 lines, -3 lines 0 comments Download
M content/child/webcrypto/test/test_helpers.h View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M content/child/webcrypto/test/test_helpers.cc View 1 2 3 2 chunks +37 lines, -0 lines 0 comments Download
M content/child/webcrypto/webcrypto_impl.cc View 1 2 4 chunks +8 lines, -44 lines 0 comments Download
M content/child/webcrypto/webcrypto_util.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/child/webcrypto/webcrypto_util.cc View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download
M content/content_child.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (5 generated)
eroman
Patchset #1 (id:1) has been deleted
6 years, 3 months ago (2014-08-28 00:12:49 UTC) #1
eroman
eroman@chromium.org changed reviewers: + rsleevi@chromium.org
6 years, 3 months ago (2014-08-28 00:12:58 UTC) #2
eroman
6 years, 3 months ago (2014-08-28 00:12:58 UTC) #3
Ryan Sleevi
https://codereview.chromium.org/512023002/diff/20001/content/child/webcrypto/algorithm_dispatch.h File content/child/webcrypto/algorithm_dispatch.h (right): https://codereview.chromium.org/512023002/diff/20001/content/child/webcrypto/algorithm_dispatch.h#newcode54 content/child/webcrypto/algorithm_dispatch.h:54: blink::WebCryptoKey* private_key); From an API level, this feels wrong. ...
6 years, 3 months ago (2014-08-28 00:35:33 UTC) #4
eroman
https://codereview.chromium.org/512023002/diff/20001/content/child/webcrypto/algorithm_dispatch.h File content/child/webcrypto/algorithm_dispatch.h (right): https://codereview.chromium.org/512023002/diff/20001/content/child/webcrypto/algorithm_dispatch.h#newcode54 content/child/webcrypto/algorithm_dispatch.h:54: blink::WebCryptoKey* private_key); On 2014/08/28 00:35:33, Ryan Sleevi wrote: > ...
6 years, 3 months ago (2014-08-28 14:34:19 UTC) #5
Ryan Sleevi
https://codereview.chromium.org/512023002/diff/20001/content/child/webcrypto/algorithm_dispatch.h File content/child/webcrypto/algorithm_dispatch.h (right): https://codereview.chromium.org/512023002/diff/20001/content/child/webcrypto/algorithm_dispatch.h#newcode54 content/child/webcrypto/algorithm_dispatch.h:54: blink::WebCryptoKey* private_key); On 2014/08/28 14:34:19, eroman wrote: > On ...
6 years, 3 months ago (2014-08-28 21:15:04 UTC) #6
eroman
See the bug description. My goal is to remove IsAlgorithmAsymmetric(). It is not something I ...
6 years, 3 months ago (2014-08-28 21:28:11 UTC) #7
eroman
I have updated this CL based on our conversation, PTAL
6 years, 3 months ago (2014-09-12 02:34:37 UTC) #10
eroman
ping
6 years, 2 months ago (2014-10-15 03:02:00 UTC) #11
Ryan Sleevi
Mostly a good cleanup, but I'm a bit confused about the seemingly non-idiomatic mutable_* result ...
6 years, 2 months ago (2014-10-17 21:01:58 UTC) #12
eroman
https://codereview.chromium.org/512023002/diff/100001/content/child/webcrypto/generate_key_result.cc File content/child/webcrypto/generate_key_result.cc (right): https://codereview.chromium.org/512023002/diff/100001/content/child/webcrypto/generate_key_result.cc#newcode51 content/child/webcrypto/generate_key_result.cc:51: ; On 2014/10/17 21:01:58, Ryan Sleevi wrote: > del ...
6 years, 2 months ago (2014-10-17 22:43:12 UTC) #13
Ryan Sleevi
lgtm
6 years, 2 months ago (2014-10-17 22:44:25 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/512023002/160001
6 years, 2 months ago (2014-10-17 23:06:29 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/24892)
6 years, 2 months ago (2014-10-18 01:43:58 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/512023002/160001
6 years, 2 months ago (2014-10-18 19:17:15 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:160001)
6 years, 2 months ago (2014-10-18 22:03:38 UTC) #21
commit-bot: I haz the power
6 years, 2 months ago (2014-10-18 22:04:31 UTC) #22
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/9b747eaff7397e5eaf7e122161797ba1e8e9afd2
Cr-Commit-Position: refs/heads/master@{#300219}

Powered by Google App Engine
This is Rietveld 408576698