summaryrefslogtreecommitdiffstats
path: root/base/crypto/rsa_private_key_nss.cc
diff options
context:
space:
mode:
authorgspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-07 17:34:21 +0000
committergspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-07 17:34:21 +0000
commit6a89ef2c78c7b2ae2b56b3c50cafb493cedfd8d7 (patch)
treea042bc9c8386ceb3090eee5ea12028bb31b9b33d /base/crypto/rsa_private_key_nss.cc
parent2eea9bc97ca82d9221f58f12e1ee612da4042080 (diff)
downloadchromium_src-6a89ef2c78c7b2ae2b56b3c50cafb493cedfd8d7.zip
chromium_src-6a89ef2c78c7b2ae2b56b3c50cafb493cedfd8d7.tar.gz
chromium_src-6a89ef2c78c7b2ae2b56b3c50cafb493cedfd8d7.tar.bz2
This change loads opencryptoki and uses the TPM for keygen tags.
on ChromeOS. After this change, on ChromeOS we will use the TPM to generate keys for keygen tags in forms. NSS will also have opencryptoki loaded so it can talk to the TPM. BUG=chromium-os:12416, chromium-os:12417 TEST=Generated keys on a ChromeOS device. Review URL: http://codereview.chromium.org/6667020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80806 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/crypto/rsa_private_key_nss.cc')
-rw-r--r--base/crypto/rsa_private_key_nss.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/crypto/rsa_private_key_nss.cc b/base/crypto/rsa_private_key_nss.cc
index e952c89..9c474ff 100644
--- a/base/crypto/rsa_private_key_nss.cc
+++ b/base/crypto/rsa_private_key_nss.cc
@@ -107,7 +107,7 @@ RSAPrivateKey* RSAPrivateKey::FindFromPublicKeyInfo(
// Now, look for the associated private key in the user's NSS DB. If it's
// not there, consider that an error.
- PK11SlotInfo *slot = GetDefaultNSSKeySlot();
+ PK11SlotInfo *slot = GetPrivateNSSKeySlot();
if (!slot) {
NOTREACHED();
return NULL;
@@ -190,7 +190,7 @@ RSAPrivateKey* RSAPrivateKey::CreateWithParams(uint16 num_bits,
scoped_ptr<RSAPrivateKey> result(new RSAPrivateKey);
- PK11SlotInfo *slot = GetDefaultNSSKeySlot();
+ PK11SlotInfo *slot = GetPrivateNSSKeySlot();
if (!slot)
return NULL;
@@ -216,7 +216,7 @@ RSAPrivateKey* RSAPrivateKey::CreateFromPrivateKeyInfoWithParams(
scoped_ptr<RSAPrivateKey> result(new RSAPrivateKey);
- PK11SlotInfo *slot = GetDefaultNSSKeySlot();
+ PK11SlotInfo *slot = GetPrivateNSSKeySlot();
if (!slot)
return NULL;