Lines Matching defs:alg
35 enum cc_cpp_alg alg;
234 struct crypto_alg *alg = tfm->__crt_alg;
236 container_of(alg, struct cc_crypto_alg,
385 ctx_p->cpp.alg = CC_CPP_AES;
387 ctx_p->cpp.alg = CC_CPP_SM4;
389 dev_dbg(dev, "policy protected key alg: %d slot: %d.\n",
390 ctx_p->cpp.alg, ctx_p->cpp.slot);
940 cc_req.cpp.alg = ctx_p->cpp.alg;
1008 /* Block cipher alg */
1420 struct skcipher_alg *alg;
1426 alg = &t_alg->skcipher_alg;
1428 memcpy(alg, &tmpl->template_skcipher, sizeof(*alg));
1430 snprintf(alg->base.cra_name, CRYPTO_MAX_ALG_NAME, "%s", tmpl->name);
1431 snprintf(alg->base.cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s",
1433 alg->base.cra_module = THIS_MODULE;
1434 alg->base.cra_priority = CC_CRA_PRIO;
1435 alg->base.cra_blocksize = tmpl->blocksize;
1436 alg->base.cra_alignmask = 0;
1437 alg->base.cra_ctxsize = sizeof(struct cc_cipher_ctx);
1439 alg->base.cra_init = cc_cipher_init;
1440 alg->base.cra_exit = cc_cipher_exit;
1441 alg->base.cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_KERN_DRIVER_ONLY;
1466 int alg;
1473 for (alg = 0; alg < ARRAY_SIZE(skcipher_algs); alg++) {
1474 if ((skcipher_algs[alg].min_hw_rev > drvdata->hw_rev) ||
1475 !(drvdata->std_bodies & skcipher_algs[alg].std_body) ||
1476 (drvdata->sec_disabled && skcipher_algs[alg].sec_func))
1479 dev_dbg(dev, "creating %s\n", skcipher_algs[alg].driver_name);
1480 t_alg = cc_create_alg(&skcipher_algs[alg], dev);
1483 dev_err(dev, "%s alg allocation failed\n",
1484 skcipher_algs[alg].driver_name);
1490 skcipher_algs[alg].driver_name);
1492 dev_dbg(dev, "%s alg registration rc = %x\n",
1495 dev_err(dev, "%s alg registration failed\n",