Efficient and Constant Time Modular Reduction With Generalized Mersenne Primes

dc.contributor.authorErdem, Serdar Süer
dc.contributor.authorErdem, Sezer S.
dc.date.accessioned2025-10-29T11:15:55Z
dc.date.issued2024
dc.departmentFakülteler, Mühendislik Fakültesi, Elektronik Mühendisliği Bölümü
dc.description.abstractMany 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.
dc.identifier.doi10.1109/ACCESS.2024.3514918
dc.identifier.endpage189316
dc.identifier.issn2169-3536
dc.identifier.orcid0000-0002-2193-0712
dc.identifier.scopus2-s2.0-85212083009
dc.identifier.scopusqualityQ1
dc.identifier.startpage189307
dc.identifier.urihttps://doi.org/10.1109/ACCESS.2024.3514918
dc.identifier.urihttps://hdl.handle.net/20.500.14854/7342
dc.identifier.volume12
dc.identifier.wosWOS:001381662100020
dc.identifier.wosqualityQ2
dc.indekslendigikaynakWeb of Science
dc.indekslendigikaynakScopus
dc.language.isoen
dc.publisherIEEE-Inst Electrical Electronics Engineers Inc
dc.relation.ispartofIEEE Access
dc.relation.publicationcategoryMakale - Uluslararası Hakemli Dergi - Kurum Öğretim Elemanı
dc.rightsinfo:eu-repo/semantics/openAccess
dc.snmzKA_WOS_20251020
dc.subjectSoftware
dc.subjectCryptography
dc.subjectSoftware algorithms
dc.subjectElliptic curves
dc.subjectElliptic curve cryptography
dc.subjectArithmetic
dc.subjectObject recognition
dc.subjectMathematical models
dc.subjectGeneralized Mersenne prime
dc.subjectelliptic curve cryptography
dc.subjectmodular reduction
dc.subjectSPA
dc.titleEfficient and Constant Time Modular Reduction With Generalized Mersenne Primes
dc.typeArticle

Dosyalar