Lines Matching defs:algorithm

85 bool check_supported(const KeymasterContext& context, keymaster_algorithm_t algorithm,
87 if (context.GetKeyFactory(algorithm) == NULL) {
122 void GetSupported(const KeymasterContext& context, keymaster_algorithm_t algorithm,
126 if (response == NULL || !check_supported(context, algorithm, response))
129 const OperationFactory* factory = context.GetOperationFactory(algorithm, purpose);
142 GetSupported(*context_, request.algorithm, request.purpose,
148 GetSupported(*context_, request.algorithm, request.purpose,
154 GetSupported(*context_, request.algorithm, request.purpose, &OperationFactory::SupportedDigests,
160 if (response == NULL || !check_supported(*context_, request.algorithm, response))
165 context_->GetKeyFactory(request.algorithm)->SupportedImportFormats(&count);
171 if (response == NULL || !check_supported(*context_, request.algorithm, response))
176 context_->GetKeyFactory(request.algorithm)->SupportedExportFormats(&count);
191 keymaster_algorithm_t algorithm;
194 if (!request.key_description.GetTagValue(TAG_ALGORITHM, &algorithm) ||
195 !(factory = context_->GetKeyFactory(algorithm)))
226 keymaster_algorithm_t* algorithm, keymaster_error_t* error) {
228 if (!hw_enforced.GetTagValue(TAG_ALGORITHM, algorithm) &&
229 !sw_enforced.GetTagValue(TAG_ALGORITHM, algorithm))
231 KeyFactory* factory = context.GetKeyFactory(*algorithm);
371 keymaster_algorithm_t algorithm;
373 GetKeyFactory(*context_, hw_enforced, sw_enforced, &algorithm, &response->error);
431 keymaster_algorithm_t algorithm;
434 if (!request.key_description.GetTagValue(TAG_ALGORITHM, &algorithm) ||
435 !(factory = context_->GetKeyFactory(algorithm)))
479 keymaster_algorithm_t algorithm;
480 *factory = GetKeyFactory(*context_, *hw_enforced, *sw_enforced, &algorithm, &error);