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

Unified Diff: chrome/browser/chromeos/cros/cryptohome_library.h

Issue 8761016: Shaving parallel authenticator yak to remove unnecessary dependency on this class from OAuth spec... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/cros/cert_library.cc ('k') | chrome/browser/chromeos/cros/cryptohome_library.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros/cryptohome_library.h
===================================================================
--- chrome/browser/chromeos/cros/cryptohome_library.h (revision 112673)
+++ chrome/browser/chromeos/cros/cryptohome_library.h (working copy)
@@ -75,9 +75,6 @@
// Asks cryptohomed if a drive is currently mounted.
virtual bool IsMounted() = 0;
- // Asks cryptohomed for the system salt.
- virtual CryptohomeBlob GetSystemSalt() = 0;
-
// Passes cryptohomed the owner user. It is used to prevent
// deletion of the owner in low disk space cleanup (see above).
virtual bool AsyncSetOwnerUser(const std::string& username,
@@ -128,6 +125,12 @@
// the TPM token, not the TPM itself.
virtual bool Pkcs11IsTpmTokenReady() = 0;
+ // Returns hash of |password|, salted with the system salt.
+ virtual std::string HashPassword(const std::string& password) = 0;
+
+ // Returns system hash in hex encoded ascii format.
+ virtual std::string GetSystemSalt() = 0;
+
// Factory function, creates a new instance and returns ownership.
// For normal usage, access the singleton via CrosLibrary::Get().
static CryptohomeLibrary* GetImpl(bool stub);
« no previous file with comments | « chrome/browser/chromeos/cros/cert_library.cc ('k') | chrome/browser/chromeos/cros/cryptohome_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698