Efficient and Constant Time Modular Reduction With Generalized Mersenne Primes

被引:0
|
作者
Erdem, Serdar S. [1 ]
Erdem, Sezer S. [2 ]
机构
[1] Gebze Tech Univ, Dept Elect Engn, TR-41400 Gebze, Kocaeli, Turkiye
[2] Istanbul Univ Cerrahpasa, Vocat Sch Tech Sci, TR-34320 Istanbul, Turkiye
来源
IEEE ACCESS | 2024年 / 12卷
关键词
Software; Cryptography; Software algorithms; Elliptic curves; Elliptic curve cryptography; Arithmetic; Object recognition; Mathematical models; Generalized Mersenne prime; elliptic curve cryptography; modular reduction; SPA;
D O I
10.1109/ACCESS.2024.3514918
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Many cryptographic applications require a vast number of modular multiplications with a large prime modulus. Generalized Mersennes are a class of primes commonly used in cryptography because of their special forms. When modulus is a generalized Mersenne prime, modular reductions can be calculated efficiently by several additions and subtractions thanks to their special forms. This work modifies the classical reduction algorithms for generalized Mersenne primes in the literature such that the additions and subtractions in these algorithms are performed in parallel from lower digits to higher digits, and the resulting carries and borrows are propagated together. Because calculated values can be negative, two's complement arithmetic is used in calculations. The proposed algorithms have substantial speed improvements over the classical algorithms in software. Also, because reduction modulo an n bit special prime p is performed by a series of n-bit additions and subtractions, a small delta bit overflow may occur in the result such that delta << n . Thus, a final reduction is needed after main reduction. In this work, we prove that the final reduction can be achieved by at most two subtractions where the modulus p >= 2(n)/(1+2(-delta+1)) . And, we show that this lower bound is satisfied by the special primes commonly used in cryptography including the generalized Mersenne primes in practical applications. The proposed modular reduction algorithms handle the final reduction by two subtractions in constant time to avoid timing attacks.
引用
收藏
页码:189307 / 189316
页数:10
相关论文
共 50 条
  • [1] Modular reduction for generalized mersenne numbers
    Wang, Qingxian
    Shang, Mingsheng
    Sun, Shixin
    Advances in Matrix Theory and Applications, 2006, : 202 - 205
  • [2] A new cryptosystem using generalized Mersenne primes
    Kalita J.
    Hoque A.
    Kalita H.
    SeMA Journal, 2016, 73 (1) : 77 - 83
  • [3] Simple power analysis on fast modular reduction with generalized Mersenne prime for elliptic curve cryptosystems
    Sakai, Y
    Sakurai, K
    IEICE TRANSACTIONS ON FUNDAMENTALS OF ELECTRONICS COMMUNICATIONS AND COMPUTER SCIENCES, 2006, E89A (01) : 231 - 237
  • [4] A Technique for Image Encryption Using the Modular Multiplicative Inverse Property of Mersenne Primes
    Shanooja, M. A.
    Kumar, M. N. Anil
    SYMMETRY-BASEL, 2025, 17 (02):
  • [5] Automatic Generation of High-Performance Modular Multipliers for Arbitrary Mersenne Primes on FPGAs
    Koppermann, Philipp
    De Santis, Fabrizio
    Heyszl, Johann
    Sigl, Georg
    2017 IEEE INTERNATIONAL SYMPOSIUM ON HARDWARE ORIENTED SECURITY AND TRUST (HOST), 2017, : 35 - 40
  • [6] On generalized Mersenne Primes and class-numbers of equivalent quadratic fields and cyclotomic fields
    Hoque A.
    Saikia H.K.
    SeMA Journal, 2015, 67 (1) : 71 - 75
  • [7] Efficient and Constant Time Modular Inversions over Prime Fields
    Xu, Sen
    Gu, Haihua
    Wang, Lingyun
    Guo, Zheng
    Liu, JunRong
    Lu, Xiangjun
    Gu, Dawu
    2017 13TH INTERNATIONAL CONFERENCE ON COMPUTATIONAL INTELLIGENCE AND SECURITY (CIS), 2017, : 524 - 528
  • [8] Constant time modular inversion
    Bos, Joppe W.
    JOURNAL OF CRYPTOGRAPHIC ENGINEERING, 2014, 4 (04) : 275 - 281
  • [9] Compact and Efficient Constant-Time GCD and Modular Inversion with Short-Iteration
    Jin, Yaoan
    Miyaji, Atsuko
    IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2023, E106D (09) : 1397 - 1406
  • [10] REDUCTION OF CONSTANT NUMBER OF GENERALIZED SPIN HAMILTONIAN
    GREKHOV, AM
    ROITSIN, AB
    FIZIKA TVERDOGO TELA, 1976, 18 (08): : 2470 - 2472