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

Issue 208032: Linux (nss) implementations of RSAPrivateKey and SignatureCreator (Closed)

Created:
11 years, 3 months ago by rafaelw
Modified:
9 years, 7 months ago
Reviewers:
Aaron Boodman, wtc
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Linux (nss) implementations of RSAPrivateKey and SignatureCreator BUG=20669 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=26950

Patch Set 1 #

Patch Set 2 : pre cr #

Patch Set 3 : windows ctor #

Patch Set 4 : win compile fix #

Total comments: 4

Patch Set 5 : cr changes #

Total comments: 15

Patch Set 6 : cr changes #

Total comments: 20

Patch Set 7 : cr changes #

Patch Set 8 : cr changes #

Patch Set 9 : more cr changes #

Total comments: 8

Patch Set 10 : last cr changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+337 lines, -13 lines) Patch
M base/base.gyp View 1 2 3 4 5 4 chunks +10 lines, -3 lines 0 comments Download
M base/crypto/rsa_private_key.h View 1 2 3 4 5 6 7 3 chunks +13 lines, -5 lines 0 comments Download
A base/crypto/rsa_private_key_nss.cc View 1 2 3 4 5 6 7 8 9 1 chunk +225 lines, -0 lines 0 comments Download
M base/crypto/signature_creator.h View 2 chunks +13 lines, -5 lines 0 comments Download
A base/crypto/signature_creator_nss.cc View 1 2 3 4 5 6 7 8 9 1 chunk +74 lines, -0 lines 0 comments Download
M base/crypto/signature_creator_win.cc View 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
rafaelw
Wan-Teh, here's the cleaned up patch. Note that the PK11_ReadRawAttributes still don't do anything about ...
11 years, 3 months ago (2009-09-18 21:22:15 UTC) #1
wtc
Hi Rafael, I looked into how to free the SECItems returned by NSS functions. Please ...
11 years, 3 months ago (2009-09-18 23:05:04 UTC) #2
rafaelw
http://codereview.chromium.org/208032/diff/4009/4012 File base/crypto/rsa_private_key_nss.cc (right): http://codereview.chromium.org/208032/diff/4009/4012#newcode227 Line 227: PrependInteger(modulus_item.data, modulus_item.len, &content); On 2009/09/18 23:05:05, wtc wrote: ...
11 years, 3 months ago (2009-09-19 00:46:42 UTC) #3
Aaron Boodman
Looking good. http://codereview.chromium.org/208032/diff/5002/5003 File base/base.gyp (right): http://codereview.chromium.org/208032/diff/5002/5003#newcode24 Line 24: 'crypto/rsa_private_key_nss.cc', alphabetize http://codereview.chromium.org/208032/diff/5002/5003#newcode27 Line 27: 'crypto/signature_creator_nss.cc', ...
11 years, 3 months ago (2009-09-19 02:45:24 UTC) #4
rafaelw
http://codereview.chromium.org/208032/diff/5002/5003 File base/base.gyp (right): http://codereview.chromium.org/208032/diff/5002/5003#newcode24 Line 24: 'crypto/rsa_private_key_nss.cc', On 2009/09/19 02:45:24, Aaron Boodman wrote: > ...
11 years, 3 months ago (2009-09-20 17:14:07 UTC) #5
Aaron Boodman
lgtm. Are you going to try and refactor the shared code in this CL or ...
11 years, 3 months ago (2009-09-21 17:49:33 UTC) #6
wtc
LGTM. Excellent work! Some suggested changes below. http://codereview.chromium.org/208032/diff/7001/7004 File base/crypto/rsa_private_key_nss.cc (right): http://codereview.chromium.org/208032/diff/7001/7004#newcode7 Line 7: #include ...
11 years, 3 months ago (2009-09-22 19:06:20 UTC) #7
rafaelw
http://codereview.chromium.org/208032/diff/7001/7004 File base/crypto/rsa_private_key_nss.cc (right): http://codereview.chromium.org/208032/diff/7001/7004#newcode7 Line 7: #include <cryptohi.h> On 2009/09/22 19:06:20, wtc wrote: > ...
11 years, 3 months ago (2009-09-22 21:21:58 UTC) #8
wtc
LGTM. Just three nits below. You can commit without further review by me. http://codereview.chromium.org/208032/diff/17/20 File ...
11 years, 3 months ago (2009-09-22 23:02:53 UTC) #9
rafaelw
11 years, 3 months ago (2009-09-22 23:12:31 UTC) #10
http://codereview.chromium.org/208032/diff/17/20
File base/crypto/rsa_private_key_nss.cc (right):

http://codereview.chromium.org/208032/diff/17/20#newcode8
Line 8: #include <iostream>
On 2009/09/22 23:02:53, wtc wrote:
> Move <iostream> below to the C++ system header section.

Woops. sorry. done.

http://codereview.chromium.org/208032/diff/17/20#newcode90
Line 90: static bool ReadAttributeAndPrependInteger(SECKEYPrivateKey* key,
On 2009/09/22 23:02:53, wtc wrote:
> Nice solution!

thanks

http://codereview.chromium.org/208032/diff/17/20#newcode91
Line 91: CK_ATTRIBUTE_TYPE type,
On 2009/09/22 23:02:53, wtc wrote:
> Nit: indentation is off by one character.

Done.

http://codereview.chromium.org/208032/diff/17/22
File base/crypto/signature_creator_nss.cc (right):

http://codereview.chromium.org/208032/diff/17/22#newcode68
Line 68: signature->assign(signature_item.data, signature_item.data +
On 2009/09/22 23:02:53, wtc wrote:
> Nit: please also fix the formatting of this function call.

Done.

Powered by Google App Engine
This is Rietveld 408576698