NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Implementing homomorphic encryption based secure feedback control

Julian Tran, Farhad Farokhi, Michael Cantoni, Iman Shames · DOI

Abstract

Securing networked control systems (NCS) is critical for modern infrastructure, yet traditional encryption methods often leave data vulnerable during computation at the controller. Homomorphic Encryption (HE) offers a solution by allowing operations on encrypted data, but its high computational cost typically precludes real-time control of fast, unstable systems. This paper presents a hardware-accelerated approach using the Paillier cryptosystem implemented on a Field Programmable Gate Array (FPGA). By leveraging custom digital engines and optimized modular arithmetic, the authors demonstrate real-time stabilization of an inverted pendulum at 500 Hz, bridging the gap between cryptographic security and high-performance physical control.

Introduction

In modern networked control systems, such as smart grids and automated factories, sensors transmit data to a controller that computes and returns commands to actuators. While standard encryption secures data in transit, it must be decrypted for processing, creating a "security gap" if the controller is compromised or hosted on an untrusted cloud.

Homomorphic Encryption (HE) addresses this by enabling mathematical operations directly on ciphertexts. However, the computational overhead of HE often leads to high latency and jitter when implemented on general-purpose processors (CPUs), making it unsuitable for controlling unstable physical systems that require millisecond-level precision.

Conceptual comparison of standard encrypted control (a) and the proposed plant interface architecture (b).

Methodology

The proposed system utilizes the Paillier cryptosystem, an additively homomorphic scheme that allows for the addition of encrypted values and multiplication by constants without decryption. To overcome the latency challenges, the authors implemented the system on a Terasic C5P Development Board featuring a Cyclone V FPGA.

Hardware Architecture

The core of the implementation is a custom digital engine designed for deterministic, high-speed execution. Key optimizations include:

  • Montgomery Multiplication: Specialized modules replace expensive division operations with simpler shifts and additions, accelerating modular arithmetic.
  • Binomial Expansion: The encryption process is streamlined by exploiting the $(N+1)$ basis of the Paillier scheme, bypassing heavy exponentiation.
  • Parallelism: The FPGA architecture allows for simultaneous encryption of multiple sensor readings and decryption of control signals.
Detailed hardware architecture showing the interaction between the Digital Engine Control Units and the multiplication/exponentiation resources across the communication network.

Control Reformulation

Standard control laws (e.g., PID, LQR) are reformulated into a quantized, finite-memory form compatible with integer-based HE. To manage "bit-growth"—where encrypted values cannot be easily rounded—a "resetting" controller architecture periodically clears the controller state to prevent the required bit-length from growing indefinitely.

Experimental Results

The approach was validated using a Quanser QUBE-Servo 2 inverted pendulum. The system successfully maintained stability at a sampling frequency of 500 Hz using 256-bit keys. For a 512-bit key length, the minimum control sampling period was approximately 10 ms.

The results indicate that hardware resource usage (Logic Elements and DSP blocks) scales linearly with key length, providing a clear path for scaling to larger FPGAs. While 512-bit keys are shorter than standard 2048-bit RSA keys, they provide a significant security barrier for industrial loops where data value decays rapidly over time.

Conclusion and Future Work

This work demonstrates that FPGA-based hardware acceleration can make homomorphic encryption viable for real-time control of unstable physical systems. Future research will focus on optimizing the decryption process using the Chinese Remainder Theorem (CRT) to support longer keys and investigating system resilience against network packet loss and variable delays.

Summary updated

BibTeX
@inproceedings{tran2020implementing,
  author = {Julian Tran and Farhad Farokhi and Michael Cantoni and Iman Shames},
  title = {{Implementing homomorphic encryption based secure feedback control}},
  booktitle = {Control},
  year = {2020},
  doi = {10.1016/j.conengprac.2020.104350},
}
Figure