Design and Optimization of Hash Algorithms Based on Multi-core CPUs
- Author
- YanWeiChao
- Advisor
- ChenHu , RongNi
- School
- South China University of Technology
- Major
- Software Engineering
- Classification
- TP332 Arithmetic unit and the controller (CPU)
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 36
- Citations
- 0
Abstract
SIMD (Single Instruction Multi Data) instruction is an important part of the modernmicroprocessor instruction set, the SIMD instructions that are current widespread used isMMX instruction set and SSE instruction set in the x86architecture. In a SIMD instruction,multiple data parallel operation can be implement to achieve data-level parallelism andeffectively improve the efficiency of the implementation of the program. In addition, OpenMPis an application programming interface to write parallel programs on a multiprocessor, and aset of guidance notes used to multithreaded programs design on share memory parallel system.In multithread program design based on data diversity, OpenMP is a good choice. With theimprovement of a variety of password-protected technology, the Difficulty and computationare also increasing, it mainly behave in the increasing of one-way hash algorithm complexity.So, combining the SIMD and OpenMP parallel technology to redesign and optimization thehashing algorithm, will have important impact on information security as well ashigh-performance parallel computing.This paper focuses on the common MD4, MD5, SHA-1and RC4hash algorithm, as wellas some complex hash algorithms based on the basic algorithm, such as NTLM, MSCACHE,MYSQL5, UNIX_MD5and PDF file encryption algorithm. Firstly,this paper analysisprinciples of these algorithms, and then take advantage of the SIMD and OpenMP parallelcomputing power to achieve a the CPU parallel version of the algorithm. The various basichash algorithms encapsulated into the corresponding the CPU external interface, Functions inthe interface are support by SIMD, SSE2instruction set and OpenMP. Achieving complexhashing algorithm can directly call these external interface in parallel to calculate thecorresponding hash value. The experimental test result of SIMD parallel speedup is between3and4, the speedup of OpenMP is depend on total number of CPU threads, this results in highparallel efficiency of hash algorithms and prove that optimization strategies used in this paperare efficiency.
Table of contents
Summary 5-6
Abstract 6-9
first chapter 9-12
1.1 purpose and significance 9
Status 1.2 Research major work 9-11
1.3 papers organizational structure 11
1.4 papers 11-12
Chapter II Multi-core CPU architecture and SIMD About 12-22
2.1 multi-core CPU architecture 12-13
2.2 OPENMP About 13-15
2.2. 1 OpenMP principles and characteristics 13-14
2.2.2 OpenMP program design and implementation 14-15
2.3 INTEL microprocessor SIMD instructions 15 -21
SIMD register structure 2.3.1 x86 processors 16-17
2.3.2 MMX, SSE and SSE2 instruction function 17-19
2.3.3 SSE2 instruction embedded primitives 19-21
2.4 Summary 21-22
Chapter III common hashing algorithm principle 22-34
The first part of the basic hash algorithm 22-28
3.1 MD4 algorithm analysis 22-23
3.2 MD5 algorithm analysis 23-25 ??
3.3 SHA-1 algorithm analysis 25-26
3.4 RC4 algorithm description 26-28
The second part of the complex hash algorithm 28-33
3.5 NTLM algorithm description 28
3.6 MSCACHE algorithm description 28-29
3.7 MYSQL5 algorithm description 29-30
3.8 UNIX_MD5 algorithm description 30-31
3.9 PDF file encryption algorithm description 31-33
3.10 Summary parallel hash algorithm on 33-34
Chapter IV multi-core CPU achieve 34-54
4.1 major optimization methods 34-38
4.1.1 parallel optimization strategy 34-35
4.1.2 XMM register optimization of 35-37
nbsp 4.1.3 OpenMP technology optimization process ; 37-38
4.2 software overall structure 38-40
4.2. a unified processes and external interfaces 38-40
4.2.2 basic hashing algorithm library 40
4.3 basic hashing algorithm parallel implementation 40 - 48
4.3.1 MD4 algorithm for parallel implementation and optimization 40-43
parallel 4.3.2 MD5 algorithm implementation 43-45
4.3.3 SHA- parallel implementation of an algorithm 45-47
4.3.4 RC4 implementation of parallel algorithms 47-48
4.4 hashing algorithm complexity parallel implementation 48-53
4.4.1 NTLM algorithm for parallel implementation 48-49
4.4.2 MSCACHE parallel algorithm implementation 49
4.4.3 MYSQL5 parallel algorithm implementation 49-51
4.4.4 UNIX_MD5 parallel algorithm implementation and optimization parallel 51-53
4.4.5 PDF file encryption algorithm implementation and optimization 53 <br / > 4.5 Chapter Summary 53-54
Chapter experimental results 54-58
5.1 test platform 54
5.2 I7 processors 54-55
test results 5.3 MD5 algorithm by SSE2 optimized 55-56
5.4 MD5 algorithm and test results OPENMP by SSE2 optimized 56 <br / > 5.5 by various algorithms and test results OPENMP SSE2 optimized 56-57
5.6 summary 57-58
summary and Outlook 58-59
References 59-60
Thanks 60-61
accessories 61
Related dissertations
- BSD protocol stack performance analysis and optimization of parallel
- Parallel Hybrid PVS Algorithm Based on OpenMP and its Application
- The Application of Load Balance for E-business Website
- The Design and Implementation of Intelligent Information Retrieval System
- Research of Database Incremental Extraction Based on MD5and HASH Algorithm and Its Application
- The Security Research of Web Application and Its Application in PC Software
- Research and Implementation of Hashalgorithm Library on GPU
- Study of Multicore-based Parallel Algorithm for Constructing Extremal Graphs
- The Design and Implementation of Vector Memory Unit of Multi-Width SIMD DSP
- The Research of Shared CMP Cache Management
- The Design and Implementation of High-performance fixed-point Arithmetic Unit for SIMD DSP
- Design and Implemtation of BP Component and Shuffle Unit in YHFT-Matrix Processor
- Optimization of SVC Video Coding Algorithm and Research of SVC Application
- Parallelizing Research and Implementation of Speech Recognition
- Research on Application of Parallel Computing to Marine Water Age Spectrum Simulation
- The Hybrid MPI+OpenMP Parallel Method of GRAPES-global Model
- Scanning the hyperspectral image edge radiation correction and optimization of parallel
- Fast Belief Propagation-based Arallel Topic Modeling Techniques
- The Grid Design for Processing Objectionable Web Contents
- Multi-Core Programming for Dynamic Follow-Tree Index of Full Text Search Research