DDH ⇒ CPA-secure PKE (ElGamal)
Statement
DDH implies CPA-secure PKE: the ElGamal scheme over has and , encrypts as for , and decrypts as . The scheme is from ElGamal85; it is semantically secure iff DDH is hard for — TY98. It is perfectly correct, since , and with group elements encoded by strings of one length its message space holds the two distinct equal-length messages and , as . For every CPA adversary , the DDH adversary of the Sketch runs once and has — standard.
Sketch
On DDH challenge , sets , samples , answers ‘s challenge pair with , and outputs iff outputs . For this is a correctly distributed encryption of with , so guesses with probability ; for with uniform, is uniform on and independent of , so guesses with probability , and gives .
\begin{algorithm}
\algname{Algorithm}
\caption{$\KeyGen(1^\secpar)$}
\begin{algorithmic}
\State $(\GG, g, p) \gets \GrGen(1^\secpar)$
\State $x \getsr [p]$; $y \gets g^x$
\Return $(\sk, \pk) \gets ((\GG, g, p, x), (\GG, g, p, y))$
\end{algorithmic}
\end{algorithm}
\begin{algorithm}
\algname{Algorithm}
\caption{$\Enc(\pk, m)$}
\begin{algorithmic}
\State $r \getsr [p]$
\Comment{$m \in \GG$}
\Return $c \gets (g^r, m \cdot y^r)$
\end{algorithmic}
\end{algorithm}
\begin{algorithm}
\algname{Algorithm}
\caption{$\Dec(\sk, (c_1, c_2))$}
\begin{algorithmic}
\Return $m \gets c_2 \cdot c_1^{-x}$
\end{algorithmic}
\end{algorithm}
Notes
- ElGamal85 predates the DDH assumption; the DDH-based CPA proof is later — TY98.
- Efficiency: a ciphertext is two group elements for a one-element message; encryption costs two exponentiations and decryption one — standard.