Lines Matching refs:auth
446 struct ceph_x_authenticate *auth = (void *)(head + 1); in ceph_x_build_request() local
447 void *p = auth + 1; in ceph_x_build_request()
460 get_random_bytes(&auth->client_challenge, sizeof(u64)); in ceph_x_build_request()
461 blob->client_challenge = auth->client_challenge; in ceph_x_build_request()
468 auth->struct_v = 1; in ceph_x_build_request()
469 auth->key = 0; in ceph_x_build_request()
471 auth->key ^= *(__le64 *)u; in ceph_x_build_request()
473 xi->server_challenge, le64_to_cpu(auth->client_challenge), in ceph_x_build_request()
474 le64_to_cpu(auth->key)); in ceph_x_build_request()
572 struct ceph_auth_handshake *auth) in ceph_x_create_authorizer() argument
594 auth->authorizer = (struct ceph_authorizer *) au; in ceph_x_create_authorizer()
595 auth->authorizer_buf = au->buf->vec.iov_base; in ceph_x_create_authorizer()
596 auth->authorizer_buf_len = au->buf->vec.iov_len; in ceph_x_create_authorizer()
597 auth->authorizer_reply_buf = au->enc_buf; in ceph_x_create_authorizer()
598 auth->authorizer_reply_buf_len = CEPHX_AU_ENC_BUF_LEN; in ceph_x_create_authorizer()
599 auth->sign_message = ac->ops->sign_message; in ceph_x_create_authorizer()
600 auth->check_message_signature = ac->ops->check_message_signature; in ceph_x_create_authorizer()
607 struct ceph_auth_handshake *auth) in ceph_x_update_authorizer() argument
616 au = (struct ceph_x_authorizer *)auth->authorizer; in ceph_x_update_authorizer()
726 static int ceph_x_sign_message(struct ceph_auth_handshake *auth, in ceph_x_sign_message() argument
735 ret = calc_signature((struct ceph_x_authorizer *)auth->authorizer, in ceph_x_sign_message()
745 static int ceph_x_check_message_signature(struct ceph_auth_handshake *auth, in ceph_x_check_message_signature() argument
754 ret = calc_signature((struct ceph_x_authorizer *)auth->authorizer, in ceph_x_check_message_signature()