{
  "id": "2022/901",
  "url": "https://opencryptology.org/2022/901",
  "original_url": "https://eprint.iacr.org/2022/901",
  "title": "Garbled-Circuits from an SCA Perspective: Free XOR can be Quite Expensive. . .",
  "authors": [
    "Itamar Levi",
    "Carmit Hazay"
  ],
  "affiliations": null,
  "abstract": "Garbling schemes, invented in the 80's by Yao (FOCS'86), have been a versatile and fundamental tool in modern cryptography. A prominent application of garbled circuits is constant round secure two-party computation, led to a long line of study of this object, where one of the most influential optimizations is Free-XOR (Kolesnikov and Schneider ICALP'08), introducing a global offset $\\Delta$ for all garbled wire values where XOR gates are computed locally without garbling them. \n\nTo date, garbling sachems were not studied per their side-channel attacks (SCA) security characteristics, even though SCA pose a significant security threat to cryptographic devices. In this research we demonstrate that adversaries utilizing advanced SCA tools such as horizontal attacks, mixed with advanced hypothesis building and standard (vertical) SCA tools, can jeopardize garbling implementations. \n\nOur main observation is that garbling schemes utilizing a global secret $\\Delta$ open a door to quite trivial side-channel attacks. We model our side-channel attacks on the garbler's device and discuss the asymmetric setting where various computations are not performed on the evaluator side. This enables dangerous leakage extraction on the garbler and renders our attack impossible on the evaluator's side. \n\nTheoretically, we first demonstrate on a simulated environment, that such attacks are quite devastating. Concretely, our attack is capable of extracting $\\Delta$ when the circuit embeds only $8$ input non-linear gates with fifth/first-order attack Success-Rates of $0.65$/$0.7$. With as little as $3$ such gates, our attack reduces the first-order Guessing Entropy of $\\Delta$ from $128$ to $\\sim48$-bits. \nWe further demonstrate our attack via an implementation and measurements data over an STM 32-bit processor software implementing circuit garbling, and discuss their limitations and mitigation tactics on logical, protocol and implementation layers.",
  "category": "Attacks and cryptanalysis",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Garbled-Circuits from an SCA Perspective: Free XOR can be Quite Expensive. . .” by Itamar Levi, Carmit Hazay, Cryptology ePrint Archive, Paper 2022/901, https://eprint.iacr.org/2022/901. 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-07-11T12:25:10Z",
    "updated": "2022-10-30T08:39:46Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2022/901.pdf",
    "sha256": "547b51b2c91d2807bdd6d355289e8efa813c07f4c2eb22a6bdd3bb713a15a30e",
    "size": 6535221,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:34Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2022/901/versions/20240114T061334Z.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/901.pdf",
      "size": 6535221,
      "sha256": "547b51b2c91d2807bdd6d355289e8efa813c07f4c2eb22a6bdd3bb713a15a30e",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2022/901/versions/20220711T150103Z.pdf",
      "captured_at": "2022-07-11T15:01:03Z",
      "label": "copy captured 2022-07-11",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20220711150103id_/https://eprint.iacr.org/2022/901.pdf",
      "size": 6073806,
      "sha256": "55a0c7828ed0c390b187962d40d73faf38b7ee2dc02094bda48e5e5967f3490e",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20251029001902id_/https://eprint.iacr.org/2022/901.pdf",
      "captured_at": "2025-10-29T00:19:02Z",
      "size": 5024289
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/901.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "size": 6535221
    }
  ],
  "bibtex": "@misc{cryptoeprint:2022/901,\n      author = {Itamar Levi and Carmit Hazay},\n      title = {Garbled-Circuits from an SCA Perspective: Free XOR can be Quite Expensive. . .},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2022/901},\n      year = {2022},\n      url = {https://eprint.iacr.org/2022/901}\n}"
}
