COMPARISON ANALYSIS OF THE FUNCTIONS A COMPUTATION OF MODULAR EXPONENTIATION

Author:

Protsko I. O.ORCID, ,Rykmas R. V.ORCID,Gryshchuk O. V.ORCID, ,

Abstract

The computation of the modular exponentiation for big numbers is widely used to find the discrete logarithm, in number-theoretic transforms and in cryptographic algorithms. To efficient compute the modular exponent, new methods, algorithms and means of their implementation are being developed. There are three directions of computational method of modular exponentiation: general modular exponentiation, and computation of the modular exponentiation with a fixed exponent or with a fixed base. Special functions have been developed to perform modular exponentiation in mathematical and cryptographic software libraries. The paper compares the freely available functions of computing the modular exponentiation from the Crypto ++, OpenSSL, Pari / GP and MPIR libraries and developed three functions based on the right-to-left binary shift algorithm. A separate type of numeric data from the MPIR library is used to work with big numbers in the developed functions. The developed functions implement a binary iterative algorithm in one main stream, in two streams and one stream using precomputation. The comparison is based on the average time of execution of the modular exponentiation for pseudo-random data with 1K and 2K bits, which corresponds to the size of about 300 and 600 decimal signs. The runtime results summarized in the table show that the modular exponentiation is computed the fastest by a function from the OpenSSL library, which is almost twice smaller than the function from the Crypto ++ library and three times smaller than the MPIR function in universal computer systems. The implementation of the function of computing the modular exponentiation by mathematical and cryptographic software libraries uses a more optimal modulus multiplication algorithm, the so-called Montgomery multiplication. The developed three functions use multiplication by modulo operations for factors smaller than the module value. The function using precomputation of the remainders for the fixed basis and the module is analyzed separately. After all, in the testing process, the time of precomputation and determination of the periodicity of residues for this function is not taken into account. Further parallelization of the computation of parts of a multi-bit exponent and the use of the Montgomery multiplication algorithm will allow efficient use of the developed function with precomputation for the calculation of the discrete logarithm.

Publisher

Lviv Polytechnic National University

Reference28 articles.

1. [1]     Stud­hol­me, C. (2002). The Discre­te Log Prob­lem. Ret­ri­eved from: http://www.cs.to­ron­to.edu/~cvs/dlog/re­se­arch_pa­per.pdf

2. [2]     Sat­ya­na­ra­ya­na, V. N., & Ra­ma­sub­ra­ma­ni­an, U. T. (2021). Energy-Ef­fi­ci­ent Mo­du­lar Ex­po­nen­ti­al Techniq­ues for Pub­lic-Key Cryptog­raphy. Sprin­ger Na­tu­re Sin­ga­pur Pte Ltd. 255 p. https://doi.org/10.1007/978-3-030-74524-0

3. [3]     Tandrup, M. B., Jen­sen, M. H., An­der­sen, R. N., & Han­sen, T. F. (2004). Fast Ex­po­nen­ti­ati­on In prac­ti­ce. Ret­ri­eved from: https://cs.au.dk/~ivan/Fas­tExppro­ject.pdf

4. [4]     Ja­kubski, A., & Per­liński, R. (2011). Re­vi­ew of Ge­ne­ral Ex­po­nen­ti­ati­on Al­go­rithms. Sci­en­ti­fic Re­se­arch of the Insti­tu­te of Mat­he­ma­tics and Com­pu­ter Sci­en­ce, 2(10), 87-98. Ret­ri­eved from: http://amcm.pcz.pl/2011_2/art_10.pdf

5. [5]     Re­zai, A., & Kes­ha­var­zi, P. (2015). Al­go­rithm de­sign and the­ore­ti­cal analysis of a no­vel CMM mo­du­lar ex­po­nen­ti­ati­on al­go­rithm for lar­ge in­te­gers. RA­IRO - The­ore­ti­cal In­for­ma­tics and Appli­ca­ti­ons, 49(3), 255-268. https://doi.org/10.1051/ita/2015007

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3