Lines Matching refs:algorithm
78 bool check_supported(const KeymasterContext& context, keymaster_algorithm_t algorithm, in check_supported() argument
80 if (context.GetKeyFactory(algorithm) == nullptr) { in check_supported()
115 void GetSupported(const KeymasterContext& context, keymaster_algorithm_t algorithm, in GetSupported() argument
119 if (response == nullptr || !check_supported(context, algorithm, response)) in GetSupported()
122 const OperationFactory* factory = context.GetOperationFactory(algorithm, purpose); in GetSupported()
135 GetSupported(*context_, request.algorithm, request.purpose, in SupportedBlockModes()
141 GetSupported(*context_, request.algorithm, request.purpose, in SupportedPaddingModes()
147 GetSupported(*context_, request.algorithm, request.purpose, &OperationFactory::SupportedDigests, in SupportedDigests()
153 if (response == nullptr || !check_supported(*context_, request.algorithm, response)) in SupportedImportFormats()
158 context_->GetKeyFactory(request.algorithm)->SupportedImportFormats(&count); in SupportedImportFormats()
164 if (response == nullptr || !check_supported(*context_, request.algorithm, response)) in SupportedExportFormats()
169 context_->GetKeyFactory(request.algorithm)->SupportedExportFormats(&count); in SupportedExportFormats()
221 keymaster_algorithm_t algorithm; in GenerateKey() local
224 if (!request.key_description.GetTagValue(TAG_ALGORITHM, &algorithm) || in GenerateKey()
225 !(factory = context_->GetKeyFactory(algorithm))) in GenerateKey()
438 keymaster_algorithm_t algorithm; in ImportKey() local
441 if (!request.key_description.GetTagValue(TAG_ALGORITHM, &algorithm) || in ImportKey()
442 !(factory = context_->GetKeyFactory(algorithm))) in ImportKey()
520 keymaster_algorithm_t algorithm; in ImportWrappedKey() local
522 if (!key_description.GetTagValue(TAG_ALGORITHM, &algorithm) || in ImportWrappedKey()
523 !(factory = context_->GetKeyFactory(algorithm))) { in ImportWrappedKey()