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

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

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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/auth_attempt_state.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.cc
===================================================================
--- chrome/browser/chromeos/cros/cryptohome_library.cc (revision 95968)
+++ chrome/browser/chromeos/cros/cryptohome_library.cc (working copy)
@@ -11,6 +11,10 @@
#include "chrome/common/chrome_switches.h"
#include "content/browser/browser_thread.h"
+namespace {
+ const char kStubSystemSalt[] = "stub_system_salt";
+}
+
namespace chromeos {
// This class handles the interaction with the ChromeOS cryptohome library APIs.
@@ -349,8 +353,9 @@
CryptohomeBlob GetSystemSalt() {
CryptohomeBlob salt = CryptohomeBlob();
- salt.push_back(0);
- salt.push_back(0);
+ for (size_t i = 0; i < strlen(kStubSystemSalt); i++)
+ salt.push_back(static_cast<unsigned char>(kStubSystemSalt[i]));
+
return salt;
}
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/auth_attempt_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698