{
  "id": "2009/318",
  "url": "https://opencryptology.org/2009/318",
  "original_url": "https://eprint.iacr.org/2009/318",
  "title": "The Fermat factorization method revisited",
  "authors": [
    "Robert ERRA",
    "Christophe GRENIER"
  ],
  "affiliations": null,
  "abstract": "We consider the well known Fermat  factorization method ({\\it FFM}) when it is applied on a balanced RSA modulus $N=p\\, q>0$, with primes $p$ and $q$ supposed of equal length. We call the {\\it Fermat  factorization equation}  the equation (and all the possible variants) solved by the FFM like ${\\cal P}(x,y)=(x+2R)^2-y^2-4N=0$    (where $R=\\lceil N^{1/2} \\rceil$).\n\nThese equations are bivariate integer polynomial equations and we propose to solve them  directly using Coppersmith's methods for bivariate integer polynomials. As we use them as a black box, our proofs will be  brief.\n\nWe show first that, using Coppersmith's methods,  we can factor $N$ in a polynomial time if $|p-q|<N^{3/14}$, with\n$3/14 \\approx 0.214\\cdots$ and,\nusing the fact that the Newton polygon of ${\\cal P}(x,y)$ is a lower triangle\nwe show a better result: we can indeed factor $N$ in a polynomial time if $|p-q|<N^{1/4}$.\nUnfortunately this shows that using Coppersmith's methods for bivariate integer polynomials is no better  than the FFM, because in that case the FFM is immediate. This is confirmed by numerical experiments.\n\nWe then propose another method: solving the  {\\it modular} Fermat  factorization equation\n$ (x+2R)^2-y^2=0 \\mod 4N $.\nSince Coppersmith's methods for {\\it modular} multivariate integer polynomial equations are {\\it empirical}, there relies on the  the famous {\\it \"resultant heuristic\"}, we get\nonly an empirical method that can factor $N$ in a polynomial time if $|p-q|<N^{1/3}$.\nWe conclude with proposals for future works.",
  "category": "Public-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“The Fermat factorization method revisited” by Robert ERRA, Christophe GRENIER, Cryptology ePrint Archive, Paper 2009/318, https://eprint.iacr.org/2009/318. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2009-07-01T10:08:53Z",
    "updated": "2009-07-24T00:59:20Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2009/318.pdf",
    "sha256": "ffa44e85cf3cfc4066cc7ccc791a99fe6644ffe63df9c2eecaa2c8831d96cb45",
    "size": 151120,
    "source": "github-mirror",
    "source_date": "2019-02-25T16:20:12Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2009/318/versions/20190225T162012Z.pdf",
      "captured_at": "2019-02-25T16:20:12Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2009/318.pdf",
      "size": 151120,
      "sha256": "ffa44e85cf3cfc4066cc7ccc791a99fe6644ffe63df9c2eecaa2c8831d96cb45",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260818014706id_/https://eprint.iacr.org/2009/318.pdf",
      "captured_at": "2026-08-18T01:47:06Z",
      "size": 125526
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2009/318.pdf",
      "captured_at": "2019-02-25T16:20:12Z",
      "size": 151120
    }
  ],
  "bibtex": "@misc{cryptoeprint:2009/318,\n      author = {Robert ERRA and Christophe GRENIER},\n      title = {The Fermat factorization method revisited},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2009/318},\n      year = {2009},\n      url = {https://eprint.iacr.org/2009/318}\n}"
}
