/crypto/ |
D | cts.c | 62 struct skcipher_request subreq; member 106 struct skcipher_request *subreq = &rctx->subreq; in cts_cbc_encrypt() local 125 skcipher_request_set_callback(subreq, req->base.flags & in cts_cbc_encrypt() 128 skcipher_request_set_crypt(subreq, sg, sg, bsize, req->iv); in cts_cbc_encrypt() 129 return crypto_skcipher_encrypt(subreq); in cts_cbc_encrypt() 152 struct skcipher_request *subreq = &rctx->subreq; in crypto_cts_encrypt() local 157 skcipher_request_set_tfm(subreq, ctx->child); in crypto_cts_encrypt() 163 skcipher_request_set_callback(subreq, req->base.flags, in crypto_cts_encrypt() 166 skcipher_request_set_crypt(subreq, req->src, req->dst, nbytes, in crypto_cts_encrypt() 168 return crypto_skcipher_encrypt(subreq); in crypto_cts_encrypt() [all …]
|
D | seqiv.c | 25 struct aead_request *subreq = aead_request_ctx(req); in seqiv_aead_encrypt_complete2() local 35 memcpy(req->iv, subreq->iv, crypto_aead_ivsize(geniv)); in seqiv_aead_encrypt_complete2() 38 kzfree(subreq->iv); in seqiv_aead_encrypt_complete2() 54 struct aead_request *subreq = aead_request_ctx(req); in seqiv_aead_encrypt() local 64 aead_request_set_tfm(subreq, ctx->child); in seqiv_aead_encrypt() 97 aead_request_set_callback(subreq, req->base.flags, compl, data); in seqiv_aead_encrypt() 98 aead_request_set_crypt(subreq, req->dst, req->dst, in seqiv_aead_encrypt() 100 aead_request_set_ad(subreq, req->assoclen + ivsize); in seqiv_aead_encrypt() 105 err = crypto_aead_encrypt(subreq); in seqiv_aead_encrypt() 115 struct aead_request *subreq = aead_request_ctx(req); in seqiv_aead_decrypt() local [all …]
|
D | echainiv.c | 30 struct aead_request *subreq = aead_request_ctx(req); in echainiv_encrypt() local 40 aead_request_set_tfm(subreq, ctx->child); in echainiv_encrypt() 59 aead_request_set_callback(subreq, req->base.flags, in echainiv_encrypt() 61 aead_request_set_crypt(subreq, req->dst, req->dst, in echainiv_encrypt() 63 aead_request_set_ad(subreq, req->assoclen); in echainiv_encrypt() 82 return crypto_aead_encrypt(subreq); in echainiv_encrypt() 89 struct aead_request *subreq = aead_request_ctx(req); in echainiv_decrypt() local 97 aead_request_set_tfm(subreq, ctx->child); in echainiv_decrypt() 102 aead_request_set_callback(subreq, req->base.flags, compl, data); in echainiv_decrypt() 103 aead_request_set_crypt(subreq, req->src, req->dst, in echainiv_decrypt() [all …]
|
D | xts.c | 37 struct skcipher_request subreq; member 98 req = &rctx->subreq; in xor_tweak() 169 struct skcipher_request *subreq = &rctx->subreq; in cts_final() local 185 skcipher_request_set_tfm(subreq, ctx->child); in cts_final() 186 skcipher_request_set_callback(subreq, req->base.flags, cts_done, req); in cts_final() 187 skcipher_request_set_crypt(subreq, rctx->tail, rctx->tail, in cts_final() 190 err = crypt(subreq); in cts_final() 208 rctx->subreq.base.flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP; in encrypt_done() 228 rctx->subreq.base.flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP; in decrypt_done() 245 struct skcipher_request *subreq = &rctx->subreq; in init_crypt() local [all …]
|
D | simd.c | 70 struct skcipher_request *subreq; in simd_skcipher_encrypt() local 73 subreq = skcipher_request_ctx(req); in simd_skcipher_encrypt() 74 *subreq = *req; in simd_skcipher_encrypt() 82 skcipher_request_set_tfm(subreq, child); in simd_skcipher_encrypt() 84 return crypto_skcipher_encrypt(subreq); in simd_skcipher_encrypt() 91 struct skcipher_request *subreq; in simd_skcipher_decrypt() local 94 subreq = skcipher_request_ctx(req); in simd_skcipher_decrypt() 95 *subreq = *req; in simd_skcipher_decrypt() 103 skcipher_request_set_tfm(subreq, child); in simd_skcipher_decrypt() 105 return crypto_skcipher_decrypt(subreq); in simd_skcipher_decrypt() [all …]
|
D | lrw.c | 54 struct skcipher_request subreq; member 155 req = &rctx->subreq; in xor_tweak() 216 rctx->subreq.base.flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP; in crypt_done() 227 struct skcipher_request *subreq = &rctx->subreq; in init_crypt() local 229 skcipher_request_set_tfm(subreq, ctx->child); in init_crypt() 230 skcipher_request_set_callback(subreq, req->base.flags, crypt_done, req); in init_crypt() 232 skcipher_request_set_crypt(subreq, req->dst, req->dst, in init_crypt() 245 struct skcipher_request *subreq = &rctx->subreq; in encrypt() local 249 crypto_skcipher_encrypt(subreq) ?: in encrypt() 256 struct skcipher_request *subreq = &rctx->subreq; in decrypt() local [all …]
|
D | essiv.c | 162 struct skcipher_request *subreq = skcipher_request_ctx(req); in essiv_skcipher_crypt() local 166 skcipher_request_set_tfm(subreq, tctx->u.skcipher); in essiv_skcipher_crypt() 167 skcipher_request_set_crypt(subreq, req->src, req->dst, req->cryptlen, in essiv_skcipher_crypt() 169 skcipher_request_set_callback(subreq, skcipher_request_flags(req), in essiv_skcipher_crypt() 172 return enc ? crypto_skcipher_encrypt(subreq) : in essiv_skcipher_crypt() 173 crypto_skcipher_decrypt(subreq); in essiv_skcipher_crypt() 201 struct aead_request *subreq = &rctx->aead_req; in essiv_aead_crypt() local 259 aead_request_set_tfm(subreq, tctx->u.aead); in essiv_aead_crypt() 260 aead_request_set_ad(subreq, req->assoclen); in essiv_aead_crypt() 261 aead_request_set_callback(subreq, aead_request_flags(req), in essiv_aead_crypt() [all …]
|
D | ctr.c | 24 struct skcipher_request subreq CRYPTO_MINALIGN_ATTR; 203 struct skcipher_request *subreq = &rctx->subreq; in crypto_rfc3686_crypt() local 214 skcipher_request_set_tfm(subreq, child); in crypto_rfc3686_crypt() 215 skcipher_request_set_callback(subreq, req->base.flags, in crypto_rfc3686_crypt() 217 skcipher_request_set_crypt(subreq, req->src, req->dst, in crypto_rfc3686_crypt() 220 return crypto_skcipher_encrypt(subreq); in crypto_rfc3686_crypt()
|
D | gcm.c | 41 struct aead_request subreq; member 55 struct aead_request subreq; member 766 struct aead_request *subreq = &rctx->subreq; in crypto_rfc4106_crypt() local 769 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4106_crypt() 791 aead_request_set_tfm(subreq, child); in crypto_rfc4106_crypt() 792 aead_request_set_callback(subreq, req->base.flags, req->base.complete, in crypto_rfc4106_crypt() 794 aead_request_set_crypt(subreq, rctx->src, in crypto_rfc4106_crypt() 797 aead_request_set_ad(subreq, req->assoclen - 8); in crypto_rfc4106_crypt() 799 return subreq; in crypto_rfc4106_crypt() 993 struct aead_request *subreq = &rctx->subreq; in crypto_rfc4543_crypt() local [all …]
|
D | cryptd.c | 291 SYNC_SKCIPHER_REQUEST_ON_STACK(subreq, child); in cryptd_skcipher_encrypt() 296 skcipher_request_set_sync_tfm(subreq, child); in cryptd_skcipher_encrypt() 297 skcipher_request_set_callback(subreq, CRYPTO_TFM_REQ_MAY_SLEEP, in cryptd_skcipher_encrypt() 299 skcipher_request_set_crypt(subreq, req->src, req->dst, req->cryptlen, in cryptd_skcipher_encrypt() 302 err = crypto_skcipher_encrypt(subreq); in cryptd_skcipher_encrypt() 303 skcipher_request_zero(subreq); in cryptd_skcipher_encrypt() 319 SYNC_SKCIPHER_REQUEST_ON_STACK(subreq, child); in cryptd_skcipher_decrypt() 324 skcipher_request_set_sync_tfm(subreq, child); in cryptd_skcipher_decrypt() 325 skcipher_request_set_callback(subreq, CRYPTO_TFM_REQ_MAY_SLEEP, in cryptd_skcipher_decrypt() 327 skcipher_request_set_crypt(subreq, req->src, req->dst, req->cryptlen, in cryptd_skcipher_decrypt() [all …]
|
D | ccm.c | 38 struct aead_request subreq; member 645 struct aead_request *subreq = &rctx->subreq; in crypto_rfc4309_crypt() local 650 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4309_crypt() 675 aead_request_set_tfm(subreq, child); in crypto_rfc4309_crypt() 676 aead_request_set_callback(subreq, req->base.flags, req->base.complete, in crypto_rfc4309_crypt() 678 aead_request_set_crypt(subreq, rctx->src, in crypto_rfc4309_crypt() 681 aead_request_set_ad(subreq, req->assoclen - 8); in crypto_rfc4309_crypt() 683 return subreq; in crypto_rfc4309_crypt()
|
D | skcipher.c | 726 struct ablkcipher_request *subreq = skcipher_request_ctx(req); in skcipher_crypt_ablkcipher() local 728 ablkcipher_request_set_tfm(subreq, *ctx); in skcipher_crypt_ablkcipher() 729 ablkcipher_request_set_callback(subreq, skcipher_request_flags(req), in skcipher_crypt_ablkcipher() 731 ablkcipher_request_set_crypt(subreq, req->src, req->dst, req->cryptlen, in skcipher_crypt_ablkcipher() 734 return crypt(subreq); in skcipher_crypt_ablkcipher()
|