Lines Matching refs:fallback_req
45 struct ahash_request fallback_req; member
119 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_init()
120 ahash_request_set_callback(&rctx->fallback_req, in tegra_sha_fallback_init()
124 return crypto_ahash_init(&rctx->fallback_req); in tegra_sha_fallback_init()
133 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_update()
134 ahash_request_set_callback(&rctx->fallback_req, in tegra_sha_fallback_update()
137 ahash_request_set_crypt(&rctx->fallback_req, req->src, NULL, req->nbytes); in tegra_sha_fallback_update()
139 return crypto_ahash_update(&rctx->fallback_req); in tegra_sha_fallback_update()
148 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_final()
149 ahash_request_set_callback(&rctx->fallback_req, in tegra_sha_fallback_final()
152 ahash_request_set_crypt(&rctx->fallback_req, NULL, req->result, 0); in tegra_sha_fallback_final()
154 return crypto_ahash_final(&rctx->fallback_req); in tegra_sha_fallback_final()
163 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_finup()
164 ahash_request_set_callback(&rctx->fallback_req, in tegra_sha_fallback_finup()
167 ahash_request_set_crypt(&rctx->fallback_req, req->src, req->result, in tegra_sha_fallback_finup()
170 return crypto_ahash_finup(&rctx->fallback_req); in tegra_sha_fallback_finup()
179 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_digest()
180 ahash_request_set_callback(&rctx->fallback_req, in tegra_sha_fallback_digest()
183 ahash_request_set_crypt(&rctx->fallback_req, req->src, req->result, in tegra_sha_fallback_digest()
186 return crypto_ahash_digest(&rctx->fallback_req); in tegra_sha_fallback_digest()
195 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_import()
196 ahash_request_set_callback(&rctx->fallback_req, in tegra_sha_fallback_import()
200 return crypto_ahash_import(&rctx->fallback_req, in); in tegra_sha_fallback_import()
209 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_export()
210 ahash_request_set_callback(&rctx->fallback_req, in tegra_sha_fallback_export()
214 return crypto_ahash_export(&rctx->fallback_req, out); in tegra_sha_fallback_export()