SHA-3 於後量子密碼學之 ASIC 實現
ASIC Implementation of SHA-3 for Post-Quantum Cryptography
摘要
摘要
SHA-3 於後量子密碼學之 ASIC 實現
學生:張文旭 指導教授:渡邊浩志 博士
國立陽明交通大學
電機資訊國際學位學程
摘 要
隨著量子運算技術的快速發展,基於 RSA 與 ECC 之傳統公鑰
密碼系統面臨 Shor 演算法的根本性威脅,一旦具備足夠規
模的量子電腦出現,這些系統將被完全破解。「現在收集
、未來解密」(Harvest Now, Decrypt Later, HNDL)策略使
量子抗性密碼學的導入成為當前迫切需求,而非未來的課
題。在後量子密碼學相關原語中,SHA-3 扮演核心角色:
NIST 後量子密碼標準化計畫所確立的三項演算法——MLKEM、ML-DSA 與 SLH-DSA——均在內部使用 SHA-3 作為核心
原語。因此,高效能 SHA-3 硬體直接決定整體後量子安全
系統的運算效能。
本論文針對 SHA-3 演算法進行完整之 ASIC 硬體設計與實現
,採用 SAED 14nm 標準元件庫,並以 Synopsys 數位 IC 設計
工具完成 RTL-to-GDSII 設計流程。SHA-3 基於 Keccak 演
算法,採用海綿結構(Sponge Construction),其 1600 位元
內部狀態分為負責輸入輸出的 Rate 區域(r = 576 位元)與永
久隱藏的 Capacity 區域(c = 1024 位元)。此隱藏 Capacity
消除了 SHA-2 的長度延伸攻擊漏洞,並提供 SHA-256 所不
具備的結構性量子抗性。
本研究採用每時脈週期計算兩輪(2-rounds-per-cycle)之
部分展開微架構,在單一時脈週期內以組合邏輯完成兩輪
ii
Keccak-f[1600]運算,於 40 MHz 時脈頻率下在 12 個時脈週
期內完成全部 24 輪排列運算,並於第 13 個週期輸出摘要。
Keccak-f[1600]包含 24 輪轉換,每輪由 Theta、Rho、Pi、
Chi 與 Iota 五種核心轉換所組成,其運算主要由 XOR、AND
、NOT 與位元旋轉等位元操作構成,因此非常適合標準元件
邏輯之高效硬體實現。
本論文使用 Verilog HDL 完成 RTL 設計,並建立完整之硬體
驗證流程,包括 RTL 模擬、閘極層級模擬與後佈線驗證。
ASIC 輸出結果與 Python 軟體參考值進行比對,共 25 組測試
輸入全數通過驗證。完整 ASIC 實現流程涵蓋合成、平面規
劃 、 擺 置 、 時 脈 樹 合 成 、 繞 線 與 簽 核 驗 證 , 並 使 用
Synopsys Fusion Compiler 、PrimeTime、StarRC 與 IC
Validator 完成設計。
實驗結果顯示,最終設計包含 17,589 個標準元件,核心面
積為 9,083 μm²,晶片面積約為 113 × 113 μm²,使用率
為 70.3%,並達成 DRC 與 LVS clean 之實體驗證結果及 40
MHz 之時序收斂。所提出之 2-rounds-per-cycle 架構達到
每秒 3.08 × 10⁶次雜湊運算,相較於傳統 1-round-percycle 設計(每秒 1.60 × 10⁶次),在相同時脈頻率下實現 2
倍效能提升,且無需提高時脈速度或更換製程節點。
關鍵詞: SHA-3、Keccak-f[1600]、後量子密碼學、ASIC、
海綿結構、SAED 14nm、每週期兩輪架構。
SHA-3 於後量子密碼學之 ASIC 實現
學生:張文旭 指導教授:渡邊浩志 博士
國立陽明交通大學
電機資訊國際學位學程
摘 要
隨著量子運算技術的快速發展,基於 RSA 與 ECC 之傳統公鑰
密碼系統面臨 Shor 演算法的根本性威脅,一旦具備足夠規
模的量子電腦出現,這些系統將被完全破解。「現在收集
、未來解密」(Harvest Now, Decrypt Later, HNDL)策略使
量子抗性密碼學的導入成為當前迫切需求,而非未來的課
題。在後量子密碼學相關原語中,SHA-3 扮演核心角色:
NIST 後量子密碼標準化計畫所確立的三項演算法——MLKEM、ML-DSA 與 SLH-DSA——均在內部使用 SHA-3 作為核心
原語。因此,高效能 SHA-3 硬體直接決定整體後量子安全
系統的運算效能。
本論文針對 SHA-3 演算法進行完整之 ASIC 硬體設計與實現
,採用 SAED 14nm 標準元件庫,並以 Synopsys 數位 IC 設計
工具完成 RTL-to-GDSII 設計流程。SHA-3 基於 Keccak 演
算法,採用海綿結構(Sponge Construction),其 1600 位元
內部狀態分為負責輸入輸出的 Rate 區域(r = 576 位元)與永
久隱藏的 Capacity 區域(c = 1024 位元)。此隱藏 Capacity
消除了 SHA-2 的長度延伸攻擊漏洞,並提供 SHA-256 所不
具備的結構性量子抗性。
本研究採用每時脈週期計算兩輪(2-rounds-per-cycle)之
部分展開微架構,在單一時脈週期內以組合邏輯完成兩輪
ii
Keccak-f[1600]運算,於 40 MHz 時脈頻率下在 12 個時脈週
期內完成全部 24 輪排列運算,並於第 13 個週期輸出摘要。
Keccak-f[1600]包含 24 輪轉換,每輪由 Theta、Rho、Pi、
Chi 與 Iota 五種核心轉換所組成,其運算主要由 XOR、AND
、NOT 與位元旋轉等位元操作構成,因此非常適合標準元件
邏輯之高效硬體實現。
本論文使用 Verilog HDL 完成 RTL 設計,並建立完整之硬體
驗證流程,包括 RTL 模擬、閘極層級模擬與後佈線驗證。
ASIC 輸出結果與 Python 軟體參考值進行比對,共 25 組測試
輸入全數通過驗證。完整 ASIC 實現流程涵蓋合成、平面規
劃 、 擺 置 、 時 脈 樹 合 成 、 繞 線 與 簽 核 驗 證 , 並 使 用
Synopsys Fusion Compiler 、PrimeTime、StarRC 與 IC
Validator 完成設計。
實驗結果顯示,最終設計包含 17,589 個標準元件,核心面
積為 9,083 μm²,晶片面積約為 113 × 113 μm²,使用率
為 70.3%,並達成 DRC 與 LVS clean 之實體驗證結果及 40
MHz 之時序收斂。所提出之 2-rounds-per-cycle 架構達到
每秒 3.08 × 10⁶次雜湊運算,相較於傳統 1-round-percycle 設計(每秒 1.60 × 10⁶次),在相同時脈頻率下實現 2
倍效能提升,且無需提高時脈速度或更換製程節點。
關鍵詞: SHA-3、Keccak-f[1600]、後量子密碼學、ASIC、
海綿結構、SAED 14nm、每週期兩輪架構。
ABSTRACT
ASIC Implementation of SHA-3 for Post-Quantum
Cryptography
As quantum computing advances, conventional public-key cryptographic
systems based on RSA and ECC face a fundamental threat from Shor's
algorithm, which can break these systems efficiently on a sufficiently large
quantum computer. The Harvest Now, Decrypt Later strategy — where
adversaries collect encrypted data today to decrypt it after quantum
computers mature — makes the transition to quantum-resistant
cryptography an immediate requirement. Among post-quantum
cryptographic primitives, SHA-3 plays a central role: all three algorithms
standardized by NIST in its post-quantum cryptography project — MLKEM, ML-DSA, and SLH-DSA — use SHA-3 or SHAKE internally.
High-performance SHA-3 hardware therefore directly determines the
performance of the entire post-quantum security system.
This thesis presents the complete ASIC implementation of SHA-3 on the
SAED 14nm standard-cell library using the Synopsys digital design
toolchain. SHA-3 is based on the Keccak algorithm and uses a sponge
construction in which the 1600-bit internal state is divided into a rate region
(r = 576 bits) that handles input and output, and a capacity region (c = 1024
bits) that is permanently hidden. This hidden capacity eliminates the
length-extension vulnerability of SHA-2 and provides structural quantum
resistance that SHA-256 does not possess. The ASIC output is verified by
comparing it with simulation based on software coded by Python. The final
design contains 17,589 standard cells within a core area of 9,083 μm² and
a die area of approximately 113 × 113 μm² at 70.3% utilization, with zero
DRC and zero LVS violations and timing confirmed at 40 MHz.
iv
It was found that the throughput is 3.08 × 10⁶ hashes per second, which is
as twice as a conventional method (1.60 × 10⁶ hashes/s) at the same
conditions --- clock frequency and technology node.
Keywords: SHA-3, Keccak-f[1600], Post-Quantum Cryptography, ASIC,
Sponge Construction, SAED 14nm, 2-rounds-per-cycle.
ASIC Implementation of SHA-3 for Post-Quantum
Cryptography
As quantum computing advances, conventional public-key cryptographic
systems based on RSA and ECC face a fundamental threat from Shor's
algorithm, which can break these systems efficiently on a sufficiently large
quantum computer. The Harvest Now, Decrypt Later strategy — where
adversaries collect encrypted data today to decrypt it after quantum
computers mature — makes the transition to quantum-resistant
cryptography an immediate requirement. Among post-quantum
cryptographic primitives, SHA-3 plays a central role: all three algorithms
standardized by NIST in its post-quantum cryptography project — MLKEM, ML-DSA, and SLH-DSA — use SHA-3 or SHAKE internally.
High-performance SHA-3 hardware therefore directly determines the
performance of the entire post-quantum security system.
This thesis presents the complete ASIC implementation of SHA-3 on the
SAED 14nm standard-cell library using the Synopsys digital design
toolchain. SHA-3 is based on the Keccak algorithm and uses a sponge
construction in which the 1600-bit internal state is divided into a rate region
(r = 576 bits) that handles input and output, and a capacity region (c = 1024
bits) that is permanently hidden. This hidden capacity eliminates the
length-extension vulnerability of SHA-2 and provides structural quantum
resistance that SHA-256 does not possess. The ASIC output is verified by
comparing it with simulation based on software coded by Python. The final
design contains 17,589 standard cells within a core area of 9,083 μm² and
a die area of approximately 113 × 113 μm² at 70.3% utilization, with zero
DRC and zero LVS violations and timing confirmed at 40 MHz.
iv
It was found that the throughput is 3.08 × 10⁶ hashes per second, which is
as twice as a conventional method (1.60 × 10⁶ hashes/s) at the same
conditions --- clock frequency and technology node.
Keywords: SHA-3, Keccak-f[1600], Post-Quantum Cryptography, ASIC,
Sponge Construction, SAED 14nm, 2-rounds-per-cycle.