Proof of correctness
We now consider cd=med=mnecessary for the successful description of an RSA ciphertext. The core of this result is due to Euler's theorem which states
for all coprime integers (a,n) and ϕ(n) is Euler's totient function.
As a reminder, we say two integers are coprime if they share no non-trivial factors. This is the same statement that gcd(a,n)=1.
From the definition of the protocol, we have that
for some k∈Z. Combining this with Euler's theorem, we see that we recover mfrom the ciphertext
When the requirement gcd(m,n)=1does not hold, we can instead look at the equivalences modulo pand qrespectively. Clearly, when gcd(m,n)=n,we have that c≡m≡0modnand our correctness still holds. Now, consider the case m=k⋅p,where we have that c≡m≡0modpand cd≡(me)d(modq).Since we have already excluded the case that gcd(m,q)=q,we can conclude that gcd(m,q)=1,as qis prime. This means that mℓϕ(q)≡1modqand by the multiplicative properties of the ϕfunction, we determine that mℓnϕ(n)=mℓϕ(q)≡1modq.We conclude by invoking the Chinese Remainder theorem with
that me⋅d≡mmodn.The case for m=k⋅qfollows in a parallel manner.
Last updated
Was this helpful?