C5 · Weak keysWorks only on weak keys
One message, many keys: Håstad and the common modulus
Send one unpadded message to three people with e = 3, or share a , and the gives it away.
The idea
With 3, each friend gets c = m³ mod N. If the same m goes to three friends, the combines the three ciphertexts into m³ mod (N₁N₂N₃). But m is smaller than each N, so m³ is smaller than the product, which means the combined value is m³ itself, and an ordinary cube root gives m. Separately: if two people share one N with exponents that share no factor, the extended Euclid algorithm finds a, b with a·e₁ + b·e₂ = 1, and m = c₁ᵃ·c₂ᵇ mod N.
Watch it
Every recipient has e = 3 and a different 64-bit toy modulus. The snoop sees only the moduli and the ciphertexts.
The test
200 seeded 52-bit messages, exponents e = 3 and e = 5, 1 to 6 recipients with different 64-bit moduli. The attack’s outcome is compared with the one-line prediction “mᵉ is smaller than the product of the moduli”. Then: unknown random padding per recipient, the with exponent pairs (3, 5) and (9, 15), and the owner of one key pair factoring the shared modulus.
Fig. C5.2Share of messages recovered by the broadcast attack, by the number of recipients
Measuring…