Lines Matching refs:fallback_req
309 struct ahash_request fallback_req; member
318 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_init()
319 rctx->fallback_req.base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in n2_hash_async_init()
321 return crypto_ahash_init(&rctx->fallback_req); in n2_hash_async_init()
330 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_update()
331 rctx->fallback_req.base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in n2_hash_async_update()
332 rctx->fallback_req.nbytes = req->nbytes; in n2_hash_async_update()
333 rctx->fallback_req.src = req->src; in n2_hash_async_update()
335 return crypto_ahash_update(&rctx->fallback_req); in n2_hash_async_update()
344 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_final()
345 rctx->fallback_req.base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in n2_hash_async_final()
346 rctx->fallback_req.result = req->result; in n2_hash_async_final()
348 return crypto_ahash_final(&rctx->fallback_req); in n2_hash_async_final()
357 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_finup()
358 rctx->fallback_req.base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in n2_hash_async_finup()
359 rctx->fallback_req.nbytes = req->nbytes; in n2_hash_async_finup()
360 rctx->fallback_req.src = req->src; in n2_hash_async_finup()
361 rctx->fallback_req.result = req->result; in n2_hash_async_finup()
363 return crypto_ahash_finup(&rctx->fallback_req); in n2_hash_async_finup()
540 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_do_async_digest()
541 rctx->fallback_req.base.flags = in n2_do_async_digest()
543 rctx->fallback_req.nbytes = req->nbytes; in n2_do_async_digest()
544 rctx->fallback_req.src = req->src; in n2_do_async_digest()
545 rctx->fallback_req.result = req->result; in n2_do_async_digest()
547 return crypto_ahash_digest(&rctx->fallback_req); in n2_do_async_digest()
641 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hmac_async_digest()
642 rctx->fallback_req.base.flags = in n2_hmac_async_digest()
644 rctx->fallback_req.nbytes = req->nbytes; in n2_hmac_async_digest()
645 rctx->fallback_req.src = req->src; in n2_hmac_async_digest()
646 rctx->fallback_req.result = req->result; in n2_hmac_async_digest()
648 return crypto_ahash_digest(&rctx->fallback_req); in n2_hmac_async_digest()