Design and Implementation of the7-zip Encryption Algorithm by OpenCL

Author
MengFeiBiao
Advisor
LiXiongFei
School
Jilin University
Major
Software Engineering
Classification
TP309.7 Encryption and decryption
Degree
Master's thesis
Year
2012
Downloads
130
Citations
0

Request the full text

Abstract

With the high speed development of multimedia computer technology, computer networktechnology, and modern multimedia communications technology, people pay more attentionto the date encryption. data encryption, also known as cryptography, It’s about turningbeplaintext to ciphertext by the encryption algorithm and encryption key. The developmentspeed of GPU is faster than the development speed of CPU, almost there will have a newgeneration of GPU every year,the GPU is not only limited to3D graphics, image processing,floating point computing, it has been made more successful in parallel computing. AsDedicated processor for graphics rendering, GPU has a higher degree of parallel, Hence,many researchers pay more attention on the computing of GPU.In October2,2000, the U.S. government officially announced that the algorithm RIJNDAELproved to be the AES encryption algorithm, which is presented by Belgian cryptographersJoan Daemen and Vincent Rijmen. SubBytes is about the transformations task that turn thenonlinear byte to complete the alternative, it also can replace independently the bytes in thestate mention Representative (s box); ShiftRow refers to the bytes in the linemove to a lowerposition, the lowest byte swapping to the highest level; MixColumns each column as afour-degree polynomial, then calculated for each column; AddRoundKey is the operationabout using a bit and a round key to execute XOR operation, and then ralate to the state r.There are five encryption modes in the AES algorithm,it is ECB, CBC, CFB, OFB and CTR.The mode is CTR that we study in AES algorithm, and the CTR mode encryption is a seriesof input data block (counter)encryption, resulting in a series of output block, the ciphertext isby the operation output block XOR with the plaintext.In June2008, the United States Applehas proposed OpenCL specification of the design on WWDC conference. The Khronos Groupannounced the establishment of the GPU general computing on open industry standards group,based on Apple’s proposal for the creation of OpenCL industry standards. The whole name ofOpenCL is Open Computing Languange, is a open computer language, and played a powerfulcomputing of GPU, it provided a mutually developed, more compatible, more efficientplatform. OpenCL could connect GPU with CPU, so that connection more closely. The paper is about the optimization of encryption algorithm in7-zip by OpenCL, there areseveral steps when optimization of encryption algorithm: the OpenCL platform initialization,the OpenCL running module, OpenCL memory managementmodule to achieve improvementsin the AES encryption algorithm, so achieve accelerated results. Firstly, we compared thearchitecture of the GPU with CPU, found the advantage of the GPU. we also a detailed studyof the AES encryption algorithm, we can do some parallel optimization for the encryptionalgorithm of7-zip, we implemented the AES encryption algorithm based on OpenCL,improved the7-zip the overall operating efficiency. After OpenCL implemented, total time isreduced than pure CPU calculation speed about20%-30%.

Table of contents

