Homomorphic Encryption

Research
Introduced by
Craig Gentry
Year
2009
Type
Lattice-based cryptographic scheme
Family
Privacy-preserving computation

What does it do?

Homomorphic Encryption (HE) is a cryptographic framework that allows computations to be performed directly on encrypted data, so the party doing the work never needs the plaintext.

Craig Gentry's 2009 paper proposed a fully homomorphic scheme built from ideal lattices, in which a server can evaluate circuits over encrypted data without being able to decrypt it. When the data owner decrypts the returned ciphertext, the result equals the same computation on the plaintext, provided the parameters were chosen so that noise stays within bounds. HE protects the confidentiality of the inputs; it does not by itself hide what the output reveals, nor prove that the server computed the function correctly. The approach is studied for privacy-preserving machine learning, cloud computing and confidential analytics.

The intuition behind the method

Imagine placing private data in a locked, transparent box. A third party can rearrange or combine the contents through the walls, for example by adding or multiplying the values, without opening the box or seeing what is inside. When the box is returned, the owner unlocks it and finds the same answer they would have obtained by computing on the raw data. Homomorphic encryption realises this idea with lattice-based algebra, where carefully bounded noise hides the data but also limits how many operations can be applied before decryption breaks down.

History

Craig Gentry's 2009 STOC paper, 'Fully homomorphic encryption using ideal lattices', proposed a scheme that can evaluate circuits over encrypted data without decrypting them. Its central result is that it suffices to construct a scheme able to evaluate its own augmented decryption circuit, which Gentry calls bootstrappable. Before this, schemes such as Paillier (1999) and ElGamal (1985) supported only one of the two operations, addition or multiplication, on ciphertexts. Later lattice-based schemes, including BGV, BFV, CKKS and TFHE, improved practical performance.

When to use it

Choose homomorphic encryption when the data owner must keep inputs confidential from the party performing the computation, and the computation can be written as an arithmetic or Boolean circuit. It fits settings where a service provider must process records it is not permitted to read, such as regulated health, financial or genomic data. Avoid it when latency matters: FHE operations are much slower than the same operations on plaintext, and the cost grows with circuit depth. If some output leakage is acceptable or the parties can trust one another, differential privacy or secure multi-party computation may be cheaper, although they rest on different trust assumptions.

Limitations and considerations

  • Computational overhead is large and depends on the scheme, its parameters and the circuit depth; fully homomorphic operations are typically far slower than the same operations on plaintext.
  • Encrypted values are substantially larger than the plaintext values they represent, which raises storage and transmission costs.
  • Bootstrapping is the most expensive step and remains a practical bottleneck even with hardware acceleration.
  • Every gate adds noise, so the programmer must plan the noise budget and parameters for the intended computation, which requires specialist knowledge of scheme-specific constraints.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • The evaluating party learns nothing about the plaintexts from the ciphertexts it processes, under the scheme's security assumptions, and the secret key stays with the data owner.
  • Evaluation uses only the evaluation key, so the server can compute the function without a round of interaction with the data owner during the computation.
  • Because bootstrapping evaluates the scheme's own decryption circuit, the construction can in principle support circuits whose depth is not fixed in advance.
  • Any function expressible as a circuit of additions and multiplications can be evaluated, which covers both Boolean and arithmetic computations.

Applications

  • Privacy-preserving machine learning inference: running neural network predictions on encrypted patient records or financial data.
  • Genomic data analysis in the cloud without exposing raw sequences to the cloud provider.
  • Secure outsourced database queries where a server evaluates SQL-style predicates on encrypted rows.
  • Electronic voting systems that tally encrypted ballots and publish a verifiable encrypted sum without decrypting individual votes.
  • Confidential smart contracts on blockchain platforms where contract logic executes over private inputs without revealing them on-chain.

How it works

How it works

1

Key generation takes a security parameter λ and outputs a public key for encryption, a secret key for decryption, and an evaluation key. The evaluation key is what allows a third party to run homomorphic operations without access to the secret key. It is also used in bootstrapping, described below.

Formula
\text{KeyGen}(\lambda) \rightarrow (pk, sk, evk): \text{ generate public key } pk, \text{ secret key } sk, \text{ and evaluation key } evk \text{ from security parameter } \lambda
2

