Lines Matching refs:auth
507 struct ceph_x_authenticate *auth = (void *)(head + 1); in ceph_x_build_request() local
513 p = auth + 1; in ceph_x_build_request()
521 get_random_bytes(&auth->client_challenge, sizeof(u64)); in ceph_x_build_request()
522 blob->client_challenge = auth->client_challenge; in ceph_x_build_request()
529 auth->struct_v = 3; /* nautilus+ */ in ceph_x_build_request()
530 auth->key = 0; in ceph_x_build_request()
532 auth->key ^= *(__le64 *)u; in ceph_x_build_request()
534 xi->server_challenge, le64_to_cpu(auth->client_challenge), in ceph_x_build_request()
535 le64_to_cpu(auth->key)); in ceph_x_build_request()
736 struct ceph_auth_handshake *auth) in ceph_x_create_authorizer() argument
758 auth->authorizer = (struct ceph_authorizer *) au; in ceph_x_create_authorizer()
759 auth->authorizer_buf = au->buf->vec.iov_base; in ceph_x_create_authorizer()
760 auth->authorizer_buf_len = au->buf->vec.iov_len; in ceph_x_create_authorizer()
761 auth->authorizer_reply_buf = au->enc_buf; in ceph_x_create_authorizer()
762 auth->authorizer_reply_buf_len = CEPHX_AU_ENC_BUF_LEN; in ceph_x_create_authorizer()
763 auth->sign_message = ac->ops->sign_message; in ceph_x_create_authorizer()
764 auth->check_message_signature = ac->ops->check_message_signature; in ceph_x_create_authorizer()
771 struct ceph_auth_handshake *auth) in ceph_x_update_authorizer() argument
780 au = (struct ceph_x_authorizer *)auth->authorizer; in ceph_x_update_authorizer()
1027 static int ceph_x_sign_message(struct ceph_auth_handshake *auth, in ceph_x_sign_message() argument
1036 ret = calc_signature((struct ceph_x_authorizer *)auth->authorizer, in ceph_x_sign_message()
1046 static int ceph_x_check_message_signature(struct ceph_auth_handshake *auth, in ceph_x_check_message_signature() argument
1055 ret = calc_signature((struct ceph_x_authorizer *)auth->authorizer, in ceph_x_check_message_signature()