設計與實現基於FPGA的高效HMAC-SHA256

Design and Implementation of High-efficiency HMAC-SHA256 Based on FPGA

檔案

全文未公開。

日期

2020

類型

語言

英文

摘要

金鑰雜湊訊息鑑別碼(Hash-Based Message Authentication Code, HMAC),已被廣泛應用於訊息安全的各個領域,包括IOT設備、數位簽章等,如何在這種低成本、低功耗、資源受限的硬體上實現高速的HMAC演算法,是現今的主要考量。金鑰雜湊訊息鑑別碼是由雜湊函數(Hash Function)演變而成的,本篇論文採用的雜湊函數為安全雜湊演算法 (Secure Hash Algorithm, SHA)中的其中一種-SHA-256。SHA-256算法可以分為三個階段:填充塊、消息調度程序和哈希計算。為了縮小面積,本篇論文提出一個新的SHA-256架構並應用於HMAC上,我們在消息調度程序中用移位寄存器的方式計算W_t。在哈希計算中,我們會進行64次迭代,在這步驟中我們利用流水線原理和時序預測電路來優化迭代運算,使用兩層流水線替換壓縮塊中的關鍵路徑,可以縮短計時路徑,提高硬體的吞吐量並降低積體電路的複雜度進而節省硬體成本以及晶片面積。此種硬體電路架構以Verilog HDL來描述。並使用TSMC 180nm CMOS標準元件庫來合成,其工作頻率為200MHz,硬體總閘數為26K。另外我們使用FPGA Virtex-6驗證HMAC-SHA256,其工作頻率為250MHz,硬體資源使用637 slices。其中SHA-256的吞吐量高達2240.9Mbps。
Hash-Based Message Authentication Code (HMAC) has been widely used in various fields of message security, including IOT devices, digital signatures, etc. How to implement high-speed HMAC algorithms on such low-cost, low-power, and resource-constrained hardware is a major consideration today. The key hash message authentication code is evolved from the hash function. The hash function used in this thesis is one of the Secure Hash Algorithm SHA-256. The SHA-256 algorithm can be divided into three stages: padding, message scheduler, and hash calculation. In order to reduce the area, this thesis proposes a new SHA-256 architecture and applies it to HMAC. We use a shift register to calculate Wt in the message scheduler. In the hash calculation, we will operate 64 iterations. In this block, we use the pipeline principle and timing prediction circuit to optimize the iterative operation. Use a two-layer pipeline to reduce the critical path in the compressed block, which can shorten the timing path and improve the hardware throughput and reduce the complexity of the integrated circuit, thereby saving hardware costs and chip area. This hardware circuit architecture is described in Verilog HDL. It is synthesized by Synopsys Design Compiler with TSMC 180nm CMOS standard cell library. Its operating frequency is 200MHz, the total hardware gate count is 26K. In addition, we use FPGA Virtex-6 to verify our design of HMAC-SHA256. Its operating frequency is 250MHz, the hardware resources use 637 slices. The throughput of SHA-256 is up to 2240.9Mbps.

所屬典藏

電控工程研究所
顯示完整詮釋資料 統計資料

引用此條目

Chen, Y.-J. (2020). Design and Implementation of High-efficiency HMAC-SHA256 Based on FPGA. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/76145

BibTeX RIS

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

分享

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