C3 · Weak keysWorks only on weak keys
Smooth p − 1
Toy keys built with smooth p − 1 fall to ; “safe” primes don’t.
The idea
Chapter B3 showed p − 1 finds p whenever p − 1 is . Here we compare three key makers: one that (badly) builds p − 1 out of small primes, one that picks random primes, and one that uses “safe” primes p = 2r + 1 with r prime, whose p − 1 has a giant prime factor.
Watch it
The test
100 seeded toy keys from each key maker (two 32-bit primes per key), p − 1 at B = 1,000, 10,000 and 100,000: the share that falls.
Fig. C3.2Share of toy keys Pollard’s p − 1 splits, by key maker and bound B
Measuring…