Home
last modified time | relevance | path

Searched refs:subreq (Results 1 – 11 of 11) sorted by relevance

/linux-4.4.14/crypto/
Dechainiv.c62 struct aead_request *subreq = aead_request_ctx(req); in echainiv_encrypt_complete2() local
75 echainiv_write_iv(subreq->iv, ivsize); in echainiv_encrypt_complete2()
77 if (req->iv != subreq->iv) in echainiv_encrypt_complete2()
78 memcpy(req->iv, subreq->iv, ivsize); in echainiv_encrypt_complete2()
81 if (req->iv != subreq->iv) in echainiv_encrypt_complete2()
82 kzfree(subreq->iv); in echainiv_encrypt_complete2()
98 struct aead_request *subreq = aead_request_ctx(req); in echainiv_encrypt() local
108 aead_request_set_tfm(subreq, ctx->child); in echainiv_encrypt()
137 aead_request_set_callback(subreq, req->base.flags, compl, data); in echainiv_encrypt()
138 aead_request_set_crypt(subreq, req->dst, req->dst, in echainiv_encrypt()
[all …]
Dseqiv.c37 struct ablkcipher_request *subreq = skcipher_givcrypt_reqctx(req); in seqiv_complete2() local
47 memcpy(req->creq.info, subreq->info, crypto_ablkcipher_ivsize(geniv)); in seqiv_complete2()
50 kfree(subreq->info); in seqiv_complete2()
63 struct aead_request *subreq = aead_request_ctx(req); in seqiv_aead_encrypt_complete2() local
73 memcpy(req->iv, subreq->iv, crypto_aead_ivsize(geniv)); in seqiv_aead_encrypt_complete2()
76 kzfree(subreq->iv); in seqiv_aead_encrypt_complete2()
106 struct ablkcipher_request *subreq = skcipher_givcrypt_reqctx(req); in seqiv_givencrypt() local
113 ablkcipher_request_set_tfm(subreq, skcipher_geniv_cipher(geniv)); in seqiv_givencrypt()
133 ablkcipher_request_set_callback(subreq, req->creq.base.flags, compl, in seqiv_givencrypt()
135 ablkcipher_request_set_crypt(subreq, req->creq.src, req->creq.dst, in seqiv_givencrypt()
[all …]
Dchainiv.c52 struct ablkcipher_request *subreq = skcipher_givcrypt_reqctx(req); in chainiv_givencrypt() local
56 ablkcipher_request_set_tfm(subreq, skcipher_geniv_cipher(geniv)); in chainiv_givencrypt()
57 ablkcipher_request_set_callback(subreq, req->creq.base.flags & in chainiv_givencrypt()
61 ablkcipher_request_set_crypt(subreq, req->creq.src, req->creq.dst, in chainiv_givencrypt()
69 memcpy(subreq->info, ctx->iv, ivsize); in chainiv_givencrypt()
71 err = crypto_ablkcipher_encrypt(subreq); in chainiv_givencrypt()
75 memcpy(ctx->iv, subreq->info, ivsize); in chainiv_givencrypt()
158 struct ablkcipher_request *subreq = skcipher_givcrypt_reqctx(req); in async_chainiv_givencrypt_tail() local
162 memcpy(subreq->info, ctx->iv, ivsize); in async_chainiv_givencrypt_tail()
164 ctx->err = crypto_ablkcipher_encrypt(subreq); in async_chainiv_givencrypt_tail()
[all …]
Deseqiv.c70 struct ablkcipher_request *subreq; in eseqiv_givencrypt() local
85 subreq = (void *)(reqctx->tail + ctx->reqoff); in eseqiv_givencrypt()
86 ablkcipher_request_set_tfm(subreq, skcipher_geniv_cipher(geniv)); in eseqiv_givencrypt()
108 ablkcipher_request_set_callback(subreq, req->creq.base.flags, compl, in eseqiv_givencrypt()
124 ablkcipher_request_set_crypt(subreq, reqctx->src, dst, in eseqiv_givencrypt()
138 err = crypto_ablkcipher_encrypt(subreq); in eseqiv_givencrypt()
Dskcipher.c150 struct ablkcipher_request *subreq = skcipher_request_ctx(req); in skcipher_crypt_ablkcipher() local
152 ablkcipher_request_set_tfm(subreq, *ctx); in skcipher_crypt_ablkcipher()
153 ablkcipher_request_set_callback(subreq, skcipher_request_flags(req), in skcipher_crypt_ablkcipher()
155 ablkcipher_request_set_crypt(subreq, req->src, req->dst, req->cryptlen, in skcipher_crypt_ablkcipher()
158 return crypt(subreq); in skcipher_crypt_ablkcipher()
Dgcm.c44 struct aead_request subreq; member
58 struct aead_request subreq; member
828 struct aead_request *subreq = &rctx->subreq; in crypto_rfc4106_crypt() local
831 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4106_crypt()
853 aead_request_set_tfm(subreq, child); in crypto_rfc4106_crypt()
854 aead_request_set_callback(subreq, req->base.flags, req->base.complete, in crypto_rfc4106_crypt()
856 aead_request_set_crypt(subreq, rctx->src, in crypto_rfc4106_crypt()
859 aead_request_set_ad(subreq, req->assoclen - 8); in crypto_rfc4106_crypt()
861 return subreq; in crypto_rfc4106_crypt()
1054 struct aead_request *subreq = &rctx->subreq; in crypto_rfc4543_crypt() local
[all …]
Dctr.c35 struct ablkcipher_request subreq CRYPTO_MINALIGN_ATTR;
286 struct ablkcipher_request *subreq = &rctx->subreq; in crypto_rfc3686_crypt() local
297 ablkcipher_request_set_tfm(subreq, child); in crypto_rfc3686_crypt()
298 ablkcipher_request_set_callback(subreq, req->base.flags, in crypto_rfc3686_crypt()
300 ablkcipher_request_set_crypt(subreq, req->src, req->dst, req->nbytes, in crypto_rfc3686_crypt()
303 return crypto_ablkcipher_encrypt(subreq); in crypto_rfc3686_crypt()
Dccm.c42 struct aead_request subreq; member
708 struct aead_request *subreq = &rctx->subreq; in crypto_rfc4309_crypt() local
713 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4309_crypt()
738 aead_request_set_tfm(subreq, child); in crypto_rfc4309_crypt()
739 aead_request_set_callback(subreq, req->base.flags, req->base.complete, in crypto_rfc4309_crypt()
741 aead_request_set_crypt(subreq, rctx->src, in crypto_rfc4309_crypt()
744 aead_request_set_ad(subreq, req->assoclen - 8); in crypto_rfc4309_crypt()
746 return subreq; in crypto_rfc4309_crypt()
/linux-4.4.14/fs/nfs/
Dpagelist.c1032 struct nfs_page *subreq; in __nfs_pageio_add_request() local
1038 subreq = req; in __nfs_pageio_add_request()
1039 bytes_left = subreq->wb_bytes; in __nfs_pageio_add_request()
1040 offset = subreq->wb_offset; in __nfs_pageio_add_request()
1041 pgbase = subreq->wb_pgbase; in __nfs_pageio_add_request()
1044 if (!nfs_pageio_do_add_request(desc, subreq)) { in __nfs_pageio_add_request()
1046 WARN_ON_ONCE(subreq->wb_bytes != bytes_left); in __nfs_pageio_add_request()
1047 WARN_ON_ONCE(subreq->wb_offset != offset); in __nfs_pageio_add_request()
1048 WARN_ON_ONCE(subreq->wb_pgbase != pgbase); in __nfs_pageio_add_request()
1063 WARN_ON_ONCE(subreq->wb_bytes + subreq->wb_pgbase > PAGE_SIZE); in __nfs_pageio_add_request()
[all …]
Dwrite.c370 struct nfs_page *subreq = destroy_list; in nfs_destroy_unlinked_subrequests() local
372 destroy_list = (subreq->wb_this_page == old_head) ? in nfs_destroy_unlinked_subrequests()
373 NULL : subreq->wb_this_page; in nfs_destroy_unlinked_subrequests()
375 WARN_ON_ONCE(old_head != subreq->wb_head); in nfs_destroy_unlinked_subrequests()
378 subreq->wb_head = subreq; in nfs_destroy_unlinked_subrequests()
379 subreq->wb_this_page = subreq; in nfs_destroy_unlinked_subrequests()
383 nfs_unlock_request(subreq); in nfs_destroy_unlinked_subrequests()
385 if (!test_bit(PG_TEARDOWN, &subreq->wb_flags)) { in nfs_destroy_unlinked_subrequests()
389 nfs_page_group_clear_bits(subreq); in nfs_destroy_unlinked_subrequests()
392 if (test_and_clear_bit(PG_INODE_REF, &subreq->wb_flags)) in nfs_destroy_unlinked_subrequests()
[all …]
/linux-4.4.14/drivers/crypto/
Dpicoxcell_crypto.c526 struct aead_request *subreq = aead_request_ctx(req); in spacc_aead_do_fallback() local
528 aead_request_set_tfm(subreq, ctx->sw_cipher); in spacc_aead_do_fallback()
529 aead_request_set_callback(subreq, req->base.flags, in spacc_aead_do_fallback()
531 aead_request_set_crypt(subreq, req->src, req->dst, req->cryptlen, in spacc_aead_do_fallback()
533 aead_request_set_ad(subreq, req->assoclen); in spacc_aead_do_fallback()
535 return is_encrypt ? crypto_aead_encrypt(subreq) : in spacc_aead_do_fallback()
536 crypto_aead_decrypt(subreq); in spacc_aead_do_fallback()