/aosp12/hardware/interfaces/keymaster/4.1/vts/functional/ |
H A D | Keymaster4_1HidlTest.cpp | 32 V4_0::ErrorCode result = Begin(operation, key_blob, in_params, &begin_out_params, &op_handle_); in ProcessMessage() 42 result = Update(op_handle_, update_params, message, &update_out_params, &output, &consumed); in ProcessMessage() 51 result = Finish(op_handle_, finish_params, message.substr(consumed), unused, &finish_out_params, in ProcessMessage() 53 op_handle_ = V4_0::test::kOpHandleSentinel; in ProcessMessage()
|
/aosp12/hardware/interfaces/keymaster/4.0/vts/functional/ |
H A D | KeymasterHidlTest.cpp | 272 EXPECT_EQ(kOpHandleSentinel, op_handle_); in Begin() 273 return Begin(purpose, key_blob_, in_params, out_params, &op_handle_); in Begin() 329 op_handle_ = kOpHandleSentinel; // So dtor doesn't Abort(). in Finish() 337 ErrorCode error = Finish(op_handle_, AuthorizationSet() /* in_params */, message, in Finish() 352 op_handle_ = kOpHandleSentinel; // So dtor doesn't Abort(). in Finish() 369 if (op_handle_ != kOpHandleSentinel) { in AbortIfNeeded() 370 EXPECT_EQ(ErrorCode::OK, Abort(op_handle_)); in AbortIfNeeded() 371 op_handle_ = kOpHandleSentinel; in AbortIfNeeded() 418 op_handle_ = kOpHandleSentinel; in ProcessMessage() 507 Begin(KeyPurpose::VERIFY, key_blob, params, &begin_out_params, &op_handle_)); in VerifyMessage() [all …]
|
H A D | keymaster_hidl_hal_test.cpp | 1233 EXPECT_EQ(ErrorCode::OK, Abort(op_handle_)); in TEST_P() 1236 EXPECT_EQ(ErrorCode::INVALID_OPERATION_HANDLE, Abort(op_handle_)); in TEST_P() 1239 op_handle_ = kOpHandleSentinel; in TEST_P() 1531 &output_params, &op_handle_)); in TEST_P() 1552 &output_params, &op_handle_)); in TEST_P() 1860 &out_params, &op_handle_)); in TEST_P() 3642 op_handle_ = kOpHandleSentinel; in TEST_P() 4639 &begin_out_params, &op_handle_)); in TEST_P() 4709 &begin_out_params, &op_handle_)); in TEST_P() 4762 Begin(KeyPurpose::ENCRYPT, key_blob_, params, &out_params, &op_handle_)); in TEST_P() [all …]
|
H A D | KeymasterHidlTest.h | 219 OperationHandle op_handle_ = kOpHandleSentinel; variable
|
/aosp12/hardware/interfaces/keymaster/3.0/vts/functional/ |
H A D | keymaster_hidl_hal_test.cpp | 600 EXPECT_EQ(kOpHandleSentinel, op_handle_); in Begin() 694 if (op_handle_ != kOpHandleSentinel) { in AbortIfNeeded() 696 op_handle_ = kOpHandleSentinel; in AbortIfNeeded() 736 op_handle_ = kOpHandleSentinel; in ProcessMessage() 812 op_handle_ = kOpHandleSentinel; in VerifyMessage() 1590 EXPECT_EQ(ErrorCode::OK, Abort(op_handle_)); in TEST_P() 1596 op_handle_ = kOpHandleSentinel; in TEST_P() 1839 &output_params, &op_handle_)); in TEST_P() 1860 &output_params, &op_handle_)); in TEST_P() 2245 &out_params, &op_handle_)); in TEST_P() [all …]
|
/aosp12/system/keymaster/tests/ |
H A D | android_keymaster_test_utils.cpp | 177 Keymaster2Test::Keymaster2Test() : op_handle_(OP_HANDLE_SENTINEL) { in Keymaster2Test() 241 device()->begin(device(), purpose, &blob_, &in_params, &out_params, &op_handle_); in BeginOperation() 252 device()->begin(device(), purpose, &blob_, &input_set, &out_params, &op_handle_); in BeginOperation() 267 EXPECT_NE(op_handle_, OP_HANDLE_SENTINEL); in UpdateOperation() 271 keymaster_error_t error = device()->update(device(), op_handle_, nullptr /* params */, &input, in UpdateOperation() 283 EXPECT_NE(op_handle_, OP_HANDLE_SENTINEL); in UpdateOperation() 287 keymaster_error_t error = device()->update(device(), op_handle_, &additional_params, &input, in UpdateOperation() 316 keymaster_error_t error = device()->finish(device(), op_handle_, &additional_params, &inp, &sig, in FinishOperation() 333 return device()->abort(device(), op_handle_); in AbortOperation()
|
H A D | android_keymaster_test_utils.h | 348 uint64_t op_handle_; variable
|
H A D | android_keymaster_test.cpp | 1640 op_handle_ = rsp.op_handle; in BeginOperation() 1647 req.op_handle = op_handle_; in FinishOperation() 1672 uint64_t op_handle_; member in keymaster::test::ImportWrappedKeyTest
|