The Study of PCIe Interface Encryption Card Driver under the Linux

Author
XuKaiJie
Advisor
ZhangYaJun
School
Hangzhou University of Electronic Science and Technology
Major
Circuits and Systems
Classification
TP309.7 Encryption and decryption
Degree
Master's thesis
Year
2013
Downloads
7
Citations
0

Request the full text

Abstract

Currently the security of data is more and more important. The position of data encryption indata communication and storage appears importantly. The core of protecting data safety is the dataencryption technology, especially in the age when electronic commerce, digital currency, bankingnetwork and other network service is rising. So how to protect data security without being stolenand not been tampered with or damaged gets the attention of people more and more. The servers ofmany enterprises are carrying a large amount of data every day, such as Taobao, Baidu, NetEase. Inthese large servers, data security is very important, how to protect the data on the servers is thequestion nowady. In present society, the design of hardware which is for data encryption is the key.the protection of data in server is also very important. Now the system of servers mostly are Linux,the function of Linux operating system is improving gradually, Linux operating system is more andmore widely used in various fields.This paper designs the driver of encryption card in Linux. The card is inserted into the PCIeslot on computer. The hardware is already exsited. The algorithms are implemented by hardware, sothe catogery of algorithms are exsited. Application can download the data to the card. The card hasmany algorithms for data encryption. The algorithms consist of compression, hash and so on. Thesealgorithms are cracked difficultly. So the card can realize protecing data security. The task of thedriver which is designed by this paper is for data encapsulation which is from user application. Thedriver sets the hardware, then sends the data to hardware for encryption. The driver is for operatingthe hardware detaily. what it provides to the user application are the simple APIs. This paperfirstly introduces the PCI-e bus, then introduces the algorithms, and then introduces the basicframework of hardware. At last introduces the software design process and data test result. Becausethe hardware and algorithm have already exsited. the algorithm security and complex rate is fixed.So what the test of the system is the throughout speed of data. The test result is used as the standardfor success. The driver is divieded into service layer and physical layer:1. Service layer is the first layer, when application use the API, its process will enter this layer.This layer do not contact the hardware directly. Its work includes package processing andpacking. And then pass to the next layer.2. The physical layer is under the service layer. This layer’s work is mainly contacting withthe hardware directly, download the data which is from service layer to hardware throughDMA mode.The system uses Linux as the development environment, designs the driver based on the encryption card. By the API driver interface, the application can download the data to the card forencryption. The encryption speed of the encryption itself can reach800MB/s. the paper have tesedthe software in detail, and the result shows the driver software can reach the encryption speed to600MB/s~700MB/s, which meet the original design requirements.

Table of contents

Abstract 5-6 ABSTRACT 6-10 Chapter 1 Introduction 10-15 1.1 Background and Significance 10 1.2 domestic and foreign research status main contents of 10-12 1.3 This article 12-15 Chapter 2 Hardware features and relevant principles outlined 15- 27 2.1 MSI-X interrupts introduce 15-17 2.2 correlation algorithm introduced 17-18 2.3 PCI-E bus 18-22 2.4 PF / VF communication 22-26 2.5 LINUX device driver development under the basic knowledge introduction 26 2.6 chapter Summary 26-27 <br / > Chapter 3 algorithm hardware encryption card design 27-39 3.1 hardware system framework 27-31 3.1.1 PCI-e chip 27-28 3.1.2 CPLD control module 28 3.1.3 key generation module 28-29 3.1.4 FPGA module 29 <br / > 3.1.5 DMA module 29-31 3.2 driver software to download data to the board 's communication protocol 31-32 3.3 COMMAND structure 32-34 3.4 card data back to the driver software communication protocols package format 34-35 3.5 source data 35-38 3.6 Summary 38-39 Chapter 4 LINUX system driver software design 39-62 4.1 software design ideas and indicators 39-40 4.2 software framework the design modular design nbsp 40-43 4.3 service layer ; 43-50 4.3.1 asynchronous execution module design and indicators 43-46 <br / > Design and indicators 4.3.2 packet processing module 46-48 4.3.3 results receiver module design and indicators 48-50 module 4.4 physical layer design 50-53 4.4.1 driver framework module design 50-51 4.4.2 packet transmission module design 51-53 4.5 auxiliary module design 53-61 design nbsp 4.5.1 event processing module ; 53-54 design nbsp 4.5.2 logging library modules ; 54-55 4.5.3 key Management module 55-58 4.5.4 dialogue management module 58-61 4.6 Chapter Summary 61-62 Article 5 System test main content 62-68 5.1 test 62 5.2 several factors affect the performance of 62 5.3 test environment and configuration API testing and performance testing 62 5.4 system 62-63 5.5 test results 63-67 5.6 chapter Summary 67 -68 Chapter 6 summary and Outlook 68-69 6.1 summarizes the research work 68 6.2 research prospect 68-69 <br / > Thanks 69-70 references 70-73 Appendix 73

Related dissertations

  1. Multi-vehicle Convoy Analysis Based on ANPR Data
    HuangKeJun ·Hunan University ·2013 ·Master's thesis
  2. Design and Realization of Online-Bank Based on the Public Key Infrastructure
    CongZuo ·Hunan University ·2013 ·Master's thesis
  3. The Design and Implementation of a Platform for Cloud Computing Based on Population Information Sharing
    DengLanYong ·Shandong University ·2013 ·Master's thesis
  4. The Design and Implementation of Military Chat System
    SuGuangHui ·Shandong University ·2013 ·Master's thesis
  5. Design and Implementation of GriDoc Management System
  6. Research of vehicle driver training management system
    ZhangWenJun ·Shandong Normal University ·2014 ·Master's thesis
  7. Image Encryption Algorithm Based on Chaos System Scrambling and Radon Transforms Scrambling
    WuJingJing ·Harbin Institute of Technology ·2012 ·Master's thesis
  8. Analysis and Improvement of Data Encryption Algorithms
    ZhaoXu ·Harbin Institute of Technology ·2012 ·Master's thesis
  9. Research and Implemention of Software Copyright Protection
  10. Study on Encryption with Computer Generated Hologram
    LiuJian ·Zhejiang Normal University ·2013 ·Master's thesis
  11. Embedded Linux-based USB Encryption Driver Design
  12. Design and Implementation of Video Image Encryption System Based on3DES Algorithm IP Core
    LiMengYao ·Northeastern University ·2013 ·Master's thesis
  13. Image Encryption in Hybrid Domains Based on Improved Baker Transform and Generalized Xor
    LiuYunLong ·Harbin Institute of Technology ·2013 ·Master's thesis
  14. The Design of File Safe for Android Mobile
    ZhangZuo ·Sichuan Normal University ·2013 ·Master's thesis
  15. Research of QR Code Encryption Method Based on Cellular Automata
  16. Development of Test Resource Interface Specification Inspection Equipment
    ZhangZuoDong ·Harbin Institute of Technology ·2012 ·Master's thesis
  17. Physical Layer Security Research in Cooperative Communication Based on Dynamic Game
    WangYanYan ·Tianjin University ·2012 ·Master's thesis
  18. A Mobile Access Security System Based on Android
  19. Authenticated Analysis and Applied Research about EAP-TLS in802.11i
    ZhouTao ·Central South University ·2013 ·Master's thesis
  20. Rescarch and Implementation of Security Classification-based Encryption and Detection in Mobile Ad Hoc Networks
    ZhangYanYan ·Northeastern University ·2013 ·Master's thesis