This happens with high probability except for m is multiple of p or q
Enc & Dec:
Encpk(m)=memodN→c
Encryption using public key
Decsk(c)=cdmodN→m,
where d=e−1modϕ(n)
Decryption using private key
Efficiency:
Verify that all three algorithms, Gen, Enc and Dec, can be efficiently computed
Gen involves picking two n-bit primes, p and q, and an exponent e relatively prime to ϕ(N)
Enc and Dec are both modular exponentiations which can be efficiently computed.
Dec also requires to compute d=e−1modϕ(N)
Correctness:
Verify that decryption is able to recover encrypted messages.
Given message 0<m<N and gcd(m,N)=1, we have :
Dec(Enc(m))=((me)modN)dmodN=medmodN by modular arithmeticanmodm=(amodm)nmodm=medmodϕ(N)modN, by corollary and gcd(m,N)=1=m1modN, since d=e−1modϕ(N)=mmodN=m we need 0<m<N