Lines Matching refs:sg_out
168 struct sg_table sg_out; in ceph_aes_encrypt() local
187 ret = setup_sgtable(&sg_out, &prealloc_sg, dst, *dst_len); in ceph_aes_encrypt()
204 ret = crypto_blkcipher_encrypt(&desc, sg_out.sgl, sg_in, in ceph_aes_encrypt()
216 teardown_sgtable(&sg_out); in ceph_aes_encrypt()
228 struct sg_table sg_out; in ceph_aes_encrypt2() local
248 ret = setup_sgtable(&sg_out, &prealloc_sg, dst, *dst_len); in ceph_aes_encrypt2()
267 ret = crypto_blkcipher_encrypt(&desc, sg_out.sgl, sg_in, in ceph_aes_encrypt2()
279 teardown_sgtable(&sg_out); in ceph_aes_encrypt2()
290 struct scatterlist sg_out[2], prealloc_sg; in ceph_aes_decrypt() local
302 sg_init_table(sg_out, 2); in ceph_aes_decrypt()
303 sg_set_buf(&sg_out[0], dst, *dst_len); in ceph_aes_decrypt()
304 sg_set_buf(&sg_out[1], pad, sizeof(pad)); in ceph_aes_decrypt()
320 ret = crypto_blkcipher_decrypt(&desc, sg_out, sg_in.sgl, src_len); in ceph_aes_decrypt()
355 struct scatterlist sg_out[3], prealloc_sg; in ceph_aes_decrypt2() local
367 sg_init_table(sg_out, 3); in ceph_aes_decrypt2()
368 sg_set_buf(&sg_out[0], dst1, *dst1_len); in ceph_aes_decrypt2()
369 sg_set_buf(&sg_out[1], dst2, *dst2_len); in ceph_aes_decrypt2()
370 sg_set_buf(&sg_out[2], pad, sizeof(pad)); in ceph_aes_decrypt2()
386 ret = crypto_blkcipher_decrypt(&desc, sg_out, sg_in.sgl, src_len); in ceph_aes_decrypt2()