Distributed multi-dimensional range query method, device and system
Through secret shared polynomial technology and decision algorithm, the secret index structure is constructed and the query vector is transformed, which solves the problems of high communication complexity and low efficiency in multi-dimensional range queries, and achieves efficient privacy-protecting queries.
Patent Information
- Application Number
- CN202410826344.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-10-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
While the existing technology protects single-dimensional privacy, the communication complexity of multi-dimensional range query is high and the query efficiency is low, making it difficult to meet the demand for efficient query in fields such as electronic medical care.
The secret shared polynomial conversion technology is used to construct a secret index structure, convert multi-dimensional queries into secret query vectors, and achieve efficient matching through point intersection determination and interval intersection determination algorithms to reduce communication complexity.
On the basis of protecting single-dimensional privacy, it significantly improves the efficiency and communication efficiency of multi-dimensional range query, and is suitable for efficient query needs in electronic medical and other fields.
Smart Images

Figure CN118860976A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a distributed multi-dimensional range query method, device and system, belonging to the technical field of distributed information processing. Background Art
[0002] With its advantages in flexibility, scalability, and on-demand services, Database as a Service (DBaaS) is widely used in fields such as e-health. However, performing queries on encrypted data may incur high computational and storage overhead. Searchable encryption schemes can support various query types, but traditional searchable encryption schemes seem to be only used for equality searches and do not support comparison operations. Many fields require query systems that can handle expression patterns, such as electronic health records that contain attribute keywords and attribute values (see Table 1). For example, when a doctor wants to search the electronic medical records of female patients with an age range of (15,35) and a heart rate greater than 110bpm, he can submit the query "Age(15,35), Heart rate>110, Female", and the data server will return all record files that meet the query.
[0003] Table 1: Electronic health record form
[0004]
[0005] In order to implement multi-dimensional range queries, some research works have used public key encryption or order-preserving encryption, but they either have high computational costs or leak the order of plaintext data. To solve the above problems, researchers have adopted the method of decomposing the multi-dimensional range into multiple single-dimensional ranges. However, this method leaks single-dimensional privacy, which means that the data server knows the query results of each dimension. Therefore, researchers use the R-tree index structure combined with symmetric encryption to implement multi-dimensional range search that can guarantee single-dimensional privacy. However, the current range search schemes either have high communication complexity or the query efficiency needs to be further improved.
[0006] As mentioned above, it is still a challenge to achieve efficient multi-dimensional range query while protecting single-dimensional privacy. Therefore, the present invention proposes a distributed multi-dimensional range query method. Summary of the invention
[0007] In order to solve the above problems, the present invention proposes a distributed multi-dimensional range query method, device and system, which can reduce communication complexity and improve query efficiency while protecting single-dimensional privacy.
[0008] The technical solution adopted by the present invention to solve the technical problem is:
[0009] In a first aspect, an embodiment of the present invention provides a distributed multi-dimensional range query method, comprising the following steps:
[0010] Step 1: System initialization, generating system parameters according to preset safety parameters;
[0011] Step 2, construct an index list, and convert the title, interval, data value in the interval, and file identifier into corresponding secret shares using a secret sharing polynomial to obtain a secret index structure;
[0012] Step 3, convert the query of w dimension into a vector, and use secret sharing to obtain the secret query vector;
[0013] Step 4: Search for matching files according to the query request.
[0014] As a possible implementation of this embodiment, step 1 includes the following steps:
[0015] According to the preset security parameter λ, select a large prime number p and α∈[1,p / 2),β∈(p / 2,p). Assume that the system has N attributes, of which w-1 have attribute values and N-w+1 have no attribute values.
[0016] Randomly select w different integers y1,…,y w ∈[0,p-1] to identify the attribute title, and randomly select N-w+1 different integers H1,…,H n-w+1 ∈[1,p / 2) to mark attributes without values;
[0017] Let public parameter P = p, then secret parameter SP = {α, β, y1, …, y w ,H1,…,H n-w+1}.
[0018] As a possible implementation of this embodiment, in step 2, it is assumed that It is a collection of n data record files in the system, constructing an index list Among them I j represents the jth list and For each I j , T j Represents the title, represents m intervals, is the interval R r Medium r The data value and decimal file identifier pairs are converted into corresponding secret shares using the secret sharing polynomial.
[0019] As a possible implementation of this embodiment, step 2 includes the following steps:
[0020] 1) For each title T j The corresponding value yj , randomly select s″ j ∈F p And let the first-order polynomial f″ (j) (u) = -y j +s″ j u, then the corresponding secret share is S(T j ) i =f″ (j) (i),1≤i≤2;
[0021] 2) For T j Each interval R in r , using the interval intersection determination algorithm to obtain the polynomial f ′(r) (u) = X′ r +s′ r u, then the corresponding secret share is S(R r ) i =f′ (r) (i), 1≤i≤2;
[0022] 3) For R r Each data value D in rk , using the point intersection determination algorithm to obtain f (rk) (u) = X rk +s rk u, and for each data value D rk Assign decimal identifier Y rk , randomly select s″′ rk ∈F p And let f″′ (rk) (u) = Y rk +s″′ rk u, then the corresponding secret share is (S(D rk ) i ,S(Y rk ) i )=(f (rk) (i),f″′ (rk) (i)); get the secret index in,
[0023] As a possible implementation of this embodiment, step 3 includes the following steps:
[0024] The query of w dimension Transformed into w vectors of length 5, so that the total length of the query vector is 5w, and the query of each dimension where y′ j Used to represent query attributes, q j Represents the query scope corresponding to this dimension;
[0025] y′ j For matching titles, if the jth attribute is needed, then y′ j =y j ; otherwise randomly select y′ j ≠y j ; then randomly select e j ′∈F p To obtain the first degree polynomial h (j) (u) = y′ j +e j ′u;
[0026] For the query range q j , the point intersection algorithm is used to convert the range into a query vector Q j And get the secret shared polynomial g (j) (u) = Q j +e j u;
[0027] Get Secret Lookup in
[0028] As a possible implementation of this embodiment, step 4 includes the following steps:
[0029] 1) For each title T j , calculate c″ (j) (i) = f″ (j) (i)+h (j) (i); and for T j Each interval R in r , using the interval intersection determination algorithm to obtain c′ (r) (i) = f′ (r) (i)+g (r) (i)
[0030] make for (i,l1(i),l2(i),…,l w (i)) conduct verification;
[0031] 2) For each l j (i), use (i,c″ (j) (i)) Interpolation polynomial ψ (j) (u), where ψ (j) (0) = y′ j -y j ,
[0032] a) If ψ (j) (0) = 0, continue to j Each (i,c′) in (i) (r)(i)),(i,c″ (r) (i)) Run the interval intersection determination algorithm. If and If the judgment condition of the interval intersection judgment algorithm is met, 1 is returned; otherwise, 0 is returned;
[0033] b) If ψ (j) (0)≠0, randomly select an interval and return 1, and return 0 for other intervals;
[0034] 3) After receiving the returned result, r Each data value D in (possibly multiple intervals) rk Using the point intersection determination algorithm to get c (rk) (i) = f (rk) (i)+g (j) (i), where R r It is T j The corresponding result is "1" in the interval; let Send (i,l′1(i),l′2(i),…,l′ w (i)) to verify; if T j If there are multiple intervals in the result corresponding to "1", repeat the above process for each interval and merge the results into the same l j ′(i);
[0035] 4) Compare the result obtained in step 2) with the received (i,l′1(i),l′2(i),…,l′ w (i)) Combined with:
[0036] a) For step 2) (j) List T with (0)=0 j The corresponding l j ′(i), use (i,c (rk) (i)) Interpolation polynomial φ (rk) (u); if φ (rk) (0) The judgment conditions of the point intersection judgment algorithm are met, and (i,f″′) is continued to be used. (rk) (i)) Interpolation polynomial φ′ (rk) (u), where φ′ (rk) (u) = Y rk ; Otherwise, no interpolation; Subsequently, put from the same list T j Add all the Y values obtained in the above formula to get S j =∑Y rk , and S j Convert to the corresponding binary form σ j ;
[0037] b) For ψ in step 2)(j) List T where (0) ≠ 0 j No operations are performed;
[0038] c) Take the intersection of all binary strings σ j Only keep the positions that are "1" in all strings as "1", and the rest as "0", thus obtaining a new binary string σ; then the files corresponding to the "1"s in σ are the files that satisfy the query Q.
[0039] As a possible implementation of this embodiment, the dot - product determination algorithm includes:
[0040] Parameter - initialization dot - product determination algorithm: Select a large prime number p such that all data is in the interval [0, p / 2), randomly select [1, p / 2), β ∈ (p / 2, p);
[0041] Index - extraction dot - product determination algorithm: For the index vector X = (0, -x) corresponding to the index data x, randomly select a two - dimensional vector where is the set of two - dimensional vectors over the finite field F p Let the linear polynomial f(u) = X + su, where u is the polynomial unknown, then the two secret shares are f(1) and f(2);
[0042] Query - extraction dot - product determination algorithm: For the query q = (a, b), construct the query vector Q = (β, a, α, b) in the form of ">a, <b". If only ">a" or "<b" is queried, copy and pad it to 4 - dimensional, then the corresponding query vectors are Q = (β, a, β, a) or (α, b, α, b); when querying "=a", convert it to the range (a - 1, a + 1), and then randomly select a 4 - dimensional vector where is the set of 4 - dimensional vectors over the finite field F p Let the linear polynomial g(u) = Q + eu, then the two secret shares are g(1) and g(2);
[0043] Matching dot - product determination algorithm: Calculate
[0044] Determination dot - product determination algorithm: Use the interpolation polynomial φ(u) with (i, c(i)), where φ(0) = X + Q = (φ1, φ2, φ3, φ4). If both φ1 and φ2 belong to (p / 2, p) and both φ3 and φ4 belong to [1, p / 2), or all terms of φ(0) either belong to (p / 2, p) or belong to [1, p / 2), then the data x satisfies the query q, return 1; otherwise, return 0.
[0045] As a possible implementation of this embodiment, the interval intersection determination algorithm includes:
[0046] Parameter initialization of the interval intersection determination algorithm: Select a large prime number p such that all data is in the interval [0, p / 2), and randomly select [1, p / 2), β ∈ (p / 2, p);
[0047] Index extraction of the interval intersection determination algorithm: For the index vector X′ = (0, -x2, 0, -x1) corresponding to the index range (x1, x2), randomly select a 4D vector and let the linear polynomial f′(u) = X′ + s′u, then the two secret shares are f′(1) and f′(2);
[0048] Query extraction of the interval intersection determination algorithm: For the query q = (a, b), construct the query vector Q = (β, a, α, b) in the form of ">a, <b". If only querying ">a" or "<b", copy and pad it to 4D, then the corresponding query vector is Q = (β, a, β, a) or (α, b, α, b); when querying "=a", convert it to the range (a - 1, a + 1), and then randomly select a 4D vector where is the set of 4D vectors over the finite field F p and let the linear polynomial g(u) = Q + eu, then the two secret shares are g(1) and g(2);
[0049] Matching of the interval intersection determination algorithm: Calculate c′(i) = f′(i) + g(i),
[0050] Determination of the interval intersection determination algorithm: Use (i, c′(i)) to interpolate the polynomial where If and both belong to (p / 2, p) and and both belong to [1, p / 2), return 1; otherwise continue to use (i, c″(i)) to interpolate the polynomial where If and both belong to [1, p / 2), or and both belong to (p / 2, p), return 1; otherwise return 0; Returning 1 means that the index range (x1, x2) satisfies the query; returning 0 means it does not satisfy.
[0051] In a second aspect, an embodiment of the present invention provides a distributed multi-dimensional range query device, including:
[0052] Initialization module, used for system initialization, generating system parameters according to preset safety parameters;
[0053] An index construction module is used to construct an index list and convert the title, interval, data value in the interval and file identifier into corresponding secret shares using a secret sharing polynomial to obtain a secret index structure;
[0054] The query conversion module is used to convert the query of w dimensions into a vector and obtain the secret query vector using secret sharing;
[0055] The file search module is used to search for matching files according to the query request.
[0056] In a third aspect, an embodiment of the present invention provides a distributed multi-dimensional range query system, including a data owner, a data user, a cloud platform and a verification center VC, wherein the cloud platform includes two data servers;
[0057] The verification center VC generates system parameters according to the preset security parameters λ, and transmits the system parameters to the data owner and data user through a secure channel; specifically:
[0058] According to the preset security parameter λ, the verification center VC selects a large prime number p and α∈[1,p / 2),β∈(p / 2,p). Assume that the system has N attributes, of which w-1 have attribute values and N-w+1 have no attribute values. Randomly select w different integers y1,…,y w ∈[0,p-1] to identify the attribute title, and randomly select N-w+1 different integers H1,…,H n-w+1 ∈[1,p / 2) to mark attributes without values; let the public parameter P = p, then the secret parameter SP = {α, β, y1,…, y w ,H1,…,H n-w+1}. Finally, the verification center VC sends SP to the data owner DO and the data user DU;
[0059] Assumptions It is a collection of n data record files in the system, and the data owner constructs an index list Among them I j represents the jth list and For each I j , T j Represents the title, represents m intervals, is the interval R r Medium rdata value and decimal file identifier pairs; the data owner uses the secret sharing polynomial to convert them into corresponding secret shares and sends them to the data server; specifically:
[0060] 1) For each title T j The corresponding value y j , the data owner DO randomly selects s j ″″∈F p And let the first-order polynomial f″ (j) (u) = -y j +s″ j u, then the data server DS i The corresponding secret share is S(T j ) i =f″ (j) (i),1≤i≤2;
[0061] 2) For T j Each interval R in r , the data owner DO runs the index extraction interval intersection determination algorithm PIID IE Get the polynomial f ′(r) (u) = X′ r +s′ r u, then the data server DS i The corresponding secret share is S(R r ) i =f′ (r) (i), 1≤i≤2;
[0062] 3) For R r Each data value D in rk , the data owner DO runs the index extraction point intersection determination algorithm PPID IE Get f (rk) (u) = X rk +s rk u, and for each data value D rk Assign decimal identifier Y rk , the data owner randomly selects s″′ rk ∈F p And let f″′ (rk) (u) = Y rk +s″′ rk u, then the data server DS i The corresponding secret share is (S(D rk ) i ,S(Y rk ) i )=(f (rk) (i),f″′ (rk) (i));
[0063] Therefore, the secret index in, Finally, the data owner DO will (i,S(I1) i ,…,S(I w ) i ) is sent to the data server DS i ;
[0064] The data user will query the w dimension Transformed into w vectors of length 5, so that the total length of the query vector is 5w, and the query of each dimension It consists of two parts, y′ j Used to represent query attributes, q i Represents the query range corresponding to this dimension; if the data user only wants to query certain intervals, the intervals of unnecessary attributes need to be randomly filled; for queries
[0065] 1)y′ i For matching titles, if the jth attribute is needed, then y′ i =y i ; otherwise randomly select y′ j ≠y j ; then randomly select e j ′∈F p To obtain the first degree polynomial h (j) (u) = y′ j +e j ′u;
[0066] 2) For the query range q j , the point intersection algorithm is used to convert the range into a query vector Q j And get the secret shared polynomial g (j) (u) = Q j +e j u;
[0067] So, the secret query is in Finally, the data user DU will (i,S(Q1) i ,…,S(Q w ) i ) is sent to the data server DS i , i=1,2;
[0068] The data server receives the query request and searches for matching files in collaboration with the verification center VC; specifically:
[0069] 1) For each title T j , DS i Calculate c″(j) (i) = f″ (j) (i)+h (j) (i); and for T j Each interval R in r , DS i Execute the matching interval intersection determination algorithm PIID Match Get c′ (r) (i) = f ′(r) (i)+g (r) (i)
[0070]
[0071] make Finally, the data server DS i (i,l1(i),l2(i),…,l w (i)) sent to the verification center VC for verification;
[0072] 2) For each l j (i), verification center VC uses (i,c″ (j) (i)) Interpolation polynomial ψ (j) (u), where ψ (j) (0) = y′ j -y j ,if:
[0073] a)ψ (j) (0) = 0, continue to j Each (i,c ′(r) (i)),(i,c″ (r) (i)) Run the interval intersection determination algorithm PIID Verify ,if and If the judgment condition of the interval intersection judgment algorithm is met, 1 is returned; otherwise, 0 is returned;
[0074] b)ψ (j) (0)≠0, randomly select an interval and return 1, and return 0 for other intervals;
[0075] 3) After receiving the result from the verification center VC, the data server DS i For interval R r Each data value D in (possibly multiple intervals) rk Execute the matching point intersection determination algorithm PPID Match Get c (rk) (i) = f (rk) (i)+g (j) (i), where R r It is T jThe corresponding result is "1" in the interval; let DS i Let (i,l′1(i),l′2(i),…,l′ w (i)) Send VC to the verification center for verification; if T j If there are multiple intervals in the result corresponding to "1", the data server DS i Repeat the above process for each interval and merge the results into the same l j ′(i);
[0076] 4) The verification center VC compares the result obtained in step 2) with the (i,l′1(i),l′2(i),…,l′ received from the data server w (i)) are combined to handle the following:
[0077] a) For step 2) (j) List T with (0)=0 j The corresponding l j ′(i), use (i,c (rk) (i)) Interpolation polynomial φ (rk) (u); if φ (rk) (0) Satisfy the decision point intersection decision algorithm PPID Verify The judgment condition is to continue using (i,f″′ (rk) (i)) Interpolation polynomial φ ′(rk) (u), where φ ′(rk) (u) = Y rk ; Otherwise, no interpolation; Subsequently, the verification center VC takes the values from the same list T j Add all the Y values obtained in the above formula to get S j =∑Y rk , and S j Convert to the corresponding binary form σ j ;
[0078] b) For ψ in step 2) (j) List T of (0)≠0 j , without doing any calculation;
[0079] c) All binary strings σ j Take the intersection, keep "1" only in the positions that are "1" at the same time in all the strings, and keep the rest as "0", thus obtaining a new binary string σ; the file corresponding to "1" in σ is the file that satisfies the query Q.
[0080] The technical solution of the embodiment of the present invention may have the following beneficial effects:
[0081] The technical solution of the embodiment of the present invention is a distributed multi-dimensional range query method, comprising the following steps: step 1, system initialization, generating system parameters according to preset security parameters; step 2, constructing an index list, and converting the title, interval, data value and file identifier in the interval into corresponding secret shares using secret sharing polynomials to obtain a secret index structure; step 3, converting the query of w dimensions into vectors, and obtaining a secret query vector using secret sharing; step 4, searching for matching files according to the query request. The present invention converts the user's query conditions into corresponding secret shares by presetting security parameters and secret sharing polynomials, thereby realizing the encryption and protection of the user's query information and ensuring the security and reliability of the query process.
[0082] The present invention proposes a new point intersection determination scheme and interval intersection determination scheme, as well as a new index structure. By combining the determination scheme, the index structure and the Shamir threshold scheme, the present invention reduces the communication complexity and improves the query efficiency while protecting the single-dimensional privacy. BRIEF DESCRIPTION OF THE DRAWINGS
[0083] Figure 1 is a flow chart of a distributed multi-dimensional range query method according to an exemplary embodiment;
[0084] Figure 2 is a schematic diagram showing a distributed multi-dimensional range query device according to an exemplary embodiment;
[0085] Figure 3 is a principle block diagram of a distributed multi-dimensional range query system according to an exemplary embodiment;
[0086] Figure 4 It is a flow chart of performing public key searchable encryption using the distributed multi-dimensional range query system of the present invention. DETAILED DESCRIPTION
[0087] The present invention will be further described below in conjunction with the accompanying drawings and embodiments:
[0088] In order to clearly illustrate the technical features of the present solution, the present invention is described in detail below through specific implementation methods and in conjunction with the accompanying drawings. The disclosure below provides many different embodiments or examples for realizing different structures of the present invention. In order to simplify the disclosure of the present invention, the components and settings of specific examples are described below. In addition, the present invention may repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed. It should be noted that the components illustrated in the accompanying drawings are not necessarily drawn to scale. The present invention omits the description of known components and processing techniques and processes to avoid unnecessary limitations on the present invention.
[0089] like Figure 1 As shown, a distributed multi-dimensional range query method provided by an embodiment of the present invention includes the following steps:
[0090] Step 1: System initialization, generating system parameters according to preset safety parameters;
[0091] Step 2, construct an index list, and convert the title, interval, data value in the interval, and file identifier into corresponding secret shares using a secret sharing polynomial to obtain a secret index structure;
[0092] Step 3, convert the query of w dimension into a vector, and use secret sharing to obtain the secret query vector;
[0093] Step 4: Search for matching files according to the query request.
[0094] As a possible implementation of this embodiment, step 1 includes the following steps:
[0095] According to the preset security parameter λ, select a large prime number p and α∈[1,p / 2),β∈(p / 2,p). Assume that the system has N attributes, of which w-1 have attribute values and N-w+1 have no attribute values.
[0096] Randomly select w different integers y1,…,y w ∈[0,p-1] to identify the attribute title, and randomly select N-w+1 different integers H1,…,H n-w+1 ∈[1,p / 2) to mark attributes without values;
[0097] Let public parameter P = p, then secret parameter SP = {α, β, y1, …, y w ,H1,…,H n-w+1}.
[0098] As a possible implementation of this embodiment, in step 2, it is assumed that It is a collection of n data record files in the system, constructing an index list Among them I j represents the jth list and For each I j , T j Represents the title, represents m intervals, is the interval R r Medium r The data value and decimal file identifier pairs are converted into corresponding secret shares using the secret sharing polynomial.
[0099] As a possible implementation of this embodiment, step 2 includes the following steps:
[0100] 1) For each title T j The corresponding value y j , randomly select s″ j ∈F p And let the first-order polynomial f″ (j) (u) = -y j +s″ j u, then the corresponding secret share is S(T j ) i =f″ (j) (i),1≤i≤2;
[0101] 2) For T j Each interval R in r , using the interval intersection determination algorithm to obtain the polynomial f′ (r) (u) = X′ r +s′ r u, then the corresponding secret share is S(R r ) i =f′ (r) (i), 1≤i≤2;
[0102] 3) For R r Each data value D in rk , using the point intersection determination algorithm to obtain f (rk) (u) = X rk +s rk u, and for each data value D rk Assign decimal identifier Y rk , randomly select s″′ rk ∈F p And let f″′ (rk) (u) = Y rk +s″′ rk u, then the corresponding secret share is (S(D rk ) i ,S(Y rk ) i )=(f (rk) (i),f″′ (rk) (i)); get the secret index in,
[0103] As a possible implementation of this embodiment, step 3 includes the following steps:
[0104] The query of w dimension Transformed into w vectors of length 5, so that the total length of the query vector is 5w, and the query of each dimension where y′ jUsed to represent query attributes, q j Represents the query scope corresponding to this dimension;
[0105] y′ j For matching titles, if the jth attribute is needed, then y′ j =y j ; otherwise randomly select y′ j ≠y j ; then randomly select e j ′∈F p To obtain the first degree polynomial h (j) (u) = y′ j +e j ′u;
[0106] For the query range q j , the point intersection algorithm is used to convert the range into a query vector Q j And get the secret shared polynomial g (j) (u) = Q j +e j u;
[0107] Get Secret Lookup in
[0108] As a possible implementation of this embodiment, step 4 includes the following steps:
[0109] 1) For each title T j , calculate c″″ (j) (i) = f″ (j) (i)+h (j) (i); and for T j Each interval R in r , using the interval intersection determination algorithm to obtain c′ (r) (i) = f′ (r) (i)+g (r) (i)
[0110] make for (i,l1(i),l2(i),…,l w (i)) conduct verification;
[0111] 2) For each l j (i), use (i,c″ (j) (i)) Interpolation polynomial ψ (j) (u), where ψ (j) (0) = y′ j -y j ,
[0112] a) If ψ(j) (0) = 0, continue to j Each (i,c′) in (i) (r) (i)),(i,c″ (r) (i)) Run the interval intersection determination algorithm. If and If the judgment condition of the interval intersection judgment algorithm is met, 1 is returned; otherwise, 0 is returned;
[0113] b) If ψ (j) (0)≠0, randomly select an interval and return 1, and return 0 for other intervals;
[0114] 3) After receiving the returned result, r Each data value D in (possibly multiple intervals) rk Using the point intersection determination algorithm to get c (rk) (i) = f (rk) (i)+g (j) (i), where R r It is T j The corresponding result is "1" in the interval; let Send (i,l′1(i),l′2(i),…,l′ w (i)) to verify; if T j If there are multiple intervals in the result corresponding to "1", repeat the above process for each interval and merge the results into the same l j ′(i);
[0115] 4) Compare the result obtained in step 2) with the received (i,l′1(i),l′2(i),…,l′ w (i)) Combined with:
[0116] a) For step 2) (j) List T with (0)=0 j The corresponding l j ′(i), use (i,c (rk) (i)) Interpolation polynomial φ (rk) (u); if φ (rk) (0) The judgment conditions of the point intersection judgment algorithm are met, and (i,f″′) is continued to be used. (rk) (i)) Interpolation polynomial φ′ (rk) (u), where φ ′(rk) (u) = Y rk ; Otherwise, no interpolation; Subsequently, put from the same list T j Add all the Y values obtained in the above formula to get S j =∑Y rk , and S jConvert it into the corresponding binary form σ j ;
[0117] b) For the list T (j) where ψ(0)≠0 in step 2 j , no operation is performed;
[0118] c) Take the intersection of all the binary strings σ j , only keep the positions that are "1" simultaneously in all strings as "1", and the rest as "0", so as to obtain a new binary string σ; then the files corresponding to the "1"s in σ are the files that satisfy the query Q.
[0119] As a possible implementation manner of this embodiment, the point intersection determination algorithm includes:
[0120] Parameter initialization of the point intersection determination algorithm: Select a large prime number p such that all data is in the interval [0, p / 2), randomly select γ∈[1, p / 2), β∈(p / 2, p);
[0121] Index extraction of the point intersection determination algorithm: For the index vector X=(0, -x) corresponding to the index data x, randomly select a two-dimensional vector where is the set of two-dimensional vectors over the finite field F p , and let the linear polynomial f(u)=X+su, where u is the polynomial unknown, then the two secret shares are f(1) and f(2);
[0122] Query extraction of the point intersection determination algorithm: For the query q=(a, b), construct the query vector Q=(β, a, α, b) in the form of ">a, <b", if only querying ">a" or "<b", copy and pad it to 4 dimensions, then the corresponding query vector is Q=(β, a, β, a) or (α, b, α, b); when querying "=a", convert it to the range (a - 1, a + 1), and then randomly select a 4-dimensional vector where is the set of 4-dimensional vectors over the finite field F p , and let the linear polynomial g(u)=Q+eu, then the two secret shares are g(1) and g(2);
[0123] Matching of the point intersection determination algorithm: Calculate
[0124] Intersection determination point intersection determination algorithm: Use the interpolation polynomial φ(u) of (i, c(i)), where φ(0) = X + Q = (φ1, φ2, φ3, φ4). If both φ1 and φ2 belong to (p / 2, p) and both φ3 and φ4 belong to [1, p / 2), or all terms of φ(0) either belong to (p / 2, p) or all belong to [1, p / 2), then the data x satisfies the query q, and return 1; otherwise, it does not satisfy and return 0.
[0125] As a possible implementation manner of this embodiment, the interval intersection determination algorithm includes:
[0126] Parameter initialization interval intersection determination algorithm: Select a large prime number p such that all data is in the interval [0, p / 2), and randomly select [1, p / 2), β ∈ (p / 2, p);
[0127] Index extraction interval intersection determination algorithm: For the index vector X′ = (0, -x2, 0, -x1) corresponding to the index range (x1, x2), randomly select a 4D vector And let the linear polynomial f′(u) = X′ + s′u, then the two secret shares are f′(1) and f′(2) respectively;
[0128] Query extraction interval intersection determination algorithm: For the query q = (a, b), construct the query vector Q = (β, a, α, b) in the form of ">a, <b". If only querying ">a" or "<b", copy and fill it into 4D, then the corresponding query vector is Q = (β, a, β, a) or (α, b, α, b); when querying "=a", convert it to the range (a - 1, a + 1), and then randomly select a 4D vector where is the set of 4D vectors over the finite field F p ; and let the linear polynomial g(u) = Q + eu, then the two secret shares are g(1) and g(2) respectively;
[0129] Matching interval intersection determination algorithm: Calculate c′(i) = f′(i) + g(i),
[0130] Determination interval intersection determination algorithm: Use the interpolation polynomial of (i, c′(i)) where If and both belong to (p / 2, p) and and both belong to [1, p / 2), return 1; otherwise, continue to use the interpolation polynomial of (i, c″″(i)) where if and All belong to [1,p / 2), or and If both belong to (p / 2,p), return 1; otherwise return 0; returning 1 means that the index range (x1,x2) satisfies the query; returning 0 means it does not satisfy the query.
[0131] In a second aspect, an embodiment of the present invention provides a distributed multi-dimensional range query device, including:
[0132] Initialization module, used for system initialization, generating system parameters according to preset safety parameters;
[0133] An index construction module is used to construct an index list and convert the title, interval, data value in the interval and file identifier into corresponding secret shares using a secret sharing polynomial to obtain a secret index structure;
[0134] The query conversion module is used to convert the query of w dimensions into a vector and obtain the secret query vector using secret sharing;
[0135] The file search module is used to search for matching files according to the query request.
[0136] like Figure 3 As shown, a distributed multi-dimensional range query system provided by an embodiment of the present invention includes a data owner DO, a data user DU, a cloud platform CP and a verification center VC, wherein the cloud platform includes a data server DS1 and a data server DS2;
[0137] The verification center VC generates system parameters according to the preset security parameters λ, and transmits the system parameters to the data owner and data user through a secure channel;
[0138] Assumptions It is a collection of n data record files in the system, and the data owner constructs an index list Among them I j represents the jth list and For each I j , T j Represents the title, represents m intervals, is the interval R r Medium r data value and decimal file identifier pairs; the data owner uses the secret sharing polynomial to convert them into corresponding secret shares and sends them to the data server;
[0139] The data user will query the w dimension Convert it into w vectors of length 5, so that the total length of the query vector is 5w, and the query for each dimension consists of two parts, where y′ j is used to represent the query attribute, q j represents the query range corresponding to this dimension;
[0140] The data server receives the query request and collaborates with the verification center VC to search for matching files.
[0141] Before presenting the distributed multi-dimensional range query system, first determine two schemes: the point intersection determination algorithm (to determine whether a point is contained in an interval) and the interval intersection determination algorithm (to determine whether two ranges intersect).
[0142] Set all data not exceeding p / 2, where p is the large prime number used in the scheme. To encode the index data and queries as vectors, encode "=" as 0, and randomly select integers α ∈ [1, p / 2), β ∈ (p / 2, p) to encode "<" and ">" respectively. For the index data x, obtain the index vector X = (0, -x) according to the form of "=x". For the queries =a, >a, <a, the query vectors Q are "(0, a), (β, a), (α, a)" respectively. Finally, determine whether each term of the sum vector Q + X mod p is within a fixed range to judge whether the data satisfies the query.
[0143] Based on the above idea, a point intersection determination algorithm (PPID) scheme under privacy protection is proposed by combining the Shamir threshold scheme. Since the subsequent system uses 2 data servers, the index determination scheme divides the secret into two parts. The PPID scheme includes the following five algorithms:
[0144] Algorithm 1: Parameter initialization (Setup), i.e., PPID Setup . Select a large prime number p such that all data is in the interval [0, p / 2). Randomly select α ∈ [1, p / 2), β ∈ (p / 2, p).
[0145] Algorithm 2: Index extraction (IE), i.e., PPID IE . For the index vector X = (0, -x) corresponding to the index data x, randomly select a two-dimensional vector where is the set of two-dimensional vectors over the finite field F p Let the linear polynomial f(u) = X + su, where u is the polynomial unknown. Then the two secret shares are f(1) and f(2).
[0146] Algorithm 3: Query extraction (QE), i.e., PPID QEFor the query q = (a, b), construct the query vector Q = (β, a, α, b) in the form of ">a, <b". If only ">a" or "<b" is queried, copy and pad it to 4 dimensions, and the corresponding query vectors are Q = (β, a, β, a) or (α, b, α, b). When querying "=a", convert it to the range (a - 1, a + 1). Then, randomly select a 4-dimensional vector where is the set of 4-dimensional vectors over the finite field F p . Let the linear polynomial g(u) = Q + eu, then the two secret shares are g(1) and g(2) respectively.
[0147] Algorithm Four: Match, i.e., PPID Match . Calculate
[0148] Algorithm Five: Verify, i.e., PPID Verify . Use (i, c(i)) to interpolate the polynomial φ(u), where φ(0) = X + Q = (φ1, φ2, φ3, φ4). If both φ1 and φ2 belong to (p / 2, p) and both φ3 and φ4 belong to [1, p / 2), or all terms of φ(0) either belong to (p / 2, p) or belong to [1, p / 2), then the data x satisfies the query q, return 1; otherwise, return 0.
[0149] Similarly, a privacy-preserving interval intersection determination (PIID) scheme also needs to be given, and this scheme also includes five algorithms:
[0150] Algorithm One: Setup, i.e., PIID Setup . The same as the PPID Setup scheme.
[0151] Algorithm Two: Index Extraction (IE), i.e., PIID IE . For the index vector X' = (0, -x2, 0, -x1) corresponding to the index range (x1, x2), randomly select a 4-dimensional vector and let the linear polynomial f'(u) = X' + s'u. Then the two secret shares are f'(1) and f'(2) respectively.
[0152] Algorithm Three: Query Extraction (QE), i.e., PIID QE . The same as the PPID QE scheme.
[0153] Algorithm Four: Match, i.e., PIID Match . Calculate c'(i) = f'(i) + g(i),
[0154]
[0155] Algorithm 5: Verify, i.e. PIID Verify . Use the (i,c′(i)) interpolation polynomial in if and All belong to (p / 2,p) and and If both belong to [1,p / 2), return 1; otherwise continue to use the (i,c″(i)) interpolation polynomial in if and All belong to [1,p / 2), or and If both of them belong to (p / 2,p), return 1; otherwise return 0. Therefore, returning 1 means that the index range (x1,x2) satisfies the query; returning 0 means it does not.
[0156] In order to implement range search more efficiently, multiple lists are classified according to the attributes in the data record to obtain a comprehensive index list (CIL). In CIL, data values with the same attribute keyword are assigned to an index list. For example, all "Age" data form a list, and all data values are randomly assigned to different intervals. The index list is divided into three layers: attribute title (that is, attribute keyword "Age"), interval, and data value of each interval. In order to obtain matching data record files, the file identifier corresponding to each data value is also embedded in the index list. For example, when the system has 20 data record files, the identifiers corresponding to the files are f1, f2, ..., f 20. CIL uses the "01" string to identify whether a file has a certain data value. If file f1 and file f4 correspond to "Age 2", the binary string corresponding to "2" is "10010000000000000000". Under the privacy protection mechanism, CIL converts the binary string to decimal. Then "Age2" corresponds to "589824". Similarly, if "Age 5" corresponds to the decimal number "49152", it is equivalent to the binary string "00001100000000000000". This means that files f5 and f6 correspond to "Age 5", while the age values of other files are not "5". Keywords without attribute values (such as "Male, Female, etc.") are assigned to the same index list. To be consistent with other index lists, CIL defines the list title as "Other" and uses different random numbers to mark different attributes. For example, "Male, Female" are assigned to "5" and "7". Then the interval is randomly divided and the file identifier "01" string of each attribute is converted into a decimal number. For example, the query "Other(4,6)" means to retrieve the file corresponding to "Male".
[0157] The distributed multi-dimensional range query system combines the PIID scheme, the PPID scheme and the CIL list, wherein each index position in the CIL list is stored in the data server in the form of a corresponding secret share. Figure 3 As shown, the distributed multi-dimensional range query system includes four types of entities: data owner (DO), data user (DU), cloud platform (CP) and verification center (VC), among which the cloud platform contains 2 data servers (DS1 and DS2).
[0158] like Figure 3 and Figure 4 As shown, the process of performing distributed multi-dimensional range query using the distributed multi-dimensional range query system of the present invention includes five steps: initialization, index construction, query construction, search and verification.
[0159] Step 1: System initialization. VC generates system parameters based on the preset safety parameter λ; then, it transmits the system parameters to DO and DU through the safety channel. It includes the following sub-steps:
[0160] According to the preset security parameter λ, VC selects a large prime number p and α∈[1,p / 2),β∈(p / 2,p). Assume that the system has N attributes, of which w-1 have attribute values and N-w+1 have no attribute values. Randomly select w different integers y1,…,y w ∈[0,p-1] to identify the attribute title, and randomly select N-w+1 different integers H1,…,Hn-w+1 ∈[1,p / 2) to mark attributes without values; let the public parameter P = p, then the secret parameter SP = {α, β, y1,…, y w ,H1,…,H n-w+1}; Finally, the verification center VC sends SP to DO and DU.
[0161] Step 2: Generate index. Assume Is a collection of n data record files in the system, DO constructs an index list Among them I j represents the jth list and For each I j , T j Represents the title, represents m intervals, is the interval R r Medium r data value and decimal file identifier pairs; finally, DO uses the secret sharing polynomial to convert them into corresponding secret shares and sends them to DS1 and DS2. It includes the following sub-steps:
[0162] 1) For each title T j The corresponding value y j , DO randomly selects s″ j ∈F p And let the first-order polynomial f″ (j) (u) = -y j +s″ j u, then the data server DS i The corresponding secret share is S(T j ) i =f″ (j) (i),1≤i≤2;
[0163] 2) For T j Each interval R in r ,DO run PIID IE Get the polynomial f′ (r) (u) = X′ r +s′ r u, then the data server DS i The corresponding secret share is S(R r ) i =f′ (r) (i), 1≤i≤2;
[0164] 3) For R r Each data value D in rk ,DO run PPID IE Get f (rk) (u) = X rk+s rk u, and for each data value D rk Assign decimal identifier Y rk , the data owner randomly selects s″′ rk ∈F p And let f″′ (rk) (u) = Y rk +s″′ rk u, then the data server DS i The corresponding secret share is (S(D rk ) i ,S(Y rk ) i )=(f (rk) (i),f″′ (rk) (i)).
[0165] Therefore, the secret index is in,
[0166] Finally, DO will (i,S(I1) i ,…,S(I w ) i ) is sent to the data server DS i .
[0167] Step 3: Query generation. DU generates the query of dimension w Transformed into w vectors of length 5, so that the total length of the query vector is 5w. It consists of two parts, y′ j Used to represent query attributes, q j Represents the query range corresponding to this dimension. If the user only wants to query certain intervals, the intervals of unnecessary attributes need to be randomly filled. It includes the following sub-steps:
[0168] 1)y′ j For matching titles, if DU requires the jth attribute, then y′ j =y j ; otherwise randomly select y′ j ≠y j ; then randomly select e j ′∈F p To obtain the first degree polynomial h (j) (u) = y′ j +e j ′u;
[0169] 2) For the query range q j , DU executes PPID QE Convert the range to a query vector Q jAnd get the secret shared polynomial g (j) (u) = Q j +e j u;
[0170] So, the secret query is in Finally, DU will (i,S(Q1) i ,…,S(Q w ) i ) is sent to the data server DS i , i=1,2.
[0171] Step 4: Search. DS i Receive query requests and search for matching files in collaboration with VC, which includes four sub-steps:
[0172] 1) For each title T j , DS i Calculate c″ (j) (i) = f″ (j) (i)+h (j) (i); and for T j Each interval R in r , DS i Execute PIID Match Get c′ (r) (i) = f′ (r) (i)+g (r) (i)
[0173] make Finally, the data server DS i (i,l1(i),l2(i),…,l w (i))Sent to VC.
[0174] 2) For each l j (i), VC uses (i,c″ (j) (i)) Interpolation polynomial ψ (j) (u), where ψ (j) (0) = y′ j -y j ,if:
[0175] a)ψ (j) (0) = 0, continue to j Each (i,c′) in (i) (r) (i)),(i,c″ (r) (i)) Run PIID verify ,if and If the judgment condition of the interval intersection judgment algorithm is met, 1 is returned; otherwise, 0 is returned;
[0176] b)ψ (j) (0)≠0, randomly select an interval and return 1, and return 0 for other intervals;
[0177] 3) After receiving the result from VC, DS i For interval R r Each data value D in (possibly multiple intervals) rk Execute PPID Match Get c (rk) (i) = f (rk) (i)+g (j) (i), where R r It is T j The corresponding result is "1" in the interval; let DS i Let (i,l′1(i),l′2(i),…,l′ w (i)) Send VC to the verification center for verification; if T j There are multiple intervals in which the result is "1", then DS i Repeat the above process for each interval and merge the results into the same l j ′(i). This means that l j ′(i) contains the index list T j The data in all intervals corresponding to "1" in .
[0178] 4) VC compares the result obtained in step 2) with the (i,l′1(i),l′2(i),…,l′ received from the data server w (i)) Combined to handle the following:
[0179] a) For step 2) (j) List T with (0)=0 j The corresponding l j ′(i), use (i,c (rk) (i)) Interpolation polynomial φ (rk) (u); if φ (rk) (0)Meet PPID Verify The judgment condition is to continue using (i,f″′ (rk) (i)) Interpolation polynomial φ′ (rk) (u), where φ′ (rk) (u) = Y rk ; Otherwise no interpolation; Subsequently, VC takes the values from the same list T j Add all the Y values obtained in the above formula to get S j =∑Y rk , and Sj Convert to the corresponding binary form σ j ;
[0180] b) For ψ in step 2) (j) List T of (0)≠0 j , without doing any calculation;
[0181] c) All binary strings σ j Take the intersection, keep "1" only in the positions that are "1" at the same time in all the strings, and keep the rest as "0", thus obtaining a new binary string σ; the file corresponding to "1" in σ is the file that satisfies the query Q.
[0182] The point intersection determination (PPID) scheme and interval intersection determination (PIID) scheme proposed in the present invention can be applied to multiple fields (such as searchable encryption, private information retrieval, etc.) as the underlying matching technology; the proposed comprehensive index list can also be used as a separate index structure in other range search schemes; the determination scheme, the comprehensive index list (CIL) and the Shamir threshold scheme are combined to perform distributed multi-dimensional range queries, which achieves high efficiency and low communication overhead while ensuring single-dimensional privacy, which has been confirmed by experiments.
[0183] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A distributed multi-dimensional range query method, characterized in that: The following steps are involved: Step 1: System initialization, generating system parameters according to preset safety parameters; Step 2, construct an index list, and convert the title, interval, data value in the interval, and file identifier into corresponding secret shares using a secret sharing polynomial to obtain a secret index structure; Step 3: Convert the query of w dimensions into w vectors and use secret sharing to obtain the secret query vector; Step 4: Search for matching files according to the query request.
2. The distributed multi-dimensional range query method according to claim 1, characterized in that: The step 1 comprises the following steps: According to the preset security parameter λ, a large prime number p is selected and α∈[1, p / 2), β∈(p / 2, p). Assume that the system has N attributes, of which w-1 have attribute values and N-w+1 have no attribute values. Randomly select w different integers y1, ..., y w ∈[0, p-1] to identify the attribute title, and randomly select N-w+1 different integers H1,...,H n-w+1 ∈[1, p / 2) to mark attributes without values; Let public parameter P = p, then secret parameter SP = {α, β, y1, ..., y w , H1, ..., H n-w+1 }.
3. The distributed multi-dimensional range query method according to claim 2, characterized in that: In step 2, assume that It is a collection of n data record files in the system, constructing an index list Among them I i represents the jth list and For each I j , T j Represents the title, represents m intervals, is the interval R r Medium r The data value and decimal file identifier pairs are converted into corresponding secret shares using the secret sharing polynomial.
4. The distributed multi-dimensional range query method according to claim 3, characterized in that: The step 2 comprises the following steps: 1) For each title T j The corresponding value y j , randomly select s″ j ∈F p And let the first-order polynomial f″ (j) (u) = -y j +s″ j u, then the corresponding secret share is S(T j ) i =f″ (j) (i), 1≤i≤2; 2) For T j Each interval R r , using the interval intersection determination algorithm to obtain the polynomial f′ (r) (u) = X′ r +s′ r u, then the corresponding secret share is S(R r ) i =f′ (r) (i), 1≤i≤2; 3) For R r Each data value D in rk , using the point intersection determination algorithm to obtain f (rk) (u) = X rk +s rk u, and for each data value D rk Assign decimal identifier Y rk , randomly select s″′ rk ∈F p And let f′″ (rk) (u) = Y rk +s″′ rk u, then the corresponding secret share is (S(D rk ) i ,S(Y rk ) i )=(f (rk) (i), f′″ (rk) (i)); get the secret index in, 5. The distributed multi-dimensional range query method according to claim 4, characterized in that: The step 3 comprises the following steps: The query of w dimension Transformed into w vectors of length 5, so that the total length of the query vector is 5w, and the query of each dimension where y′ j Used to represent query attributes, q j Represents the query scope corresponding to this dimension; y′ j For matching titles, if the jth attribute is needed, then y′ j =y j ; otherwise randomly select y′ j ≠y j ; Then randomly select e′ j ∈F p To obtain the first degree polynomial h (j) (u) = y′ j +e′ j u; For the query range q j , the point intersection algorithm is used to convert the range into a query vector Q j And get the secret shared polynomial g (j) (u) = Q j +e j u; Get Secret Lookup in 6. The distributed multi-dimensional range query method according to claim 5, characterized in that: The step 4 comprises the following steps: 1) For each title T j , calculate c″ (j) (i) = f′′ (j) (i)+h (j) (i); and for T j Each interval R r , using the interval intersection determination algorithm to obtain c′ (r) (i) = f′ (r) (i)+g (r) (i) make For (i, l1(i), l2(i),..., l w (i)) conduct verification; 2) For each lj(i), use (i, c″ (j) (i)) Interpolation polynomial ψ (j) (u), where ψ (j) (0) = y′ j -y j , a) If ψ (j) (0) = 0, continue to j Each (i, c′) in (i) (r) (i)), (i, c″ (r) (i)) Run the interval intersection determination algorithm. If and If the judgment condition of the interval intersection judgment algorithm is met, 1 is returned; otherwise, 0 is returned; b) If ψ (j) (0)≠0, randomly select an interval and return 1, and return 0 for other intervals; 3) After receiving the returned result, r Each data value D in rk Using the point intersection determination algorithm to get c (rk) (i) = f (rk) (i)+g (j) (i), where R r It is T j The corresponding result is "1" in the interval; let Send (i, l′1(i), l′2(i), ..., l′ w (i)) to verify; if T j If there are multiple intervals in l' that correspond to the result "1", repeat the above process for each interval and merge the results into the same l' j (i) in; 4) Compare the result obtained in step 2) with the received (i, l′1(i), l′2(i), ..., l′ w (i)) Combined with: a) For step 2) (j) List T with (0)=0 j The corresponding l′ j (i), use (i, c (rk) (i)) Interpolation polynomial φ (rk) (u); if φ (rk) (0) If the conditions of the point intersection determination algorithm are met, continue to use (i, f′″ (rk) (i)) Interpolation polynomial φ′ (rk) (u), where φ′ (rk) (u) = Y rk ; Otherwise, no interpolation; Subsequently, put from the same list T j Add all the Y values obtained in the above formula to get S j =∑Y rk , and S j Convert to the corresponding binary form σ j ; b) For ψ in step 2) (j) List T of (0)≠0 j , without doing any calculation; c) All binary strings σ j Take the intersection, keep "1" only in the positions that are "1" at the same time in all the strings, and keep the rest as "0", thus obtaining a new binary string σ; the files corresponding to "1" in σ are the files that satisfy the query Q.
7. The distributed multi-dimensional range query method according to any one of claims 4 to 6, characterized in that: The point intersection determination algorithm includes: Parameter initialization point intersection determination algorithm: select a large prime number p so that all data are in the interval [0, p / 2), randomly select [1, p / 2), β∈(p / 2, p); Index extraction point intersection determination algorithm: For the index vector X = (0, -x) corresponding to the index data x, randomly select the vector two-dimensional in is a set of two-dimensional vectors over the finite field Fp, and let the first-order polynomial f(u) = X + su, u is the unknown quantity of the polynomial, then the two secret shares are factory (1) and factory (2); Query extraction point intersection determination algorithm: For query \(q=(a,b)\), construct query vector \(Q = (\beta,a,\alpha,b)\) in the form of "\(>a, <b\)". If only querying "\(>a\)" or "\(<b\)", copy and pad it to 4 - dimensional, then the corresponding query vectors are \(Q = (\beta,a,\beta,a)\) or \((\alpha,b,\alpha,b)\); when querying "\(=a\)", convert it to the range \((a - 1,a + 1)\), and then randomly select a 4 - dimensional vector where is the set of 4 - dimensional vectors over the finite field \(F\) p ; and let the linear polynomial \(g(u)=Q + eu\), then the two secret shares are \(g(1)\) and \(g(2)\) respectively Matching point intersection determination algorithm: calculation Decision point intersection decision algorithm: Use (i, c(i)) to interpolate the polynomial φ(u), where φ(0) = X + Q = (φ1, φ2, φ3, φ4). If φ1 and φ2 both belong to (p / 2, p) and φ3 and φ4 both belong to [1, p / 2), or all items in (0) either belong to (p / 2, p) or belong to [1, p / 2), then the data x satisfies the query q and returns 1; otherwise, it does not satisfy the query and returns 0.
8. The distributed multi-dimensional range query method according to any one of claims 4 to 6, characterized in that: The interval intersection determination algorithm includes: Parameter initialization interval intersection determination algorithm: select a large prime number p so that all data are in the interval [0, p / 2), randomly select [1, p / 2), β∈(p / 2, p); Index extraction interval intersection determination algorithm: For the index vector X′=(0, -x2, 0, -x1) corresponding to the index range (x1, x2), randomly select a 4-dimensional vector Let the first-order polynomial f′(u)=X′+s′u, then the two secret shares are f′(1) and f′(2); Query extraction interval intersection determination algorithm: For query q = (a, b), construct query vector Q = (β, a, α, b) in the form of ">a, <b". If only querying ">a" or "<b", copy and pad it to 4 dimensions, then the corresponding query vectors are Q = (β, a, β, a) or (α, b, α, b); when querying "=a", convert it to the range (a - 1, a + 1), and then randomly select a 4-dimensional vector where is the set of 4-dimensional vectors over the finite field F p ; and let the linear polynomial g(u) = Q + eu, then the two secret shares are g(1) and g(2) respectively; Matching interval intersection determination algorithm: calculate c′(i)=f′(i)+g(i), Intersection determination algorithm: using (i, c′(i)) interpolation polynomial in if and All belong to (p / 2, p) and and If both belong to [1, p / 2), return 1; otherwise continue to use the (i, c″(i)) interpolation polynomial in if and All belong to [1, p / 2), or and If both belong to (p / 2, p), return 1; otherwise return 0; returning 1 means that the index range (x1, x2) satisfies the query; returning 0 means it does not satisfy the query.
9. A distributed multi-dimensional range query device, characterized in that: include: Initialization module, used for system initialization, generating system parameters according to preset safety parameters; An index construction module is used to construct an index list and convert the title, interval, data value in the interval and file identifier into corresponding secret shares using a secret sharing polynomial to obtain a secret index structure; The query conversion module is used to convert the query of w dimensions into a vector and obtain the secret query vector using secret sharing; The file search module is used to search for matching files according to the query request.
10. A distributed multi-dimensional range query system, characterized in that: It includes data owners, data users, cloud platform and verification center VC, where the cloud platform contains 2 data servers; The verification center VC generates system parameters according to the preset security parameters λ, and transmits the system parameters to the data owner and data user through a secure channel; Assumptions It is a collection of n data record files in the system, and the data owner constructs an index list Among them I j represents the jth list and For each I j , T j Represents the title, represents m intervals, is the interval R r Medium r data value and decimal file identifier pairs; the data owner converts them into corresponding secret shares using a secret sharing polynomial and sends them to the data server; The data user will query the w dimension Transformed into w vectors of length 5, so that the total length of the query vector is 5w, and the query of each dimension It consists of two parts, y′ j Used to represent query attributes, q j Represents the query scope corresponding to this dimension; The data server receives the query request and searches for matching files in collaboration with the verification center VC.
