Lines Matching refs:fallback_req
307 struct ahash_request fallback_req; member
316 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_init()
317 rctx->fallback_req.base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in n2_hash_async_init()
319 return crypto_ahash_init(&rctx->fallback_req); in n2_hash_async_init()
328 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_update()
329 rctx->fallback_req.base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in n2_hash_async_update()
330 rctx->fallback_req.nbytes = req->nbytes; in n2_hash_async_update()
331 rctx->fallback_req.src = req->src; in n2_hash_async_update()
333 return crypto_ahash_update(&rctx->fallback_req); in n2_hash_async_update()
342 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_final()
343 rctx->fallback_req.base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in n2_hash_async_final()
344 rctx->fallback_req.result = req->result; in n2_hash_async_final()
346 return crypto_ahash_final(&rctx->fallback_req); in n2_hash_async_final()
355 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_finup()
356 rctx->fallback_req.base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in n2_hash_async_finup()
357 rctx->fallback_req.nbytes = req->nbytes; in n2_hash_async_finup()
358 rctx->fallback_req.src = req->src; in n2_hash_async_finup()
359 rctx->fallback_req.result = req->result; in n2_hash_async_finup()
361 return crypto_ahash_finup(&rctx->fallback_req); in n2_hash_async_finup()
538 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_do_async_digest()
539 rctx->fallback_req.base.flags = in n2_do_async_digest()
541 rctx->fallback_req.nbytes = req->nbytes; in n2_do_async_digest()
542 rctx->fallback_req.src = req->src; in n2_do_async_digest()
543 rctx->fallback_req.result = req->result; in n2_do_async_digest()
545 return crypto_ahash_digest(&rctx->fallback_req); in n2_do_async_digest()
639 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hmac_async_digest()
640 rctx->fallback_req.base.flags = in n2_hmac_async_digest()
642 rctx->fallback_req.nbytes = req->nbytes; in n2_hmac_async_digest()
643 rctx->fallback_req.src = req->src; in n2_hmac_async_digest()
644 rctx->fallback_req.result = req->result; in n2_hmac_async_digest()
646 return crypto_ahash_digest(&rctx->fallback_req); in n2_hmac_async_digest()