{
  "id": "2022/590",
  "url": "https://opencryptology.org/2022/590",
  "original_url": "https://eprint.iacr.org/2022/590",
  "title": "Secure Merge in Linear Time and O(log log N) Rounds",
  "authors": [
    "Mark Blunk",
    "Paul Bunn",
    "Samuel Dittmer",
    "Steve Lu",
    "Rafail Ostrovsky"
  ],
  "affiliations": null,
  "abstract": "The problem of Secure Merge consists of combining two sorted lists (which are either held separately by two parties, or secret-shared among two or more parties), and outputting a single merged (sorted) list, secret-shared among all parties.\nJust as insecure algorithms for comparison-based sorting are slower than merging (i.e., for lists of size $n$, $\\Theta(n \\log n)$ versus $\\Theta(n)$), we explore whether the analogous separation exists for secure protocols; namely, if there exist techniques for performing secure merge that are more performant than simply invoking a secure multiparty sort.\n\nWe answer this question affirmatively by constructing a semi-honest protocol with optimal $\\Theta(n)$ communication and computation, and $\\Theta(\\log \\log n)$ rounds of communication. Our results are based solely on black-box use of basic secure primitives, such as secure comparison and secure shuffle. Since two-party secure primitives require computational assumptions, while three-party secure primitive do not, our result imply a computationally secure two-party secure merge protocol and an information-theoretically secure three-party secure merge protocol with these bounds.\n\nSecure sort is a fundamental building block used in many MPC protocols, e.g., various private set intersection protocols and oblivious RAM protocols. More efficient secure sort can lead to concrete improvements in the overall run-time. Since secure sort can often be replaced by secure merge -- since inputs (from different participating players) can be presorted -- an efficient secure merge protocol has wide applicability. There are also a range of applications in the field of secure databases, including secure database joins, as well as updatable database storage and search, whereby secure merge can be used to insert new entries into an existing (sorted) database.\n\nIn building our secure merge protocol, we develop several subprotocols that may be of independent interest. For example, we develop a protocol for secure asymmetric merge (where one list is much larger than the other).",
  "category": "Cryptographic protocols",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Secure Merge in Linear Time and O(log log N) Rounds” by Mark Blunk, Paul Bunn, Samuel Dittmer, Steve Lu, Rafail Ostrovsky, Cryptology ePrint Archive, Paper 2022/590, https://eprint.iacr.org/2022/590. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2022-05-17T06:51:25Z",
    "updated": "2024-02-04T06:43:06Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2022/590.pdf",
    "sha256": "33a8c3119e6a3521a1a9f659165dfd82bf0b4024d519a1836cdcabfbbe749232",
    "size": 844912,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2022/590/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/2022/590.pdf",
      "size": 844912,
      "sha256": "33a8c3119e6a3521a1a9f659165dfd82bf0b4024d519a1836cdcabfbbe749232",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2022/590/versions/20220517T070651Z.pdf",
      "captured_at": "2022-05-17T07:06:51Z",
      "label": "copy captured 2022-05-17",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20220517070651id_/https://eprint.iacr.org/2022/590.pdf",
      "size": 610831,
      "sha256": "a6692dc960041870739fe605526351b40e38bee90724f9459a0776e6b7ecc501",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/590.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 844912
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260420205711id_/https://eprint.iacr.org/2022/590.pdf",
      "captured_at": "2026-04-20T20:57:11Z",
      "size": 771344
    }
  ],
  "bibtex": "@misc{cryptoeprint:2022/590,\n      author = {Mark Blunk and Paul Bunn and Samuel Dittmer and Steve Lu and Rafail Ostrovsky},\n      title = {Secure Merge in Linear Time and O(log log N) Rounds},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2022/590},\n      year = {2022},\n      url = {https://eprint.iacr.org/2022/590}\n}"
}
