Proof of the Pollard p-1 Factoring Algorithm
Algorithm 1
Given a semiprime , if is a smooth prime, then the factorization of can be found as follows:
Step 1.
and are set.
Step 2.
is calculated.
Step 3.
If , then , a divisor of , is found and we are done. Otherwise, it is updated as . If becomes too large, revert to and update it as . Then return to Step 2.
Explanation
The Pollard factorization algorithm exploits the weakness of smooth primes similar to the Pollig-Hellman algorithm. A single prime number becoming a weakness makes the prime factorization problem easily solvable. Because of this attack method, cryptographic systems that rely on the difficulty of the prime factorization problem cannot use smooth primes as their secret keys.
Principally, it is not necessary to start with as in Step 1 or to use as in Step 2. It’s simply used because, if is smooth, then there is a high probability of successfully calculating .
Proof
Assuming is smooth, it is easy to satisfy the condition for . This means for some and , the following holds.
Fermat’s Little Theorem: For a prime and an integer coprime to ,
In , In , Here, since , there is a high probability that . This means
This implies that is a divisor of , and since is also a divisor of , calculating the greatest common divisor of the two numbers results in
■
See Also
Security Algorithms Utilizing the Difficulty of Prime Factorization Problem
Attack Algorithms on the Prime Factorization Problem
- Pollard’s p-1 Factorization Algorithm
- Conditions Under Which the Prime Factorization of Semiprimes Becomes Easy
Hoffstein. (2008). An Introduction to Mathematical Cryptography: p133~135. ↩︎