← Back to section · Foundations of Cryptography
Homomorphic Encryption: Computing Directly on Ciphertexts
Homomorphic encryption allows computation on ciphertexts whose decryption is exactly the result of the corresponding plaintext computation — the server never sees the data. This article explains the divide between partial and fully homomorphic encryption, why noise is the central problem of FHE, and the technology's real costs and place today.
Outsourcing data to the cloud for computation has always meant handing the cloud the data itself to see — a default rule that has troubled privacy-sensitive industries for decades. Homomorphic encryption tries to rewrite it: data is uploaded in ciphertext form, the server computes directly on the ciphertexts and returns a result ciphertext, and the client decrypts to obtain the answer. The server did all the work while learning nothing about the data’s content. Rivest, Adleman, and Dertouzos raised this idea as early as 1978, yet it waited thirty years for its first complete realization.
Homomorphism: Operations Pass Through the Encryption Layer
An encryption scheme is additively homomorphic if there is an operation on ciphertexts whose decryption is exactly the sum of the two plaintexts. Recall ElGamal’s malleability: multiplying ciphertext components yields a decryption that is the product of the plaintexts — a multiplicative-homomorphism instance; the Paillier scheme provides additive homomorphism. Schemes supporting only one operation, but without limit on its use, are called partially homomorphic encryption, and they are already practical: tallying encrypted ballots, private set intersection, and aggregate statistics over encrypted databases mostly live at this layer, because with only additions or only multiplications, noise and complexity stay manageable.
A concrete picture anchors the idea: imagine a vending-machine-style statistics service — a hospital sends encrypted lab values to a cloud platform, the platform adds up tens of thousands of ciphertexts one by one and divides by the count (the division can wait until after decryption), returning a single encrypted total; the hospital decrypts and obtains a departmental average. Throughout, the platform never saw any individual patient’s value, nor the average itself; it merely added a pile of 「locked numbers」. This picture — 「operations pass through the encryption layer」 — is the entire meaning of the word homomorphic; fully homomorphic encryption merely extends the operations that can pass through, from addition alone to arbitrary combinations of functions.
One step beyond partial homomorphism is leveled homomorphism: both addition and multiplication are supported, but circuit depth is capped — when the depth budget is exhausted, computation must stop. Many lattice-based schemes are naturally at this level, because every multiplication amplifies the noise in the ciphertext, and once the noise crosses a threshold, decryption fails. Only schemes supporting arbitrary depth and arbitrary circuits earn the name fully homomorphic encryption (FHE). Between leveled and fully homomorphic stands the core invention of the field: bootstrapping.
Bootstrapping: Giving a Ciphertext 「a Breath of Fresh Air」
In 2009, Craig Gentry gave the first FHE construction in his doctoral dissertation, whose key operation, bootstrapping, is an exquisite idea: execute the decryption circuit itself as a homomorphic computation — using an encrypted private key, perform a 「homomorphic decryption」 on a ciphertext whose noise is nearly full, obtaining a fresh ciphertext of the same plaintext with its noise reset to a low level, so computation can continue indefinitely. In the diver’s metaphor: there is no need to surface; the oxygen tank can be swapped underwater.
Bootstrapping makes arbitrarily long computations possible, and it also sets FHE’s performance agenda: it is the most expensive operation on the field. In the decade and more since, the BGV, BFV, CKKS, and TFHE families have optimized along different routes — some designed for exact integer arithmetic, some (CKKS) specialized for approximate floating point and close to machine learning, some pressing bootstrapping down to the millisecond scale to serve Boolean circuits. The collective progress is real: FHE has moved from papers into usable open-source libraries and pilot systems. But an equally real set of numbers stands on the other side, as the next section shows.
Its Security Foundation and One Important Boundary
Most modern FHE schemes are built on Learning With Errors (LWE) and its ring variants (Ring-LWE) — the same family of hard problems as post-quantum standards such as ML-KEM — which means a properly designed homomorphic scheme naturally has prospects of resisting quantum computing, and its security is likewise characterized by IND-CPA-style indistinguishability. But one boundary must be stated plainly: homomorphic encryption is malleable by definition. A computing party that can evaluate operations on ciphertexts can also evaluate unauthorized operations — the technology provides confidentiality, not integrity. A server can compute wrongly, compute with bias, or maliciously substitute results, and the client cannot tell when decrypting. Upgrading 「computed confidentially」 to 「computed trustworthily」 requires additional machinery such as verifiable computation and zero-knowledge proofs — the link most easily dropped when privacy-computation systems are integrated. Another frequently overlooked detail is access-pattern leakage: which function is computed and which ciphertexts are touched can themselves reveal information, and homomorphic encryption does not automatically address that layer.
The Bill: Why It Is Not Yet Everywhere
FHE’s bill has three items. The first is expansion: a plaintext bit or value typically becomes a ciphertext on the order of thousands of bytes, and storage and bandwidth costs scale accordingly. The second is speed: the same computation on ciphertexts is usually orders of magnitude slower than on plaintexts, especially in bootstrapping-heavy programs; hardware acceleration (GPUs, FPGAs, dedicated chips) is catching up but has not closed the gap. The third is the engineering threshold: parameter selection has system-wide knock-on effects, noise budgets must be accounted program by program, the programming model is far from mainstream development habits, and when debugging, one cannot even 「print out」 intermediate results to look at them.
FHE’s correct place today is therefore not to replace TLS or disk encryption, but to serve as the backstop in scenarios where 「the data is extremely valuable, the computation is relatively bounded in scale, and trust has nowhere to rest」: joint statistics across institutions, outsourced analysis of medical and genomic data, privacy protection for cloud machine-learning inference. It is complementary to, not competing with, secure multiparty computation and trusted execution environments — three routes that buy computation-on-ciphertexts with different trust assumptions. To understand homomorphic encryption is both to see its theoretical completeness — 「compute anything on ciphertexts」 — and to price it soberly; that pricing is exactly the line between concept and engineering.
Tags: Homomorphic EncryptionFully Homomorphic EncryptionComputation on CiphertextsPrivacy-Preserving Computation