D-3.2 Encryption and Decryption

CKKS’s encryption and decryption schemes are similar to BFV’s encryption and decryption schemes (Summary D-2.3 in §D-2.3).

Summary D-3.2 CKKS Encryption and Decryption

Initial Setup:

Δ is a plaintext scaling factor for polynomial encoding, S $Rn,2. The coefficients of the polynomial S can be either binary (i.e., {0,1}) or ternary (i.e., {1,0,1}).


Encryption Input: ΔM Rn,q, Ai $Rn,q, E ξσRn,q

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


Decryption Input: 𝖼𝗍 = (A,B)  Rn,q2

𝖱𝖫𝖶𝖤S,σ1(𝖼𝗍) = B + A S mod q Δ 1 Δ = ΔM + E Δ 1 Δ M

# xk means rounding x to the nearest multiple of k

Property of Approximate Decryption: