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

Issue 7066032: Fixing FindFromPublicKeyInfo so that it searches the "Public" NSS database (Closed)

Created:
9 years, 7 months ago by Greg Spencer (Chromium)
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Fixing FindFromPublicKeyInfo so that it searches the "Public" NSS database if it doesn't find the requested key in the "Private" NSS database. This fixes the ownership process because the ownership key is created in the public database because that needs to happen before the TPM is owned and available (and it's not really all that sensitive to begin with). BUG=chromium-os:15645 TEST=Built a new recovery image, wiped a device with it and verified that I was able to sign in as a new user and add users and forget networks. It also showed me as the owner of the device. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86654

Patch Set 1 #

Total comments: 6

Patch Set 2 : Review changes #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -30 lines) Patch
M crypto/nss_util.h View 1 chunk +1 line, -1 line 0 comments Download
M crypto/rsa_private_key_nss.cc View 1 8 chunks +35 lines, -29 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
Greg Spencer (Chromium)
9 years, 7 months ago (2011-05-24 21:59:36 UTC) #1
Chris Masone
LGTM
9 years, 7 months ago (2011-05-24 22:03:56 UTC) #2
Greg Spencer (Chromium)
Adding OWNERS to review.
9 years, 7 months ago (2011-05-25 05:17:06 UTC) #3
Ryan Sleevi
Functionally LGTM, but some nits/comments for possible cleanup tasks, either in this or future CLs. ...
9 years, 7 months ago (2011-05-25 05:58:24 UTC) #4
Greg Spencer (Chromium)
http://codereview.chromium.org/7066032/diff/1/crypto/rsa_private_key_nss.cc File crypto/rsa_private_key_nss.cc (right): http://codereview.chromium.org/7066032/diff/1/crypto/rsa_private_key_nss.cc#newcode94 crypto/rsa_private_key_nss.cc:94: CERTSubjectPublicKeyInfo *spki = On 2011/05/25 05:58:25, Ryan Sleevi wrote: ...
9 years, 7 months ago (2011-05-25 17:12:07 UTC) #5
wtc
9 years, 7 months ago (2011-05-25 23:34:00 UTC) #6
LGTM.

http://codereview.chromium.org/7066032/diff/1002/crypto/rsa_private_key_nss.cc
File crypto/rsa_private_key_nss.cc (right):

http://codereview.chromium.org/7066032/diff/1002/crypto/rsa_private_key_nss.c...
crypto/rsa_private_key_nss.cc:134: slot.reset(GetPublicNSSKeySlot());
If the computer doesn't have a TPM, GetPrivateNSSKeySlot()
and GetPublicNSSKeySlot() are the same slot, and we may
search in that slot twice.  This only happens when the RSA
private key doesn't exist, so the inefficiency is acceptable.

BUT, it seems that this function should search in all the
slots.  (I found that rsleevi said the same thing.)

Powered by Google App Engine
This is Rietveld 408576698