Homomorphic Encryption Explained: Protecting Data in Use for Security+
Encryption protects data at rest and in transit. The awkward gap has always been data in use — to compute on something, you normally have to decrypt it first, which means the data is exposed in memory to whoever controls the machine.
Homomorphic encryption lets you perform calculations directly on encrypted data and get an encrypted result that, once decrypted, is correct.
The processor never sees the plaintext. The cloud provider never sees the plaintext. Only the key holder does, and only at the very end.
A Concrete Example
Suppose you encrypt the numbers 5 and 3. You send both ciphertexts to an untrusted server and ask it to add them. It performs an operation on the ciphertexts — it has no idea what values they represent — and returns a third ciphertext. You decrypt it and get 8.
The server computed a correct answer to a question it could not read, about data it could not see. That is the whole idea, and it sounds impossible until you see that some encryption schemes preserve mathematical structure: an operation on the ciphertexts maps predictably onto an operation on the plaintexts.
The Three Types
Exams distinguish these, and the distinction is about which operations are supported and how many times.
Partially homomorphic encryption (PHE). Supports one operation — either addition or multiplication — an unlimited number of times. RSA is multiplicatively homomorphic; Paillier is additively homomorphic. These are old, practical, and fast enough to use, which is why Paillier appears in real electronic voting systems.
Somewhat homomorphic encryption (SHE). Supports both addition and multiplication, but only for a limited number of operations. Each operation adds noise to the ciphertext, and once the noise exceeds a threshold, the result becomes undecryptable.
Fully homomorphic encryption (FHE). Supports unlimited additions and multiplications, which is enough to compute any function. Craig Gentry demonstrated the first working construction in 2009 using bootstrapping — a technique that periodically refreshes a ciphertext to reduce accumulated noise. FHE is the theoretically complete answer.
Why It Is Not Everywhere Yet
Performance. Gentry's original scheme was on the order of a trillion times slower than computing on plaintext. Two decades of work have improved that enormously — modern libraries such as Microsoft SEAL, IBM HElib, OpenFHE and Google's implementations have brought it into the range of hundreds to thousands of times slower rather than trillions — but that overhead still rules out most general-purpose computing.
Ciphertext expansion is the second problem: encrypted values are far larger than their plaintexts, which costs storage and bandwidth. And the programming model is genuinely difficult, because comparisons and branching are awkward when you cannot see any value.
The realistic verdict, and the one worth giving on an exam: homomorphic encryption is practical today for narrow, high-value computations, and not for general workloads.
Where It Is Actually Used
- Healthcare research. Running analytics across hospital datasets without any party seeing another's patient records.
- Financial services. Fraud detection and risk models across institutions that cannot share raw customer data.
- Private information retrieval. Querying a database without revealing the query — searching a breach corpus without disclosing what you searched for.
- Electronic voting. Tallying encrypted ballots so individual votes are never revealed but the total is verifiable.
- Privacy-preserving machine learning. Running inference on encrypted inputs, so a model provider never sees the data submitted to it.
- Genomic analysis, where the data is both extremely sensitive and permanently identifying.
Related Privacy-Enhancing Technologies
Exams group these together, and knowing the neighbours helps you pick the right one in a scenario.
- Secure multi-party computation (SMPC) — several parties jointly compute a function over their combined inputs without revealing them to each other.
- Differential privacy — adding calibrated statistical noise so aggregate results are useful while individuals cannot be identified.
- Trusted execution environments such as Intel SGX and AMD SEV — hardware-enforced enclaves that protect data in use. Much faster than FHE, but they trust the hardware vendor and have a history of side-channel weaknesses.
- Tokenization and data masking — replacing sensitive values with substitutes. Simple and common, but no computation happens on the protected values.
The distinction worth holding: homomorphic encryption protects data in use cryptographically; a TEE protects it with hardware; tokenization simply removes it.
Security+ (SY0-701) Exam Tips
- Know the definition: computation on encrypted data without decrypting it.
- It addresses data in use, completing the trio with data at rest and data in transit. This framing is exactly how CompTIA presents it.
- Performance is the limitation. If a question asks why it is not widely deployed, that is the answer.
- Recognize the use cases: secure cloud computation, privacy-preserving analytics, healthcare and financial data sharing.
- Know it apart from tokenization, masking, and obfuscation, none of which allow computation on the protected data.
- Partially, somewhat, and fully homomorphic — know the ordering even if the detail is not required.
SecurityX and SecAI+ Angles
SecurityX (CAS-005) treats it as an architectural option for regulated data sharing — when the overhead is justified, how it compares with SMPC and enclaves, and the key management implications.
SecAI+ (CY0-001) covers privacy-preserving machine learning: homomorphic inference, federated learning, and differential privacy as approaches to training and serving models without exposing the underlying data.
Key Takeaways
- Homomorphic encryption allows computation on ciphertext, producing an encrypted result that decrypts correctly.
- It protects data in use, the gap left by encryption at rest and in transit.
- Partial supports one operation, somewhat supports a limited number of both, fully supports unlimited.
- Fully homomorphic encryption became possible in 2009 via bootstrapping to manage noise.
- Performance overhead is the barrier, so it suits narrow high-value workloads rather than general computing.
- Compare it with SMPC, differential privacy, trusted execution environments and tokenization, which solve adjacent problems differently.
Related reading: The right to be forgotten · The shared responsibility model
Comments
Post a Comment