Skip to main content
QUICK REVIEW

[Paper Review] Continued fractions and RSA with small secret exponent

Andrej Dujella|ArXiv.org|Feb 20, 2004
Chaos-based Image/Signal EncryptionComputer Science15 references33 citations
TL;DR

This paper generalizes Legendre's theorem on Diophantine approximations to bound solutions of |α − a/b| < c/b² using continued fraction convergents, enabling a more efficient variant of Wiener's and Verheul-van Tilborg's attacks on RSA with small secret exponents. The key contribution is a method that reduces the number of candidate exponents to test from O(D²A²) to O(D² log A), significantly improving efficiency for practical cryptanalysis when d < n^0.25.

ABSTRACT

Extending the classical Legendre's result, we describe all solutions of the inequality |x - a/b| &lt; c/b^2 in terms of convergents of continued fraction expansion of x. Namely, we show that a/b = (rp_{m+1} +- sp_m) / (rq_{m+1} +- sq_m) for some nonnegative integers m,r,s such that rs &lt; 2c. As an application of this result, we describe a modification of Verheul and van Tilborg variant of Wiener's attack on RSA cryptosystem with small secret exponent.

Motivation & Objective

  • To extend Legendre’s theorem on Diophantine approximations to handle bounds of the form |α − a/b| < c/b².
  • To improve existing cryptanalytic attacks on RSA with small secret exponents, particularly Wiener’s and Verheul-van Tilborg’s attacks.
  • To reduce the computational complexity of recovering the secret exponent d by leveraging continued fraction structure and tighter bounds on candidate solutions.
  • To provide a more efficient algorithm for factoring RSA moduli when d is slightly larger than n^0.25, extending the range of feasible attacks.

Proposed method

  • Derives a characterization of all rational solutions a/b to |α − a/b| < c/b² in terms of convergents of the continued fraction expansion of α.
  • Shows that solutions are of the form (rp_{m+1} ± sp_m)/(rq_{m+1} ± sq_m) for nonnegative integers r, s with rs < 2c.
  • Applies this generalized bound to the RSA equation ed ≡ 1 mod φ(n), treating e/n as α and k/d as the rational approximation.
  • Uses the continued fraction expansion of e/n to restrict candidate values of d to those corresponding to convergents and their linear combinations.
  • Implements a search over r, s pairs satisfying r < a_{m+2}s and s ≤ s₁, where s₁ depends on the approximation error and continued fraction terms.
  • Employs bounds on the number of such pairs using Dirichlet’s divisor function and estimates on q_m, q_{m+1}, etc., to control the search space.

Experimental results

Research questions

  • RQ1Can Legendre’s theorem on Diophantine approximation be generalized to handle bounds of the form |α − a/b| < c/b² for arbitrary c > 1?
  • RQ2How can this generalized approximation result be applied to improve known attacks on RSA with small secret exponents?
  • RQ3What is the asymptotic reduction in the number of candidate exponents d that need to be tested compared to the Verheul-van Tilborg method?
  • RQ4How does the new attack perform in practice for d values slightly above n^0.25, especially when d < n^0.292 as in Boneh-Durfee?
  • RQ5What is the average and maximum ratio of the number of candidate pairs rs to D² in the new method compared to the original Verheul-van Tilborg attack?

Key findings

  • The number of candidate pairs (r,s) in the new attack is bounded by O(D² log A), where D = d / n^{1/4} and A = max{a_i} over relevant continued fraction terms.
  • The average value of min(rs, st, r's') / D² across d in [1000, 1000000] is 0.8397, compared to 15.69 in the Verheul-van Tilborg method.
  • The maximal value of rs/D² in the Verheul-van Tilborg attack reaches 78,464.2, while the new method caps the corresponding quantity at 4.026.
  • For d = 5936963, the new method finds the correct d using s = 12195, t = 77, while Verheul-van Tilborg requires r = 219433, confirming the theoretical reduction in search space.
  • The attack remains efficient even when d exceeds n^0.25, offering a practical improvement over prior methods, especially when d < n^0.292.
  • The theoretical bound on the number of candidates is significantly tighter than the O(D²A²) complexity of the Verheul-van Tilborg attack, with the new method achieving O(D² log A).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.