Home
last modified time | relevance | path

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

/system/keymaster/android_keymaster/
Doperation_table.cpp40 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()
Dandroid_keymaster.cpp265 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 …]
Dkeymaster_enforcement.cpp120 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()
Dandroid_keymaster_messages.cpp171 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/
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()
206 keymaster_operation_handle_t op_handle);
215 const keymaster_operation_handle_t op_handle,
Doperation_table.h37 Operation* Find(keymaster_operation_handle_t op_handle);
Dandroid_keymaster.h93 bool has_operation(keymaster_operation_handle_t op_handle) const;
Dandroid_keymaster_messages.h359 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/
Dkeymaster_enforcement.h101 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,
Dauth_token_table.cpp116 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()
Dauth_token_table.h75 KeyPurpose purpose, uint64_t op_handle);
85 void MarkCompleted(const uint64_t op_handle);
156 HardwareAuthenticatorType auth_type, uint64_t op_handle);
Dkeymaster_enforcement.cpp76 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/
Dkeymaster1_engine.h60 : 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/
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.cpp215 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()
Dandroid_keymaster_test.cpp1890 op_handle_ = rsp.op_handle; in BeginOperation()
1897 req.op_handle = op_handle_; in FinishOperation()
/system/keymaster/legacy_support/
Dkeymaster1_engine.cpp267 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()
Decdsa_keymaster1_operation.cpp67 key_data->op_handle = operation_handle_; in PrepareFinish()
Drsa_keymaster1_operation.cpp88 key_data->op_handle = operation_handle_; in PrepareFinish()
/system/keymaster/ng/
DAndroidKeymaster3Device.cpp436 _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()
DAndroidKeymaster4Device.cpp511 _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/
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.cpp1268 *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()