← LibraryThe Elliptic Curve Method: Stage OneEngineering · MathematicsLesson 373/385← PrevNext →
ArticlePublished 7 Aug 20262 min readBy Kevin JoginECMstage onesmooth scalarB1 bound

Modern Factoring Methods

The Elliptic Curve Method: Stage One

ECM stage one: multiplying a point by a highly smooth scalar to reach the identity in one component.

Engineering / MathematicsModern Factoring Methods2 min readKV-MATH-0670

Stage one of ECM multiplies a point by a scalar containing every prime power below a bound. If the curve order in one component divides that scalar, the component reaches the identity and the factor appears.

The scalar

k = product over primes p <= B1 of p^floor(log_p B1)Every prime power up to the bound; a highly smooth integer.

The procedure

ECM stage one

  1. Choose a curve and pointBy Suyama's parametrisation, so a point is known without a square root.
  2. Build the scalarOr multiply by each prime power in turn, which avoids forming an enormous integer.
  3. MultiplyUsing the Montgomery ladder in projective coordinates.
  4. Take a GCDOf the final coordinate with the modulus.
  5. Interpret or continueA factor, a restart, or proceed to stage two.

Choosing the bound

ECM effort scales sharply with target factor size
Target factor sizeTypical boundCurves needed
15 digitsSmallTens
25 digitsModerateHundreds
35 digitsLargeThousands
45 digits and beyondVery largeTens of thousands or more

Curve selection

Parametrisations that force small factors into the curve order improve the odds appreciably. Suyama's construction guarantees divisibility by twelve, and other families guarantee more.

Parallelism

When stage one fails

If the order is smooth except for one larger prime, stage two finds it far more cheaply than raising the stage one bound — see stage two.

Source. Henri Cohen, A Course in Computational Algebraic Number Theory, Springer GTM 138 — 10.3.1-10.3.3. Structural reference unverified: the source file was not available during authoring; chapter and section numbers are taken from the published edition and have not been checked against a physical copy.

Continue learning

Elliptic Curve Arithmetic Modulo NArticle · MathematicsNEXT LESSON →ECM Stage Two and Practical TuningArticle · MathematicsElliptic Curves Modulo NArticle · MathematicsQuadratic Sieve Factor Base SelectionArticle · Mathematics