Fully Homomorphic Encryption (FHE) Libraries

Lake Beryessa
Lake Berryessa, California

May 2025

Disclaimer: The views, thoughts, and opinions presented herein are solely those of the author and do not reflect the positions of any current or previous affiliations and employers. This content is for informational purposes only and should not be construed as professional advice. It's a work-in-progress article and will be updated as I learn more.

Fully Homomorphic Encryption (FHE) represents an advanced cryptographic technique that permits the execution of computational operations directly on encrypted data, obviating the requirement for prior decryption. This capability facilitates the application of diverse functions, including arithmetic operations and sophisticated algorithms, to ciphertext. Subsequent decryption of the resultant ciphertext yields an output equivalent to that obtained through analogous computation performed on the original plaintext.

FHE enables secure computational processes within inherently untrusted environments, such as servers in cloud environments, without compromising the confidentiality of the underlying data.

While still in early stages for complex computation tasks, FHEs can be introduced strategically in privacy-preserving analytics in a hybrid pattern with other solutions to balance user trust, regulatory requirements, with realistic engineering efforts.

Key take-aways

  1. Aggregate analytics: Sums, averages, dot-products, simple regressions can run today under CKKS without ever decrypting.
  2. Comparisons cost: Any ORDER BY, MAX, or join multiplies runtime by one-to-two orders of magnitude.
  3. Hybrid patterns: Keep heavy joins or model training in a protected enclave; reserve FHE for the high-risk columns.
  4. Library maturity: OpenFHE, SEAL, PALISADE and Zama’s Concrete-ML all ship production APIs; GPU kernels close the performance gap for batched linear algebra.
  5. Compliance win: Computations stay encrypted, mapping neatly to GDPR “state-of-the-art” safeguards and. aligned with GDPR expectations for data minimization and secure processing - lowering breach‐impact risk.

Where challenges remain

  • Deep-learning training (dozens of layers) – feasible only with severe quantisation or hybrid MPC/FHE tricks.
  • Large relational joins – comparison gates explode; hybrid trusted-compute or secure enclaves often win.
  • Real-time analytics on streaming data – bootstrapping latency (0.5–2 s each) is the bottleneck.
  • Experimental nature of libraries – While Zama’s Concrete-ML and OpenFHE offer production APIs, most remain experimental ( or pre-prod, academic) when it comes to major deployments.

Key categories of FHE Applications

Basic arithmetic & statistics

  • Analytical functions - element-wise add/sub/mul, vector dot-product, sum, count, mean, variance
  • FHE schemes - BFV, BGV, CKKS
  • Performance - Sub-second on 10²–10³ values; scales linearly.

Linear algebra

SQL-style analytics

Machine Learning (inference)

Machine Learning (training)

  • Analytical functions - Gradient-descent training for linear / logistic regression; first proofs-of-concept for small neural nets
  • FHE schemes - CKKS with bootstrapping
  • Performance - Hours instead of seconds; still research-grade ([PDF] arXiv:2504.12623v1 [cs.CR] 17 Apr 2025)

Similarity / ranking

  • Analytical functions - Private set intersection, k-NN search via batched dot-products
  • FHE schemes - CKKS, BFV
  • Performance - Practical for small k and ≤10 k items; latency dominated by bootstraps.

Comparisons & min/max


References:

General FHE Background:

Performance Benchmarks:

Academic on FHE + ML:

Privacy and Compliance: