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

Issue 401233004: Refactor RSA key generation for WebCrypto's NSS implementation. (Closed)

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

Description

Refactor RSA key generation for WebCrypto's NSS implementation. This refactor extracts common functionality to simplify adding the equivalent OpenSSL implementation: * Extracts the conversion of public exponent from a big integer to an unsigned integer * Restricts key sizes to multiples of 8, between 256 and 16K. This is the more restrictive range supported by NSS. BUG=389317 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285532

Patch Set 1 : #

Total comments: 6

Patch Set 2 : Address rsleevi comments #

Patch Set 3 : rebase onto master #

Patch Set 4 : Cleanups #

Patch Set 5 : #

Patch Set 6 : rebase #

Total comments: 2

Patch Set 7 : rebase and address commet #

Patch Set 8 : fix bad merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -56 lines) Patch
M content/child/webcrypto/nss/rsa_key_nss.cc View 1 2 3 4 4 chunks +9 lines, -41 lines 0 comments Download
M content/child/webcrypto/shared_crypto_unittest.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -10 lines 0 comments Download
M content/child/webcrypto/status.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/child/webcrypto/status.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
M content/child/webcrypto/webcrypto_util.h View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M content/child/webcrypto/webcrypto_util.cc View 1 2 3 4 5 6 2 chunks +53 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
eroman
6 years, 5 months ago (2014-07-21 21:15:50 UTC) #1
Ryan Sleevi
https://codereview.chromium.org/401233004/diff/20002/content/child/webcrypto/shared_crypto_unittest.cc File content/child/webcrypto/shared_crypto_unittest.cc (right): https://codereview.chromium.org/401233004/diff/20002/content/child/webcrypto/shared_crypto_unittest.cc#newcode2654 content/child/webcrypto/shared_crypto_unittest.cc:2654: modulus_length_bits == 0 ? Status::ErrorGenerateRsaZeroModulus() Why is this a ...
6 years, 5 months ago (2014-07-21 21:36:46 UTC) #2
eroman
https://codereview.chromium.org/401233004/diff/20002/content/child/webcrypto/shared_crypto_unittest.cc File content/child/webcrypto/shared_crypto_unittest.cc (right): https://codereview.chromium.org/401233004/diff/20002/content/child/webcrypto/shared_crypto_unittest.cc#newcode2654 content/child/webcrypto/shared_crypto_unittest.cc:2654: modulus_length_bits == 0 ? Status::ErrorGenerateRsaZeroModulus() On 2014/07/21 21:36:45, Ryan ...
6 years, 5 months ago (2014-07-21 21:52:21 UTC) #3
Ryan Sleevi
lgtm https://codereview.chromium.org/401233004/diff/150001/content/child/webcrypto/webcrypto_util.cc File content/child/webcrypto/webcrypto_util.cc (right): https://codereview.chromium.org/401233004/diff/150001/content/child/webcrypto/webcrypto_util.cc#newcode35 content/child/webcrypto/webcrypto_util.cc:35: return false; // Too large for a long. ...
6 years, 5 months ago (2014-07-24 23:03:43 UTC) #4
eroman
https://codereview.chromium.org/401233004/diff/150001/content/child/webcrypto/webcrypto_util.cc File content/child/webcrypto/webcrypto_util.cc (right): https://codereview.chromium.org/401233004/diff/150001/content/child/webcrypto/webcrypto_util.cc#newcode35 content/child/webcrypto/webcrypto_util.cc:35: return false; // Too large for a long. On ...
6 years, 5 months ago (2014-07-24 23:36:48 UTC) #5
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 5 months ago (2014-07-24 23:36:55 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eroman@chromium.org/401233004/170001
6 years, 5 months ago (2014-07-24 23:38:35 UTC) #7
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 5 months ago (2014-07-25 05:06:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eroman@chromium.org/401233004/190001
6 years, 5 months ago (2014-07-25 05:07:07 UTC) #9
commit-bot: I haz the power
6 years, 5 months ago (2014-07-25 08:38:06 UTC) #10
Message was sent while issue was closed.
Change committed as 285532

Powered by Google App Engine
This is Rietveld 408576698