/crypto/ |
D | algif_skcipher.c | 60 struct af_alg_async_req *areq; in _skcipher_recvmsg() local 71 areq = af_alg_alloc_areq(sk, sizeof(struct af_alg_async_req) + in _skcipher_recvmsg() 73 if (IS_ERR(areq)) in _skcipher_recvmsg() 74 return PTR_ERR(areq); in _skcipher_recvmsg() 77 err = af_alg_get_rsgl(sk, msg, flags, areq, -1, &len); in _skcipher_recvmsg() 96 areq->tsgl_entries = af_alg_count_tsgl(sk, len, 0); in _skcipher_recvmsg() 97 if (!areq->tsgl_entries) in _skcipher_recvmsg() 98 areq->tsgl_entries = 1; in _skcipher_recvmsg() 99 areq->tsgl = sock_kmalloc(sk, array_size(sizeof(*areq->tsgl), in _skcipher_recvmsg() 100 areq->tsgl_entries), in _skcipher_recvmsg() [all …]
|
D | algif_aead.c | 100 struct af_alg_async_req *areq; in _aead_recvmsg() local 153 areq = af_alg_alloc_areq(sk, sizeof(struct af_alg_async_req) + in _aead_recvmsg() 155 if (IS_ERR(areq)) in _aead_recvmsg() 156 return PTR_ERR(areq); in _aead_recvmsg() 159 err = af_alg_get_rsgl(sk, msg, flags, areq, outlen, &usedpages); in _aead_recvmsg() 213 rsgl_src = areq->first_rsgl.sgl.sg; in _aead_recvmsg() 227 areq->first_rsgl.sgl.sg, processed); in _aead_recvmsg() 245 areq->first_rsgl.sgl.sg, outlen); in _aead_recvmsg() 250 areq->tsgl_entries = af_alg_count_tsgl(sk, processed, in _aead_recvmsg() 252 if (!areq->tsgl_entries) in _aead_recvmsg() [all …]
|
D | af_alg.c | 650 static void af_alg_free_areq_sgls(struct af_alg_async_req *areq) in af_alg_free_areq_sgls() argument 652 struct sock *sk = areq->sk; in af_alg_free_areq_sgls() 660 list_for_each_entry_safe(rsgl, tmp, &areq->rsgl_list, list) { in af_alg_free_areq_sgls() 664 if (rsgl != &areq->first_rsgl) in af_alg_free_areq_sgls() 668 tsgl = areq->tsgl; in af_alg_free_areq_sgls() 670 for_each_sg(tsgl, sg, areq->tsgl_entries, i) { in af_alg_free_areq_sgls() 676 sock_kfree_s(sk, tsgl, areq->tsgl_entries * sizeof(*tsgl)); in af_alg_free_areq_sgls() 1017 void af_alg_free_resources(struct af_alg_async_req *areq) in af_alg_free_resources() argument 1019 struct sock *sk = areq->sk; in af_alg_free_resources() 1021 af_alg_free_areq_sgls(areq); in af_alg_free_resources() [all …]
|
D | chacha20poly1305.c | 120 static void chacha_decrypt_done(struct crypto_async_request *areq, int err) in chacha_decrypt_done() argument 122 async_done_continue(areq->data, err, poly_verify_tag); in chacha_decrypt_done() 166 static void poly_tail_done(struct crypto_async_request *areq, int err) in poly_tail_done() argument 168 async_done_continue(areq->data, err, poly_tail_continue); in poly_tail_done() 196 static void poly_cipherpad_done(struct crypto_async_request *areq, int err) in poly_cipherpad_done() argument 198 async_done_continue(areq->data, err, poly_tail); in poly_cipherpad_done() 225 static void poly_cipher_done(struct crypto_async_request *areq, int err) in poly_cipher_done() argument 227 async_done_continue(areq->data, err, poly_cipherpad); in poly_cipher_done() 255 static void poly_adpad_done(struct crypto_async_request *areq, int err) in poly_adpad_done() argument 257 async_done_continue(areq->data, err, poly_cipher); in poly_adpad_done() [all …]
|
D | ahash.c | 318 struct ahash_request *areq = req->data; in ahash_op_unaligned_done() local 321 ahash_notify_einprogress(areq); in ahash_op_unaligned_done() 335 ahash_restore_req(areq, err); in ahash_op_unaligned_done() 338 areq->base.complete(&areq->base, err); in ahash_op_unaligned_done() 418 struct ahash_request *areq = req->data; in ahash_def_finup_done2() local 423 ahash_restore_req(areq, err); in ahash_def_finup_done2() 425 areq->base.complete(&areq->base, err); in ahash_def_finup_done2() 446 struct ahash_request *areq = req->data; in ahash_def_finup_done1() local 449 ahash_notify_einprogress(areq); in ahash_def_finup_done1() 453 areq->base.flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP; in ahash_def_finup_done1() [all …]
|
D | gcm.c | 206 static void gcm_hash_len_done(struct crypto_async_request *areq, int err); 255 static void gcm_hash_len_done(struct crypto_async_request *areq, int err) in gcm_hash_len_done() argument 257 struct aead_request *req = areq->data; in gcm_hash_len_done() 276 static void gcm_hash_crypt_remain_done(struct crypto_async_request *areq, in gcm_hash_crypt_remain_done() argument 279 struct aead_request *req = areq->data; in gcm_hash_crypt_remain_done() 307 static void gcm_hash_crypt_done(struct crypto_async_request *areq, int err) in gcm_hash_crypt_done() argument 309 struct aead_request *req = areq->data; in gcm_hash_crypt_done() 335 static void gcm_hash_assoc_remain_done(struct crypto_async_request *areq, in gcm_hash_assoc_remain_done() argument 338 struct aead_request *req = areq->data; in gcm_hash_assoc_remain_done() 364 static void gcm_hash_assoc_done(struct crypto_async_request *areq, int err) in gcm_hash_assoc_done() argument [all …]
|
D | cts.c | 92 static void cts_cbc_crypt_done(struct crypto_async_request *areq, int err) in cts_cbc_crypt_done() argument 94 struct skcipher_request *req = areq->data; in cts_cbc_crypt_done() 132 static void crypto_cts_encrypt_done(struct crypto_async_request *areq, int err) in crypto_cts_encrypt_done() argument 134 struct skcipher_request *req = areq->data; in crypto_cts_encrypt_done() 226 static void crypto_cts_decrypt_done(struct crypto_async_request *areq, int err) in crypto_cts_decrypt_done() argument 228 struct skcipher_request *req = areq->data; in crypto_cts_decrypt_done()
|
D | xts.c | 147 static void cts_done(struct crypto_async_request *areq, int err) in cts_done() argument 149 struct skcipher_request *req = areq->data; in cts_done() 201 static void encrypt_done(struct crypto_async_request *areq, int err) in encrypt_done() argument 203 struct skcipher_request *req = areq->data; in encrypt_done() 221 static void decrypt_done(struct crypto_async_request *areq, int err) in decrypt_done() argument 223 struct skcipher_request *req = areq->data; in decrypt_done()
|
D | authenc.c | 122 static void authenc_geniv_ahash_done(struct crypto_async_request *areq, int err) in authenc_geniv_ahash_done() argument 124 struct aead_request *req = areq->data; in authenc_geniv_ahash_done() 176 struct aead_request *areq = req->data; in crypto_authenc_encrypt_done() local 181 err = crypto_authenc_genicv(areq, 0); in crypto_authenc_encrypt_done() 184 authenc_request_complete(areq, err); in crypto_authenc_encrypt_done() 274 static void authenc_verify_ahash_done(struct crypto_async_request *areq, in authenc_verify_ahash_done() argument 277 struct aead_request *req = areq->data; in authenc_verify_ahash_done()
|
D | authencesn.c | 120 static void authenc_esn_geniv_ahash_done(struct crypto_async_request *areq, in authenc_esn_geniv_ahash_done() argument 123 struct aead_request *req = areq->data; in authenc_esn_geniv_ahash_done() 169 struct aead_request *areq = req->data; in crypto_authenc_esn_encrypt_done() local 172 err = crypto_authenc_esn_genicv(areq, 0); in crypto_authenc_esn_encrypt_done() 174 authenc_esn_request_complete(areq, err); in crypto_authenc_esn_encrypt_done() 271 static void authenc_esn_verify_ahash_done(struct crypto_async_request *areq, in authenc_esn_verify_ahash_done() argument 274 struct aead_request *req = areq->data; in authenc_esn_verify_ahash_done()
|
D | essiv.c | 151 static void essiv_skcipher_done(struct crypto_async_request *areq, int err) in essiv_skcipher_done() argument 153 struct skcipher_request *req = areq->data; in essiv_skcipher_done() 186 static void essiv_aead_done(struct crypto_async_request *areq, int err) in essiv_aead_done() argument 188 struct aead_request *req = areq->data; in essiv_aead_done()
|
D | cryptd.c | 785 static void cryptd_aead_encrypt(struct crypto_async_request *areq, int err) in cryptd_aead_encrypt() argument 787 struct cryptd_aead_ctx *ctx = crypto_tfm_ctx(areq->tfm); in cryptd_aead_encrypt() 791 req = container_of(areq, struct aead_request, base); in cryptd_aead_encrypt() 795 static void cryptd_aead_decrypt(struct crypto_async_request *areq, int err) in cryptd_aead_decrypt() argument 797 struct cryptd_aead_ctx *ctx = crypto_tfm_ctx(areq->tfm); in cryptd_aead_decrypt() 801 req = container_of(areq, struct aead_request, base); in cryptd_aead_decrypt()
|
D | lrw.c | 209 static void crypt_done(struct crypto_async_request *areq, int err) in crypt_done() argument 211 struct skcipher_request *req = areq->data; in crypt_done()
|
D | pcrypt.c | 59 static void pcrypt_aead_done(struct crypto_async_request *areq, int err) in pcrypt_aead_done() argument 61 struct aead_request *req = areq->data; in pcrypt_aead_done()
|
D | ccm.c | 235 static void crypto_ccm_encrypt_done(struct crypto_async_request *areq, int err) in crypto_ccm_encrypt_done() argument 237 struct aead_request *req = areq->data; in crypto_ccm_encrypt_done() 331 static void crypto_ccm_decrypt_done(struct crypto_async_request *areq, in crypto_ccm_decrypt_done() argument 334 struct aead_request *req = areq->data; in crypto_ccm_decrypt_done()
|
D | adiantum.c | 319 static void adiantum_streamcipher_done(struct crypto_async_request *areq, in adiantum_streamcipher_done() argument 322 struct skcipher_request *req = areq->data; in adiantum_streamcipher_done()
|