OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/managed/supervised_user_authentication.h
" | 5 #include "chrome/browser/chromeos/login/managed/supervised_user_authentication.h
" |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/json/json_file_value_serializer.h" | 8 #include "base/json/json_file_value_serializer.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "base/threading/sequenced_worker_pool.h" | 13 #include "base/threading/sequenced_worker_pool.h" |
14 #include "chrome/browser/chromeos/login/managed/locally_managed_user_constants.h
" | 14 #include "chrome/browser/chromeos/login/managed/locally_managed_user_constants.h
" |
15 #include "chrome/browser/chromeos/login/supervised_user_manager.h" | 15 #include "chrome/browser/chromeos/login/users/supervised_user_manager.h" |
16 #include "chrome/browser/chromeos/login/user.h" | 16 #include "chrome/browser/chromeos/login/users/user.h" |
17 #include "chrome/browser/chromeos/login/user_manager.h" | 17 #include "chrome/browser/chromeos/login/users/user_manager.h" |
18 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 18 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
19 #include "chromeos/cryptohome/signed_secret.pb.h" | 19 #include "chromeos/cryptohome/signed_secret.pb.h" |
20 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
21 #include "crypto/hmac.h" | 21 #include "crypto/hmac.h" |
22 #include "crypto/random.h" | 22 #include "crypto/random.h" |
23 #include "crypto/symmetric_key.h" | 23 #include "crypto/symmetric_key.h" |
24 | 24 |
25 namespace chromeos { | 25 namespace chromeos { |
26 | 26 |
27 namespace { | 27 namespace { |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 LOG(FATAL) << "HMAC::Sign failed"; | 351 LOG(FATAL) << "HMAC::Sign failed"; |
352 | 352 |
353 std::string raw_result(out_bytes, out_bytes + sizeof(out_bytes)); | 353 std::string raw_result(out_bytes, out_bytes + sizeof(out_bytes)); |
354 | 354 |
355 std::string result; | 355 std::string result; |
356 base::Base64Encode(raw_result, &result); | 356 base::Base64Encode(raw_result, &result); |
357 return result; | 357 return result; |
358 } | 358 } |
359 | 359 |
360 } // namespace chromeos | 360 } // namespace chromeos |
OLD | NEW |