Skip to main content

Shift-Sub Modular Multiplication Algorithm and Hardware Implementation for RSA Cryptography

  • Conference paper
  • First Online:
Hybrid Intelligent Systems (HIS 2021)

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 420))

Included in the following conference series:

  • 665 Accesses

Abstract

RSA public-key cryptography requires modular exponentiation and modular multiplication on large numbers. Montgomery Modular Multiplication is a fast method for performing modular multiplication. The modular exponentiation can be performed by repeatedly calling Montgomery Modular Multiplication. Transformations to the Montgomery Domain are required before the calculations, and a transformation back to the normal domain is also required to get the final result. The domain transformations require a value that is calculated by costly modular arithmetic. Many hardware RSA implementations use precomputed values for such domain transformations. As a result, the flexibility to use different public keys is lost. This paper introduces a Shift-Sub Modular Multiplication (SSMM) algorithm for calculating such values in fields. The algorithm does not require modular arithmetic and precomputed values. Instead, it uses shift and addition/subtraction calculations. The SSMM algorithm can also be used directly for RSA public-key cryptography. We give the hardware implementation of RSA public-key cryptography using SSMM in Verilog HDL and compare the cost and performance to that of the RSA public-key cryptography implementation using Montgomery Modular Multiplication. The results show that the performance of the two implementations is about the same, but the implementation using SSMM uses fewer hardware resources (55% to 59% adaptive logic modules and 69% to 85% flip-flops) because it does not require domain transformations.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 219.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 279.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Acar, T., Shumow, D.: Modular reduction without pre-computation for special moduli. Technical report, Microsoft Research, January 2010

    Google Scholar 

  2. Cao, Z., Wei, R., Lin, X.: A fast modular reduction method. IACR Cryptology ePrint Archive, 2014:1–12 (2014)

    Google Scholar 

  3. Coulouris, G., Dollimore, J., Kindberg, T., Blair, G.: Distributed Systems Concepts and Design, 5th edn. Addison-Wesley, Boston (2012)

    MATH  Google Scholar 

  4. Eldridge, S.E., Walter, C.D.: Hardware implementation of montgomery’s modular multiplication algorithm. IEEE Trans. Comput. 42(6), 693–699 (1993)

    Article  Google Scholar 

  5. Erdem, S.S., Yanık, T., Celebi, A.: A general digit-serial architecture for montgomery modular multiplication. IEEE Trans. Very Large Scale Integr. (VLSI) Syst. 25(5), 1658–1668 (2017)

    Article  Google Scholar 

  6. Huang, M., Gaj, K., Kwon, S., El-ghazawi, T.: An optimized hardware architecture of montgomery multiplication algorithm. IACR Cryptology ePrint Archive 2007:1–14, January 2007

    Google Scholar 

  7. Lim, C.H., Hwang, H.S., Lee, P.J.: Fast modular reduction with precomputation. In: Korea-Japan Joint Workshop on Information Security and Cryptology (JWISC 1997), pp. 65–79 (1997)

    Google Scholar 

  8. Montgomery, P.L.: Modular multiplication without trial division. Math. Comput. 44(170), 519–521 (1985)

    Article  MathSciNet  Google Scholar 

  9. Paar, C.: Implementation of Cryptographic Schemes 1. Ruhr University Bochum (2015)

    Google Scholar 

  10. Rivest, R.L., Shamir, A., Adleman, L.M.: A method of obtaining digital signatures and public key cryptosystems. Commun. ACM 21(2), 120–126 (1978)

    Article  MathSciNet  Google Scholar 

  11. Walter, C.D., Holloway, R.: 3 - hardware aspects of montgomery modular multiplication. Cambridge University Press, October 2017

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Yamin Li .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Li, Y., Chu, W. (2022). Shift-Sub Modular Multiplication Algorithm and Hardware Implementation for RSA Cryptography. In: Abraham, A., et al. Hybrid Intelligent Systems. HIS 2021. Lecture Notes in Networks and Systems, vol 420. Springer, Cham. https://doi.org/10.1007/978-3-030-96305-7_50

Download citation

Publish with us

Policies and ethics