面向 Kyber 的最小化指令集 RISC-V 加速器:管線化模算術單元以調和執行週期與最高工作頻率

A Kyber-Specialized Minimal-ISA RISC-V Accelerator: Pipelining the Modular Arithmetic Unit to Reconcile Cycle Count and Maximum Frequency

檔案

全文將於 2031年8月7日 起公開。

日期

2026

類型

語言

中文

摘要

量子電腦的發展威脅現行公鑰密碼,後量子密碼 CRYSTALS-Kyber 已標準化為
FIPS 203。RISQ-V 於 RISC-V 核心加入緊耦合的後量子密碼加速器與二十九條自訂指
令以加速 Kyber 等方案,然其通用性帶來兩項代價:服務其他方案之硬體成為閒置面
積,且加速器使核心關鍵路徑延長、工作頻率大幅下降,部分抵銷了週期之節省。本
研究將 RISQ-V 專用化於 Kyber:以原始碼為證據量化出 Kyber-512 僅使用二十九條指
令中之八條,據以移除五個閒置硬體單元並硬線化組態常數,使完整核心之查找表用
量降低 16.3%(加速器增量面積降低 33%);並於 Montgomery 模乘之三級串接乘法插
入管線暫存器,使完整核心之最高工作頻率由 28.75 MHz 提升至 54.01 MHz(約 1.88
倍),完全回復至無加速器核心之水準(100.1%)。於完整 Kyber-512 KEM 之模擬實
測中,兩組態皆通過既知答案驗證;週期僅膨脹 8.5%,遠低於 87.9% 之損益平衡點,
KEM 總執行時間由 21.8 ms 縮短至 12.6 ms,淨加速約 1.73 倍。所設計之電路經約十
萬次隨機向量驗證,與原始設計達成位元級等價,並維持常數時間特性,不影響 Kyber
之安全基礎。所有面積與頻率指標皆以邏輯合成量得、週期數以模擬實測,毋須商用
模擬器。
Post-quantum cryptography CRYSTALS-Kyber has been standardized as FIPS 203.
RISQ-V augments a RISC-V core with tightly-coupled accelerators and twenty-nine custom
instructions to accelerate a family of lattice schemes. This generality incurs two costs: idle
silicon for hardware a Kyber-only product never uses, and a large drop of maximum
frequency caused by the lengthened critical path. This work specializes RISQ-V for Kyber. A
source-level analysis shows that Kyber-512 exercises only eight of the twenty-nine
instructions, enabling removal of five idle units and hardwiring of configuration constants,
which reduces full-core LUT usage by 16.3% (accelerator-increment area by 33%). We
pipeline the three cascaded multiplications of the Montgomery multiplier, raising the full-core
maximum frequency from 28.75 MHz to 54.01 MHz (~1.88x), fully restoring the unaccelerated core ceiling (100.1%). In a full Kyber-512 KEM evaluation, both configurations
pass known-answer tests; the measured cycle count rises by only 8.5%, far below the 87.9%
break-even, and the total KEM time drops from 21.8 ms to 12.6 ms, a ~1.73x net speedup.
The design is bit-exact to the original over ~100,000 random vectors and remains constanttime, preserving Kyber's security. All area and frequency metrics are obtained by logic
synthesis and cycle counts by simulation, without a commercial simulator.
顯示完整詮釋資料 統計資料

引用此條目

張又晨 (2026). 面向 Kyber 的最小化指令集 RISC-V 加速器:管線化模算術單元以調和執行週期與最高工作頻率. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/90804

BibTeX RIS

引用文字依 APA 第 7 版格式自動產生,使用前請再核對。

分享

永久網址:https://thesis.lib.nycu.edu.tw/handle/20.500.14371/90804