A privacy information retrieval protocol formulation method, storage medium and device

By using the homomorphic encryption algorithm and the LWE cryptographic algorithm in the private information retrieval protocol, the problem of low privacy information retrieval efficiency in a single server environment is solved, achieving smaller communication and computing costs, and improving retrieval efficiency.

CN115378573BActive Publication Date: 2024-10-15NO 30 INST OF CHINA ELECTRONIC TECH GRP CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210866619.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-22
Publication Date
2024-10-15
Estimated Expiration
2042-07-22

AI Technical Summary

Technical Problem

Existing privacy information retrieval protocols are difficult to achieve efficient retrieval with small communication costs and computing costs, especially in a single-server environment where computing security and efficiency are difficult to balance.

Method used

Adopting a private information retrieval protocol based on homomorphic encryption algorithm, the client and server jointly define system parameters, and use the BFV homomorphic encryption algorithm and LWE cryptographic algorithm to generate and process ciphertext, reducing the communication cost and server calculation in the query phase. cost.

Benefits of technology

It improves the preprocessing efficiency of the user side, shortens the query information calculation time and communication time of the user side, reduces the calculation feedback cost of the server side, and achieves a balance between network communication and calculation costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115378573B_ABST
    Figure CN115378573B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of privacy information retrieval, and discloses a privacy information retrieval protocol formulation method based on homomorphic encryption algorithm, storage medium and device. The privacy information retrieval protocol design method includes the following steps: S1, client and server initialize system parameters, and perform preprocessing on homomorphic encryption algorithm and database respectively; S2, query and response interaction between client and server: first, the client sends "expected retrieval data position i0 in ciphertext form" to the server as a request, requesting to obtain the ciphertext data of the position to be retrieved in the database; secondly, the server responds based on the request and the database information it has; finally, the client decrypts the response ciphertext to obtain the data to be retrieved. The present invention solves the problems existing in the prior art that it is difficult to achieve efficient retrieval at a relatively low communication cost and a relatively low computing cost at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of privacy information retrieval, and in particular to a privacy information retrieval protocol formulation method, storage medium and device. Background Art

[0002] Private Information Retrieval (PIR) is a key component of many privacy protection systems. Its goal is to ensure that the client can successfully retrieve the data it needs from the database while ensuring that the database server does not know what data the client has retrieved. There are many specific application scenarios in practice, for example: patients want to query the treatment of a certain disease through the medical system, but do not want to disclose information such as the "disease name"; in the patent application process, if a user wants to query whether a patent already exists, he must first submit the domain name or patent information he applied for to the relevant database, and this information involves the user's privacy; in the securities market, a user wants to query a certain stock information, but does not want to disclose which stock he is interested in; and so on.

[0003] PIR protocols can be divided into two categories: Information-Theoretic PIR and Computational PIR. The former requires multiple servers to build the protocol and needs to ensure that a certain number of servers cannot collude, so it is not very practical, but such protocols can guarantee absolute security, that is, the user's privacy can still be guaranteed under the assumption that the attacker's computing power is infinite. The latter builds the protocol based on mathematically difficult problems and cryptographic schemes and only requires one server, but such protocols are relatively inefficient and can only guarantee relative security, that is, the user's privacy can only be guaranteed under the assumption that the attacker's computing power is polynomial time.

[0004] In practical applications, users and researchers are more concerned about how to improve retrieval efficiency as much as possible while ensuring security. However, for private information retrieval protocols, there are five main factors that affect the efficiency of retrieval: (1) the computational time of the client to generate the query ciphertext; (2) the communication time required to send the query ciphertext to the server; (3) the computational time of the server to generate the response ciphertext; (4) the communication time required to send the response ciphertext to the client; (5) the computational time of the client to decrypt and decode the response ciphertext. The main goal of this invention is to propose an efficient and practical private information retrieval protocol based on homomorphic encryption algorithm.

[0005] Private information retrieval was first proposed by Chor et al. in 1995, mainly raising two questions: First, if the server cannot obtain information about user needs, can the client still get the data it needs to retrieve from the server? Second, is this method more efficient than asking the client to download the entire database? After that, after years of research by scholars at home and abroad, many private information retrieval protocols have been proposed, which can give positive answers to the above two questions. It is worth noting that the efficiency of many Computational PIRs is lower than the efficiency of local retrieval after the client directly downloads the entire database, until the emergence of Computational PIR based on lattice cryptography; in recent years, the most efficient Computational PIRs are single-server private information retrieval protocols built on fully homomorphic cryptographic schemes.

