summaryrefslogtreecommitdiffstats
path: root/crypto/symmetric_key.h
diff options
context:
space:
mode:
authorzelidrag@chromium.org <zelidrag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-07 04:01:03 +0000
committerzelidrag@chromium.org <zelidrag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-07 04:01:03 +0000
commit6e3d9a9cf7aec1dc9777c2860e39ee7751a3e004 (patch)
tree4aa823b32cdc4d026a15996a407f80f15913fee8 /crypto/symmetric_key.h
parent3f7af10d3e7d931500433326908d261333710b31 (diff)
downloadchromium_src-6e3d9a9cf7aec1dc9777c2860e39ee7751a3e004.zip
chromium_src-6e3d9a9cf7aec1dc9777c2860e39ee7751a3e004.tar.gz
chromium_src-6e3d9a9cf7aec1dc9777c2860e39ee7751a3e004.tar.bz2
Changed OAuth token+secret encryption to use supplemental user key from NSS DB.
BUG=chromium-os:18633 TEST=none Review URL: http://codereview.chromium.org/7756025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99912 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'crypto/symmetric_key.h')
-rw-r--r--crypto/symmetric_key.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/symmetric_key.h b/crypto/symmetric_key.h
index 5bb92b7..500324e 100644
--- a/crypto/symmetric_key.h
+++ b/crypto/symmetric_key.h
@@ -71,6 +71,11 @@ class CRYPTO_EXPORT SymmetricKey {
// carefully.
bool GetRawKey(std::string* raw_key);
+#if defined(OS_CHROMEOS)
+ // Creates symmetric key from NSS key. Takes over the ownership of |key|.
+ static SymmetricKey* CreateFromKey(PK11SymKey* key);
+#endif
+
private:
#if defined(USE_OPENSSL)
SymmetricKey() {}