HW Problem
Problem 4.5 In class we showed if we encrypt `M` using RSA with the public key and then decrypt with the private key, we get the original message back. Give the analogous proof that RSA signature verification works. That is, if we encrypt with the private key and decrypt with the public key we get `M` back.
Answer:
- Given `S = M^d mod N` we must show:
`M = S^e mod N = M^(de) mod N = M^(ed) mod N`
- To show the above equality, we again use Euler's Theorem which says:
If `x` is relatively prime to `n` then `x^(phi(n)) = 1 mod n`.
- Since `ed = 1 mod (p - 1)(q - 1)`, by definition of mod, we have
`ed = k(p - 1)(q - 1) + 1` for some `k`.
- Then `ed - 1 = k(p - 1)(q - 1) = k phi(N)`.
- So `M^(ed) = M^((ed - 1) + 1) = M times M^(ed - 1) = M times M^(k phi(N))`
`M times (M^(phi(N)))^k mod N = M times 1^k mod N = M mod N`