Have a personal or library account? Click to login
Maximum Number of Steps Taken by Modular Exponentiation and Euclidean Algorithm Cover

Maximum Number of Steps Taken by Modular Exponentiation and Euclidean Algorithm

Open Access
|May 2019

Abstract

In this article we formalize in Mizar [1], [2] the maximum number of steps taken by some number theoretical algorithms, “right–to–left binary algorithm” for modular exponentiation and “Euclidean algorithm” [5]. For any natural numbers a, b, n, “right–to–left binary algorithm” can calculate the natural number, see (Def. 2), AlgoBPow(a, n, m) := ab mod n and for any integers a, b, “Euclidean algorithm” can calculate the non negative integer gcd(a, b). We have not formalized computational complexity of algorithms yet, though we had already formalize the “Euclidean algorithm” in [7].

For “right-to-left binary algorithm”, we formalize the theorem, which says that the required number of the modular squares and modular products in this algorithms are ⌊1+log2n⌋ and for “Euclidean algorithm”, we formalize the Lamé’s theorem [6], which says the required number of the divisions in this algorithm is at most 5 log10 min(|a|, |b|). Our aim is to support the implementation of number theoretic tools and evaluating computational complexities of algorithms to prove the security of cryptographic systems.

DOI: https://doi.org/10.2478/forma-2019-0009 | Journal eISSN: 1898-9934 | Journal ISSN: 1426-2630
Language: English
Page range: 87 - 91
Accepted on: Mar 11, 2019
Published on: May 16, 2019
Published by: University of Białystok
In partnership with: Paradigm Publishing Services
Publication frequency: 1 issue per year

© 2019 Hiroyuki Okazaki, Koh-ichi Nagao, Yuichi Futa, published by University of Białystok
This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 License.