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

Issue 8413024: Add ECPrivateKey for Elliptic Curve keypair generation. (Closed)

Created:
9 years, 1 month ago by mattm
Modified:
9 years, 1 month ago
Reviewers:
wtc, Ryan Sleevi
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add ECPrivateKey for Elliptic Curve keypair generation. The implementation uses NSS on all platforms unless USE_OPENSSL is defined (which is only stubbed out in this CL). BUG=88782 TEST=ECPrivateKeyUnitTest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109188

Patch Set 1 #

Patch Set 2 : win/mac fix #

Patch Set 3 : fix leak #

Patch Set 4 : rebase #

Patch Set 5 : fix ASN1 template on win? #

Patch Set 6 : fix win build for real #

Total comments: 42

Patch Set 7 : review changes #

Total comments: 63

Patch Set 8 : review changes 2 #

Patch Set 9 : undo the making key_ and public_key scoped objects #

Patch Set 10 : openssl gyp exclude fix #

Patch Set 11 : use SEC_QuickDERDecodeItem #

Total comments: 11

Patch Set 12 : review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+782 lines, -15 lines) Patch
M chrome/common/net/x509_certificate_model_nss.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/third_party/mozilla_security_manager/nsNSSCertHelper.h View 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/third_party/mozilla_security_manager/nsNSSCertHelper.cpp View 1 7 chunks +7 lines, -6 lines 0 comments Download
M crypto/crypto.gyp View 1 2 3 4 5 6 7 8 9 6 chunks +11 lines, -0 lines 0 comments Download
A crypto/ec_private_key.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +124 lines, -0 lines 0 comments Download
A crypto/ec_private_key_nss.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +300 lines, -0 lines 0 comments Download
A crypto/ec_private_key_openssl.cc View 1 2 3 4 5 6 7 1 chunk +66 lines, -0 lines 0 comments Download
A crypto/ec_private_key_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +107 lines, -0 lines 0 comments Download
M crypto/scoped_nss_types.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
A crypto/third_party/nss/chromium-nss.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +62 lines, -0 lines 0 comments Download
A crypto/third_party/nss/pk11akey.cc View 1 2 3 4 5 6 7 1 chunk +98 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
mattm
Main annoyance is needing the "public value" in order to import the key in NSS. ...
9 years, 1 month ago (2011-10-28 04:27:41 UTC) #1
wtc
Review comments on Patch Set 6: Excellent work! And sorry for the late review. I ...
9 years, 1 month ago (2011-11-03 02:17:50 UTC) #2
mattm
updated. http://codereview.chromium.org/8413024/diff/12001/crypto/ec_private_key.h File crypto/ec_private_key.h (right): http://codereview.chromium.org/8413024/diff/12001/crypto/ec_private_key.h#newcode9 crypto/ec_private_key.h:9: #include "build/build_config.h" On 2011/11/03 02:17:50, wtc wrote: > ...
9 years, 1 month ago (2011-11-04 02:39:14 UTC) #3
Ryan Sleevi
A lot of nits - overall LGTM, but I think there is good opportunity for ...
9 years, 1 month ago (2011-11-04 03:21:25 UTC) #4
wtc
Response to rsleevi's comments on Patch Set 7: rsleevi: thank you for your thoughtful comments. ...
9 years, 1 month ago (2011-11-04 21:52:49 UTC) #5
wtc
Patch Set 7 LGTM. I suggest some changes below. Almost all of my suggested changes ...
9 years, 1 month ago (2011-11-04 22:41:26 UTC) #6
mattm
updated http://codereview.chromium.org/8413024/diff/15002/crypto/crypto.gyp File crypto/crypto.gyp (right): http://codereview.chromium.org/8413024/diff/15002/crypto/crypto.gyp#newcode99 crypto/crypto.gyp:99: 'third_party/nss/ec.cc', On 2011/11/04 22:41:26, wtc wrote: > > ...
9 years, 1 month ago (2011-11-08 02:12:27 UTC) #7
wtc
Patch Set 11 LGTM. http://codereview.chromium.org/8413024/diff/15002/crypto/ec_private_key.h File crypto/ec_private_key.h (right): http://codereview.chromium.org/8413024/diff/15002/crypto/ec_private_key.h#newcode113 crypto/ec_private_key.h:113: SECKEYPublicKey* public_key_; On 2011/11/08 02:12:27, ...
9 years, 1 month ago (2011-11-08 23:21:18 UTC) #8
mattm
http://codereview.chromium.org/8413024/diff/26006/crypto/ec_private_key.h File crypto/ec_private_key.h (right): http://codereview.chromium.org/8413024/diff/26006/crypto/ec_private_key.h#newcode76 crypto/ec_private_key.h:76: // block and the public key as an X.509 ...
9 years, 1 month ago (2011-11-09 04:11:34 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mattm@chromium.org/8413024/31028
9 years, 1 month ago (2011-11-09 04:13:08 UTC) #10
commit-bot: I haz the power
9 years, 1 month ago (2011-11-09 05:08:55 UTC) #11
Change committed as 109188

Powered by Google App Engine
This is Rietveld 408576698