Summary 4-6 Abstract 6-11 Chapter 1 Introduction 11-14 1.1 significance and background 11 - 12 1.2 research status 12-13 1.3 papers organizational structure 13-14 AES algorithm in Chapter 2, the relevant basic theory 14-21 2.1 AES symbols used in the algorithm 14-17 2.1.1 input and Output 14 2.1.2 byte (Bytes) 14-15 2.1.3 byte array 15-16 2.1.4 status (state) 16-17 applied mathematics 2.2 AES knowledge 17-20 2.2.1 addition 17 2.2.2 multiplication 17-18 2.2.3 polynomials over finite fields ( 28 operational nbsp) on ; 18-20 2.3 Summary 20-21 Chapter 3 traditional CPU and GPU 21-24 3.1 traditional CPU architecture 21-22 3.2 GPU architecture 22 3.3 CPU and GPU logical architecture contrast 22-23 3.4 Summary 23-24 OpenCL Chapter 4 introduces 24-30 4.1 OpenCL introduced 24-25 4.2 OpenCL framework 25-28 <br / > 4.2.1 platform Model (Platform Model) 25 4.2.2 execution model (Execution Model) 25-26 4.2.3 memory Model (Memory Model) 26-27 4.2.4 programming Model (Programming Model) 27-28 4.3 Summary 28-30 AES algorithm introduced in Chapter 5 and OPenCL achieve 30-47 5.1 AES algorithm introduced 30-31 5.2 encryption 31-36 5.2.1 byte substitution (SubBytes ( ) ) transform 32-34 5.2.2 line displacement (ShiftRow ()) transform 34 5.2.3 mixcolumn (MixColumns ()) transform 34 -35 5.2.4 round keys plus (AddRoundKey ()) transform 35-36 5.3 key expansion algorithm 36-37 5.4 decryption 37-38 5.5 AES algorithm model 38-39 5.6 parallelism analysis 39 5.7 OpenCL-based AES encryption algorithm 39 -44 5.7.1 OpenCL platform initialization 40-41 5.7.2 OpenCL runtime module 41-43 5.7.3 OpenCL memory management 43-44 5.7.4 synchronization function 44 5.7.5 reader optimized 44 5.8 performance test 44-46 <br / > 5.8.1 test platform 44 5.8.2 testing tools 44-45 5.8.3 performance comparison 45-46 5.9 of this chapter summary 46-47 Chapter 6 summary and Outlook 47-49 6.1 summarizes 47 6.2 Prospects 47-49 References About 49-52 authors and learning gained during research 52-53 Thanks 53

Related dissertations

  1. The Graphing of Mathematics Image Base on Heterogeneous Computing with OpenCL
    ZhouZiHang ·Guangzhou University ·2013 ·Master's thesis
  2. Digital Image Encryption Based on GPGPU
  3. Energy Spectrum Data Processing of GPU Algorithm Research
    LiuDuan ·Chengdu University of Technology ·2013 ·Master's thesis
  4. A Study on Fast Localization and Registering of Retinal Fundus Images
    GaoYuan ·Shanghai Jiaotong University ·2013 ·Master's thesis
  5. Research and Application of Image Processing in Parallel Programming Method
  6. Research of Optimized Image Segmentation Based on Improved Genetic Algoirthm
    MenHuiYong ·Northeast Normal University ·2012 ·Master's thesis
  7. Realization of Video Capture and Compression Processing Base on DM6467T and Studies of Motion Estimation Algorithm
    WangMingYuan ·Jilin University ·2012 ·Master's thesis
  8. Study on GPU-based Union Algorithm of Concept Lattices
  9. Parallel Analysis and Acceleration Method of AES Algorithm Based on OpenCL
    LinLeSen ·Jilin University ·2012 ·Master's thesis
  10. Research on the Image Dehazing Algorithm Based on OpenCL
    LiuXiaoGuang ·Harbin Institute of Technology ·2013 ·Master's thesis
  11. OpenCL-Based Video Jitter Acceleration Method
    ZhaoZhe ·Northeast Normal University ·2013 ·Master's thesis
  12. Design and Implementation of Video Blur Algorithm Based on OpenCL
    ZhouZuoDong ·Northeast Normal University ·2013 ·Master's thesis
  13. Research on Haze Removal and Image Decoding Accelerating
    FangChao ·Northeast Normal University ·2013 ·Master's thesis
  14. The Research of Mining Frequent Itemset Based on OpenCL
    LiYi ·Chongqing University ·2012 ·Master's thesis
  15. Multidimensional Data Clustering Algorithm Research and GPU Acceleration Based Global K-means
  16. A Compile-time Optimization Method for Heterogeneous Computing Platforms Based on LLVM
    PeiGen ·Chongqing Jiaotong University ·2013 ·Master's thesis
  17. Optimizing Sparse Matrix-vector Multi Based on OpenCL
    ZhaoJiaQiang ·Jilin University ·2012 ·Master's thesis
  18. Design and Implementation of Parallel Encrypt and Decrypt System Based on GPU
    ZhouLiHua ·Harbin Institute of Technology ·2013 ·Master's thesis
  19. The Multi-thread Parallel AES Algorithm Based on Opencl
    PeiYing ·Jilin University ·2012 ·Master's thesis
  20. Research on Performance Acceleration of DEFLATE Algorithm with Collaborative Computing of CPU and GPU
    LiJing ·Jilin University ·2013 ·Master's thesis