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