1. Field of the Invention
The present patent document relates generally to verificatio of data returned in a search query and more particularly to a method of system for verifying the results of a search query performed on a finite set of data stored on an untrusted server.
2. Background of the Related Art
Providing integrity guarantees in third-party data management settings is an active area of research, especially in view of the growth in usage of cloud computing. In such settings, verifying the correctness of outsourced computations performed over remotely stored data becomes a crucial property for the trustworthiness of cloud services. Such a verificatio process should incur minimal overheads to the clients or otherwise the benefit of computation outsourcing are dismissed; ideally, computations should be verifie without having to locally rerun them or to utilize too much extra cloud storage.
In this paper, we study the verificatio of outsourced operations on general sets and consider the following problem. Assuming that a dynamic collection of m sets S1, S2, . . . , Sm is remotely stored at an untrusted server, we wish to publicly verify basic operations on these sets, such as intersection, union and set difference. For example, for an intersection query of t sets specifie by indices 1≦i1, i2, . . . , it≦m, we aim at designing techniques that allow any client to cryptographically check the correctness of the returned answer I=Si
Relation to verifiable computing. Recent works on verifiable computing [1, 12, 16] achieve operation-sensitive verificatio of general functionalities, thus covering set operations as a special case. Although such approaches clearly meet our goal with respect to optimal verifiabilit, they are inherently inadequate to meet our other goals with respect to public verifiability and dynamic updates, both important properties in the context of outsourced data querying. Indeed, to outsource the computation as an encrypted circuit, the works in [1, 12, 16] make use of some secret information which is also used by the verificatio algorithm, thus effectively supporting only one verifier instead, we seek for schemes that allow any client (knowing only a public key) to query the set collection and verify the returned results. Also, the description of the circuit in these works is fi ed at the initialization of the scheme, thus effectively supporting no updates in the outsourced data; instead, we seek for schemes that are dynamic. In other scenarios, but still in the secret-key setting, protocols for general functionalities and polynomial evaluation have recently been proposed in [11] and [6] respectively.
Aiming at both publicly verifiabl and dynamic solutions, we study set-operation verificatio in the model of authenticated data structures (ADSs). A typical setting in this model, usually referred to as the three-party model [36], involves protocols executed by three participating entities. A trusted party, called source, owns a data structure (here, a collection of sets) that is replicated along with some cryptographic information to one or more untrusted parties, called servers. Accordingly, clients issue data-structure queries to the servers and are able to verify the correctness of the returned answers, based only on knowledge of public information which includes a public key and a digest produced by the source (e.g., the root hash of a Merkle tree, see FIG. 10).1 Updates on the data structure are performed by the source and appropriately propagated by the servers. Variations of this model include: (i) a two-party variant (e.g., [30]), where the source keeps only a small state (i.e., only a digest) and performs both the updates/queries and the verifications this model is directly comparable to the model of verifiabl computing; (ii) the memory checking model [7], where read/write operations on an array of memory cells is verified—h wever, the absence of the notion of proof computation in memory checking (the server is just a storage device) as well as the feature of public verifiabilit in authenticated data structures make the two models fundamentally different2. 1 Conveying the trust clients have in the source, the authentic digest is assumed to be publicly available; in practice, a time-stamped and digitally signed digest is outsourced to the server.2 Indeed, memory checking might require secret memory, e.g., as in the PRF construction in [7].
Achieving operation-sensitive verification. In this work, we design authenticated data structures for the verificatio of set operations in an operation-sensitive manner, where the proof and verificatio complexity depends only on the description and outcome of the operation and not on the size of the involved sets. Conceptually, this property is similar to the property of super-efficient verification that has been studied in certifying algorithms [21] and certificatio data structures [19, 37], which is achieved as well as in the context of verifiabl computing [1, 12, 16], where an answer can be verifie with complexity asymptotically less than the complexity required to produce it. Whether the above optimality property is achievable for set operations (while keeping storage linear) was posed as an open problem in [23]. We close this problem in the affirmat ve.
All existing schemes for set-operation verificatio fall into the following two rather straightforward and highly inefficien solutions. Either short proofs for the answer of every possible set-operation query are precomputed allowing for optimal verificatio at the client at the cost of exponential storage and update overheads at the source and the server—an undesirable trade-off, as it is against storage outsourcing. Or integrity proofs for all the elements of the sets involved in the query are given to the client who locally verifie the query result: in this case the verificatio complexity can be linear in the problem size—an undesirable feature, as it is against computation outsourcing.
We achieve optimal verificatio by departing from the above approaches as follows. We firs reduce the problem of verifying set operations to the problem of verifying the validity of some more primitive relations on sets, namely subset containment and set disjointness. Then for each such primitive relation we employ a corresponding cryptographic primitive to optimally verify its validity. In particular, we extend the bilinear-map accumulator to optimally verify subset containment (Lemmas 1 and 4), inspired by [32]. We then employ the extended Euclidean algorithm over polynomials (Lemma5) in combination with subset containment proofs to provide a novel optimal verificatio test for set disjointness. The intuition behind our technique is that disjoint sets can be represented by polynomials mutually indivisible, therefore there exist other polynomials so that the sum of their pairwise products equals to one—this is the test to be used in the proof. Still, transmitting (and processing) these polynomials is bandwidth (and time) prohibitive and does not lead to operation-sensitive verification Bilinearity properties, however, allow us to compress their coefficient in the exponent and, yet, use them meaningfully, i.e., compute an internal product. This is why although a conceptually simpler RSA accumulator [5] would yield a mathematically sound solution, a bilinear-map accumulator [28] is essential for achieving the desired complexity goal.
We formally describe our protocols using an authenticated data structure scheme or ADS scheme (Definition 1). An ADS scheme consists of algorithms {genkey, setup, update, refresh, query, verify} such that: (i) genkey produces the secret and public key of the system; (ii) on input a plain data structure D, setup initializes the authenticated data structure auth(D); (iii) having access to the secret key, update computes the updated digest of auth(D); (iv) without having access to the secret key, refresh updates auth(D); (ν) query computes cryptographic proofs ø(q) for answers α(q) to data structure queries q; (vi) verify processes a proof Π and an answer α and either accepts or rejects. Note that neither query nor verify have access to the secret key, thus modeling computation outsourcing and public verifiabilit. An ADS scheme must satisfy certain correctness and security properties (Definition 2 and 3). We note that protocols in both the three-party and the two-party models can be realized via an ADS scheme.
Our main result, Theorem 1, presents the firs ADS scheme to achieve optimal verification of the set operations intersection, union, subset and set difference, as well as optimal updates on the underlying collection of sets. Our scheme is proved secure under the bilinear extension of the q-strong Diffie-Hellma assumption (see, e.g., [8]).
Complexity model. To explicitly measure complexity of various algorithms with respect to number of primitive cryptographic operations, without considering the dependency on the security parameter, we adopt the complexity model used in memory checking [7, 14], which has been only implicitly used in ADS literature. The access complexity of an algorithm is define as the number of memory accesses performed during its execution on the authenticated data structure that is stored in an indexed memory of n cells3 E.g., a Merkle tree [24] has O(log n) update access complexity since the update algorithm needs to read and write O(log n) memory cells of the authenticated data structure, each cell storing exactly one hash value. The group complexity of a data collection (e.g., proof or ADS group complexity) is define as the number of elementary data objects (e.g., hash values or elements in ) contained in this collection. Note that although the access and group complexities are respectively related to the time and space complexities, the former are in principle smaller than the latter. This is because time and space complexities are counting number of bits and are always functions of the security parameter which, in turn, is always Ω(log n). Therefore time and space complexities are always Ω(log n), whereas access and group complexities can be O(1). Finally, whenever it is clear from the context, we omit the terms “access” and “group”. 3 We use the term “access complexity” instead of the “query complexity” used in memory checking [7, 14] to avoid ambiguity when referring to algorithm query of the ADS scheme. We also require that each memory cell can store up to O(poly(log n)) bits, a word size used in [7, 14].
Related work. The great majority of authenticated data structures involve the use of cryptographic hashing [2, 7, 18, 20, 39, 23, 27] or other primitives [17, 31, 32] to hierarchically compute over the outsourced data one or more digests. Most of these schemes incur verificatio costs that are proportional to the time spent to produce the query answer, thus they are not operation sensitive. Some bandwidth-optimal and
operation-sensitive solutions for verificatio of various (e.g., range search) queries appear in [2, 19].
Despite the fact that privacy-related problems for set operations have been extensively studied in the cryptographic literature (e.g., [9, 15]), existing work on the integrity dimension of set operations appears mostly in the database literature. In [23], the importance of coming up with an operation-sensitive scheme is identified In [26], possibly the closest in context work to ours, set intersection, union and difference are authenticated with linear costs. Similar bounds appear in [38]. In [29], a different approach is taken: In order to achieve operation-sensitivity, expensive pre-processing and exponential space are required (answers to all possible queries are signed). Finally, related to our work are non-membership proofs, both for the RSA [22] and the bilinear-map [3, 13] accumulators. A comparison of our work with existing schemes appears in Table 1.
These and other features, aspects, and advantages of the present invention will become better understood with reference to the following description, appended claims, and accompanying drawings where:
We denote with k the security parameter and with neg(k) a negligible function4. 4 Function ƒ: →
is neg(k) if and only if for any nonzero polynomial p(k) there exits N such that for all k>N it is ƒ(k)<1/p(k).
The bilinear-map accumulator. Let be a cyclic multiplicative group of prime order p, generated by element gε
. Let also
be a cyclic multiplicative group of the same order p, such that there exists a pairing e:
×
→
with the following properties: (i) Bilinearity: e(Pα, Qb)=e(P, Q)ab for all P, Qε
and a, b ε
; (ii) Non-degeneracy: e(g, g)≠1; (iii) Computability: For all P, Q ε
, e(P, Q) is efficientl computable. We call (p,
,
, e, g) a tuple of bilinear pairing parameters, produced as the output of a probabilistic polynomial-time algorithm that runs on input Ik.
In this setting, the bilinear-map accumulator [28] is an efficien way to provide short proofs of membership for elements that belong to a set. Let sε be a randomly chosen value that constitutes the trapdoor in the scheme. The accumulator primitive accumulates elements in
−{s}, outputting a value that is an element in
. For a set of elements χ in
−{s} the accumulation value acc(χ) of χ is define as
acc(χ)=gΠ
5 Πχεsi(χ+s) is called characteristic polynomial of set Si in the literature (e.g., see [25]).
Value acc(χ) can be constructed using χ and g, gs, gs
W
s,χ
=g
Πχεχ−s
(1)
Subset containment of S in χ can be checked through relation e(Ws,χ, gΠe (acc(χ), g) by any verifie with access only to public information. The security property of the bilinear-map accumulator, namely that computing fake but verifiabl subset containment proofs is hard, can be proved using the bilinear q-strong Diffie-Hellma assumption, which is slightly stronger than the q-strong Diffie-Hellma assumption [8]6 6 However, the plain q-strong Diffie-Hellma assumption [28] suffice to prove just the collision resistance of the bilinear-map accumulator.
Assumption 1 (Bilinear q-strong Diffie-Hellman assumption) Let k be the security parameter and (p, ,
, g) be a tuple of bilinear pairing parameters. Given the elements g, gs, . . . , gs
for some s chosen at random from
, where q=poly(k) no probabilistic polynomial-time algorithm can output a pair (a, e(g, g)1/(a+s)) ε
×
, except with negligible probability neg(k).
We next prove the security of subset witnesses by generalizing the proof in [28]. Subset witnesses also appeared (independent of our work but without a proof) in [10].
Lemma 1 (Subset containment) Let k be the security parameter and (p, ,
, g) be a tuple of bilinear pairing parameters. Given the elements g, gs, . . . , gs
for some s chosen at random from
and a set of elements χ in
−{s} with q≧|χ|, suppose there is a probabilistic polynomial-time algorithm that finds S and W such that S⊂χ and e(W, gΠχεs
Proof: Suppose there is a probabilistic polynomial-time algorithm that computes such a set S={y1, y2, . . . , yl} and a fake witness W. Let χ={χ1, χ2, . . . , χn} and yj⊂χ for some 1≦j≦l. This means that
e(W,g)Π
Note that (yj+s) does not divide (χ1+s)(χ2+s) . . . (χn+s). Therefore there exist polynomial Q(s) (computable in polynomial time) of degree n−1 and constant λ≠0, such that (χ1+s)(χ2+s) . . . (χn+s)=Q(s)(yj+s)+λ. Thus we have
Thus, this algorithm can break the bilinear q-strong Diffie-Hellma assumption. □
Tools for polynomial arithmetic. Our solutions use (modulo p) polynomial arithmetic. We next present two results that are extensively used in our techniques, contributing to achieve the desired complexity goals. The firs result on polynomial interpolation is derived using an FFT algorithm (see Preparata and Sarwate [34]) that computes the DFT in a finit fiel (e.g., ) for arbitrary n and performing O(n log n) fiel operations. We note that an n-th root of unity is not required to exist in
for this algorithm to work.
Lemma 2 (Polynomial interpolation with FFT [34]) Let Πi=1n(χi+s)=Σi=0nbisi be a degree-n polynomial. The coefficients bn=0, bn-1, . . . b0 of the polynomial can be computed with O(n log n) complexity, given χ1, χ2 . . . χn.
Lemma 2 refers to an efficien process for computing the coefficient of a polynomial, given its roots χ1, χ2, . . . , χn. In our construction, we make use of this process a numbers of times, in particular, when, given some values χ1, χ2, . . . , χn to be accumulated, an untrusted party needs to compute g(χ
We next present a second result that will be used in our verificatio algorithms. Related to certifying algorithms [21], this result states that if the vector of coefficient b=[bn, bn-1, . . . , b0] is claimed to be correct, then, given the vector of roots x=[χ1, χ2, . . . , χn], with high probability, vector b can be certifie to be correct with complexity asymptotically less than O(n log n), i.e., without an FFT computation from scratch. This is achieved with the following algorithm: Algorithm {accept, reject}←certify(b, x, pk): The algorithm picks a random κε. If Σi=0nbiκi=Σi=1n(χi+κ), then the algorithm accepts, else it rejects.
Lemma 3 (Polynomial coefficients verification) Let b=[bn, bn-1, . . . , b0] and x=[χ1, χ2, . . . , χn]. Algorithm certify(b, x, pk) has O(n) complexity. Also, if accept←certify(b, x, pk), then bn, bn-1, . . . , b0 are the coefficients of the polynomial Πi=1n(χi+s) with probability Ω(1−neg(k)).
Authenticated data structure scheme. We now defin our authenticated data structure scheme (ADS scheme), as well as the correctness and security properties it must satisfy.
Definition 1 (ADS scheme) Let D be any data structure that supports queries q and updates u. Let auth(D) denote the resulting authenticated data structure and d the digest of the authenticated data structure, i.e., a constant-size description of D. An ADS scheme A is a collection of the following six probabilistic polynomial-time algorithms:
Let {accept, reject}←check(q, α, Dh) be an algorithm that decides whether α is a correct answer for query q on data structure Dh (check is not part of the definitio of an ADS scheme). There are two properties that an ADS scheme should satisfy, namely correctness and security (intuition follows from signature schemes definitions)
Definition 2 (Correctness) Let be an ADS scheme {genkey, setup, update, refresh, query, verify}. We say that the ADS scheme
is correct if for all kε
for all {sk, pk}output by algorithm genkey, for all Dh, auth(Dh), dh output by one invocation of setup followed by polynomially-many invocations of refresh, where h≧0, for all queries q and for all ø(q), α(q) output by query(q, Dh, auth(Dh), pk), with all but negligible probability, whenever algorithm check(q, α(q), Dh) outputs accept, so does algorithm verify(q, ø(q), α(q), dh, pk).
Definition 3 (Security) Let be an ADS scheme {genkey, setup, update, refresh, query, verify}, k be the security parameter ν(k) be a negligible function and {sk, pk}←genkey(1k). Let also Adv be a probabilistic polynomial-time adversary that is only given pk. The adversary has unlimited access to all algorithms of
except for algorithms setup and update to which he has only oracle access. The adversary picks an initial state of the data structure D0 and computes D0, auth(D0), d0 through oracle access to algorithm setup. Then, for i=0, . . . , h=poly(k), Adv issues an update μi in the data structure Di and computes Di+1, auth(Di+i) and di+1 through oracle access to algorithm update. Finally the adversary picks an index 0≦t≦h+1, and computes a query q, an answer α and a proof ø. We say that the ADS scheme
is secure if for all kε
for all {sk, pk}output by algorithm genkey, and for any probabilistic polynomial-time adversary Adv it holds that
In this section we present an ADS scheme for set-operation verification The underlying data structure for which we design our ADS scheme is called sets collection, and can be viewed as a generalization of the inverted index [4] data structure.
Sets collection. Referring now to is the set of nonnegative integers in the interval [m+1, p−1]−{s}7 where p is k-bit prime, m is the number of the sets in our collection that has bit size O(log k), k is the security parameter and s is the trapdoor of the scheme (see algorithm genkey). A set Si does not contain duplicate elements, however an element χε
can appear in more than one set. Each set is sorted and the total space needed is O(m+M), where M is the sum of the sizes of the sets. 7 This choice simplifie the exposition; however, by using some collision-resistant hash function, universe
can be set to
−{s}.
In order to get some intuition, we can view the sets collection as an inverted index. In this view, the elements are pointers to documents and each set Si corresponds to a term wi in the dictionary, containing the pointers to documents where term wi appears. In this case, m is the number of terms being indexed, which is typically in the hundreds of thousands, while M, bounded from below by the number of documents being indexed, is typically in the billions. Thus, the more general terms “elements” and “sets” in a sets collection can be instantiated to the more specifi “documents” and “terms”.
The operations supported by the sets collection data structure consist of updates and queries. An update is either an insertion of an element into a set or a deletion of an element from a set. An update on a set of size n takes O(log n) time. For simplicity, we assume that the number m of sets does not change after updates. A query is one of the following standard set operations: (i) Intersection. Given indices i1, i2, . . . , it, return set I=Si
We next detail the design of an ADS scheme for the sets collection data structure. This scheme provides protocols for verifying the integrity of the answers to set operations in a dynamic setting where sets evolve over time through updates. The goal is to achieve optimality in the communication and verificatio complexity: a query with t parameters and answer size δ should be verifie with O(t+δ) complexity, and at the same time query and update algorithms should be efficien as well.
Referring to ={genkey, setup, update, refresh, query, verify} for the sets collection data structure and we prove that its algorithms satisfy the complexities of Table 1. We begin with the algorithms that are related to the setup and the updates of the authenticated data structure.
Algorithm {sk, pk}←genkey(1k): Bilinear pairing parameters (p, ,
, e, g) are picked and an element ε
is chosen at random. Subsequently, an one-to-one function h(•):
→
is used. This function simply outputs the bit description of the elements of
according to some canonical representation of
. Finally the algorithm outputs sk=s and pk={h(•), p,
,
, g, g}, where vector g contains values
g={g
s
,g
s
, . . . , g
s
where q≧max{m, maxi=1, . . . , m{|Si|}}. The algorithm has O(1) access complexity.
Algorithm {D0, auth(D0), d0}←setup(D0, sk, pk): Let D0 be our initial data structure, i.e., the one representing sets S1, S2, . . . , Sm. The authenticated data structure auth(D) is built as follows. First, for each set Si its accumulation value acc(Si)=gΠχεs
d(ν)=gøwεN(ν)
where (ν) denotes the set of children of node ν. The algorithm outputs all the sets $ as the data structure D0, and all the accumulation values acc(Si) for 1≦i≦m, the tree T and all the digests d(ν) for all νεT as the authenticated data structure auth(D0). Finally, the algorithm sets d0=d(r) where r is the root of T, i.e., d0 is the digest of the authenticated data structure (define similarly as in a Merkle tree).8 The access complexity of the algorithm is O(m+M) (for postorder traversal of T and computation of acc(Si)), where M=Σi=1m|Si|. The group complexity of auth(D0) is also O(m+M) since the algorithm stores one digest per node of T, T has O(m) nodes and there are M elements contained in the sets, as part of auth(D0).
Algorithm {Dh+1, auth(Dh+1), dh+1, upd}←update(u, Dh, auth(Dh), dh, sk, pk): We consider the update date “insert element χε into set Si” (note that the same algorithm could be used for element deletions). Let ν0 be the leaf node of T corresponding to set Si. Let ν0, ν1, . . . , νl be the path in T from node ν0 to the root of the tree, where l=┌1/ε┐. The algorithm initially sets d(ν0)=acc(Si)(χ+s), i.e., it updates the accumulation value that corresponds to the updated set (note that in the case where χ is deleted from Si the algorithm sets d′(ν0)=acc(Si)(χ+s)-1). Then the algorithm sets 8 Digest d(r) is a “secure” succinct description of the set collection data structure. Namely, the accumulation tree protects the integrity of values acc(Si), 1≦i≦m, and each accumulation value acc(Si) protects the integrity of the elements contained in set Si.
d′(νj)=d(νj)(h(d′(ν
where d(νj-1) is the current digest of νj-1 and d′(νj-1) is the updated digest of νj-1.9 All these newly computed values (i.e., the new digests) are stored by the algorithm. The algorithm then outputs the new digests d′(νj-1), j=1, . . . , l, along the path from the updated set to the root of the tree, as part of information upd. Information upd also includes χ and d(νl). The algorithm also sets dh+1=d′(νl), i.e., the updated digest is the newly computed digest of the root of T. Finally the new authenticated data structure auth(Dh+1) is computed as follows: in the current authenticated data structure auth(Dh) that is input of the algorithm, the values d(νj-1) are overwritten with the new values d(νj-1) (j=1, . . . , l), and the resulting structure is included in the output of the algorithm. The number of operations performed is proportional to 1/ε, therefore the complexity of the algorithm is O(1). 9 Note that these update computations are efficien because update has access to secret key s.
Algorithm {Dh+1, auth(Dh+1), dh+1}←refresh(u, Dh, auth(Dh), dh, upd, pk): We consider the update “insert element χε into set Si”. Let ν0 be the node of T corresponding to set Si. Let ν0, ν1, . . . , νl be the path in T from node ν0 to the root of the tree. Using the information upd, the algorithm sets d(νj)=d′(νj) for j=0, . . . , l, i.e., it updates the digests that correspond to the updated path. Finally, it outputs the updated sets collection as Dh+1, the updated digests d(νj) (along with the ones that belong to the nodes that are not updated) as auth(Dh+1) and d′(νl) (contained in upd) as dh+1.10 The algorithm has O(1) complexity as the number of performed operations is O(1/e). 10 Note that information upd is not required for the execution of refresh, but is rather used for efficien y. Without access to upd, algorithm refresh could compute the updated values d(νj) using polynomial interpolation, which would have O(mε log m) complexity (see Lemma 2).
Referring to will use for set-operation verifications Overall, auth(Dh) comprises a set of m accumulation values acc(Si), one for each set Si, i=1, . . . , m, and a set of O(m) digests d(ν), one for each internal node ν of the accumulation tree T. Our proof construction and verificatio protocols for set operations (described in Section 6.2.3) make use of the accumulation values acc(Si) (subject to which subset-containment witnesses can be defined) and therefore it is required that the authenticity of each such value can be verified Tree T serves this exact role by providing short correctness proofs for each value acc(Si) stored at leaf i of T, this time subject to the (global) digest dh stored at the root of T. We next provide the details related to proving the authenticity of acc(Si).
The correctness proof øi of accumulation value acc(Si), 1≦i≦m, is a collection of O(1) bilinear-map accumulator witnesses (as define in Section 6.1). In particular, øi is set to be the ordered sequence ø=(π1, π2, . . . , πl), where πj is the pair of the digest of node νj-1 and a witness that authenticates νj-1, subject to node νj, in the path ν0, ν1, . . . , νl define by leaf ν0 storing accumulation value acc(Si) and the root νl of T. Conveniently, πj is define as πj=(βj, γj), where
βj=d(νj-1) and γj=Wν
Note that πj is the witness for a subset of one element, namely h(d(νj-1)) (recall, d(ν0)=acc(Si)(i+s)). Clearly, pair πj has group complexity O(1) and can be constructed using polynomial interpolation with O(mε log m) complexity, by Lemma 2 and since νj has degree O(mε). Since øi consists of O(1) such pairs, we conclude that the proof øi for an accumulation value acc(Si) can be constructed with O(mε log m) complexity and has O(1) group complexity. The following algorithms queryTree and verifyTree are used to formally describe the construction and respectively the verificatio of such correctness proofs. Similar methods have been described in [32].
Algorithm {øi, αi}←queryTree(i, Dh, auth(Dh), pk): Let ν0, ν1, . . . , νl be the path of T from the node storing acc(Si) to the root of T. The algorithm computes øi by setting øi=(π1, π2, . . . , πl), where πj=(d(νj-1), Wν
Algorithm {accept, reject}←verifyTree(i, αi, øi, dh, pk): Let the proof be øi=(π1, π2, . . . , πl), where πj=(βj, γj). The algorithm outputs reject if one of the following is true: (i) e(β1, g)≠e(αi, gigs); or (ii) e (βj, g)≠e(γj-1, gh(β
We finall provide some complexity and security properties that hold for the correctness proofs of the accumulated values. The following result is used as a building block to derive the complexity of our scheme and prove its security (Theorem 1).
Lemma 4 Algorithm queryTree runs with O(mε log m) access complexity and outputs a proof of O(1) group complexity. Moreover algorithm verifyTree has O(1) access complexity. Finally, for any adversarially chosen proof øi (1≦i≦m), if accept←verifyTree(i, αi, øi, dh, pk), then αi=acc(Si) with probability Ω(1−neg(k)).
Referring to by presenting the algorithms that are related to the construction and verificatio of proofs attesting the correctness of set operations. These proofs are efficientl constructed using the authenticated data structure presented earlier, and they have optimal size O(t+δ), where t and δ are the sizes of the query parameters and the answer. In the rest of the section, we focus on the detailed description of the algorithms for an intersection and a union query, but due to space limitations, we omit the details of the subset and the set difference query. We note, however, that the treatment of the subset and set difference queries is analogous to that of the intersection and union queries.
The parameters of an intersection or a union query are t indices i1, i2, . . . , it, with 1≦t≦m. To simplify the notation, we assume without loss of generality that these indices are 1, 2, . . . , t. Let ni denote the size of set Si (1≦i≦t) and let N=Σi=1tni. Note that the size δ of the intersection or union is always O(N) and that operations can be performed with O(N) complexity, by using a generalized merge.
Intersection query. Let I=S1∩S2∩ . . . ∩St={y1, y2, . . . , yδ}. We express the correctness of the set intersection operation by means of the following two conditions:
Subset Condition:
I⊂S
1
I⊂S
2
. . .
I⊂S
t; (6)
Completeness Condition:
(S1−I)∩(S2−I)∩ . . . ∩(St−I)=Ø. (7)
The completeness condition in Equation 7 is necessary since set I must contain all the common elements. Given an intersection I, and for every set Sj, 1≦i≦t, we defin the degree-nj polynomial
The following result is based on the extended Euclidean algorithm over polynomials and provides our core verificatio test for checking the correctness of set intersection.
Lemma 5 Set 1 is the intersection of sets S1, S2, . . . , St if and only if there exist polynomials q1(s), q2(s), . . . , qt(s) such that q1(s)P1(s)+q2(s)P2(s)+ . . . +qt(s)Pt(s)=1, where Pj(s), j=1, . . . , t, are defined in Equation 8. Moreover the polynomials q1(s), q2(s), . . . , qt(s) can be computed with O(N log2 N log log N) complexity.
Using Lemmas 2 and 5 we next construct efficien proofs for both conditions in Equations 6 and 7. In turn, the proofs are directly used to defin the algorithms query and verify of our ADS scheme for intersection queries.
Proof of subset condition. For each set Sj, 1≦j≦t, the subset witnesses WI,j=gP
Proof of completeness condition. For each qj(s), 1≦j≦t, as in Lemma 5 satisfying q1(s)P1(s)+q2(s)P2(s)+ . . . +qt(s)Pt(s)=1, the completeness witnesses FI,j=gq
Algorithm {Π(q), α(q)}←query(q, Dh, auth(Dh), pk) (Intersection): Query q consists of t indices {1, 2, . . . , t}, asking for the intersection I of S1, S2, . . . , St. Let I={y1, y2, . . . , yδ}. Then α(q)=I, and the proof Π(q) consists of the following parts.
Algorithm {accept, reject}←verify(q, α, Π, dh, pk) (Intersection): Verifying the result of an intersection query includes the following steps.
If, for some j, the above check on subset witness WI,j fails, the algorithm outputs reject. This step has O(t+δ) complexity.
If the above check on the completeness witnesses FI,j=1≦j≦t, fails, the algorithm outputs reject. Or, if this relation holds, the algorithm outputs accept, i.e., it accepts α(q) as the correct intersection. This step has O(t) complexity.
Note that for Equation 10, it holds Πj=1te(WI,j, FI,j)=e(g, g)Σ
Union query. Let U=S1∪S2∪ . . . ∪St={y1, y2, . . . , yδ}. We express the correctness of the set union operation by means of the following two conditions:
Membership Condition:
∀yiε∪∃jε{1,2, . . . , t}: yiεSj; (11)
Superset Condition:
(∪⊃S1)(∪⊃S2) . . .
(∪⊃St). (12)
The superset condition in Equation 12 is necessary since set U must exclude none of the elements in sets S1, S2, . . . , St. We formally describe algorithms query and verify of our ADS scheme for union queries.
Algorithm {Π(q), α(q)}←query(q, Dh, auth(Dh), pk) (Union): Query q asks for the union ∪ of t sets S1, S2, . . . , St. Let ∪={y1, y2, . . . , yδ}. Then α(q)=∪ and the proof Π(q) consists of the following parts. (1) Coefficients bδ, bδ-1, . . . , b0 of polynomial (y1+s)(y2+s) . . . (yδ+s) that is associated with the union ∪={y1, y2, . . . , yδ}. (2) Accumulation values acc(Sj), j=1, . . . , t, which are associated with sets Sj, along with their respective correctness proofs Πj, both output of algorithm queryTree(j, Dh, auth(Dh), pk). (3) Membership witnesses Wy
Algorithm {accept, reject}←verify(q, α, Π, dh, pk): (Union): Verifying the result of a union query includes the following steps. (1) First, the algorithm uses b=[bδ, bδ-1, . . . , b0] and the answer ∪=α(q)={y1, y2, . . . , yδ} as an input to algorithm certify(b, α(q), pk), in order to certify the validity of bδ, bδ-1, . . . , b0. (2) Subsequently, the algorithm uses the proofs øj to verify the correctness of acc(Sj), by using algorithm verifyTree(j, acc(Sj), Πj, dh, pk) for j=1, . . . , t. If the verificatio fails for at least one of acc(Sj), the algorithm outputs reject. (3) Next, the algorithm verifie that each element y, i=1, . . . , δ, of the reported union belongs to some set Sk, for some 1≦k≦t (O(δ) complexity). This is done by checking that relation e(Wy
If any of the above checks fails, the algorithm outputs reject, otherwise, it outputs accept, i.e., ∪ is accepted as the correct union.
Subset and set difference query. For a subset query (positive or negative), we use the property Si⊃Sj∀yεSi, yεSj. For a set difference query we use the property
D=S
i
−S
j
∃F:F∪D=S
i
F=S
i
∩S
j.
The above conditions can both be checked in an operation-sensitive manner using the techniques we have presented before. We now give the main result in our work.
Theorem 1 Consider a collection of m sets S1, . . . , Sm and let M=Σi=1m|Si| and 0≦ε≦1. For a query operation involving t sets, let N be the sum of the sizes of the involved sets, and δ be the answer size. Then there exists an ADS scheme ={genkey, setup, update, refresh, query, verify} for a sets collection data structure D with the following properties: (1)
is correct and secure according to Definitions 2 and 3 and based on the bilinear q-strong Diffie-Hellman assumption; (2) The access complexity of algorithm (i) genkey is O(1); (ii) setup is O(m+M); (iii) update is O(1) outputting information upd of O(1) group complexity; (iv) refresh is O(1); (3) For all queries q (intersection/union/subset/difference), constructing the proof with algorithm query has O(N log2 N log log N+tmε log m) access complexity, algorithm verify has O(t+δ) access complexity and the proof Π(q) has O(t+δ) group complexity; (4) The group complexity of the authenticated data structure auth(D) is O(m+M).
In this section we give an overview of the security analysis of our ADS scheme, describe how it can be employed to provide verificatio protocols in the three-party [36](
Security proof sketch. We provide some key elements of the security of our verificatio protocols focusing on set intersection queries. The security proofs of the other set operations share similar ideas. Let D0 be a sets collection data structure consisting of m sets S1, S2, . . . , Sm,14 and consider our ADS scheme ={genkey, setup, update, refresh, query, verify}. Let k be the security parameter and let {sk, pk}←genkey(1k). The adversary is given the public key pk, namely {h(•), p,
e, g, gs, . . . gs
, except for setup and update to which he only has oracle access. The adversary initially outputs the authenticated data structure auth(D0) and the digest d0, through an oracle call to algorithm setup. Then the adversary picks a polynomial number of updates μt (e.g., insertion of an element χ into a set Sr) and outputs the data structure Di, the authenticated data structure auth(Di) and the digest di through oracle access to update. Then he picks a set of indices q={1, 2, . . . , t}(wlog), all between 1 and m and outputs a proof Π(q) and an answer
≠S1∩S2∩ . . . ∩St which is rejected by check as incorrect. Suppose the answer α(q) contains d elements. The proof Π(q) contains (i) Some coefficient b0, b1, . . . , bd; (ii) Some accumulation values accj with some respective correctness proofs Πj, for j=1, . . . , t; (iii) Some subset witnesses Wj with some completeness witnesses Fj, for j=1, . . . , t (this is, what algorithm verify expects for input). 14 Note here that since the sets are picked by the adversary, we have to make sure that no element in any set is equal to s, the trapdoor of the scheme (see definitio of the bilinear-map accumulator domain). However, this event occurs with negligible probability since the sizes of the sets are polynomially-bounded and s is chosen at random from a domain of exponential size.
Suppose verify accepts. Then: (i) By Lemma 3, b0, b1, . . . , bd are indeed the coefficient of the polynomial Πχεχ(χ+s), except with negligible probability; (ii) By Lemma 4, values accj are indeed the accumulation values of sets Sj, except with negligible probability; (iii) By Lemma 1, values Wj are indeed the subset witnesses for set (with reference to Sj), i.e., Wj=gP
is incorrect and therefore
cannot contain all the elements of the intersection. Thus the polynomials P1(s), P2(s), . . . , Pt(s) (Equation 8) have at least one common factor, say (r+s) and it holds that Pj(s)=(r+s)Qj(s) for some polynomials Qj(s) (computable in polynomial time), for all j=1, . . . , t. By the verificatio of Equation 10 (completeness condition), we have
Therefore we can derive an (r+s)-th root of e(g, g) as
This means that if the intersection is incorrect and all the verificatio tests are satisfied we can derive a polynomial-time algorithm that outputs a bilinear q-strong Diffie-Hellma challenge (r, e(g, g)1/(r+s)) for an element r that is a common factor of the polynomials P1(s), P2(s), . . . , Pt(s), which by Assumption 1 happens with probability neg(k). This concludes an outline of the proof strategy for the case of intersection.
Protocols. As mentioned in the introduction, our ADS scheme can be used by a verificatio protocol in the three-party model [36](See
Additionally, our ADS scheme can also be used by a non-interactive verificatio protocol in the two-party model [30] as shown in
Furthermore, our ADS scheme can also be used by a non-interactive verificatio protocol in the multi-party model [30] as shown in
Applications. First of all, our scheme can be used to verify keyword-search queries implemented by the inverted index data structure [4]: Each term in the dictionary corresponds to a set in our sets collection data structure which contains all the documents that include this term. A usual text query for terms m1 and m2 returns those documents that are included in both the sets that are represented by m1 and m2, i.e., their intersection. Moreover, the derived authenticated inverted index can be efficientl updated as well. However, sometimes in keyword searches (e.g., keyword searches in the email inbox) it is desirable to introduce a “second” dimension: For example, a query could be “return emails that contain terms m1 and m2 and which were received between time t1 and t2”, where t1<t2. We call this variant a timestamped keyword-search, which is shown in
In this paper, we presented an authenticated data structure for the optimal verificatio of set operations. The achieved efficien y is mainly due to new, extended security properties of accumulators based on pairing-based cryptography. Our solution provides two important properties, namely public verifiability and dynamic updates, as opposed to existing protocols in the verifiabl computing model that provide generality and secrecy, but verifiability in a static, secret-key setting only.
A natural question to ask is whether outsourced verifiabl computations with secrecy and efficient dynamic updates are feasible. Analogously, it is interesting to explore whether other specifi functionalities (beyond set operations) can be optimally and publicly verified Finally, according to a recently proposed definitio of optimality [33], our construction is nearly optimal: verificatio and updates are optimal, but not queries. It is interesting to explore whether an optimal authenticated sets collection data structure exists, i.e., one that asymptotically matches the bounds of the plain sets collection data structure, reducing the query time from O(N log2 N) to O(N).
It would be appreciated by those skilled in the art that various changes and modification can be made to the illustrated embodiments without departing from the spirit of the present invention. All such modification and changes are intended to be within the scope of the present invention except as limited by the scope of the appended claims.
This application claims priority to earlier file U.S. Provisional Application Ser. No. 61/368,913, file Jul. 29, 2010, the contents of which are incorporated herein by reference.
This invention was made with government support under grants CNS-1012060 and CNS-1012798 awarded by the U.S. National Science Foundation. The government has certain rights in the invention.
Number | Date | Country | |
---|---|---|---|
61368913 | Jul 2010 | US |