blob: 6ac8432a9749b425ffcf67875f266732a57adf5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/cros/cryptohome_library.h"
#include "base/message_loop.h"
#include "chrome/browser/chrome_thread.h"
namespace chromeos {
bool CryptohomeLibraryImpl::CheckKey(const std::string& user_email,
const std::string& passhash) {
return chromeos::CryptohomeCheckKey(user_email.c_str(), passhash.c_str());
}
bool CryptohomeLibraryImpl::MigrateKey(const std::string& user_email,
const std::string& old_hash,
const std::string& new_hash) {
return chromeos::CryptohomeMigrateKey(user_email.c_str(),
old_hash.c_str(),
new_hash.c_str());
}
bool CryptohomeLibraryImpl::Remove(const std::string& user_email) {
return chromeos::CryptohomeRemove(user_email.c_str());
}
bool CryptohomeLibraryImpl::Mount(const std::string& user_email,
const std::string& passhash,
int* error_code) {
return chromeos::CryptohomeMountAllowFail(user_email.c_str(),
passhash.c_str(),
error_code);
}
bool CryptohomeLibraryImpl::MountForBwsi(int* error_code) {
return chromeos::CryptohomeMountGuest(error_code);
}
bool CryptohomeLibraryImpl::IsMounted() {
return chromeos::CryptohomeIsMounted();
}
CryptohomeBlob CryptohomeLibraryImpl::GetSystemSalt() {
return chromeos::CryptohomeGetSystemSalt();
}
} // namespace chromeos
|