Research and Fast Implementation of Large Integers Multiplication Algorithm

Author
SangBo
Advisor
YangCan
School
South China University of Technology
Major
Applied Computer Technology
Classification
TN918.1 Theory
Degree
Master's thesis
Year
2012
Downloads
91
Citations
0

Request the full text

Abstract

With the rapid development of computer technology and the Internet, the computer hasgone deep into all aspects of the industry, at the same time, information security has becomeincreasingly important, and the password technology is an important means of ensuringinformation security. RSA, ElGamal, and other public-key cryptographic algorithms are allbased on numerical algorithm on large integers, modular reduction, modular multiplication,modular exponentiation algorithm have been widely used. For performance reasons, thenumber of bits of large integers used in cryptographic algorithms is always less than2048bits.In scientific computation, especially in large-scale scientific computation, the floatingformat defined by IEEE754standard may not be able to meet the computational accuracyrequirements, large integers can be used to build high-precision floating-point data types toensure the correctness of the final output. In addition, large integers have also been used toaccurately calculate some constants, such as e and π, etc. In such applications, large integersmultiplication is the core of computation, and the amount of data is greater. Its decimal digitsmay reach one hundred million or more, sometimes referred to as huge integers.The paper focuses on the math functions, conducted in-depth study of the core of thenumerical algorithm--large integers multiplication algorithm. First, the paper brieflysummarizes mathematical knowledge on large integers multiplication algorithm, introducesthe underlying implementation and basic operation of large integers. On this basis, the papermakes comparative analysis of the tradition of the written calculation multiplication, Combamultiplication, Karatsuba multiplication and FFT multiplication, and gives the rapidimplementation, provides detailed test data. Last, the paper proposes an improvedmultiplication algorithm that combines Karatsuba multiplication and FFT multiplication. Testsshow that, it has good flexibility and high efficiency.Under32-bit Windows operating system, taking C99standard c as the developmentlanguage, with VC++2010as development tools, the papaer implements all algorithms andcarries on the optimized design, gives detailed experimental data through careful tests.

Table of contents

Summary 5-6 Abstract 6-7 directory 7-10 first chapter 10-15 <br / > 1.1 subject background 1.2 Status domestic and foreign research 10 10-12 1.3 the author's major 12-13 1.4 dissertation chapters arranged 13-14 1.5 Summary 14-15 chapter mathematical foundation mathematical model 15-35 2.1 large integer 15-18 2.1.1 polynomials defined 15 2.1.2 large integer polynomial model 15 2.1.3 polynomial representation 15-17 2.1.4 polynomial interpolation theorems 17-18 2.2 fast multiplication of polynomials 18-19 2.3 unit complex roots and nature 19-21 2.4 discrete Fourier Transform DFT 21-27 2.4.1 DFT definition 21-23 2.4.2 DFT nature of 23-26 2.4.3 dot symmetry theorem 26-27 2.5 based two hours FFT 27-29 2.6 real sequence DFT techniques 29-34 2.6.1 double real sequence while seeking DFT 30-31 2.6.2 single real sequence of DFT 31-34 2.7 Summary underlying 34-35 Chapter realization of large integers with the basic operation of 35-54 3.1 large integer representation 35-37 <br / > 3.1.1 large integer data structure 35-36 3.1.2 large integer base 36-37 3.1.3 large integer C language definition 37 3.2 error handling module nbsp 37-39 3.3 large integer maintenance operations ; 39-40 3.4 large integer input and output 40 -42 3.4.1 console input and output 41 3.4.2 file input and output 41-42 nbsp other operations 3.5 large integer ; 42 -43 3.6 aided testing tool 43-47 3.6.1 random test text generator 43-45 3.6.2 timer 45 3.6.3 third-party software tools subtraction algorithm 45-47 3.7 large integer 47-52 3.7.1 unsigned addition 47-50 3.7.2 unsigned subtraction 50-51 3.7.3 signed addition 51 3.7.4 signed subtraction 51-52 3.8 Summary studies 52-54 Chapter traditional multiplication algorithm and fast implementation 54-94 4.1 written calculation multiplication algorithm 54-56 4.2 sq written calculation algorithm 56-58 4.3 Comba multiplication algorithm 58-62 4.4 Karatsuba multiplication algorithm 62-70 4.5 Karatsuba square algorithm 70-72 4.6 FFT multiplication algorithm based two hours 72-92 4.6.1 radix-2 FFT algorithm division multiplexing sequence 72-79 4.6.2 radix-2 FFT multiplication algorithm time-multiplexed serial 79-82 4.6.3 radix-2 FFT algorithm hours of real sequence 82-89 4.6.4 FFT -based two hours real sequence multiplication algorithm 89-92 4.7 square FFT algorithm based two hours 92-93 4.8 Summary 93-94 Chapter V , an improved large integer multiplication algorithm 94-100 5.1 Kara_R2_FFT_Mul algorithm 94-98 5.2 Kara_R2_FFT_Squ algorithm 98-99 5.3 summary 99-100 Chapter VI summary and Outlook 100-103 6.1 This article summarizes 100-101 6.2 Prospect 101-103 References 103-106 PhD / Master's degree obtained during research 106-107 Thanks 107

Related dissertations

  1. Research and Design of Harmonic Detecting Device Based on ARM9
  2. The Application of GPU Acceleration in Digital Image Processing
    CaiZuo ·Anhui University ·2014 ·Master's thesis
  3. Research of3PCF Parallel Algorithm Based on MPI
    LiuXu ·Tianjin University ·2012 ·Master's thesis
  4. Design and Implementation of Vectorized FFTs on the YHFT-Matrix
  5. Design and Verification of CORDIC-based FFT Processor
    MaChao ·Harbin Engineering University ·2013 ·Master's thesis
  6. Research and Implementation of Fast Fourier Transform by Using Custom Instruction Based NiosⅡ Processor
    TianYe ·Xi'an Optics and Fine Mechanics ·2013 ·Master's thesis
  7. Research and Implementation of Navigation Signals
    CaoShuo ·University of North ·2014 ·Master's thesis
  8. Research on Design and Implementation Technology of Embedded Multiprocessor
    HouNing ·Hefei University of Technology ·2012 ·Doctoral dissertation
  9. Research of the Range Finding Algorithm on Tracking Radar
  10. The design and implementation of FPGA phased array radar signal processor
  11. Research on a Doppler Weather Radar Signal Processing
    LuXiaoJia ·Anhui University ·2014 ·Master's thesis
  12. The Research and Implementation of Signal Processing Technology for FMCW Radar Ranging
    HouPanWei ·University of North ·2014 ·Master's thesis
  13. Research on Estimation Technology of QPSK Frequency Offset in Digital Satellite Communication System
  14. Design and Implementation of a Kind of COFDM Wireless Video Transmission System
  15. Research and Relization on Fast Acquisition Algorithm of High Dynamic DSSS Based on PMF-FFT
  16. Research and Realization of Speech Quality Objective Evaluation System
    QinJiWei ·Chongqing University ·2013 ·Master's thesis
  17. Study on the Acoustics Methods for Detecting Insect Damaged Wheat Kernels
    WeiLin ·Henan University of Technology ·2013 ·Master's thesis
  18. Research and Implementation of Android Based Music Recognition and MIDI Output
  19. Research and design of analysis system of multi channel vibration signal
  20. Research and Design of a Real-time Spectrum Analysis System Based on Soft-core MicroBlaze
    ZhangYongRui ·University of North ·2014 ·Master's thesis