Approximating Euler Totient Function using Linear Regression on RSA moduli

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Bansimba, Gilda Rech, Babindamana, Regis F., Ibara, Beni Blaug N.
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866913933742309376
author Bansimba, Gilda Rech
Babindamana, Regis F.
Ibara, Beni Blaug N.
author_facet Bansimba, Gilda Rech
Babindamana, Regis F.
Ibara, Beni Blaug N.
contents The security of the RSA cryptosystem is based on the intractability of computing Euler's totient function phi(n) for large integers n. Although deriving phi(n) deterministically remains computationally infeasible for cryptographically relevant bit lengths, and machine learning presents a promising alternative for constructing efficient approximations. In this work, we explore a machine learning approach to approximate Euler's totient function phi using linear regression models. We consider a dataset of RSA moduli of 64, 128, 256, 512 and 1024 bits along with their corresponding totient values. The regression model is trained to capture the relationship between the modulus and its totient, and tested on unseen samples to evaluate its prediction accuracy. Preliminary results suggest that phi can be approximated within a small relative error margin, which may be sufficient to aid in certain classes of RSA attacks. This research opens a direction for integrating statistical learning techniques into cryptanalysis, providing insights into the feasibility of attacking cryptosystems using approximation based strategies.
format Preprint
id arxiv_https___arxiv_org_abs_2507_06706
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Approximating Euler Totient Function using Linear Regression on RSA moduli
Bansimba, Gilda Rech
Babindamana, Regis F.
Ibara, Beni Blaug N.
Cryptography and Security
03C05
The security of the RSA cryptosystem is based on the intractability of computing Euler's totient function phi(n) for large integers n. Although deriving phi(n) deterministically remains computationally infeasible for cryptographically relevant bit lengths, and machine learning presents a promising alternative for constructing efficient approximations. In this work, we explore a machine learning approach to approximate Euler's totient function phi using linear regression models. We consider a dataset of RSA moduli of 64, 128, 256, 512 and 1024 bits along with their corresponding totient values. The regression model is trained to capture the relationship between the modulus and its totient, and tested on unseen samples to evaluate its prediction accuracy. Preliminary results suggest that phi can be approximated within a small relative error margin, which may be sufficient to aid in certain classes of RSA attacks. This research opens a direction for integrating statistical learning techniques into cryptanalysis, providing insights into the feasibility of attacking cryptosystems using approximation based strategies.
title Approximating Euler Totient Function using Linear Regression on RSA moduli
topic Cryptography and Security
03C05
url https://arxiv.org/abs/2507.06706