Lines Matching refs:fallback_req
300 struct ahash_request fallback_req; member
309 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_init()
310 rctx->fallback_req.base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in n2_hash_async_init()
312 return crypto_ahash_init(&rctx->fallback_req); in n2_hash_async_init()
321 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_update()
322 rctx->fallback_req.base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in n2_hash_async_update()
323 rctx->fallback_req.nbytes = req->nbytes; in n2_hash_async_update()
324 rctx->fallback_req.src = req->src; in n2_hash_async_update()
326 return crypto_ahash_update(&rctx->fallback_req); in n2_hash_async_update()
335 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_final()
336 rctx->fallback_req.base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in n2_hash_async_final()
337 rctx->fallback_req.result = req->result; in n2_hash_async_final()
339 return crypto_ahash_final(&rctx->fallback_req); in n2_hash_async_final()
348 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_finup()
349 rctx->fallback_req.base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in n2_hash_async_finup()
350 rctx->fallback_req.nbytes = req->nbytes; in n2_hash_async_finup()
351 rctx->fallback_req.src = req->src; in n2_hash_async_finup()
352 rctx->fallback_req.result = req->result; in n2_hash_async_finup()
354 return crypto_ahash_finup(&rctx->fallback_req); in n2_hash_async_finup()
526 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_do_async_digest()
527 rctx->fallback_req.base.flags = in n2_do_async_digest()
529 rctx->fallback_req.nbytes = req->nbytes; in n2_do_async_digest()
530 rctx->fallback_req.src = req->src; in n2_do_async_digest()
531 rctx->fallback_req.result = req->result; in n2_do_async_digest()
533 return crypto_ahash_digest(&rctx->fallback_req); in n2_do_async_digest()
627 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hmac_async_digest()
628 rctx->fallback_req.base.flags = in n2_hmac_async_digest()
630 rctx->fallback_req.nbytes = req->nbytes; in n2_hmac_async_digest()
631 rctx->fallback_req.src = req->src; in n2_hmac_async_digest()
632 rctx->fallback_req.result = req->result; in n2_hmac_async_digest()
634 return crypto_ahash_digest(&rctx->fallback_req); in n2_hmac_async_digest()