Home
last modified time | relevance | path

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

12

/system/keymaster/include/keymaster/legacy_support/
Dkeymaster1_legacy_support.h104 const AuthorizationSet& additional_params, in LoadKey() argument
108 if (!additional_params.GetTagValue(TAG_DIGEST, &digest)) { in LoadKey()
114 return software_digest_factory_.LoadKey(move(key_material), additional_params, in LoadKey()
117 return passthrough_factory_.LoadKey(move(key_material), additional_params, in LoadKey()
157 KeymasterKeyBlob&& key_material, const AuthorizationSet& additional_params,
162 KeymasterKeyBlob&& key_material, const AuthorizationSet& additional_params,
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,
/system/keymaster/contexts/
Dkeymaster1_passthrough_context.cpp118 const AuthorizationSet& additional_params, KeymasterKeyBlob* key_material, in parseKeymaster1HwBlob() argument
124 if (additional_params.GetTagValue(TAG_APPLICATION_ID, &client_id)) client_id_ptr = &client_id; in parseKeymaster1HwBlob()
125 if (additional_params.GetTagValue(TAG_APPLICATION_DATA, &app_data)) app_data_ptr = &app_data; in parseKeymaster1HwBlob()
144 const AuthorizationSet& additional_params, in ParseKeyBlob() argument
152 BuildHiddenAuthorizations(additional_params, &hidden, softwareRootOfTrust); in ParseKeyBlob()
161 error = parseKeymaster1HwBlob(km1_engine_->device(), blob, additional_params, &key_material, in ParseKeyBlob()
174 return factory->LoadKey(move(key_material), additional_params, move(hw_enforced), in ParseKeyBlob()
Dkeymaster2_passthrough_context.cpp72 const AuthorizationSet& additional_params, in ParseKeyBlob() argument
79 if (!additional_params.GetTagValue(TAG_APPLICATION_ID, clientIdPtr)) { in ParseKeyBlob()
82 if (!additional_params.GetTagValue(TAG_APPLICATION_DATA, applicationDataPtr)) { in ParseKeyBlob()
108 return factory->LoadKey(move(key_material), additional_params, move(hw_enforced), in ParseKeyBlob()
Dsoft_keymaster_context.cpp224 const AuthorizationSet& additional_params, in ParseKeyBlob() argument
273 return factory->LoadKey(move(key_material), additional_params, move(hw_enforced), in ParseKeyBlob()
277 error = BuildHiddenAuthorizations(additional_params, &hidden, root_of_trust_); in ParseKeyBlob()
297 error = ParseKeymaster1HwBlob(blob, additional_params, &key_material, &hw_enforced, in ParseKeyBlob()
336 const KeymasterKeyBlob& blob, const AuthorizationSet& additional_params, in ParseKeymaster1HwBlob() argument
345 if (additional_params.GetTagValue(TAG_APPLICATION_ID, &client_id)) client_id_ptr = &client_id; in ParseKeymaster1HwBlob()
346 if (additional_params.GetTagValue(TAG_APPLICATION_DATA, &app_data)) app_data_ptr = &app_data; in ParseKeymaster1HwBlob()
/system/keymaster/km_openssl/
Dblock_cipher_operation.h78 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input,
81 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input,
99 bool UpdateForFinish(const AuthorizationSet& additional_params, const Buffer& input,
128 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input,
149 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input,
152 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input,
Dblock_cipher_operation.cpp168 keymaster_error_t BlockCipherEvpOperation::Update(const AuthorizationSet& additional_params, in Update() argument
173 if (block_mode_ == KM_MODE_GCM && !HandleAad(additional_params, input, &error)) return error; in Update()
186 keymaster_error_t BlockCipherEvpOperation::Finish(const AuthorizationSet& additional_params, in Finish() argument
191 if (!UpdateForFinish(additional_params, input, output_params, output, &error)) return error; in Finish()
382 bool BlockCipherEvpOperation::UpdateForFinish(const AuthorizationSet& additional_params, in UpdateForFinish() argument
385 if (input.available_read() || !additional_params.empty()) { in UpdateForFinish()
387 *error = Update(additional_params, input, output_params, output, &input_consumed); in UpdateForFinish()
419 keymaster_error_t BlockCipherEvpEncryptOperation::Finish(const AuthorizationSet& additional_params, in Finish() argument
429 BlockCipherEvpOperation::Finish(additional_params, input, signature, output_params, output); in Finish()
466 keymaster_error_t BlockCipherEvpDecryptOperation::Update(const AuthorizationSet& additional_params, in Update() argument
[all …]
Drsa_operation.cpp289 keymaster_error_t RsaSignOperation::Update(const AuthorizationSet& additional_params, in Update() argument
294 return RsaOperation::Update(additional_params, input, output_params, output, in Update()
303 keymaster_error_t RsaSignOperation::Finish(const AuthorizationSet& additional_params, in Finish() argument
308 keymaster_error_t error = UpdateForFinish(additional_params, input); in Finish()
400 keymaster_error_t RsaVerifyOperation::Update(const AuthorizationSet& additional_params, in Update() argument
405 return RsaOperation::Update(additional_params, input, output_params, output, in Update()
414 keymaster_error_t RsaVerifyOperation::Finish(const AuthorizationSet& additional_params, in Finish() argument
418 keymaster_error_t error = UpdateForFinish(additional_params, input); in Finish()
527 keymaster_error_t RsaEncryptOperation::Finish(const AuthorizationSet& additional_params, in Finish() argument
533 keymaster_error_t error = UpdateForFinish(additional_params, input); in Finish()
[all …]
Dhmac_operation.h33 virtual keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input,
37 virtual keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input,
Decdsa_operation.cpp134 keymaster_error_t EcdsaSignOperation::Finish(const AuthorizationSet& additional_params, in Finish() argument
140 keymaster_error_t error = UpdateForFinish(additional_params, input); in Finish()
195 keymaster_error_t EcdsaVerifyOperation::Finish(const AuthorizationSet& additional_params, in Finish() argument
199 keymaster_error_t error = UpdateForFinish(additional_params, input); in Finish()
/system/keymaster/include/keymaster/km_openssl/
Decdsa_operation.h60 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input,
63 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input,
75 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input,
78 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input,
Decdh_operation.h40 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input,
43 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input,
Drsa_operation.h45 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input,
99 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input,
102 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input,
123 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input,
126 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input,
170 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input,
184 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input,
Daes_key.h37 const AuthorizationSet& additional_params,
/system/keymaster/legacy_support/
Dkeymaster1_legacy_support.cpp263 KeymasterKeyBlob&& key_material, const AuthorizationSet& additional_params, in LoadKey() argument
266 if (!additional_params.GetTagValue(TAG_DIGEST, &digest)) { in LoadKey()
271 auto rc = software_digest_factory_.LoadKey(move(key_material), additional_params, in LoadKey()
282 KeymasterKeyBlob&& key_material, const AuthorizationSet& additional_params, in LoadKey() argument
285 if (!additional_params.GetTagValue(TAG_DIGEST, &digest)) { in LoadKey()
290 auto rc = software_digest_factory_.LoadKey(move(key_material), additional_params, in LoadKey()
Dkeymaster1_engine.cpp129 const AuthorizationSet& additional_params, in BuildRsaKey() argument
138 KeyData* key_data = new KeyData(blob, additional_params); in BuildRsaKey()
168 const AuthorizationSet& additional_params, in BuildEcKey() argument
177 KeyData* key_data = new KeyData(blob, additional_params); in BuildEcKey()
186 GetKeymaster1PublicKey(blob, additional_params, error)); in BuildEcKey()
338 const AuthorizationSet& additional_params, in GetKeymaster1PublicKey() argument
344 if (additional_params.GetTagValue(TAG_APPLICATION_ID, &client_id)) client_id_ptr = &client_id; in GetKeymaster1PublicKey()
345 if (additional_params.GetTagValue(TAG_APPLICATION_DATA, &app_data)) app_data_ptr = &app_data; in GetKeymaster1PublicKey()
Dkeymaster_passthrough_key.cpp23 const AuthorizationSet& additional_params, in LoadKey() argument
32 this, &error, additional_params, engine_)); in LoadKey()
Drsa_keymaster1_key.cpp112 const AuthorizationSet& additional_params, in LoadKey() argument
119 RSA_Ptr rsa(engine_->BuildRsaKey(key_material, additional_params, &error)); in LoadKey()
Dec_keymaster1_key.cpp103 const AuthorizationSet& additional_params, in LoadKey() argument
111 engine_->BuildEcKey(key_material, additional_params, &error)); in LoadKey()
/system/core/trusty/keymaster/keymint/
DTrustyKeyMintOperation.cpp59 request.additional_params.push_back(TAG_ASSOCIATED_DATA, input.data(), input.size()); in updateAad()
77 request.additional_params.push_back(TAG_AUTH_TOKEN, tokenAsVec.data(), tokenAsVec.size()); in update()
126 request.additional_params.push_back(TAG_AUTH_TOKEN, tokenAsVec.data(), tokenAsVec.size()); in finish()
129 request.additional_params.push_back(TAG_CONFIRMATION_TOKEN, confirmationToken->data(), in finish()
/system/keymaster/android_keymaster/
Dandroid_keymaster_messages.cpp322 return key_blob_size(key_blob) + additional_params.SerializedSize(); in SerializedSize()
327 return additional_params.Serialize(buf, end); in Serialize()
332 additional_params.Deserialize(buf_ptr, end); in Deserialize()
355 additional_params.SerializedSize(); in SerializedSize()
361 return additional_params.Serialize(buf, end); in Serialize()
367 additional_params.Deserialize(buf_ptr, end); in Deserialize()
393 return sizeof(op_handle) + input.SerializedSize() + additional_params.SerializedSize(); in SerializedSize()
399 if (message_version > 0) buf = additional_params.Serialize(buf, end); in Serialize()
405 if (retval && message_version > 0) retval = additional_params.Deserialize(buf_ptr, end); in Deserialize()
454 size += additional_params.SerializedSize(); in SerializedSize()
[all …]
Dandroid_keymaster.cpp527 context_->ParseKeyBlob(KeymasterKeyBlob(request.key_blob), request.additional_params, &key); in GetKeyCharacteristics()
542 UniquePtr<Key> key = LoadKey(request.key_blob, request.additional_params, &response->error); in BeginOperation()
554 factory->CreateOperation(move(*key), request.additional_params, &response->error)); in BeginOperation()
570 request.purpose, key_id, operation->authorizations(), request.additional_params, in BeginOperation()
576 response->error = operation->Begin(request.additional_params, &response->output_params); in BeginOperation()
611 request.additional_params, request.op_handle, false /* is_begin_operation */); in UpdateOperation()
619 operation->Update(request.additional_params, request.input, &response->output_params, in UpdateOperation()
655 request.additional_params, request.op_handle, false /* is_begin_operation */); in FinishOperation()
662 response->error = operation->Finish(request.additional_params, request.input, request.signature, in FinishOperation()
679 if (!request.additional_params.GetTagValue(TAG_CONFIRMATION_TOKEN, in FinishOperation()
[all …]
/system/keymaster/include/keymaster/contexts/
Dsoft_keymaster_context.h75 const AuthorizationSet& additional_params,
112 const AuthorizationSet& additional_params,
/system/keymaster/include/keymaster/
Dasymmetric_key_factory.h33 const AuthorizationSet& additional_params,
/system/keymaster/ng/
DAndroidKeymaster4Device.cpp341 addClientAndAppData(clientId, appData, &request.additional_params); in getKeyCharacteristics()
387 request.additional_params.Reinitialize(KmParamSet(unwrappingParams)); in importWrappedKey()
413 addClientAndAppData(clientId, appData, &request.additional_params); in exportKey()
495 request.additional_params.Reinitialize(KmParamSet(inParams)); in begin()
498 request.additional_params.push_back( in begin()
520 request.additional_params.Reinitialize(KmParamSet(inParams)); in update()
523 request.additional_params.push_back( in update()
552 request.additional_params.Reinitialize(KmParamSet(inParams)); in finish()
555 request.additional_params.push_back( in finish()

12