Searched refs:cryptohome (Results 1 - 25 of 64) sorted by relevance

123

/external/chromium_org/chrome/browser/chromeos/login/supervised/
H A Dsupervised_user_constants.cc7 #include "chromeos/cryptohome/cryptohome_parameters.h"
19 cryptohome::PRIV_AUTHORIZED_UPDATE | cryptohome::PRIV_MOUNT;
21 cryptohome::PRIV_MIGRATE | cryptohome::PRIV_MOUNT;
H A Dsupervised_user_authenticator.cc11 #include "chromeos/cryptohome/async_method_caller.h"
12 #include "chromeos/cryptohome/cryptohome_parameters.h"
13 #include "chromeos/cryptohome/system_salt_getter.h"
32 cryptohome::MountError return_code) {
54 cryptohome::MountError return_code) {
59 // Calls cryptohome's mount method.
70 cryptohome::AsyncMethodCaller::GetInstance()->AsyncMount(
79 cryptohome::AsyncMethodCaller::GetInstance()->AsyncGetSanitizedUsername(
84 // Calls cryptohome's addKey method.
97 cryptohome
[all...]
H A Dsupervised_user_authenticator.h18 // Authenticates supervised users against the cryptohome.
22 // AuthenticateToCreate() calls a Cryptohome to create new cryptohome.
28 NO_MOUNT, // No cryptohome exist for user.
29 FAILED_MOUNT, // Failed to mount existing cryptohome - login failed.
30 FAILED_TPM, // Failed to mount/create cryptohome because of TPM error.
45 cryptohome::MountError cryptohome_code);
56 cryptohome::MountError cryptohome_code();
68 cryptohome::MountError cryptohome_code_;
/external/chromium_org/chromeos/login/auth/
H A Dextended_authenticator_impl.cc10 #include "chromeos/cryptohome/async_method_caller.h"
11 #include "chromeos/cryptohome/cryptohome_parameters.h"
12 #include "chromeos/cryptohome/homedir_methods.h"
13 #include "chromeos/cryptohome/system_salt_getter.h"
84 const std::vector<cryptohome::KeyDefinition>& keys,
89 cryptohome::Identification id(canonicalized);
90 cryptohome::Authorization auth(keys.front());
91 cryptohome::MountParameters mount(false);
100 cryptohome::HomedirMethods::GetInstance()->MountEx(
112 const cryptohome
[all...]
H A Dtest_attempt_state.h30 // Act as though an cryptohome login attempt completed already.
32 cryptohome::MountError cryptohome_code);
41 virtual cryptohome::MountError cryptohome_code() OVERRIDE;
H A Dauth_attempt_state.cc29 cryptohome_code_(cryptohome::MOUNT_ERROR_NONE),
51 cryptohome::MountError cryptohome_code) {
75 cryptohome_code_ = cryptohome::MOUNT_ERROR_NONE;
102 cryptohome::MountError AuthAttemptState::cryptohome_code() {
H A Dextended_authenticator_impl.h38 const std::vector<cryptohome::KeyDefinition>& keys,
41 const cryptohome::KeyDefinition& key,
46 const cryptohome::KeyDefinition& key,
66 void DoAddKey(const cryptohome::KeyDefinition& key,
70 void DoUpdateKeyAuthorized(const cryptohome::KeyDefinition& key,
83 cryptohome::MountError return_code,
89 cryptohome::MountError return_code);
H A Dtest_attempt_state.cc35 cryptohome::MountError cryptohome_code) {
65 cryptohome::MountError TestAttemptState::cryptohome_code() {
H A Dauth_attempt_state.h57 cryptohome::MountError cryptohome_code);
59 // Blow away locally stored cryptohome login status.
70 virtual cryptohome::MountError cryptohome_code();
98 // Status of our cryptohome op attempt. Can only have one in flight at a time.
101 cryptohome::MountError cryptohome_code_;
H A Dfake_extended_authenticator.h33 const std::vector<cryptohome::KeyDefinition>& keys,
36 const cryptohome::KeyDefinition& key,
41 const cryptohome::KeyDefinition& key,
H A Dcryptohome_authenticator.cc14 #include "chromeos/cryptohome/async_method_caller.h"
15 #include "chromeos/cryptohome/cryptohome_parameters.h"
16 #include "chromeos/cryptohome/homedir_methods.h"
17 #include "chromeos/cryptohome/system_salt_getter.h"
59 cryptohome::MountError return_code) {
82 cryptohome::MountError return_code) {
87 // Records an error in accessing the user's cryptohome with the given key and
94 cryptohome::MOUNT_ERROR_KEY_FAILURE);
98 // Callback invoked when cryptohome's MountEx() method has finished.
102 cryptohome
[all...]
H A Dextended_authenticator.h16 #include "chromeos/cryptohome/cryptohome_parameters.h"
28 // AuthenticateToCreate() calls cryptohomed to create new cryptohome.
34 NO_MOUNT, // No cryptohome exist for user.
35 FAILED_MOUNT, // Failed to mount existing cryptohome - login failed.
36 FAILED_TPM, // Failed to mount/create cryptohome because of TPM error.
77 const std::vector<cryptohome::KeyDefinition>& keys,
86 const cryptohome::KeyDefinition& key,
96 const cryptohome::KeyDefinition& key,
/external/chromium_org/chromeos/dbus/
H A Dcryptohome_client.cc11 #include "chromeos/cryptohome/async_method_caller.h"
13 #include "chromeos/dbus/cryptohome/key.pb.h"
14 #include "chromeos/dbus/cryptohome/rpc.pb.h"
61 dbus::MethodCall method_call(cryptohome::kCryptohomeInterface,
62 cryptohome::kCryptohomeIsMounted);
68 dbus::MethodCall method_call(cryptohome::kCryptohomeInterface,
69 cryptohome::kCryptohomeUnmount);
77 dbus::MethodCall method_call(cryptohome::kCryptohomeInterface,
78 cryptohome::kCryptohomeAsyncCheckKey);
93 dbus::MethodCall method_call(cryptohome
[all...]
H A Dmock_cryptohome_client.h10 #include "chromeos/dbus/cryptohome/rpc.pb.h"
169 void(const cryptohome::AccountIdentifier& id,
170 const cryptohome::AuthorizationRequest& auth,
171 const cryptohome::GetKeyDataRequest& request,
174 void(const cryptohome::AccountIdentifier& id,
175 const cryptohome::AuthorizationRequest& auth,
176 const cryptohome::CheckKeyRequest& request,
179 void(const cryptohome::AccountIdentifier& id,
180 const cryptohome::AuthorizationRequest& auth,
181 const cryptohome
[all...]
H A Dcryptohome_client.h18 namespace cryptohome { namespace
33 } // namespace cryptohome
83 const cryptohome::BaseReply& reply)> ProtobufMethodCallback;
153 // Calls the AsyncMount method to asynchronously mount the cryptohome for
174 // Calls the AsyncMount method to asynchronously mount the cryptohome for
464 const cryptohome::AccountIdentifier& id,
465 const cryptohome::AuthorizationRequest& auth,
466 const cryptohome::GetKeyDataRequest& request,
473 const cryptohome::AccountIdentifier& id,
474 const cryptohome
[all...]
H A Dfake_cryptohome_client.h164 const cryptohome::AccountIdentifier& id,
165 const cryptohome::AuthorizationRequest& auth,
166 const cryptohome::GetKeyDataRequest& request,
169 const cryptohome::AccountIdentifier& id,
170 const cryptohome::AuthorizationRequest& auth,
171 const cryptohome::CheckKeyRequest& request,
174 const cryptohome::AccountIdentifier& id,
175 const cryptohome::AuthorizationRequest& auth,
176 const cryptohome::MountRequest& request,
179 const cryptohome
[all...]
H A Dfake_cryptohome_client.cc14 #include "chromeos/dbus/cryptohome/key.pb.h"
15 #include "chromeos/dbus/cryptohome/rpc.pb.h"
263 // The cryptohome::SerializedInstallAttributes protobuf lives in
464 const cryptohome::AccountIdentifier& id,
465 const cryptohome::AuthorizationRequest& auth,
466 const cryptohome::GetKeyDataRequest& request,
468 cryptohome::BaseReply reply;
469 reply.MutableExtension(cryptohome::GetKeyDataReply::reply);
474 const cryptohome::AccountIdentifier& id,
475 const cryptohome
[all...]
/external/chromium_org/chrome/browser/chromeos/login/easy_unlock/
H A Deasy_unlock_get_keys_operation.cc37 cryptohome::Identification id(canonicalized);
38 cryptohome::HomedirMethods::GetInstance()->GetKeyDataEx(
48 cryptohome::MountError return_code,
49 const std::vector<cryptohome::KeyDefinition>& key_definitions) {
53 if (return_code == cryptohome::MOUNT_ERROR_NONE ||
54 return_code == cryptohome::MOUNT_ERROR_KEY_FAILURE) {
66 const std::vector<cryptohome::KeyDefinition::ProviderData>& provider_data =
71 const cryptohome::KeyDefinition::ProviderData& entry = provider_data[i];
H A Deasy_unlock_remove_keys_operation.cc9 #include "chromeos/cryptohome/homedir_methods.h"
10 #include "chromeos/cryptohome/system_salt_getter.h"
52 cryptohome::Identification id(canonicalized);
54 cryptohome::Authorization auth(auth_key->GetSecret(), auth_key->GetLabel());
57 cryptohome::HomedirMethods::GetInstance()->RemoveKeyEx(
67 cryptohome::MountError return_code) {
76 if (return_code == cryptohome::MOUNT_ERROR_KEY_FAILURE) {
H A Deasy_unlock_get_keys_operation.h12 #include "chromeos/cryptohome/homedir_methods.h"
33 cryptohome::MountError return_code,
34 const std::vector<cryptohome::KeyDefinition>& key_definitions);
/external/chromium_org/chromeos/attestation/
H A Dattestation_flow_unittest.cc9 #include "chromeos/cryptohome/mock_async_method_caller.h"
44 void AsyncCallbackFalse(cryptohome::AsyncMethodCaller::Callback callback) {
45 callback.Run(false, cryptohome::MOUNT_ERROR_NONE);
84 StrictMock<cryptohome::MockAsyncMethodCaller> async_caller;
85 async_caller.SetUp(true, cryptohome::MOUNT_ERROR_NONE);
94 cryptohome::MockAsyncMethodCaller::kFakeAttestationEnrollRequest,
99 cryptohome::MockAsyncMethodCaller::kFakeAttestationEnrollRequest;
115 cryptohome::MockAsyncMethodCaller::kFakeAttestationCertRequest,
120 cryptohome::MockAsyncMethodCaller::kFakeAttestationCertRequest;
134 cryptohome
[all...]
/external/chromium_org/chrome/browser/chromeos/login/auth/
H A Dcryptohome_authenticator_unittest.cc31 #include "chromeos/cryptohome/cryptohome_parameters.h"
32 #include "chromeos/cryptohome/homedir_methods.h"
33 #include "chromeos/cryptohome/mock_async_method_caller.h"
34 #include "chromeos/cryptohome/mock_homedir_methods.h"
35 #include "chromeos/cryptohome/system_salt_getter.h"
37 #include "chromeos/dbus/cryptohome/rpc.pb.h"
159 mock_caller_ = new cryptohome::MockAsyncMethodCaller;
160 cryptohome::AsyncMethodCaller::InitializeForTesting(mock_caller_);
161 mock_homedir_methods_ = new cryptohome::MockHomedirMethods;
162 mock_homedir_methods_->SetUp(true, cryptohome
[all...]
/external/chromium_org/chromeos/cryptohome/
H A Dhomedir_methods.cc5 #include "chromeos/cryptohome/homedir_methods.h"
9 #include "chromeos/dbus/cryptohome/key.pb.h"
10 #include "chromeos/dbus/cryptohome/rpc.pb.h"
23 namespace cryptohome { namespace
96 cryptohome::AccountIdentifier* id_proto) {
102 cryptohome::AuthorizationRequest* auth_proto) {
182 cryptohome::AccountIdentifier id_proto;
183 cryptohome::AuthorizationRequest kEmptyAuthProto;
184 cryptohome::GetKeyDataRequest request;
201 cryptohome
[all...]
H A Dhomedir_methods_unittest.cc5 #include "chromeos/cryptohome/homedir_methods.h"
11 #include "chromeos/dbus/cryptohome/rpc.pb.h"
23 namespace cryptohome { namespace
67 cryptohome::BaseReply cryptohome_reply_;
120 const cryptohome::AuthorizationRequest expected_auth;
121 cryptohome::GetKeyDataRequest expected_request;
135 cryptohome::GetKeyDataReply* reply =
136 cryptohome_reply_.MutableExtension(cryptohome::GetKeyDataReply::reply);
185 } // namespace cryptohome
/external/chromium_org/chrome/browser/extensions/api/enterprise_platform_keys_private/
H A Denterprise_platform_keys_private_api.h27 namespace cryptohome { namespace
62 cryptohome::AsyncMethodCaller* async_caller,
103 cryptohome::AsyncMethodCaller* async_caller_;
156 cryptohome::AsyncMethodCaller* async_caller,
191 cryptohome::AsyncMethodCaller* async_caller,
217 cryptohome::MountError return_code);

Completed in 3354 milliseconds

123