






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







(^1) This is by no means the only way to get multiparty secure computation. In fact, multiparty secure com- putation was known well before FHE was discovered. One common construction for achieving this uses a technique known as Yaoโs Garbled Circuit.
In the last lecture we saw the definition of secure multiparty com- putation, as well as the compiler reducing the task of achieving se- curity in the general (malicious) setting to the passive (honest-but- curious) setting. In this lecture we will see how using fully homo- morphic encryption we can achieve security in the honest-but-curious setting.^1 We focus on the two party case, and so prove the following theorem:
Theorem 17.1 โ Two party honest-but-curious MPC. Assuming the LWE conjecture, for every two party functionality ๐น there is a protocol computing ๐น in the honest but curious model.
Before proving the theorem it might be worthwhile to recall what is actually the definition of secure multiparty computation, when specialized for the ๐ = 2 and honest but curious case. The defini- tion significantly simplifies here since we donโt have to deal with the possibility of aborts.
Definition 17.2 โ Two party honest-but-curious secure computation. Let ๐น be (possibly probabilistic) map of {0, 1}๐^ ร {0, 1}๐^ to {0, 1}๐^ ร {0, 1}๐. A secure protocol for ๐น is a two party protocol such for every party ๐ก โ {1, 2}, there exists an efficient โideal adversaryโ (i.e., efficient interactive algorithm) ๐ such that for every pair of inputs (๐ฅ 1 , ๐ฅ 2 ) the following two distributions are computationally indistinguish- able:
Compiled on 11.17.2021 22:
336 an intensive introduction to cryptography
Figure 17.1 : An honest but curious protocol for two party computation using a fully homomorphic encryption scheme with circuit privacy.
That is, ๐, which only gets the input ๐ฅ๐ก and output ๐ฆ๐ก, can sim- ulate all the information that an honest-but-curious adversary controlling party ๐ก will view.
17.1 CONSTRUCTING 2 PARTY HONEST BUT CURIOUS COMPUTA- TION FROM FULLY HOMOMORPHIC ENCRYPTION
Let ๐น be a two party functionality. Lets start with the case that ๐น is de- terministic and that only Alice receives an output. Weโll later show an easy reduction from the general case to this one. Here is a suggested protocol for Alice and Bob to run on inputs ๐ฅ, ๐ฆ respectively so that Alice will learn ๐น (๐ฅ, ๐ฆ) but nothing more about ๐ฆ, and Bob will learn nothing about ๐ฅ that he didnโt know before.
Protocol 2PC: (See Fig. 17.1)
First, note that if Alice and Bob both follow the protocol, then in- deed at the end of the protocol Alice will compute ๐น (๐ฅ, ๐ฆ). We now claim that Bob does not learn anything about Aliceโs input:
Claim B: For every ๐ฅ, ๐ฆ, there exists a standalone algorithm ๐ such that ๐(๐ฆ) is indistinguishable from Bobโs view when interacting with Alice and their corresponding inputs are (๐ฅ, ๐ฆ).
Proof: Bob only receives a single message in this protocol of the form (๐, ๐) where ๐ is a public key and ๐ = ๐ธ๐(๐ฅ). The simulator ๐ will generate (๐, ๐) โ๐ ๐บ(1๐) and compute (๐, ๐) where ๐ = ๐ธ๐(0๐). (As usual 0 ๐^ denotes the length ๐ string consisting of all zeroes.) No matter what ๐ฅ is, the output of ๐ is indistinguishable from the message Bob receives by the security of the encryption scheme. QED
338 an intensive introduction to cryptography
(^2) Itโs true that strictly speaking, we allowed EVAL โs output to have length at most ๐, while this would make the output be ๐ + 100, but this is just a tech- nicality that can be easily bypassed, for example by having a new scheme that on security parameter ๐ runs the original scheme with parameter ๐/2 (and hence will have a lot of โroomโ to pad the output of EVAL with extra bits).
So, it turns out that Claim A is not generically true. The reason is the following: the definition of fully homomorphic encryption only re- quires that EVAL (๐, ๐ธ(๐ฅ)) decrypts to ๐(๐ฅ) but it does not require that it hides the contents of ๐. For example, for every FHE, if we modify EVAL (๐, ๐) to append to the ciphertext the first 100 bits of the descrip- tion of ๐ (and have the decryption algorithm ignore this extra infor- mation) then this would still be a secure FHE.^2 Now we didnโt exactly specify how we describe the function ๐(๐ฅ) defined as ๐ฅ โฆ ๐น (๐ฅ, ๐ฆ) but there are clearly representations in which the first 100 bits of the description would reveal the first few bits of the hardwired constant ๐ฆ, hence meaning that Alice will learn those bits from Bobโs message. Thus we need to get a stronger property, known as circuit privacy. This is a property thatโs useful in other contexts where we use FHE. Let us now define it: ::: {.definition title=โPerfect circuit privacyโ #perfectcircprivat- edef} Let โฐ = (๐บ, ๐ธ, ๐ท, EVAL ) be an FHE. We say that โฐ satisfies perfect circuit privacy if for every (๐, ๐) output by ๐บ(1๐) and every function ๐ โถ {0, 1}โ^ โ {0, 1} of ๐๐๐๐ฆ(๐) description size, and ev- ery ciphertexts ๐ 1 , โฆ , ๐โ and ๐ฅ 1 , โฆ , ๐ฅโ โ {0, 1} such that ๐๐ is output by ๐ธ๐(๐ฅ๐), the distribution of EVAL ๐(๐, ๐ 1 , โฆ , ๐โ) is identical to the distribution of ๐ธ๐(๐(๐ฅ)). That is, for every ๐ง โ {0, 1}โ, the probabil- ity that EVAL ๐(๐, ๐ 1 , โฆ , ๐โ) = ๐ง is the same as the probability that ๐ธ๐(๐(๐ฅ)) = ๐ง. We stress that these probabilities are taken only over the coins of the algorithms EVAL and ๐ธ. Perfect circuit privacy is a strong property, that also automatically implies that ๐ท๐( EVAL (๐, ๐ธ๐(๐ฅ 1 ), โฆ , ๐ธ๐(๐ฅโ))) = ๐(๐ฅ) (can you see why?). In particular, once you understand the definition, the follow- ing lemma is a fairly straightforward exercise.
Lemma 17.3 If (๐บ, ๐ธ, ๐ท, EVAL ) satisfies perfect circuit privacy then if (๐, ๐) = ๐บ(1๐) then for every two functions ๐, ๐โฒ^ โถ {0, 1}โ^ โ {0, 1} of ๐๐๐๐ฆ(๐) description size and every ๐ฅ โ {0, 1}โ^ such that ๐(๐ฅ) = ๐โฒ(๐ฅ), and every algorithm ๐ด,
| Pr[๐ด(๐, EVAL (๐, ๐ธ๐(๐ฅ 1 ), โฆ , ๐ธ๐(๐ฅโ))) = 1]โPr[๐ด(๐, EVAL (๐โฒ, ๐ธ๐(๐ฅ 1 ), โฆ , ๐ธ๐(๐ฅโ))) = 1]| < ๐๐๐๐(๐). (17.1)
P Please stop here and try to prove Lemma 17.
The algorithm ๐ด above gets the secret key as input, but still cannot distinguish whether the EVAL algorithm used ๐ or ๐โฒ. In fact, the expression on the lefthand side of (17.1) is equal to zero when the scheme satisfies perfect circuit privacy.
multiparty secure computation ii: construction using fully homomorphic encryption 339
However, for our applications bounding it by a negligible function is enough. Hence, we can use the relaxed notion of โimperfectโ circuit privacy, defined as follows:
Definition 17.4 โ Statistical circuit privacy. Let โฐ = (๐บ, ๐ธ, ๐ท, EVAL ) be an FHE. We say that โฐ satisfies statistical circuit privacy if for every (๐, ๐) output by ๐บ(1๐) and every function ๐ โถ {0, 1}โ^ โ {0, 1} of ๐๐๐๐ฆ(๐) description size, and every ciphertexts ๐ 1 , โฆ , ๐โ and ๐ฅ 1 , โฆ , ๐ฅโ โ {0, 1} such that ๐๐ is output by ๐ธ๐(๐ฅ๐), the distribution of EVAL ๐(๐, ๐ 1 , โฆ , ๐โ) is equal up to ๐๐๐๐(๐) total variation distance to the distribution of ๐ธ๐(๐(๐ฅ)). That is,
โ ๐งโ{0,1}โ
|Pr[ EVAL ๐(๐, ๐ 1 , โฆ , ๐โ) = ๐ง] โ Pr[๐ธ๐(๐(๐ฅ)) = ๐ง]| < ๐๐๐๐(๐)
where once again, these probabilities are taken only over the coins of the algorithms EVAL and ๐ธ.
If you find Definition 17.4 hard to parse, the most important points you need to remember about it are the following:
(The third point, which goes without saying, is that you can always ask clarifying questions in class, Piazza, sections, or office hoursโฆ) Intuitively, circuit privacy corresponds to what we need in the above protocol to protect Bobโs security and ensure that Alice doesnโt get any information about his input that she shouldnโt have from the output of EVAL , but before working this out, let us see how we can construct fully homomorphic encryption schemes satisfying this property.
17.2 ACHIEVING CIRCUIT PRIVACY IN A FULLY HOMOMORPHIC ENCRYPTION
We now discuss how we can modify our fully homomorphic encryp- tion schemes to achieve the notion of circuit privacy. In the scheme we saw, the encryption of a bit ๐, whether obtained through the en- cryption algorithm or EVAL , always had the form of a matrix ๐ถ over โค๐ (for ๐ = 2
โ๐ ) where ๐ถ๐ฃ = ๐๐ฃ + ๐ for some vector ๐ that is โsmallโ (e.g., for every ๐, |๐๐| < ๐๐๐๐๐ฆ๐๐๐(๐)^ โช ๐ = 2
โ๐ ). However, the EVAL algorithm was deterministic and hence this vector ๐ is a function of
multiparty secure computation ii: construction using fully homomorphic encryption 341
if |๐|, |๐| โค ๐ฟ๐ then the symmetric difference is roughly a 2๐ฟ fraction of the union.
We will not provide the full details, but together these lemmas show that EVAL can use bootstrapping to reduce the magnitude of the noise to roughly 2 ๐0.1 and then add an additional random noise of roughly, say, 2 ๐0.2 which would make it statistically indistinguishable from the actual encryption. Here are some hints on how to make this work: the idea is that in order to โre-randomizeโ a ciphertext ๐ถ we need a very noisy encryption of zero and add it to ๐ถ. The normal encryption will use noise of magnitude 2 ๐0.2 but we will provide an encryption of the secret key with smaller magnitude 2 ๐0.1/๐๐๐๐ฆ๐๐๐(๐) so we can use bootstrapping to reduce the noise. The main idea that allows to add noise is that at the end of the day, our scheme boils down to LWE instances that have the form (๐, ๐) where ๐ is a random vector in โค๐โ1๐ and ๐ = โจ๐, ๐ โฉ + ๐ where ๐ โ [โ๐, +๐] is a small noise addition. If we take any such input and add to ๐ some ๐โฒ^ โ [โ๐โฒ, +๐โฒ] then we create the effect of completely re-randomizing the noise. However, completely analyzing this requires non-trivial amount of care and work.
17.2.1 Bottom line: A two party secure computation protocol Using the above we can obtain the following theorem:
Theorem 17.7 โ Re-randomizable FHE. If the LWE conjecture is true then there exists a tuple of polynomial-time randomized algorithms (๐บ, ๐ธ, ๐ท, EVAL , RERAND ) such that:
342 an intensive introduction to cryptography
(^3) I believe this notation originates with Burrowsโ AbadiโNeedham (BAN) logic though would be happy to get corrections/references.
is a ciphertext that decrypts to the same plaintext as ๐, but whose distribution is essentially independent of ๐.
Proof Idea: We do not include the full proof but the idea is we use our standard LWE-based FHE and to rerandomize a ciphertext ๐ we will add to it an encryption of 0 (which will not change the corresponding plaintext) and an additional noise vector that would be of much larger mag- nitude than the original noise vector of ๐, but still small enough so decryption succeeds. โ
Using the above re-randomizable encryption scheme, we can re- define EVAL to add a RERAND step at the end and achieve statistical circuit privacy. If we use Protocol 2PC with such a scheme then we get a two party computation protocol secure with respect to honest but curious adversaries. Using the compiler of Theorem 16.5 we obtain a proof of Theorem 16.3 for the two party setting:
Theorem 17.8 โ Two party secure computation. If the LWE conjecture is true then for every (potentially randomized) functionality ๐น โถ {0, 1}๐^1 ร {0, 1}๐^2 โ {0, 1}๐^1 ร {0, 1}๐^2 there exists a polynomial-time protocol for computing the functionality ๐น secure with respect to potentially malicious adversaries.
17.3 BEYOND TWO PARTIES
We now sketch how to go beyond two parties. It turns out that the compiler of honest-but-curious to malicious security works just as well in the many party setting, and so the crux of the matter is to obtain an honest but curious secure protocol for ๐ > 2 parties. We start with the case of three parties - Alice, Bob, and Charlie. First, let us introduce some convenient notation (which is used in other settings as well).^3 We will assume that each party initially gen- erates private/public key pairs with respect to some fully homomor- phic encryption (satisfying statistical circuit privacy) and sends them to the other parties. We will use {๐ฅ}๐ด to denote the encryption of ๐ฅ โ {0, 1}โ^ using Aliceโs public key (similarly {๐ฅ}๐ต and {๐ฅ}๐ถ will denote the encryptions of ๐ฅ with respect to Bobโs and Charlieโs pub- lic key. We can also compose these and so denote by {{๐ฅ}๐ด}๐ต the encryption under Bobโs key of the encryption under Aliceโs key of ๐ฅ. With the notation above, Protocol 2PC can be described as follows:
Protocol 2PC: (Using BAN notation)
344 an intensive introduction to cryptography
functionality (๐ฅ, ๐ฆ, ๐ง) โฆ (๐น (๐ฅ, ๐ฆ, ๐ง), โฅ, โฅ) with respect to honest- but-curious adversaries.
Proof. Left to the reader :) โ