Home
last modified time | relevance | path

Searched refs:input_consumed (Results 1 – 22 of 22) sorted by relevance

/system/keymaster/
Decdsa_operation.cpp98 keymaster_error_t EcdsaOperation::StoreData(const Buffer& input, size_t* input_consumed) { in StoreData() argument
105 *input_consumed = input.available_read(); in StoreData()
128 Buffer* /* output */, size_t* input_consumed) { in Update() argument
130 return StoreData(input, input_consumed); in Update()
134 *input_consumed = input.available_read(); in Update()
193 Buffer* /* output */, size_t* input_consumed) { in Update() argument
195 return StoreData(input, input_consumed); in Update()
199 *input_consumed = input.available_read(); in Update()
Dandroid_keymaster_test.cpp524 size_t input_consumed; in TEST_P() local
525 EXPECT_EQ(KM_ERROR_OK, UpdateOperation(message, &result, &input_consumed)); in TEST_P()
561 size_t input_consumed; in TEST_P() local
562 EXPECT_EQ(KM_ERROR_INVALID_INPUT_LENGTH, UpdateOperation(message, &result, &input_consumed)); in TEST_P()
664 size_t input_consumed; in TEST_P() local
665 ASSERT_EQ(KM_ERROR_OK, UpdateOperation(message, &result, &input_consumed)); in TEST_P()
666 ASSERT_EQ(message.size(), input_consumed); in TEST_P()
716 size_t input_consumed; in TEST_P() local
717 EXPECT_EQ(KM_ERROR_OK, UpdateOperation(message, &result, &input_consumed)); in TEST_P()
1236 size_t input_consumed; in TEST_P() local
[all …]
Drsa_operation.cpp146 Buffer* /* output */, size_t* input_consumed) { in Update() argument
147 assert(input_consumed); in Update()
155 return StoreData(input, input_consumed); in Update()
159 keymaster_error_t RsaOperation::StoreData(const Buffer& input, size_t* input_consumed) { in StoreData() argument
160 assert(input_consumed); in StoreData()
171 *input_consumed = input.available_read(); in StoreData()
280 Buffer* output, size_t* input_consumed) { in Update() argument
284 input_consumed); in Update()
288 *input_consumed = input.available_read(); in Update()
403 Buffer* output, size_t* input_consumed) { in Update() argument
[all …]
Doperation.cpp140 size_t input_consumed; in UpdateForFinish() local
144 Update(input_params, input, &output_params, &output, &input_consumed); in UpdateForFinish()
147 assert(input_consumed == input.available_read()); in UpdateForFinish()
Decdsa_operation.h40 keymaster_error_t StoreData(const Buffer& input, size_t* input_consumed);
58 size_t* input_consumed) override;
72 size_t* input_consumed) override;
Dandroid_keymaster_test_utils.cpp261 size_t* input_consumed) { in UpdateOperation() argument
267 input_consumed, &out_params, &out_tmp); in UpdateOperation()
277 size_t* input_consumed) { in UpdateOperation() argument
283 input_consumed, &out_params, &out_tmp); in UpdateOperation()
356 size_t input_consumed; in ProcessMessage() local
357 EXPECT_EQ(KM_ERROR_OK, UpdateOperation(message, &result, &input_consumed)); in ProcessMessage()
358 EXPECT_EQ(message.size(), input_consumed); in ProcessMessage()
370 size_t input_consumed; in ProcessMessage() local
372 &result, &input_consumed)); in ProcessMessage()
373 EXPECT_EQ(message.size(), input_consumed); in ProcessMessage()
[all …]
Daes_operation.cpp196 size_t* input_consumed) { in Update() argument
204 *input_consumed = input.available_read(); in Update()
472 size_t input_consumed; in UpdateForFinish() local
473 *error = Update(additional_params, input, output_params, output, &input_consumed); in UpdateForFinish()
476 if (input_consumed != input.available_read()) { in UpdateForFinish()
563 Buffer* output, size_t* input_consumed) { in Update() argument
564 if (!output || !input_consumed) in Update()
568 *input_consumed = input.available_read(); in Update()
Drsa_operation.h46 size_t* input_consumed) override;
56 keymaster_error_t StoreData(const Buffer& input, size_t* input_consumed);
97 size_t* input_consumed) override;
119 size_t* input_consumed) override;
Dhmac_operation.cpp152 Buffer* /* output */, size_t* input_consumed) { in Update() argument
155 *input_consumed = input.available_read(); in Update()
Daes_operation.h70 size_t* input_consumed) override;
138 size_t* input_consumed) override;
Dhmac_operation.h36 size_t* input_consumed);
Doperation.h107 size_t* input_consumed) = 0;
Dandroid_keymaster_messages_test.cpp290 msg.input_consumed = 99; in TEST()
314 EXPECT_EQ(0U, deserialized->input_consumed); in TEST()
317 EXPECT_EQ(99U, deserialized->input_consumed); in TEST()
321 EXPECT_EQ(99U, deserialized->input_consumed); in TEST()
Dsoft_keymaster_device.cpp1255 const keymaster_blob_t* input, size_t* input_consumed, in update() argument
1261 if (!input_consumed) in update()
1269 return km1_dev->update(km1_dev, operation_handle, in_params, input, input_consumed, in update()
1301 *input_consumed = response.input_consumed; in update()
1319 const keymaster_blob_t* input, size_t* input_consumed, in update() argument
1329 return update(&sk_dev->km1_device_, operation_handle, in_params, input, input_consumed, in update()
Dkeymaster1_engine.cpp275 size_t input_consumed; in Keymaster1Finish() local
280 &input_consumed, nullptr /* out_params */, nullptr /* output */); in Keymaster1Finish()
Dandroid_keymaster_messages.cpp218 buf = append_uint32_to_buf(buf, end, input_consumed); in NonErrorSerialize()
227 retval = copy_uint32_from_buf(buf_ptr, end, &input_consumed); in NonErrorDeserialize()
Dandroid_keymaster_test_utils.h198 size_t* input_consumed);
201 std::string* output, size_t* input_consumed);
Dandroid_keymaster.cpp311 &response->output, &response->input_consumed); in UpdateOperation()
/system/vold/
DKeymaster.cpp40 const keymaster_blob_t* input, size_t* input_consumed,
73 const keymaster_blob_t* input, size_t* input_consumed, in update() argument
76 return mDevice->update(mDevice, operation_handle, in_params, input, input_consumed, in update()
Dcryptfs.c378 size_t input_consumed; in keymaster_sign_object() local
380 &input, &input_consumed, NULL /* out_params */, in keymaster_sign_object()
387 if (input_consumed != to_sign_size) { in keymaster_sign_object()
/system/keymaster/include/keymaster/
Dsoft_keymaster_device.h169 const keymaster_blob_t* input, size_t* input_consumed,
226 const keymaster_blob_t* input, size_t* input_consumed,
Dandroid_keymaster_messages.h366 : KeymasterResponse(ver), input_consumed(0) {} in KeymasterResponse()
373 size_t input_consumed; member