Research Article

Probing RSA's weak spots: Dissecting timing attacks and Euclidean method exploitations

Siwei Tan1, Siyuan Tong2,*
1. University of California
2. Macao Polytechnic University

* Corresponding author: [email protected]

Abstract

The RSA encryption system, a cornerstone of numerous cryptographic frameworks, has long enjoyed a reputation for robustness. However, its strength is inherently tethered to the meticulous selection and management of its foundational prime numbers, p and q. This study delves into a nuanced vulnerability that surfaces when p and q assume particularly large values. Within this context, we illuminate how the Euclidean method can be weaponized to swiftly decipher RSA-encrypted messages, unveiling the original plaintext with surprising efficiency. Intriguingly, our analysis also uncovers that harnessing parallel computation for the Euclidean method expedites decryption exponentially, accentuating this vulnerability. Such revelations cast a spotlight on a delicate balancing act between computational prowess and cryptographic fortitude. The insights gleaned from our research emphasize the paramount importance of judicious prime selection in the RSA framework. They also caution about the unforeseen pitfalls that might lurk behind algorithmic enhancements in cryptographic contexts. Through this investigation, we aspire to catalyse a critical re-evaluation of RSA's real-world deployments and champion a more circumspect, continually adaptive approach to designing cryptographic systems.

Keywords: Parallel Computing; RSA; Euclidean Algorithm; Timing Attacks; Cryptographic Security
Published: February 7, 2024
DOI: 10.54254/2755-2721/36/20230445
Volume: ACE Vol.36
pp. 192-197
Download PDF

References

  1. Aldaya, A. C., García, C. P., Tapia, L. M. A., & Brumley, B. B. (2018). Cache-timing attacks on RSA key generation. Cryptology ePrint Archive.
  2. Chen, C., Wang, T., Kou, Y., Chen, X., & Li, X. (2013). Improvement of trace-driven I-Cache timing attack on the RSA algorithm. Journal of Systems and Software, 86(1), 100-107.
  3. Acıiçmez, O., Gueron, S., & Seifert, J. P. (2007). New branch prediction vulnerabilities in OpenSSL and necessary software countermeasures. In Cryptography and Coding: 11th IMA International Conference, Cirencester, UK, December 18-20, 2007. Proceedings 11 (pp. 185-203). Springer Berlin Heidelberg.
  4. Zhu, X., Xu, H., Zhao, Z., & others. (2021). An Environmental Intrusion Detection Technology Based on WiFi. Wireless Personal Communications, 119(2), 1425-1436.
  5. Weiser, S., Spreitzer, R., & Bodner, L. (2018, May). Single trace attack against RSA key generation in Intel SGX SSL. In Proceedings of the 2018 on Asia Conference on Computer and Communications Security (pp. 575-586).
  6. Aldaya, A. C., & Brumley, B. B. (2020). When one vulnerable primitive turns viral: Novel single-trace attacks on ECDSA and RSA. Cryptology ePrint Archive.
  7. Thirumalai, C., Mohan, S., & Srivastava, G. (2020). An efficient public key secure scheme for cloud and IoT security. Computer Communications, 150, 634-643.
  8. Aslam, M., & Bilal, A. (2014). Implementation of rsa algorithm secure against timing attacks using fpga. International Journal of Engineering Research & Technology (IJERT), 1.
  9. Cabrera Aldaya, A., Cuiman Marquez, R., Cabrera Sarmiento, A. J., & Sánchez‐Solano, S. (2017). Side‐channel analysis of the modular inversion step in the RSA key generation algorithm. International Journal of Circuit Theory and Applications, 45(2), 199-213.
  10. Strenzke, F. (2010). A timing attack against the secret permutation in the McEliece PKC. In Post-Quantum Cryptography: Third International Workshop, PQCrypto 2010, Darmstadt, Germany, May 25-28, 2010. Proceedings 3 (pp. 95-107). Springer Berlin Heidelberg.