[0006] XPIR (see "C. Aguilar-Melchor, J. Barrier, L. Fousse, and M. -O. Killijian. XPIR: Private information retrieval for everyone. In Proceedings of the Privacy Enhancing Technologies Symposium (PETS), July 2016.") is a single-server privacy information retrieval protocol with relatively high computational efficiency in practice. Its key idea is: encryption and homomorphic operations are performed based on a lattice cryptographic system. The query sent by the client to the server consists of ciphertext polynomials, so all operations involved in the server are completed on the polynomials. The scheme is based on the Chinese Remainder Theorem CRT and NTT technology to parallelize the calculations between polynomials, thereby achieving the purpose of improving computational efficiency; however, large-scale queries still bring about a large communication cost.

[0007] SealPIR (see Sebastian Angel, Hao Chen, Kim Laine, and Srinath T.V. Setty. 2018. PIR with Compressed Queries and Amortized Query Processing. In 2018 IEEE Symposium on Security and Privacy. IEEE Computer Society, San Francisco, California, USA, 962–979) improves the XPIR protocol and introduces a method to increase the communication cost of the PIR protocol. In order to reduce the network cost in the query phase, the query generated by the client consists of only one ciphertext polynomial, which greatly reduces the communication cost; however, in order to generate the response ciphertext, the server introduces an operation based on the complete binary tree to expand the query ciphertext. This stage brings a large number of ciphertext homomorphic operations, which greatly increases the computational cost. Summary of the invention

[0008] In order to overcome the shortcomings of the prior art, the present invention provides a method, storage medium and device for formulating a privacy information retrieval protocol based on a homomorphic encryption algorithm, which solves the problems existing in the prior art, such as the difficulty in achieving efficient retrieval with both low communication cost and low computing cost.

[0009] The technical solution adopted by the present invention to solve the above problems is:

[0010] A method for designing a privacy information retrieval protocol based on a homomorphic encryption algorithm includes the following steps:

[0011] S1, the client and server initialize system parameters and perform preprocessing on the homomorphic encryption algorithm and database respectively;

[0012] S2, query and response interaction between the client and the server: First, the client sends "expecting to retrieve the ciphertext form of the data position i0" to the server as a request, requesting to obtain the ciphertext data of the position to be retrieved in the database; secondly, the server responds based on the request and the database information it has; finally, the client decrypts the response ciphertext to obtain the data to be retrieved.

[0013] As a preferred technical solution, step S1 includes the following steps:

[0014] S11, the client and the server jointly define system parameters;

[0015] S12, the client constructs the BFV homomorphic encryption algorithm and performs parameter initialization settings on the algorithm;

[0016] S13, the server performs pre-processing settings on the database, defining: database DB = {q i |i∈ID}, where q i represents the plaintext data stored at the ith position in the database, ID={0, 1, ..., n-1} represents the set of all data position subscripts, and n represents the total amount of data stored in the database DB.

[0017] As a preferred technical solution, step S11 includes the following steps:

[0018] S111, the client and the server jointly define the parameter settings of the cryptographic algorithm based on RLWE: the security parameter is λ; t represents the modulus of the plaintext polynomial, t>1 and t is an integer; q=Δ·t+r t (q) represents the modulus of the ciphertext polynomial, where r t (q) = q mod t is the remainder term, and the parameter N = N(λ) is the order of the polynomial, and N ≥ n; R = Z[x] / (x N +1) represents the integer polynomial ring, R q =Z q [x] / (x N +1) represents the integer polynomial ring with coefficients modulo q, R t =Z t [x] / (x N +1) represents the ring of integer polynomials with coefficients modulo t;

[0019] S112, the client and the server jointly define the parameter settings based on the LWE cryptographic algorithm: the security parameter is λ, N represents the dimension of the vector, and N ≥ n; q is an integer and represents the modulus of the ciphertext vector; Z q represents an integer modulo q, Z q N represents an N-dimensional integer vector whose elements are modulo q;

[0020] S113, the client and the server jointly define two functions: and g -1 : And these two functions satisfy All have g·g -1 (a)=a, where, Represents the ring of integer polynomials with coefficients modulo q in dimension d.

[0021] As a preferred technical solution, step S12 includes the following steps:

[0022] S121, the client builds the BFV homomorphic encryption algorithm based on Decision-RLWE and generates a key

[0023] Among them, s and s′ are q Two random polynomials are selected from the above, let s = s0 + s1x + s2x 2 +…+S N-1 x N-1 , s′=s0′+s1′x+s2′x 2 +…+S N-1 'x N-1 , and {s i ,s i ′∈Z q |i={0,1,...,N-1}} represents the coefficients of polynomials s and s′; extracting the coefficients of the polynomials yields two vectors and

[0024] S122, the client generates N switching keys, the i-th switching key is represented as evk i ,evk i It consists of two parts, k0 and k1, namely: (evk i =[k0|k1], i∈{0, 1, ..., N-1}), and the formulas for k0 and k1 are: Afterwards, the client transmits these N switching keys to the server to support subsequent calculations on the server;

