14.2 SOLUTION OF THE DLP MODULO p GIVEN A FACTORIZATION OF p − 1

The Pohlig–Hellman Algorithm [Pohlig and Hellman, 1978] for solving the discrete logarithm problem modulo p assumes the factorisation of p − 1 is known:

Given:   image a primitive root of p, and y = qx (modulo p);

Find:   x = logp y (modulo p).

The important observation is that it suffices to solve the DLP if x is replaced by its residues modulo image for each prime factor. Write the base-image representation of x for the prime factor image of p − 1:

image

where C is some (positive) integer. Then, for 1 ≤ ik

image

As image is an integer, Fermat's Little Theorem gives image (modulo p) so that

The Pohlig–Hellman Algorithm determines the base-pi digits {xi, j} for each ...

Get Computer Security and Cryptography now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.