Lines Matching refs:fallback_req
44 struct ahash_request fallback_req; member
118 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_init()
119 rctx->fallback_req.base.flags = req->base.flags & in tegra_sha_fallback_init()
122 return crypto_ahash_init(&rctx->fallback_req); in tegra_sha_fallback_init()
131 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_update()
132 rctx->fallback_req.base.flags = req->base.flags & in tegra_sha_fallback_update()
134 rctx->fallback_req.nbytes = req->nbytes; in tegra_sha_fallback_update()
135 rctx->fallback_req.src = req->src; in tegra_sha_fallback_update()
137 return crypto_ahash_update(&rctx->fallback_req); in tegra_sha_fallback_update()
146 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_final()
147 rctx->fallback_req.base.flags = req->base.flags & in tegra_sha_fallback_final()
149 rctx->fallback_req.result = req->result; in tegra_sha_fallback_final()
151 return crypto_ahash_final(&rctx->fallback_req); in tegra_sha_fallback_final()
160 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_finup()
161 rctx->fallback_req.base.flags = req->base.flags & in tegra_sha_fallback_finup()
164 rctx->fallback_req.nbytes = req->nbytes; in tegra_sha_fallback_finup()
165 rctx->fallback_req.src = req->src; in tegra_sha_fallback_finup()
166 rctx->fallback_req.result = req->result; in tegra_sha_fallback_finup()
168 return crypto_ahash_finup(&rctx->fallback_req); in tegra_sha_fallback_finup()
177 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_digest()
178 rctx->fallback_req.base.flags = req->base.flags & in tegra_sha_fallback_digest()
181 rctx->fallback_req.nbytes = req->nbytes; in tegra_sha_fallback_digest()
182 rctx->fallback_req.src = req->src; in tegra_sha_fallback_digest()
183 rctx->fallback_req.result = req->result; in tegra_sha_fallback_digest()
185 return crypto_ahash_digest(&rctx->fallback_req); in tegra_sha_fallback_digest()
194 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_import()
195 rctx->fallback_req.base.flags = req->base.flags & in tegra_sha_fallback_import()
198 return crypto_ahash_import(&rctx->fallback_req, in); in tegra_sha_fallback_import()
207 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_export()
208 rctx->fallback_req.base.flags = req->base.flags & in tegra_sha_fallback_export()
211 return crypto_ahash_export(&rctx->fallback_req, out); in tegra_sha_fallback_export()