OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/cros/cryptohome_library.h" | 5 #include "chrome/browser/chromeos/cros/cryptohome_library.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "chrome/browser/chrome_thread.h" | 8 #include "chrome/browser/chrome_thread.h" |
9 | 9 |
10 namespace chromeos { | 10 namespace chromeos { |
11 | 11 |
12 bool CryptohomeLibraryImpl::CheckKey(const std::string& user_email, | 12 bool CryptohomeLibraryImpl::CheckKey(const std::string& user_email, |
13 const std::string& passhash) { | 13 const std::string& passhash) { |
14 return chromeos::CryptohomeCheckKey(user_email.c_str(), passhash.c_str()); | 14 return chromeos::CryptohomeCheckKey(user_email.c_str(), passhash.c_str()); |
15 } | 15 } |
16 | 16 |
17 bool CryptohomeLibraryImpl::Mount(const std::string& user_email, | 17 bool CryptohomeLibraryImpl::Mount(const std::string& user_email, |
18 const std::string& passhash) { | 18 const std::string& passhash) { |
19 return chromeos::CryptohomeMount(user_email.c_str(), passhash.c_str()); | 19 return chromeos::CryptohomeMount(user_email.c_str(), passhash.c_str()); |
20 } | 20 } |
21 | 21 |
22 bool CryptohomeLibraryImpl::IsMounted() { | 22 bool CryptohomeLibraryImpl::IsMounted() { |
23 return chromeos::CryptohomeIsMounted(); | 23 return chromeos::CryptohomeIsMounted(); |
24 } | 24 } |
25 | 25 |
| 26 CryptohomeBlob CryptohomeLibraryImpl::GetSystemSalt() { |
| 27 return chromeos::CryptohomeGetSystemSalt(); |
| 28 } |
| 29 |
26 } // namespace chromeos | 30 } // namespace chromeos |
OLD | NEW |