Lines Matching refs:tctx

304 		struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm);  in omap_sham_copy_hash_omap4()  local
305 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_copy_hash_omap4()
451 struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); in omap_sham_write_ctrl_omap4() local
452 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_write_ctrl_omap4()
941 struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); in omap_sham_init() local
990 if (tctx->flags & BIT(FLAGS_HMAC)) { in omap_sham_init()
992 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_init()
1101 struct omap_sham_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in omap_sham_finish_hmac() local
1102 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_finish_hmac()
1217 struct omap_sham_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in omap_sham_final_shash() local
1230 return crypto_shash_tfm_digest(tctx->fallback, ctx->buffer + offset, in omap_sham_final_shash()
1286 struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); in omap_sham_setkey() local
1287 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_setkey()
1292 err = crypto_shash_setkey(tctx->fallback, key, keylen); in omap_sham_setkey()
1322 struct omap_sham_ctx *tctx = crypto_tfm_ctx(tfm); in omap_sham_cra_init_alg() local
1326 tctx->fallback = crypto_alloc_shash(alg_name, 0, in omap_sham_cra_init_alg()
1328 if (IS_ERR(tctx->fallback)) { in omap_sham_cra_init_alg()
1331 return PTR_ERR(tctx->fallback); in omap_sham_cra_init_alg()
1338 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_cra_init_alg()
1339 tctx->flags |= BIT(FLAGS_HMAC); in omap_sham_cra_init_alg()
1345 crypto_free_shash(tctx->fallback); in omap_sham_cra_init_alg()
1391 struct omap_sham_ctx *tctx = crypto_tfm_ctx(tfm); in omap_sham_cra_exit() local
1393 crypto_free_shash(tctx->fallback); in omap_sham_cra_exit()
1394 tctx->fallback = NULL; in omap_sham_cra_exit()
1396 if (tctx->flags & BIT(FLAGS_HMAC)) { in omap_sham_cra_exit()
1397 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_cra_exit()