Lines Matching refs:fallback_req

308 	struct ahash_request		fallback_req;  member
317 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_init()
318 rctx->fallback_req.base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in n2_hash_async_init()
320 return crypto_ahash_init(&rctx->fallback_req); in n2_hash_async_init()
329 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_update()
330 rctx->fallback_req.base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in n2_hash_async_update()
331 rctx->fallback_req.nbytes = req->nbytes; in n2_hash_async_update()
332 rctx->fallback_req.src = req->src; in n2_hash_async_update()
334 return crypto_ahash_update(&rctx->fallback_req); in n2_hash_async_update()
343 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_final()
344 rctx->fallback_req.base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in n2_hash_async_final()
345 rctx->fallback_req.result = req->result; in n2_hash_async_final()
347 return crypto_ahash_final(&rctx->fallback_req); in n2_hash_async_final()
356 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hash_async_finup()
357 rctx->fallback_req.base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in n2_hash_async_finup()
358 rctx->fallback_req.nbytes = req->nbytes; in n2_hash_async_finup()
359 rctx->fallback_req.src = req->src; in n2_hash_async_finup()
360 rctx->fallback_req.result = req->result; in n2_hash_async_finup()
362 return crypto_ahash_finup(&rctx->fallback_req); in n2_hash_async_finup()
539 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_do_async_digest()
540 rctx->fallback_req.base.flags = in n2_do_async_digest()
542 rctx->fallback_req.nbytes = req->nbytes; in n2_do_async_digest()
543 rctx->fallback_req.src = req->src; in n2_do_async_digest()
544 rctx->fallback_req.result = req->result; in n2_do_async_digest()
546 return crypto_ahash_digest(&rctx->fallback_req); in n2_do_async_digest()
640 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in n2_hmac_async_digest()
641 rctx->fallback_req.base.flags = in n2_hmac_async_digest()
643 rctx->fallback_req.nbytes = req->nbytes; in n2_hmac_async_digest()
644 rctx->fallback_req.src = req->src; in n2_hmac_async_digest()
645 rctx->fallback_req.result = req->result; in n2_hmac_async_digest()
647 return crypto_ahash_digest(&rctx->fallback_req); in n2_hmac_async_digest()