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.5 Counting points on elliptic curves 353<br />

Y times a polynomial in X alone. For n odd and not a multiple of p, we have<br />

deg(Ψn) =(n 2 − 1)/2. Forn even and not a multiple of p, we have that the<br />

degree of Ψn in the variable X is (n 2 − 4)/2. For a point (x, y) ∈ E(Fp) \ E[2]<br />

we have [n]P = O if and only if Ψn(x) =0(when n is odd) and Ψn(x, y) =0<br />

(when n is even). Further, if (x, y) ∈ E(Fp) \ E[n], then<br />

<br />

[n](x, y) =<br />

x − Ψn−1Ψn+1<br />

Ψ2 ,<br />

n<br />

Ψn+2Ψ2 n−1 − Ψn−2Ψ2 n+1<br />

4yΨ3 n<br />

Note that in the last statement, if y =0,thennmust be odd (since y =0<br />

signifies a point of order 2, and we are given that (x, y) ∈ E[n]), so y2 divides<br />

the numerator of the rational expression in the second coordinate. In this case,<br />

it is natural to take this expression as 0.<br />

It is worth remarking that for odd prime l = p, thereisaunique integer t<br />

in [0,l− 1] such that<br />

<br />

x p2<br />

,y p2<br />

+[p mod l](x, y) =[t] x p ,y p for all (x, y) ∈ E[l] \{O}. (7.10)<br />

Indeed, this follows directly from (7.9) and the consequence of Theorem 7.5.5<br />

that E(Fp) does indeed contain points of order l. If this unique integer t could<br />

be computed, we would then know that the order of E(Fp) is congruent to<br />

p +1− t modulo l.<br />

The computational significance of the relation is that using the division<br />

polynomials, it is feasible to test the various choices for t to see which one<br />

works. This is done as follows:<br />

(1) Points are pairs of polynomials in Fp[X, Y ].<br />

(2) Since the points are on E, we may constantly reduce modulo Y 2 − X 3 −<br />

aX − b so as to keep powers of Y no higher than the first power, and<br />

since the points we are considering are in E[n], we may reduce also by<br />

the polynomial Ψn to keep the X powers in check as well. Finally, the<br />

coefficients are in Fp, sothatmodp reductions can be taken with the<br />

coefficients, whenever convenient. These three kinds of reductions may be<br />

taken in any order.<br />

(3) High powers of X, Y are to be reduced by a powering ladder such as that<br />

provided in Algorithm 2.1.5, with appropriate polynomial mods taken<br />

along the way for continual degree reduction.<br />

(4) The addition on the left side of (7.10) is to be simulated using the formulae<br />

in Definition 7.1.2.<br />

On the face of it, explicit polynomial inversion—from the fundamental<br />

elliptic operation definition—would seem to be required. This could be<br />

accomplished via Algorithm 2.2.2, but it is not necessary to do so because<br />

of the following observation. We have seen in various elliptic addition<br />

algorithms previous that inversions can be avoided by adroit representations of<br />

coordinates. In actual practice, we have found it convenient to work either with<br />

the projective point representation of Algorithm 7.2.3 or a “rational” variant<br />

<br />

.

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

Saved successfully!

Ooh no, something went wrong!