Lines Matching refs:auth

429 		struct ceph_x_authenticate *auth = (void *)(head + 1);  in ceph_x_build_request()  local
430 void *p = auth + 1; in ceph_x_build_request()
442 get_random_bytes(&auth->client_challenge, sizeof(u64)); in ceph_x_build_request()
443 tmp.client_challenge = auth->client_challenge; in ceph_x_build_request()
450 auth->struct_v = 1; in ceph_x_build_request()
451 auth->key = 0; in ceph_x_build_request()
453 auth->key ^= *(__le64 *)u; in ceph_x_build_request()
455 xi->server_challenge, le64_to_cpu(auth->client_challenge), in ceph_x_build_request()
456 le64_to_cpu(auth->key)); in ceph_x_build_request()
546 struct ceph_auth_handshake *auth) in ceph_x_create_authorizer() argument
566 auth->authorizer = (struct ceph_authorizer *) au; in ceph_x_create_authorizer()
567 auth->authorizer_buf = au->buf->vec.iov_base; in ceph_x_create_authorizer()
568 auth->authorizer_buf_len = au->buf->vec.iov_len; in ceph_x_create_authorizer()
569 auth->authorizer_reply_buf = au->reply_buf; in ceph_x_create_authorizer()
570 auth->authorizer_reply_buf_len = sizeof (au->reply_buf); in ceph_x_create_authorizer()
571 auth->sign_message = ac->ops->sign_message; in ceph_x_create_authorizer()
572 auth->check_message_signature = ac->ops->check_message_signature; in ceph_x_create_authorizer()
579 struct ceph_auth_handshake *auth) in ceph_x_update_authorizer() argument
588 au = (struct ceph_x_authorizer *)auth->authorizer; in ceph_x_update_authorizer()
690 static int ceph_x_sign_message(struct ceph_auth_handshake *auth, in ceph_x_sign_message() argument
694 if (!auth->authorizer) in ceph_x_sign_message()
696 ret = calcu_signature((struct ceph_x_authorizer *)auth->authorizer, in ceph_x_sign_message()
704 static int ceph_x_check_message_signature(struct ceph_auth_handshake *auth, in ceph_x_check_message_signature() argument
710 if (!auth->authorizer) in ceph_x_check_message_signature()
712 ret = calcu_signature((struct ceph_x_authorizer *)auth->authorizer, in ceph_x_check_message_signature()