rpc_server: correctly calculate the auth padding