B-3.2 Encryption

1.
Suppose we have an (n 1)-degree polynomial M Rn,t whose coefficients represent the plaintext numbers to encrypt.
2.
Randomly pick an (n 1)-degree polynomial A Rn,q as a one-time public key (denoted as A $Rn,q).
3.
Randomly pick a small polynomial E Rn,q as a one-time noise, whose n coefficients are small numbers in q randomly sampled from the Gaussian distribution χσ (denoted as E χσRn,q).
4.
Scale M by Δ, which is to compute Δ M. This converts M Rn,p into Δ M Rn,q.
5.
Compute B = A S + Δ M + E mod Rn,q (i.e., reduce the degree by n and the coefficient by modulo q).
6.
The final ciphertext is (A,B).

The RLWE encryption formula is summarized as follows:

Summary B-3.2 RLWE Encryption

Initial Setup: Δ = q t, S $Rn,2

Encryption Input: M Rn,t, A $Rn,q, E χσRn,2

1.
Scale up MΔM  Rn,q
2.
Compute B = A S + ΔM + E  mod Rn,q
3.
𝖱𝖫𝖶𝖤S,σ(ΔM) = (A,B)  Rn,q2