/system/keymaster/android_keymaster/ |
D | operation_table.cpp | 37 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()
|
D | keymaster_enforcement.cpp | 120 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()
|
D | android_keymaster.cpp | 540 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 …]
|
D | android_keymaster_messages.cpp | 372 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/ |
D | keymaster_enforcement.h | 58 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,
|
D | operation_table.h | 34 Operation* Find(keymaster_operation_handle_t op_handle);
|
D | android_keymaster.h | 101 bool has_operation(keymaster_operation_handle_t op_handle) const;
|
D | android_keymaster_messages.h | 482 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/ |
D | AndroidKeyMintOperation.cpp | 56 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()
|
D | AndroidKeymaster3Device.cpp | 439 _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()
|
D | AndroidKeymaster4Device.cpp | 507 _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()
|
D | AndroidKeyMintDevice.cpp | 416 result->challenge = response.op_handle; in begin() 418 ndk::SharedRefBase::make<AndroidKeyMintOperation>(impl_, response.op_handle); in begin()
|
/system/core/trusty/keymaster/keymint/ |
D | TrustyKeyMintOperation.cpp | 58 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()
|
D | TrustyKeyMintDevice.cpp | 285 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/ |
D | keymaster1_engine.h | 58 : 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/ |
D | keymaster1_engine.cpp | 256 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()
|
D | ecdsa_keymaster1_operation.cpp | 65 key_data->op_handle = operation_handle_; in PrepareFinish()
|
D | rsa_keymaster1_operation.cpp | 86 key_data->op_handle = operation_handle_; in PrepareFinish()
|
/system/core/trusty/keymaster/3.0/ |
D | TrustyKeymaster3Device.cpp | 390 _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/ |
D | android_keymaster_messages_test.cpp | 297 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()
|
D | android_keymaster_test.cpp | 1640 op_handle_ = rsp.op_handle; in BeginOperation() 1647 req.op_handle = op_handle_; in FinishOperation()
|
/system/core/trusty/keymaster/4.0/ |
D | TrustyKeymaster4Device.cpp | 532 _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/ |
D | soft_keymaster_device.cpp | 1169 *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()
|