{
  "id": "2023/983",
  "url": "https://opencryptology.org/2023/983",
  "original_url": "https://eprint.iacr.org/2023/983",
  "title": "Secure Range-Searching Using Copy-And-Recurse",
  "authors": [
    "Eyal Kushnir",
    "Guy Moshkowich",
    "Hayim Shaul"
  ],
  "affiliations": null,
  "abstract": "{\\em Range searching} is the problem of preprocessing a set of points $P$, such that given a query range $\\gamma$ we can efficiently compute some function $f(P\\cap\\gamma)$. For example, in a 1 dimensional {\\em range counting} query, $P$ is a set of numbers, $\\gamma$ is a segment and we need to count how many numbers of $P$ are in $\\gamma$.\nIn higher dimensions, $P$ is a set of $d$ dimensional points and the query range is some volume in $R^d$. In general, we want to compute more than just counting, for example, the average of $P\\cap\\gamma$.\nRange searching has applications in databases where some SELECT queries can be translated to range queries.\nIt had received a lot of attention in computational geometry where a data structure called {\\em partition tree} was shown to solve range queries in time sub-linear in $|P|$ using space only linear in $|P|$.\n\n\nIn this paper we consider partition trees under FHE where we answer range queries without learning the value of the points or the parameters of the range.\nWe show how partition trees can be securely traversed with $O(t \\cdot n^{1-\\frac{1}{d}+\\epsilon} + n^{1+\\epsilon})$ operations, where $n=|P|$, $t$ is the number of operations needed to compare to $\\gamma$ and $\\epsilon>0$ is a parameter. As far as we know, this is the first non-trivial bound on range searching under FHE and it improves over the na\\\"ive solution that needs $O(t\\cdot n)$ operations.\n\nOur algorithms are independent of the encryption scheme but as an example we implemented them using the CKKS FHE scheme. Our experiments show that for databases of sizes $2^{23}$ and $2^{25}$, our algorithms run $\\times 2.8$ and $\\times 4.7$ (respectively) faster than the na\\\"ive algorithm.\n\nThe improvement of our algorithm comes from a method we call copy-and-recurse. With it we efficiently traverse a $r$-ary tree (where each inner node has $r$ children) that also has the property that  at most $\\xi$ of them need to be recursed into when traversing the tree.\nWe believe this method is interesting in its own and can be used to improve traversals in other tree-like structures.",
  "category": "Cryptographic protocols",
  "license": {
    "code": "CC0",
    "url": "https://creativecommons.org/publicdomain/zero/1.0/",
    "label": "CC0 1.0",
    "attribution": "“Secure Range-Searching Using Copy-And-Recurse” by Eyal Kushnir, Guy Moshkowich, Hayim Shaul, Cryptology ePrint Archive, Paper 2023/983, https://eprint.iacr.org/2023/983. Licensed under CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2023-06-23T12:55:54Z",
    "updated": "2024-04-08T12:35:07Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2023/983.pdf",
    "sha256": "a5820defdd18be4b119569f292379bf87496a417f8c3be58d401cf112f28c780",
    "size": 1080181,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2023/983/versions/20260428T172000Z.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "label": "copy captured 2026-04-28",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/983.pdf",
      "size": 1080181,
      "sha256": "a5820defdd18be4b119569f292379bf87496a417f8c3be58d401cf112f28c780",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2023/983/versions/20240315T213902Z.pdf",
      "captured_at": "2024-03-15T21:39:02Z",
      "label": "copy captured 2024-03-15",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20240315213902id_/https://eprint.iacr.org/2023/983.pdf",
      "size": 934716,
      "sha256": "311dbe239dc3094193dd5df3f275d448aff6272d4b64b836679608782a692178",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/983.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 1080181
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260417202222id_/https://eprint.iacr.org/2023/983.pdf",
      "captured_at": "2026-04-17T20:22:22Z",
      "size": 1016561
    }
  ],
  "bibtex": "@misc{cryptoeprint:2023/983,\n      author = {Eyal Kushnir and Guy Moshkowich and Hayim Shaul},\n      title = {Secure Range-Searching Using Copy-And-Recurse},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2023/983},\n      year = {2023},\n      url = {https://eprint.iacr.org/2023/983}\n}"
}
