Lines Matching defs:alg

35 	enum cc_cpp_alg alg;
231 struct crypto_alg *alg = tfm->__crt_alg;
233 container_of(alg, struct cc_crypto_alg,
382 ctx_p->cpp.alg = CC_CPP_AES;
384 ctx_p->cpp.alg = CC_CPP_SM4;
386 dev_dbg(dev, "policy protected key alg: %d slot: %d.\n",
387 ctx_p->cpp.alg, ctx_p->cpp.slot);
937 cc_req.cpp.alg = ctx_p->cpp.alg;
1005 /* Block cipher alg */
1417 struct skcipher_alg *alg;
1423 alg = &t_alg->skcipher_alg;
1425 memcpy(alg, &tmpl->template_skcipher, sizeof(*alg));
1427 snprintf(alg->base.cra_name, CRYPTO_MAX_ALG_NAME, "%s", tmpl->name);
1428 snprintf(alg->base.cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s",
1430 alg->base.cra_module = THIS_MODULE;
1431 alg->base.cra_priority = CC_CRA_PRIO;
1432 alg->base.cra_blocksize = tmpl->blocksize;
1433 alg->base.cra_alignmask = 0;
1434 alg->base.cra_ctxsize = sizeof(struct cc_cipher_ctx);
1436 alg->base.cra_init = cc_cipher_init;
1437 alg->base.cra_exit = cc_cipher_exit;
1438 alg->base.cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_KERN_DRIVER_ONLY;
1463 int alg;
1470 for (alg = 0; alg < ARRAY_SIZE(skcipher_algs); alg++) {
1471 if ((skcipher_algs[alg].min_hw_rev > drvdata->hw_rev) ||
1472 !(drvdata->std_bodies & skcipher_algs[alg].std_body) ||
1473 (drvdata->sec_disabled && skcipher_algs[alg].sec_func))
1476 dev_dbg(dev, "creating %s\n", skcipher_algs[alg].driver_name);
1477 t_alg = cc_create_alg(&skcipher_algs[alg], dev);
1480 dev_err(dev, "%s alg allocation failed\n",
1481 skcipher_algs[alg].driver_name);
1487 skcipher_algs[alg].driver_name);
1489 dev_dbg(dev, "%s alg registration rc = %x\n",
1492 dev_err(dev, "%s alg registration failed\n",