• Home
  • Raw
  • Download

Lines Matching refs:ret

60 	int ret;  in ceph_crypto_key_unarmor()  local
73 ret = ceph_crypto_key_decode(key, &p, p + blen); in ceph_crypto_key_unarmor()
75 if (ret) in ceph_crypto_key_unarmor()
76 return ret; in ceph_crypto_key_unarmor()
114 int ret; in setup_sgtable() local
127 ret = sg_alloc_table(sgt, chunk_cnt, GFP_NOFS); in setup_sgtable()
128 if (ret) in setup_sgtable()
129 return ret; in setup_sgtable()
171 int ret; in ceph_aes_encrypt() local
187 ret = setup_sgtable(&sg_out, &prealloc_sg, dst, *dst_len); in ceph_aes_encrypt()
188 if (ret) in ceph_aes_encrypt()
204 ret = crypto_blkcipher_encrypt(&desc, sg_out.sgl, sg_in, in ceph_aes_encrypt()
206 if (ret < 0) { in ceph_aes_encrypt()
207 pr_err("ceph_aes_crypt failed %d\n", ret); in ceph_aes_encrypt()
219 return ret; in ceph_aes_encrypt()
231 int ret; in ceph_aes_encrypt2() local
248 ret = setup_sgtable(&sg_out, &prealloc_sg, dst, *dst_len); in ceph_aes_encrypt2()
249 if (ret) in ceph_aes_encrypt2()
267 ret = crypto_blkcipher_encrypt(&desc, sg_out.sgl, sg_in, in ceph_aes_encrypt2()
269 if (ret < 0) { in ceph_aes_encrypt2()
270 pr_err("ceph_aes_crypt2 failed %d\n", ret); in ceph_aes_encrypt2()
282 return ret; in ceph_aes_encrypt2()
296 int ret; in ceph_aes_decrypt() local
305 ret = setup_sgtable(&sg_in, &prealloc_sg, src, src_len); in ceph_aes_decrypt()
306 if (ret) in ceph_aes_decrypt()
320 ret = crypto_blkcipher_decrypt(&desc, sg_out, sg_in.sgl, src_len); in ceph_aes_decrypt()
321 if (ret < 0) { in ceph_aes_decrypt()
322 pr_err("ceph_aes_decrypt failed %d\n", ret); in ceph_aes_decrypt()
346 return ret; in ceph_aes_decrypt()
361 int ret; in ceph_aes_decrypt2() local
371 ret = setup_sgtable(&sg_in, &prealloc_sg, src, src_len); in ceph_aes_decrypt2()
372 if (ret) in ceph_aes_decrypt2()
386 ret = crypto_blkcipher_decrypt(&desc, sg_out, sg_in.sgl, src_len); in ceph_aes_decrypt2()
387 if (ret < 0) { in ceph_aes_decrypt2()
388 pr_err("ceph_aes_decrypt failed %d\n", ret); in ceph_aes_decrypt2()
423 return ret; in ceph_aes_decrypt2()
526 int ret; in ceph_key_preparse() local
529 ret = -EINVAL; in ceph_key_preparse()
533 ret = -ENOMEM; in ceph_key_preparse()
540 ret = ceph_crypto_key_decode(ckey, &p, (char*)prep->data+datalen); in ceph_key_preparse()
541 if (ret < 0) in ceph_key_preparse()
551 return ret; in ceph_key_preparse()