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

Issue 308523003: [webcrypto] Fix a bug with JWK private key import. (Closed)

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

Description

[webcrypto] Fix a bug with JWK private key import. The bug would return the oldest live private key imported via JWK rather than the expected one. BUG=378315, 245025 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275870

Patch Set 1 #

Patch Set 2 : Add the fix -- use a randomly generated CKA_ID #

Patch Set 3 : Remove some whitespace #

Total comments: 8

Patch Set 4 : Address sleevi comments #

Total comments: 1

Patch Set 5 : Switch over to PK11_MakeIDFromPubKey() and mark consistency test DISABLED #

Total comments: 2

Patch Set 6 : Enable the test if NSS is new enough #

Patch Set 7 : Add DEPS change to run through trybots #

Patch Set 8 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+361 lines, -15 lines) Patch
M content/child/webcrypto/platform_crypto_nss.cc View 1 2 3 4 2 chunks +38 lines, -9 lines 0 comments Download
M content/child/webcrypto/shared_crypto_unittest.cc View 1 2 3 4 5 7 chunks +132 lines, -6 lines 0 comments Download
A content/test/data/webcrypto/rsa_private_keys.json View 1 chunk +191 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
eroman
Sending the test out for review first, since heading out for the night and actual ...
6 years, 6 months ago (2014-05-29 03:35:32 UTC) #1
eroman
PTAL, ready for review.
6 years, 6 months ago (2014-05-30 03:28:29 UTC) #2
eroman
ping
6 years, 6 months ago (2014-06-02 18:59:05 UTC) #3
eroman
ping
6 years, 6 months ago (2014-06-02 18:59:12 UTC) #4
Ryan Sleevi
I'm still not convinced by this approach. https://codereview.chromium.org/308523003/diff/60001/content/child/webcrypto/platform_crypto_nss.cc File content/child/webcrypto/platform_crypto_nss.cc (right): https://codereview.chromium.org/308523003/diff/60001/content/child/webcrypto/platform_crypto_nss.cc#newcode1735 content/child/webcrypto/platform_crypto_nss.cc:1735: // retrieve ...
6 years, 6 months ago (2014-06-02 22:57:04 UTC) #5
eroman
https://codereview.chromium.org/308523003/diff/60001/content/child/webcrypto/platform_crypto_nss.cc File content/child/webcrypto/platform_crypto_nss.cc (right): https://codereview.chromium.org/308523003/diff/60001/content/child/webcrypto/platform_crypto_nss.cc#newcode1735 content/child/webcrypto/platform_crypto_nss.cc:1735: // retrieve a private key of there choice. On ...
6 years, 6 months ago (2014-06-02 23:40:18 UTC) #6
Ryan Sleevi
https://codereview.chromium.org/308523003/diff/60001/content/child/webcrypto/platform_crypto_nss.cc File content/child/webcrypto/platform_crypto_nss.cc (right): https://codereview.chromium.org/308523003/diff/60001/content/child/webcrypto/platform_crypto_nss.cc#newcode1735 content/child/webcrypto/platform_crypto_nss.cc:1735: // retrieve a private key of there choice. On ...
6 years, 6 months ago (2014-06-02 23:55:57 UTC) #7
eroman
I an not sure I follow your comments. Are you unhappy with the approach, or ...
6 years, 6 months ago (2014-06-03 00:02:20 UTC) #8
Ryan Sleevi
On 2014/06/03 00:02:20, eroman wrote: > I an not sure I follow your comments. Are ...
6 years, 6 months ago (2014-06-03 00:05:53 UTC) #9
eroman
PTAL, I switched to PK11_MakeIDFromPubKey() as requested. One of the accompanying tests will have to ...
6 years, 6 months ago (2014-06-03 21:45:48 UTC) #10
Ryan Sleevi
LGTM, but please wait until https://codereview.chromium.org/317803004/ lands so that you can remove the tests that ...
6 years, 6 months ago (2014-06-05 23:20:24 UTC) #11
Ryan Sleevi
https://codereview.chromium.org/308523003/diff/100001/content/child/webcrypto/shared_crypto_unittest.cc File content/child/webcrypto/shared_crypto_unittest.cc (right): https://codereview.chromium.org/308523003/diff/100001/content/child/webcrypto/shared_crypto_unittest.cc#newcode2261 content/child/webcrypto/shared_crypto_unittest.cc:2261: // If NSS did validations of the input, this ...
6 years, 6 months ago (2014-06-05 23:21:25 UTC) #12
eroman
https://codereview.chromium.org/308523003/diff/100001/content/child/webcrypto/shared_crypto_unittest.cc File content/child/webcrypto/shared_crypto_unittest.cc (right): https://codereview.chromium.org/308523003/diff/100001/content/child/webcrypto/shared_crypto_unittest.cc#newcode2261 content/child/webcrypto/shared_crypto_unittest.cc:2261: // If NSS did validations of the input, this ...
6 years, 6 months ago (2014-06-05 23:43:35 UTC) #13
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 6 months ago (2014-06-06 19:35:59 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eroman@chromium.org/308523003/180001
6 years, 6 months ago (2014-06-06 19:38:11 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_compile_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-07 01:19:23 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-07 03:13:58 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_compile_dbg/builds/26790)
6 years, 6 months ago (2014-06-07 03:13:59 UTC) #18
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 6 months ago (2014-06-09 17:26:26 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eroman@chromium.org/308523003/180001
6 years, 6 months ago (2014-06-09 17:27:29 UTC) #20
commit-bot: I haz the power
6 years, 6 months ago (2014-06-09 22:53:02 UTC) #21
Message was sent while issue was closed.
Change committed as 275870

Powered by Google App Engine
This is Rietveld 408576698