Lines Matching refs:auth
11 #include <linux/ceph/auth.h>
502 struct ceph_x_authenticate *auth = (void *)(head + 1);
503 void *p = auth + 1;
516 get_random_bytes(&auth->client_challenge, sizeof(u64));
517 blob->client_challenge = auth->client_challenge;
524 auth->struct_v = 1;
525 auth->key = 0;
527 auth->key ^= *(__le64 *)u;
529 xi->server_challenge, le64_to_cpu(auth->client_challenge),
530 le64_to_cpu(auth->key));
595 /* verify auth key */
628 struct ceph_auth_handshake *auth)
650 auth->authorizer = (struct ceph_authorizer *) au;
651 auth->authorizer_buf = au->buf->vec.iov_base;
652 auth->authorizer_buf_len = au->buf->vec.iov_len;
653 auth->authorizer_reply_buf = au->enc_buf;
654 auth->authorizer_reply_buf_len = CEPHX_AU_ENC_BUF_LEN;
655 auth->sign_message = ac->ops->sign_message;
656 auth->check_message_signature = ac->ops->check_message_signature;
663 struct ceph_auth_handshake *auth)
672 au = (struct ceph_x_authorizer *)auth->authorizer;
870 static int ceph_x_sign_message(struct ceph_auth_handshake *auth,
879 ret = calc_signature((struct ceph_x_authorizer *)auth->authorizer,
889 static int ceph_x_check_message_signature(struct ceph_auth_handshake *auth,
898 ret = calc_signature((struct ceph_x_authorizer *)auth->authorizer,