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

Unified Diff: chromeos/login/auth/key.cc

Issue 2934893003: Deleted redundant SymmetricKey::GetRawKey(). (Closed)
Patch Set: Rebased to fix conflict with ToT. Created 3 years, 6 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 | « chromecast/media/base/decrypt_context_impl_clearkey.cc ('k') | components/sync/base/cryptographer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/login/auth/key.cc
diff --git a/chromeos/login/auth/key.cc b/chromeos/login/auth/key.cc
index e9dada20f0af13d8cc4f131c35346ed2d4c293c8..101806454f5eb66713f1b504c063c1630a2e7d6b 100644
--- a/chromeos/login/auth/key.cc
+++ b/chromeos/login/auth/key.cc
@@ -94,9 +94,7 @@ void Key::Transform(KeyType target_key_type, const std::string& salt) {
crypto::SymmetricKey::DeriveKeyFromPassword(
crypto::SymmetricKey::AES, secret_, salt, kNumIterations,
kKeySizeInBits));
- std::string raw_secret;
- key->GetRawKey(&raw_secret);
- base::Base64Encode(raw_secret, &secret_);
+ base::Base64Encode(key->key(), &secret_);
break;
}
case KEY_TYPE_SALTED_SHA256:
« no previous file with comments | « chromecast/media/base/decrypt_context_impl_clearkey.cc ('k') | components/sync/base/cryptographer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698