On (Unknowingly) Using Near-Square RSA Primes
Open Access
Abstract
The invention in 1978 of the first practical asymmetric cryptosystem known as RSA was a breakthrough within the long history of secret communications. Since its inception, the RSA cryptosystem has become embedded in millions of digital applications with the objectives of ensuring confidentiality, integrity, authenticity, and disallowing repudiation. However, the generation of the RSA modulus, which requires p and q to be random primes, may accidentally entail the choice of a special type of prime called a near-square prime. This structure of N may be used unknowingly en masse in real-world applications since no current cryptographic implementation prevents its generation. In this study, we show that use of this type of prime will potentially lead to total destruction of RSA. We present three cases of near-square primes used as RSA primes, set in the form of (i) ; (ii) ; and (iii) . Although (ii) and (iii) are quite similar, p and q must be within the same size range of n-bits, which results in different conditions for both cases. We formulate attacks using three different algorithms to better understand their feasibility. We also provide an efficient countermeasure that it is recommended is adopted by current cryptographic libraries with RSA implementation.
Keywords
Funding Information
- Universiti Putra Malaysia (GP-IPM/2021/9704300)
- Universiti Putra Malaysia (INSPEM/IRFI/1/2021/6233205)
This publication has 20 references indexed in Scilit:
- Partial Key Exposure Attacks on RSA up to Full Size Exponents2005
- Cryptanalysis of RSA with Small Prime DifferenceApplicable Algebra in Engineering, Communication and Computing, 2002
- Cryptanalysis of RSA with private key d less than N/sup 0.292/IEEE Transactions on Information Theory, 2000
- Cryptanalysis of short RSA secret exponentsIEEE Transactions on Information Theory, 1990
- The number field sieve1990
- Speeding the Pollard and elliptic curve methods of factorizationMathematics of Computation, 1987
- A method for obtaining digital signatures and public-key cryptosystemsCommunications of the ACM, 1978
- Monte Carlo methods for index computation (𝑚𝑜𝑑𝑝)Mathematics of Computation, 1978
- Theorems on factorization and primality testingMathematical Proceedings of the Cambridge Philosophical Society, 1974
- A sieve method for factoring numbers of the form 𝑛²+1Mathematics of Computation, 1959