Lines Matching refs:secret

57 static int ceph_x_encrypt(struct ceph_crypto_key *secret, void *buf,  in ceph_x_encrypt()  argument
67 ret = ceph_crypt(secret, true, buf + sizeof(u32), buf_len - sizeof(u32), in ceph_x_encrypt()
77 static int __ceph_x_decrypt(struct ceph_crypto_key *secret, void *p, in __ceph_x_decrypt() argument
84 ret = ceph_crypt(secret, false, p, ciphertext_len, ciphertext_len, in __ceph_x_decrypt()
97 static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end) in ceph_x_decrypt() argument
105 ret = __ceph_x_decrypt(secret, *p, ciphertext_len); in ceph_x_decrypt()
161 struct ceph_crypto_key *secret, in process_one_ticket() argument
197 ret = ceph_x_decrypt(secret, p, end); in process_one_ticket()
271 struct ceph_crypto_key *secret, in ceph_x_proc_ticket_reply() argument
286 ret = process_one_ticket(ac, secret, p, end); in ceph_x_proc_ticket_reply()
524 ret = ceph_x_encrypt(&xi->secret, enc_buf, CEPHX_AU_ENC_BUF_LEN, in ceph_x_build_request()
612 ret = ceph_x_proc_ticket_reply(ac, &xi->secret, p, end); in handle_auth_session_key()
792 static int decrypt_authorizer_challenge(struct ceph_crypto_key *secret, in decrypt_authorizer_challenge() argument
800 ret = __ceph_x_decrypt(secret, challenge, challenge_len); in decrypt_authorizer_challenge()
844 static int decrypt_authorizer_reply(struct ceph_crypto_key *secret, in decrypt_authorizer_reply() argument
853 ret = ceph_x_decrypt(secret, p, end); in decrypt_authorizer_reply()
919 ceph_crypto_key_destroy(&xi->secret); in ceph_x_destroy()
1104 ret = ceph_crypto_key_clone(&xi->secret, ac->key); in ceph_x_init()