• Home
  • Raw
  • Download

Lines Matching refs:subreq

1313 		struct skcipher_request *subreq = skcipher_request_ctx(req);  in sa_cipher_run()  local
1315 skcipher_request_set_tfm(subreq, ctx->fallback.skcipher); in sa_cipher_run()
1316 skcipher_request_set_callback(subreq, req->base.flags, in sa_cipher_run()
1319 skcipher_request_set_crypt(subreq, req->src, req->dst, in sa_cipher_run()
1322 return crypto_skcipher_encrypt(subreq); in sa_cipher_run()
1324 return crypto_skcipher_decrypt(subreq); in sa_cipher_run()
1416 struct ahash_request *subreq = &rctx->fallback_req; in sa_sha_run() local
1419 ahash_request_set_tfm(subreq, ctx->fallback.ahash); in sa_sha_run()
1420 subreq->base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sa_sha_run()
1422 crypto_ahash_init(subreq); in sa_sha_run()
1424 subreq->nbytes = auth_len; in sa_sha_run()
1425 subreq->src = req->src; in sa_sha_run()
1426 subreq->result = req->result; in sa_sha_run()
1428 ret |= crypto_ahash_update(subreq); in sa_sha_run()
1430 subreq->nbytes = 0; in sa_sha_run()
1432 ret |= crypto_ahash_final(subreq); in sa_sha_run()
1618 struct ahash_request *subreq = &rctx->fallback_req; in sa_sha_export() local
1620 ahash_request_set_tfm(subreq, ctx->fallback.ahash); in sa_sha_export()
1621 subreq->base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sa_sha_export()
1623 return crypto_ahash_export(subreq, out); in sa_sha_export()
1926 struct aead_request *subreq = aead_request_ctx(req); in sa_aead_run() local
1929 aead_request_set_tfm(subreq, ctx->fallback.aead); in sa_aead_run()
1930 aead_request_set_callback(subreq, req->base.flags, in sa_aead_run()
1932 aead_request_set_crypt(subreq, req->src, req->dst, in sa_aead_run()
1934 aead_request_set_ad(subreq, req->assoclen); in sa_aead_run()
1936 ret = enc ? crypto_aead_encrypt(subreq) : in sa_aead_run()
1937 crypto_aead_decrypt(subreq); in sa_aead_run()