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

Unified Diff: chrome/browser/chromeos/login/parallel_authenticator.h

Issue 7584026: Encrypted OAuth1 all access token and secret with system salt for now, will replace this with use... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months 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
Index: chrome/browser/chromeos/login/parallel_authenticator.h
===================================================================
--- chrome/browser/chromeos/login/parallel_authenticator.h (revision 95832)
+++ chrome/browser/chromeos/login/parallel_authenticator.h (working copy)
@@ -147,6 +147,8 @@
const std::string& login_captcha) OVERRIDE;
virtual void VerifyOAuth1AccessToken(const std::string& oauth1_access_token,
const std::string& oauth1_secret) OVERRIDE;
+ virtual std::string EncryptToken(const std::string& token) OVERRIDE;
+ virtual std::string DecryptToken(const std::string& encrypted_token) OVERRIDE;
// AuthAttemptStateResolver overrides.
// Attempts to make a decision and call back |consumer_| based on
@@ -238,13 +240,8 @@
// Returns the ascii encoding of the system salt.
std::string SaltAsAscii();
- // Converts the binary data |binary| into an ascii hex string and stores
- // it in |hex_string|. Not guaranteed to be NULL-terminated.
- // Returns false if |hex_string| is too small, true otherwise.
- static bool BinaryToHex(const std::vector<unsigned char>& binary,
- const unsigned int binary_len,
- char* hex_string,
- const unsigned int len);
+ // Returns the ascii encoding of user supplemental key.
+ std::string UserSupplementalKeyAsAscii();
Chris Masone 2011/08/09 04:19:32 It'd be good to file an issue for converting this
// Signal login completion status for cases when a new user is added via
// an external authentication provider (i.e. GAIA extension).
« no previous file with comments | « chrome/browser/chromeos/login/mock_authenticator.h ('k') | chrome/browser/chromeos/login/parallel_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698