Lines Matching refs:sg_in
163 struct scatterlist sg_in[2], prealloc_sg; in ceph_aes_encrypt() local
180 sg_init_table(sg_in, 2); in ceph_aes_encrypt()
181 sg_set_buf(&sg_in[0], src, src_len); in ceph_aes_encrypt()
182 sg_set_buf(&sg_in[1], pad, zero_padding); in ceph_aes_encrypt()
200 ret = crypto_blkcipher_encrypt(&desc, sg_out.sgl, sg_in, in ceph_aes_encrypt()
223 struct scatterlist sg_in[3], prealloc_sg; in ceph_aes_encrypt2() local
240 sg_init_table(sg_in, 3); in ceph_aes_encrypt2()
241 sg_set_buf(&sg_in[0], src1, src1_len); in ceph_aes_encrypt2()
242 sg_set_buf(&sg_in[1], src2, src2_len); in ceph_aes_encrypt2()
243 sg_set_buf(&sg_in[2], pad, zero_padding); in ceph_aes_encrypt2()
263 ret = crypto_blkcipher_encrypt(&desc, sg_out.sgl, sg_in, in ceph_aes_encrypt2()
285 struct sg_table sg_in; in ceph_aes_decrypt() local
301 ret = setup_sgtable(&sg_in, &prealloc_sg, src, src_len); in ceph_aes_decrypt()
316 ret = crypto_blkcipher_decrypt(&desc, sg_out, sg_in.sgl, src_len); in ceph_aes_decrypt()
339 teardown_sgtable(&sg_in); in ceph_aes_decrypt()
350 struct sg_table sg_in; in ceph_aes_decrypt2() local
367 ret = setup_sgtable(&sg_in, &prealloc_sg, src, src_len); in ceph_aes_decrypt2()
382 ret = crypto_blkcipher_decrypt(&desc, sg_out, sg_in.sgl, src_len); in ceph_aes_decrypt2()
416 teardown_sgtable(&sg_in); in ceph_aes_decrypt2()