22.04.2014 Views

a590003

a590003

a590003

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Proof. By definition<br />

⟨c, (1, s)⟩ =<br />

=<br />

=<br />

=<br />

⟨ ⌊ q<br />

⟩<br />

P T · r + · m, (1, s) (mod q)<br />

⌊<br />

2⌋<br />

q<br />

· m + r<br />

2⌋<br />

T P · (1, s) (mod q)<br />

⌊ q<br />

· m + r<br />

2⌋<br />

T b − r T As (mod q)<br />

⌊ q<br />

· m + ⟨r, e⟩ (mod q) .<br />

2⌋<br />

The lemma follows since |⟨r, e⟩| ≤ N · B.<br />

We proceed to state the correctness of decryption for low-noise ciphertexts. The proof easily<br />

follows by assignment into the definition of Regev.Dec and is omitted.<br />

Lemma 3.2 (decryption noise). Let s ∈ Z n be some vector, and let c ∈ Z n+1<br />

q<br />

⌊ q<br />

⟨c, (1, s)⟩ = · m + e (mod q) ,<br />

2⌋<br />

be such that<br />

with m ∈ {0, 1} and |e| < ⌊q/2⌋ /2. Then<br />

Regev.Dec s (c) = m .<br />

Security. The following lemma states the security of Regev. The proof is standard (see e.g. [Reg05])<br />

and is omitted.<br />

Lemma 3.3. Let n, q, χ be some parameters such that DLWE n,q,χ holds. Then for any m ∈ {0, 1}, if<br />

s←Regev.SecretKeygen(1 n ), P←Regev.PublicKeygen(s), c←Regev.Enc P (m), it holds that the joint<br />

distribution (P, c) is computationally indistinguishable from uniform over Zq N×(n+1) × Z n+1<br />

q .<br />

3.2 Vector Decomposition and Key Switching<br />

We show how to decompose vectors in a way that preserves inner product and how to generate and<br />

use key switching parameters. Our notation is generally adopted from [BGV12].<br />

Vector Decomposition.<br />

We often break vectors into their bit representations as defined below:<br />

• BitDecomp q (x): For x ∈ Z n , let w i ∈ {0, 1} n be such that x = ∑ ⌈log q⌉−1<br />

i=0<br />

2 i·w i (mod q). Output<br />

the vector<br />

(w 0 , . . . , w ⌈log q⌉−1 ) ∈ {0, 1} n·⌈log q⌉ .<br />

• PowersOfTwo q (y): For y ∈ Z n , output<br />

[<br />

]<br />

(y, 2 · y, . . . , 2 ⌈log q⌉−1 q⌉<br />

· y) ∈ Zn·⌈log<br />

q .<br />

q<br />

We will usually omit the subscript q when it is clear from the context.<br />

Claim 3.4. For all q ∈ Z and x, y ∈ Z n , it holds that<br />

⟨x, y⟩ = ⟨BitDecomp q (x), PowersOfTwo q (y)⟩ (mod q) .<br />

9<br />

6. FHE without Modulus Switching

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!