Home
last modified time | relevance | path

Searched refs:op_handle (Results 1 – 23 of 23) sorted by relevance

/system/keymaster/android_keymaster/
Doperation_table.cpp37 Operation* OperationTable::Find(keymaster_operation_handle_t op_handle) { in Find() argument
38 if (op_handle == 0) return nullptr; in Find()
43 if (table_[i] && table_[i]->operation_handle() == op_handle) return table_[i].get(); in Find()
48 bool OperationTable::Delete(keymaster_operation_handle_t op_handle) { in Delete() argument
52 if (table_[i] && table_[i]->operation_handle() == op_handle) { in Delete()
Dkeymaster_enforcement.cpp120 keymaster_operation_handle_t op_handle, in AuthorizeOperation() argument
142 return AuthorizeUpdateOrFinish(auth_set, operation_params, op_handle); in AuthorizeOperation()
150 keymaster_operation_handle_t op_handle) { in AuthorizeUpdateOrFinish() argument
188 auth_timeout_index, op_handle, false /* is_begin_operation */)) in AuthorizeUpdateOrFinish()
485 const keymaster_operation_handle_t op_handle, in AuthTokenMatches() argument
494 if (auth_timeout_index == -1 && op_handle && op_handle != auth_token->challenge) { in AuthTokenMatches()
495 LOG_E("Auth token has the challenge %llu, need %llu", auth_token->challenge, op_handle); in AuthTokenMatches()
Dandroid_keymaster.cpp540 response->op_handle = 0; in BeginOperation()
579 response->op_handle = operation->operation_handle(); in BeginOperation()
588 Operation* operation = operation_table_->Find(request.op_handle); in UpdateOperation()
597 operation_table_->Delete(request.op_handle); in UpdateOperation()
602 operation_table_->Delete(request.op_handle); in UpdateOperation()
611 request.additional_params, request.op_handle, false /* is_begin_operation */); in UpdateOperation()
613 operation_table_->Delete(request.op_handle); in UpdateOperation()
623 operation_table_->Delete(request.op_handle); in UpdateOperation()
632 Operation* operation = operation_table_->Find(request.op_handle); in FinishOperation()
641 operation_table_->Delete(request.op_handle); in FinishOperation()
[all …]
Dandroid_keymaster_messages.cpp372 return sizeof(op_handle); in NonErrorSerializedSize()
374 return sizeof(op_handle) + output_params.SerializedSize(); in NonErrorSerializedSize()
378 buf = append_uint64_to_buf(buf, end, op_handle); in NonErrorSerialize()
384 bool retval = copy_uint64_from_buf(buf_ptr, end, &op_handle); in NonErrorDeserialize()
391 return sizeof(op_handle) + input.SerializedSize(); in SerializedSize()
393 return sizeof(op_handle) + input.SerializedSize() + additional_params.SerializedSize(); in SerializedSize()
397 buf = append_uint64_to_buf(buf, end, op_handle); in Serialize()
404 bool retval = copy_uint64_from_buf(buf_ptr, end, &op_handle) && input.Deserialize(buf_ptr, end); in Deserialize()
457 size += sizeof(op_handle) + signature.SerializedSize(); in SerializedSize()
468 buf = append_uint64_to_buf(buf, end, op_handle); in Serialize()
[all …]
/system/keymaster/include/keymaster/
Dkeymaster_enforcement.h58 keymaster_operation_handle_t op_handle,
77 keymaster_operation_handle_t op_handle) { in AuthorizeUpdate() argument
78 return AuthorizeUpdateOrFinish(auth_set, operation_params, op_handle); in AuthorizeUpdate()
88 keymaster_operation_handle_t op_handle) { in AuthorizeFinish() argument
89 return AuthorizeUpdateOrFinish(auth_set, operation_params, op_handle); in AuthorizeFinish()
211 keymaster_operation_handle_t op_handle);
220 const keymaster_operation_handle_t op_handle,
Doperation_table.h34 Operation* Find(keymaster_operation_handle_t op_handle);
Dandroid_keymaster.h101 bool has_operation(keymaster_operation_handle_t op_handle) const;
Dandroid_keymaster_messages.h482 keymaster_operation_handle_t op_handle; member
493 keymaster_operation_handle_t op_handle; member
517 keymaster_operation_handle_t op_handle; member
539 return append_uint64_to_buf(buf, end, op_handle); in Serialize()
542 return copy_uint64_from_buf(buf_ptr, end, &op_handle); in Deserialize()
545 keymaster_operation_handle_t op_handle; member
/system/keymaster/ng/
DAndroidKeyMintOperation.cpp56 request.op_handle = opHandle_; in updateAad()
73 request.op_handle = opHandle_; in update()
102 request.op_handle = opHandle_; in finish()
118 request.op_handle = opHandle_; in abort()
DAndroidKeymaster3Device.cpp439 _hidl_cb(legacy_enum_conversion(response.error), resultParams, response.op_handle); in begin()
447 request.op_handle = operationHandle; in update()
472 request.op_handle = operationHandle; in finish()
492 request.op_handle = operationHandle; in abort()
DAndroidKeymaster4Device.cpp507 _hidl_cb(legacy_enum_conversion(response.error), resultParams, response.op_handle); in begin()
518 request.op_handle = operationHandle; in update()
549 request.op_handle = operationHandle; in finish()
574 request.op_handle = operationHandle; in abort()
DAndroidKeyMintDevice.cpp416 result->challenge = response.op_handle; in begin()
418 ndk::SharedRefBase::make<AndroidKeyMintOperation>(impl_, response.op_handle); in begin()
/system/core/trusty/keymaster/keymint/
DTrustyKeyMintOperation.cpp58 request.op_handle = opHandle_; in updateAad()
74 request.op_handle = opHandle_; in update()
133 request.op_handle = opHandle_; in finish()
170 request.op_handle = opHandle_; in abort()
DTrustyKeyMintDevice.cpp285 result->challenge = response.op_handle; in begin()
286 result->operation = ndk::SharedRefBase::make<TrustyKeyMintOperation>(impl_, response.op_handle); in begin()
/system/keymaster/include/keymaster/legacy_support/
Dkeymaster1_engine.h58 : op_handle(0), begin_params(params), key_material(blob), error(KM_ERROR_OK), in KeyData()
61 keymaster_operation_handle_t op_handle; member
/system/keymaster/legacy_support/
Dkeymaster1_engine.cpp256 if (key_data->op_handle == 0) return KM_ERROR_UNKNOWN_ERROR; in Keymaster1Finish()
262 device()->update(device(), key_data->op_handle, &key_data->finish_params, &input, in Keymaster1Finish()
266 return device()->finish(device(), key_data->op_handle, &key_data->finish_params, in Keymaster1Finish()
Decdsa_keymaster1_operation.cpp65 key_data->op_handle = operation_handle_; in PrepareFinish()
Drsa_keymaster1_operation.cpp86 key_data->op_handle = operation_handle_; in PrepareFinish()
/system/core/trusty/keymaster/3.0/
DTrustyKeymaster3Device.cpp390 _hidl_cb(legacy_enum_conversion(response.error), resultParams, response.op_handle); in begin()
403 request.op_handle = operationHandle; in update()
435 request.op_handle = operationHandle; in finish()
455 request.op_handle = operationHandle; in abort()
/system/keymaster/tests/
Dandroid_keymaster_messages_test.cpp297 msg.op_handle = 0xDEADBEEF; in TEST()
316 EXPECT_EQ(0xDEADBEEF, deserialized->op_handle); in TEST()
338 msg.op_handle = 0xDEADBEEF; in TEST()
348 msg.op_handle = 0xDEADBEEF; in TEST()
420 msg.op_handle = 0xDEADBEEF; in TEST()
440 EXPECT_EQ(0xDEADBEEF, deserialized->op_handle); in TEST()
Dandroid_keymaster_test.cpp1640 op_handle_ = rsp.op_handle; in BeginOperation()
1647 req.op_handle = op_handle_; in FinishOperation()
/system/core/trusty/keymaster/4.0/
DTrustyKeymaster4Device.cpp532 _hidl_cb(legacy_enum_conversion(response.error), resultParams, response.op_handle); in begin()
550 request.op_handle = operationHandle; in update()
586 request.op_handle = operationHandle; in finish()
606 request.op_handle = operationHandle; in abort()
/system/keymaster/contexts/
Dsoft_keymaster_device.cpp1169 *operation_handle = response.op_handle; in begin()
1219 request.op_handle = operation_handle; in update()
1292 request.op_handle = operation_handle; in finish()
1438 request.op_handle = operation_handle; in finish()
1481 request.op_handle = operation_handle; in abort()