• Home
  • Raw
  • Download

Lines Matching refs:tctx

309 		struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm);  in omap_sham_copy_hash_omap4()  local
310 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_copy_hash_omap4()
456 struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); in omap_sham_write_ctrl_omap4() local
457 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_write_ctrl_omap4()
946 struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); in omap_sham_init() local
995 if (tctx->flags & BIT(FLAGS_HMAC)) { in omap_sham_init()
997 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_init()
1102 struct omap_sham_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in omap_sham_finish_hmac() local
1103 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_finish_hmac()
1218 struct omap_sham_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in omap_sham_final_shash() local
1231 return crypto_shash_tfm_digest(tctx->fallback, ctx->buffer + offset, in omap_sham_final_shash()
1287 struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); in omap_sham_setkey() local
1288 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_setkey()
1293 err = crypto_shash_setkey(tctx->fallback, key, keylen); in omap_sham_setkey()
1323 struct omap_sham_ctx *tctx = crypto_tfm_ctx(tfm); in omap_sham_cra_init_alg() local
1327 tctx->fallback = crypto_alloc_shash(alg_name, 0, in omap_sham_cra_init_alg()
1329 if (IS_ERR(tctx->fallback)) { in omap_sham_cra_init_alg()
1332 return PTR_ERR(tctx->fallback); in omap_sham_cra_init_alg()
1339 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_cra_init_alg()
1340 tctx->flags |= BIT(FLAGS_HMAC); in omap_sham_cra_init_alg()
1346 crypto_free_shash(tctx->fallback); in omap_sham_cra_init_alg()
1352 tctx->enginectx.op.do_one_request = omap_sham_hash_one_req; in omap_sham_cra_init_alg()
1353 tctx->enginectx.op.prepare_request = omap_sham_prepare_request; in omap_sham_cra_init_alg()
1354 tctx->enginectx.op.unprepare_request = NULL; in omap_sham_cra_init_alg()
1396 struct omap_sham_ctx *tctx = crypto_tfm_ctx(tfm); in omap_sham_cra_exit() local
1398 crypto_free_shash(tctx->fallback); in omap_sham_cra_exit()
1399 tctx->fallback = NULL; in omap_sham_cra_exit()
1401 if (tctx->flags & BIT(FLAGS_HMAC)) { in omap_sham_cra_exit()
1402 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_cra_exit()