Home
last modified time | relevance | path

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

/linux-2.6.39/crypto/
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()
165 struct ablkcipher_request *subreq = skcipher_givcrypt_reqctx(req); in async_chainiv_givencrypt_tail() local
169 memcpy(subreq->info, ctx->iv, ivsize); in async_chainiv_givencrypt_tail()
171 ctx->err = crypto_ablkcipher_encrypt(subreq); in async_chainiv_givencrypt_tail()
[all …]
Dseqiv.c34 struct ablkcipher_request *subreq = skcipher_givcrypt_reqctx(req); in seqiv_complete2() local
44 memcpy(req->creq.info, subreq->info, crypto_ablkcipher_ivsize(geniv)); in seqiv_complete2()
47 kfree(subreq->info); in seqiv_complete2()
60 struct aead_request *subreq = aead_givcrypt_reqctx(req); in seqiv_aead_complete2() local
70 memcpy(req->areq.iv, subreq->iv, crypto_aead_ivsize(geniv)); in seqiv_aead_complete2()
73 kfree(subreq->iv); in seqiv_aead_complete2()
102 struct ablkcipher_request *subreq = skcipher_givcrypt_reqctx(req); in seqiv_givencrypt() local
109 ablkcipher_request_set_tfm(subreq, skcipher_geniv_cipher(geniv)); in seqiv_givencrypt()
129 ablkcipher_request_set_callback(subreq, req->creq.base.flags, complete, in seqiv_givencrypt()
131 ablkcipher_request_set_crypt(subreq, req->creq.src, req->creq.dst, in seqiv_givencrypt()
[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, complete, in eseqiv_givencrypt()
124 ablkcipher_request_set_crypt(subreq, reqctx->src, dst, in eseqiv_givencrypt()
138 err = crypto_ablkcipher_encrypt(subreq); in eseqiv_givencrypt()
Dgcm.c50 struct aead_request subreq; member
900 struct aead_request *subreq = aead_request_ctx(req); in crypto_rfc4106_crypt() local
904 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4106_crypt()
910 aead_request_set_tfm(subreq, child); in crypto_rfc4106_crypt()
911 aead_request_set_callback(subreq, req->base.flags, req->base.complete, in crypto_rfc4106_crypt()
913 aead_request_set_crypt(subreq, req->src, req->dst, req->cryptlen, iv); in crypto_rfc4106_crypt()
914 aead_request_set_assoc(subreq, req->assoc, req->assoclen); in crypto_rfc4106_crypt()
916 return subreq; in crypto_rfc4106_crypt()
1111 struct aead_request *subreq = &rctx->subreq; in crypto_rfc4543_crypt() local
1150 aead_request_set_tfm(subreq, ctx->child); in crypto_rfc4543_crypt()
[all …]
Dccm.c686 struct aead_request *subreq = aead_request_ctx(req); in crypto_rfc4309_crypt() local
690 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4309_crypt()
699 aead_request_set_tfm(subreq, child); in crypto_rfc4309_crypt()
700 aead_request_set_callback(subreq, req->base.flags, req->base.complete, in crypto_rfc4309_crypt()
702 aead_request_set_crypt(subreq, req->src, req->dst, req->cryptlen, iv); in crypto_rfc4309_crypt()
703 aead_request_set_assoc(subreq, req->assoc, req->assoclen); in crypto_rfc4309_crypt()
705 return subreq; in crypto_rfc4309_crypt()