Toward Scalable Fully Homomorphic Encryption Through Light Trusted Computing Assistance

Wenhao Wang, Yichen Jiang, Qintao Shen, Weihao Huang, Hao Chen, Shuang Wang, Xiaofeng Wang, Haixu Tang, Kai Chen, Kristin E. Lauter, Dongdai LinarXiv 2019

Abstract

Fully Homomorphic Encryption (FHE) is a transformative technology for privacy-preserving cloud computing, yet it is hindered by the immense computational cost of "bootstrapping"—the process required to refresh noise in ciphertexts. This paper introduces TEEFHE, a hybrid architecture that offloads the bootstrapping process to Intel SGX hardware enclaves. By combining untrusted high-performance computing with light assistance from Trusted Execution Environments (TEEs), TEEFHE achieves a 4-to-6 order of magnitude speedup in noise removal and reduces memory consumption by over 99%.

Introduction: The Performance Wall of FHE

Fully Homomorphic Encryption (FHE) allows a cloud provider to perform calculations on encrypted data without ever seeing the underlying information. However, FHE has a significant drawback: noise. Every mathematical operation performed on a ciphertext adds a small amount of noise; if the noise grows too large, the data becomes unreadable.

To mitigate this, FHE uses "bootstrapping" to refresh the ciphertext and clear the noise. In traditional software implementations, bootstrapping is computationally catastrophic—often six orders of magnitude slower than a simple addition. This bottleneck makes FHE too slow and memory-intensive for practical applications like genomic data analysis.

Methods: A Hybrid Architecture

The researchers propose a hybrid system that splits the workload between untrusted and trusted hardware components to bypass the cryptographic complexity of software-based bootstrapping.

System Design

  1. Homomorphic Computation (HC) Nodes: These nodes perform the bulk of the mathematical work (additions and multiplications) on untrusted, high-performance hardware (CPUs/GPUs).
  2. Bootstrapping Nodes (TEEFHE): When noise levels become too high, the HC node sends the ciphertext to an Intel Software Guard Extensions (SGX) enclave.
Figure 1: The TEEFHE hybrid architecture showing the interaction between users, cloud providers, and TEE-based bootstrapping nodes.

Inside the secure enclave, the data is briefly decrypted, "refreshed" (re-encrypted to reset the noise), and sent back. Because the enclave is a hardware-isolated "black box," the cloud provider still cannot see the underlying data.

Hardening Against Side-Channels

To prevent "side-channel attacks"—where an attacker might observe memory access patterns or timing to guess secret keys—the authors manually rewrote critical parts of the Microsoft SEAL library. They replaced secret-dependent "if" statements with data-independent cmov (conditional move) instructions, ensuring the enclave's execution pattern remains identical regardless of the data being processed.

Key Results

The system was evaluated using micro-benchmarks and a real-world logistic regression task from the 2017 iDASH Genome Privacy Competition.

Massive Speedups and Efficiency

SGX-based bootstrapping proved to be 4 to 6 orders of magnitude faster than traditional software-only methods. This speed allows the system to bootstrap more frequently, which in turn permits the use of much smaller encryption parameters.

Figure 5: Performance comparison of various FHE operations and bootstrapping methods across different polynomial degrees (n).

On the iDASH genomic task, TEEFHE was two orders of magnitude faster than the state-of-the-art software-only SEAL implementation. Furthermore, memory usage was reduced from 50.02 GiB to just 225.86 MiB—less than 1% of the original footprint—for the same task.

Conclusion

TEEFHE demonstrates that "light assistance" from trusted hardware can effectively solve the scalability issues of FHE. By offloading only the noise-clearing step, the system maintains the scalability of untrusted cloud infrastructure while achieving the performance necessary for real-world privacy-preserving computation. Future work will explore porting TEEFHE to GPU-accelerated libraries to further push these performance boundaries.

Summary updated

BibTeX
@misc{wang2019toward,
  author = {Wenhao Wang and Yichen Jiang and Qintao Shen and Weihao Huang and Hao Chen and Shuang Wang and Xiaofeng Wang and Haixu Tang and Kai Chen and Kristin E. Lauter and Dongdai Lin},
  title = {{Toward Scalable Fully Homomorphic Encryption Through Light Trusted Computing Assistance}},
  year = {2019},
  eprint = {1905.07766},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.07766},
}
Figure