The present disclosure relates to systems, methods, network devices, and machine-readable media for securing a set of computer-executable instructions by obfuscation while preserving functionality.
Indistinguishability obfuscation (iO) is a probabilistic polynomial-time algorithm that takes as input a circuit C and outputs an (obfuscated) circuit C′=(C) satisfying two properties: (a) functionality: C and C′ compute the same function; and (b) security: for any two circuits C1 and C2 that compute the same function (and have the same size), (C1) and (C2) are computationally indistinguishable. Since the first candidate for iO was introduced, a series of works have shown that iO would have a huge impact on cryptography.
Known iO candidates with concrete instantiations may be broadly classified as follows. First, we have fairly simple and direct candidates based on graded “multi-linear” encodings and that achieve plausible post-quantum security. These candidates have survived fairly intense scrutiny from cryptanalysts, and several of them are also provably secure in restricted adversarial models that capture a large class of known attacks. However, none of these candidates have a security reduction to a simple, falsifiable assumption.
Next, we have a line of works that aims to base iO on a conjunction of simple and well-founded assumptions culminating in recent work basing iO on pairings, LWE, LPN and PRG in NCO. These constructions rely on the prior constructions of iO from functional encryption (FE), and proceed to build FE via a series of delicate and complex reductions, drawing upon techniques from a large body of works, including pairing-based FE for quadratic functions, lattice-based fully-homomorphic and attribute-based encryption, homomorphic secret-sharing, as well as hardness amplification.
Other efforts include more recent and incomparable candidates, including a direct candidate based on tensor products and another based on affine determinant programs (with noise), a candidate based on an interplay between a LWE-based and a DCR-based cryptosystems, and the plausibly post-quantum secure candidates that replace the use of pairings in the second line of works with direct candidates for FE for inner product plus noise. All of these candidates, as with the first line of work, do not present a security reduction to a simple, falsifiable assumption.
None of these existing approaches yields a lattice-inspired iO candidate that is plausibly post-quantum secure and enjoys a security reduction under a simple, falsifiable assumption referring solely to lattice-based cryptosystems. There is a need for an iO candidate whose hardness distills to a single source of computational hardness (as opposed to lattice plus pairing/number-theoretic hardness). Such a candidate is also potentially more amenable to crypto-analytic efforts as well as further research to reduce security to more standard lattice problems.
Some embodiments of the invention include systems and methods for securing a set of executable instructions by obfuscation by receiving a set of non-obfuscated executable instructions corresponding to a program whose input comprises a value in the set {1, . . . , N}; using a functional encoding primitive comprising an encoding process, an opening process and a decoding process to compute obfuscated instructions by: executing the encoding process of the functional encoding primitive to encode the executable instructions; computing Q=sqrt(N) functions, each of which functions correspond to evaluating the executable instructions on a set of m=sqrt(N) distinct input values; executing the opening process for each of the functions; storing outputs of the encoding process and the opening process as a set of obfuscated instructions; and storing the set of obfuscated executable instructions on a computerized storage device for subsequent execution, wherein the set of obfuscated executable instructions satisfy properties of: functionality whereby the set of obfuscated executable instructions and the set of non-obfuscated executable instructions compute the same function and have the same input-output behavior; and security whereby for any two sets of non-obfuscated executable instructions with the same input-output behavior of the set of non-obfuscated executable instructions, the corresponding set of obfuscated executable instructions cannot be distinguished by a computationally efficient process.
Further embodiments comprise executing the obfuscated instructions of a program on an input x in the set {1, . . . , N} by: finding an index i in {1, . . . , Q} of a function that corresponds to an evaluation of the program on x; and executing a decoding process on the obfuscated executable instructions and the ith opening to recover an output of de-obfuscated instructions.
In further embodiments, the functional encoding primitive further comprises: a commitment primitive comprising a commit process, an evaluation process and an open process; a sampler primitive comprising an initialize process and a sample process; and wherein the encode, open, decode processes of the functional encoding primitive further comprise encoding by: executing a commitment process; executing a sampler initialization process; opening by: executing a commitment evaluation process; executing a sampling process of the sampler; summing up the sample and the evaluated commitment resulting in a commitment c; providing an opening for the commitment c; decoding by: executing a commitment evaluation process; executing a sampling process of the sampler; summing up the sample and the evaluated commitment resulting in a commitment c; and using the provided opening for c to recover a committed value.
In further embodiments, the commit, evaluate, and open processes of the commitment primitive use a learning with errors sample plus a committed value to generate an opening smaller than the committed value. In further embodiments, the initialization and sampling processes of the sampler primitive further comprises: initializing by executing a commitment process on a key k for a pseudorandom function resulting in a commitment c; and sampling by executing a commitment evaluation process to generate a pseudorandom learning with errors sample from the key k. In further embodiments, the obfuscated instructions represent a proprietary algorithm for providing a security function in a mobile hardware environment, and further comprising distributing the stored obfuscated instructions to a remote platform comprising the mobile hardware environment. In further embodiments, the mobile hardware environment comprises a secure coprocessor that further comprises a hardware-based key manager, which is isolated from a main processor for the mobile hardware environment. In further embodiments, the obfuscated instructions represent one or more components of an operating system for the mobile hardware environment. In further embodiments, the obfuscated instructions perform a function of verifying one or more of components of an operating system for the mobile hardware environment. In further embodiments, the obfuscated instructions represent one or more application programming interfaces which are exposed for outside access. Further embodiments comprise combining multiple instances of the obfuscation process together using a tree-like compression process to create an obfuscated program, wherein execution of the obfuscated program on a computerized processor runs in polynomial time.
The accompanying drawings, which are included to provide further understanding and are incorporated in and constitute a part of this specification, illustrate disclosed embodiments, and together with the description, serve to explain the principles of the disclosed embodiments. In the drawings:
Described herein is a new, simple candidate construction of indistinguishability obfuscation (iO). Our scheme is inspired by lattices and learning-with-errors (LWE) techniques. We formulate a new falsifiable assumption under which the scheme is secure. Furthermore, the scheme plausibly achieves post-quantum security.
As a first step, we construct an iO scheme that is provably secure assuming that LWE holds and that it is possible to obliviously generate LWE samples without knowing the corresponding secrets. We define a precise notion of oblivious LWE sampling that suffices for the construction. It is known how to obliviously sample from any distribution (in a very strong sense) using iO, and our result provides a converse, showing that the ability to obliviously sample from the specific LWE distribution (in a much weaker sense) already also implies iO. As a second step, we give a heuristic contraction of oblivious LWE sampling. On a very high level, we do this by homomorphically generating pseudorandom LWE samples using an encrypted pseudorandom function.
Embodiments include new candidate constructions of iO relying on techniques from lattices and learning-with-errors (LWE). We formulate a new falsifiable assumption on the indistinguishability of two distributions, and show that our construction is secure under this assumption. This is the first iO candidate that is simultaneously based on a clearly stated falsifiable assumption and plausibly post-quantum secure. We also show that, under the LWE assumption, the ability to obliviously sample from the LWE distribution provably implies iO. Unlike prior constructions of iO from simpler primitives (e.g., functional encryption, succinct randomized encodings, XiO, etc.), oblivious LWE sampling does not inherently involve any computation and appears to be fundamentally different. Lastly, the inventive construction is conceptually simpler and more self-contained (relying on fewer disjoint components) than many of the prior candidates.
Our main building block is an “oblivious LWE sampler”, which takes as input a matrix A∈qm×n and allows us to generate LWE samples A·s+e with some small error e E m without knowing the secrets s, e. Our notion can be seen as a significant relaxation of “invertible sampling” (in the common reference string model), and the equivalent notion of “pseudorandom encodings”. It has been shown that, assuming iO, it is possible to invertibly sample from all distributions, and there is an open question as to whether it may be possible to do so under simpler assumptions that do not imply iO. As a side result of independent interest, we settle this question by showing that, under LWE, even our relaxed form of invertible sampling for the specific LWE distribution already implies iO.
Overall, our candidate iO construction consists of two steps. The first step is a provably secure construction of iO assuming we have an oblivious LWE sampler and that the LWE assumption holds (both with sub-exponential security). The second step is a candidate heuristic instantiation of an oblivious LWE sampler. On a very high level, our heuristic sampler performs a homomorphic computation that outputs a pseudorandom LWE sample generated using some pseudorandom function (PRF). Security boils down to a clearly stated falsifiable assumption that two distributions, both of which output LWE samples, are indistinguishable even if we give out the corresponding LWE secrets. Our assumption implicitly relies on some form of circular security: we assume that the error term in the pseudorandom LWE sample “drowns out” any error that comes out of the homomorphic computation over the PRF key that was used to generate it. The inventive construction/assumption also avoids some crypto-analytic attacks.
We first describe what functional encodings are and how to construct iO from functional encodings. Then we describe our instantiation of functional encodings via oblivious LWE sampling.
iO from Functional Encodings
Instead of constructing iO directly, we construct a simpler a primitive called “exponentially efficient iO” XiO, which is known to imply iO under the LWE assumption. We first describe what XiO is, and then discuss how to construct it from Functional Encodings.
XiO
An XiO scheme has the same syntax, correctness and security requirements as iO, but relaxes the efficiency requirement. To obfuscate a circuit C with input length n, the obfuscator can run in exponential time 2O(n) and the size of the obfuscated circuit can be as large as 2n(1−ε) for some ε>0. Such a scheme is useful when n is logarithmic in the security parameter, so that 2n is some large polynomial. Note that there is always a trivial obfuscator that outputs the entire truth table of the circuit C, which is of size 2n. Therefore, XiO is only required to do slightly better than the trivial construction, in that the size of the obfuscated circuit must be non-trivially smaller than the truth table. XiO together with the LWE assumption (assuming both satisfy sub-exponential security) imply full iO.
Functional Encodings
We define a variant of the “split FHE” primitive, which we call “functional encodings”. A functional encoding can be used to encode a value x∈{0,1 to get an encoding c=Enc(x; r), where r is the randomness of the encoding process. Later, for any function ƒ:{0,1→{0,1}m, we can create an opening d=Open(ƒ, x, r) for ƒ, which can be decoded to recover the function output Dec(ƒ, c, d)=ƒ(x). We require many-opening simulation based security: the encoding c=Enc(x; r) together with the many openings d1=Open(ƒ1, x, r), dQ=Open(ƒQ, x, r) can be simulated given only the functions ƒ1, . . . , ƒQ and the outputs ƒ1(x), . . . , ƒQ(x). In other words, nothing about the encoded value x is revealed beyond the function outputs ƒi(x) for which openings are given. So far, we can achieve this by simply setting the opening d to be the function output ƒ(x). The notion is made non-trivial, by additionally requiring succinctness: the size of the opening d is bounded by |d|=O(m1-ε) for some ε>0, and therefore the opening must be non-trivially smaller than the output size of the function. We do not impose any restrictions on the size of the encoding c, which may depend polynomially on m. Unfortunately, this definition is unachievable in the plain model, as can be shown via a simple incompressibility argument. Therefore, we consider functional encodings in the common reference string (CRS) model and only require many-opening simulation security for some a-priori bound Q on the number of opening (i.e., Q-opening security). We allow the CRS size, (but not the encoding size or the opening size) to grow polynomially with the bound Q.
XiO From Functional Encodings
We construct XiO from functional encodings. As a first step, we construct XiO in the CRS model. Let C:{0,1}n→{0,1} be a circuit of size that we want to obfuscate. We can partition the input domain {0,1}n of the circuit into Q=2n/m subsets Si, each containing |Si|=m inputs. We then define Q functions ƒi:{0,1→{0,1}m such that ƒi(C)=(C(x1), . . . , C(xm)) outputs the evaluations of C on all m inputs xj∈Si. Finally, we set the obfuscation of the circuit C to be
(Enc(C; r), Open(ƒ1, C, r), . . . , Open(ƒQ, C, r)), which is sufficient to recover the value of the circuit at all Q·m=2n possible inputs. By carefully balancing between m and Q=2n/m, we can ensure that the obfuscated circuit size is O(2n(1−ε)) for some constant ε>0, and therefore satisfies the non-triviality requirement of XiO. On a high level, we amortize the large size of the encoding across sufficiently many openings to ensure that the total size of the encoding and all the openings together is smaller than the total output size. (In detail, assume we start with a functional encoding where the encoding size is O(mα) and the opening size is O(m1-δ) for some constants α, δ>0, ignoring any other polynomial factors in the security parameter or the input size. The size of the obfuscated circuit above is then bounded by O(mα+Qm1-δ). By choosing m=2n(α+δ) and recalling Q=2n/m, the bound becomes O(2n(1−ε)) for ε=δ/(α+δ).) The above gives us XiO with a strong form of simulation-based security (the obfuscated circuit can be simulated given the truth table) in the CRS model, which also implies the standard indistinguishability-based security in the CRS model.
So far, we only got XiO in the CRS model, where the CRS size can be as large as poly(Q·m)=2O(n). As the second step, we show that XiO in the CRS model generically implies XiO in the plain model. A naive idea would be to simply make the CRS a part of the obfuscated program, but then we would lose succinctness, since the CRS is large. Instead, we repeat a variant of the previous trick to amortize the cost of the CRS. To obfuscate a circuit C:{0,1}n→{0,1}, we partition the domain {0,1}n into Q=2n/m subsets containing m=2n′ inputs each, and we define Q sub-circuits Ci:{0,1}n′{0,1}, each of which evaluates C on the m=2n′ inputs in the i′th subset. We then choose a single CRS for input size n′ and obfuscate all Q sub-circuits separately under this CRS; the final obfuscated circuit consists of the CRS and all the Q obfuscated sub-circuits. By carefully balancing between m=2n′ and Q=2n/m, in the same manner as previously, we can ensure that the total size of the final obfuscated circuit is O(2n(1−ε)) for some constant ε>0, and therefore the scheme satisfies the non-triviality requirement of XiO.
Constructing Functional Encodings
We now outline our construction of a functional encoding scheme. We start with a base scheme, which is insecure but serves as the basis of our eventual construction. We show that we can easily make it one-opening simulation secure under the LWE assumption, meaning that security holds in the special case where only a single opening is ever provided (i.e., Q=1). Then we show how to make it many-opening secure via oblivious LWE sampling. Concretely, we obtain a Q-opening secure functional encoding candidate for bounded-depth circuits ƒ: {0,1→{0,1}m with CRS size O(Q·m), encoding size O(m2) and opening size O(1), and where O(·) hides factors polynomial in the security parameter, input size , and circuit depth.
Base Scheme
Our construction of functional encodings is based on a variant of homomorphic encryption/commitment schemes. Given a commitment to an input x=(x1, . . . )∈{0,1, along with a circuit ƒ: {0,1→{0,1}m, this scheme allows us to homomorphically35 compute a commitment to the output y=ƒ(x). Our variant is designed to ensure that the opening for the output commitment is smaller than the output size m.
Given a public random matrix A∈qm×n where m>>n, we define a commitment C to an input x via
C=(AR1+x1G+E1, . . . ,A+G+E)
where Ri←qn×mlog q, Ei←χm×mlog q has its entries chosen from the error distribution χ, and G∈qm×mlog q is a gadget matrix. The parameters are notable. Namely, in our scheme A is a tall/thin matrix while in the prior schemes it is a short/fat matrix, we allow Ri to be uniformly random over the entire space while in the prior schemes it had small entries, and we need to add some error Ei that was not needed in the prior schemes. The commitment scheme is hiding by the LWE assumption. We can define the functional encoding Enc(x; r)=(A, C) to consist of the matrix A and the homomorphic commitment C, where r is all the randomness used to sample the above values.
Although we modified several key parameters, it turns out that the same homomorphic evaluation procedure there still applies to our modified scheme. In particular, given the commitment C to an input x and a boolean circuit ƒ:{0,1→{0,1}, we can homomorphically derive a commitment Cƒ=ARƒ+ƒ(x)G+Eƒ to the output ƒ(x). Furthermore, given a circuit ƒ: {0,1→{0,1}m with m bit output, we can apply the above procedure to get commitments to each of the output bits and “pack” them together to obtain a vector cƒ∈qm such that
where ƒ(x)∈{0,1}m is a column vector, rƒ∈qn, and of eƒ∈m is some small error term.
Now, observe that rƒ constitutes a succinct opening to ƒ(x), since |rƒ|<<|ƒ(x)| and rƒ allows us to easily recover ƒ(x) from cƒ by computing roundq/2(cƒ−A·rƒ). Furthermore, we can efficiently compute rƒ by applying a homomorphic computation on the opening of the input commitment, or alternately, we can sample A with a trapdoor and use the trapdoor to recover rƒ. Therefore, we can define the opening procedure of the functional encoding to output the value rƒ=Open(ƒ, x, r), and the decoding procedure can recover ƒ(x)=Dec(ƒ, (A, C), rƒ) by homomorphically computing cƒ and using rƒ to recover ƒ(x) as above. This gives us our base scheme (in the plain model), which has the correct syntax and succinctness properties. Unfortunately, the scheme so far does not satisfy even one-opening simulation security, since the opening rƒ (along with the error term of that it implicitly reveals) may leak additional information about x beyond ƒ(x).
One-Opening Security From LWE
We can modify the base scheme to get one-opening simulation security (still in the plain model). In particular, we augment the encoding by additionally including a single random LWE sample b=A·s+e inside it. We then add this LWE sample to cƒ to “randomize” it, and release dƒ:=rƒ+s as an opening to ƒ(x). Given the encoding (A, C, b) and the opening dƒ, we can decode ƒ(x) by homomorphically computing cf and outputting y=roundq/2(cƒ+b−A·dƒ). Correctness follows from the fact that cƒ+b≈A(rƒ+s)+ƒ(x)·q/2.
With the above modification, we can simulate an encoding/opening pair given only ƒ(x) without knowing x. Firstly, we can simulate the opening without knowing the randomness of the input commitments or the trapdoor for A. In particular, the simulator samples dƒ uniformly at random from qn, and then “programs” the value b as
The only difference in the distributions is that in the real case the error contained in the LWE sample b is e, while in the simulated case it is e−eƒ, but we can choose the error e to be large enough to “smudge out” this difference and ensure that the distributions are statistically close. Once we can simulate the opening without having the randomness of the input commitments or the trapdoor for A, we can rely on LWE to replace the input commitment to x with a commitment to a dummy value.
Many-Opening Security Via Oblivious LWE Sampling
We saw that we can upgrade the base scheme to get one-opening simulation security by adding a random LWE sample b=A·s+e to the encoding. We could easily extend the same idea to achieve Q-opening simulation security by adding Q samples bi=A·si+ei to the encoding. However, this would require the encoding size to grow with Q, which we cannot afford. So far, we have not relied on a CRS, and perhaps the next natural attempt would be to add the Q samples bi to the CRS of the scheme. Unfortunately, this also does not work, since the scheme needs to know the corresponding LWE secrets si to generate the openings, and we would not be able to derive them from the CRS.
Imagine that we had an oracle that took as input an arbitrary matrix A and would output Q random LWE samples bi=A·si+ei. Such an oracle would allow us to construct Q-opening simulation secure functional encodings. The encoding procedure would choose the matrix A with a trapdoor, call the oracle to get samples bi and use the trapdoor to recover the values si that it would use to generate the openings. The decoding procedure would get A and call the oracle to recover the samples bi needed to decode, but would not learn anything else. The simulator would be able to program the oracle and choose the values bi itself, which would allow us to prove security analogously to the one-opening setting. We define a cryptographic primitive called an “oblivious LWE sampler”, whose goal is to approximate the functionality of the above oracle in the standard model with a CRS. We can have several flavors of this notion, and we start by describing a strong flavor, which we then relax in various ways to get our actual definition.
Oblivious LWE Sampler (Strong Flavor)
A strong form of oblivious LWE sampling would consist of a deterministic sampling algorithm Sam that takes as input a long CRS along with a matrix A and outputs Q LWE samples bi=Sam(CRS, A, i) for i∈[Q]. The size of CRS can grow with Q and the CRS can potentially be chosen from some structured distribution, but it must be independent of A. We want to be able to arbitrarily “program” the outputs of the sampler by programming the CRS. In other words, there is a simulator Sim that gets A and Q random LWE samples {bi} as targets; it outputs a programmed string CRS←Sim(A, {bi}) that causes the sampler to output the target values bi=Sam(CRS, A, i). We want the real and the simulated CRS to be indistinguishable, even for a worst-case choice of A for which an adversary may know a trapdoor that allows it to recover the LWE secrets. This notion would directly plug in to our construction to get a many-opening secure functional encoding scheme in the CRS model. It turns out that this strong form of oblivious LWE sampling can be seen as a special case of invertible sampling (in the CRS model), and can be constructed from iO. Invertible sampling is also equivalent to pseudorandom encodings (with computational security in the CRS model), and we answer one of the main open problems posed by that work by showing that these notions provably imply iO under the LWE assumption. Unfortunately, we do not know how to heuristically instantiate this strong flavor of oblivious LWE sampling (without already having iO).
Oblivious LWE Sampler (Relaxed)
We relax the above strong notion in several ways. Firstly, we allow ourselves to “pre-process” the matrix A using some secret coins to generate a value pub←Init(A) that is given as an additional input to the sampler bi=Sam(CRS, pub, i). We only require that the size of pub is independent of the number of samples Q that will be generated. The simulator gets to program both CRS, pub to produce the desired outcome. Secondly, we relax the requirement that, by programming CRS, pub, the simulator can cause the sampler output arbitrary target values bi. Instead, we now give the simulator some target values {circumflex over (b)}i and the simulator is required to program (CRS, pub)←Sim(A, {circumflex over (b)}i) to ensure that the sampled values bi=Sam(CRSpub, i) satisfy bi={circumflex over (b)}i+bi for some LWE sample bi=A·{tilde over (s)}i+{tilde over (e)}i for which the simulator knows the corresponding secrets {tilde over (s)}i, {tilde over (e)}i. In other words, the produced samples bi need not exactly match the target values {umlaut over (b)}i given to the simulator, but the difference has to be an LWE sample {tilde over (b)}i for which the simulator can produce the corresponding secrets. Lastly, instead of requiring that the indistinguishability of the real and simulated (CRS, pub) holds even for a worst-case choice of A with a known trapdoor, we only require that it holds for a random A, but the adversary is additionally given the LWE secrets si contained in the sampled values bi=A·si+ei. In other words, we require that real/simulated distributions of (CRS, pub, {si}) are indistinguishable.
We show that this relaxed form of an oblivious LWE sampling suffices in our construction of functional encodings. Namely, we can simply add pub to the encoding of the functional encoding scheme, since it is short. In a proof, we can replace the real (CRS, pub) with a simulated one, using some random LWE tuples {umlaut over (b)}i as target values. Indistinguishability holds even given the LWE secrets si for the produced samples bi=Sam(CRS, pub, i), which are used to generate the openings of the functional encoding. The {circumflex over (b)}i component of the produced samples bi={circumflex over (b)}i+{tilde over (b)}i is sufficient to re-randomizes the output commitment cƒ, and the additional LWE sample {tilde over (b)}i that is added in does not hurt security, since we know the corresponding LWE secret {tilde over (s)}i and can use it to adjust the opening accordingly.
Constructing an Oblivious LWE Sampler
We give a heuristic construction of an oblivious LWE sampler, by relying on the same homomorphic commitments that we used to construct our base functional encoding scheme. The high level idea is to give out a commitment to a PRF key k and let the sampling algorithm homomorphically compute a pseudorandom LWE sample bprf:=A·sprf+eprf where sprf, eprf are sampled using randomness that comes from the PRF. The overall output of the sampler is a commitment to the above LWE sample, which is itself an LWE sample. While we do not know how to construct a simulator for this basic construction, we conjecture that it may already be sufficient to instantiate functional encodings (see Appendix 12). To allow the simulator to program the output, we augment the computation to incorporate the CRS. We give a more detailed description below.
The CRS is a uniformly random string, which we interpret as consisting of Q values CRSi∈qm. To generate pub, we sample a random key k for a pseudorandom function PRF(k,·) and set a flag bit β:=0. We creates a commitment C to the input (k,β) and we set the public value pub=(A, C). The algorithm bi=Sample(CRS, pub, i) performs a homomorphic computation of the function gi over the commitment C, where gi is defined as follows:
gi(k, β): Use PRF(k, i) to sample biprf:=A·siprf+eiprf and output b*i:=biprf+β·CRSi.
The output of this computation is a homomorphically evaluated commitment to b*i and has the form bi=A·sieval+eieval+b*i where sieval, eieval come from the homomorphic evaluation. Overall, the generated samples bi=Sample(CRS, pub, i) can be written as
b
i
=A·(sieval+iprf)+(eieval+eiprf)+β·CRSi
where siprf, eiprf come from the PRE output and sieval, eieval come from the homomorphic evaluation.
In the real scheme, the flag β is set to 0 and so each output of Sample is an LWE sample bi=A·(sieval+siprf)+(eieval+eiprf). In the simulation, the simulator gets some target values {circumflex over (b)}i and puts them in the CRS as CRSi:={circumflex over (b)}i. It sets the flag to β=1, which results in the output of Sample being bi=A·(sieval+siprf)+(eieval+eiprf)+{circumflex over (b)}i. Note that the simulator knows the PRF key k and the randomness of the homomorphic commitment, and therefore knows the values (sieval+siprf)+(eieval+eiprf). This means that the difference between the target values {circumflex over (b)}i and the output samples bi is an LWE tuple for which the simulator knows the corresponding secrets, as required.
Security Under a New Conjecture
We conjecture that the above construction is secure. In particular, we conjecture that the adversary cannot distinguish between β=0 and β=1 given the values:
(CRS={CRSi=Aŝi+êi}i∈[Q],pub=(A,C=Commit(k,β)),{si=sieval+siprf+βsi}e∈[Q])
We refer to this as the homomorphic pseudorandom LWE samples (HPLS) conjecture (see Conjecture 6.4 for a precise statement), and we argue heuristically why we believe it to hold. Since CRS, pub completely determine the values bi=A·si+ei, revealing si=sieval+iprf+βŝi also implicitly reveals ei=eieval+eiprf+βêi. We can think of the HPLS conjecture as consisting of two distinct heuristic components. The first component is to argue that the values si, ei look pseudorandom and independent of β given only (CRS, A), but without getting the commitment C. Intuitively, we believe this to hold since siprf, eiprf are provably pseudorandom (by the security of the PRF). Therefore, as long as we choose the noise eiprf to be large enough to “smudge out” êi, we can provably argue that siprf+βsi and eiprf+βêi are pseudorandom and independent of β. Unfortunately, this does not suffice—we still need to rely on a heuristic to ague that there are no computationally discernible correlations between these values and sieval, eieval respectively. We believe this should hold with most natural PRFs. Although the first component is already heuristic, there is hope to remove the heuristic nature of this component by explicitly analyzing the distributions sieval+siprf, eieval+eieval for a specific PRF, and leave this as a fascinating open problem for future work. The second heuristic component is to argue that security holds even in the presence of the commitment C. This part implicitly involves a circular security aspect between the pseudorandom function and the commitment. We'd like to argue that the PRF key k and the bit β are protected by the security of the commitment scheme, but we release si=sieval+siprf+βŝi, where sieval depends on the commitment randomness; nevertheless we'd like to argue that this does not hurt commitment security since the value sieval is masked by the PRF output, but this argument is circular since the PRF key is contained in the commitment. This circularity does not easily lend itself to a proof, and we see much less hope in removing the heuristic nature of the second component than the first. Still, this type of circularity also seems difficult to attack: one cannot easily break the security of the commitment without first breaking the security of the PRF and vice versa.
Simplified Construction
Other embodiments can include a simplified direct construction of functional encodings in the plain model that we conjecture to satisfy indistinguishability based security. The simplified construction does not go through the intermediate “oblivious LWE sampler” primitive. In contrast to our main construction, which is secure under a non-interactive assumption that two distributions are indistinguishable, the assumption that our simplified construction is secure and interactive.
Notations
We will denote by λ the security parameter. The notation negl(λ) denotes any function ƒ such that ƒ(λ)=λ−ω(1), and poly(λ) denotes any function ƒ such that ƒ(λ)=(λc) for some c>0. For a probabilistic algorithm alg(inputs), we might explicit the randomness it uses by writing alg(inputs; coins). We will denote vectors by bold lower case letters (e.g. a) and matrices by bold upper cases letters (e.g. A). We will denote by aT and AT the transposes of a and A, respectively. We will denote by [x] the nearest integer to x, rounding towards 0 for half-integers. If x is a vector, [x] will denote the rounded value applied component-wise. For integral vectors and matrices (i.e., those over ), we use the notation |r|, |R| to denote the maximum absolute value over all the entries.
We define the statistical distance between two random variables X and Y over some domain Ω as: SD(X, Y)=½Σw∈Ω|X(w)−Y(w)|. We say that two ensembles of random variables X={Xλ}, Y={Yλ} are statistically indistinguishable, denoted
if SD(Xλ, Yλ)≤negl(λ).
We say that two ensembles of random variables X={Xλ}, and Y={Yλ} are computationally indistinguishable, denoted
if, for all (non-uniform) PPT distinguishers Adv, we have |Pr[Adv(Xλ)=1]−Pr[Adv(Yλ)=1]|≤negl(λ). We also refer to sub-exponential security, meaning that there exists some ∈>0 such that the distinguishing advantage is at most 2−λ
Learning With Errors
Definition 2.1 (B-bounded distribution) We say that a distribution χ over is B-bounded if
Pr[χ∈[−B,B]]=1.
We recall the definition of the (decision) Learning with Errors problem.
Definition 2.2 ((Decision) Learning with Errors) Let n=n(λ) and q=q(λ) be integer parameters and Ψ=χ(λ) be a distribution over Z. The Learning with Errors (LWE) assumption LWEn,q,χ states that for all polynomials m=poly(λ) the following distributions are computationally indistinguishable:
where A←qm×m, s←qn, e←χm, u←qm.
We rely on LWE security with the following range of parameters. We assume that for any polynomial p=p(λ)=poly(λ) there exists some polynomial n=n(λ)=poly(λ), some q=q(λ)=2poly(λ) and some B=B(λ)-bounded distribution χ=χ(λ) such that q/B≥2p and the LWEn,q,χ assumption holds. Throughout the paper, the LWE assumption without further specification refers to the above parameters. The sub-exponentially secure LWE assumption further assumes that LWEn,q,χ with the above parameters is sub-exponentially secure, meaning that there exists some ε>0 such that the distinguishing advantage of any polynomial-time distinguisher is 2−λε.
The (sub-exponentially secure) LWE assumption with the above parameters follows from the worst-case (sub-exponential) quantum hardness SIVP and classical hardness of GapSVP with sub-exponential approximation factors.
Lattice Tools
Noise Smudging
Definition 2.3 (Noise Smudging) We say that a distribution χ over smudges out noise of size B if for any fixed γ∈[−B, B] the statistical distance between χ and χ+γ is 2−λ
We will use the following fact.
Lemma 2.4 (Smudging Lemma) Let B=B(λ), B′=B′(λ)∈ be parameters and and let U([−B, B]) be the uniform distribution over the integer interval [−B, B]. Then for any e∈[−B′, B′], the statistical distance between U([−B, B]) and U([−B, B])+e is B′/B.
Lemma 2.5 Assume that the LWEn,q,χ assumption holds for some B-bounded χ, and let B′ be some parameter. Then there exists a distributions {circumflex over (χ)} that is {circumflex over (B)}=B+2λB′ bounded such that LWEn,q,{circumflex over (χ)} holds and {circumflex over (χ)} smudges out noise of size B′.
Gadget Matrix
For an integer q≥2, define: g=(1, 2, ⋅, 2[log q]−1)∈q1×[log q]. The Gadget Matrix G is defined as G=g⊕In∈qn×m where n∈ and m=n[log q]. There exists an efficiently computable deterministic function G−1:qn→{0,1}m such for all u∈qn we have G·G−1(u)=u. We let G−1($) denote the distribution obtained by sampling u←qn uniformly at random and outputting t=G−1(u).
Lattice Trapdoors
We rely on the fact that we can sample a random LWE matrix A together with a trapdoor td that allows us to solve the LWE problem: given b=A·s+e for a sufficiently small e, we can use the trapdoor to recover s (and hence also e) from b.
Functional Encodings
Definition of Functional Encodings
A functional encoding scheme (in the CRS model) for the family, ={ƒ:{0,1←{0,1}m} of depth-t circuits consists of four PPT algorithms crsGen, Enc, Open, Dec where Open and Dec are deterministic, satisfying the following properties:
Syntax:
The algorithms have the following syntax:
Correctness:
Dec(ƒ,Enc(x,r),Open(ƒ,x,r))=ƒ(x)
Q-SIM Security: There exists a PPT simulator Sim such that the following distributions for all PPT adversaries and all x, ƒ1, . . . , ƒQ←(1λ), the following distributions of (CRS, C, d1, . . . , dQ) are computationally indistinguishable (even given x, ƒ1, . . . , ƒQ):
Real Distribution: CRS←crsGen(1λ, 1Q), C←Enc(CRS, x; r), di←Open(CRS, ƒi, i, x, r), i∈[Q].
Simulated Distribution: (CRS, C, d1, . . . , dQ)←Sim({ƒi, ƒi(x)}i∈Q).
Succinctness: There exists a constant ∈>0 such that, for CRS←crsGen(1λ, 1Q, ), C←Enc(CRS, x; r), d←Open(CRS, ƒ, i, x, r) we have:
|CRS|=poly(Q, λ, , m, t), |C|=poly(λ, , m, t), |d|=m1−∈poly(λ, , t).
In our discussion, we also refer to indistinguishability-based security, a relaxation of Q−SIM security:
Q−IND Security For all PPT adversaries and all x0, x1, ƒ1, . . . , ƒQ←(1λ) such that ƒi(x0)=ƒi(x1) for all i∈[Q], the following distributions of (CRS, C, d1, . . . , dQ) are computationally indistinguishable for β=0 and β=1:
CRS←crsGen(1λ, 1Q), C←Enc(CRS, xβ; r), di←Open(CRS, ƒi, i, xβ, r), i∈[Q]
Homomorphic Commitments with Short Openings
In this section, we describe a homomorphic commitment scheme with short openings.
Lemma 4.1 (Homomorphic computation on matrices) Fix parameters m, q, , Given a matrix C∈and a circuit ƒ: {0,1←{0,1} of depth t, we can efficiently compute a matrix Cƒ such that for all x∈{0,1, there exists a matrix Hc,ƒ,x∈with |Hc,ƒ,x|=mO(t) such that
(C−xT⊕G)·Hc,ƒ,x=Cƒ−ƒ(x)G
where G∈qm×mlog q is the gadget matrix. Moreover, HC,ƒ,x is efficiently computable given C, ƒ, x.
Using packing techniques, the above relation extends to circuits with m-bit output. Concretely, given a circuit ƒ:{0,1←{0,1}m of depth t, we can efficiently compute a vector cƒ such that for all x∈{0,1, there exists a vector HC,ƒ,x∈ with |hC,ƒ,x|=mO(t) such that
where ƒ(x)∈{0,1}m is a column vector. Concretely, let ƒ1, . . . , ƒm:{0,1}m←{0,1} denote the circuits computing the output bits of ƒ. Then, we have:
where 1j∈{0,1}m is the indicator column vector whose j′th entry is 1 and 0 everywhere else, so that ƒ(x)=Σj ƒi(x)·1j. Here, HC,ƒ,x is also efficiently computable given C, ƒ, x.
Construction 4.2 (homomorphic commitments pFHC) The commitment scheme pFHC (“packed fully homomorphic commitment”) is parameterized by m, and n, q, and is defined as follows.
Gen chooses a uniformly random matrix A←qn×n.
Com(A∈qm×n, x∈{0,1; R∈, E∈) outputs a commitment
C:=AR+x
T
⊕G+E∈
.
Here, R←, E←
Eval(ƒ:{0,1←{0,1}m, C∈) for a boolean circuit ƒ:{0,1←{0,1}m, deterministically outputs a (column) vector cƒ∈qm. Here, cƒ is the same as that given above.
Evalopen(ƒ, A∈qm×n, x∈{0,1, R∈, E∈): deterministically outputs (column) vectors rƒ∈qn, eƒ∈qm.
Lemma 4.3 The above commitment scheme pFHC satisfies the following properties:
satisfies
where ƒ(X)∈{0,1}m is a column vector and |eƒ|=|E|·mO(t).
Privacy. Under the LWE assumption, for all x∈{0,1, we have:
A, Com(A, x)≈c A, Com(A, 0)
Handling ƒ:{0,1←qm.
Next, we observe that we can also augment pFHC with a pair of algorithms Evalq, Evalopenq to support bounded-depth circuits ƒ:{0,1←qm). That is,
Correctness II. For any boolean circuit ƒ:{0,1←qm of depth t, any x∈{0,1, any A∈qm×n, R∈, E∈, we have
C:=Com(A,x;R,E),cƒ:=Evalq(ƒ,C),(rƒ,eƒ):=Evalopenq(ƒ,A,x,R,E)
satisfies
c
ƒ
=Ar
ƒ+ƒ(x)+eƒ∈qm
where ƒ(x)∈qm is a column vector and |eƒ|=|E|·mO(t).
Concretely, let ƒ1, . . . , ƒmlog q: {0,1}m←{0,1} denote the circuits computing the output of ƒ interpreted as bits. Then, we have:
c
ƒ=Σj=1mlog qCƒ
h
C,ƒ,x=Σj=1mlog qHC,ƒ
1-SIM Functional Encoding from LWE
We construct a 1-SIM functional encoding scheme for bounded-depth circuits based on the LWE assumption. We provide a more direct construction that avoids key-switching.
Construction 5.1
Enc(x; A, R, E, s, e). Sample
A←qm×n, R←, E←, s←qn, e←{circumflex over (χ)}m
Compute
C:=pFHC·Com(A,x;R,E),b:=As+e
and output
(A, C, b)
Open(ƒ, x; A, R, E, s, e): Compute (rƒ, eƒ):=pFHC. Evalopen(ƒ, A, x, R, E) and output
d:=r
ƒ
+s∈
q
n
Dec(ƒ, (A, C, b), d): Compute cƒ:=pFHC. Eval(ƒ, C) and output
roundq/2(cƒ+b−Ad)∈{0,1}m
where roundq/2:qm→{0,1}m is coordinate-wise rounding to the nearest multiple of q/2.
Parameters. Here, χ is B-bounded, and {circumflex over (χ)} is {circumflex over (B)}-bounded. The choice of n, q, χ, B comes from the LWE assumption subject to
n=poly(t, λ), {circumflex over (B)}=B·mO(t)·2λ, q=B·2λ=B·mO(t)·22λ
We choose {circumflex over (χ)} to smudge out noise of size B·mO(t) and rely on Lemma 2.5. In particular, this guarantees that the size of the encoding/opening is bounded by
|C|=O(m2 log q)=Õ(m2),|d|=O(n log q)=Õ(m)
where Õ(·) hides poly(λ, t, log m) factors.
Oblivious Sampling From Falsifiable Assumption
Oblivious LWE sampling allows us to compute Q seemingly random LWE samples bi=Asi+ei relative to some LWE matrix A, by applying some deterministic function to a long CRS that is independent of A along with a short public value pub that can depend on A but whose length is independent of Q. We require that there is a simulator that can indistinguishably program CRS, pub to ensures that the resulting samples bi “almost match” some arbitrary LWE samples {circumflex over (b)}i given to the simulator as inputs. Ideally, the simulator could ensure that bi={circumflex over (b)}i match exactly. However, we relax this and only require the simulator to ensure that bi={circumflex over (b)}i+{tilde over (b)}i for some LWE sample {tilde over (b)}i=A{tilde over (s)}i+{tilde over (e)}i for which the simulator knows the corresponding secret {tilde over (s)}i. Note that the simulator does not get the secrets ŝi for the target values {circumflex over (b)}i=Aŝi+êi, but indistinguishability should hold even for a distinguisher that gets the secrets si for the output samples bi=Asi+ei. We show in Appendix 10 that we can construct a strong form of oblivious sampling using the notion of invertible sampling (in the CRS model), which can be constructed from iO. This highlights that the notion is plausibly achievable. We then give a heuristic constructions of oblivious LWE sampling using LWE-style techniques and heuristically argue that security holds under a new falsifiable assumption.
Definition of Oblivious Sampling
An oblivious LWE sampler consists of four PPT algorithms: CRS←crsGen(1λ, 1Q), pub←Init(A), bi=Sample(CRS, pub, i) and (CRS, pub, {{tilde over (s)}i}i∈[Q])←Sim(1λ, 1Q), A, {{circumflex over (b)}i}i∈[Q]). The Sample algorithm is required to be deterministic while the others are randomized.
Definition 6.1 An (n, m, {circumflex over (χ)}, BOLWE) oblivious LWE sampler satisfies the following properties:
Let Q=Q(λ) be some polynomial. Let (A, td)←TrapGen(1n, 1m, q), CRS←crsGen(1λ, 1Q), pub←Init(A). Then, with overwhelming probability over the above values, for all i∈[Q] there exists some si∈qn and ei∈qm with ∥ei∥∞≤BOLWE such that bi=Asi+ei.
The following distributions of (CRS, A, pub, {si}i∈[Q]) are computationally indistinguishable:
Real Distribution: Sample (A, td)←TrapGen(1n, 1m, q), CRS←crsGen(1λ, 1Q), pub←Init(A). For i∈[Q] set bi=Sample(CRS, pub, i), si=LWESolvetd(bi). Output (CRS, A, pub, {si}i∈[Q]).
Simulated Distribution: Sample (A, td)←TrapGen(1n, 1m, q), ŝi←qn, êi←{circumflex over (χ)}m and let {circumflex over (b)}i=Aŝi+êi. Sample (CRS, pub, {{tilde over (s)}i}i∈[Q])←Sim(1λ, 1Q, A, {{circumflex over (b)}i}i∈[Q]) and let si=ŝi+{tilde over (s)}i. Output (CRS, A, pub, {si}i∈[Q]).
Observe that the algorithm pub←Init(A) in the above definition does not get Q as an input and therefore the size of pub is independent of Q. On the other hand, the algorithm CRS←crsGen(1λ, 1Q) does not get A as an input and hence CRS must be independent of A. This is crucial and otherwise there would be a trivial construction where either CRS or pub would consist of Q LWE samples with respect to A.
Note that the security property implicitly also guarantees the following correctness property of the simulated distribution. Assume we simulate the values (CRS, A, pub, {{tilde over (s)}i}i∈[Q])←Sim(1λ, 1Q, A, {{circumflex over (b)}i}i∈[Q]) where the simulator is given LWE samples {circumflex over (b)}i=Aŝi+êi as input. Then the resulting (CRS, A, pub) will generate samples bi=Sample(CRS, pub, i) of the form bi={circumflex over (b)}i+{tilde over (b)}i where {tilde over (b)}i=A{tilde over (s)}i+{tilde over (e)}i some small {tilde over (e)}i. This is because, in the simulation, we must have bi=Asi+ei where ∥ei∥∞≤B as otherwise it would be trivial to distinguish the simulation from the real case. But si=ŝi+{tilde over (s)}i and so ei=êi+{tilde over (e)}i. This implies {tilde over (e)}i=ei−êi will be small.
Heuristic Construction
We now give our heuristic construction of an oblivious LWE sampler. Let n, m, q be some parameters and χ, χprf, {circumflex over (χ)} be distributions over that are B, Bprf, {circumflex over (B)} bounded respectively. Let D be an algorithms that samples tuples (s, e) where s←qn and e←χprfm. Assume that D uses ν random coins, and for r∈{0,1}ν define (s, e)=D(r) to be the output of D with randomness r. Let PRF:{0,1}λ×{0,1}*←{0,1}ν be a pseudorandom function. We rely on the homomorphic commitment algorithms Corn, Evalq, Evalopenq with parameters n, m, q, χ described above.
Construction 6.3 We define the oblivious LWE sampler as follows:
CRS←crsGen(1λ, 1Q):CRS:=(CRS1, . . . , CRSQ) where CRSi←qm.
pub←Init(A): Sample a PRE key k←{0,1}λ and set a flag β:=0. Set pub:=(A, C) where C←Com(A, (k, β)).
bi=Sample(CRS, pub, i): Let gi,CRS
g
i,CRS
,A(k,β):Let(siprf,eiprf)=
D(PRF(k,i))·OutputA siprf+eiprf+β·CRSi.
Output bi=Evalq(gi,CRS
(CRS, pub, {{tilde over (s)}i}i∈[Q])←Sim(1λ, 1Q, A, {{circumflex over (b)}i}i∈[Q]):Set CRS:=({circumflex over (b)}i, . . . , {circumflex over (b)}Q). Set the flag β:=1 and pub:=(A, C) for C=Com((k, β); R, E) where R, E is the randomness of the commitment. Let (rieval, eieval)=Evalopenq(gi,CRS
Form of Samples bi.
Let us examine this construction in more detail and see what the samples bi look like.
In the real case, where pub←Init(A), we have pub=(A, C) where C=Com(A, (k, 0); (R, E)). For bi=Sample (CRS, pub, i) we can write
where (siprf, eiprf)=D(PRF(k, i)) are sampled using the PRF and (rieval, eieval)=Evalopenq (gi, A, (k, 0), R, E) come from the homomorphic evaluation.
In the simulated case, where CRS, pub are chosen by the simulator, we have pub=(A, C) where C=Com(A, (k, 1); (R, E)) and CRSi={circumflex over (b)}i=Aŝi+êi. For bi=Sample(CRS, pub, i) we can write
where (siprf, eiprf)=D(PRF(k, i)) are sampled using the PRF and (rieval, eieval)=Evalopenq (gi,CRS
Correctness
Equation A above implies that the scheme satisfies the correctness of an n, m, q, {circumflex over (χ)}, BOLWE oblivious LWE sampler, where BOLWE is a bound ∥ei∥∞. In particular, B≤Bprf+B·mO(t), where t is the depth of the circuit gi,CRS
Security Under a New Conjecture
The security of our heuristic oblivious sampler boils down to the indistinguishability of the real and simulated distributions, which is captured by the following conjecture:
Conjecture 6.4 (HPLS Conjecture) For β∈{0,1}, let us define the distribution DIST(β) over
({{circumflex over (b)}i=Aŝi+êi}i∈[Q],A,C,{si=rieval+siprf+β·ŝi}i∈[Q])
where
A←qm×n, ŝi←qn, êi←χm, {circumflex over (b)}i:=Aŝi+êi.
k←{0,1}λ, (C=A·R+E+(k, β)⊕G)←Com(A, (k, β); (R, E))
(siprf, eiprf):=D(PRF(k, i), (rieval, eieval):=Evalopenq(qi,{circumflex over (b)}
g
i,{circumflex over (b)}
,A(k,β):Let(siprf,eiprf)=
D(PRF(k,i))·OutputA siprf+eiprf+β·bi.
si:=(rieval+siprf+β·ŝi).
The (sub-exponential) homomorphic pseudorandom LWE samples (HPLS) conjecture with parameters (n, m, q, χ, {circumflex over (χ)}, χprf) and pseudodrandom function PRF says that the distributions DIST(0) and DIST(1) are (sub-exponentially) computationally indistinguishable.
When we do not specify parameters, we assume the conjecture holds for some choice of PRF and any choices of n, q, χ, {circumflex over (χ)} and any polynomial m, such that LWEn,q,χ and LWEn,q,χ assumptions hold and χprf smudges out error of size {circumflex over (B)}+B·mO(t), where t is the depth of the circuit gi,CRS
Q-SIM Functional Encodings From Oblivious Sampling
We construct a Q-SIM functional encoding scheme (crsGen, Enc, Open, Dec) for bounded-depth circuits from LWE and an oblivious LWE sampler (OLWE. crsGen, Init, Sample).
Construction 7.1
crsGen(1λ, 1Q, ). Output OLWE. crsGen(1λ, 1Q).
Enc(CRS, x): Sample
(A, td)←TrapGen(1n, 1m, q), pub←Init(CRS, A), R←, E←
Compute
C:=pFHC. Com(A, x; R, E)
and output
(pub, A, C)
Open(ƒi, x): Compute
(rƒ
and output
d
i
:=r
ƒ
+s
i∈qn
Dec(ƒi, (pub, A, C), di): Compute
Cƒ
and output
yi:=roundq/2(cƒ
Parameters
We rely on the n, q, χ LWE assumption, where χ is B-bounded. We rely on an (n, m, q, {circumflex over (χ)}, BOLWE) oblivious sampler where {circumflex over (χ)} is some distribution that smudges out error of size BmO(t); relying on Lemma 2.5, we can assume {circumflex over (χ)} is {circumflex over (B)} bounded for {circumflex over (B)}=B·mO(t)·2λ. We assume that BOLWE=2p(λ){circumflex over (B)} for some polynomial p(λ). We need BOLWE+BmO(t)≤q/4. This is guaranteed by our heuristic construction.
In particular, we can set
n=poly(t, Δ), {circumflex over (B)}=B·mO(t)·2λ, q=(BOLWE+B·mO(t))·2λ=2p(λ)+λB·mO(t)
In particular, this guarantees that the size of the encoding/opening is bounded by
|C|=O(m2 log q)=Õ(m2),|d|=O(n log q)=Õ(m)
where Õ(·) hides poly(λ, t, log m) factors.
Under the LWE assumption and the existence of a (n, m, q, χ, B) oblivious LWE sampler, the construction above is a Q-SIM functional encoding.
10 from Functional Encodings
Definition 8.1 (XiO) A pair of algorithms (XiO, Eval) is an exponentially efficient indistinguishability obfuscator (XiO) scheme if it satisfies the following:
Correctness: For all circuits C:{0,1}n→{0,1} and for all inputs x∈{0,1}n we have Pr[Eval({tilde over (C)}, x)=C(x):{tilde over (C)}←XiO(1λ, C)]=1.
(Sub-Eponential) Security: Let {Cλ0}, {Cλ1} be two circuit ensembles such that Cλ0, Cλ1 have the same input size, circuit size, and compute the same function. Furthermore, the input size is logarithmic n=O(log λ). Then we require that the distributions XiO(1λ, Cλ0) and XiO(1λ, Cλ1) are (sub-exponentially) computationally indistinguishable.
Efficiency: For a circuit C:{0,1}n→{0,1} with input length n and size s:
The run-time of the obfuscation algorithm XiO(1λ, C) is poly(2n, λ, s).
There is some constant ε>0 such that the size of the obfuscated circuit outputted by XiO(1λ, C) is 2n(1−ε)poly(λ, s).
The run-time of Eval is polynomial in its input size, meaning poly(2n, λ, s).
XiO+LWE implies iO.
XiO With CRS
We also consider XiO in the common reference string (CRS) model where the scheme is initiated by generating a CRS←crsGen(1λ, 1n, 1s) that depends on the input length n and the circuit size s. The algorithm {tilde over (C)}←XiO(1λ, CRS, C) nand Eval(CRS, {tilde over (C)}, x) now both take CRS as an input. The security property needs to hold even if the the distinguisher is given the CRS. For efficiency, in addition to the requirements we had previously, we also require that the run-time of crsGen and its output size are bounded by poly(2n, λ, s).
From CRS to Plain Model XiO
Assume (crsGen, XiO, Eval) is an XiO scheme in the CRS model. We define an XiO scheme (XiO′, Eval′) in the plain model. The scheme is defined as follows:
On input a circuit C:{0,1}n→{0,1} as a circuit with input length n and size |C|=s.
Let n1, n2 be parameters (defined later) such that n1+n2=n and let Q:=2n
Define Q=2n
Sample CRS←crsGen(1λ, 1n
Define {tilde over (C)}=(CRS, {{tilde over (C)}i}i∈[Q]).
Eval′({tilde over (C)}, x):Parse x=(i, x′)∈{0,1}n
We know that the length of the CRS←crsGen(1λ, 1n, 1s) is at most poly(2n, λ, s)≤2α·npoly(λ, s) for some constant α and the size of the obfuscated circuit outputted by XiO(1λ, CRS, C) is 2n(1−ε)poly(λ, s) for some ε>0. Set n2=n/(α+ε) and n1=n−n2 in the above construction.
From Functional Encodings to XiO with CRS
Assume that (crsGen, Corn, Open, Dec) is a functional encoding scheme. We define (crsGen′, XiO, Eval) to be an XiO scheme in the CRS model. Given n, we define n1, n2 to be parameters (that we set later) such that n1+n2=n and let Q:=2n
crsGen(1λ, 1n, 1s): Output CRS←crsGen(1λ, 1Q, ) where t=poly(s) is an upper bound on the size (and depth) of the universal circuit that evaluates a circuit of size s and =s.
XiO(1λ, CRS, C): Compute c←Com(CRS, C; r). For i∈[Q], define the functions ƒi:{0,1}s←{0,1}m such that ƒi(C)=(C(i∥1), . . . , C(i∥m)) where we identify [Q] with {0,1}n
Eval(CRS, {tilde over (C)}, x): Parse x=(i, j)∈[Q]×[m]. Compute y=Dec(CRS, ƒ1, i, c, di). Output the j′th bit of y.
We consider a succinct functional encoding where, for CRS←crsGen(1λ, 1Q, ), the size of the CRS is poly(λ, Q, , m, t), the length of C←Com(CRS, x; r) is at most mαpoly(λ, t, ) for some constant α, and that the size of the opening di=Open(CRS, ƒ, i, C, r) is 2m(1−ε)poly(λ, t, ) for some ε>0. Set n2=n/(α+ε) and n1=n−n2 in the above construction.
Hardware Overview
With reference to
With reference to
Computer system 500 may include one or more processors (also called central processing units, processing devices, or CPUs), such as a processor 504. Processor 504 may be connected to a communication infrastructure 506 (e.g., such as a bus).
Computer system 500 may also include user input/output device(s) 503, such as monitors, keyboards, pointing devices, etc., which may communicate with communication infrastructure 506 through user input/output interface(s) 502. One or more of processors 504 may be a graphics processing unit (GPU). In an embodiment, a GPU may be a processor that is a specialized electronic circuit designed to process mathematically intensive applications. The GPU may have a parallel structure that is efficient for parallel processing of large blocks of data, such as mathematically intensive data common to computer graphics applications, images, videos, etc.
Computer system 500 may also include a main memory 508, such as random-access memory (RAM). Main memory 508 may include one or more levels of cache. Main memory 508 may have stored therein control logic (i.e., computer software, instructions, etc.) and/or data. Computer system 500 may also include one or more secondary storage devices or secondary memory 510. Secondary memory 510 may include, for example, a hard disk drive 512 and/or a removable storage device or removable storage drive 514. Removable storage drive 514 may interact with a removable storage unit 518. Removable storage unit 518 may include a computer-usable or readable storage device having stored thereon computer software (control logic) and/or data. Removable storage drive 514 may read from and/or write to removable storage unit 518.
Secondary memory 510 may include other means, devices, components, instrumentalities, or other approaches for allowing computer programs and/or other instructions and/or data to be accessed by computer system 500. Such means, devices, components, instrumentalities, or other approaches may include, for example, a removable storage unit 522 and an interface 520. Examples of the removable storage unit 522 and the interface 520 may include a program cartridge and cartridge interface, a removable memory chip (such as an EPROM or PROM) and associated socket, a memory stick and USB port, a memory card and associated memory card slot, and/or any other removable storage unit and associated interface.
Computer system 500 may further include communications interface 524 (e.g., network interface). Communications interface 524 may enable computer system 500 to communicate and interact with any combination of external devices, external networks, external entities, etc. (individually and collectively referenced as remote device(s), network(s), entity(ies) 528). For example, communications interface 524 may allow computer system 500 to communicate with external or remote device(s), network(s), entity(ies) 528 over communications path 526, which may be wired and/or wireless (or a combination thereof), and which may include any combination of LANs, WANs, the Internet, etc. Control logic and/or data may be transmitted to and from computer system 500 via communications path 526.
Computer system 500 may also be any of a personal digital assistant (PDA), desktop workstation, laptop or notebook computer, netbook, tablet, smartphone, smartwatch or other wearable devices, appliance, part of the Internet-of-Things, and/or embedded system, to name a few non-limiting examples, or any combination thereof.
Computer system 500 may be a client or server computing device, accessing or hosting any applications and/or data through any delivery paradigm, including but not limited to remote or distributed cloud computing solutions; local or on-premises software (“on-premise” cloud-based solutions); “as a service” models (e.g., content as a service (CaaS), digital content as a service (DCaaS), software as a service (SaaS), managed software as a service (MSaaS), platform as a service (PaaS), desktop as a service (DaaS), framework as a service (FaaS), backend as a service (BaaS), mobile backend as a service (MBaaS), infrastructure as a service (laaS), etc.); and/or a hybrid model including any combination of the foregoing examples or other services or delivery paradigms.
The machine may be a personal computer (PC), a tablet PC, a set-top box (STB), a Personal Digital Assistant (PDA), a cellular telephone, a web appliance, a server, a network router, a switch or bridge, a specialized application or network security appliance or device, or any machine capable of executing a set of instructions (sequential or otherwise) that specify actions to be taken by that machine. Further, while a single machine is illustrated, the term “machine” shall also be taken to include any collection of machines that individually or jointly execute a set (or multiple sets) of instructions to perform any one or more of the methodologies discussed herein.
The example computer system 900 includes a processing device 902, a main memory 904 (e.g., read-only memory (ROM), flash memory, dynamic random-access memory (DRAM) such as synchronous DRAM (SDRAM), etc.), a static memory 906 (e.g., flash memory, static random-access memory (SRAM), etc.), and a data storage device 918, which communicate with each other via a bus 930.
Processing device 902 represents one or more processing devices such as a microprocessor, a central processing unit, or the like. More particularly, the processing device may be complex instruction set computing (CISC) microprocessor, reduced instruction set computing (RISC) microprocessor, very long instruction word (VLIW) microprocessor, or processor implementing other instruction sets, or processors implementing a combination of instruction sets. Processing device 902 may also be one or more special-purpose processing devices such as an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a digital signal processor (DSP), network processor, or the like. The processing device 902 is configured to execute instructions 926 for performing the operations and steps discussed herein.
The computer system 900 may further include a network interface device 908 to communicate over the network 920. The computer system 900 also may include a video display unit 910, an alphanumeric input device 912 (e.g., a keyboard), a cursor control device 914 (e.g., a mouse), a graphics processing unit 922, a signal generation device 916 (e.g., a speaker), graphics processing unit 922, video processing unit 928, and audio processing unit 932.
The data storage device 918 may include a machine-readable medium 924 (also known as a computer-readable storage medium) on which is stored one or more sets of instructions 926 (e.g., software instructions) embodying any one or more of the operations described herein. The instructions 926 may also reside, completely or at least partially, within the main memory 904 and/or within the processing device 902 during execution thereof by the computer system 900, where the main memory 904 and the processing device 902 also constitute machine-readable storage media.
In an example, the instructions 926 include instructions to implement operations and functionality corresponding to the disclosed subject matter. While the machine-readable storage medium 924 is shown in an example implementation to be a single medium, the term “machine-readable storage medium” should be taken to include a single medium or multiple media (e.g., a centralized or distributed database, and/or associated caches and servers) that store the one or more sets of instructions 926. The term “machine-readable storage medium” shall also be taken to include any medium that is capable of storing or encoding a set of instructions 926 for execution by the machine and that cause the machine to perform any one or more of the operations of the present disclosure. The term “machine-readable storage medium” shall accordingly be taken to include, but is not be limited to, solid-state memories, optical media, and magnetic media.
Some portions of the detailed description have been presented in terms of algorithms and symbolic representations of operations on data bits within a computer memory. These algorithmic descriptions and representations are the ways used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. An algorithm is here, and generally, conceived to be a self-consistent sequence of operations leading to a desired result. The operations are those requiring physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, combined, compared, and otherwise manipulated. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like.
It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise as apparent from the above discussion, it is appreciated that throughout the description, discussions utilizing terms such as “identifying” or “determining” or “executing” or “performing” or “collecting” or “creating” or “sending” or the like, refer to the action and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage devices.
The present disclosure also relates to an apparatus for performing the operations herein. This apparatus may be specially constructed for the intended purposes, or it may comprise a computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program may be stored in a computer-readable storage medium, such as but not limited to, any type of disk including floppy disks, optical disks, CD-ROMs, and magnetic-optical disks, read-only memories (ROMs), random access memories (RAMs), EPROMs, EEPROMs, magnetic or optical cards, or any type of media suitable for storing electronic instructions, each coupled to a computer system bus.
The operations and illustrations presented herein are not inherently related to any particular computer or other apparatus. Various types of systems may be used with programs in accordance with the teachings herein, or it may prove convenient to construct a more specialized apparatus to perform the operations. The structure for a variety of these systems will appear as set forth in the description herein. In addition, the present disclosure is not described with reference to any particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of the disclosure as described herein.
The present disclosure may be provided as a computer program product, or software, that may include a machine-readable medium having stored thereon instructions, which may be used to program a computer system (or other electronic devices) to perform a process according to the present disclosure. A machine-readable medium includes any mechanism for storing information in a form readable by a machine (e.g., a computer). For example, a machine-readable (e.g., computer-readable) medium includes a machine (e.g., a computer) readable storage medium such as read-only memory (“ROM”), random access memory (“RAM”), magnetic disk storage media, optical storage media, flash memory devices, etc.
In some embodiments, a tangible, non-transitory apparatus or article of manufacture comprising a tangible, non-transitory computer useable or readable medium having control logic (software) stored thereon may also be referred to herein as a computer program product or program storage device. This includes, but is not limited to, computer system 500, main memory 508, secondary memory 510, and removable storage units 518 and 522, as well as tangible articles of manufacture embodying any combination of the foregoing. Such control logic, when executed by one or more data processing devices (such as computer system 500), may cause such data processing devices to operate as described herein.
Based on the teachings contained in this disclosure, it will be apparent to persons skilled in the relevant art(s) how to make and use embodiments of this disclosure using data processing devices, computer systems, and/or computer architectures other than that shown in
It is to be appreciated that the Detailed Description section, and not any other section, is intended to be used to interpret the claims. Other sections can set forth one or more but not all exemplary embodiments as contemplated by the inventor(s), and thus, are not intended to limit this disclosure or the appended claims in any way.
While this disclosure describes exemplary embodiments for exemplary fields and applications, it should be understood that the disclosure is not limited thereto. Other embodiments and modifications thereto are possible and are within the scope and spirit of this disclosure. For example, and without limiting the generality of this paragraph, embodiments are not limited to the software, hardware, firmware, and/or entities illustrated in the figures described herein. Further, embodiments (whether or not explicitly described herein) have significant utility to fields and applications beyond the examples described herein.
Embodiments have been described herein with the aid of functional building blocks illustrating the implementation of specified functions and relationships thereof. The boundaries of these functional building blocks have been arbitrarily defined herein for the convenience of the description. Alternate boundaries can be defined as long as the specified functions and relationships (or equivalents thereof) are appropriately performed. Also, alternative embodiments can perform functional blocks, steps, operations, methods, etc. using orderings different than those described herein.
References herein to “one embodiment,” “an embodiment,” “an example embodiment,” or similar phrases, indicate that the embodiment described can include a particular feature, structure, or characteristic, but every embodiment may not necessarily include the particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with an embodiment, it would be within the knowledge of persons skilled in the relevant art(s) to incorporate such feature, structure, or characteristic into other embodiments whether or not explicitly mentioned or described herein. Additionally, some embodiments can be described using the expression “coupled” and “connected” along with their derivatives. These terms are not necessarily intended as synonyms for each other. For example, some embodiments can be described using the terms “connected” and/or “coupled” to indicate that two or more elements are in direct physical or electrical contact with each other. The term “coupled,” however, can also mean that two or more elements are not in direct contact with each other, but yet still co-operate or interact with each other.
The breadth and scope of this disclosure should not be limited by any of the above-described exemplary embodiments but should be defined only in accordance with the following claims and their equivalents. In the foregoing specification, implementations of the disclosure have been described with reference to specific example implementations thereof. It will be evident that various modifications may be made thereto without departing from the broader spirit and scope of implementations of the disclosure as set forth in the following claims. The specification and drawings are, accordingly, to be regarded in an illustrative sense rather than a restrictive sense.
This application claims the benefit of U.S. Provisional Application No. 63/071,348, filed Aug. 27, 2020, the entire contents of which are incorporated herein by reference.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/US2021/047785 | 8/26/2021 | WO |
Number | Date | Country | |
---|---|---|---|
63071348 | Aug 2020 | US |