21.3 Factoring with Elliptic Curves

Suppose n=pq is a number we wish to factor. Choose a random elliptic curve mod n and a point on the curve. In practice, one chooses several (around 14 for numbers around 50 digits; more for larger integers) curves with points and runs the algorithm in parallel.

How do we choose the curve? First, choose a point P and a coefficient b. Then choose c so that P lies on the curve y2=x3+bx+c. This is much more efficient than choosing b and c and then trying to find a point.

For example, let n=2773. Take P=(1, 3) and b=4. Since we want 3213+41+c,  we take c=4. Therefore, our curve is

E:y2x3+4x+4(mod2773).

We calculated 2P=(1771, 705) in a previous example. Note that during the calculation, we needed to find 6

Get Introduction to Cryptography with Coding Theory, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.