Lines Matching refs:auth
438 struct ceph_x_authenticate *auth = (void *)(head + 1); in ceph_x_build_request() local
439 void *p = auth + 1; in ceph_x_build_request()
451 get_random_bytes(&auth->client_challenge, sizeof(u64)); in ceph_x_build_request()
452 tmp.client_challenge = auth->client_challenge; in ceph_x_build_request()
459 auth->struct_v = 1; in ceph_x_build_request()
460 auth->key = 0; in ceph_x_build_request()
462 auth->key ^= *(__le64 *)u; in ceph_x_build_request()
464 xi->server_challenge, le64_to_cpu(auth->client_challenge), in ceph_x_build_request()
465 le64_to_cpu(auth->key)); in ceph_x_build_request()
555 struct ceph_auth_handshake *auth) in ceph_x_create_authorizer() argument
575 auth->authorizer = (struct ceph_authorizer *) au; in ceph_x_create_authorizer()
576 auth->authorizer_buf = au->buf->vec.iov_base; in ceph_x_create_authorizer()
577 auth->authorizer_buf_len = au->buf->vec.iov_len; in ceph_x_create_authorizer()
578 auth->authorizer_reply_buf = au->reply_buf; in ceph_x_create_authorizer()
579 auth->authorizer_reply_buf_len = sizeof (au->reply_buf); in ceph_x_create_authorizer()
580 auth->sign_message = ac->ops->sign_message; in ceph_x_create_authorizer()
581 auth->check_message_signature = ac->ops->check_message_signature; in ceph_x_create_authorizer()
588 struct ceph_auth_handshake *auth) in ceph_x_update_authorizer() argument
597 au = (struct ceph_x_authorizer *)auth->authorizer; in ceph_x_update_authorizer()
697 static int ceph_x_sign_message(struct ceph_auth_handshake *auth, in ceph_x_sign_message() argument
705 ret = calcu_signature((struct ceph_x_authorizer *)auth->authorizer, in ceph_x_sign_message()
713 static int ceph_x_check_message_signature(struct ceph_auth_handshake *auth, in ceph_x_check_message_signature() argument
722 ret = calcu_signature((struct ceph_x_authorizer *)auth->authorizer, in ceph_x_check_message_signature()