Evaluating Post-Quantum Cryptography on Embedded Systems: A Performance Analysis

Ben Dong, Qian WangarXiv 2024 · DOI

Introduction

The advent of quantum computing poses a significant threat to current cryptographic standards. Algorithms such as RSA and Elliptic Curve Cryptography (ECC), which rely on the difficulty of integer factorization and discrete logarithms, are vulnerable to Shor's algorithm. To mitigate this risk, the National Institute of Standards and Technology (NIST) has standardized Post-Quantum Cryptography (PQC) algorithms. While much research has focused on high-performance computing environments, evaluating these algorithms on resource-constrained embedded systems—the backbone of the Internet of Things (IoT)—is critical. This paper analyzes the performance of NIST-selected PQC algorithms when implemented in Transport Layer Security (TLS) handshakes on embedded hardware.

Methodology

The study evaluates the performance of PQC algorithms by integrating them into the TLS protocol using OpenSSL and the liboqs library. The experimental setup utilized a Raspberry Pi equipped with an ARM Cortex core running at 2.4 GHz. The device functioned as both the TLS server and client to profile the complete handshake process, including encapsulation/signature generation on the server and decapsulation/verification on the client.

The algorithms tested include:

  • Key Encapsulation Mechanism (KEM): CRYSTALS-Kyber (used for establishing a shared secret).
  • Digital Signatures: CRYSTALS-Dilithium, Falcon, and SPHINCS+ (used for server authentication).

Performance was benchmarked against a "control group" using traditional non-PQC methods (ECDHE-x25519 and RSA-2048). The primary metric was the ratio of successful TLS handshake connections per second relative to this control baseline.

Performance Analysis of PQC Algorithms

The transition to PQC introduces new computational and communication overheads. Lattice-based schemes (Kyber, Dilithium, Falcon) generally offer superior efficiency on embedded systems compared to hash-based schemes like SPHINCS+.

A significant bottleneck in PQC is the increased size of digital signatures. Falcon stands out due to its relatively compact signature size, which minimizes communication overhead during the TLS handshake. However, Falcon's reliance on floating-point arithmetic can be a disadvantage on simpler embedded cores lacking specialized hardware. Conversely, Dilithium is well-suited for future optimization via the Number Theoretic Transform (NTT). SPHINCS+ is the most computationally intensive due to the massive volume of underlying hash function calls required for signature generation.

Results

The experimental results demonstrate a clear performance hierarchy among the PQC candidates. Performance was measured at two load levels: Level 1 (representing a single client) and Level 5 (representing five simultaneous clients).

TLS handshake connection ratios for various PQC algorithm combinations compared to a traditional control group.

As shown in the figure, the Kyber-Falcon combination is the most efficient, achieving 93% of the control group's performance under Level 1 load. Kyber-Dilithium follows with moderate performance at 84%. In contrast, SPHINCS+ variants (Kyber-Sphincs-f and Kyber512_Sphincs-s) exhibit significantly lower performance, reaching only 20-27% of the baseline.

Under increased stress (Level 5), performance degrades across all schemes. Kyber-Falcon's efficiency drops to 70%, while SPHINCS+ performance collapses to between 5% and 7%. This highlights the severe impact of computationally heavy signature schemes on server scalability in embedded environments.

Conclusion and Future Work

Lattice-based PQC algorithms like Kyber and Falcon are viable for deployment on modern embedded systems, offering performance levels approaching legacy standards. However, hash-based schemes like SPHINCS+ impose prohibitive costs for real-time TLS applications in the IoT sector.

Future research should focus on:

  1. Hardware Acceleration: Implementing dedicated hardware blocks or instruction set extensions to optimize NTT for Dilithium and floating-point operations for Falcon.
  2. Broader Hardware Evaluation: Testing these protocols on even more resource-constrained microcontrollers that lack full operating system support to determine the absolute minimum requirements for quantum-safe IoT security.

Summary updated

BibTeX
@misc{dong2024evaluating,
  author = {Ben Dong and Qian Wang},
  title = {{Evaluating Post-Quantum Cryptography on Embedded Systems: A Performance Analysis}},
  year = {2024},
  eprint = {2409.05298},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.05298},
}
Figure