Home
last modified time | relevance | path

Searched refs:output_params (Results 1 – 25 of 26) sorted by relevance

12

/system/keymaster/legacy_support/
Dkeymaster_passthrough_operation.h47 AuthorizationSet* output_params) override { in Begin() argument
52 if (rc == KM_ERROR_OK && output_params) output_params->Reinitialize(out_params); in Begin()
57 AuthorizationSet* output_params, Buffer* output, in Update() argument
67 if (output_params) output_params->Reinitialize(out_params); in Update()
74 const Buffer& signature, AuthorizationSet* output_params,
86 AuthorizationSet* output_params, Buffer* output);
90 AuthorizationSet* output_params, Buffer* output);
Dkeymaster_passthrough_operation.cpp28 const Buffer& signature, AuthorizationSet* output_params, in Finish() argument
88 if (output_params) *output_params = move(accumulated_out_params); in Finish()
96 const Buffer& signature, AuthorizationSet* output_params, in Finish() argument
106 if (output_params) output_params->Reinitialize(out_params); in Finish()
Decdsa_keymaster1_operation.h67 AuthorizationSet* output_params) override { in Begin() argument
71 return super::Begin(input_params, output_params); in Begin()
75 const Buffer& signature, AuthorizationSet* output_params, in Finish() argument
80 error = super::Finish(input_params, input, signature, output_params, output); in Finish()
Drsa_keymaster1_operation.h67 AuthorizationSet* output_params) override { in Begin() argument
71 return super::Begin(input_params, output_params); in Begin()
75 const Buffer& signature, AuthorizationSet* output_params, in Finish() argument
80 error = super::Finish(input_params, input, signature, output_params, output); in Finish()
/system/keymaster/km_openssl/
Dblock_cipher_operation.h77 AuthorizationSet* output_params) override;
79 AuthorizationSet* output_params, Buffer* output,
82 const Buffer& signature, AuthorizationSet* output_params,
100 AuthorizationSet* output_params, Buffer* output, keymaster_error_t* error);
127 AuthorizationSet* output_params) override;
129 const Buffer& signature, AuthorizationSet* output_params,
148 AuthorizationSet* output_params) override;
150 AuthorizationSet* output_params, Buffer* output,
153 const Buffer& signature, AuthorizationSet* output_params,
Dblock_cipher_operation.cpp188 AuthorizationSet* output_params, Buffer* output) { in Finish() argument
190 if (!UpdateForFinish(additional_params, input, output_params, output, &error)) return error; in Finish()
380 const Buffer& input, AuthorizationSet* output_params, in UpdateForFinish() argument
384 *error = Update(additional_params, input, output_params, output, &input_consumed); in UpdateForFinish()
396 AuthorizationSet* output_params) { in Begin() argument
397 if (!output_params) return KM_ERROR_OUTPUT_PARAMETER_NULL; in Begin()
410 output_params->push_back(TAG_NONCE, iv_.data, iv_.data_length); in Begin()
413 return BlockCipherEvpOperation::Begin(input_params, output_params); in Begin()
419 AuthorizationSet* output_params, in Finish() argument
426 BlockCipherEvpOperation::Finish(additional_params, input, signature, output_params, output); in Finish()
[all …]
Dhmac_operation.h32 AuthorizationSet* output_params);
34 AuthorizationSet* output_params, Buffer* output,
38 const Buffer& signature, AuthorizationSet* output_params,
Drsa_operation.cpp267 AuthorizationSet* output_params) { in Begin() argument
268 keymaster_error_t error = RsaDigestingOperation::Begin(input_params, output_params); in Begin()
283 const Buffer& input, AuthorizationSet* output_params, in Update() argument
287 return RsaOperation::Update(additional_params, input, output_params, output, in Update()
391 AuthorizationSet* output_params) { in Begin() argument
392 keymaster_error_t error = RsaDigestingOperation::Begin(input_params, output_params); in Begin()
406 const Buffer& input, AuthorizationSet* output_params, in Update() argument
410 return RsaOperation::Update(additional_params, input, output_params, output, in Update()
/system/keymaster/tests/
Dandroid_keymaster_test_utils.cpp280 AuthorizationSet* output_params, string* output, in UpdateOperation() argument
291 if (output_params) in UpdateOperation()
292 output_params->Reinitialize(out_params); in UpdateOperation()
304 AuthorizationSet output_params; in FinishOperation() local
305 return FinishOperation(additional_params, input, signature, &output_params, output); in FinishOperation()
310 AuthorizationSet* output_params, string* output) { in FinishOperation() argument
327 if (output_params) in FinishOperation()
328 output_params->Reinitialize(out_params); in FinishOperation()
383 AuthorizationSet* output_params) { in ProcessMessage() argument
384 EXPECT_EQ(KM_ERROR_OK, BeginOperation(purpose, begin_params, output_params)); in ProcessMessage()
[all …]
Dandroid_keymaster_test_utils.h204 const std::string& message, AuthorizationSet* output_params,
218 AuthorizationSet* output_params, std::string* output);
232 AuthorizationSet* output_params = nullptr);
236 AuthorizationSet* output_params = nullptr);
266 AuthorizationSet* output_params);
286 AuthorizationSet* output_params);
Dandroid_keymaster_messages_test.cpp216 msg.output_params.push_back(Authorization(TAG_NONCE, "foo", 3)); in TEST()
237 EXPECT_EQ(0U, deserialized->output_params.size()); in TEST()
242 EXPECT_EQ(msg.output_params, deserialized->output_params); in TEST()
291 msg.output_params.push_back(TAG_APPLICATION_ID, "bar", 3); in TEST()
322 EXPECT_EQ(1U, deserialized->output_params.size()); in TEST()
Dandroid_keymaster_test.cpp2649 AuthorizationSet output_params; in TEST_P() local
2650 EXPECT_EQ(KM_ERROR_OK, BeginOperation(KM_PURPOSE_ENCRYPT, input_params, &output_params)); in TEST_P()
2661 input_params.Reinitialize(output_params); in TEST_P()
2665 output_params.Clear(); in TEST_P()
2667 EXPECT_EQ(KM_ERROR_OK, BeginOperation(KM_PURPOSE_DECRYPT, input_params, &output_params)); in TEST_P()
2802 AuthorizationSet output_params; in TEST_P() local
2807 ProcessMessage(KM_PURPOSE_ENCRYPT, message, input_params, update_params, &output_params); in TEST_P()
2811 &output_params); in TEST_P()
2820 &output_params); in TEST_P()
2845 AuthorizationSet output_params; in TEST_P() local
[all …]
/system/keymaster/include/keymaster/km_openssl/
Decdsa_operation.h59 AuthorizationSet* output_params) override;
61 AuthorizationSet* output_params, Buffer* output,
64 const Buffer& signature, AuthorizationSet* output_params,
74 AuthorizationSet* output_params) override;
76 AuthorizationSet* output_params, Buffer* output,
79 const Buffer& signature, AuthorizationSet* output_params,
Drsa_operation.h44 AuthorizationSet* output_params) override;
46 AuthorizationSet* output_params, Buffer* output,
98 AuthorizationSet* output_params) override;
100 AuthorizationSet* output_params, Buffer* output,
103 const Buffer& signature, AuthorizationSet* output_params,
122 AuthorizationSet* output_params) override;
124 AuthorizationSet* output_params, Buffer* output,
127 const Buffer& signature, AuthorizationSet* output_params,
163 const Buffer& signature, AuthorizationSet* output_params,
177 const Buffer& signature, AuthorizationSet* output_params,
/system/keymaster/include/keymaster/
Doperation.h111 AuthorizationSet* output_params) = 0;
113 AuthorizationSet* output_params, Buffer* output,
116 const Buffer& signature, AuthorizationSet* output_params,
/system/keymaster/android_keymaster/
Doperation.cpp157 AuthorizationSet output_params; in UpdateForFinish() local
159 Update(input_params, input, &output_params, &output, &input_consumed); in UpdateForFinish()
163 assert(output_params.empty()); in UpdateForFinish()
Dandroid_keymaster_messages.cpp173 return sizeof(op_handle) + output_params.SerializedSize(); in NonErrorSerializedSize()
179 buf = output_params.Serialize(buf, end); in NonErrorSerialize()
186 retval = output_params.Deserialize(buf_ptr, end); in NonErrorDeserialize()
217 size += output_params.SerializedSize(); in NonErrorSerializedSize()
238 buf = output_params.Serialize(buf, end); in NonErrorSerialize()
247 retval = output_params.Deserialize(buf_ptr, end); in NonErrorDeserialize()
296 return output.SerializedSize() + output_params.SerializedSize(); in NonErrorSerializedSize()
302 buf = output_params.Serialize(buf, end); in NonErrorSerialize()
309 retval = output_params.Deserialize(buf_ptr, end); in NonErrorDeserialize()
Dandroid_keymaster.cpp297 response->output_params.Clear(); in BeginOperation()
298 response->error = operation->Begin(request.additional_params, &response->output_params); in BeginOperation()
327 operation->Update(request.additional_params, request.input, &response->output_params, in UpdateOperation()
356 &response->output_params, &response->output); in FinishOperation()
/system/security/keystore/
Dkeystore_client_impl.cpp86 AuthorizationSet output_params; in encryptWithAuthentication() local
90 &output_params, &raw_encrypted_data)) { in encryptWithAuthentication()
94 auto init_vector_blob = output_params.GetTagValue(TAG_NONCE); in encryptWithAuthentication()
107 &output_params, &raw_authentication_data)) { in encryptWithAuthentication()
133 AuthorizationSet output_params; in decryptWithAuthentication() local
137 protobuf.authentication_data(), &output_params, &output_data)) { in decryptWithAuthentication()
149 &output_params, data)) { in decryptWithAuthentication()
Dkeystore_cli_v2.cpp410 AuthorizationSet output_params; in SignAndVerify() local
413 keystore->beginOperation(KeyPurpose::SIGN, name, sign_params, &output_params, &handle); in SignAndVerify()
421 std::string() /*signature_to_verify*/, &output_params, in SignAndVerify()
432 keystore->beginOperation(KeyPurpose::VERIFY, name, sign_params, &output_params, &handle); in SignAndVerify()
434 &output_params, &output_data); in SignAndVerify()
/system/core/trusty/keymaster/3.0/
DTrustyKeymaster3Device.cpp387 resultParams = kmParamSet2Hidl(response.output_params); in begin()
421 resultParams = kmParamSet2Hidl(response.output_params); in update()
446 resultParams = kmParamSet2Hidl(response.output_params); in finish()
/system/keymaster/ng/
DAndroidKeymaster3Device.cpp433 resultParams = kmParamSet2Hidl(response.output_params); in begin()
456 resultParams = kmParamSet2Hidl(response.output_params); in update()
479 resultParams = kmParamSet2Hidl(response.output_params); in finish()
DAndroidKeymaster4Device.cpp509 if (response.error == KM_ERROR_OK) resultParams = kmParamSet2Hidl(response.output_params); in begin()
534 resultParams = kmParamSet2Hidl(response.output_params); in update()
560 resultParams = kmParamSet2Hidl(response.output_params); in finish()
/system/keymaster/contexts/
Dsoft_keymaster_device.cpp1261 if (response.output_params.size() > 0) { in begin()
1263 response.output_params.CopyToParamSet(out_params); in begin()
1332 if (response.output_params.size() > 0) { in update()
1334 response.output_params.CopyToParamSet(out_params); in update()
1410 if (response.output_params.size() > 0) { in finish()
1412 response.output_params.CopyToParamSet(out_params); in finish()
1568 if (response.output_params.size() > 0) { in finish()
1570 response.output_params.CopyToParamSet(out_params); in finish()
/system/core/trusty/keymaster/4.0/
DTrustyKeymaster4Device.cpp529 resultParams = kmParamSet2Hidl(response.output_params); in begin()
568 resultParams = kmParamSet2Hidl(response.output_params); in update()
597 resultParams = kmParamSet2Hidl(response.output_params); in finish()

12