Home
last modified time | relevance | path

Searched refs:additional_params (Results 1 – 25 of 31) sorted by relevance

12

/system/keymaster/
Dandroid_keymaster_messages.cpp103 return key_blob_size(key_blob) + additional_params.SerializedSize(); in SerializedSize()
108 return additional_params.Serialize(buf, end); in Serialize()
113 additional_params.Deserialize(buf_ptr, end); in Deserialize()
136 additional_params.SerializedSize(); in SerializedSize()
142 return additional_params.Serialize(buf, end); in Serialize()
148 additional_params.Deserialize(buf_ptr, end); in Deserialize()
176 return sizeof(op_handle) + input.SerializedSize() + additional_params.SerializedSize(); in SerializedSize()
183 buf = additional_params.Serialize(buf, end); in Serialize()
190 retval = additional_params.Deserialize(buf_ptr, end); in Deserialize()
230 return sizeof(op_handle) + signature.SerializedSize() + additional_params.SerializedSize(); in SerializedSize()
[all …]
Dandroid_keymaster.cpp192 context_->ParseKeyBlob(KeymasterKeyBlob(request.key_blob), request.additional_params, in GetKeyCharacteristics()
222 response->error = LoadKey(request.key_blob, request.additional_params, &hw_enforced, in BeginOperation()
238 factory->CreateOperation(*key, request.additional_params, &response->error)); in BeginOperation()
249 request.purpose, key_id, key->authorizations(), request.additional_params, in BeginOperation()
256 response->error = operation->Begin(request.additional_params, &response->output_params); in BeginOperation()
277 request.additional_params, request.op_handle, false /* is_begin_operation */); in UpdateOperation()
285 operation->Update(request.additional_params, request.input, &response->output_params, in UpdateOperation()
306 request.additional_params, request.op_handle, false /* is_begin_operation */); in FinishOperation()
313 response->error = operation->Finish(request.additional_params, request.signature, in FinishOperation()
341 context_->ParseKeyBlob(KeymasterKeyBlob(request.key_blob), request.additional_params, in ExportKey()
[all …]
Daes_operation.h68 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input,
71 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& signature,
114 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& signature,
132 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input,
135 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& signature,
Decdsa_operation.h56 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input,
59 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& signature,
69 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input,
72 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& signature,
Drsa_operation.h44 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input,
95 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input,
98 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& signature,
116 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input,
119 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& signature,
151 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& signature,
162 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& signature,
Dkeymaster1_engine.h69 RSA* BuildRsaKey(const KeymasterKeyBlob& blob, const AuthorizationSet& additional_params,
71 EC_KEY* BuildEcKey(const KeymasterKeyBlob& blob, const AuthorizationSet& additional_params,
81 const AuthorizationSet& additional_params,
Dkeymaster1_engine.cpp125 const AuthorizationSet& additional_params, in BuildRsaKey() argument
134 KeyData* key_data = new KeyData(blob, additional_params); in BuildRsaKey()
167 const AuthorizationSet& additional_params, in BuildEcKey() argument
176 KeyData* key_data = new KeyData(blob, additional_params); in BuildEcKey()
185 GetKeymaster1PublicKey(blob, additional_params, error)); in BuildEcKey()
351 const AuthorizationSet& additional_params, in GetKeymaster1PublicKey() argument
357 if (additional_params.GetTagValue(TAG_APPLICATION_ID, &client_id)) in GetKeymaster1PublicKey()
359 if (additional_params.GetTagValue(TAG_APPLICATION_DATA, &app_data)) in GetKeymaster1PublicKey()
Dhmac_operation.h34 virtual keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input,
38 virtual keymaster_error_t Finish(const AuthorizationSet& additional_params,
Daes_operation.cpp195 keymaster_error_t AesEvpOperation::Update(const AuthorizationSet& additional_params, in Update() argument
201 if (!HandleAad(additional_params, input, &error)) in Update()
492 keymaster_error_t AesEvpEncryptOperation::Finish(const AuthorizationSet& additional_params, in Finish() argument
499 AesEvpOperation::Finish(additional_params, signature, output_params, output); in Finish()
544 keymaster_error_t AesEvpDecryptOperation::Update(const AuthorizationSet& additional_params, in Update() argument
556 if (!HandleAad(additional_params, input, &error)) in Update()
613 keymaster_error_t AesEvpDecryptOperation::Finish(const AuthorizationSet& additional_params, in Finish() argument
622 return AesEvpOperation::Finish(additional_params, signature, output_params, output); in Finish()
Dec_keymaster1_key.cpp84 const AuthorizationSet& additional_params, in LoadKey() argument
93 engine_->BuildEcKey(key_material, additional_params, &error)); in LoadKey()
Dsoft_keymaster_context.cpp292 const AuthorizationSet& additional_params, in ParseKeyBlob() argument
329 keymaster_error_t error = BuildHiddenAuthorizations(additional_params, &hidden); in ParseKeyBlob()
354 return ParseKeymaster1HwBlob(blob, additional_params, key_material, hw_enforced, in ParseKeyBlob()
375 const KeymasterKeyBlob& blob, const AuthorizationSet& additional_params, in ParseKeymaster1HwBlob() argument
384 if (additional_params.GetTagValue(TAG_APPLICATION_ID, &client_id)) in ParseKeymaster1HwBlob()
386 if (additional_params.GetTagValue(TAG_APPLICATION_DATA, &app_data)) in ParseKeymaster1HwBlob()
Dec_keymaster0_key.cpp99 const AuthorizationSet& additional_params, in LoadKey() argument
107 return super::LoadKey(key_material, additional_params, hw_enforced, sw_enforced, key); in LoadKey()
Drsa_keymaster1_key.cpp105 const AuthorizationSet& additional_params, in LoadKey() argument
113 unique_ptr<RSA, RSA_Delete> rsa(engine_->BuildRsaKey(key_material, additional_params, &error)); in LoadKey()
Drsa_keymaster0_key.cpp102 const AuthorizationSet& additional_params, in LoadKey() argument
110 return super::LoadKey(key_material, additional_params, hw_enforced, sw_enforced, key); in LoadKey()
Dandroid_keymaster_messages_test.cpp173 req.additional_params.Reinitialize(params, array_length(params)); in TEST()
177 EXPECT_EQ(7U, deserialized->additional_params.size()); in TEST()
201 msg.additional_params.Reinitialize(params, array_length(params)); in TEST()
207 EXPECT_EQ(msg.additional_params, deserialized->additional_params); in TEST()
410 msg.additional_params.Reinitialize(params, array_length(params)); in TEST()
415 EXPECT_EQ(msg.additional_params, deserialized->additional_params); in TEST()
Dhmac_key.h31 const AuthorizationSet& additional_params,
Daes_key.h36 const AuthorizationSet& additional_params,
Drsa_keymaster0_key.h52 const AuthorizationSet& additional_params,
Dec_keymaster0_key.h52 const AuthorizationSet& additional_params,
Dec_keymaster1_key.h56 const AuthorizationSet& additional_params,
Drsa_keymaster1_key.h56 const AuthorizationSet& additional_params,
/system/keymaster/include/keymaster/
Dsoft_keymaster_context.h66 const AuthorizationSet& additional_params,
83 const AuthorizationSet& additional_params,
Dasymmetric_key_factory.h33 const AuthorizationSet& additional_params,
Dkey_factory.h52 const AuthorizationSet& additional_params,
Dkeymaster_context.h93 const AuthorizationSet& additional_params,

12