Research and Implementation of RSA Algorithm

Author
HuYun
Advisor
YangXuDong
School
Beijing University of Posts and Telecommunications
Major
Computer Science and Technology
Classification
TN918.1 Theory
Degree
Master's thesis
Year
2010
Downloads
474
Citations
4

Request the full text

Abstract

With the rapidly growing popularity of network technology on a global scale , Internet has gradually penetrated into people's daily lives , become an important means of information exchange . All of this brought us great convenience , but also to our new challenges put forward higher requirements , and network security . Therefore, the effective protection of the security of the network information transmission is becoming increasingly important . The object of this study is the RSA algorithm . RSA algorithm is a public key algorithm , encryption keys and algorithms are public , the decryption key is owned by the user privately owned . Attention from the day of the emergence of the RSA security , high strength, easy to use , and has been widely used . However, in recent years , due to the ability of factoring large integers growing , in order to ensure the security of the RSA algorithm , we will have to produce more large prime numbers . The algorithm used in the power mode calculation will take too much time has been a bottleneck restricting their wider application . This paper presents an efficient algorithm , on the basis of the original algorithm , about implementing aspects of some improvements, and to improve the speed of generating large primes and RSA algorithm . Firstly, the RSA algorithm principle intensive research , and lay a good foundation for the theory to improve the algorithm ; Second , analysis of the security of the RSA algorithm , discussed a variety of ways to attack against RSA , and how to select the parameters in order to resist these attacks ; again, RSA's various related sub- algorithm in the study commonly used to generate a large prime number algorithm the basis , proposed a new algorithm for generating large prime numbers and analyze the performance ; Finally, the new algorithm code implementation and through a series of tests showed that its speed does improve . Although the algorithm described in this paper some partial improvements on the RSA algorithm , but not perfect , to be further improved .

Table of contents

Abstract 4-5 Abstract 5-9 first chapter 9-13 1.1 Background topics 1.2 issues of purpose and meaning 9-11 1.3 topics mainly work 11-12 1.4 thesis chapters arranged 12-13 the mathematical knowledge of the second chapter of the RSA algorithm 13-17 the 2.1 prime number and a composite number 13 2.2 greatest common divisor 13-14 2.3 modular arithmetic 14-15 2.3.1 modular arithmetic concepts and properties 14 2.3.2 modular arithmetic computation rules 14-15 2.4 modular inversion $ 15 2.5 Fermat's theorem and Euler's theorem 15-16 2.6-way function 16-17 Chapter Introduction to the RSA algorithm 17-26 3.1 RSA algorithm 17-18 3.2 RSA algorithm instance 18 3.3 RSA algorithm reasonableness analysis 18-19 3.4 RSA algorithm security analysis 19-22 3.4.1 decomposition modulus attack 19-20 3.4.2 Common Mode attacks 20-21 3.4.3 Index attacks 21 3.4.4 Select cipher text attack 21-22 3.5 RSA parameters select 22-24 3.5.1 the choice of p and q 22-23 3.5.2 public key e Select 23-24 3.5.3 private key d choice 24 3.5.4 modulus n Select 24 3.6 RSA algorithm strengths and weaknesses 24-26 Chapter RSA implementation analysis 26-53 4.1 primes produce 26-33 4.1.1 deterministic prime Number Recognition 26-27 4.1.2 probabilistic primes discrimination 27-30 4.1.3 commonly used method to generate prime numbers 30-31 4.1.4 improved method to generate prime numbers 31-32 4.1.5 prime number generating algorithm analysis 32-33 4.1.6 strong prime necessity 33 4.2 key generated 33-34 4.3 multiplication algorithm 34-38 4.3.1 traditional multiplication 34-35 4.3.2 Karatsuba multiplication 35-36 4.3.3 Comba multiplication 36-38 4.4 multiplicative modulus algorithm 38-48 4.4.1 Blakley multiply mode law 38-39 4.4.2 SMM multiplication modular method 39-40 4.4.3 Montgomery multiplication modular method 40-48 4.4.3.1 Montgomery modulus reduction algorithm 40-43 4.4.3.2 CIOS algorithm 43-44 4.4.3.3 FIPS algorithm 44-45 4.4.3.4 Montgomery squared modulus algorithm 45-48 4.5 power mode algorithm 48-53 4.5.1 binary algorithm 48-49 4.5.2 b binary algorithm 49-51 4.5.3 sliding window method 51-53 improved implementation of the RSA algorithm 53-68 5.1 large integer 53-54 5.2 Computation of large numbers 54-64 5.2.1 of large numbers of relatively 54-55 5.2.2 Tarsus assignment 55-56 5.2.3 addition and subtraction of large numbers 56-58 5.2.4 of large numbers of multiplication and division and modular arithmetic 58-60 5.2.5 Tarsus greatest common divisor 60-61 5.2.6 Tarsus mold inverse 61-62 5.2.7 Tarsus power mode 62-64 5.3 generate a key function 64-66 5.4 encryption and decryption functions 66-68 the sixth chapter test and Prospects 68-71 6.1 performance test 68-70 6.1.1 test environment and tools 68 6.1.2 Test Results 68-70 6.2 Future Prospects 70-71 the References 71-73 Acknowledgements 73-74 Master during the academic directory 74

