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

Issue 745443002: Check that usage isn't empty when generateKey() is called (Closed)

Created:
6 years, 1 month ago by nharper
Modified:
6 years, 1 month ago
Reviewers:
eroman, 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

Check that usage isn't empty when generateKey() is called BUG=425645 Committed: https://crrev.com/f723e1609b239219b3fb88e8db06562ad56a8af9 Cr-Commit-Position: refs/heads/master@{#305350}

Patch Set 1 #

Patch Set 2 : Add more tests #

Total comments: 17

Patch Set 3 : #

Total comments: 8

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -64 lines) Patch
M content/child/webcrypto/nss/rsa_key_nss.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/child/webcrypto/nss/sym_key_nss.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/child/webcrypto/openssl/ec_key_openssl.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/child/webcrypto/openssl/rsa_key_openssl.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/child/webcrypto/openssl/sym_key_openssl.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/child/webcrypto/status.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/child/webcrypto/status.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/child/webcrypto/test/aes_cbc_unittest.cc View 1 2 4 chunks +17 lines, -18 lines 0 comments Download
M content/child/webcrypto/test/aes_gcm_unittest.cc View 1 2 1 chunk +13 lines, -2 lines 0 comments Download
M content/child/webcrypto/test/aes_kw_unittest.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M content/child/webcrypto/test/ecdsa_unittest.cc View 1 2 2 chunks +15 lines, -2 lines 0 comments Download
M content/child/webcrypto/test/hmac_unittest.cc View 1 2 4 chunks +17 lines, -3 lines 0 comments Download
M content/child/webcrypto/test/rsa_ssa_unittest.cc View 1 2 11 chunks +55 lines, -39 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
nharper
6 years, 1 month ago (2014-11-20 21:44:16 UTC) #2
eroman
This change is off to a good start! Have you also run the Blink LayoutTests? ...
6 years, 1 month ago (2014-11-20 23:40:10 UTC) #3
nharper
I hadn't run the layout tests - the fix for them is in another cl. ...
6 years, 1 month ago (2014-11-21 22:12:01 UTC) #4
eroman
https://codereview.chromium.org/745443002/diff/20001/content/child/webcrypto/openssl/util_openssl.cc File content/child/webcrypto/openssl/util_openssl.cc (right): https://codereview.chromium.org/745443002/diff/20001/content/child/webcrypto/openssl/util_openssl.cc#newcode183 content/child/webcrypto/openssl/util_openssl.cc:183: if (key->usages() == 0) { On 2014/11/21 22:12:01, nharper ...
6 years, 1 month ago (2014-11-21 22:55:47 UTC) #5
eroman
Looksgood once you have adressed: https://codereview.chromium.org/745443002/diff/40001/content/child/webcrypto/openssl/util_openssl.cc#newcode183 https://codereview.chromium.org/745443002/diff/40001/content/child/webcrypto/nss/sym_key_nss.cc File content/child/webcrypto/nss/sym_key_nss.cc (right): https://codereview.chromium.org/745443002/diff/40001/content/child/webcrypto/nss/sym_key_nss.cc#newcode47 content/child/webcrypto/nss/sym_key_nss.cc:47: return Status::ErrorCreateKeyEmptyUsages(); Please ...
6 years, 1 month ago (2014-11-21 23:35:34 UTC) #6
nharper
https://codereview.chromium.org/745443002/diff/40001/content/child/webcrypto/nss/sym_key_nss.cc File content/child/webcrypto/nss/sym_key_nss.cc (right): https://codereview.chromium.org/745443002/diff/40001/content/child/webcrypto/nss/sym_key_nss.cc#newcode47 content/child/webcrypto/nss/sym_key_nss.cc:47: return Status::ErrorCreateKeyEmptyUsages(); On 2014/11/21 23:35:34, eroman wrote: > Please ...
6 years, 1 month ago (2014-11-22 00:26:45 UTC) #7
eroman
lgtm
6 years, 1 month ago (2014-11-22 00:29:52 UTC) #8
eroman
(As you mentioned earlier, you should wait for the Blink side change to LayoutTests to ...
6 years, 1 month ago (2014-11-22 00:30:50 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/745443002/60001
6 years, 1 month ago (2014-11-22 02:09:08 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years, 1 month ago (2014-11-22 03:03:57 UTC) #12
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/f723e1609b239219b3fb88e8db06562ad56a8af9 Cr-Commit-Position: refs/heads/master@{#305350}
6 years, 1 month ago (2014-11-22 03:04:50 UTC) #13
pdr.
6 years, 1 month ago (2014-11-22 21:33:46 UTC) #14
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/751883002/ by pdr@chromium.org.

The reason for reverting is: This patch caused the
crypto/rsa-oaep-generate-non-extractable-key.html layouttest to fail on
non-linux bots:
http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=cry....

Powered by Google App Engine
This is Rietveld 408576698