ANALYSIS OF PROBABILISTIC PRIME NUMBER GENERATION METHODS AND THEIR EFFICIENCY

Authors

  • Mardiyev Ulugbek Cryptology department, TUIT named after Muhammad al-Khwarizmi, Tashkent, Uzbekistan

Abstract

Probabilistic primality tests are fundamental tools in cryptography, enabling the efficient generation of large prime numbers for secure keys. This paper presents a comprehensive examination of two key algorithms – the Miller–Rabin and Solovay–Strassen tests – highlighting both their theoretical foundations and practical performance in cryptographic prime generation. We detail the operational principles of each algorithm and analyze their computational efficiency and error probabilities. A comparative evaluation of Miller–Rabin and Solovay–Strassen in practice highlights Miller–Rabin’s superior speed and reliability. In particular, the Miller–Rabin test offers faster execution (owing to simpler modular operations) and a stricter error bound (with error probability decreasing roughly as 4^(-k) per round, versus 2^(-k) for Solovay–Strassen), making it the preferred choice in modern cryptographic libraries. Additionally, we briefly examine hybrid techniques such as the Baillie–PSW test – a combination of Miller–Rabin and Lucas sequence tests – which has no known pseudoprimes, illustrating an alternative high-confidence approach. Overall, these findings underscore the importance of robust probabilistic testing, exemplified by Miller–Rabin, for secure key generation in cryptosystems, ensuring that primes used in cryptographic keys are reliable without significant performance trade-offs.

Downloads

Download data is not yet available.

References

R. M. Solovay and V. Strassen, “A Fast Monte-Carlo Test for Primality,” SIAM Journal on Computing, vol. 6, no. 1, pp. 84–85, 1977.

M. O. Rabin, “Probabilistic algorithm for testing primality,” Journal of Number Theory, vol. 12, no. 1, pp. 128–138, 1980.

G. L. Miller, “Riemann’s hypothesis and tests for primality,” Journal of Computer and System Sciences, vol. 13, no. 3, pp. 300–317, 1976.

Damgård, P. Landrock, and C. Pomerance, “Average case error estimates for the strong probable prime test,” Mathematics of Computation, vol. 61, no. 203, pp. 177–194, 1993.

P. Erdős and C. Pomerance, “On the number of false witnesses for a composite number,” Mathematics of Computation, vol. 46, no. 173, pp. 259–279, 1986.

L. Monier, “Evaluation and Comparison of Two Efficient Probabilistic Primality Testing Algorithms,” Theoretical Computer Science, vol. 12, no. 1, pp. 97–108, 1980.

H. Menezes, A. van Oorschot, and S. Vanstone, “Handbook of Applied Cryptography,” CRC Press, 1997, Chapter 4. (See discussion on Fermat, Solovay–Strassen, Miller–Rabin tests)

S. Ishmukhametov, “The Error Probability of the Miller–Rabin Primality Test,” Lobachevskii Journal of Mathematics, vol. 39, no. 5, pp. 771–777, 2018.

M. Wahab, M. Yousif, A. Hassan, and H. Ridha, “Taxonomy and Practical Evaluation of Primality Testing Algorithms,” arXiv:2006.08444 [cs.CR], 2020.

OpenSSL Documentation (Crypto API), “BN_generate_prime – OpenSSL Prime Number Generation,” OpenSSL v1.1.1 Manual, 2018.

Downloads

Published

2025-04-30

How to Cite

Mardiyev Ulugbek. (2025). ANALYSIS OF PROBABILISTIC PRIME NUMBER GENERATION METHODS AND THEIR EFFICIENCY. International Scientific and Current Research Conferences, 1(01), 192–199. Retrieved from https://orientalpublication.com/index.php/iscrc/article/view/1870