A Highly-efficient Lattice-based Post-Quantum Cryptography Processor for IoT Applications

Zewen Ye, Ruibing Song, Hao Zhang, Donglong Chen, Ray Chak-Chung Cheung, Kejie HuangIacr Trans. Cryptogr. Hardw. Embed. Syst 2024

Introduction

The advent of large-scale quantum computers poses a significant threat to current cryptographic standards like RSA and Elliptic Curve Cryptography (ECC). In response, the National Institute of Standards and Technology (NIST) has initiated the standardization of Post-Quantum Cryptography (PQC) algorithms, with Lattice-Based Cryptography (LBC) emerging as a primary candidate. However, LBC algorithms such as CRYSTALS-Kyber and CRYSTALS-Dilithium are computationally intensive, presenting a substantial challenge for resource-constrained Internet-of-Things (IoT) devices. This paper presents a specialized RISC-V processor designed to bridge the gap between flexible general-purpose cores and rigid hardware accelerators.

Architectural Innovations

The proposed design extends the open-source CV32E40P 32-bit RISC-V core with several domain-specific enhancements. The architecture integrates a custom execution unit and a dual-issue memory path to optimize the throughput of cryptographic primitives.

High-level architecture of the proposed RISC-V PQC processor showing the integrated PALU and dual-issue pipeline.

Dual-Mode SIMD and Resource-Reusable PALU

A central innovation is the Parallel ALU (PALU), which supports a dual-mode Single-Instruction Multiple-Data (SIMD) architecture. The processor can dynamically switch between a 256-bit mode for polynomial arithmetic (essential for LBC) and a 320-bit mode optimized for the Keccak (SHA-3) hashing algorithm.

The PALU consists of 10 processing cores designed for maximum resource reuse. By sharing multipliers and adders between modular arithmetic and hashing functions, the design significantly reduces the silicon area compared to separate dedicated units. In 320-bit mode, the processor can handle a full row of the Keccak state matrix in a single cycle, dramatically accelerating hashing operations.

Detailed design of the PALU showing the 10-core organization and the internal data path for arithmetic operations.

Memory and Data Path Optimization

To address the memory bottleneck common in SIMD architectures, the processor features a dual-issue memory path. This allows the core to overlap "load/store" operations with "compute" instructions, effectively hiding memory latency. Furthermore, dedicated Data Shuffling Units are implemented to handle the complex data dependencies inherent in the Number Theoretic Transform (NTT), a core component of lattice-based math.

Performance Evaluation

The processor was evaluated using NIST-standardized algorithms and synthesized on a 28nm CMOS process.

  • Efficiency: The design achieves a 10x speedup over the baseline RISC-V core and a 5x speedup over the ARM Cortex-M4.
  • Power Consumption: Operating at 200 MHz, the processor consumes only 2.01 mW for Kyber and 2.13 mW for Dilithium, making it ideal for battery-powered IoT applications.
  • Keccak Acceleration: Custom instructions enable Keccak hashing to run approximately 32x faster than standard software implementations.

Conclusion

By combining a flexible RISC-V foundation with a highly optimized, resource-reusable SIMD datapath, this work provides a scalable solution for securing the IoT ecosystem against future quantum threats. Future research will focus on enhancing side-channel resistance and developing automated compiler support to improve the usability of the custom instruction set.

Summary updated

BibTeX
@article{ye2024highly,
  author = {Zewen Ye and Ruibing Song and Hao Zhang and Donglong Chen and Ray Chak-Chung Cheung and Kejie Huang},
  title = {{A Highly-efficient Lattice-based Post-Quantum Cryptography Processor for IoT Applications}},
  journal = {Iacr Trans. Cryptogr. Hardw. Embed. Syst},
  year = {2024},
  doi = {10.46586/tches.v2024.i2.130-153},
}
Figure