• Home
  • Raw
  • Download

Lines Matching refs:algorithm

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