Home
last modified time | relevance | path

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

/system/keymaster/
Dgoogle_keymaster_test.cpp421 update_request.op_handle = begin_response.op_handle; in SignMessage()
430 finish_request.op_handle = begin_response.op_handle; in SignMessage()
472 update_request.op_handle = begin_response.op_handle; in TEST_F()
481 finish_request.op_handle = begin_response.op_handle; in TEST_F()
487 EXPECT_EQ(KM_ERROR_INVALID_OPERATION_HANDLE, device.AbortOperation(begin_response.op_handle)); in TEST_F()
504 update_request.op_handle = begin_response.op_handle; in TEST_F()
513 finish_request.op_handle = begin_response.op_handle; in TEST_F()
519 EXPECT_EQ(KM_ERROR_INVALID_OPERATION_HANDLE, device.AbortOperation(begin_response.op_handle)); in TEST_F()
536 update_request.op_handle = begin_response.op_handle; in TEST_F()
545 finish_request.op_handle = begin_response.op_handle; in TEST_F()
[all …]
Dgoogle_keymaster.cpp194 response->op_handle = 0; in BeginOperation()
208 response->error = AddOperation(operation.release(), &response->op_handle); in BeginOperation()
213 OpTableEntry* entry = FindOperation(request.op_handle); in UpdateOperation()
228 OpTableEntry* entry = FindOperation(request.op_handle); in FinishOperation()
238 keymaster_error_t GoogleKeymaster::AbortOperation(const keymaster_operation_handle_t op_handle) { in AbortOperation() argument
239 OpTableEntry* entry = FindOperation(op_handle); in AbortOperation()
438 keymaster_operation_handle_t* op_handle) { in AddOperation() argument
440 if (RAND_bytes(reinterpret_cast<uint8_t*>(op_handle), sizeof(*op_handle)) == 0) in AddOperation()
442 if (*op_handle == 0) { in AddOperation()
450 operation_table_[i].handle = *op_handle; in AddOperation()
[all …]
Dgoogle_keymaster_messages.cpp166 return sizeof(op_handle); in NonErrorSerializedSize()
170 return append_uint64_to_buf(buf, end, op_handle); in NonErrorSerialize()
174 return copy_uint64_from_buf(buf_ptr, end, &op_handle); in NonErrorDeserialize()
178 return sizeof(op_handle) + input.SerializedSize(); in SerializedSize()
182 buf = append_uint64_to_buf(buf, end, op_handle); in Serialize()
187 return copy_uint64_from_buf(buf_ptr, end, &op_handle) && input.Deserialize(buf_ptr, end); in Deserialize()
203 return sizeof(op_handle) + signature.SerializedSize(); in SerializedSize()
207 buf = append_uint64_to_buf(buf, end, op_handle); in Serialize()
212 return copy_uint64_from_buf(buf_ptr, end, &op_handle) && signature.Deserialize(buf_ptr, end); in Deserialize()
Dgoogle_keymaster_messages_test.cpp187 msg.op_handle = 0xDEADBEEF; in TEST()
191 EXPECT_EQ(0xDEADBEEF, deserialized->op_handle); in TEST()
197 msg.op_handle = 0xDEADBEEF; in TEST()
205 msg.op_handle = 0xDEADBEEF; in TEST()
226 msg.op_handle = 0xDEADBEEF; in TEST()
230 EXPECT_EQ(0xDEADBEEF, deserialized->op_handle); in TEST()
/system/keymaster/include/keymaster/
Dgoogle_keymaster.h78 keymaster_error_t AbortOperation(const keymaster_operation_handle_t op_handle);
124 keymaster_error_t AddOperation(Operation* operation, keymaster_operation_handle_t* op_handle);
125 OpTableEntry* FindOperation(keymaster_operation_handle_t op_handle);
Dgoogle_keymaster_messages.h184 keymaster_operation_handle_t op_handle; member
192 keymaster_operation_handle_t op_handle; member
209 keymaster_operation_handle_t op_handle; member