Optimization of Openssl-AES Based on OpenCL

Author
ShiFei
Advisor
WangShiGang
School
Jilin University
Major
Electronics and Communication Engineering
Classification
TP309.7 Encryption and decryption
Degree
Master's thesis
Year
2012
Downloads
122
Citations
0

Request the full text

Abstract

With the popularity and development of computer networks, modern civilizationhas been increasingly dependent on the network. The computer network of the mostimportant feature is open to everyone, to bring great convenience, at the same time itsopenness to people’s privacy and network security has brought unprecedentedchallenges. The security agreement becomes allow people to pay more attention,cryptographic techniques which the main components of security protocols graduallyplays a more important role in people’s lives.Cryptography conform to the needs of the times and become more and moreimportant, the two higher requirements for their performance in the applicationprocess. Its security and its rate has become the research focus of moderncryptography. The SSL protocol is the communication protocol for networkcommunications security, OpenSSL is the password for its library, Which contains themodern latest Advanced Encryption Standard-AES encryption algorithm. Butsubject to the reasons for the CPU serial execution, the OpenSSL-AES encryptionspeed is not very much to meet people’s needs.For the encryption process requires a lot of computing, the selectedgeneral-purpose graphics processor GPGPU computing platform.GPU as a graphicsprocessor, not only in the graphics play a very important role, now can handlefloating-point operations in various areas of computing, also played a very importantrole, especially in the unified programming framework CUDA more full advantage ofGPU general computing capacity. For the encryption process requires a lot ofcomputing, the selected general-purpose graphics processor GPU computingplatform.With the announcement of the Open Computing Language OpenCL, a free,open standard, it provides a compatible and efficient development platform. Combinemultiple heterogeneous systems, Conducive to full play to the role of the GPUcomputing unit.In this paper, the OpenSSL-AES encryption algorithm to optimize basedOpenCL parallel encryption and decryption program. First described in detail themathematical theory of the OpenSSL-AES encryption algorithm, AES and theOpenSSL library processes were analyzed. And then study the OpenCL programmingframework, on the basis of its programming model, with the combination ofOpenSSL-AES algorithm structure,designed on the basis of its programming model,three parallel implementation of OpenSSL-AES encryption programs in parallel,according to the principles of its thread allocation and calculation unit utilization,select Option2for the detailed design and realization of OpenSSL-AES parallel mode,improve the speed than the existing traditional CPU encryption process.Finally, based on the applicable conditions of the parallel speedup, analysis of the performance inthe parallel process of influencing factors.

Table of contents

Summary 4-5 ABSTRACT 5-9 Chapter 1 Introduction 9-15 1.1 Background 9-10 1.2 graphics processor (GPU) and OpenCL 10-11 1.2.1 graphics processor (GPU) 10-11 1.2.2 OpenCL Overview 11 1.3 OpenSSL-AES encryption development research content and structure of 11-13 1.4 papers arrangement 13-15 Chapter 2 OpenSSL- AES encryption algorithm 15-25 2.1 SSL protocol 15-16 2.2 OpenSSL crypto library 16-17 Advanced Encryption algorithm 2.3 OpenSSL library AES 17-23 design principles 2.3.1 Advanced Encryption Algorithm AES, 18-19 2.3.2 AES on the basis of mathematical knowledge 19-20 <br / > encryption structure 2.3.3 OpenSSL-AES encryption algorithm 20-23 2.4 Summary 23-25 ?? Chapter 3 general-purpose computing and OpenCL 25 -35 3.1 introduces traditional GPU 25 3.2 GPGPU GPGPU 25-29 3.2.1 GPGPU appear 25-26 3.2.2 GPGPU relative CPU advantage 26-29 3.3 open Computing Language OpenCL parallel programming 29-34 3.3.1 OpenCL -based presentation 29-30 3.3.3 OpenCL architecture model 30-34 3.4 Summary 34-35 Chapter 4 OpenSSL-AES design optimization 35-47 4.1 AES internal algorithm analysis and design optimization implementation analysis 35-38 4.1.1 OpenSSL-AES is 35-36 4.1.2 encryption algorithm based design 36-38 4.2 operating mode based on parallelism analysis 38-41 4.3 of OpenSSL-AES -based OpenCL parallel program design 41-46 4.3.1 parallel optimization principle 41-42 4.3.2 parallel program design 42-46 4.4 Summary 46-47 Chapter 5, based on OpenSSL-AES encryption OpenCL implementations and performance analysis 47-57 5.1 to achieve environmental and development platform 47 implementation and Performance analysis 5.2 ECB mode 47-54 5.2.1 implementation 47-50 5.2.2 performance test results and analysis 50 - 54 achieve results 5.3 Other operating mode 54-56 5.3.1 implementation 54-55 5.3.2 test performance results were analyzed 55-56 5.4 summary 56-57 Chapter 6 summary and Outlook 57-59 6.1 This article summarizes 57 6.2 Next job Outlook 57-59 References About 59-63 author and research 63-64 Thanks 64

Related dissertations

  1. Parallel accelerated AES algorithm research and design