Pohlig-Hellman algorithm

from Wikipedia, the free encyclopedia

The Pohlig-Hellman algorithm was named after the mathematicians Stephen Pohlig and Martin Hellman . Occasionally this algorithm can also be found in the literature under the name Silver-Pohlig-Hellman algorithm . With the Pohlig-Hellman algorithm, the discrete logarithm can be calculated in a cyclic group.

The relevance of this method is that the computational effort does not depend on the group order, but on the largest factor in the group order. The disadvantage is that a prime factorization of the group order must be known for this method. However, such a prime factorization is generally very difficult to determine.

Math background

Let be a cyclic group of order , where the factorization of is known and the largest factor of is. The discrete logarithm in the group can then be calculated using Silver-Pohlig-Hellman in instead of operations. This is done in three steps:

  1. Reduction of the problem of the group into cyclic groups whose order is, where is a divisor of (the solution that results from this later is clearly according to the Chinese remainder theorem ).
  2. Reduction of groups with prime power order in groups with prime order
  3. Compound the result using the Chinese remainder of the sentence .

The algorithm

Let be the cyclic group of order , a generator of and . Next is the prime factorization of .

The algorithm is now given in two steps. First there is a version for groups, the order of which corresponds to a prime power. This can be used in the following as a sub-algorithm in general Pohlig-Hellman.

Prime-Power-Pohlig-Hellman

Let the group order be , where is a prime number. Shanks' Babystep-Giantstep algorithm is used to determine the discrete logarithm in the subgroups .

Input:
Output The discrete logarithm
  1. Shanks ( ),
  2. for to do
    1. Shanks ( )
  3. return

In this algorithm is used, that the discrete logarithm can be written in the following form: . Due to the restrictions made, this representation is clear.

General Pohlig-Hellman

Input:
Output The discrete logarithm
  1. for to do
    1. Prime-Power-Pohlig-Hellman ( )
  2. Calculate for with the Chinese remainder theorem .
  3. return .

credentials

  1. S. Pohlig and M. Hellman. "An Improved Algorithm for Computing Logarithms over GF (p) and its Cryptographic Significance," IEEE Trans. Information Theory 24, 1978, pp. 106-110.
  2. V. Shoup. "A Computational Introduction to Number Theory and Algebra", Cambridge University Press, 2007, http://shoup.net/ntb/ , page 325ff.