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