-
Gen: On input 1n, Run GenRSA(1n) to obtain (N,e,d).
The public key is ⟨N,e⟩, and the private key is ⟨N,d⟩.
-
Enc: Given inputs pk=⟨N,e⟩, and m∈ZN∗,
Output the ciphertext c:=[memodN].
-
Dec: Given inputs sk=⟨N,d⟩, and ciphertext c∈ZN∗,
Output the message as m^:=[cdmodN].
-
Gen: On input 1n, Run GenRSA(1n) to obtain (N,e,d).
The public key is ⟨N,e⟩, and the private key is ⟨N,d⟩.
-
Enc: On inputs pk=⟨N,e⟩, and m∈{0,1}∥N∥−l(n)−2, where l(n)≤2n−4, choose uniform string r∈{0,1}l(n), and interpret m^:=r∥m as an element of ZN∗.
Output the ciphertext c:=[m^emodN].
-
Dec: On inputs sk=⟨N,d⟩, and ciphertext c∈ZN∗, compute m^:=[cdmodN] ,
Output the ∥N∥−l(n)−2 least significant bits of m^.