The first provably-secure probabilistic public-key encryption scheme was proposed by Shafi Goldwasser and Silvio Micali, based on the hardness of the quadratic residuosity problem and had a message expansion factor equal to the public key size. More efficient probabilistic encryption algorithms include Elgamal, Paillier, and various constructions under the random oracle model, including OAEP.
Probabilistic encryption is particularly important when using public key cryptography. Suppose that the adversary observes a ciphertext, and suspects that the plaintext is either "YES" or "NO", or has a hunch that the plaintext might be "ATTACK AT CALAIS". When a deterministic encryption algorithm is used, the adversary can simply try encrypting each of their guesses under the recipient's public key, and compare each result to the target ciphertext. To combat this attack, public key encryption schemes must incorporate an element of randomness, ensuring that each plaintext maps into one of a large number of possible ciphertexts.
An intuitive approach to converting a deterministic encryption scheme into a probabilistic one is to simply pad the plaintext with a random string before encrypting with the deterministic algorithm. Conversely, decryption involves applying a deterministic algorithm and ignoring the random padding. However, early schemes which applied this naive approach were broken due to limitations in some deterministic encryption schemes. Techniques such as Optimal Asymmetric Encryption Padding (OAEP) integrate random padding in a manner that is secure using any trapdoor permutation.
Example of probabilistic encryption using any trapdoor permutation:
E n c ( x ) = ( f ( r ) , x ⊕ b ( r ) ) {\displaystyle {\rm {Enc}}(x)=(f(r),x\oplus b(r))}
D e c ( y , z ) = b ( f − 1 ( y ) ) ⊕ z {\displaystyle {\rm {Dec}}(y,z)=b(f^{-1}(y))\oplus z}
This is inefficient because only a single bit is encrypted. In other words, the message expansion factor is equal to the public key size.
Example of probabilistic encryption in the random oracle model:
E n c ( x ) = ( f ( r ) , x ⊕ h ( r ) ) {\displaystyle {\rm {Enc}}(x)=(f(r),x\oplus h(r))}
D e c ( y , z ) = h ( f − 1 ( y ) ) ⊕ z {\displaystyle {\rm {Dec}}(y,z)=h(f^{-1}(y))\oplus z}
Puthuparambil, Arun Babu; Thomas, Jithin Jose (2019-12-01). "Freestyle, a randomized version of ChaCha for resisting offline brute-force and dictionary attacks". Journal of Information Security and Applications. 49: 102396. arXiv:1802.03201. doi:10.1016/j.jisa.2019.102396. ISSN 2214-2126. /wiki/ArXiv_(identifier) ↩