{
  "id": "2012/266",
  "url": "https://opencryptology.org/2012/266",
  "original_url": "https://eprint.iacr.org/2012/266",
  "title": "Compilation Techniques for Efficient Encrypted Computation",
  "authors": [
    "Christopher Fletcher",
    "Marten van Dijk",
    "Srinivas Devadas"
  ],
  "affiliations": null,
  "abstract": "Fully homomorphic encryption (FHE) techniques are capable of\nperforming encrypted computation on Boolean circuits, i.e., the\nuser specifies encrypted inputs to the program, and the server computes on the encrypted inputs. Applying these techniques to general programs with recursive procedures and data-dependent loops\nhas not been a focus of attention. In this paper, we take a first\nstep toward building a compiler that, given programs with complex\ncontrol flow, generates efficient code suitable for the application of\nFHE schemes.\n\nWe first describe how programs written in a small Turing-complete instruction set can be executed with encrypted data and\npoint out inefficiencies in this methodology. We then provide examples of transforming (a) the greatest common divisor (GCD)\nproblem using Euclid’s algorithm and (b) the 3-Satisfiability\n(3SAT) problem using a recursive backtracking algorithm into a\npath-levelized form to which FHE can be applied. We describe\nhow path levelization reduces control flow ambiguity and improves\nencrypted computation efficiency. Using these techniques and data-dependent loops as a starting point, we then build support for hierarchical programs made up of phases, where each phase corresponds to a fixed point computation that can be used to further improve the efficiency of encrypted computation.\n\nIn our setting, the adversary learns an estimate of the number of\nsteps required to complete the computation, which we show is the\nleast amount of leakage possible.",
  "category": "Cryptographic protocols",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Compilation Techniques for Efficient Encrypted Computation” by Christopher Fletcher, Marten van Dijk, Srinivas Devadas, Cryptology ePrint Archive, Paper 2012/266, https://eprint.iacr.org/2012/266. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2012-05-17T04:48:40Z",
    "updated": "2012-05-17T04:48:40Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2012/266.pdf",
    "sha256": "586997ca36547084805b07899c6df1d0e277a05ec2d59a4eccfcaac6ea1af851",
    "size": 1076581,
    "source": "github-mirror",
    "source_date": "2019-02-25T16:37:15Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2012/266/versions/20190225T163715Z.pdf",
      "captured_at": "2019-02-25T16:37:15Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2012/266.pdf",
      "size": 1076581,
      "sha256": "586997ca36547084805b07899c6df1d0e277a05ec2d59a4eccfcaac6ea1af851",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260309191426id_/https://eprint.iacr.org/2012/266.pdf",
      "captured_at": "2026-03-09T19:14:26Z",
      "size": 1077552
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2012/266.pdf",
      "captured_at": "2019-02-25T16:37:15Z",
      "size": 1076581
    }
  ],
  "bibtex": "@misc{cryptoeprint:2012/266,\n      author = {Christopher Fletcher and Marten van Dijk and Srinivas Devadas},\n      title = {Compilation Techniques for Efficient Encrypted Computation},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2012/266},\n      year = {2012},\n      url = {https://eprint.iacr.org/2012/266}\n}"
}
