Lune

CCS2018Top-tier venue

ALCHEMY: A Language and Compiler for Homomorphic Encryption Made easY

Eric Crockett, Chris Peikert, Chad Sharp

Abstract

Fully Homomorphic Encryption (FHE) is a cryptographic "holy grail" that allows a worker to perform arbitrary computations on client-encrypted data, without learning anything about the data itself. Since the first plausible construction in 2009, a variety of FHE implementations have been given and used for particular applications of interest. Unfortunately, using FHE is currently very complicated, and a great deal of expertise is required to properly implement nontrivial homomorphic computations. This work introduces Alchemy, a modular and extensible system that simplifies and accelerates the use of FHE. Alchemy compiles "in-the-clear" computations on plaintexts, written in a modular domain-specific language (DSL), into corresponding homomorphic computations on ciphertexts-with no special knowledge of FHE required of the programmer. The compiler automatically chooses (most of the) parameters by statically inferring ciphertext noise rates, generates keys and "key-switching hints," schedules appropriate ciphertext "maintenance" operations, and more. In addition, its components can be combined modularly to provide other useful functionality, such logging the empirical noise rates of ciphertexts throughout a computation, without requiring any changes to the original DSL code. As a testbed application, we demonstrate fast homomorphic evaluation of a pseudorandom function (PRF) based on Ring-LWR, whose entire implementation is only a few dozen lines of simple DSL code. For a single (non-batched) evaluation, our unoptimized implementation takes only about 10 seconds on a commodity PC, which is more than an order of magnitude faster than state-ofthe-art homomorphic evaluations of other PRFs, including some specifically designed for amenability to homomorphic evaluation.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

20 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Orion: A Fully Homomorphic Encryption Framework for Deep Learning cites Optimizing homomorphic evaluation circuits by program synthesis and term rewriting
  • Orion: A Fully Homomorphic Encryption Framework for Deep Learning cites EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computation
  • SoK: Fully Homomorphic Encryption Compilers cites Optimizing homomorphic evaluation circuits by program synthesis and term rewriting
  • SoK: Fully Homomorphic Encryption Compilers cites EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computation
  • SoK: Fully Homomorphic Encryption Compilers cites Λολ: Functional Lattice Cryptography
  • Λολ: Functional Lattice Cryptography cites Post-quantum Key Exchange - A New Hope
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers20

  1. SoK: Fully Homomorphic Encryption CompilersAlexander Viand, Patrick Jattke, Anwar HithnawiS&P 2021 · 117 citations
  2. EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computationRoshan Dathathri, Blagovesta Kostova, Olli Saarikivi, Wei Dai et al.PLDI 2020 · 117 citations
  3. Orion: A Fully Homomorphic Encryption Framework for Deep LearningAustin Ebel, Karthik Garimella, Brandon ReagenASPLOS 2025 · 40 citations
  4. Virtual Secure Platform: A Five-Stage Pipeline Processor over TFHEKotaro Matsuoka, Ryotaro Banno, Naoki Matsumoto, Takashi Sato et al.USENIX Security 2021 · 38 citations
  5. Optimizing homomorphic evaluation circuits by program synthesis and term rewritingDongKwon Lee, Woosuk Lee, Hakjoo Oh, Kwangkeun YiPLDI 2020 · 30 citations

Builds on2

  1. Post-quantum Key Exchange - A New HopeErdem Alkim, Léo Ducas, Thomas Pöppelmann, Peter SchwabeUSENIX Security 2016 · 972 citations
  2. Λολ: Functional Lattice CryptographyEric Crockett, Chris PeikertCCS 2016 · 21 citations

Related papers

  1. AutoFHE: An Automatic Hardware Generation Framework for Domain-Specific FHE AcceleratorsYibo Du, Cangyuan Li, Bing Li, Mengdi Wang et al.ISCA 2026
  2. Circuit Optimization using Arithmetic Table LookupsRaghav Malik, Vedant Paranjape, Milind KulkarniPLDI 2025
  3. Alchemist: A Unified Accelerator Architecture for Cross-Scheme Fully Homomorphic EncryptionJianan Mu, Husheng Han, Shangyi Shi, Jing Ye et al.DAC 2024 · 7 citations
  4. SHARP: A Short-Word Hierarchical Accelerator for Robust and Practical Fully Homomorphic EncryptionJongmin Kim, Sangpyo Kim, Jaewan Choi, Jaiyoung Park et al.ISCA 2023 · 110 citations
  5. HEaaN.MLIR: An Optimizing Compiler for Fast Ring-Based Homomorphic EncryptionSunjae Park, Woosung Song, Seunghyeon Nam, Hyeongyu Kim et al.PLDI 2023 · 8 citations
Dusk over the sea between two cliffs drawn in fine vertical lines