A plaintext bit is encrypted by adding a small noise term and randomising the value with the public key. The formula shown is a simplified illustration of this idea, not the exact ideal-lattice construction of Gentry's 2009 paper. The noise is what hides the message, and it is also what limits computation: each homomorphic operation increases the noise, and decryption fails once it becomes too large. Decryption with excessive noise returns a wrong value without any error signal, so practitioners should check outputs against plaintext computations on small test inputs and track the noise budget for the chosen parameters. Gentry's 2009 construction is based on ideal lattices.

Formula
\text{Enc}(pk, m) \rightarrow c: \text{ simplified illustration for } m \in \{0,1\},\ c = m + 2e + pk \cdot r \pmod{q} \text{ where } e \text{ is small noise and } r \text{ is random}
3

Evaluation applies a function f to the ciphertexts using only the evaluation key, so the secret key is not needed at this stage. Addition and multiplication are applied gate by gate, and decrypting the result gives f applied to the original plaintexts. Because each gate adds noise, the depth of the circuit that can be evaluated before decryption fails is limited unless bootstrapping is used.

Formula
\text{Eval}(evk, f, c_1, \ldots, c_k) \rightarrow c_f: \text{ compute } f \text{ on ciphertexts such that } \text{Dec}(sk, c_f) = f(m_1, \ldots, m_k)
4

Bootstrapping is the step that reduces accumulated noise so that computation is not capped by a fixed depth; the name Recrypt in the formula above is a label used in later implementations. Gentry's central result is that it suffices to build a scheme that can evaluate its own decryption circuit, slightly augmented; such a scheme is called bootstrappable. Homomorphically running that decryption on a noisy ciphertext, using the evaluation key, yields a ciphertext of the same message with reduced noise. This step is the dominant cost of fully homomorphic schemes and is what distinguishes them from leveled schemes that support only a fixed depth.

Formula
\text{Recrypt}(evk, c) \rightarrow c': \text{homomorphically evaluate the decryption circuit to reduce accumulated noise, restoring correctness for unbounded computation}

Common pitfalls

  • Choosing parameters too small for the required circuit depth causes noise to overflow during evaluation, which produces incorrect decryption results rather than an obvious error. Test on small inputs against plaintext results and monitor the noise budget.
  • Omitting bootstrapping when the circuit depth exceeds the noise budget yields a leveled scheme that cannot support deep models; the design must match the depth the computation actually needs.
  • Assuming that FHE gives end-to-end privacy without examining the evaluation circuit is a mistake: the circuit's output can still reveal information about the inputs, and FHE does not control what the output discloses.
  • FHE protects confidentiality but does not by itself guarantee integrity: a server could return an incorrect encrypted result and decryption alone would not reveal this. Add verifiable computation or assume a semi-honest server.
  • Confusing scheme families (BGV, BFV, CKKS, TFHE) leads to failures. CKKS supports approximate arithmetic over real numbers and suits machine learning inference; TFHE targets fast bit-level gates. Choosing a scheme that does not match the workload causes either correctness or efficiency problems.

Frequently asked questions

Is fully homomorphic encryption practical today?

For narrow workloads, such as inference with small neural networks, genomic queries or simple statistical aggregations, FHE can be deployed today using libraries such as SEAL, HElib, Concrete or OpenFHE. Latency is still far higher than for plaintext computation, so applications must tolerate long runtimes. Hardware acceleration on GPUs, FPGAs and custom chips is an active research area aimed at narrowing this gap.

What is the difference between FHE, somewhat homomorphic encryption, and leveled HE?

Somewhat homomorphic encryption (SHE) supports a limited number of operations before the noise exceeds the decryption threshold. Leveled HE sets parameters large enough to evaluate circuits up to a predetermined depth without bootstrapping. Fully homomorphic encryption adds bootstrapping to refresh noise, supporting circuits of unlimited depth. In practice, many deployments use leveled HE and avoid bootstrapping for performance reasons, accepting a bound on circuit complexity.

Does FHE protect against all privacy attacks?

Under standard cryptographic assumptions, FHE guarantees that the evaluating party learns nothing about the plaintexts from the ciphertexts. It does not protect against leakage through the output: a circuit designer can craft computations whose results reveal information about the inputs. It also does not address membership inference or model inversion at the application layer. FHE is a building block rather than a complete privacy solution, and it is best combined with output perturbation or differential privacy where output leakage is a concern.

Related methods

Sources

  1. Gentry, C. (2009). Fully homomorphic encryption using ideal lattices. ACM Symposium on Theory of Computing (STOC), 169–178.

    Open DOI reference