Lines Matching refs:secret
47 static int ceph_x_encrypt(struct ceph_crypto_key *secret, in ceph_x_encrypt() argument
57 ret = ceph_encrypt2(secret, obuf + sizeof(u32), &len, in ceph_x_encrypt()
65 static int ceph_x_decrypt(struct ceph_crypto_key *secret, in ceph_x_decrypt() argument
84 ret = ceph_decrypt2(secret, &head, &head_len, *obuf, &olen, *p, len); in ceph_x_decrypt()
138 struct ceph_crypto_key *secret, in process_one_ticket() argument
177 dlen = ceph_x_decrypt(secret, p, end, &dbuf, 0); in process_one_ticket()
255 struct ceph_crypto_key *secret, in ceph_x_proc_ticket_reply() argument
271 ret = process_one_ticket(ac, secret, &p, end); in ceph_x_proc_ticket_reply()
445 ret = ceph_x_encrypt(&xi->secret, &tmp, sizeof(tmp), in ceph_x_build_request()
522 ret = ceph_x_proc_ticket_reply(ac, &xi->secret, in ceph_x_handle_reply()
648 ceph_crypto_key_destroy(&xi->secret); in ceph_x_destroy()
762 ret = ceph_crypto_key_clone(&xi->secret, ac->key); in ceph_x_init()