Lines Matching refs:alg

431 	struct caam_aead_alg *alg = container_of(crypto_aead_alg(aead),  in aead_set_sh_desc()  local
442 const bool is_rfc3686 = alg->caam.rfc3686; in aead_set_sh_desc()
463 if (alg->caam.geniv) in aead_set_sh_desc()
602 if (!alg->caam.geniv) in aead_set_sh_desc()
2123 struct caam_aead_alg *alg = container_of(crypto_aead_alg(aead), in init_authenc_job() local
2129 const bool is_rfc3686 = alg->caam.rfc3686; in init_authenc_job()
2150 if (ivsize && (is_rfc3686 || !(alg->caam.geniv && encrypt))) in init_authenc_job()
4346 struct crypto_alg *alg = tfm->__crt_alg; in caam_cra_init() local
4348 container_of(alg, struct caam_crypto_alg, crypto_alg); in caam_cra_init()
4356 struct aead_alg *alg = crypto_aead_alg(tfm); in caam_aead_init() local
4358 container_of(alg, struct caam_aead_alg, aead); in caam_aead_init()
4425 struct crypto_alg *alg; in caam_alg_alloc() local
4433 alg = &t_alg->crypto_alg; in caam_alg_alloc()
4435 snprintf(alg->cra_name, CRYPTO_MAX_ALG_NAME, "%s", template->name); in caam_alg_alloc()
4436 snprintf(alg->cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s", in caam_alg_alloc()
4438 alg->cra_module = THIS_MODULE; in caam_alg_alloc()
4439 alg->cra_init = caam_cra_init; in caam_alg_alloc()
4440 alg->cra_exit = caam_cra_exit; in caam_alg_alloc()
4441 alg->cra_priority = CAAM_CRA_PRIORITY; in caam_alg_alloc()
4442 alg->cra_blocksize = template->blocksize; in caam_alg_alloc()
4443 alg->cra_alignmask = 0; in caam_alg_alloc()
4444 alg->cra_ctxsize = sizeof(struct caam_ctx); in caam_alg_alloc()
4445 alg->cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_KERN_DRIVER_ONLY | in caam_alg_alloc()
4449 alg->cra_type = &crypto_givcipher_type; in caam_alg_alloc()
4450 alg->cra_ablkcipher = template->template_ablkcipher; in caam_alg_alloc()
4453 alg->cra_type = &crypto_ablkcipher_type; in caam_alg_alloc()
4454 alg->cra_ablkcipher = template->template_ablkcipher; in caam_alg_alloc()
4467 struct aead_alg *alg = &t_alg->aead; in caam_aead_alg_init() local
4469 alg->base.cra_module = THIS_MODULE; in caam_aead_alg_init()
4470 alg->base.cra_priority = CAAM_CRA_PRIORITY; in caam_aead_alg_init()
4471 alg->base.cra_ctxsize = sizeof(struct caam_ctx); in caam_aead_alg_init()
4472 alg->base.cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_KERN_DRIVER_ONLY; in caam_aead_alg_init()
4474 alg->init = caam_aead_init; in caam_aead_alg_init()
4475 alg->exit = caam_aead_exit; in caam_aead_alg_init()
4532 struct caam_alg_template *alg = driver_algs + i; in caam_algapi_init() local
4533 u32 alg_sel = alg->class1_alg_type & OP_ALG_ALGSEL_MASK; in caam_algapi_init()
4545 t_alg = caam_alg_alloc(alg); in caam_algapi_init()
4548 pr_warn("%s alg allocation failed\n", alg->driver_name); in caam_algapi_init()