Lines Matching refs:alg
46 struct aead_alg *alg; in aead_geniv_alloc() local
67 alg = crypto_spawn_aead_alg(spawn); in aead_geniv_alloc()
69 ivsize = crypto_aead_alg_ivsize(alg); in aead_geniv_alloc()
70 maxauthsize = crypto_aead_alg_maxauthsize(alg); in aead_geniv_alloc()
77 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in aead_geniv_alloc()
78 "%s(%s)", tmpl->name, alg->base.cra_name) >= in aead_geniv_alloc()
81 if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, in aead_geniv_alloc()
82 "%s(%s)", tmpl->name, alg->base.cra_driver_name) >= in aead_geniv_alloc()
86 inst->alg.base.cra_priority = alg->base.cra_priority; in aead_geniv_alloc()
87 inst->alg.base.cra_blocksize = alg->base.cra_blocksize; in aead_geniv_alloc()
88 inst->alg.base.cra_alignmask = alg->base.cra_alignmask; in aead_geniv_alloc()
89 inst->alg.base.cra_ctxsize = sizeof(struct aead_geniv_ctx); in aead_geniv_alloc()
91 inst->alg.setkey = aead_geniv_setkey; in aead_geniv_alloc()
92 inst->alg.setauthsize = aead_geniv_setauthsize; in aead_geniv_alloc()
94 inst->alg.ivsize = ivsize; in aead_geniv_alloc()
95 inst->alg.maxauthsize = maxauthsize; in aead_geniv_alloc()