Submitted:
20 December 2023
Posted:
20 December 2023
You are already at the latest version
Abstract
Keywords:
MSC: 11Bxx; 90C59
1. Introduction
- (i)
- B-chains [7], where every element in the B-chain has the form and the binary operation o belongs to a finite set of binary operations over the set of natural numbers B, i.e. . Guzmán-Trampe et. al. [8] proposed a method for generating addition-subtraction, sequence for the Kachisa–Schaefer–Scott family of pairing-friendly elliptic curves.
- (ii)
2. Related Works
3. The Proposed Method
- Rule # 1: Doubling the current element, .
- Rule # 2: Summing the last two elements, .
- Rule # 3: Summing the last element with any other random element in the sequence, +, .
- If then apply rule # 1
- Else if then apply rule # 2
- Else if then
- Generate a random real number
- If then apply the rule # 1
- Else
- Generate a random real number
- If then apply the rule # 2
- Else
- Generate a random integer number
- Apply the rule # 3, where h=r.
- Else //
- Generate a random integer number
- Apply the rule # 3, where h=r.
- If the new element is less than or equal to then the element is
- accepted. Otherwise, decrease the value of r and apply rule #3 until
- we found a certain value of h such that the new element is less than or
- equal to .
- If then and
- Else generate a random real number .
- If then and
| Algorithm 1: SAAS |
![]() |
| Algorithm 2: MutateAS |
![]() |
3. Results and Discussions
3.1. Data Generation
- Set e to the maximum number of bits in the exponents, i.e., the window size.
- Set the set and i=2.
- While do the following
- Construct a new set by adding two randomly odd numbers, in the range to the set { the two generated randomly odd numbers}
- Set i=i+2.
- Make sure that is sorted.
- Repeat Steps 2-4, 25 times to generate 25 sets of exponents with at most e-bits.
- Repeat Steps 1-5 for different size of exponents e=7, 8, 9, and 10.
3.2. Results
5. Conclusion and Future Works
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Knuth, D.E. The Art of Computer Programming: Seminumerical Algorithms, 3rd ed.; Addison-Wesley: Reading, UK, 1997; Volume 2. [Google Scholar]
- Menezes, A.; van Oorschot, P.; Vanstone, S. Handbook of Applied Cryptography; CRC Press: Boca Raton, FL, USA, 1996. [Google Scholar]
- Yao, A. On the Evaluation of Powers. SIAM J. Comput. 1976, 5, 100–103. [Google Scholar] [CrossRef]
- Bleichenbacher, D. Efficiency and Security of Cryptosystems Based on Number Theory. Ph.D. Thesis, Swiss Federal Institue of Technology Zurich, Zurich, Switzerland, 1996. [Google Scholar]
- Fathy, K.; Bahig, H.; Farag, M. Speeding up multi-exponentiation algorithm on a multicore system. J. Egypt. Math. Soc. 2018, 26, 235–244. [Google Scholar] [CrossRef]
- Laih, C.; Yen, S.; Harn, L. Two efficient server-aided secret computation protocols based on the addition sequence. In Proceedings of the Advances in Cryptology-ASIACRYPT’91, Fujiyoshida, Japan, 11–14 November 1991; pp. 450–459. [Google Scholar]
- Bahig, H.M.; Nassr, D.I. Generating a Shortest B-Chain using Multi-GPUs. Inf. Sci. Lett. 2022, 11, 745–750. [Google Scholar]
- Guzmán-Trampe, J.E.; Cruz-Cortés, N.; Perez, L.J.D.; Ortiz-Arroyo, D.; Rodríguez-Henríquez, F. Low-cost addition–subtraction sequences for the final exponentiation in pairings. Finite Fields Their Appl. 2014, 29, 1–17. [Google Scholar] [CrossRef]
- Thurber, E.; Clift, N. Addition chains, vector chains, and efficient computation. Discret. Math. 2021, 344, 112200. [Google Scholar] [CrossRef]
- Downey, P.; Leong, B.; Sethi, R. Computing sequences with addition chains. SIAM J. Comput. 1981, 10, 638–646. [Google Scholar] [CrossRef]
- Laih, C.; Yen, S. Secure addition sequence and its applications on the server-aided secret computation protocols. In Proceedings of the Advances in cryptology-AUSCRYPT’92, Gold Coast, Australia, 13–16 December 1992; Lecture Notes in Computer Science. Volume 718, pp. 219–229. [Google Scholar]
- Bouillaguet, C.; Martinez, F.; Vergnaud, D. Cryptanalysis of Modular Exponentiation Outsourcing Protocols. Comput. J. 2022, 65, 2299–2314. [Google Scholar] [CrossRef]
- Matsumoto, T.; Kato, K.; Imai, H. Speeding Up Secret Computations with Insecure Auxiliary Devices. In Advances in Cryptology — CRYPTO’ 88. CRYPTO 1988; Goldwasser, S., Ed.; Lecture Notes in Computer Science; Springer: New York, NY, USA, 1990; Volume 403. [Google Scholar] [CrossRef]
- Nguyen, P.; Shparlinski, I.E. On the Insecurity of a Server-Aided RSA Protocol. In Advances in Cryp-tology — ASIACRYPT 2001. ASIACRYPT 2001; Boyd, C., Ed.; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2001; Volume 2248. [Google Scholar] [CrossRef]
- Chen, X.; Li, J.; Ma, J.; Tang, Q.; Lou, W. New Algorithms for Secure Outsourcing of Modular Exponentiations. IEEE Trans. Parallel Distrib. Syst. 2014, 25, 2386–2396. [Google Scholar] [CrossRef]
- Chevalier, C.; Laguillaumie, F.; Vergnaud, D. Privately outsourcing exponentiation to a single server: cryptanalysis and optimal constructions. Comput. Secur.–ESORICS 2016, 261–278. [Google Scholar] [CrossRef]
- Di Crescenzo, G.; Khodjaeva, M.; Kahrobaei, D.; Shpilrain, V. Delegating a Product of Group Exponentiations with Application to Signature Schemes (Submission to Special NutMiC 2019 Issue of JMC). J. Math. Cryptol. 2020, 14, 438–459. [Google Scholar] [CrossRef]
- Bahig, H.M. A new strategy for generating shortest addition sequences. Computing 2011, 91, 285–306. [Google Scholar] [CrossRef]
- Bergeron, F.; Berstel, J.; Brlek, S. Efficient computation of addition chains. J Theor Nombres Bord 1994, 6, 21–38. [Google Scholar] [CrossRef]
- Bahig, H.M.; Kotb, Y. An Efficient Multicore Algorithm for Minimal Length Addition Chains. Computers 2019, 8, 23. [Google Scholar] [CrossRef]
- Bos, J.; Coster, M. Addition Chain Heuristics. In Advances in Cryptology — CRYPTO’ 89 Proceedings. CRYPTO 1989; Brassard, G., Ed.; Lecture Notes in Computer Science; Springer: New York, NY, USA, 1990; Volume 435. [Google Scholar] [CrossRef]
- Enge, A.; Hart, W.; Johansson, F. Short Addition Sequences for Theta Functions. J. Integer Seq. 2018, 21, 18.2.4. [Google Scholar]
- Nedjah, N.; de Macedo Mourelle, L. Colony. In Knowledge-Based Intelligent Information and Engineering Systems; Khosla, R., Howlett, R.J., Jain, L.C., Eds.; KES 2005. Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2005; Volume 3684. [Google Scholar] [CrossRef]
- Abbas, M.; Gustafsson, O. Integer Linear Programming Modeling of Addition Sequences with Additional Constraints for Evaluation of Power Terms. arXiv 2023, arXiv:2306.15002. [Google Scholar] [CrossRef]

