{
  "id": "2021/531",
  "url": "https://opencryptology.org/2021/531",
  "original_url": "https://eprint.iacr.org/2021/531",
  "title": "LogStack: Stacked Garbling with $O(b \\log b)$ Computation",
  "authors": [
    "David Heath",
    "Vladimir Kolesnikov"
  ],
  "affiliations": null,
  "abstract": "Secure two party computation (2PC) of arbitrary programs can be efficiently achieved using garbled circuits (GC). Until recently, it was widely believed that a GC proportional to the entire program, including parts of the program that are entirely discarded due to conditional branching, must be transmitted over a network. Recent work shows that this belief is false, and that communication proportional only to the longest program execution path suffices (Heath and Kolesnikov, CRYPTO 20, [HK20a]). Although this recent work reduces needed communication, it increases computation. For a conditional with $b$ branches, the players use $O(b^2)$ computation (traditional GC uses only $O(b)$).\n\nOur scheme LogStack reduces stacked garbling computation from $O(b^2)$ to $O(b \\log b)$ with no increase in communication over [HK20a]. The cause of [HK20a]'s increased computation is the oblivious collection of garbage labels that emerge during the evaluation of inactive branches. Garbage is collected by a multiplexer that is costly to generate. At a high level, we redesign stacking and garbage collection to avoid quadratic scaling.\n\nOur construction is also more space efficient: [HK20a] algorithms require $O(b)$ space, while ours use only $O(\\log b)$ space. This space efficiency allows even modest setups to handle large numbers of branches.\n\n[HK20a] assumes a random oracle (RO). We track the source of this need, formalize a simple and natural added assumption on the base garbling scheme, and remove reliance on RO: LogStack is secure in the standard model. Nevertheless, LogStack can be instantiated with typical GC tricks based on non-standard assumptions, such as free XOR and half-gates, and hence can be implemented with high efficiency.\n\nWe implemented LogStack (in the RO model, based on half-gates garbling) and report performance. In terms of wall-clock time and for fewer than $16$ branches, our performance is comparable to [HK20a]'s; for larger branching factors, our approach clearly outperforms [HK20a]. For example, given $1024$ branches, our approach is $31\\times$ faster.",
  "category": "Cryptographic protocols",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“LogStack: Stacked Garbling with $O(b \\log b)$ Computation” by David Heath, Vladimir Kolesnikov, Cryptology ePrint Archive, Paper 2021/531, https://eprint.iacr.org/2021/531. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2021-04-23T12:28:33Z",
    "updated": "2021-04-23T12:28:33Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2021/531.pdf",
    "sha256": "182734180691aa45a625e798ce628034cd8bb8224483451a22c1a4a04f748bd3",
    "size": 785296,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:28Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2021/531/versions/20240114T061328Z.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/531.pdf",
      "size": 785296,
      "sha256": "182734180691aa45a625e798ce628034cd8bb8224483451a22c1a4a04f748bd3",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260104102702id_/https://eprint.iacr.org/2021/531.pdf",
      "captured_at": "2026-01-04T10:27:02Z",
      "size": 776817
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/531.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "size": 785296
    }
  ],
  "bibtex": "@misc{cryptoeprint:2021/531,\n      author = {David Heath and Vladimir Kolesnikov},\n      title = {LogStack: Stacked Garbling with $O(b \\log b)$ Computation},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2021/531},\n      year = {2021},\n      url = {https://eprint.iacr.org/2021/531}\n}"
}