[0025] Among them, k1 represents A polynomial uniformly randomly selected from i Represents χ d The error polynomial randomly selected on d represents the d-dimensional χ, χ represents the error distribution defined on R, U(·) represents the uniform distribution, S i It represents the new polynomial generated by changing the position and sign of the coefficients of polynomial s. The specific formula is:

[0026]

[0027] Extract the above polynomials S0, S1, S2, ..., S N-1 The coefficients of

[0028]

[0029] As a preferred technical solution, step S2 includes the following steps:

[0030] S21, the client generates the query ciphertext ct based on the polynomial multiplication characteristics and the BFV homomorphic encryption algorithm query ;

[0031] S22, the client will query the ciphertext ct query Send to the server;

[0032] S23, the server expands the ciphertext based on the LWE-LWE ciphertext switching technology Then calculate and generate feedback information ct respond ;

[0033] S24, the server will feedback information ct respond Send to the client;

[0034] S25, the client executes the decryption algorithm Dec(ct respond , sk), and get the corresponding retrieval data when the expected retrieval data position number is i0

[0035] Specifically:

[0036] For feedback information respond Perform the decryption decoding operation and take the coefficients of the polynomial s' to form a vector Calculated by the following formula:

[0037]

[0038] Among them, i∈{0, 1, ..., n-1} represents the position number of each data in the database, q i Indicates the plaintext data stored at the i-th position in the database, ct i ″′ is ct respond An item in the expansion represents an LWE ciphertext, and mi∈{0,1} represents the i-th coefficient in the plaintext polynomial m.

[0039] As a preferred technical solution, step S21 includes the following steps:

[0040] S211, the client executes the encoding algorithm Encode(i0)→m: encodes the position number i0 of the data to be retrieved and generates a plaintext polynomial m∈R t :

[0041]

[0042] S212, the client executes the encryption algorithm Enc(m, sk)→ct query :Based on the BFV homomorphic encryption algorithm, the plaintext polynomial m is encrypted using the key sk to generate an RLWE ciphertext And the formulas for c0 and c1 are as follows:

[0043]

[0044] Among them, RLWE ciphertext refers to the ciphertext generated by the homomorphic encryption algorithm based on the Decision-RLWE difficulty problem. Represents 2D R q Polynomial, a is R q A polynomial randomly selected from the definition a=a0+a1x+a2x 2 +…+a N-1 x N-1 ; e is a polynomial randomly selected from uniform distribution χ, and e=e0+e1x+e2x 2 +…+e N-1 x N-1 ; Based on the polynomial multiplication characteristics, definition represents the coefficient of the polynomial c0; s i-j and N+i-j Represents the coefficients of the key polynomial s.

[0045] As a preferred technical solution, step S23 includes the following steps:

[0046] S231, the server executes the ciphertext expansion algorithm The server will receive a single ciphertext ct query It is expanded to consist of N Decision-LWE-based ciphertexts (referred to as “LWE ciphertexts”) {ct0″′, ct1″′, ..., ct N-1 ″′} composed of a vector Right now and The i0th ciphertext is Enc(1), and the remaining ciphertexts are Enc(0);

[0047] S232, the server executes the feedback information generation algorithm For database DB: i |i∈{0,1,...,n-1}},complement {q n =0,q n+1 =0, ..., q N-1 =0}; Calculate feedback information

[0048] As a preferred technical solution, step S231 includes the following steps:

[0049] S2311, the server constructs N LWE ciphertexts corresponding to different keys: based on the query ciphertext ct query=(c0, c1), extract the coefficients b0, b1, ..., b of the polynomial c0 N-1 , extract the coefficients a0, a1, ..., a of the polynomial c1 N-1 , and let the vector Reconstruct and generate N LWE-based ciphertexts

[0050]

