Lines Matching refs:alg
4137 struct crypto_alg *alg = tfm->__crt_alg; in caam_cra_init() local
4139 container_of(alg, struct caam_crypto_alg, crypto_alg); in caam_cra_init()
4201 struct crypto_alg *alg; in caam_alg_alloc() local
4209 alg = &t_alg->crypto_alg; in caam_alg_alloc()
4211 snprintf(alg->cra_name, CRYPTO_MAX_ALG_NAME, "%s", template->name); in caam_alg_alloc()
4212 snprintf(alg->cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s", in caam_alg_alloc()
4214 alg->cra_module = THIS_MODULE; in caam_alg_alloc()
4215 alg->cra_init = caam_cra_init; in caam_alg_alloc()
4216 alg->cra_exit = caam_cra_exit; in caam_alg_alloc()
4217 alg->cra_priority = CAAM_CRA_PRIORITY; in caam_alg_alloc()
4218 alg->cra_blocksize = template->blocksize; in caam_alg_alloc()
4219 alg->cra_alignmask = 0; in caam_alg_alloc()
4220 alg->cra_ctxsize = sizeof(struct caam_ctx); in caam_alg_alloc()
4221 alg->cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_KERN_DRIVER_ONLY | in caam_alg_alloc()
4225 alg->cra_type = &crypto_givcipher_type; in caam_alg_alloc()
4226 alg->cra_ablkcipher = template->template_ablkcipher; in caam_alg_alloc()
4229 alg->cra_type = &crypto_ablkcipher_type; in caam_alg_alloc()
4230 alg->cra_ablkcipher = template->template_ablkcipher; in caam_alg_alloc()
4233 alg->cra_type = &crypto_aead_type; in caam_alg_alloc()
4234 alg->cra_aead = template->template_aead; in caam_alg_alloc()