Lines Matching refs:sg_in
167 struct scatterlist sg_in[2], prealloc_sg; in ceph_aes_encrypt() local
184 sg_init_table(sg_in, 2); in ceph_aes_encrypt()
185 sg_set_buf(&sg_in[0], src, src_len); in ceph_aes_encrypt()
186 sg_set_buf(&sg_in[1], pad, zero_padding); in ceph_aes_encrypt()
204 ret = crypto_blkcipher_encrypt(&desc, sg_out.sgl, sg_in, in ceph_aes_encrypt()
227 struct scatterlist sg_in[3], prealloc_sg; in ceph_aes_encrypt2() local
244 sg_init_table(sg_in, 3); in ceph_aes_encrypt2()
245 sg_set_buf(&sg_in[0], src1, src1_len); in ceph_aes_encrypt2()
246 sg_set_buf(&sg_in[1], src2, src2_len); in ceph_aes_encrypt2()
247 sg_set_buf(&sg_in[2], pad, zero_padding); in ceph_aes_encrypt2()
267 ret = crypto_blkcipher_encrypt(&desc, sg_out.sgl, sg_in, in ceph_aes_encrypt2()
289 struct sg_table sg_in; in ceph_aes_decrypt() local
305 ret = setup_sgtable(&sg_in, &prealloc_sg, src, src_len); in ceph_aes_decrypt()
320 ret = crypto_blkcipher_decrypt(&desc, sg_out, sg_in.sgl, src_len); in ceph_aes_decrypt()
343 teardown_sgtable(&sg_in); in ceph_aes_decrypt()
354 struct sg_table sg_in; in ceph_aes_decrypt2() local
371 ret = setup_sgtable(&sg_in, &prealloc_sg, src, src_len); in ceph_aes_decrypt2()
386 ret = crypto_blkcipher_decrypt(&desc, sg_out, sg_in.sgl, src_len); in ceph_aes_decrypt2()
420 teardown_sgtable(&sg_in); in ceph_aes_decrypt2()