高级搜索

留言板

尊敬的读者、作者、审稿人, 关于本刊的投稿、审稿、编辑和出版的任何问题, 您可以本页添加留言。我们将尽快给您答复。谢谢您的支持!

姓名
邮箱
手机号码
标题
留言内容
验证码

面向格基密码的统一可配置多项式运算加速器

高迎雪,  陈镗哲,  李宗腾,  张吉良

高迎雪, 陈镗哲, 李宗腾, 张吉良. 面向格基密码的统一可配置多项式运算加速器[J]. 电子与信息学报. doi: 10.11999/JEIT260587
引用本文: 高迎雪, 陈镗哲, 李宗腾, 张吉良. 面向格基密码的统一可配置多项式运算加速器[J]. 电子与信息学报. doi: 10.11999/JEIT260587
GAO Yingxue, CHEN Tangzhe, LI Zongteng, ZHANG Jiliang. A Unified and Configurable Polynomial Operation Accelerator for Lattice-Based Cryptography[J]. Journal of Electronics & Information Technology. doi: 10.11999/JEIT260587
Citation: GAO Yingxue, CHEN Tangzhe, LI Zongteng, ZHANG Jiliang. A Unified and Configurable Polynomial Operation Accelerator for Lattice-Based Cryptography[J]. Journal of Electronics & Information Technology. doi: 10.11999/JEIT260587

面向格基密码的统一可配置多项式运算加速器

doi: 10.11999/JEIT260587 cstr: 32379.14.JEIT260587
基金项目: 国家自然科学基金联合基金重点项目(No. U24A20289),南京邮电大学引进人才自然科学研究启动基金(No. NY225069),南京邮电大学校级自然科学基金(No.NY225155)
详细信息
    作者简介:

    高迎雪:女,副教授,研究方向为先进密码硬件加速,邮箱 gyingxue@njupt.edu.cn

    陈镗哲:男,研究方向为后量子密码硬件加速

    李宗腾:男,博士生,研究方向为后量子密码硬件加速

    张吉良:男,教授,研究方向为硬件安全芯片

    通讯作者:

    张吉良 zhangjiliang@njupt.edu.cn

  • 中图分类号: TN402

A Unified and Configurable Polynomial Operation Accelerator for Lattice-Based Cryptography

Funds: National Natural Science Foundation of China (No. U24A20289), Natural Science Research Start-up Foundation of Recruiting Talents of Nanjing University of Posts and Telecommunications (Grant No. NY225069), Natural Science Foundation of Nanjing University of Posts and Telecommunications (Grant No. NY225155)
  • 摘要: 基于格的密钥封装机制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提升。
  • 图  1  统一硬件加速器PolyUnify的高层结构

    图  2  PE单元硬件架构

    图  3  NTT多阶段数据流映射策略

    图  4  基于双通路的PWM数据流映射执行

    表  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
    下载: 导出CSV

    表  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计算
    下载: 导出CSV
  • [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.
  • 加载中
图(4) / 表(2)
计量
  • 文章访问数:  7
  • HTML全文浏览量:  1
  • PDF下载量:  1
  • 被引次数: 0
出版历程
  • 收稿日期:  2026-05-11
  • 修回日期:  2026-11-24
  • 录用日期:  2026-11-24
  • 网络出版日期:  2026-12-02

目录

    /

    返回文章
    返回