以FPGA實現ElGamal 加密演算法
Implementation of ElGamal algorithm to FPGA
摘要
隱私和安全通信非常重要,密碼學是通過將信息加密成不可讀的格式來保護信息
的科學[1]。 換句話說,它是將純文本轉換為不可讀形式並再次轉換回純文本的
科學[2]。 加密和解密算法在社會中發揮著至關重要的作用。
主要有兩種類型的密碼系統,例如公鑰密碼系統和公共密鑰密碼系統。 兩個密
鑰(公鑰和私鑰)和一個密鑰(公用密鑰)分別用於公鑰和公用密鑰加密[3]。
Elgamal 算法可以構造公鑰密碼系統之一,其關鍵在於使用大質數[4],並且基
於有限域離散對數問題的困難性[5]。 主要運算採用模冪運算[6]。 正因為如
此,Elgamal 算法可以構造一個實用的公鑰密碼系統並保護我們發送的消息[7]。
因此,Elgamal 算法可以確保信任通信和數據保護[8]。 Elgamal 算法也廣泛用
於數字簽名[9]。
在本論文中,我們使用現場可編程門陣列(FPGA)研究 Elgamal 算法。 它是一
種可以在硬件層面配置程序以滿足特定應用要求的半導體器件。 與專用集成電
路(ASIC)不同,FPGA 的編程非常靈活。 FPGA 是一個方便的平台,我們可以在
其中測試加密算法的功能並在硬件級別調試我們的代碼。 我們可以分析波形並
檢查代碼的錯誤。 另外,由於 FPGA 已經綜合,我們可以節省功能測試和調整的
時間。
總之,我們對 Elgamal 算法進行了基於 FPGA 的模擬。 因此,我們發現 FPGA
可以提供靈活的定制平台來模擬加密算法。 隨著互聯網的廣泛普及,加密算法
變得越來越重要。 因此,通過 FPGA 模擬對 Elgamal 算法的理解可以闡明密碼學
在互聯網通信中的重要性。
的科學[1]。 換句話說,它是將純文本轉換為不可讀形式並再次轉換回純文本的
科學[2]。 加密和解密算法在社會中發揮著至關重要的作用。
主要有兩種類型的密碼系統,例如公鑰密碼系統和公共密鑰密碼系統。 兩個密
鑰(公鑰和私鑰)和一個密鑰(公用密鑰)分別用於公鑰和公用密鑰加密[3]。
Elgamal 算法可以構造公鑰密碼系統之一,其關鍵在於使用大質數[4],並且基
於有限域離散對數問題的困難性[5]。 主要運算採用模冪運算[6]。 正因為如
此,Elgamal 算法可以構造一個實用的公鑰密碼系統並保護我們發送的消息[7]。
因此,Elgamal 算法可以確保信任通信和數據保護[8]。 Elgamal 算法也廣泛用
於數字簽名[9]。
在本論文中,我們使用現場可編程門陣列(FPGA)研究 Elgamal 算法。 它是一
種可以在硬件層面配置程序以滿足特定應用要求的半導體器件。 與專用集成電
路(ASIC)不同,FPGA 的編程非常靈活。 FPGA 是一個方便的平台,我們可以在
其中測試加密算法的功能並在硬件級別調試我們的代碼。 我們可以分析波形並
檢查代碼的錯誤。 另外,由於 FPGA 已經綜合,我們可以節省功能測試和調整的
時間。
總之,我們對 Elgamal 算法進行了基於 FPGA 的模擬。 因此,我們發現 FPGA
可以提供靈活的定制平台來模擬加密算法。 隨著互聯網的廣泛普及,加密算法
變得越來越重要。 因此,通過 FPGA 模擬對 Elgamal 算法的理解可以闡明密碼學
在互聯網通信中的重要性。
The privacy and secure communication are very important, and cryptography is the
science of protecting information by encrypting them into unreadable format [1]. In other
words, it is the science of converting plain texts to non-readable form and back to plain
text again [2]. Encryption and decryption algorithms play a vital role in society.
There are mainly two-types of cryptography such as the public key cryptosystem and the
common key cryptosystem. Two keys (public and private keys) and a single key (common
key) are used for Public Key and Common Key cryptographies, respectively [3]. Elgamal
algorithm can construct one of the Public Key cryptosystems lies in the use of large prime
number [4] and is based on difficulty of discrete logarithm problem for finite fields [5].
The main operation assumes the modular exponentiation [6]. Because of it, Elgamal
algorithm can construct a practical Public Key cryptosystem and protect the message we
have sent [7]. Hence, Elgamal algorithm can assure trust communication and data
protection [8]. Elgamal algorithm is widely used for digital signatures as well [9].
In this thesis, we investigate Elgamal algorithm using the Field-Programmable Gate Array
(FPGA). It is a semiconductor device that can configure program to meet specific
application requirements at the hardware level. Unlike the Application-Specific
Integrated Circuits (ASICs), the programming of FPGA is flexible. FPGA is a convenient
platform where we can test the function of encryption algorithm and debug our code at
the hardware level. We can analyze waveform and check the errors of our code. In
addition, because FPGA has already been synthesized, we can save time for testing the
functionality and debugging.
In summary, we have performed an FPGA-based simulation of the Elgamal algorithm.
Hence, we have found that FPGA can offer a flexible and customized platform to simulate
an encryption algorithm. As the Internet has extensively widespread, the encryption
algorithm is more and more important. Hence, the understanding of the Elgamal
algorithm, which we have achieved through the FPGA simulation, can clarify the
importance of cryptography in communication on the internet
science of protecting information by encrypting them into unreadable format [1]. In other
words, it is the science of converting plain texts to non-readable form and back to plain
text again [2]. Encryption and decryption algorithms play a vital role in society.
There are mainly two-types of cryptography such as the public key cryptosystem and the
common key cryptosystem. Two keys (public and private keys) and a single key (common
key) are used for Public Key and Common Key cryptographies, respectively [3]. Elgamal
algorithm can construct one of the Public Key cryptosystems lies in the use of large prime
number [4] and is based on difficulty of discrete logarithm problem for finite fields [5].
The main operation assumes the modular exponentiation [6]. Because of it, Elgamal
algorithm can construct a practical Public Key cryptosystem and protect the message we
have sent [7]. Hence, Elgamal algorithm can assure trust communication and data
protection [8]. Elgamal algorithm is widely used for digital signatures as well [9].
In this thesis, we investigate Elgamal algorithm using the Field-Programmable Gate Array
(FPGA). It is a semiconductor device that can configure program to meet specific
application requirements at the hardware level. Unlike the Application-Specific
Integrated Circuits (ASICs), the programming of FPGA is flexible. FPGA is a convenient
platform where we can test the function of encryption algorithm and debug our code at
the hardware level. We can analyze waveform and check the errors of our code. In
addition, because FPGA has already been synthesized, we can save time for testing the
functionality and debugging.
In summary, we have performed an FPGA-based simulation of the Elgamal algorithm.
Hence, we have found that FPGA can offer a flexible and customized platform to simulate
an encryption algorithm. As the Internet has extensively widespread, the encryption
algorithm is more and more important. Hence, the understanding of the Elgamal
algorithm, which we have achieved through the FPGA simulation, can clarify the
importance of cryptography in communication on the internet