A Unified and Configurable Polynomial Operation Accelerator for Lattice-Based Cryptography
-
摘要: 基于格的密钥封装机制CRYSTALS-Kyber已在美国国家标准与技术研究院(NIST)主导的后量子密码(PQC)标准化进程中被正式选定为标准算法。该算法的整体性能依赖于多项式运算的高效实现。为此,该文提出一种高效且可配置的统一多项式运算加速器—PolyUnify。通过设计统一处理引擎与可配置数据通路,PolyUnify能灵活支持CRYSTALS-Kyber中的核心多项式运算,包括数论变换(NTT)、逆数论变换(INTT)及点乘(PWM),实现了计算资源的高效复用与多运算模式的灵活切换,在计算延迟、硬件开销和架构灵活性之间取得良好平衡。PolyUnify的主要创新体现在以下四个方面:(1)提出统一处理引擎架构,集成并行蝶形计算单元与乘法约简单元,灵活支持多种多项式运算的高效执行;(2)通过在关键路径插入寄存器以降低组合逻辑深度,从而提升硬件架构的工作频率;(3)针对NTT与INTT构建多阶段数据通路并实现高效的数据流调度策略;针对PWM设计双通路并行架构及相应数据流调度策略,从而提升吞吐率;(4)实现二级存储架构,通过减少全局存储访问以降低带宽压力,并利用双端口存储提升并行访问能力,从而满足计算单元的高带宽数据供给需求。最后,提出的PolyUnify架构在Xilinx ZCU104 FPGA平台上完成原型验证。实验结果表明,PolyUnify的最高工作频率可达375 MHz。与现有NTT架构相比,PolyUnify在面积-时间积(ATP)上提升2.64倍;与统一多项式加速器相比,在NTT和PWM上分别实现了1.92倍和2.96倍的ATP提升。
-
关键词:
- 先进密码硬件加速 /
- 后量子密码 /
- 统一处理引擎 /
- 多项式运算 /
- CRYSTALS-Kyber
Abstract:Objective With the rapid advancement of quantum computing technologies, conventional public-key cryptographic schemes based on integer factorization and discrete logarithm problems are facing severe security challenges due to their vulnerability to quantum attack. To address this emerging threat, the National Institute of Standards and Technology (NIST) has initiated the post-quantum cryptography (PQC) standardization process. The lattice-based key encapsulation mechanism CRYSTALS-Kyber has been officially standardized as ML-KEM. Owing to its strong security guarantees, resistance to quantum attacks, and relatively efficient software implementation, CRYSTALS-Kyber has become one of the most promising candidates for next-generation secure communication systems. However, the overall computational efficiency of CRYSTALS-Kyber is heavily dominated by polynomial arithmetic operations, particularly the Number Theoretic Transform (NTT), Inverse Number Theoretic Transform (INTT), and pointwise multiplication (PWM). Existing hardware accelerators mainly follow two design directions. The first focuses on highly optimized dedicated architectures for individual operations such as NTT, which can achieve high throughput but often suffer from limited flexibility and inefficient hardware reuse. The second adopts unified and configurable architectures capable of supporting multiple operations, but such designs usually introduce additional control complexity and hardware overhead, resulting in low area efficiency and limited performance improvement. Consequently, achieving a balanced trade-off among latency, hardware utilization, and architectural flexibility remains a challenging problem. Methods To address the above challenges, this paper proposes PolyUnify, a unified and configurable polynomial operation accelerator specifically designed for CRYSTALS-Kyber. The proposed architecture enables efficient hardware resource sharing across NTT, INTT, and PWM operations through a unified datapath and configurable control mechanism ( Fig. 1 ). First, at the core of the architecture is a Unified Processing Engine (UPE), which integrates multiple parallel butterfly processing engines (PEs) together with lightweight multiplication reduction (MR) units (Fig. 2 ). By reconfiguring internal datapaths and control signals, the same hardware substrate can efficiently support different polynomial operations without requiring dedicated computational units for each mode. To further improve performance, register insertion is carefully applied along critical computational paths to reduce combinational logic depth and shorten timing delay, thereby significantly improving the achievable clock frequency. In addition, the modular reduction logic is optimized according to the modulus characteristics of CRYSTALS-Kyber, transforming complex division-based reductions into lightweight shift operations and conditional correction logic. Second, operation-aware dataflow scheduling strategies are proposed for different polynomial operations. For NTT and INTT, a multi-stage pipeline datapath is constructed to support efficient stage-wise butterfly computation and intermediate data reuse (Fig. 3 ). For PWM, a dual-lane parallel architecture is introduced, while the second lane consists of lightweight MR units dedicated to multiplication and reduction operations. Through optimized parallel scheduling, the proposed PWM datapath significantly improves throughput and reduces execution latency (Fig. 4 ). Third, to alleviate the memory bandwidth bottleneck, a hierarchical memory architecture is designed. The architecture consists of a global memory (GRAM) and a local buffer (LBuf). Frequently reused intermediate data are buffered locally to reduce repeated accesses to global memory, thereby lowering bandwidth pressure. Moreover, dual-port memory interfaces are employed to support concurrent operand fetching, effectively mitigating memory access conflicts. Finally, the overall architecture integrates a configurable control subsystem composed of finite-state-machine-based scheduling logic, address generation units, and synchronized control-path propagation mechanisms. This design ensures deterministic pipeline execution and timing alignment across all operation modes while maintaining architectural flexibility.Results and Discussions The proposed PolyUnify architecture is implemented using Verilog HDL and synthesized on the Xilinx ZCU104 FPGA platform using Xilinx Vivado 2025.1. Experimental results demonstrate that PolyUnify achieves a maximum operating frequency of 375 MHz. The architecture consumes only 3359 LUTs,1479 FFs, and 8 DSPs. Compared with state-of-the-art dedicated NTT architectures, PolyUnify achieves a 2.64× improvement in area–time product (ATP), highlighting its superior balance between performance and hardware overhead. Furthermore, when compared with existing unified polynomial accelerators, PolyUnify demonstrates notable improvements in both NTT and PWM operations, achieving 1.92× and 2.96× ATP enhancements, respectively (Table 2 ). These gains are primarily attributed to the optimized dataflow scheduling and efficient memory hierarchy. The experimental results also indicate that PolyUnify successfully balances latency, hardware utilization, and configurability within a single architecture.Conclusions This paper presents PolyUnify, a unified and configurable hardware accelerator for polynomial operations in CRYSTALS-Kyber. By integrating a unified processing engine, configurable datapaths, operation-aware scheduling strategies, and a hierarchical memory architecture, the proposed PolyUnify architecture effectively addresses the limitations of existing dedicated and unified accelerators in terms of resource redundancy, limited flexibility, and insufficient hardware efficiency. Overall, PolyUnify provides an effective and scalable hardware solution for accelerating lattice-based cryptographic algorithms, achieving an excellent balance among performance, area efficiency, and functional flexibility. Moreover, the ability to support NTT, INTT, and PWM operations within a single configurable architecture makes PolyUnify particularly suitable for practical PQC deployments in resource-constrained platforms such as embedded systems, IoT devices, and edge computing systems. In addition, the proposed design methodology can potentially be extended to other post-quantum cryptographic schemes that rely on similar polynomial arithmetic operations, thereby offering a scalable foundation for future unified cryptographic hardware accelerators and next-generation secure computing systems. -
表 1 PolyUnify模式配置信息
模式 信号 主要操作 UPE资源配置 周期 NTT 2'd0 256点正向NTT lane0启用PE0~PE3;数据通路为 MM→MA/MS;除2修正路径旁路 229 INTT 2'd1 256点逆向NTT lane0启用PE0~PE3;数据通路为 MA/MS→MM;启用除2修正路径 229 PWM 2'd2 NTT域基乘 lane0启用PE0~PE3中的MM资源,lane1同时启用MR4~MR7 75 表 2 硬件资源与性能对比
相关工作 模式 平台 频率
(MHz)资源消耗
(LUT/FF/DSP/BRAM)EqS 延迟 (ns)
(NTT/INTT/PWM)ATP
(NTT/INTT/PWM)文献[9] 专用 Virtex7 246 6400 3800 32 0 6475
(6.10×)618
(1.01×)618
(1.01×)- 4001
(6.16×)4001
(6.16×)- 文献[17] 专用 Zynq 400 3716 2400 12 5 1800
(1.69×)805
(1.32×)- - 1449
(2.23×)- - 文献[18] 专用 Zynq 322 3821 2970 20 5 2398
(2.26×)789
(1.29×)789
(1.29×)- 1892
(2.92×)1892
(2.92×)- 文献[10] 专用 Virtex7 363 2397 1904 16 4 3613
(3.40×)474
(0.78×)474
(0.78×)- 1712
(2.64×)1712
(2.64×)文献[11] 统一 Virtex7 296 982 1151 5 10.5 2589
(2.44×)1034
(1.69×)1034
(1.69×)- 2676
(4.12×)2676
(4.12×)- 文献[12] 统一 Zynq 294 5909 3376 8 5.5 1896
(1.78×)381
(0.62×)381
(0.62×)218
(1.09×)722
(1.11×)722
(1.11×)413
(1.95×)文献[13] 统一 Virtex7 238 7800 6400 24 6 6914
(6.51×)- - - - - - 文献[19] 统一 Artix7 238 817 893 4 1.5 1082
(1.02×)1151
(1.88×)1151
(1.88×)580
(2.90×)1246
(1.92×)1246
(1.92×)627
(2.96×)本工作 统一 Zynq 375 3359 1479 8 0 1062
(1.00×)611
(1.00×)611
(1.00×)200
(1.00×)649
(1.00×)649
(1.00×)212
(1.00×)注:1. Xilinx 7-series的等效面积指标为EqS = (LUT + 550 × DSP + 576 × BRAM)/4 + FF/8
2. Xilinx Zynq UltraScale+的等效面积指标为EqS = (LUT + 550 × DSP + 576 × BRAM)/8 + FF/16
3. ATP统一按照ATP = EqS × 延迟/1000 计算 -
[1] SHOR P W. Algorithms for quantum computation: Discrete logarithms and factoring[C]. Proceedings of the 35th Annual Symposium on Foundations of Computer Science, Santa Fe, USA, 1994: 124–134. doi: 10.1109/SFCS.1994.365700. [2] 赵毅强, 孔金笛, 付玉成, 等. 面向模块化格基密钥封装机制算法多项式乘法的侧信道安全防护关键技术研究[J]. 电子与信息学报, 2025, 47(9): 3126–3136. doi: 10.11999/JEIT250292.ZHAO Yiqiang, KONG Jindi, FU Yucheng, et al. Research on key technologies of side-channel security protection for polynomial multiplication in ML-KEM/Kyber algorithm[J]. Journal of Electronics & Information Technology, 2025, 47(9): 3126–3136. doi: 10.11999/JEIT250292. [3] CHEN L, JORDAN S, LIU Y K, et al. Report on post-quantum cryptography[R]. NIST IR 8105, 2016. doi: 10.6028/NIST.IR.8105. [4] BOS J, DUCAS L, KILTZ E, et al. CRYSTALS – Kyber: A CCA-secure module-lattice-based KEM[C]. 2018 IEEE European Symposium on Security and Privacy, London, UK, 2018: 353–367. doi: 10.1109/EuroSP.2018.00032. [5] AVANZI R, BOS J, DUCAS L, et al. CRYSTALS-Kyber: Algorithm specifications and supporting documentation (Version 3.01)[EB/OL]. https://pq-crystals.org/kyber/data/kyber-specification-round3-20210131.pdf, 2021. [6] KHAN U H, QAMAR A, KHAN R, et al. Secure edge-based IoMT framework for ICU monitoring with TinyML and post-quantum cryptography[J]. Scientific Reports, 2025, 15(1): 36195. doi: 10.1038/s41598-025-20017-6. [7] 贺煜凯, 谢童欣, 朱振华, 等. 面向商用存算一体架构矩阵乘算子协同优化策略研究[J]. 电子与信息学报, 2025, 47(9): 3187–3197. doi: 10.11999/JEIT250364.HE Yukai, XIE Tongxin, ZHU Zhenhua, et al. Collaborative optimization strategies for matrix multiplication-accumulation operators on commercial processing-in-memory architectures[J]. Journal of Electronics & Information Technology, 2025, 47(9): 3187–3197. doi: 10.11999/JEIT250364. [8] 宋赛, 崔昭, 詹尹僧, 等. 面向深度神经网络图像压缩的高性能算术编码硬件设计[J]. 电子与信息学报, 2025, 47(9): 3230–3240. doi: 10.11999/JEIT250509.SONG Sai, CUI Zhao, ZHAN Yinseng, et al. High-performance hardware design of arithmetic coding for deep neural network-based image compression[J]. Journal of Electronics & Information Technology, 2025, 47(9): 3230–3240. doi: 10.11999/JEIT250509. [9] GENG Yue, HU Xiao, LI Minghao, et al. Rethinking parallel memory access pattern in number theoretic transform design[J]. IEEE Transactions on Circuits and Systems II: Express Briefs, 2023, 70(5): 1689–1693. doi: 10.1109/TCSII.2023.3260811. [10] 郑集文, 赵石磊, 张子悦, 等. 面向格密码的高面积效率基-4快速数论变换硬件架构与无访存冲突优化设计[J]. 电子与信息学报, 2026, 48(2): 855–865. doi: 10.11999/JEIT250687.ZHENG Jiwen, ZHAO Shilei, ZHANG Ziyue, et al. High area-efficiency radix-4 number theoretic transform hardware architecture with conflict-free memory access optimization for lattice-based cryptography[J]. Journal of Electronics & Information Technology, 2026, 48(2): 855–865. doi: 10.11999/JEIT250687. [11] SUN Junyan and BAI Xuefei. A high-speed hardware architecture of an NTT accelerator for CRYSTALS-Kyber[J]. Integrated Circuits and Systems, 2024, 1(2): 92–102. doi: 10.23919/ICS.2024.3419562. [12] MANDAL S and ROY D B. KiD: A hardware design framework targeting unified NTT multiplication for CRYSTALS-Kyber and CRYSTALS-Dilithium on FPGA[C]. 2024 37th International Conference on VLSI Design and 2024 23rd International Conference on Embedded Systems (VLSID), Kolkata, India, 2024: 455–460. doi: 10.1109/VLSID60093.2024.00082. [13] XU Yan, DING Lin, HE Penggao, et al. Meta: A memory-efficient tri-stage polynomial multiplication accelerator using 2D coupled-BFUs[J]. IEEE Transactions on Circuits and Systems I: Regular Papers, 2025, 72(2): 647–660. doi: 10.1109/TCSI.2024.3461736. [14] COOLEY J W and TUKEY J W. An algorithm for the machine calculation of complex Fourier series[J]. Mathematics of Computation, 1965, 19(90): 297–301. doi: 10.2307/2003354. [15] GENTLEMAN W M and SANDE G. Fast Fourier Transforms: For fun and profit[C]. Proceedings of the November 7-10, 1966, Fall Joint Computer Conference, San Francisco, California, 1966: 563–578. doi: 10.1145/1464291.1464352. [16] NI Ziying, KHALID A, KUNDI D E S, et al. HPKA: A high-performance CRYSTALS-Kyber accelerator exploring efficient pipelining[J]. IEEE Transactions on Computers, 2023, 72(12): 3340–3353. doi: 10.1109/TC.2023.3296899. [17] SHRIVASTAVA R, RATNALA C P, PULI D M, et al. A unified hardware accelerator for fast Fourier transform and number theoretic transform[C]. ICASSP 2025 - 2025 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Hyderabad, India, 2025: 1–5. doi: 10.1109/ICASSP49660.2025.10889132. [18] KUNDI D E S, BERMUDO MERA J M, STRUB P Y, et al. High-performance NTT hardware accelerator to support ML-KEM and ML-DSA[C]. Proceedings of the 2024 Workshop on Attacks and Solutions in Hardware Security, Salt Lake City, USA, 2024: 100–105. doi: 10.1145/3689939.3695785. [19] 阚瑞晨, 肖昊. 后量子密码中基于NTT的低成本多项式乘法器硬件设计与实现[J]. 合肥工业大学学报: 自然科学版, 2025, 48(10): 1336–1343. doi: 10.3969/j.issn.1003-5060.2025.10.006.KAN Ruichen and XIAO Hao. Hardware design and implementation of low-cost polynomial multiplier based on NTT in post-quantum cryptography[J]. Journal of Hefei University of Technology: Natural Science, 2025, 48(10): 1336–1343. doi: 10.3969/j.issn.1003-5060.2025.10.006. -
下载: