{
  "id": "2020/807",
  "url": "https://opencryptology.org/2020/807",
  "original_url": "https://eprint.iacr.org/2020/807",
  "title": "Secure merge with $O(n \\log \\log n)$ secure operation",
  "authors": [
    "Brett Hemenway Falk",
    "Rafail Ostrovsky"
  ],
  "affiliations": null,
  "abstract": "Data-oblivious algorithms are a key component of many secure computation protocols.\n\nIn this work, we show that advances in secure multiparty shuffling algorithms can be used\nto increase the efficiency of several key cryptographic tools.\n\nThe key observation is that many secure computation protocols rely heavily on secure shuffles.\nThe best data-oblivious shuffling algorithms require $O(n \\log n)$, operations,\nbut in the two-party or multiparty setting, secure shuffling can be achieved with only $O(n)$ communication.\n\nLeveraging the efficiency of secure multiparty shuffling, we give novel algorithms that\nimprove the efficiency of securely sorting sparse lists,\nsecure stable compaction, and securely merging two sorted lists.\n\nSecurely sorting private lists is a key component of many larger secure computation protocols.\nThe best data-oblivious sorting algorithms for sorting a list of $n$ elements require $O(n \\log n)$ comparisons.\nUsing black-box access to a linear-communication secure shuffle, we give a secure algorithm for sorting a list of length $n$ with $t \\ll n$\nnonzero elements with communication $O(t \\log^2 n + n)$, which beats the best oblivious algorithms when\nthe number of nonzero elements, $t$, satisfies $t < n/\\log^2 n$.\n\nSecure compaction is the problem of removing dummy elements from a list, and\nis essentially equivalent to sorting on 1-bit keys.\nThe best oblivious compaction algorithms run in $O(n)$-time, but they are unstable,\ni.e., the order of the remaining elements is not preserved.\nUsing black-box access to a linear-communication secure shuffle,\nwe give a stable compaction algorithm with only $O(n)$ communication.\n\nOur main result is a novel secure merge protocol.\nThe best previous algorithms for securely merging two sorted lists into\na sorted whole required $O(n \\log n)$ secure operations.\nUsing black-box access to an $O(n)$-communication secure shuffle,\nwe give the first secure merge algorithm that requires only $O(n \\log \\log n)$ communication.\nOur algorithm takes as input $n$ secret-shared values, and outputs a secret-sharing of the sorted list.\n\nAll our algorithms are generic, i.e., they can be implemented using generic secure computations\ntechniques and make black-box access to a secure shuffle.\n\nOur techniques extend naturally to the multiparty situation (with a constant number of parties)\nas well as to handle malicious adversaries without changing the asymptotic efficiency.\n\nThese algorithm have applications to securely computing database joins and order statistics on private data as well as multiparty Oblivious RAM protocols.",
  "category": "Cryptographic protocols",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Secure merge with $O(n \\log \\log n)$ secure operation” by Brett Hemenway Falk, Rafail Ostrovsky, Cryptology ePrint Archive, Paper 2020/807, https://eprint.iacr.org/2020/807. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2020-06-30T13:02:29Z",
    "updated": "2020-10-06T14:12:44Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2020/807.pdf",
    "sha256": "b58cd68422f2f2ed4563fc24e40ca782142718734fb96c521a470320ecf7c896",
    "size": 456726,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:14Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2020/807/versions/20240114T061314Z.pdf",
      "captured_at": "2024-01-14T06:13:14Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2020/807.pdf",
      "size": 456726,
      "sha256": "b58cd68422f2f2ed4563fc24e40ca782142718734fb96c521a470320ecf7c896",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2020/807/versions/20200930T100555Z.pdf",
      "captured_at": "2020-09-30T10:05:55Z",
      "label": "copy captured 2020-09-30",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20200930100555id_/https://eprint.iacr.org/2020/807.pdf",
      "size": 419082,
      "sha256": "0ec8e58f6dfc7cf567592f36378affe006b0d00ebfaa189b11c9d0e89eb09dda",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20251230180937id_/https://eprint.iacr.org/2020/807.pdf",
      "captured_at": "2025-12-30T18:09:37Z",
      "size": 445957
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2020/807.pdf",
      "captured_at": "2024-01-14T06:13:14Z",
      "size": 456726
    }
  ],
  "bibtex": "@misc{cryptoeprint:2020/807,\n      author = {Brett Hemenway Falk and Rafail Ostrovsky},\n      title = {Secure merge with $O(n \\log \\log n)$ secure operation},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2020/807},\n      year = {2020},\n      url = {https://eprint.iacr.org/2020/807}\n}"
}
