【正文】
基于FPGA的DES加密系統(tǒng)設(shè)計(jì)與實(shí)現(xiàn)摘要隨著信息技術(shù)的發(fā)展,計(jì)算機(jī)應(yīng)用滲透到社會生活的各個領(lǐng)域,特別是軍事的應(yīng)用,使人們對信息的依賴程度越來越高,因而信息安全技術(shù)顯得格外重要。加密作為信息安全中一個最為有力的武器,正在發(fā)揮著重要的作用。DES (Data Encryption Standard)加密算法在成為加密標(biāo)準(zhǔn)到今天,經(jīng)歷了長期的考驗(yàn)。實(shí)踐證明DES算法的安全性是能夠滿足大部分的安全要求的。采用軟件方式實(shí)現(xiàn)的DES算法會在很大程度上占用系統(tǒng)資源,造成系統(tǒng)性能的嚴(yán)重下降,而DES算法本身并沒有大量的復(fù)雜數(shù)學(xué)計(jì)算,在加/解密過程和密鑰生成過程中僅有邏輯運(yùn)算和查表運(yùn)算,因而,無論是從系統(tǒng)性能還是加/解密速度的角度來看,采用硬件實(shí)現(xiàn)都是一個理想的方案。隨著微電子技術(shù)的發(fā)展,可編程邏輯器件由早期的只讀存貯器((PROM)發(fā)展到今天十分流行并廣泛應(yīng)用的現(xiàn)場可編程門陣列FPGA 。 FPGA具有體系結(jié)構(gòu)和邏輯單元靈活,集成度高以及實(shí)用范圍寬等特點(diǎn),可以實(shí)現(xiàn)較大規(guī)模的電路,編程也很靈活,而且設(shè)計(jì)開發(fā)周期短,設(shè)計(jì)制造成本低,開發(fā)工具先進(jìn),標(biāo)準(zhǔn)產(chǎn)品無需測試,質(zhì)量穩(wěn)定以及可實(shí)時在線檢驗(yàn)等優(yōu)點(diǎn),因此被廣泛應(yīng)用于產(chǎn)品的原型設(shè)計(jì)和產(chǎn)品生產(chǎn)。所以,應(yīng)用FPGA來設(shè)計(jì)和實(shí)現(xiàn)DES加密算法具有十分重要的現(xiàn)實(shí)意義和廣闊的應(yīng)用前景。本文設(shè)計(jì)實(shí)現(xiàn)了一種基于FPGA的DES加密系統(tǒng)。概括起來,本文主要完成了以下幾方面的主要工作:1: 完成了DES加密系統(tǒng)的整體設(shè)計(jì)。整個系統(tǒng)包括DES加密核心模塊,UART通信接口模塊和BLOCKRAM存儲模塊。 2: 以EITS2003開發(fā)板為硬件開發(fā)平臺,ISEwebpack為開發(fā)軟件,用Verilog硬件描述語言設(shè)計(jì)并且實(shí)現(xiàn)了三大模塊的具體功能及整體連接。 3: 用PC,串口調(diào)試工具,UART通信接口和EITS2003開發(fā)板測試并驗(yàn)證了整個系統(tǒng)的功能。 4: 探討了DES加密系統(tǒng)在軍事通信總站內(nèi)的應(yīng)用。關(guān)鍵字:DES, FPGA, Verilog, UART, B1ockRAM, 數(shù)據(jù)加密ABSTRACT With the development of information technology, the application of puter has e into social any field. Especially in military field, people rely on information more seriously. So information security bees very important. Encryption as a sort of power weapon is widely used in the field of information security. DES (Data Encryption Standard) encryption arithmetic has stood the long test from when it became the encryption standard to now. It is proved by much practice that the security of the DES encryption can satisfy the voluminous need of security. Implementing the DES arithmetic by software will engross much system resource and make the system function decline. But the DES arithmetic has not much and plex mathematics count and only has logic operation and lookuptable operation. So, thinking from the point of system function and speed of encryption and decryption, implementing the DES arithmetic by hardware is an ideal project. With the development of microelectronic technology, the programmable logic device develop from earlier ROM to very popular and extensive applied FPGA(Field Programmable Gate Array) today. The FPGA has the characteristic of flexible system structure and logic unit, high Integration and wide application. Especially, the FPGA can carry out the more largescale circuit, programmed flexibly. When the engineers use the FPGA to design and develop the product, the time is short, the cost is low, the tool is advanced, the standard product don39。t need to test, the quality is steady and the product can be inspected on line. So, the FPGA is widely used to design and make product. Therefore, using the FPGA to design and implement the DES encryption arithmetic is very important and it will be widely used in much field. The main contributions of the paper are as follow: 1: Completed the whole design of the DES encryption system .The whole system includesthe DES encryption core module, he UART munication interface module and Block RAM memory module. 2: Used the Verilog hardware design language to design and implement the function and the whole connection of the three modules by the EITS2003 as the hardware development flat roof and the ISEwebpack as the software development tool. 3: Used the PC, SCOMAssistant, the UART munication interface and the EITS2003 development plat roof to test and rerify the function of the whole system. 4: Discussed the application of the DES encryption system in the military munication station.Key words:DES,FPGA, Verilog, UART, BIockRAM, Data Encryption摘要…………………………………………..………………………………………………..工ABSTRACT…………………………………………………………………………………..工工第一章緒論……………………………………………….. ………………………………………11. 1 DES的基本概念及特點(diǎn)……………………………………………………………. …..1 1. 2基于FPGA的DES加密系統(tǒng)的研究背景,意義,及應(yīng)用前景………………………..1 1. 2. 1 DES加密系統(tǒng)現(xiàn)狀及發(fā)展………………………………………………...……..1 1. 2. 2 PLD發(fā)展過程……………………………………………….. …………………..1 1. 3本文主要工作及章節(jié)安排…………………………………………………………….....2 1. 3. 1本文主要工作………………………………………………….……………..…..2 ……………………………………………………………………….…..2 本章小結(jié)…………………………………………………………………………………..…..3第二章DES加密算法原理及系統(tǒng)開發(fā)環(huán)境……………………………………………….……..4 2. 1 DES加密算法原理……………………………………………………………...………..4 2. 1. 1 DES加密算法原理簡介……………………………………………...…………..4 2. 1. 2初始序列變換IP………………………………………………….………………5 2. 1. 3加密函數(shù)f………………………………………………..……….………………6 2. 1. 4子密鑰生成………………………………………………..……..………………9 2. 2系統(tǒng)開發(fā)環(huán)境………………………………………………..………….………………11 2. 2. 1硬件開發(fā)平臺E工TS2003……………………………………………………..11 2. 2. 2軟件開發(fā)工具ISE WebPack……………………………………..……………..12 2. 2. 3硬件描述語言Verilog HDL………………………………….………..………..13 本章小結(jié)…………………………………………………………………..…………………15第三章DES加密系統(tǒng)設(shè)計(jì)與實(shí)現(xiàn)……………………………………………………..………..16 3. 1 DES加密系統(tǒng)設(shè)計(jì)方案………………………………………………………………..16 3. 1. 1 DES加密核心設(shè)計(jì)方案………………………………………………………..16 3. 1. 2通信接口設(shè)計(jì)方案………………………………………………………….…..17 3. BlockRAM存儲模塊設(shè)計(jì)方案…………………………………………...……..18 3. 1. 4系統(tǒng)設(shè)計(jì)實(shí)現(xiàn)的功能…………………………………………………..….……18 3. 2 DES加密系統(tǒng)的實(shí)現(xiàn)………………………………………………...…………………19 3. 2. 1 DES加密核心模塊的實(shí)現(xiàn)………………………………………..………...…..19 3. 2. 2 UART通信接口模塊的實(shí)現(xiàn)………………………………………………..…..21 B1ockRAM存儲模塊的實(shí)現(xiàn)………………………………….…………..……..22 3. 2. 4 DES加密系統(tǒng)整體設(shè)計(jì)結(jié)果………………………………….…………..……25 本章小結(jié)…………………………………………………………………….………….……31第四章性能分析與功能驗(yàn)證...................………………………………………….…..................32 4. 1性能分析…………………………………………………………………..…….………32 4. 1. 1 DES加密核心的性能分析………………………………………..…….………32 4. 1. 2整體性能分析……………………………………………………..…………….32 4. 2功能驗(yàn)證…………………………………………………………………..…………….33 4. 2. 1基于ModelSim仿真的功能驗(yàn)證………………………………….……………33 4. 2. 2實(shí)際硬件驗(yàn)證…………………………………….………………..……………34 本章小結(jié)………………………………………………………………………..……………36第五章DES加密系統(tǒng)在軍事通信總站內(nèi)的應(yīng)用……………………………………………..37 5. 1 DES加密系統(tǒng)在軍事通信總站內(nèi)的應(yīng)用背景………………………………………37 5. 2軍事通信總站用戶服務(wù)呼叫中心系統(tǒng)結(jié)構(gòu)………………………………………….37 5. 3 DES加密系統(tǒng)在軍事通信總站用戶服務(wù)呼叫系統(tǒng)中的應(yīng)用………………………39 本章小結(jié)……………………………………………………………………………………40結(jié)束語……………………………………