10.12.2012 Views

Prime Numbers

Prime Numbers

Prime Numbers

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6.4 Index-calculus method for discrete logarithms 305<br />

algebra, which is the primary goal, or one gets a factorization of the modulus,<br />

and so can restart the matrix algebra with the finer factors one has found.<br />

Regarding question (3), it is likely that with somewhat more than π(B)<br />

relations of the form g r ≡ p r1<br />

1 ···prk<br />

k (mod p), where p1,...,pk are all of the<br />

primes in [1,B], that the various exponent vectors (r1,...,rk) found span the<br />

module Z k p−1. So obtaining B of these vectors is a bit of overkill. In addition,<br />

it is not even necessary that the vectors span the complete module, but only<br />

that the vector corresponding to the relation found in step [Search for a special<br />

relation] be in the submodule generated by them. This idea, then, would make<br />

the separate solutions for log g pi in Step [Linear algebra] unnecessary; namely,<br />

one would do the linear algebra only after the special relation is found.<br />

The final two questions above can be answered together. Just as with the<br />

analysis of some of the factorization methods, we find that an asymptotically<br />

optimal choice for B is of the shape L(p) c ,whereL(p) is defined in (6.1). If<br />

a fast smoothness test is used, such as the elliptic curve method, we would<br />

choose c =1/ √ 2, and end up with a total complexity of L(p) √ 2+o(1) .Ifa<br />

slow smoothness test is used, such as trial division, a smaller value of c should<br />

be chosen, namely c =1/2, leading to a total complexity of L(p) 2+o(1) .Ifa<br />

smoothness test is used that is of intermediate complexity, one is led to an<br />

intermediate value of c and an intermediate total complexity.<br />

At finite levels, the asymptotic analysis is only a rough guide, and good<br />

choices should be chosen by the implementer following some trial runs. For<br />

details on the index-calculus method for prime finite fields, see [Pomerance<br />

1987b].<br />

6.4.2 Discrete logarithms via smooth polynomials and<br />

smooth algebraic integers<br />

What makes the index-calculus method successful, or even possible, for Fp<br />

is that we may think of Fp as Zp, and thus represent group elements with<br />

integers. It is not true that F p d is isomorphic to Z p d when d>1, and so<br />

there is no convenient way to represent elements of nonprime finite fields with<br />

integers. As we saw in Section 2.2.2, we may view F p d as the quotient ring<br />

Zp[x]/(f(x)), where f(x) is an irreducible polynomial in Zp[x] ofdegreed.<br />

Thus, we may identify to each member of F ∗<br />

p d a nonzero polynomial in Zp[x]<br />

of degree less than d.<br />

The polynomial ring Zp[x] is like the ring of integers Z in many ways.<br />

Both are unique factorization domains, where the “primes” of Zp[x] are the<br />

monic irreducible polynomials of positive degree. Both have only finitely many<br />

invertible elements (the residues 1, 2,...,p− 1 modulo p in the former case,<br />

and the integers ±1 in the latter case), and both rings have a concept of<br />

size. Indeed, though Zp[x] is not an ordered ring, we nevertheless have a<br />

rudimentary concept of size via the degree of a polynomial. And so, we have<br />

a concept of “smoothness” for a polynomial: We say that a polynomial is bsmooth<br />

if each of its irreducible factors has degree at most b. Weevenhave<br />

a theorem analogous to (1.44): The fraction of b-smooth polynomials in Zp[x]

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

Saved successfully!

Ooh no, something went wrong!