LWE with polynomial ratio ⇒ CPA-secure PKE (Regev)

Fully-black-box reduction · standard model · via leftover hash lemma · Reg05 · Lean: part, proved · security loss: tight up to a factor 2: one run of the CPA adversary on the LWE samples as public key, whose advantage is at most twice the LWE advantage plus the statistical leftover-hash term

Statement

Let be -computable with for a constant , for instance , the choice of Reg05. Let be prime, for a constant , , and the discrete Gaussian of width , reduced modulo , which can be sampled exactly in polynomial time since — BLPRS13 (arXiv v1, Lemma 2.3). Regev’s scheme for one-bit messages is the following, where is the distance from to modulo ; it encrypts as the sum of a uniformly random subset of the LWE samples of the public key, plus in the last coordinate, and decrypts to iff is closer to than to modulo — Reg05 (Section 5), whose is a Gaussian of width rounded to the nearest integer, for any .

\begin{algorithm}
\algname{Algorithm}
\caption{$\KeyGen(1^\secpar)$}
\begin{algorithmic}
\State $\mathbf{A} \getsr \ZZ_q^{m \times n}$; $\mathbf{s} \getsr \ZZ_q^n$; $\mathbf{e} \gets \chi^m$
\State $\mathbf{b} \gets \mathbf{A}\mathbf{s} + \mathbf{e}$
\Return $(\sk, \pk) \gets (\mathbf{s}, (\mathbf{A}, \mathbf{b}))$
\end{algorithmic}
\end{algorithm}

\begin{algorithm}
\algname{Algorithm}
\caption{$\Enc(\pk, \mu)$}
\begin{algorithmic}
\State $\mathbf{r} \getsr \bits^m$
\Comment{The indicator vector of a uniform subset of $[m]$}
\Return $(\mathbf{c}_1, c_2) \gets (\mathbf{r}^{\top}\mathbf{A},\ \mathbf{r}^{\top}\mathbf{b} + \mu \lfloor q/2 \rfloor)$
\end{algorithmic}
\end{algorithm}

\begin{algorithm}
\algname{Algorithm}
\caption{$\Dec(\sk, (\mathbf{c}_1, c_2))$}
\begin{algorithmic}
\State $d \gets c_2 - \mathbf{c}_1\mathbf{s} \bmod q$
\Return $\left[\,|d - \lfloor q/2 \rfloor|_q \le |d|_q\,\right]$
\end{algorithmic}
\end{algorithm}

Correctness. Since , decryption is correct whenever , computed over — Reg05 (Lemma 5.1). For , , and given , is a linear combination of independent samples of with coefficient vector of norm at most , so the tail bound in the Notes bounds the decryption error by

which is , since , and so negligible — standard.

Security. For every CPA adversary , the distinguisher of the Sketch runs once and

— standard. Reg05 (Lemma 5.4) prove the qualitative form: for every , an efficient adversary distinguishing encryptions of and gives an efficient distinguisher between the samples of the public key and uniform for a non-negligible fraction of secrets, and the proof does not use the noise distribution. The parameters above have a prime , with for , and , so if LWE with polynomial modulus-to-noise ratio holds at dimension , its case makes the scheme an IND-CPA-secure PKE for one-bit messages — standard.

Sketch

Let be the CPA game with replaced by a uniform pair; embeds its challenge as the public key and outputs iff guesses the bit, so . In the matrix is uniform and the challenge is ; the maps on collide on with probability exactly over , since has an entry , so the leftover hash lemma gives for uniform — as in Reg05 (Claim 5.3, whose statistical distance is twice this one) — and with in place of the challenge is independent of , so . The bound follows from and .

\begin{algorithm}
\algname{Algorithm}
\caption{$\calB(1^\secpar, \mathbf{A}, \mathbf{u})$}
\begin{algorithmic}
\State $(\mu_0, \mu_1, \stA) \gets \calA(1^\secpar, (\mathbf{A}, \mathbf{u}))$; $\beta \getsr \bits$
\State $\mathbf{r} \getsr \bits^m$; $c^* \gets (\mathbf{r}^{\top}\mathbf{A},\ \mathbf{r}^{\top}\mathbf{u} + \mu_\beta \lfloor q/2 \rfloor)$
\Comment{An encryption of $\mu_\beta$ under the public key $(\mathbf{A}, \mathbf{u})$}
\State $\beta' \gets \calA(c^*, \stA)$
\Return $[\beta' \ne \beta]$
\end{algorithmic}
\end{algorithm}

Notes

  • Tail bound: for and real , completing the square gives , with as in Discrete Gaussians, because Poisson summation gives for every real . For independent and nonzero , Markov’s inequality applied to at , and the symmetry of , give for every — standard.
  • Efficiency: the public key has elements of , and a one-bit ciphertext has of them, so encryption expands messages by a factor — Reg05. If all users share one uniformly random , the public key is alone, bits, and security is unaffected — Reg05 (Section 5, crediting Ajtai). Over rings, a ciphertext is two ring elements, about bits, carrying packed message bits, so for polynomial the expansion is for -bit messages but for a single bit; keys shrink to bits — LPR10.
  • When the secret, the errors and the encryption randomness are all drawn from the error distribution, the challenge ciphertext is itself a normal-form LWE instance whose secret is the encryption randomness, and the leftover hash lemma is not needed (Normal-form LWE ⇒ CPA-secure PKE (Lindner–Peikert)) — standard.