[0051] Among them, the above → represents the ciphertext {ct0, ct1, ..., ct N-1 The corresponding keys are

[0052] S2312, the server generates N RLWE ciphertexts corresponding to different keys: Based on the above N LWE ciphertexts {ct0, ct1, ..., ct N-1}, extract the i-th ciphertext vector ct i Each element of Let {b i =b i (0)|i∈{0, 1,...,N-1}, b i ∈R q}, in, Representation vector The jth element of ; reconstructs and generates N ciphertexts based on RLWE

[0053]

[0054] Among them, the above → represents the ciphertext {ct0′, ct1′, ..., ct N-1 The keys corresponding to ′} are {(1, S0), (1, S1), …, (1, S N-1 )};

[0055] S2313, the server generates N RLWE ciphertexts corresponding to the same key: Based on the above N RLWE ciphertexts corresponding to different keys {ct o ′, ct1′, ..., ct N-1 ′} and N switching keys {evk0, evk1, ..., evk N-1}, execute the ciphertext conversion algorithm CipSwitch(ct i ′,evk i )→ct i ″, generate N RLWE-based ciphertexts corresponding to the same key

[0056]

[0057] Among them, the above → represents the ciphertext {ct0″, ct1″, ..., ct N-1 ″}The corresponding keys are (1, s′);

[0058] S2314, the server generates N LWE ciphertexts corresponding to the same key: based on the above N RLWE ciphertexts corresponding to the same key {ct0″, ct1″, ..., ct N-1 ″|ct i ″=(b i ′, a′)}, extract polynomial b i ′, let b i ′=b i ′(0); extract the coefficients of the polynomial a′{a0′,a1′,...,a N-1 '},make Generate N LWE ciphertexts corresponding to the same key

[0059]

[0060] Among them, the above → represents the ciphertext {ct0″′,ct1″′,...,ct N-1 The keys corresponding to ″′} are

[0061] A privacy information retrieval protocol storage medium based on a homomorphic encryption algorithm stores a privacy information retrieval protocol formulated according to a privacy information retrieval protocol formulation method based on a homomorphic encryption algorithm.

[0062] A privacy information retrieval protocol device based on a homomorphic encryption algorithm includes a privacy information retrieval protocol storage medium based on a homomorphic encryption algorithm.

[0063] Compared with the prior art, the present invention has the following beneficial effects:

[0064] (1) The present invention is based on a symmetric homomorphic encryption scheme, so the efficiency of constructing a homomorphic encryption scheme by preprocessing on the user side is higher;

[0065] (2) Compared with XPIR, which uses n ciphertext polynomial vectors for query, the query of the present invention and SealPIR uses a single ciphertext polynomial, so the time for the user end to calculate the query information in the protocol of the present invention is shortened by n times, and the communication time for "user end → server end" to submit the query is also shortened by n times;

[0066] (3) Compared with the SealPIR server's Expand phase, which introduces 2m homomorphic ciphertext additions, m plaintext homomorphic multiplications, and 2m ciphertext switches, the Expand phase of the present invention does not introduce homomorphic operations and only involves N ciphertext switches. Therefore, the server of the present invention is more efficient in calculating feedback information. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Figure 1 This is a flow chart of the interaction between the server and the client of the present invention. DETAILED DESCRIPTION

[0068] The present invention will be further described in detail below in conjunction with embodiments and drawings, but the embodiments of the present invention are not limited thereto.

[0069] Example

[0070] like Figure 1 As shown, the present invention relates to the field of data retrieval privacy enhancement technology, and in particular to a privacy information retrieval protocol based on a homomorphic encryption algorithm, which mainly solves "how to achieve a new balance between network communication cost and computing cost in a PIR protocol" and can be applied to database security queries, such as: medical databases, patent databases, and other occasions that have high requirements for retrieval privacy.

[0071] The present invention designs a new privacy information retrieval protocol based on homomorphic encryption algorithm, which achieves a new balance between network communication cost and computing cost, and its performance is better than XPIR and SealPIR. Specifically: while reducing the communication cost of the query phase, another clever method is used to complete the operation of expanding the ciphertext on the server side. This process does not introduce any ciphertext homomorphic operations, thereby greatly reducing the computational cost of generating responses on the server side; in addition, the present invention uses a symmetric BFV scheme instead of an asymmetric BFV scheme, which also has a significant effect on improving the efficiency of the user-side preprocessing and encryption and decryption stages. The present invention can be applied to practical scenarios such as database security queries.

[0072] The present invention provides a privacy information retrieval protocol based on a homomorphic encryption algorithm. The protocol is a computationally secure privacy information retrieval protocol and is a feasible privacy protection technology based on a single server.

[0073] First, the difficulty assumption of the lattice password used later is defined as follows:

[0074] Definition 1 (DeCision-RLWE): For a security parameter λ, let q ≥ 2 be an integer, N = N(λ) be the polynomial order, R = Z[x] / (x N +1) is an integer polynomial ring, R q =Z q [x] / (x N+1) is an integer polynomial ring with coefficients modulo q, χ=χ(λ)∈R is a uniform noise distribution; distribution Randomly choose s←R q , a←R q , e←χ as input, output The difficulty assumption of Decision-RLWE is: distribution and uniform distribution Indistinguishable.

[0075] Definition 2 (Decision-LWE): For a security parameter λ, define Z q N is an N-dimensional integer vector with modulus q for each element; χ′=χ′(λ) is the uniform distribution of noise; distribution Random Selection e←χ′ as input, output The difficulty assumption of Decision-LWE is: distribution and uniform distribution U(Z q N+1 ) are indistinguishable.

[0076] The present invention is achieved based on the following technical solutions:

[0077] The present invention provides a privacy information retrieval method that balances communication cost and computation cost, involving interaction between a client and a single server, including the following two major stages:

[0078] Phase 1: The client and server initialize system parameters and perform preprocessing on the homomorphic encryption algorithm and database respectively;

[0079] Phase 2: Query and response interaction between the client and the server: First, the client sends a request "expecting to retrieve the ciphertext form of data position i0" to the server, requesting to obtain the ciphertext data at the position to be retrieved in the database; secondly, the server responds based on the request and the database information it has; finally, the client decrypts the response ciphertext to obtain the data to be retrieved.

[0080] Further, the two stages are described in detail below:

[0081] <Phase 1>: The specific process is as follows:

[0082] Step 1: The client and server jointly define system parameters as follows:

[0083] (1) Define the parameters of the RLWE-based cryptographic algorithm: the security parameter is λ, t>1 is an integer and represents the modulus of the plaintext polynomial, q=Δ·t+r t(q) represents the modulus of the ciphertext polynomial; where r t (q) = q mod t is the remainder term, and the parameter N = N(λ) is the order of the polynomial, and N ≥ n; R = Z[x] / (x N +1) represents the integer polynomial ring, R q =Z q [x] / (x N +1) represents the integer polynomial ring with coefficients modulo q, R t =Z t [x] / (x N +1) represents the ring of integer polynomials with coefficients modulo t;

[0084] (2) Define the parameters of the LWE-based cryptographic algorithm: the security parameter is λ, N represents the dimension of the vector, and N ≥ n, q is an integer and represents the modulus of the ciphertext vector, and Z q represents an integer modulo q, Z q N represents an N-dimensional integer vector whose elements are modulo q;

[0085] (3) Define two functions: and g -1 : And these two functions satisfy All have g·g -1 (a)=a, where, Represents the ring of integer polynomials with coefficients modulo q in dimension d.

[0086] Step 2: The client constructs the BFV homomorphic encryption algorithm and initializes the algorithm parameters as follows:

[0087] (1) Generate private key sk:

[0088]

[0089] Among them, s and s′ are q Two random polynomials are selected from the above, let s = s0 + s1x + s2x 2 +…+s N-1 x N-1 , s′=s0′+s1′x+s2′x 2 +…+s N-1 'x N-1 , and {s i ,s i ′∈Z q |i={0,1,...,N-1}} represents the coefficients of polynomials s and s′; extracting the coefficients of the polynomials yields two vectors and

[0090] (2) Generate N switching keys, the i-th switching key is denoted as evk i ,evk i It consists of two parts, k0 and k1, namely: (evk i =[k0|k1], i∈{0, 1, ..., N-1}), and the formulas for k0 and k1 are: Afterwards, the client transmits these N switching keys to the server to support subsequent calculations on the server;

[0091] Among them, k1 represents A polynomial uniformly randomly selected from i Represents χ d The error polynomial randomly selected on d represents the d-dimensional χ, χ represents the error distribution defined on R, U(·) represents the uniform distribution, S i It represents the new polynomial generated by changing the position and sign of the coefficients of polynomial s. The specific formula is:

[0092]

[0093] Extract the above polynomials S0, S1, S2, ..., S N-1 The coefficients of

[0094]

[0095] Note: evk i (1, s′) = S i ·g+e i (mod q);

[0096] Step 3: The server performs preprocessing settings on the database, defining: database DB = {q i |i∈ID}, where q i represents the plaintext data stored at the ith position in the database, ID={0, 1, ..., n-1} represents the set of all data position subscripts, and n represents the total amount of data stored in the database DB.

[0097] <Phase 2>: The specific process is as follows:

[0098] Step 1: Based on the BFV homomorphic encryption algorithm and polynomial multiplication characteristics, the client generates the query ciphertext ct query , the specific steps are as follows:

[0099] (1) Execute the encoding algorithm Encode(i0)→m: Encode the position number i0 of the data to be retrieved and generate the plaintext polynomial m∈R t :

[0100]

[0101] (2) Execute the encryption algorithm Enc(m, sk) → ct query :Based on the BFV homomorphic encryption algorithm, the plaintext polynomial m is encrypted with the key sk to generate a RLWE-based ciphertext (referred to as "RLWE ciphertext") And the formulas for c0 and c1 are as follows:

[0102]

[0103] in, Represents 2D R q Polynomial, a is R q A polynomial randomly selected from the definition a=a0+a1x+a2x 2 +…+a N-1 x N-1 ; e is a randomly selected polynomial in uniform distribution χ, and e=e0+e1x+e2x 2 +…+e N-1 x N-1 ; Based on the polynomial multiplication characteristics, definition represents the coefficient of the polynomial c0; s i-j and N+i-j Represents the coefficients of the key polynomial s.

[0104] Step 2: The client will query the ciphertext ct query Send to the server;

[0105] Step 3: The server expands the ciphertext based on the LWE-LWE ciphertext switching technology Then calculate and generate feedback information ct respond :

[0106] (1) Execute the ciphertext expansion algorithm The server will receive a single ciphertext ct query Expanded to N “LWE ciphertexts” {ct0″′, ct1″′, ..., ct N-1 ″′} composed of a vector Right now and The i0th ciphertext is Enc(1), and the remaining ciphertexts are Enc(0); the specific steps are as follows:

[0107] ① Construct “N LWE ciphertexts corresponding to different keys”: Based on the query ciphertext ct query =(c0, c1), extract the coefficients b0, b1, ..., b of the polynomial c0 N-1 , extract the coefficients a0, a1, ..., a of the polynomial c1 N-1 , and let the vector Reconstruct and generate N LWE-based ciphertexts

[0108]

[0109] Among them, the above → represents the ciphertext {ct o , ct1, ..., ct N-1 The corresponding keys are Verification shows that:

[0110] ② Generate “N RLWE ciphertexts corresponding to different keys”: Based on the above N LWE ciphertexts {ct0, ct1, ..., ct N-1}, extract the i-th ciphertext vector ct i Each element of Let {b i =b i (0)|i∈{0, 1,...,N-1}, b i ∈R q}, in, Representation vector The jth element of ; reconstructs and generates N ciphertexts based on RLWE

[0111]

[0112] Among them, the above → represents the ciphertext {ct o ′, ct1′, ..., ct N-1 The keys corresponding to ′} are {(1, S0), (1, S1), ..., (1, S N-1 )}; Verification shows that:

[0113] ③ Generate “N RLWE ciphertexts corresponding to the same key”: Based on the above N RLWE ciphertexts corresponding to different keys {ct0′, ct1′, ..., ct N-1 ′} and N switching keys {evk0, evk1, ..., evk N-1}, execute the ciphertext conversion algorithm CipSwitch(cti ′,evk i )→ct i ″, generate N RLWE-based ciphertexts corresponding to the same key

[0114]

[0115] Among them, the above → represents the ciphertext {ct o ″, ct1″, ..., ct N-1 ″} The corresponding keys are (1, s′); verification shows that:

[0116] <ct i ″,(1,s′)>[0]=b i +g -1 (a) evk i (1, s′)(mod q)[0]

[0117] =b i + <g -1 (a), s i ·g+e i >(mod q)[0]

[0118] = <ct i ′,(1,s i )>+e ksi (mod q)[0]

[0119] =e i +e ksi +Δ·m i

[0120] Among them, e ksi = <g -1 (a), e i >∈R, i={0, 1, ..., N-1} represents the error introduced during the ciphertext switching process.

[0121] ④ Generate “N LWE ciphertexts corresponding to the same key”: Based on the above N RLWE ciphertexts corresponding to the same key {ct0″, ct1″, ..., ct N-1 ″|ct i ″=(b i ′, a′)}, extract polynomial b i ′, let b i ′=b i ′(0); extract the coefficients of the polynomial a′ {a0′, a1′, ..., a N-1 '},make Generate N LWE ciphertexts corresponding to the same key

[0122]

[0123] Among them, the above → represents the ciphertext {ct0″′, ct1″′, ..., ct N-1 The keys corresponding to ″′} are

[0124] In summary, the above four steps show that when i = {0, 1, ..., N-1},

[0125] (2) Execute feedback information generation algorithm For database DB: i |i∈{0,1,...,n-1}},complement {q n =0,q n+1 =0, ..., q N-1 =0}; Calculate feedback information

[0126] Step 4: The server will feedback information ct respond Send to the client;

[0127] Step 5: The client executes the decryption algorithm Dec(ct respond , sk), and get the corresponding retrieval data when the expected retrieval data position number is i0 Specifically: for feedback information ct respond Perform the decryption decoding operation and take the coefficients of the polynomial s' to form a vector Calculated by the following formula:

[0128]

[0129] Among them, i∈{0, 1, ..., n-1} represents the position number of each data in the database, q i Indicates the plaintext data stored at the i-th position in the database, ct i ″′ is ct respond One term in the expansion represents a "LWE ciphertext", m i ∈{0, 1} represents the i-th coefficient in the plaintext polynomial m.

[0130] The communication cost and computational cost of the present invention are analyzed and quantitatively compared with two other typical solutions, XPIR and SealPIR, as shown in the following table:

[0131]

[0132]

[0133] According to the above quantitative analysis: First, the present invention is based on a symmetric homomorphic encryption scheme, so the efficiency of the user-side preprocessing to construct a homomorphic encryption scheme is higher; secondly, compared with XPIR, which queries n ciphertext polynomial vectors, the queries of the present invention and SealPIR are single ciphertext polynomials, so the time for the user side to calculate the query information in the protocol of the present invention is shortened by n times, and the communication time for "user side → server side" to submit the query is also shortened by n times; furthermore, compared with the SealPIR server side, the Expand stage introduces 2m homomorphic ciphertext additions, m plaintext homomorphic multiplications, and 2m ciphertext switches, the Expand stage of the present invention does not introduce homomorphic operations, and only involves N ciphertext switches, so the server side of the present invention calculates feedback information more efficiently.

[0134] As described above, the present invention can be preferably implemented.

[0135] All features disclosed in all embodiments in this specification, or steps in all methods or processes implicitly disclosed, except for mutually exclusive features and / or steps, can be combined and / or expanded or replaced in any manner.

[0136] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. According to the technical essence of the present invention, within the spirit and principles of the present invention, any simple modification, equivalent replacement and improvement made to the above embodiment still falls within the protection scope of the technical solution of the present invention.

Claims

1. A method for designing a privacy information retrieval protocol based on a homomorphic encryption algorithm, characterized in that: The following steps are involved: S1, the client and server initialize system parameters and perform preprocessing on the homomorphic encryption algorithm and database respectively; S2, query and response interaction between the client and the server: First, the client sends the ciphertext form of the data position i0 that it expects to retrieve to the server as a request, requesting to obtain the ciphertext data of the position to be retrieved in the database; Second, the server responds based on the request and the database information it has; Finally, the client decrypts the response ciphertext to obtain the data to be retrieved; Step S1 includes the following steps: S11, the client and the server jointly define system parameters; S12, the client constructs the BFV homomorphic encryption algorithm and performs parameter initialization settings on the algorithm; S13, the server performs pre-processing settings on the database, defining: database DB = {q i |i∈ID}, where q i represents the plaintext data stored at the i-th position in the database, ID = {0, 1, ..., n-1} represents the set of all data position subscripts, and n represents the total number of data stored in the database DB; Step S2 includes the following steps: S21, the client generates the query ciphertext ct based on the polynomial multiplication characteristics and the BFV homomorphic encryption algorithm query ; S22, the client will query the ciphertext ct query Send to the server; S23, the server expands the ciphertext based on the LWE-LWE ciphertext switching technology Then calculate and generate feedback information ct respond ; S24, the server will feedback information ct respond Send to the client; S25, the client executes the decryption algorithm Dec(ct respond , sk), and get the corresponding retrieval data when the expected retrieval data position number is i0 Specifically: For feedback information respond Perform the decryption decoding operation and take the coefficients of the polynomial s' to form a vector Calculated by the following formula: Among them, i∈{0,1,...,n-1} represents the position number of each data in the database, q i represents the plaintext data stored at the i-th position in the database, e i represents the decryption noise, ct i ″′ is ct respond One term in the expansion represents an LWE ciphertext, m i ∈{0,1} represents the i-th coefficient in the plaintext polynomial m.

2. According to claim 1, a method for designing a privacy information retrieval protocol based on a homomorphic encryption algorithm is characterized in that: Step S11 includes the following steps: S111, the client and the server jointly define the parameter settings of the cryptographic algorithm based on RLWE: the security parameter is λ; t represents the modulus of the plaintext polynomial, t>1 and t is an integer; q = Δ·t+r t (q) represents the modulus of the ciphertext polynomial, where r t (q) = qmod t is the remainder term, and the parameter N = N(λ) is the order of the polynomial, and N ≥ n; R = Z[x] / (x N +1) represents the integer polynomial ring, R q =Z q [x] / (x N +1) represents the integer polynomial ring with coefficients modulo q, R t =Z t [x] / (x N +1) represents the ring of integer polynomials with coefficients modulo t; S112, the client and the server jointly define the parameter settings based on the LWE cryptographic algorithm: the security parameter is λ, N represents the dimension of the vector, and N ≥ n; q is an integer and represents the modulus of the ciphertext vector; Z q represents an integer modulo q, Z q N represents an N-dimensional integer vector whose elements are modulo q; S113, the client and the server jointly define two functions: and And these two functions satisfy All have g.g -1 (a)=a, where, Represents the ring of integer polynomials of coefficients modulo q in dimension d.

3. According to a method for designing a privacy information retrieval protocol based on a homomorphic encryption algorithm according to claim 2, it is characterized in that: Step S12 includes the following steps: S121, the client builds the BFV homomorphic encryption algorithm based on Decision-RLWE and generates the key Among them, s and s′ are q Two random polynomials are selected from the above, let s = s0 + s1x + s2x 2 +...+s N-1 x N-1 , s′=s0′+s1′x+s2′x 2 +...+s N-1 'x N-1 , and {s i ,s i ′∈Z q |i={0,1,...,N-1}} represents the coefficients of polynomials s and s′; extract the coefficients of the polynomials to obtain two vectors and S122, the client generates N switching keys, the i-th switching key is represented as evk i ,evk i It consists of two parts, k0 and k1, namely: (evk i =[k0|k1],i∈{0,1,...,N-1}), and the formulas for k0 and k1 are: Afterwards, the client transmits these N switching keys to the server to support subsequent calculations on the server; Among them, k1 represents A polynomial uniformly randomly selected from i Represents χ d The error polynomial randomly selected on d represents the d-dimensional χ, χ represents the error distribution defined on R, U(·) represents the uniform distribution, S i It represents the new polynomial generated by changing the position and sign of the coefficients of polynomial s. The specific formula is: Extract the above polynomials S0,S1,S2,...,S N-1 The coefficients of 4. According to claim 3, a method for designing a privacy information retrieval protocol based on a homomorphic encryption algorithm is characterized in that: Step S21 includes the following steps: S211, the client executes the encoding algorithm Encode(i0)→m: encodes the position number i0 of the data to be retrieved and generates a plaintext polynomial m∈R t : S212, the client executes the encryption algorithm Enc(m,sk)→ct query :Based on the BFV homomorphic encryption algorithm, the plaintext polynomial m is encrypted using the key sk to generate an RLWE ciphertext And the formulas for c0 and c1 are as follows: Among them, RLWE ciphertext refers to the ciphertext generated by the homomorphic encryption algorithm based on the Decision-RLWE difficulty problem. Represents 2D R q Polynomial, a is R q A polynomial randomly selected from the definition a=a0+a1x+a1x 2 +...+a N-1 x N-1 ; e is a polynomial randomly selected from uniform distribution χ, and e=e0+e1x+e2x 2 +...+e N-1 x N-1 ; Based on the polynomial multiplication characteristics, definition represents the coefficient of the polynomial c0; s i-j and N+i-j Represents the coefficients of the key polynomial s.

5. According to claim 4, a method for designing a privacy information retrieval protocol based on a homomorphic encryption algorithm is characterized in that: Step S23 includes the following steps: S231, the server executes the ciphertext expansion algorithm The server will receive a single ciphertext ct query It is expanded to consist of N Decision-LWE-based ciphertexts {ct0″′,ct1″′,...,ct N-1 ″′} composed of a vector Right now and The i0th ciphertext is Enc(1), and the remaining ciphertexts are Enc(0); S232, the server executes the feedback information generation algorithm For database DB: i |i∈{0,1,...,n-1}}, supplement {q n =0,q n+1 =0,...,q N-1 =0}; Calculate feedback information 6. According to claim 5, a method for designing a privacy information retrieval protocol based on a homomorphic encryption algorithm is characterized in that: Step S231 includes the following steps: S2311, the server constructs N LWE ciphertexts corresponding to different keys: based on the query ciphertext ct query =(c0,c1), extract the coefficients b0,b1,...,b of the polynomial c0 N-1 , extract the coefficients a0,a1,...,a of the polynomial c1 N-1 , and let the vector Reconstruct and generate N LWE-based ciphertexts Among them, the above → represents the ciphertext {ct0,ct1,...,ct N-1 The corresponding keys are S2312, the server generates N RLWE ciphertexts corresponding to different keys: Based on the above N LWE ciphertexts {ct0, ct1, ..., ct N-1 }, extract the i-th ciphertext vector ct i Each element of Let {b i =b i (0)|i∈{0,1,...,N-1},b i ∈R q }, in, Representation vector The jth element of ; reconstructs and generates N RLWE-based ciphertexts Among them, the above → represents the ciphertext {ct0′,ct1′,...,ct N-1 The keys corresponding to ′} are {(1,S0),(1,S1),...,(1,S N-1 )}; S2313, the server generates N RLWE ciphertexts corresponding to the same key: based on the above N RLWE ciphertexts corresponding to different keys {ct0′, ct1′, ..., ct N-1 ′} and N switching keys {evk0,evk1,...,evk N-1 }, execute the ciphertext conversion algorithm CipSwitch(ct i ′,evk i )→ct i ″, generate N RLWE-based ciphertexts corresponding to the same key Among them, the above → represents the ciphertext {ct0″,ct1″,...,ct N-1 ″}The corresponding keys are all (1, s′); S2314, the server generates N LWE ciphertexts corresponding to the same key: based on the above N RLWE ciphertexts corresponding to the same key {ct0″, ct1″, ..., ct N-1 ″|ct i ″=(b i ′,a′)}, extract polynomial b i ′, let b i ′=b i ′(0); extract the coefficients of the polynomial a′{a0′,a1′,...,a N-1 '},make Generate N LWE ciphertexts corresponding to the same key Among them, the above → represents the ciphertext {ct0″′,ct1″′,...,ct N-1 The keys corresponding to ″′} are 7. A privacy information retrieval protocol storage medium based on a homomorphic encryption algorithm, storing a privacy information retrieval protocol formulated by a privacy information retrieval protocol formulation method based on a homomorphic encryption algorithm as described in any one of claims 1 to 6 executed by a processor.

8. A privacy information retrieval protocol device based on a homomorphic encryption algorithm, comprising a privacy information retrieval protocol storage medium based on a homomorphic encryption algorithm as described in claim 7.