| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_challenge_wrappe
r.h" | 5 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_challenge_wrappe
r.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager.
h" | 8 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager.
h" |
| 9 #include "components/proximity_auth/cryptauth/proto/securemessage.pb.h" | 9 #include "components/cryptauth/proto/securemessage.pb.h" |
| 10 #include "components/proximity_auth/logging/logging.h" | 10 #include "components/proximity_auth/logging/logging.h" |
| 11 | 11 |
| 12 namespace chromeos { | 12 namespace chromeos { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 // Salt added to a SecureMessage. | 16 // Salt added to a SecureMessage. |
| 17 const char kSalt[] = | 17 const char kSalt[] = |
| 18 "\xbf\x9d\x2a\x53\xc6\x36\x16\xd7\x5d\xb0\xa7\x16\x5b\x91\xc1\xef\x73\xe5" | 18 "\xbf\x9d\x2a\x53\xc6\x36\x16\xd7\x5d\xb0\xa7\x16\x5b\x91\xc1\xef\x73\xe5" |
| 19 "\x37\xf2\x42\x74\x05\xfa\x23\x61\x0a\x4b\xe6\x57\x64\x2e"; | 19 "\x37\xf2\x42\x74\x05\xfa\x23\x61\x0a\x4b\xe6\x57\x64\x2e"; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 75 |
| 76 securemessage::SecureMessage wrapped_challenge; | 76 securemessage::SecureMessage wrapped_challenge; |
| 77 wrapped_challenge.set_header_and_body(challenge_); | 77 wrapped_challenge.set_header_and_body(challenge_); |
| 78 wrapped_challenge.set_signature(signature_container.SerializeAsString()); | 78 wrapped_challenge.set_signature(signature_container.SerializeAsString()); |
| 79 | 79 |
| 80 PA_LOG(INFO) << "Finished wrapping challenge."; | 80 PA_LOG(INFO) << "Finished wrapping challenge."; |
| 81 callback_.Run(wrapped_challenge.SerializeAsString()); | 81 callback_.Run(wrapped_challenge.SerializeAsString()); |
| 82 } | 82 } |
| 83 | 83 |
| 84 } // namespace chromeos | 84 } // namespace chromeos |
| OLD | NEW |