Searched defs:op_handle (Results 1 - 10 of 10) sorted by relevance

/system/keymaster/android_keymaster/
H A Doperation_table.cpp40 Operation* OperationTable::Find(keymaster_operation_handle_t op_handle) { argument
41 if (op_handle == 0)
48 if (table_[i] && table_[i]->operation_handle() == op_handle)
54 bool OperationTable::Delete(keymaster_operation_handle_t op_handle) { argument
59 if (table_[i] && table_[i]->operation_handle() == op_handle) {
H A Dkeymaster_enforcement.cpp120 keymaster_operation_handle_t op_handle,
140 return AuthorizeUpdateOrFinish(auth_set, operation_params, op_handle);
148 keymaster_operation_handle_t op_handle) {
180 auth_timeout_index, op_handle, false /* is_begin_operation */))
273 auth_type_index, auth_timeout_index, 0 /* op_handle */,
421 const keymaster_operation_handle_t op_handle,
451 if (auth_timeout_index == -1 && op_handle && op_handle != auth_token.challenge) {
452 LOG_E("Auth token has the challenge %llu, need %llu", auth_token.challenge, op_handle);
116 AuthorizeOperation(const keymaster_purpose_t purpose, const km_id_t keyid, const AuthProxy& auth_set, const AuthorizationSet& operation_params, keymaster_operation_handle_t op_handle, bool is_begin_operation) argument
146 AuthorizeUpdateOrFinish(const AuthProxy& auth_set, const AuthorizationSet& operation_params, keymaster_operation_handle_t op_handle) argument
417 AuthTokenMatches(const AuthProxy& auth_set, const AuthorizationSet& operation_params, const uint64_t user_secure_id, const int auth_type_index, const int auth_timeout_index, const keymaster_operation_handle_t op_handle, bool is_begin_operation) const argument
/system/keymaster/include/keymaster/
H A Dkeymaster_enforcement.h58 keymaster_operation_handle_t op_handle,
77 keymaster_operation_handle_t op_handle) {
78 return AuthorizeUpdateOrFinish(auth_set, operation_params, op_handle);
88 keymaster_operation_handle_t op_handle) {
89 return AuthorizeUpdateOrFinish(auth_set, operation_params, op_handle);
185 keymaster_operation_handle_t op_handle);
192 const keymaster_operation_handle_t op_handle,
75 AuthorizeUpdate(const AuthProxy& auth_set, const AuthorizationSet& operation_params, keymaster_operation_handle_t op_handle) argument
86 AuthorizeFinish(const AuthProxy& auth_set, const AuthorizationSet& operation_params, keymaster_operation_handle_t op_handle) argument
H A Dandroid_keymaster_messages.h356 keymaster_operation_handle_t op_handle; member in struct:keymaster::BeginOperationResponse
367 keymaster_operation_handle_t op_handle; member in struct:keymaster::UpdateOperationRequest
392 keymaster_operation_handle_t op_handle; member in struct:keymaster::FinishOperationRequest
414 return append_uint64_to_buf(buf, end, op_handle);
417 return copy_uint64_from_buf(buf_ptr, end, &op_handle);
420 keymaster_operation_handle_t op_handle; member in struct:keymaster::AbortOperationRequest
/system/security/keystore/
H A Dkeymaster_enforcement.h55 const HardwareAuthToken& auth_token, uint64_t op_handle,
74 uint64_t op_handle) {
75 return AuthorizeUpdateOrFinish(auth_set, auth_token, op_handle);
84 uint64_t op_handle) {
85 return AuthorizeUpdateOrFinish(auth_set, auth_token, op_handle);
152 const HardwareAuthToken& auth_token, uint64_t op_handle);
158 const int auth_timeout_index, const uint64_t op_handle,
73 AuthorizeUpdate(const AuthorizationSet& auth_set, const HardwareAuthToken& auth_token, uint64_t op_handle) argument
83 AuthorizeFinish(const AuthorizationSet& auth_set, const HardwareAuthToken& auth_token, uint64_t op_handle) argument
H A Dauth_token_table.cpp114 KeyPurpose purpose, uint64_t op_handle,
125 return FindAuthPerOpAuthorization(key_sids, auth_type, op_handle, found);
132 HardwareAuthenticatorType auth_type, uint64_t op_handle,
134 if (op_handle == 0) return OP_HANDLE_REQUIRED;
137 entries_, [&](Entry& e) { return e.token().challenge == op_handle && !e.completed(); });
201 void AuthTokenTable::MarkCompleted(const uint64_t op_handle) { argument
202 auto found = find_if(entries_, [&](Entry& e) { return e.token().challenge == op_handle; });
113 FindAuthorization(const AuthorizationSet& key_info, KeyPurpose purpose, uint64_t op_handle, const HardwareAuthToken** found) argument
131 FindAuthPerOpAuthorization(const std::vector<uint64_t>& sids, HardwareAuthenticatorType auth_type, uint64_t op_handle, const HardwareAuthToken** found) argument
H A Dkeymaster_enforcement.cpp121 uint64_t op_handle, bool is_begin_operation) {
141 return AuthorizeUpdateOrFinish(auth_set, auth_token, op_handle);
148 uint64_t op_handle) {
182 auth_timeout_index, op_handle, false /* is_begin_operation */))
281 auth_type_index, auth_timeout_index, 0 /* op_handle */,
493 const uint64_t op_handle,
503 if (auth_timeout_index == -1 && op_handle && op_handle != auth_token.challenge) {
505 op_handle);
117 AuthorizeOperation(const KeyPurpose purpose, const km_id_t keyid, const AuthorizationSet& auth_set, const AuthorizationSet& operation_params, const HardwareAuthToken& auth_token, uint64_t op_handle, bool is_begin_operation) argument
146 AuthorizeUpdateOrFinish(const AuthorizationSet& auth_set, const HardwareAuthToken& auth_token, uint64_t op_handle) argument
489 AuthTokenMatches(const AuthorizationSet& auth_set, const HardwareAuthToken& auth_token, const uint64_t user_secure_id, const int auth_type_index, const int auth_timeout_index, const uint64_t op_handle, bool is_begin_operation) const argument
/system/keymaster/include/keymaster/legacy_support/
H A Dkeymaster1_engine.h60 : op_handle(0), begin_params(params), key_material(blob), error(KM_ERROR_OK),
63 keymaster_operation_handle_t op_handle; member in struct:keymaster::Keymaster1Engine::KeyData
/system/core/trusty/keymaster/
H A Dtrusty_keymaster_main.cpp146 keymaster_operation_handle_t op_handle; local
147 keymaster_error_t error = device->begin(purpose, key, &param_set, nullptr, &op_handle);
153 error = device->update(op_handle, nullptr, input, &input_consumed, nullptr, nullptr);
161 device->abort(op_handle);
164 error = device->finish(op_handle, nullptr, nullptr, signature, nullptr, output);
/system/vold/tests/
H A DCryptfsScryptHidlizationEquivalence_test.cpp303 keymaster_operation_handle_t op_handle; local
306 &op_handle);
312 &op_handle);
322 error = keymaster1_dev->update(keymaster1_dev, op_handle, NULL /* in_params */,
333 keymaster1_dev->abort(keymaster1_dev, op_handle);
339 error = keymaster1_dev->finish(keymaster1_dev, op_handle, NULL /* in_params */,

Completed in 139 milliseconds