Lines Matching refs:alg

217 				struct crypto_alg *alg)  in pcrypt_init_instance()  argument
219 if (snprintf(inst->alg.cra_driver_name, CRYPTO_MAX_ALG_NAME, in pcrypt_init_instance()
220 "pcrypt(%s)", alg->cra_driver_name) >= CRYPTO_MAX_ALG_NAME) in pcrypt_init_instance()
223 memcpy(inst->alg.cra_name, alg->cra_name, CRYPTO_MAX_ALG_NAME); in pcrypt_init_instance()
225 inst->alg.cra_priority = alg->cra_priority + 100; in pcrypt_init_instance()
226 inst->alg.cra_blocksize = alg->cra_blocksize; in pcrypt_init_instance()
227 inst->alg.cra_alignmask = alg->cra_alignmask; in pcrypt_init_instance()
237 struct aead_alg *alg; in pcrypt_create_aead() local
261 alg = crypto_spawn_aead_alg(&ctx->spawn); in pcrypt_create_aead()
262 err = pcrypt_init_instance(aead_crypto_instance(inst), &alg->base); in pcrypt_create_aead()
266 inst->alg.base.cra_flags |= CRYPTO_ALG_ASYNC; in pcrypt_create_aead()
268 inst->alg.ivsize = crypto_aead_alg_ivsize(alg); in pcrypt_create_aead()
269 inst->alg.maxauthsize = crypto_aead_alg_maxauthsize(alg); in pcrypt_create_aead()
271 inst->alg.base.cra_ctxsize = sizeof(struct pcrypt_aead_ctx); in pcrypt_create_aead()
273 inst->alg.init = pcrypt_aead_init_tfm; in pcrypt_create_aead()
274 inst->alg.exit = pcrypt_aead_exit_tfm; in pcrypt_create_aead()
276 inst->alg.setkey = pcrypt_aead_setkey; in pcrypt_create_aead()
277 inst->alg.setauthsize = pcrypt_aead_setauthsize; in pcrypt_create_aead()
278 inst->alg.encrypt = pcrypt_aead_encrypt; in pcrypt_create_aead()
279 inst->alg.decrypt = pcrypt_aead_decrypt; in pcrypt_create_aead()