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()
231 response->error = factory->GenerateKey(request.key_description, &key_blob, in GenerateKey()
275 OperationFactory* factory = key_factory->GetOperationFactory(request.purpose); in BeginOperation() local
276 if (!factory) return; in BeginOperation()
279 factory->CreateOperation(move(*key), request.additional_params, &response->error)); in BeginOperation()
435 const KeyFactory* factory = nullptr; in ImportKey() local
438 !(factory = context_->GetKeyFactory(algorithm))) in ImportKey()
443 response->error = factory->ImportKey(request.key_description, request.key_format, in ImportKey()
475 const KeyFactory** factory, UniquePtr<Key>* key) { in LoadKey() argument
481 if (factory) *factory = (*key)->key_factory(); in LoadKey()
517 const KeyFactory* factory = nullptr; in ImportWrappedKey() local
519 !(factory = context_->GetKeyFactory(algorithm))) { in ImportWrappedKey()
524 factory->ImportKey(key_description, key_format, KeymasterKeyBlob(secret_key), &key_blob, in ImportWrappedKey()