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.

232 Chapter 5 EXPONENTIAL FACTORING ALGORITHMS<br />

5.2.2 Pollard rho method for discrete logarithms<br />

Pollard has also suggested a rho method for discrete logarithm computations,<br />

but it does not involve iterating x 2 + 1, or any simple polynomial for that<br />

matter, [Pollard 1978]. If we are given a finite cyclic group G and a generator<br />

g of G, the discrete logarithm problem for G is to express given elements of<br />

G in the form g l ,wherel is an integer. The rho method can be used for any<br />

group for which it is possible to perform the group operation and for which we<br />

can assign numerical labels to the group elements. However, we shall discuss<br />

it for the specific group Z ∗ p of nonzero residues modulo p, wherep is a prime<br />

greater than 3.<br />

We view the elements of Z ∗ p as integers in {1, 2,...,p− 1}. Letg be a<br />

generator and let t be an arbitrary element. Our goal is to find an integer l<br />

such that g l = t; thatis,t = g l mod p. Since the order of g is p − 1, it is really<br />

a residue class modulo (p − 1) that we are searching for, not a specific integer<br />

l, though of course, we might request the least nonnegative value.<br />

Consider a sequence of pairs (ai,bi) of integers modulo (p − 1) and a<br />

sequence (xi) of integers modulo p such that xi = t ai g bi mod p, and we begin<br />

with the initial values a0 = b0 =0,x0 = 1. The rule for getting the i +1<br />

terms from the i termsisasfollows:<br />

⎧<br />

⎨<br />

and so<br />

(ai+1,bi+1) =<br />

⎩<br />

((ai +1)mod(p−1),bi), if 0

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

Saved successfully!

Ooh no, something went wrong!