{
  "id": "2024/159",
  "url": "https://opencryptology.org/2024/159",
  "original_url": "https://eprint.iacr.org/2024/159",
  "title": "Logstar: Efficient Linear* Time Secure Merge",
  "authors": [
    "Suvradip Chakraborty",
    "Stanislav Peceny",
    "Srinivasan Raghuraman",
    "Peter Rindal"
  ],
  "affiliations": null,
  "abstract": "Secure merge considers the problem of combining two sorted lists into a single sorted secret-shared list. Merge is a fundamental building block for many real-world applications. For example, secure merge can implement a large number of SQL-like database joins, which are essential for almost any data processing task such as privacy-preserving fraud detection, ad conversion rates, data deduplication, and many more.\n\nWe present two constructions with a communication bandwidth and rounds tradeoff. Logstar, our bandwidth-optimized construction, takes inspiration from Falk and Ostrovsky (ITC, 2021) and runs in  $O(n\\log^*n)$ time and communication with $O(\\log n)$ rounds. In particular, for all conceivable $n$, the $\\log^*n$ factor will be equal to the constant $2$, and therefore we achieve a near-linear running time. Median, our rounds-optimized construction, builds on the classic parallel medians-based insecure merge approach of Valiant (SIAM J. Comput., 1975), later explored in the secure setting by Blunk et al. (ITC, 2025), and requires $O(n \\log^c n)$, $c \\approx 1.71$, communication with $O(\\log \\log n)$ rounds. \n\nWe introduce two additional constructions that merge input lists of different sizes. SquareRootMerge merges lists of sizes $n^{\\frac{1}{2}}$ and $n$ and runs in $O(n)$ time and communication with $O(\\log n)$ rounds. CubeRootMerge is closely inspired by Blunk et al.'s (ITC, 2025) construction and merges lists of sizes $n^{\\frac{1}{3}}$ and $n$. It runs in $O(n)$ time and communication with $O(1)$ rounds.\n\nWe optimize our constructions for concrete efficiency. Despite extensive research, efficient secure merge still relies on Batcher's merging network or generic sorting, with $O(n\\log n)$ circuit size and $O(\\log n)$ depth. Ours are the first constructions to lower their concrete costs through better asymptotics and small constants. Two-party implementations of all four protocols show that, for $n=2^{20}$ 32-bit elements per list, Logstar reduces online communication by $2.09\\times$ versus Batcher and $3.69\\times$ versus shuffled quicksort. Median reduces Batcher's online rounds by $19.0\\%$, using $2.03\\times$ its online communication. For unequal inputs, SquareRootMerge and CubeRootMerge reduce Batcher's online communication by $3.34\\times$ and $4.69\\times$, respectively.",
  "category": "Cryptographic protocols",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Logstar: Efficient Linear* Time Secure Merge” by Suvradip Chakraborty, Stanislav Peceny, Srinivasan Raghuraman, Peter Rindal, Cryptology ePrint Archive, Paper 2024/159, https://eprint.iacr.org/2024/159. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2024-02-03T01:07:24Z",
    "updated": "2026-09-21T01:13:36Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2024/159.pdf",
    "sha256": "4b551abbdbcd0f98ca3c6a0ddba4f3f59b258b9d9f653cd0b894dc058c0b5d6c",
    "size": 921172,
    "source": "upload",
    "source_date": "2026-11-14T03:59:17.561Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2024/159/versions/20261114T035917Z.pdf",
      "captured_at": "2026-11-14T03:59:17.561Z",
      "label": "copy captured 2026-11-14",
      "source": "upload",
      "source_url": null,
      "size": 921172,
      "sha256": "4b551abbdbcd0f98ca3c6a0ddba4f3f59b258b9d9f653cd0b894dc058c0b5d6c",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2024/159/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/2024/159.pdf",
      "size": 799758,
      "sha256": "28eca86a417afcd2cca0704f3fc11281d064b32eb382de0186e2d1e4c3b06006",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2024/159/versions/20240930T152842Z.pdf",
      "captured_at": "2024-09-30T15:28:42Z",
      "label": "copy captured 2024-09-30",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20240930152842id_/https://eprint.iacr.org/2024/159.pdf",
      "size": 796099,
      "sha256": "2b0b6028a569baa47070796f8486baa186d7c74ad53f5dd5c804531b00a171e3",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2024/159/versions/20240205T025728Z.pdf",
      "captured_at": "2024-02-05T02:57:28Z",
      "label": "copy captured 2024-02-05",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20240205025728id_/https://eprint.iacr.org/2024/159.pdf",
      "size": 614928,
      "sha256": "e2eded21e8c37424f13f49587d100ab4642a643d544f1a84fe728a5778dd1575",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/159.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 799758
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260421071522id_/https://eprint.iacr.org/2024/159.pdf",
      "captured_at": "2026-04-21T07:15:22Z",
      "size": 772113
    }
  ],
  "bibtex": "@misc{cryptoeprint:2024/159,\n      author = {Suvradip Chakraborty and Stanislav Peceny and Srinivasan Raghuraman and Peter Rindal},\n      title = {Logstar: Efficient Linear* Time Secure Merge},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2024/159},\n      year = {2024},\n      url = {https://eprint.iacr.org/2024/159}\n}"
}
