Proving that the RSA Scheme Works
We fulfil the claim from Implementing the RSA Scheme that
RSA Works
For all integers
and are distinct primes , and are positive integers such that and , where where
then
(See congruence)
Let
Now, from parts 5 and 6 of the hypothesis, we have
Since
Since
How, we prove that
- Case 1: If
, then we have , and therefore,
Hence, in this case, bothand are congruent to giving - Case 2: If
, then and are coprime, so by Fermat's Little Theorem, we have
From part 3 of the hypothesis and the definitions of congruence and divisibility, there exists an integer
(Recall that we set
Since
for some positive integer
Substituting (1) gives
and hence we also have
since it is true for both cases, we conclude that
Also, without loss of generality, this holds true for
Since we established that
By applying splitting modulus theorem, we obtain
From parts 4 and 6 of the hypothesis, we know that