Normal-form LWE ⇒ CPA-secure PKE (Lindner–Peikert)
Statement
Let be the dimension at which normal-form LWE is hard, so that for a constant , and let be -computable with . For a prime and , let be the discrete Gaussian of width , which can be sampled exactly in polynomial time when — BLPRS13 (arXiv v1, Lemma 2.3); the scheme keeps its samples as integers and reduces them modulo where it computes in . For messages , with the distance from to modulo , the scheme is:
\begin{algorithm}
\algname{Algorithm}
\caption{$\KeyGen(1^\secpar)$}
\begin{algorithmic}
\State $\mathbf{A} \getsr \ZZ_q^{n \times n}$; $\mathbf{S} \gets \chi^{n \times \ell}$; $\mathbf{E} \gets \chi^{n \times \ell}$
\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} \gets \chi^n$; $\mathbf{e}_1 \gets \chi^n$; $\mathbf{e}_2 \gets \chi^\ell$
\State $\mathbf{c}_1 \gets \mathbf{r}^{\top}\mathbf{A} + \mathbf{e}_1^{\top}$
\State $\mathbf{c}_2 \gets \mathbf{r}^{\top}\mathbf{B} + \mathbf{e}_2^{\top} + \lfloor q/2 \rfloor \mu^{\top}$
\Comment{The message sits in the high-order bits}
\Return $(\mathbf{c}_1, \mathbf{c}_2)$
\end{algorithmic}
\end{algorithm}
\begin{algorithm}
\algname{Algorithm}
\caption{$\Dec(\sk, (\mathbf{c}_1, \mathbf{c}_2))$}
\begin{algorithmic}
\State $\mathbf{d} \gets \mathbf{c}_2 - \mathbf{c}_1\mathbf{S} \bmod q$
\State $\mu'_j \gets \left[\,|d_j - \lfloor q/2 \rfloor|_q \le |d_j|_q\,\right]$ for $j = 1, \dots, \ell$
\Return $\mu'$
\end{algorithmic}
\end{algorithm}
Up to the modulus and the message encoding, this is FrodoPKE with a single message row, which AJOP18 (arXiv v2, Section 6.2, Construction 5) state in full and describe as based on a construction of LP11b.
Correctness. Write and for the -th columns of and . Since , bit is decrypted correctly whenever the integer has : then , as , so is closer to than to modulo . Given the key, is a linear combination of independent samples of with coefficient vector . For every , all entries of and have absolute value below except with probability at most , and then each such vector has squared norm below ; the tail bound in the Notes and a union bound over the bits give decryption error at most
— standard. Take , and the least prime greater than , which is at most by Bertrand’s postulate and is found in time . Then , , for , and gives , so the decryption error is at most , which is negligible since — standard.
Security. For every CPA adversary , the distinguishers , against normal-form LWE with samples, and , against normal-form LWE with samples, of the Sketch each run once and
The parameters above are the case of normal-form LWE, with a prime and for , and the sample counts and are since and . So if normal-form LWE is hard, the right side is negligible and the scheme is an IND-CPA-secure PKE for -bit messages — folklore.
Sketch
Let be the CPA game with replaced by a uniform , and the game with the challenge ciphertext replaced by a uniform one, so that . Each column of is a normal-form instance with matrix and samples, and puts its challenge in a uniformly random column , the columns before it uniform and those after it honest, so a hybrid argument gives . In the ciphertext minus is , the transpose of a normal-form instance with secret , uniform matrix and samples, so , and the triangle inequality gives the bound.
\begin{algorithm}
\algname{Algorithm}
\caption{$\calB_1(1^\secpar, \mathbf{A}, \mathbf{u})$}
\begin{algorithmic}
\State $j \getsr [\ell]$; $\mathbf{B}_k \getsr \ZZ_q^n$ for $k < j$; $\mathbf{B}_j \gets \mathbf{u}$
\Comment{$\mathbf{B}_k$ is the $k$-th column of $\mathbf{B}$}
\State $\mathbf{s}_k, \mathbf{e}_k \gets \chi^n$ and $\mathbf{B}_k \gets \mathbf{A}\mathbf{s}_k + \mathbf{e}_k$ for $k > j$
\State $(\mu_0, \mu_1, \stA) \gets \calA(1^\secpar, (\mathbf{A}, \mathbf{B}))$; $\beta \getsr \bits$
\State $c^* \gets \Enc((\mathbf{A}, \mathbf{B}), \mu_\beta)$; $\beta' \gets \calA(c^*, \stA)$
\Return $[\beta' \ne \beta]$
\end{algorithmic}
\end{algorithm}
\begin{algorithm}
\algname{Algorithm}
\caption{$\calB_2(1^\secpar, \mathbf{A}', \mathbf{u}')$}
\begin{algorithmic}
\State $[\mathbf{A} \mid \mathbf{U}] \gets \mathbf{A}'^{\top}$
\Comment{$\mathbf{A}' \in \ZZ_q^{(n+\ell) \times n}$ and $\mathbf{A} \in \ZZ_q^{n \times n}$}
\State $(\mu_0, \mu_1, \stA) \gets \calA(1^\secpar, (\mathbf{A}, \mathbf{U}))$; $\beta \getsr \bits$
\State $c^* \gets \mathbf{u}'^{\top} + (\mathbf{0}, \lfloor q/2 \rfloor \mu_\beta^{\top})$; $\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.
- The decryption-error bound needs a smaller noise rate than Regev’s scheme, which is correct at . With and , the exponent of its second term is at most , while its first term is negligible only if , so the bound is negligible only for ; it also grows with , so is taken close to its least value — standard.
- The public key has elements of and a ciphertext has , so for an encryption expands messages by a factor , which is at the parameters above — standard.
- For prime , hardness of decision LWE with uniform secret gives hardness of normal-form LWE — ACPS09, as credited by BLPRS13 (arXiv v1, Section 2.3). The change of variables of LWE with polynomial ratio ⇒ Normal-form LWE spends extra samples and, for , loses at most a factor in advantage — standard.