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.

down by a factor of p t . Let’s recall what this means: we want to output c ′ ∈ A, represented via double-CRT<br />

format (as its matrix of evaluations modulo the primes p 0 , . . . , p t−1 ), such that<br />

1. c ′ = c mod 2.<br />

2. c ′ is very close (in terms of its coefficient vector) to c/p t .<br />

In the main body we explained how this could be performed in dble-CRT representation. This made explicit<br />

use of the fact that the two ciphertexts need to be equivalent modulo two. If we wished to replace two with<br />

a general prime p, then things are a bit more complicated. For completeness, although it is not required in<br />

our scheme, we present a methodology below. In this case, the conditions on c † are as follows:<br />

1. c † = c · p t mod p.<br />

2. c † is very close to c.<br />

3. c † is divisible by p t .<br />

As before, we set c ′ ← c † /p t . (Note that for p = 2, we trivially have c · p t = c mod p, since p t will be odd.)<br />

This causes some complications, because we set c † ← c + δ, where δ = −¯c mod p t (as before) but now<br />

δ = (p t − 1) · c mod p. To compute such a δ, we need to know c mod p. Unfortunately, we don’t have<br />

c mod p. One not-very-satisfying way of dealing with this problem is the following. Set ĉ ← [p t ] p·c mod q t .<br />

Now, if c encrypted m, then ĉ encrypts [p t ] p · m, and ĉ’s noise is [p t ] p < p/2 times as large. It is obviously<br />

easy to compute ĉ’s double-CRT format from c’s. Now, we set c † so that the following is true:<br />

1. c † = ĉ mod p.<br />

2. c † is very close to ĉ.<br />

3. c † is divisible by p t .<br />

This is easy to do. The algorithm to output c † in double-CRT format is as follows:<br />

1. Set ¯c to be the coefficient representation of ĉ mod p t . (Computing this requires a single “small FFT”<br />

modulo the prime p t .)<br />

2. Set δ to be the polynomial with coefficients in (−p t · p/2, p t · p/2] such that δ = 0 mod p and<br />

δ = −¯c mod p t .<br />

3. Set c † = ĉ + δ, and output c † ’s double-CRT representation.<br />

(a) We already have ĉ’s double-CRT representation.<br />

(b) Computing δ’s double-CRT representation requires t “small FFTs” modulo the p j ’s.<br />

E<br />

Other Optimizations<br />

Some other optimizations that we encountered during our implementation work are discussed next. Not all<br />

of these optimizations are useful for our current implementation, but they may be useful in other contexts.<br />

29<br />

5. Homomorphic Evaluation of the AES Circuit

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

Saved successfully!

Ooh no, something went wrong!