/crypto/ |
D | cts.c | 62 struct skcipher_request subreq; member 102 struct skcipher_request *subreq = &rctx->subreq; in cts_cbc_encrypt() local 121 skcipher_request_set_callback(subreq, req->base.flags & in cts_cbc_encrypt() 124 skcipher_request_set_crypt(subreq, sg, sg, bsize, req->iv); in cts_cbc_encrypt() 125 return crypto_skcipher_encrypt(subreq); in cts_cbc_encrypt() 148 struct skcipher_request *subreq = &rctx->subreq; in crypto_cts_encrypt() local 153 skcipher_request_set_tfm(subreq, ctx->child); in crypto_cts_encrypt() 159 skcipher_request_set_callback(subreq, req->base.flags, in crypto_cts_encrypt() 162 skcipher_request_set_crypt(subreq, req->src, req->dst, nbytes, in crypto_cts_encrypt() 164 return crypto_skcipher_encrypt(subreq); in crypto_cts_encrypt() [all …]
|
D | seqiv.c | 23 struct aead_request *subreq = aead_request_ctx(req); in seqiv_aead_encrypt_complete2() local 33 memcpy(req->iv, subreq->iv, crypto_aead_ivsize(geniv)); in seqiv_aead_encrypt_complete2() 36 kfree_sensitive(subreq->iv); in seqiv_aead_encrypt_complete2() 52 struct aead_request *subreq = aead_request_ctx(req); in seqiv_aead_encrypt() local 62 aead_request_set_tfm(subreq, ctx->child); in seqiv_aead_encrypt() 95 aead_request_set_callback(subreq, req->base.flags, compl, data); in seqiv_aead_encrypt() 96 aead_request_set_crypt(subreq, req->dst, req->dst, in seqiv_aead_encrypt() 98 aead_request_set_ad(subreq, req->assoclen + ivsize); in seqiv_aead_encrypt() 103 err = crypto_aead_encrypt(subreq); in seqiv_aead_encrypt() 113 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 | 38 struct skcipher_request subreq; member 94 req = &rctx->subreq; in xts_xor_tweak() 166 struct skcipher_request *subreq = &rctx->subreq; in xts_cts_final() local 182 skcipher_request_set_tfm(subreq, ctx->child); in xts_cts_final() 183 skcipher_request_set_callback(subreq, req->base.flags, xts_cts_done, in xts_cts_final() 185 skcipher_request_set_crypt(subreq, rctx->tail, rctx->tail, in xts_cts_final() 188 err = crypt(subreq); in xts_cts_final() 206 rctx->subreq.base.flags &= CRYPTO_TFM_REQ_MAY_BACKLOG; in xts_encrypt_done() 226 rctx->subreq.base.flags &= CRYPTO_TFM_REQ_MAY_BACKLOG; in xts_decrypt_done() 245 struct skcipher_request *subreq = &rctx->subreq; in xts_init_crypt() local [all …]
|
D | simd.c | 66 struct skcipher_request *subreq; in simd_skcipher_encrypt() local 69 subreq = skcipher_request_ctx(req); in simd_skcipher_encrypt() 70 *subreq = *req; in simd_skcipher_encrypt() 78 skcipher_request_set_tfm(subreq, child); in simd_skcipher_encrypt() 80 return crypto_skcipher_encrypt(subreq); in simd_skcipher_encrypt() 87 struct skcipher_request *subreq; in simd_skcipher_decrypt() local 90 subreq = skcipher_request_ctx(req); in simd_skcipher_decrypt() 91 *subreq = *req; in simd_skcipher_decrypt() 99 skcipher_request_set_tfm(subreq, child); in simd_skcipher_decrypt() 101 return crypto_skcipher_decrypt(subreq); in simd_skcipher_decrypt() [all …]
|
D | lrw.c | 54 struct skcipher_request subreq; member 153 req = &rctx->subreq; in lrw_xor_tweak() 215 rctx->subreq.base.flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP; in lrw_crypt_done() 227 struct skcipher_request *subreq = &rctx->subreq; in lrw_init_crypt() local 229 skcipher_request_set_tfm(subreq, ctx->child); in lrw_init_crypt() 230 skcipher_request_set_callback(subreq, req->base.flags, lrw_crypt_done, in lrw_init_crypt() 233 skcipher_request_set_crypt(subreq, req->dst, req->dst, in lrw_init_crypt() 246 struct skcipher_request *subreq = &rctx->subreq; in lrw_encrypt() local 250 crypto_skcipher_encrypt(subreq) ?: in lrw_encrypt() 257 struct skcipher_request *subreq = &rctx->subreq; in lrw_decrypt() local [all …]
|
D | essiv.c | 145 struct skcipher_request *subreq = skcipher_request_ctx(req); in essiv_skcipher_crypt() local 149 skcipher_request_set_tfm(subreq, tctx->u.skcipher); in essiv_skcipher_crypt() 150 skcipher_request_set_crypt(subreq, req->src, req->dst, req->cryptlen, in essiv_skcipher_crypt() 152 skcipher_request_set_callback(subreq, skcipher_request_flags(req), in essiv_skcipher_crypt() 155 return enc ? crypto_skcipher_encrypt(subreq) : in essiv_skcipher_crypt() 156 crypto_skcipher_decrypt(subreq); in essiv_skcipher_crypt() 188 struct aead_request *subreq = &rctx->aead_req; in essiv_aead_crypt() local 246 aead_request_set_tfm(subreq, tctx->u.aead); in essiv_aead_crypt() 247 aead_request_set_ad(subreq, req->assoclen); in essiv_aead_crypt() 248 aead_request_set_callback(subreq, aead_request_flags(req), in essiv_aead_crypt() [all …]
|
D | ctr.c | 25 struct skcipher_request subreq CRYPTO_MINALIGN_ATTR; 198 struct skcipher_request *subreq = &rctx->subreq; in crypto_rfc3686_crypt() local 209 skcipher_request_set_tfm(subreq, child); in crypto_rfc3686_crypt() 210 skcipher_request_set_callback(subreq, req->base.flags, in crypto_rfc3686_crypt() 212 skcipher_request_set_crypt(subreq, req->src, req->dst, in crypto_rfc3686_crypt() 215 return crypto_skcipher_encrypt(subreq); in crypto_rfc3686_crypt()
|
D | gcm.c | 40 struct aead_request subreq; member 54 struct aead_request subreq; member 727 struct aead_request *subreq = &rctx->subreq; in crypto_rfc4106_crypt() local 730 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4106_crypt() 752 aead_request_set_tfm(subreq, child); in crypto_rfc4106_crypt() 753 aead_request_set_callback(subreq, req->base.flags, req->base.complete, in crypto_rfc4106_crypt() 755 aead_request_set_crypt(subreq, rctx->src, in crypto_rfc4106_crypt() 758 aead_request_set_ad(subreq, req->assoclen - 8); in crypto_rfc4106_crypt() 760 return subreq; in crypto_rfc4106_crypt() 933 struct aead_request *subreq = &rctx->subreq; in crypto_rfc4543_crypt() local [all …]
|
D | cryptd.c | 262 struct skcipher_request *subreq = &rctx->req; in cryptd_skcipher_encrypt() local 268 skcipher_request_set_tfm(subreq, child); in cryptd_skcipher_encrypt() 269 skcipher_request_set_callback(subreq, CRYPTO_TFM_REQ_MAY_SLEEP, in cryptd_skcipher_encrypt() 271 skcipher_request_set_crypt(subreq, req->src, req->dst, req->cryptlen, in cryptd_skcipher_encrypt() 274 err = crypto_skcipher_encrypt(subreq); in cryptd_skcipher_encrypt() 275 skcipher_request_zero(subreq); in cryptd_skcipher_encrypt() 290 struct skcipher_request *subreq = &rctx->req; in cryptd_skcipher_decrypt() local 296 skcipher_request_set_tfm(subreq, child); in cryptd_skcipher_decrypt() 297 skcipher_request_set_callback(subreq, CRYPTO_TFM_REQ_MAY_SLEEP, in cryptd_skcipher_decrypt() 299 skcipher_request_set_crypt(subreq, req->src, req->dst, req->cryptlen, in cryptd_skcipher_decrypt() [all …]
|
D | ccm.c | 37 struct aead_request subreq; member 607 struct aead_request *subreq = &rctx->subreq; in crypto_rfc4309_crypt() local 612 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4309_crypt() 637 aead_request_set_tfm(subreq, child); in crypto_rfc4309_crypt() 638 aead_request_set_callback(subreq, req->base.flags, req->base.complete, in crypto_rfc4309_crypt() 640 aead_request_set_crypt(subreq, rctx->src, in crypto_rfc4309_crypt() 643 aead_request_set_ad(subreq, req->assoclen - 8); in crypto_rfc4309_crypt() 645 return subreq; in crypto_rfc4309_crypt()
|