Lines Matching defs:algorithm
78 bool check_supported(const KeymasterContext& context, keymaster_algorithm_t algorithm,
80 if (context.GetKeyFactory(algorithm) == NULL) {
115 void GetSupported(const KeymasterContext& context, keymaster_algorithm_t algorithm,
119 if (response == NULL || !check_supported(context, algorithm, response))
122 const OperationFactory* factory = context.GetOperationFactory(algorithm, purpose);
135 GetSupported(*context_, request.algorithm, request.purpose,
141 GetSupported(*context_, request.algorithm, request.purpose,
147 GetSupported(*context_, request.algorithm, request.purpose, &OperationFactory::SupportedDigests,
153 if (response == NULL || !check_supported(*context_, request.algorithm, response))
158 context_->GetKeyFactory(request.algorithm)->SupportedImportFormats(&count);
164 if (response == NULL || !check_supported(*context_, request.algorithm, response))
169 context_->GetKeyFactory(request.algorithm)->SupportedExportFormats(&count);
221 keymaster_algorithm_t algorithm;
224 if (!request.key_description.GetTagValue(TAG_ALGORITHM, &algorithm) ||
225 !(factory = context_->GetKeyFactory(algorithm)))
434 keymaster_algorithm_t algorithm;
437 if (!request.key_description.GetTagValue(TAG_ALGORITHM, &algorithm) ||
438 !(factory = context_->GetKeyFactory(algorithm)))
516 keymaster_algorithm_t algorithm;
518 if (!key_description.GetTagValue(TAG_ALGORITHM, &algorithm) ||
519 !(factory = context_->GetKeyFactory(algorithm))) {