Lines Matching refs:fallback_req

80 	ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm);  in sun8i_ce_hash_init()
81 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ce_hash_init()
83 return crypto_ahash_init(&rctx->fallback_req); in sun8i_ce_hash_init()
92 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_export()
93 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ce_hash_export()
95 return crypto_ahash_export(&rctx->fallback_req, out); in sun8i_ce_hash_export()
104 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_import()
105 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ce_hash_import()
107 return crypto_ahash_import(&rctx->fallback_req, in); in sun8i_ce_hash_import()
116 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_final()
117 rctx->fallback_req.base.flags = areq->base.flags & in sun8i_ce_hash_final()
119 rctx->fallback_req.result = areq->result; in sun8i_ce_hash_final()
132 return crypto_ahash_final(&rctx->fallback_req); in sun8i_ce_hash_final()
141 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_update()
142 rctx->fallback_req.base.flags = areq->base.flags & in sun8i_ce_hash_update()
144 rctx->fallback_req.nbytes = areq->nbytes; in sun8i_ce_hash_update()
145 rctx->fallback_req.src = areq->src; in sun8i_ce_hash_update()
147 return crypto_ahash_update(&rctx->fallback_req); in sun8i_ce_hash_update()
156 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_finup()
157 rctx->fallback_req.base.flags = areq->base.flags & in sun8i_ce_hash_finup()
160 rctx->fallback_req.nbytes = areq->nbytes; in sun8i_ce_hash_finup()
161 rctx->fallback_req.src = areq->src; in sun8i_ce_hash_finup()
162 rctx->fallback_req.result = areq->result; in sun8i_ce_hash_finup()
175 return crypto_ahash_finup(&rctx->fallback_req); in sun8i_ce_hash_finup()
184 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_digest_fb()
185 rctx->fallback_req.base.flags = areq->base.flags & in sun8i_ce_hash_digest_fb()
188 rctx->fallback_req.nbytes = areq->nbytes; in sun8i_ce_hash_digest_fb()
189 rctx->fallback_req.src = areq->src; in sun8i_ce_hash_digest_fb()
190 rctx->fallback_req.result = areq->result; in sun8i_ce_hash_digest_fb()
203 return crypto_ahash_digest(&rctx->fallback_req); in sun8i_ce_hash_digest_fb()