Euler's theorem explains why exponentiation can eventually return a number to its original value. If m is coprime with p, then m raised to the group's order is congruent to 1 modulo p. section 6.3.1
Its role in textbook RSA follows a short chain:
- Use m^order ≡ 1 mod p for a message m coprime with p. section 6.3.1
- Choose exponents e and d so that e × d ≡ 1 mod order. section 6.3.1
- Recover the message because raising ciphertext to d produces m^(e×d) ≡ m. section 6.3.1
- For an RSA modulus N = p × q, use Euler's totient function to count numbers coprime with N and conceal the group's order. section 6.3.1
A cyclic subgroup
With integers modulo 5, choose 2 as a generator and repeatedly exponentiate it. After enough powers, the sequence returns to 2, illustrating the cyclic behavior used to reverse exponentiation.
