/system/keymaster/android_keymaster/ |
D | operation_table.cpp | 40 Operation* OperationTable::Find(keymaster_operation_handle_t op_handle) { in Find() argument 41 if (op_handle == 0) in Find() 48 if (table_[i] && table_[i]->operation_handle() == op_handle) in Find() 54 bool OperationTable::Delete(keymaster_operation_handle_t op_handle) { in Delete() argument 59 if (table_[i] && table_[i]->operation_handle() == op_handle) { in Delete()
|
D | android_keymaster.cpp | 265 response->op_handle = 0; in BeginOperation() 302 response->op_handle = operation->operation_handle(); in BeginOperation() 312 Operation* operation = operation_table_->Find(request.op_handle); in UpdateOperation() 319 request.additional_params, request.op_handle, false /* is_begin_operation */); in UpdateOperation() 321 operation_table_->Delete(request.op_handle); in UpdateOperation() 331 operation_table_->Delete(request.op_handle); in UpdateOperation() 341 Operation* operation = operation_table_->Find(request.op_handle); in FinishOperation() 348 request.additional_params, request.op_handle, false /* is_begin_operation */); in FinishOperation() 350 operation_table_->Delete(request.op_handle); in FinishOperation() 357 operation_table_->Delete(request.op_handle); in FinishOperation() [all …]
|
D | keymaster_enforcement.cpp | 120 keymaster_operation_handle_t op_handle, in AuthorizeOperation() argument 140 return AuthorizeUpdateOrFinish(auth_set, operation_params, op_handle); in AuthorizeOperation() 148 keymaster_operation_handle_t op_handle) { in AuthorizeUpdateOrFinish() argument 196 auth_timeout_index, op_handle, false /* is_begin_operation */)) in AuthorizeUpdateOrFinish() 488 const keymaster_operation_handle_t op_handle, in AuthTokenMatches() argument 497 if (auth_timeout_index == -1 && op_handle && op_handle != auth_token->challenge) { in AuthTokenMatches() 498 LOG_E("Auth token has the challenge %llu, need %llu", auth_token->challenge, op_handle); in AuthTokenMatches()
|
D | android_keymaster_messages.cpp | 171 return sizeof(op_handle); in NonErrorSerializedSize() 173 return sizeof(op_handle) + output_params.SerializedSize(); in NonErrorSerializedSize() 177 buf = append_uint64_to_buf(buf, end, op_handle); in NonErrorSerialize() 184 bool retval = copy_uint64_from_buf(buf_ptr, end, &op_handle); in NonErrorDeserialize() 192 return sizeof(op_handle) + input.SerializedSize(); in SerializedSize() 194 return sizeof(op_handle) + input.SerializedSize() + additional_params.SerializedSize(); in SerializedSize() 198 buf = append_uint64_to_buf(buf, end, op_handle); in Serialize() 206 bool retval = copy_uint64_from_buf(buf_ptr, end, &op_handle) && input.Deserialize(buf_ptr, end); in Deserialize() 262 size += sizeof(op_handle) + signature.SerializedSize(); in SerializedSize() 273 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() 206 keymaster_operation_handle_t op_handle); 215 const keymaster_operation_handle_t op_handle,
|
D | operation_table.h | 37 Operation* Find(keymaster_operation_handle_t op_handle);
|
D | android_keymaster.h | 93 bool has_operation(keymaster_operation_handle_t op_handle) const;
|
D | android_keymaster_messages.h | 359 keymaster_operation_handle_t op_handle; member 370 keymaster_operation_handle_t op_handle; member 395 keymaster_operation_handle_t op_handle; member 417 return append_uint64_to_buf(buf, end, op_handle); in Serialize() 420 return copy_uint64_from_buf(buf_ptr, end, &op_handle); in Deserialize() 423 keymaster_operation_handle_t op_handle; member
|
/system/security/keystore/ |
D | keymaster_enforcement.h | 101 const HardwareAuthToken& auth_token, uint64_t op_handle, 120 uint64_t op_handle) { in AuthorizeUpdate() argument 121 return AuthorizeUpdateOrFinish(auth_set, auth_token, op_handle); in AuthorizeUpdate() 130 uint64_t op_handle) { in AuthorizeFinish() argument 131 return AuthorizeUpdateOrFinish(auth_set, auth_token, op_handle); in AuthorizeFinish() 198 const HardwareAuthToken& auth_token, uint64_t op_handle); 204 const int auth_timeout_index, const uint64_t op_handle,
|
D | auth_token_table.cpp | 116 uint64_t op_handle) { in FindAuthorization() argument 129 return FindAuthPerOpAuthorization(key_sids, auth_type, op_handle); in FindAuthorization() 135 const std::vector<uint64_t>& sids, HardwareAuthenticatorType auth_type, uint64_t op_handle) { in FindAuthPerOpAuthorization() argument 136 if (op_handle == 0) return {OP_HANDLE_REQUIRED, {}}; in FindAuthPerOpAuthorization() 139 entries_, [&](Entry& e) { return e.token().challenge == op_handle && !e.completed(); }); in FindAuthPerOpAuthorization() 262 void AuthTokenTable::MarkCompleted(const uint64_t op_handle) { in MarkCompleted() argument 265 auto found = find_if(entries_, [&](Entry& e) { return e.token().challenge == op_handle; }); in MarkCompleted()
|
D | auth_token_table.h | 75 KeyPurpose purpose, uint64_t op_handle); 85 void MarkCompleted(const uint64_t op_handle); 156 HardwareAuthenticatorType auth_type, uint64_t op_handle);
|
D | keymaster_enforcement.cpp | 76 uint64_t op_handle, bool is_begin_operation) { in AuthorizeOperation() argument 96 return AuthorizeUpdateOrFinish(auth_set, auth_token, op_handle); in AuthorizeOperation() 103 uint64_t op_handle) { in AuthorizeUpdateOrFinish() argument 137 auth_timeout_index, op_handle, false /* is_begin_operation */)) in AuthorizeUpdateOrFinish() 435 const uint64_t op_handle, in AuthTokenMatches() argument 445 if (auth_timeout_index == -1 && op_handle && op_handle != auth_token.challenge) { in AuthTokenMatches() 447 op_handle); in AuthTokenMatches()
|
/system/keymaster/include/keymaster/legacy_support/ |
D | keymaster1_engine.h | 60 : op_handle(0), begin_params(params), key_material(blob), error(KM_ERROR_OK), in KeyData() 63 keymaster_operation_handle_t op_handle; member
|
/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 | 215 msg.op_handle = 0xDEADBEEF; in TEST() 233 EXPECT_EQ(0xDEADBEEF, deserialized->op_handle); in TEST() 254 msg.op_handle = 0xDEADBEEF; in TEST() 264 msg.op_handle = 0xDEADBEEF; in TEST() 333 msg.op_handle = 0xDEADBEEF; in TEST() 352 EXPECT_EQ(0xDEADBEEF, deserialized->op_handle); in TEST()
|
D | android_keymaster_test.cpp | 1890 op_handle_ = rsp.op_handle; in BeginOperation() 1897 req.op_handle = op_handle_; in FinishOperation()
|
/system/keymaster/legacy_support/ |
D | keymaster1_engine.cpp | 267 if (key_data->op_handle == 0) in Keymaster1Finish() 274 device()->update(device(), key_data->op_handle, &key_data->finish_params, &input, in Keymaster1Finish() 279 return device()->finish(device(), key_data->op_handle, &key_data->finish_params, in Keymaster1Finish()
|
D | ecdsa_keymaster1_operation.cpp | 67 key_data->op_handle = operation_handle_; in PrepareFinish()
|
D | rsa_keymaster1_operation.cpp | 88 key_data->op_handle = operation_handle_; in PrepareFinish()
|
/system/keymaster/ng/ |
D | AndroidKeymaster3Device.cpp | 436 _hidl_cb(legacy_enum_conversion(response.error), resultParams, response.op_handle); in begin() 444 request.op_handle = operationHandle; in update() 468 request.op_handle = operationHandle; in finish() 488 request.op_handle = operationHandle; in abort()
|
D | AndroidKeymaster4Device.cpp | 511 _hidl_cb(legacy_enum_conversion(response.error), resultParams, response.op_handle); in begin() 522 request.op_handle = operationHandle; in update() 549 request.op_handle = operationHandle; in finish() 569 request.op_handle = operationHandle; in abort()
|
/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 | 1268 *operation_handle = response.op_handle; in begin() 1321 request.op_handle = operation_handle; in update() 1400 request.op_handle = operation_handle; in finish() 1556 request.op_handle = operation_handle; in finish() 1600 request.op_handle = operation_handle; in abort()
|