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

/system/keymaster/
H A Doperation_table.cpp35 keymaster_operation_handle_t* op_handle) {
43 keymaster_error_t error = operation->CreateOperationHandle(context, op_handle);
46 if (*op_handle == 0) {
55 table_[i].handle = *op_handle;
62 Operation* OperationTable::Find(keymaster_operation_handle_t op_handle) { argument
63 if (op_handle == 0)
70 if (table_[i].handle == op_handle)
76 bool OperationTable::Delete(keymaster_operation_handle_t op_handle) { argument
81 if (table_[i].handle == op_handle) {
34 Add(Operation* operation, const KeymasterContext& context, keymaster_operation_handle_t* op_handle) argument
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
H A Doperation.cpp139 keymaster_operation_handle_t* op_handle) {
140 return context.GenerateRandom(reinterpret_cast<uint8_t*>(op_handle), sizeof(*op_handle));
138 CreateOperationHandle(const KeymasterContext& context, keymaster_operation_handle_t* op_handle) argument
H A Dkeymaster_enforcement.cpp122 keymaster_operation_handle_t op_handle,
141 return AuthorizeUpdateOrFinish(auth_set, operation_params, op_handle);
149 keymaster_operation_handle_t op_handle) {
181 auth_timeout_index, op_handle, false /* is_begin_operation */))
273 auth_type_index, auth_timeout_index, 0 /* op_handle */,
444 const keymaster_operation_handle_t op_handle,
474 if (auth_timeout_index == -1 && op_handle && op_handle != auth_token.challenge) {
475 LOG_E("Auth token has the challenge %llu, need %llu", auth_token.challenge, op_handle);
118 AuthorizeOperation(const keymaster_purpose_t purpose, const km_id_t keyid, const AuthorizationSet& auth_set, const AuthorizationSet& operation_params, keymaster_operation_handle_t op_handle, bool is_begin_operation) argument
147 AuthorizeUpdateOrFinish(const AuthorizationSet& auth_set, const AuthorizationSet& operation_params, keymaster_operation_handle_t op_handle) argument
440 AuthTokenMatches(const AuthorizationSet& 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.h55 keymaster_operation_handle_t op_handle,
74 keymaster_operation_handle_t op_handle) {
75 return AuthorizeUpdateOrFinish(auth_set, operation_params, op_handle);
85 keymaster_operation_handle_t op_handle) {
86 return AuthorizeUpdateOrFinish(auth_set, operation_params, op_handle);
149 keymaster_operation_handle_t op_handle);
156 const keymaster_operation_handle_t op_handle,
72 AuthorizeUpdate(const AuthorizationSet& auth_set, const AuthorizationSet& operation_params, keymaster_operation_handle_t op_handle) argument
83 AuthorizeFinish(const AuthorizationSet& auth_set, const AuthorizationSet& operation_params, keymaster_operation_handle_t op_handle) argument
H A Dandroid_keymaster_messages.h349 keymaster_operation_handle_t op_handle; member in struct:keymaster::BeginOperationResponse
360 keymaster_operation_handle_t op_handle; member in struct:keymaster::UpdateOperationRequest
385 keymaster_operation_handle_t op_handle; member in struct:keymaster::FinishOperationRequest
407 return append_uint64_to_buf(buf, end, op_handle);
410 return copy_uint64_from_buf(buf_ptr, end, &op_handle);
413 keymaster_operation_handle_t op_handle; member in struct:keymaster::AbortOperationRequest
/system/security/keystore/
H A Dkeymaster_enforcement.h54 const AuthorizationSet& operation_params, uint64_t op_handle,
72 const AuthorizationSet& operation_params, uint64_t op_handle) {
73 return AuthorizeUpdateOrFinish(auth_set, operation_params, op_handle);
82 const AuthorizationSet& operation_params, uint64_t op_handle) {
83 return AuthorizeUpdateOrFinish(auth_set, operation_params, op_handle);
145 const AuthorizationSet& operation_params, uint64_t op_handle);
152 const uint64_t op_handle, bool is_begin_operation) const;
71 AuthorizeUpdate(const AuthorizationSet& auth_set, const AuthorizationSet& operation_params, uint64_t op_handle) argument
81 AuthorizeFinish(const AuthorizationSet& auth_set, const AuthorizationSet& operation_params, uint64_t op_handle) argument
H A Dauth_token_table.cpp117 KeyPurpose purpose, uint64_t op_handle,
128 return FindAuthPerOpAuthorization(key_sids, auth_type, op_handle, found);
135 HardwareAuthenticatorType auth_type, uint64_t op_handle,
137 if (op_handle == 0) return OP_HANDLE_REQUIRED;
140 entries_, [&](Entry& e) { return e.token()->challenge == op_handle && !e.completed(); });
204 void AuthTokenTable::MarkCompleted(const uint64_t op_handle) { argument
205 auto found = find_if(entries_, [&](Entry& e) { return e.token()->challenge == op_handle; });
116 FindAuthorization(const AuthorizationSet& key_info, KeyPurpose purpose, uint64_t op_handle, const HardwareAuthToken** found) argument
134 FindAuthPerOpAuthorization(const std::vector<uint64_t>& sids, HardwareAuthenticatorType auth_type, uint64_t op_handle, const HardwareAuthToken** found) argument
H A Dkeymaster_enforcement.cpp118 uint64_t op_handle, bool is_begin_operation) {
138 return AuthorizeUpdateOrFinish(auth_set, operation_params, op_handle);
145 uint64_t op_handle) {
178 auth_type_index, auth_timeout_index, op_handle,
275 auth_timeout_index, 0 /* op_handle */,
469 const uint64_t op_handle,
499 if (auth_timeout_index == -1 && op_handle && op_handle != auth_token.challenge) {
501 op_handle);
115 AuthorizeOperation(const KeyPurpose purpose, const km_id_t keyid, const AuthorizationSet& auth_set, const AuthorizationSet& operation_params, uint64_t op_handle, bool is_begin_operation) argument
143 AuthorizeUpdateOrFinish(const AuthorizationSet& auth_set, const AuthorizationSet& operation_params, uint64_t op_handle) argument
465 AuthTokenMatches(const AuthorizationSet& auth_set, const AuthorizationSet& operation_params, 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/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 130 milliseconds