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

Issue 275943004: Add support for RSA-OAEP when using NSS 3.16.2 or later (Closed)

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

Description

Add support for RSA-OAEP when using NSS 3.16.2 or later. This also rolls the NSS deps to include the RSA-OAEP support backported for Windows/Mac BUG=372917 R=eroman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272221

Patch Set 1 #

Total comments: 13

Patch Set 2 : Unit tests #

Total comments: 39

Patch Set 3 : More tests #

Patch Set 4 : Update to match NSS changes #

Total comments: 1

Patch Set 5 : Rebase ALL the things #

Patch Set 6 : Review feedback #

Patch Set 7 : Roll DEPS #

Patch Set 8 : Rebased #

Patch Set 9 : Fix ifdef #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1100 lines, -76 lines) Patch
M DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/child/webcrypto/jwk.cc View 1 2 chunks +48 lines, -14 lines 0 comments Download
M content/child/webcrypto/platform_crypto.h View 1 chunk +20 lines, -0 lines 0 comments Download
M content/child/webcrypto/platform_crypto_nss.cc View 1 2 3 11 chunks +212 lines, -10 lines 0 comments Download
M content/child/webcrypto/platform_crypto_openssl.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M content/child/webcrypto/shared_crypto.cc View 1 5 chunks +75 lines, -8 lines 0 comments Download
M content/child/webcrypto/shared_crypto_unittest.cc View 1 2 3 4 5 6 7 8 19 chunks +653 lines, -41 lines 0 comments Download
M content/child/webcrypto/webcrypto_util.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
A content/test/data/webcrypto/rsa_oaep.json View 1 2 3 4 5 1 chunk +71 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Ryan Sleevi
Eric: Please take a look. I'll work on adding tests if you're ok with the ...
6 years, 7 months ago (2014-05-14 01:26:00 UTC) #1
eroman
approach lgtm. looking forward to the tests https://codereview.chromium.org/275943004/diff/1/content/child/webcrypto/platform_crypto_nss.cc File content/child/webcrypto/platform_crypto_nss.cc (right): https://codereview.chromium.org/275943004/diff/1/content/child/webcrypto/platform_crypto_nss.cc#newcode350 content/child/webcrypto/platform_crypto_nss.cc:350: oaep_params->mgf = ...
6 years, 7 months ago (2014-05-14 01:50:47 UTC) #2
padolph
https://codereview.chromium.org/275943004/diff/1/content/child/webcrypto/platform_crypto_nss.cc File content/child/webcrypto/platform_crypto_nss.cc (right): https://codereview.chromium.org/275943004/diff/1/content/child/webcrypto/platform_crypto_nss.cc#newcode1282 content/child/webcrypto/platform_crypto_nss.cc:1282: Do we need to check the length of the ...
6 years, 7 months ago (2014-05-14 02:00:03 UTC) #3
padolph
https://codereview.chromium.org/275943004/diff/1/content/child/webcrypto/shared_crypto.cc File content/child/webcrypto/shared_crypto.cc (right): https://codereview.chromium.org/275943004/diff/1/content/child/webcrypto/shared_crypto.cc#newcode845 content/child/webcrypto/shared_crypto.cc:845: if (wrapping_algorithm.id() == blink::WebCryptoAlgorithmIdAesKw) { I don't understand the ...
6 years, 7 months ago (2014-05-14 02:14:40 UTC) #4
Ryan Sleevi
https://codereview.chromium.org/275943004/diff/1/content/child/webcrypto/platform_crypto_nss.cc File content/child/webcrypto/platform_crypto_nss.cc (right): https://codereview.chromium.org/275943004/diff/1/content/child/webcrypto/platform_crypto_nss.cc#newcode1313 content/child/webcrypto/platform_crypto_nss.cc:1313: if (!g_nss_runtime_support.Get().IsRsaOaepSupported()) On 2014/05/14 01:50:47, eroman wrote: > We ...
6 years, 7 months ago (2014-05-14 02:34:29 UTC) #5
Ryan Sleevi
https://codereview.chromium.org/275943004/diff/1/content/child/webcrypto/platform_crypto_nss.cc File content/child/webcrypto/platform_crypto_nss.cc (right): https://codereview.chromium.org/275943004/diff/1/content/child/webcrypto/platform_crypto_nss.cc#newcode350 content/child/webcrypto/platform_crypto_nss.cc:350: oaep_params->mgf = WebCryptoHashToMGFMechanism(hash); On 2014/05/14 01:50:47, eroman wrote: > ...
6 years, 7 months ago (2014-05-14 06:09:57 UTC) #6
eroman
BTW here is the missing RSA-OAEP piece from Blink side: https://codereview.chromium.org/289073005/ If you patch locally ...
6 years, 7 months ago (2014-05-16 02:34:10 UTC) #7
Ryan Sleevi
Eric: More unit tests - which of course found bugs. Just a few edge cases ...
6 years, 7 months ago (2014-05-16 05:10:46 UTC) #8
Ryan Sleevi
https://codereview.chromium.org/275943004/diff/20001/content/child/webcrypto/jwk.cc File content/child/webcrypto/jwk.cc (left): https://codereview.chromium.org/275943004/diff/20001/content/child/webcrypto/jwk.cc#oldcode570 content/child/webcrypto/jwk.cc:570: jwk_dict->SetString("alg", "RSA-OAEP"); LULWUT https://codereview.chromium.org/275943004/diff/20001/content/child/webcrypto/shared_crypto.cc File content/child/webcrypto/shared_crypto.cc (right): https://codereview.chromium.org/275943004/diff/20001/content/child/webcrypto/shared_crypto.cc#newcode813 content/child/webcrypto/shared_crypto.cc:813: ...
6 years, 7 months ago (2014-05-16 05:17:22 UTC) #9
eroman
https://codereview.chromium.org/275943004/diff/20001/content/child/webcrypto/jwk.cc File content/child/webcrypto/jwk.cc (right): https://codereview.chromium.org/275943004/diff/20001/content/child/webcrypto/jwk.cc#newcode114 content/child/webcrypto/jwk.cc:114: // | "RSA-OAEP" | RSAES using Optimal Asymmetric Encryption ...
6 years, 7 months ago (2014-05-16 20:29:50 UTC) #10
Ryan Sleevi
https://codereview.chromium.org/275943004/diff/20001/content/child/webcrypto/shared_crypto_unittest.cc File content/child/webcrypto/shared_crypto_unittest.cc (right): https://codereview.chromium.org/275943004/diff/20001/content/child/webcrypto/shared_crypto_unittest.cc#newcode120 content/child/webcrypto/shared_crypto_unittest.cc:120: if (!NSS_VersionCheck("3.16.2")) On 2014/05/16 20:29:51, eroman wrote: > I ...
6 years, 7 months ago (2014-05-16 22:43:05 UTC) #11
eroman
lgtm https://codereview.chromium.org/275943004/diff/20001/content/child/webcrypto/shared_crypto_unittest.cc File content/child/webcrypto/shared_crypto_unittest.cc (right): https://codereview.chromium.org/275943004/diff/20001/content/child/webcrypto/shared_crypto_unittest.cc#newcode439 content/child/webcrypto/shared_crypto_unittest.cc:439: const char* const kPublicKeyExponentHex = "010001"; On 2014/05/16 ...
6 years, 7 months ago (2014-05-19 19:04:33 UTC) #12
Ryan Sleevi
The CQ bit was checked by rsleevi@chromium.org
6 years, 7 months ago (2014-05-21 01:45:26 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/275943004/120002
6 years, 7 months ago (2014-05-21 01:46:44 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-21 07:49:56 UTC) #15
Ryan Sleevi
The CQ bit was unchecked by rsleevi@chromium.org
6 years, 7 months ago (2014-05-21 07:51:20 UTC) #16
Ryan Sleevi
The CQ bit was checked by rsleevi@chromium.org
6 years, 7 months ago (2014-05-22 04:42:49 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/275943004/150001
6 years, 7 months ago (2014-05-22 04:44:02 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 10:47:43 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 13:56:20 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/9774)
6 years, 7 months ago (2014-05-22 13:56:20 UTC) #21
Ryan Sleevi
The CQ bit was checked by rsleevi@chromium.org
6 years, 7 months ago (2014-05-22 17:28:25 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/275943004/150001
6 years, 7 months ago (2014-05-22 17:34:29 UTC) #23
commit-bot: I haz the power
6 years, 7 months ago (2014-05-22 17:40:57 UTC) #24
Message was sent while issue was closed.
Change committed as 272221

Powered by Google App Engine
This is Rietveld 408576698