Table of Contents
Fetching ...

A code-driven tutorial on encrypted control: From pioneering realizations to modern implementations

Nils Schlüter, Junsoo Kim, Moritz Schulze Darup

TL;DR

The paper addresses confidentiality of process data in networked CPS by introducing encrypted control and a code-driven tutorial that demonstrates practical encrypted implementations of basic controllers. It systematically surveys Paillier, GSW, and CKKS, explaining how fixed-point encoding and integer reformulations enable real-valued control computations on encrypted data with varying multiplicative depths. The authors provide concrete MATLAB toolbox implementations for state feedback and PI control under encryption, along with numerical experiments that validate that encrypted closed-loop behavior closely matches plaintext performance under reasonable encoding parameters. This work lowers the barrier to adopting encrypted control in practice by offering concrete, executable examples and a clear discussion of tradeoffs such as encoding error and depth limitations, making encrypted control more accessible to researchers and practitioners.

Abstract

The growing interconnectivity in control systems due to robust wireless communication and cloud usage paves the way for exciting new opportunities such as data-driven control and service-based decision-making. At the same time, connected systems are susceptible to cyberattacks and data leakages. Against this background, encrypted control aims to increase the security and safety of cyber-physical systems. A central goal is to ensure confidentiality of process data during networked controller evaluations, which is enabled by, e.g., homomorphic encryption. However, the integration of advanced cryptographic systems renders the design of encrypted controllers an interdisciplinary challenge. This code-driven tutorial paper aims to facilitate the access to encrypted control by providing exemplary realizations based on popular homomorphic cryptosystems. In particular, we discuss the encrypted implementation of state feedback and PI controllers using the Paillier, GSW, and CKKS cryptosystem.

A code-driven tutorial on encrypted control: From pioneering realizations to modern implementations

TL;DR

The paper addresses confidentiality of process data in networked CPS by introducing encrypted control and a code-driven tutorial that demonstrates practical encrypted implementations of basic controllers. It systematically surveys Paillier, GSW, and CKKS, explaining how fixed-point encoding and integer reformulations enable real-valued control computations on encrypted data with varying multiplicative depths. The authors provide concrete MATLAB toolbox implementations for state feedback and PI control under encryption, along with numerical experiments that validate that encrypted closed-loop behavior closely matches plaintext performance under reasonable encoding parameters. This work lowers the barrier to adopting encrypted control in practice by offering concrete, executable examples and a clear discussion of tradeoffs such as encoding error and depth limitations, making encrypted control more accessible to researchers and practitioners.

Abstract

The growing interconnectivity in control systems due to robust wireless communication and cloud usage paves the way for exciting new opportunities such as data-driven control and service-based decision-making. At the same time, connected systems are susceptible to cyberattacks and data leakages. Against this background, encrypted control aims to increase the security and safety of cyber-physical systems. A central goal is to ensure confidentiality of process data during networked controller evaluations, which is enabled by, e.g., homomorphic encryption. However, the integration of advanced cryptographic systems renders the design of encrypted controllers an interdisciplinary challenge. This code-driven tutorial paper aims to facilitate the access to encrypted control by providing exemplary realizations based on popular homomorphic cryptosystems. In particular, we discuss the encrypted implementation of state feedback and PI controllers using the Paillier, GSW, and CKKS cryptosystem.
Paper Structure (15 sections, 24 equations, 3 figures, 1 table)

This paper contains 15 sections, 24 equations, 3 figures, 1 table.

Figures (3)

  • Figure 1: Arithmetic circuit for the evaluation of $\sum_{j=1}^3 \boldsymbol{K}_{ij} \boldsymbol{x}_j$. Note that multiplications only occur once on every directed path, resulting in a multiplicative depth of one.
  • Figure 2: State (left) and input (right) trajectories for encrypted state feedback and varying accuracy (curves with dots refer to plaintext values; colors refer to different scaling factors).
  • Figure 3: Outputs (left) and inputs (right) for encrypted PI control and varying accuracy (with line styles as in Fig. \ref{['fig:stateresult']}).