Lines Matching refs:secret
48 static int ceph_x_encrypt(struct ceph_crypto_key *secret, in ceph_x_encrypt() argument
58 ret = ceph_encrypt2(secret, obuf + sizeof(u32), &len, in ceph_x_encrypt()
66 static int ceph_x_decrypt(struct ceph_crypto_key *secret, in ceph_x_decrypt() argument
85 ret = ceph_decrypt2(secret, &head, &head_len, *obuf, &olen, *p, len); in ceph_x_decrypt()
139 struct ceph_crypto_key *secret, in process_one_ticket() argument
178 dlen = ceph_x_decrypt(secret, p, end, &dbuf, 0); in process_one_ticket()
256 struct ceph_crypto_key *secret, in ceph_x_proc_ticket_reply() argument
272 ret = process_one_ticket(ac, secret, &p, end); in ceph_x_proc_ticket_reply()
454 ret = ceph_x_encrypt(&xi->secret, &tmp, sizeof(tmp), in ceph_x_build_request()
531 ret = ceph_x_proc_ticket_reply(ac, &xi->secret, in ceph_x_handle_reply()
656 ceph_crypto_key_destroy(&xi->secret); in ceph_x_destroy()
772 ret = ceph_crypto_key_clone(&xi->secret, ac->key); in ceph_x_init()