Home
last modified time | relevance | path

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

12

/aosp12/system/keymaster/include/keymaster/
H A 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,
H A Doperation_table.h34 Operation* Find(keymaster_operation_handle_t op_handle);
H A Dandroid_keymaster.h101 bool has_operation(keymaster_operation_handle_t op_handle) const;
H A 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
/aosp12/system/keymaster/android_keymaster/
H A 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()
H A Dandroid_keymaster.cpp540 response->op_handle = 0; in BeginOperation()
579 response->op_handle = operation->operation_handle(); in BeginOperation()
597 operation_table_->Delete(request.op_handle); in UpdateOperation()
602 operation_table_->Delete(request.op_handle); in UpdateOperation()
613 operation_table_->Delete(request.op_handle); in UpdateOperation()
623 operation_table_->Delete(request.op_handle); in UpdateOperation()
641 operation_table_->Delete(request.op_handle); in FinishOperation()
646 operation_table_->Delete(request.op_handle); in FinishOperation()
665 operation_table_->Delete(request.op_handle); in FinishOperation()
701 operation_table_->Delete(request.op_handle); in FinishOperation()
[all …]
H A 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()
H A 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 …]
/aosp12/system/keymaster/ng/
H A 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()
H A 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()
H A 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()
H A DAndroidKeyMintDevice.cpp416 result->challenge = response.op_handle; in begin()
418 ndk::SharedRefBase::make<AndroidKeyMintOperation>(impl_, response.op_handle); in begin()
/aosp12/system/core/trusty/keymaster/keymint/
H A 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()
H A DTrustyKeyMintDevice.cpp285 result->challenge = response.op_handle; in begin()
286 result->operation = ndk::SharedRefBase::make<TrustyKeyMintOperation>(impl_, response.op_handle); in begin()
/aosp12/hardware/interfaces/keymaster/4.0/vts/performance/
H A DBenchmark.cpp246 OperationHandle op_handle; in Begin() local
254 op_handle = hidl_op_handle; in Begin()
258 keymaster_->abort(op_handle); in Begin()
261 return op_handle; in Begin()
264 optional<string> ProcessMessage(const OperationHandle& op_handle, const string& message, in ProcessMessage() argument
274 ->update(op_handle, in_params.hidl_data(), in ProcessMessage()
287 keymaster_->abort(op_handle); in ProcessMessage()
293 ->finish(op_handle, in_params.hidl_data(), in ProcessMessage()
305 keymaster_->abort(op_handle); in ProcessMessage()
/aosp12/hardware/interfaces/keymaster/4.0/vts/functional/
H A DKeymasterHidlTest.cpp249 OperationHandle* op_handle) { in Begin() argument
252 OperationHandle saved_handle = *op_handle; in Begin()
259 *op_handle = hidl_op_handle; in Begin()
264 *op_handle = saved_handle; in Begin()
284 ErrorCode KeymasterHidlTest::Update(OperationHandle op_handle, const AuthorizationSet& in_params, in Update() argument
290 ->update(op_handle, in_params.hidl_data(), HidlBuf(input), HardwareAuthToken(), in Update()
313 ErrorCode KeymasterHidlTest::Finish(OperationHandle op_handle, const AuthorizationSet& in_params, in Finish() argument
320 ->finish(op_handle, in_params.hidl_data(), HidlBuf(input), HidlBuf(signature), in Finish()
360 ErrorCode KeymasterHidlTest::Abort(OperationHandle op_handle) { in Abort() argument
362 auto retval = keymaster_->abort(op_handle); in Abort()
H A DKeymasterHidlTest.h134 AuthorizationSet* out_params, OperationHandle* op_handle);
139 ErrorCode Update(OperationHandle op_handle, const AuthorizationSet& in_params,
144 ErrorCode Finish(OperationHandle op_handle, const AuthorizationSet& in_params,
151 ErrorCode Abort(OperationHandle op_handle);
/aosp12/system/keymaster/include/keymaster/legacy_support/
H A 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
/aosp12/system/core/trusty/keymaster/3.0/
H A 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()
/aosp12/system/keymaster/legacy_support/
H A 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()
H A Decdsa_keymaster1_operation.cpp65 key_data->op_handle = operation_handle_; in PrepareFinish()
H A Drsa_keymaster1_operation.cpp86 key_data->op_handle = operation_handle_; in PrepareFinish()
/aosp12/system/keymaster/tests/
H A 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()
/aosp12/system/core/trusty/keymaster/4.0/
H A 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()
/aosp12/system/keymaster/contexts/
H A 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()

12