10.12.2012 Views

Prime Numbers

Prime Numbers

Prime Numbers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

7.4 Elliptic curve method 341<br />

propagates forever afterward during further evaluations of functions addh()<br />

and doubleh(). Thus, the parameterization in question allows us to continually<br />

check gcd(n, Z), and if this is ever greater than 1, it may well be the hidden<br />

factor p. In practice, we “accumulate” Z-coordinates, and take the gcd only<br />

rarely, for example after stage one, and as we shall see, one final time after a<br />

stage two.<br />

On enhancement (2), it is an observation of Suyama that under<br />

Montgomery parameterization the group order #E is divisible by 4. But<br />

one can press further, to ensure that the order be divisible by 8, 12, or even<br />

16. Thus, in regard to enhancement (2) above, we can make good use of a<br />

convenient result [Brent et al. 2000]:<br />

Theorem 7.4.3 (ECM curve construction). Define an elliptic curve<br />

Eσ(Fp) to be governed by the cubic<br />

y 2 = x 3 + C(σ)x 2 + x,<br />

where C depends on field parameter σ = 0, 1, 5 according to<br />

u = σ 2 − 5,<br />

v =4σ,<br />

C(σ) = (v − u)3 (3u + v)<br />

4u 3 v<br />

− 2.<br />

Then the order of Eσ is divisible by 12, and moreover, either on E or a twist<br />

E ′ (see Definition 7.2.5) there exists a point whose x-coordinate is u 3 v −3 .<br />

Now we can ignite any new curve attempt by simply choosing a random σ.<br />

We use, then, Algorithm 7.2.7 with homogeneous x-coordinatization starting<br />

in the form X/Z = u 3 /v 3 , proceeding to ignore all y-coordinates throughout<br />

the factorization run. What is more, we do not even care whether an initial<br />

point is on E or its twist, again because y-coordinate ignorance is allowed.<br />

On enhancements (3), there are ideas that can reduce stage-two computations.<br />

One trick that some researchers enjoy is to use a “birthday paradox”<br />

second stage, which amounts to using semirandom multiples for two sets of coordinates,<br />

and this can sometimes yield performance advantages [Brent et al.<br />

2000]. But there are some ideas that apply in the scenario of simply checking<br />

all outlying primes q up to some “stage-two limit” B2 >B1; that is, without<br />

any special list-matching schemes. Here is a very practical method that<br />

reduces the computational effort asymptotically down to just two (or fewer)<br />

multiplies (mod n) for each outlying prime candidate. We have already argued<br />

above that if qn,qn+1 are consecutive primes, one can add some stored multiple<br />

[∆n]Q to any current calculation [qn]Q to get the next point [qn+1]Q, and<br />

that this involves just one elliptic operation per prime qm. Though that may be<br />

impressive, we recall that an elliptic operation is a handful, say, of multiplies<br />

(mod n). We can bring the complexity down simply, yet dramatically, as follows.<br />

If we know, for some prime r, the multiple [r]Q =[Xr : Zr] and we have

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!