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: |