Lines Matching refs:secret
54 static int ceph_x_encrypt(struct ceph_crypto_key *secret, void *buf,
64 ret = ceph_crypt(secret, true, buf + sizeof(u32), buf_len - sizeof(u32),
74 static int __ceph_x_decrypt(struct ceph_crypto_key *secret, void *p,
81 ret = ceph_crypt(secret, false, p, ciphertext_len, ciphertext_len,
94 static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end)
102 ret = __ceph_x_decrypt(secret, *p, ciphertext_len);
158 struct ceph_crypto_key *secret,
194 ret = ceph_x_decrypt(secret, p, end);
267 struct ceph_crypto_key *secret,
283 ret = process_one_ticket(ac, secret, &p, end);
519 ret = ceph_x_encrypt(&xi->secret, enc_buf, CEPHX_AU_ENC_BUF_LEN,
596 ret = ceph_x_proc_ticket_reply(ac, &xi->secret,
674 dout("ceph_x_update_authorizer service %u secret %llu < %llu\n",
769 ceph_crypto_key_destroy(&xi->secret);
944 pr_err("no secret set (for auth_x protocol)\n");
948 ret = ceph_crypto_key_clone(&xi->secret, ac->key);