Lines Matching refs:factory
122 const OperationFactory* factory = context.GetOperationFactory(algorithm, purpose); in GetSupported() local
123 if (!factory) { in GetSupported()
129 const T* supported = (factory->*get_supported_method)(&count); in GetSupported()
222 const KeyFactory* factory = nullptr; in GenerateKey() local
225 !(factory = context_->GetKeyFactory(algorithm))) in GenerateKey()
235 response->error = factory->GenerateKey(request.key_description, &key_blob, in GenerateKey()
279 OperationFactory* factory = key_factory->GetOperationFactory(request.purpose); in BeginOperation() local
280 if (!factory) return; in BeginOperation()
283 factory->CreateOperation(move(*key), request.additional_params, &response->error)); in BeginOperation()
439 const KeyFactory* factory = nullptr; in ImportKey() local
442 !(factory = context_->GetKeyFactory(algorithm))) in ImportKey()
447 response->error = factory->ImportKey(request.key_description, request.key_format, in ImportKey()
479 const KeyFactory** factory, UniquePtr<Key>* key) { in LoadKey() argument
485 if (factory) *factory = (*key)->key_factory(); in LoadKey()
521 const KeyFactory* factory = nullptr; in ImportWrappedKey() local
523 !(factory = context_->GetKeyFactory(algorithm))) { in ImportWrappedKey()
528 factory->ImportKey(key_description, key_format, KeymasterKeyBlob(secret_key), &key_blob, in ImportWrappedKey()