| Percentage of cases when | ||||
|---|---|---|---|---|
| e | k | |||
| 7 | 2 | 12% | 28% | 16% |
| 4 | 40% | 64% | 36% | |
| 6 | 56% | 76% | 44% | |
| 8 | 76% | 84% | 20% | |
| 10 | 88% | 92% | 20% | |
| 8 | 2 | 20% | 56% | 44% |
| 4 | 32% | 68% | 52% | |
| 6 | 80% | 92% | 40% | |
| 8 | 82% | 92% | 36% | |
| 10 | 92% | 96% | 32% | |
| 9 | 2 | 16% | 56% | 44% |
| 4 | 44% | 80% | 56% | |
| 6 | 84% | 88% | 36% | |
| 8 | 92% | 96% | 32% | |
| 10 | 96% | 100% | 28% | |
| 10 | 2 | 16% | 72% | 60% |
| 4 | 52% | 80% | 32% | |
| 6 | 88% | 100% | 24% | |
| 8 | 92% | 100% | 16% | |
| 10 | 100% | 100% | 16% | |
| e |
k |
Exact Alg. |
SAAS Alg. |
CF Alg. |
% of improvement SAAS & ExAS |
|---|---|---|---|---|---|
| 7 | 2 | 10 | 65 | 1 | --- |
| 4 | 12 | 76 | 1 | --- | |
| 6 | 14 | 89 | 1 | --- | |
| 8 | 16 | 95 | 2 | --- | |
| 10 | 17 | 99.4 | 2 | --- | |
| 8 | 2 | 12.44 | 81.84 | 1 | --- |
| 4 | 107 | 101.1 | 2 | 5.51% | |
| 6 | 175 | 112.2 | 2 | 35.89% | |
| 8 | 245 | 114.52 | 3 | 53.26% | |
| 10 | 307 | 116.3 | 4 | 62.12% | |
| 9 | 2 | 13 | 107.24 | 2 | --- |
| 4 | 423 | 131.23 | 2 | 68.98% | |
| 6 | 4375.64 | 144.52 | 3 | 96.70% | |
| 8 | 14782.28 | 158.24 | 4 | 98.93% | |
| 10 | 46592.12 | 162.2 | 4 | 99.65% | |
| 10 | 2 | 14.92 | 147.36 | 4 | --- |
| 4 | 57827.28 | 166.6 | 4 | 99.71% | |
| 6 | 805166.32 | 177.56 | 16 | 99.98% | |
| 8 | 15878846.4 | 185.7 | 16 | 100% | |
| 10 | 58645310 | 197.2 | 18 | 100% |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).

