Skip to main content

A High-Speed Barret-Based Modular Multiplication with Bit-Correction for the CRYSTAL-KYBER Cryptosystem

  • Conference paper
  • First Online:
Intelligence of Things: Technologies and Applications (ICIT 2023)

Part of the book series: Lecture Notes on Data Engineering and Communications Technologies ((LNDECT,volume 188))

Included in the following conference series:

  • 217 Accesses

Abstract

The CRYSTAL-Kyber algorithm is the only Public-key Encryption algorithm selected by the National Institute of Standards and Technology (NIST) in the third round of the Post-Quantum Cryptography (PQC) Standardization Process. Hardware architectures for the CRYSTAL-Kyber cryptosystem must be designed to hasten the execution of the operands of cryptographic algorithms, particularly high-order polynomial multiplication. All operands are reduced modularly to produce finite groups, rings, or fields. This paper utilizes an optimized variant of the Barret reduction algorithm, combined with a bit-correction module, to calculate the precision of the estimated quotient . As a result, only one conditional subtraction is required without DSPs. The proposed structure is simulated and synthesized using Xilinx Vivado 2021.2 suite software and implemented on the Artix7 FPGA board, demonstrating that this design has the highest frequency achieving 239 MHz with an area of 75 LUTs, 50 FFs, and 28 Slices, respectively. The hardware efficiency metric is slightly higher than the K-RED design and significantly improved compared to other methods, at least \(1.53\times \), \(2.67\times \), and \(2.74\times \), respectively. This design is suitable for both NTT and Point-Wise-Multiplication (PWM) modes.

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 149.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 199.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. Xu, T., Cui, Y., Liu, D., Wang, C., Liu, W.: Lightweight and efficient hardware implementation for Saber using NTT multiplication. In: APCCAS, pp. 601–605, China, Shenzhen, November 2022

    Google Scholar 

  2. Xing, Y., Li, S.: A compact hardware implementation of CCA-secure key exchange mechanism CRYSTALS-KYBER on FPGA. TCHES 2021(2), 328–356 (2021)

    Article  Google Scholar 

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

    Article  MathSciNet  MATH  Google Scholar 

  4. Barrett, P.: Implementing the Rivest Shamir and Adleman public key encryption algorithm on a standard digital signal processor. In: Odlyzko, A.M. (ed.) CRYPTO 1986. LNCS, vol. 263, pp. 311–323. Springer, Heidelberg (1987). https://doi.org/10.1007/3-540-47721-7_24

    Chapter  Google Scholar 

  5. Liu, Z., Seo, H., Sinha Roy, S., Großschädl, J., Kim, H., Verbauwhede, I.: Efficient Ring-LWE encryption on 8-Bit AVR processors. In: Güneysu, T., Handschuh, H. (eds.) CHES 2015. LNCS, vol. 9293, pp. 663–682. Springer, Heidelberg (2015). https://doi.org/10.1007/978-3-662-48324-4_33

    Chapter  Google Scholar 

  6. Longa, P., Naehrig, M.: Speeding up the number theoretic transform for faster ideal lattice-based cryptography. In: Foresti, S., Persiano, G. (eds.) CANS 2016. LNCS, vol. 10052, pp. 124–139. Springer, Cham (2016). https://doi.org/10.1007/978-3-319-48965-0_8

    Chapter  Google Scholar 

  7. Knezevic, M., Vercauteren, F., Verbauwhede, I.: Faster interleaved modular multiplication based on Barrett and Montgomery reduction methods. IEEE Trans. Comput. 59(12), 1715–1721 (2010)

    Article  MathSciNet  MATH  Google Scholar 

  8. Dang, V.B., Mohajerani, K., Gaj, K.: High-speed hardware architectures and FPGA benchmarking of CRYSTALS-Kyber, NTRU, and Saber. IEEE Trans. Comput. 72(2), 306–320 (2023)

    Article  Google Scholar 

  9. Liu, W., Fan, S., Khalid, A., Rafferty, C., O’Neill, M.: Optimized schoolbook polynomial multiplication for compact lattice-based cryptography on FPGA. IEEE Trans. Very Large Scale Integr. (VLSI) Syst. 27(10), 2459–2463 (2019)

    Google Scholar 

  10. Kundi, D.-e-S., Zhang, Y., Wang, C., Khalid, A., O’Neill, M., Liu, W.: Ultra high-speed polynomial multiplications for lattice-based cryptography on FPGAs. IEEE Trans. Emerg. Topics Comput. 10(4), 1993–2005 (2022)

    Google Scholar 

  11. Bisheh-Niasar, M., Azarderakhsh, R., Mozaffari-Kermani, M.: High-speed NTT-based polynomial multiplication accelerator for post-quantum cryptography. In: Proceedings of IEEE Symposium on Computer Arithmetic (ARITH), Lyngby, Denmark, pp. 94–101, June 2021

    Google Scholar 

  12. Itabashi, Y., Ueno, R., Homma, N.: Efficient modular polynomial multiplier for NTT accelerator of Crystals-Kyber. In: DSD, pp. 528–533, Spain, Maspalomas, August 2022

    Google Scholar 

  13. Guo, W., Li, S., Kong, L.: An efficient implementation of KYBER. IEEE Trans. Circuits Syst. II Express Briefs 69(3), 1562–1566 (2022)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Trong-Hung Nguyen .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 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

Nguyen, TH., Pham, CK., Hoang, TT. (2023). A High-Speed Barret-Based Modular Multiplication with Bit-Correction for the CRYSTAL-KYBER Cryptosystem. In: Dao, NN., Thinh, T.N., Nguyen, N.T. (eds) Intelligence of Things: Technologies and Applications. ICIT 2023. Lecture Notes on Data Engineering and Communications Technologies, vol 188. Springer, Cham. https://doi.org/10.1007/978-3-031-46749-3_19

Download citation

Publish with us

Policies and ethics