Related dissertations

  1. The Design of RSA Algorithm and Implementation against Power Analysis
    ShouNanQing ·Hunan University ·2013 ·Master's thesis
  2. Research and Design of RSA Public-Key Cryptographic Coprocessor
  3. Research on Fast Modular Multiplication and Realization
  4. Design and Implementation of RSA Public-Key Cryptographic Coprocessor Based on Systolic Array Architecture
    WenNuan ·PLA Information Engineering University ·2005 ·Master's thesis
  5. Implementation of RSA Crypto Chip Based on FPGA
    KouWen ·PLA Information Engineering University ·2005 ·Master's thesis
  6. Design and Implementation of RSA Chip Based on CIOS Algorithm
    ChenZuo ·PLA Information Engineering University ·2004 ·Master's thesis
  7. Low cost RSA public key cryptography algorithm and its hardware implementation
    ChenYu ·Fudan University ·2008 ·Master's thesis
  8. Public Key Cryptography Algorithm Research and Main Modules Design and Verification
    XueNian ·Zhejiang University ·2010 ·Master's thesis
  9. Analysis of Public-key Cryptography RSA and IP Implementation and Verification
    LiJiaZuo ·Shanghai Jiaotong University ·2009 ·Master's thesis
  10. Design and Implementation of OA Office Platform Based on B/S Framework
  11. Analysis and Improvement of Data Encryption Algorithms
    ZhaoXu ·Harbin Institute of Technology ·2012 ·Master's thesis
  12. Research of Content Extraction Signatures Based on RSA
    CaiWei ·Northwest Normal University ·2013 ·Master's thesis
  13. Research and Implementation of Power Analysis Attacks Based on Cryptographic Chip of RSA Algorithm
    LiuYaLing ·Tianjin University ·2012 ·Master's thesis
  14. Design for Unified Architecture ECC and RSA Cryptographic Processor
    LiuBing ·Tianjin University ·2012 ·Master's thesis
  15. Research on the Hardware Implementation and Anti-attack Features for RSA Cryptographic Algorithm
    BaiSongHui ·Tianjin University ·2012 ·Master's thesis
  16. Flexibly Configurable Architecture for Large Number Operation
    ZhaoKaiLan ·Zhejiang University ·2014 ·Master's thesis
  17. Design and Implementation of Cryptography RSA IP Core
    GuoCaiXing ·Harbin Institute of Technology ·2012 ·Master's thesis
  18. Research on Encryption Algorithms in Coal Mine Safety Training System
    YuLiZhi ·Hunan University ·2013 ·Master's thesis
  19. The Research and Application of Data Encryption Technology in the Network Communications
  20. On the Reconstruction of RADIUS to Fit SOHO