/kernel/linux/linux-5.10/net/tls/ |
D | tls_device_fallback.c | 55 struct scatterlist sg_in[3]; in tls_enc_record() local 82 sg_init_table(sg_in, ARRAY_SIZE(sg_in)); in tls_enc_record() 84 sg_set_buf(sg_in, aad, TLS_AAD_SPACE_SIZE); in tls_enc_record() 86 chain_to_walk(sg_in + 1, in); in tls_enc_record() 113 aead_request_set_crypt(aead_req, sg_in, sg_out, len, iv); in tls_enc_record() 141 struct crypto_aead *aead, struct scatterlist *sg_in, in tls_enc_records() argument 148 scatterwalk_start(&in, sg_in); in tls_enc_records() 228 static int fill_sg_in(struct scatterlist *sg_in, in fill_sg_in() argument 275 sg_set_page(sg_in + i, skb_frag_page(frag), in fill_sg_in() 281 sg_in[i].length += remaining; in fill_sg_in() [all …]
|
/kernel/linux/linux-5.10/drivers/block/ |
D | cryptoloop.c | 103 struct scatterlist sg_in; in cryptoloop_transfer() local 115 sg_init_table(&sg_in, 1); in cryptoloop_transfer() 136 sg_set_page(&sg_in, in_page, sz, in_offs); in cryptoloop_transfer() 139 skcipher_request_set_crypt(req, &sg_in, &sg_out, sz, iv); in cryptoloop_transfer()
|
/kernel/linux/linux-5.10/security/keys/encrypted-keys/ |
D | encrypted.c | 450 struct scatterlist sg_in[2]; in derived_key_encrypt() local 466 sg_init_table(sg_in, 2); in derived_key_encrypt() 467 sg_set_buf(&sg_in[0], epayload->decrypted_data, in derived_key_encrypt() 469 sg_set_page(&sg_in[1], ZERO_PAGE(0), AES_BLOCK_SIZE, 0); in derived_key_encrypt() 475 skcipher_request_set_crypt(req, sg_in, sg_out, encrypted_datalen, iv); in derived_key_encrypt() 552 struct scatterlist sg_in[1]; in derived_key_decrypt() local 573 sg_init_table(sg_in, 1); in derived_key_decrypt() 575 sg_set_buf(sg_in, epayload->encrypted_data, encrypted_datalen); in derived_key_decrypt() 581 skcipher_request_set_crypt(req, sg_in, sg_out, encrypted_datalen, iv); in derived_key_decrypt()
|
/kernel/linux/linux-5.10/drivers/crypto/qce/ |
D | dma.h | 39 int qce_dma_prep_sgs(struct qce_dma_data *dma, struct scatterlist *sg_in,
|
/kernel/linux/linux-5.10/drivers/crypto/rockchip/ |
D | rk3288_crypto.c | 155 struct scatterlist *sg_in, *sg_out; in rk_unload_data() local 157 sg_in = dev->aligned ? dev->sg_src : &dev->sg_tmp; in rk_unload_data() 158 dma_unmap_sg(dev->dev, sg_in, 1, DMA_TO_DEVICE); in rk_unload_data()
|
/kernel/linux/linux-5.10/drivers/md/ |
D | dm-crypt.c | 85 struct scatterlist sg_in[4]; member 529 sg = crypt_get_sg_data(cc, dmreq->sg_in); in crypt_iv_lmk_gen() 679 sg = crypt_get_sg_data(cc, dmreq->sg_in); in crypt_iv_tcw_gen() 978 sg2 = crypt_get_sg_data(cc, dmreq->sg_in); in crypt_iv_elephant() 1320 sg_init_table(dmreq->sg_in, 4); in crypt_convert_block_aead() 1321 sg_set_buf(&dmreq->sg_in[0], sector, sizeof(uint64_t)); in crypt_convert_block_aead() 1322 sg_set_buf(&dmreq->sg_in[1], org_iv, cc->iv_size); in crypt_convert_block_aead() 1323 sg_set_page(&dmreq->sg_in[2], bv_in.bv_page, cc->sector_size, bv_in.bv_offset); in crypt_convert_block_aead() 1324 sg_set_buf(&dmreq->sg_in[3], tag, cc->integrity_tag_size); in crypt_convert_block_aead() 1350 aead_request_set_crypt(req, dmreq->sg_in, dmreq->sg_out, in crypt_convert_block_aead() [all …]
|
/kernel/linux/linux-5.10/include/crypto/ |
D | drbg.h | 128 struct scatterlist sg_in, sg_out; /* CTR mode SGLs */ member
|
/kernel/linux/linux-5.10/crypto/ |
D | drbg.c | 1807 sg_init_table(&drbg->sg_in, 1); in drbg_init_sym_kernel() 1838 struct scatterlist *sg_in = &drbg->sg_in, *sg_out = &drbg->sg_out; in drbg_kcapi_sym_ctr() local 1844 sg_set_buf(sg_in, inbuf, inlen); in drbg_kcapi_sym_ctr() 1849 sg_set_buf(sg_in, drbg->outscratchpad, scratchpad_use); in drbg_kcapi_sym_ctr() 1856 skcipher_request_set_crypt(drbg->ctr_req, sg_in, sg_out, in drbg_kcapi_sym_ctr()
|