Index: crypto/nss_util.h |
=================================================================== |
--- crypto/nss_util.h (revision 99168) |
+++ crypto/nss_util.h (working copy) |
@@ -133,6 +133,15 @@ |
// Same as IsTPMTokenReady() except this attempts to initialize the token |
// if necessary. |
CRYPTO_EXPORT bool EnsureTPMTokenReady(); |
+ |
+// Gets supplemental user key. Creates one in NSS database if it does not exist. |
+CRYPTO_EXPORT bool GetSupplementalUserKey(std::string* user_key); |
+ |
+// Encrypt/decrypt |data| with supplemental user key. |
+CRYPTO_EXPORT bool EncryptWithSupplementalUserKey(const std::string& data, |
+ std::string* encryped_data); |
+CRYPTO_EXPORT bool DecryptWithSupplementalUserKey(const std::string& data, |
+ std::string* encryped_data); |
wtc
2011/09/02 22:31:08
It seems better to move these functions to some ot
|
#endif |
// Convert a NSS PRTime value into a base::Time object. |