A three-element query method based on privacy-preserving set intersection
Through the three-element query method of privacy-preserving set intersection, elliptic curve and ideal replacement function are used for data obfuscation, which solves the problems of low efficiency and insufficient privacy protection in the existing technology, and realizes an efficient and safe data query process.
Patent Information
- Application Number
- CN202210012808.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-06
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-01-06
AI Technical Summary
The existing privacy-preserving three-factor query method is inefficient in terms of communication volume and computational complexity, and cannot fully protect the privacy of user data. The server may leak the client's query information during the query process.
Adopt a three-element query method based on the intersection of privacy-preserving sets, determine the system mode by obtaining system parameters, execute the query method in online mode or offline mode, and use elliptic curves and ideal replacement functions to perform data confusion and polynomial construction to ensure that the server cannot know Specific query information of the client.
It realizes the search for the data required by the client without leaking the client data, ensures data security, simplifies the query process, improves the accuracy and efficiency of the query, and provides a better user experience.
Smart Images

Figure CN114385673B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data security, and in particular relates to a three-element query method based on intersection of privacy-preserving sets. Background Art
[0002] In the risk control scenario, name, ID number and mobile phone number are the three elements used to verify the real identity of the user; in the actual application scenario, the server has such data, and the client sends the three elements to be retrieved to the server; the server can verify whether the name, ID number and mobile phone number to be retrieved are correct. First of all, if the client sends the plain text of the three elements directly to the server, the query data is easy to leak, and the server can obtain and record the query data of the client. Therefore, the existing three-element retrieval method is gradually moving towards the privacy-preserving three-element retrieval, that is, the server does not know the specific query information of the client. However, the existing privacy-preserving three-element query method is inefficient in terms of communication volume and computational complexity. At the same time, in the existing privacy-preserving three-element query method, if the server retrieves the client's data, the server can know the client's query data. Therefore, the existing privacy-preserving three-element query method is not completely enough to protect user data.
[0003] The calculation of private set intersection (PSI) is a specific application problem in the field of secure multi-party computing. It is not only of great theoretical significance but also of great application value. In the PSI protocol, the client and the server are allowed to have their own sets C and S respectively. When the PSI protocol is executed, both parties or only the client obtains the intersection of the two parties C∩S without leaking any other information. Therefore, there is an urgent need for a three-factor query method based on privacy-preserving set intersection, which can protect user data in an all-round way. Summary of the invention
[0004] In order to solve the problems existing in the above-mentioned prior art, the present invention proposes a three-factor query method based on the intersection of privacy-preserving sets, the method comprising: obtaining system parameters; judging the mode of the system, if the system is in online mode, executing the three-factor query method of the online mode; if the system is in offline mode, executing the three-factor query method of the offline mode.
[0005] Preferably, the acquired system parameters include system public parameters pp, and the public parameters include security parameters τ and κ; random space R = {r∈z q |g r ∈ε}, where r represents a random number, z q represents the order set {1,…,q}, ε is the set of elliptic curve points, q is the order of the elliptic curve base point g; message space M = {0,1}τ ; Mask space K ≥ {0,1} k ; Ideal permutation function Π,Π -1 :{0,1} τ →{0,1} τ .
[0006] Preferably, the three-factor query method for executing the online mode includes: the server selects a random number a←R, calculates m=msg(a) according to the selected random number, and sends the calculated m to the client, where R represents the random space and m represents the elliptic curve base point g a The encoding of msg indicates converting the data in the random space into the message space data; the client traverses [1,n c ], select a random number b i ←R, and calculate m based on the selected random number i ←msg(b i ) and f i ←Π(m i ), where n c Indicates the nth c data, f i express The encoding is permuted, Π represents the ideal permutation function; according to the obtained f i And the client's dataset construction c -1st order polynomial P = interpol(s i ,f i ), send the polynomial P to the server, where interpol(s i ,f i ) indicates a path that passes through all (s i ,f i ) is the lowest order curve, s i Represents the data in the server dataset; the server traverses [1,n s ], calculate k i =key(a,Π -1 (P(s i ))),all k i Collect and get K is obfuscated and sent to the client, where n s Indicates the nth c k data i express The encoding of key indicates the generation The encoding function, a represents the random number selected by the server, Π -1 represents the inverse function of the ideal permutation function, K represents the mask set; the client traverses [1,n c ], calculate ei =key(b i ,m), judge e i Does it exist in K? If so, the corresponding search data c i exists in the server's dataset S, otherwise it does not exist in the server's dataset S, where e i Indicates the client's mask, b i Represents a random number chosen by the client.
[0007] Furthermore, the client data set is The data set on the server is in, Represents the data in the client data collection, Represents the data in the server-side data collection.
[0008] Preferably, the three-factor query method for executing the offline mode includes: the server traverses [1,n s ], select a random number b i ←R, calculate m based on the selected random number i ←msg(b i ) and f i ←Π(m i ); According to the calculated f i Build n with the server dataset s -1st order polynomial P = interpol(s i ,f i ), where the function msg:R→M; the server calculates the polynomial P=interpol(s i ,f i ) is sent to the client; the client selects a random number a←R, calculates m=msg(a) based on the selected random number a, and sends the calculated result m to the server; the client traverses [1,n c ], calculate k i =key(a,Π -1 (P(c i ))), for all calculated k i Collect and get After the server obtains the client's calculation result m, it traverses [1,n s ], and calculate e i =key(b i ,m), all e i Collect and get The data in E is mixed up and sent to the client; the client determines k i Does it exist in E? If it does, then the corresponding search data c iExists in the dataset S on the server, otherwise does not exist in the dataset S on the server.
[0009] To achieve the above objectives, the present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the computer program implements any of the above-mentioned three-factor query methods based on intersection of privacy-preserving sets.
[0010] To achieve the above-mentioned purpose, the present invention also provides a three-factor query device based on the intersection of privacy-preserving sets, comprising a processor and a memory; the memory is used to store a computer program; the processor is connected to the memory, and is used to execute the computer program stored in the memory, so that the three-factor query device based on the intersection of privacy-preserving sets executes any of the above-mentioned three-factor query methods based on the intersection of privacy-preserving sets.
[0011] Beneficial effects of the present invention:
[0012] The present invention designs a three-factor query method based on the intersection of privacy-preserving sets. Through this method, the service finds the data that the customer needs to query without knowing the customer data, thereby ensuring the customer's data security; secondly, the present invention designs an offline system query method and an online system query method during the data query process, so that the user can query the data under different system states, which simplifies the query complexity, improves the query accuracy and query efficiency, and provides users with a better experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 It is an overall flow chart of the privacy protection three-factor retrieval method of the present invention;
[0014] Figure 2 An example of PSI protocol input for the offline mode of the present invention;
[0015] Figure 3 An example of PSI protocol input for the online mode of the present invention. DETAILED DESCRIPTION
[0016] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0017] A three-factor query method based on privacy-preserving set intersection, such as Figure 1, the method includes: obtaining system parameters; judging the mode of the system, if the system is in online mode, executing the three-element query method of the online mode; if the system is in offline mode, executing the three-element query method of the offline mode. In the process of three-element query, it is necessary to prepare the input of the privacy-preserving set intersection protocol in advance; the client and the server input the prepared input data into the system, execute the privacy-preserving set intersection protocol; the client obtains the protocol output. In the present invention, regardless of whether the server has retrieved specific information, it is impossible to know the client's search content, which further protects the client's privacy.
[0018] The obtained system parameters include the system public parameters pp, and the public parameters include the security parameters τ and κ; the random space R = {r∈z q |g r ∈ε}, where r represents a random number, z q represents the order set {1,…,q}, ε is the set of elliptic curve points, q is the order of the elliptic curve base point g; message space M = {0,1} τ ; Mask space K ≥ {0,1} k ; Ideal permutation function Π,Π -1 :{0,1} τ →{0,1} τ . interpol(x i ,y i ) represents a lowest order curve passing through all (x i ,y i ), construction methods such as Lagrange interpolation formula.
[0019] The client prepares its own collection This includes any number of users' names, ID numbers, and mobile phone numbers. The server prepares its own collection For example, c1, c2, c3 are a user's name, ID number, and mobile phone number, but the client finally gets the result c1, c2, which means that the user's mobile phone number is incorrect, and the server does not know the specific information of the client's query data C.
[0020] like Figure 3 As shown, the three-element query method for executing the online mode includes: the server selects a random number a←R, calculates m=msg(a) according to the selected random number, and sends the calculated m to the client, where R represents the random space and m represents the elliptic curve base point g a The encoding of msg indicates converting the data in the random space into the message space data; the client traverses [1,n c ], select a random number b i ←R, and calculate m based on the selected random number i ←msg(bi ) and f i ←Π(m i ), where n c Indicates the nth c data, f i express The encoding is permuted, Π represents the ideal permutation function; according to the obtained f i And the client's dataset construction c -1st order polynomial P = interpol(s i ,f i ), send the polynomial P to the server, where interpol(s i ,f i ) indicates a path that passes through all (s i ,f i ) is the lowest order curve, s i Represents the data in the server dataset; the server traverses [1,n s ], calculate k i =key(a,Π -1 (P(s i ))),all k i Collect and get K is obfuscated and sent to the client, where n s Indicates the nth c data, k i express The encoding of key indicates the generation The encoding function, a represents the random number selected by the server, Π -1 represents the inverse function of the ideal permutation function, K represents the mask set; the client traverses [1,n c ], calculate e i =key(b i ,m), judge e i Does it exist in K? If so, the corresponding search data c i exists in the server's dataset S, otherwise it does not exist in the server's dataset S, where e i Indicates the client's mask, b i Represents a random number chosen by the client.
[0021] like Figure 2 As shown in the figure, the server can calculate some intermediate results in advance to further improve the performance of both parties when executing the protocol. In offline mode, the server traverses [1,n s ], select a random number b i ←R, calculate m i ←msg(bi ), f i ←Π(m i ). Then we get all the points (s i ,f i ) s -1st order polynomial P = interpol(s i ,f i ), where the function msg:R→M. Specifically, the server traverses [1,n s ], select a random number b i ←R, calculate m based on the selected random number i ←msg(b i ) and f i ←Π(m i ); According to the calculated f i Build n with the server dataset s -1st order polynomial P = interpol(s i ,f i ), where the function msg:R→M; the server calculates the polynomial P=interpol(s i ,f i ) is sent to the client; the client selects a random number a←R, calculates m=msg(a) based on the selected random number a, and sends the calculated result m to the server; the client traverses [1,n c ], calculate k i =key(a,Π -1 (P(c i ))), for all calculated k i Collect and get After the server obtains the client's calculation result m, it traverses [1,n s ], and calculate e i =key(b i ,m), all e i Collect and get The data in E is mixed up and sent to the client; the client determines k i Does it exist in E? If it does, then the corresponding search data c i Exists in the dataset S on the server, otherwise does not exist in the dataset S on the server.
[0022] In one embodiment of the present invention, the present invention also includes a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, any of the above-mentioned three-factor query methods based on intersection of privacy-preserving sets is implemented.
[0023] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to the computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
[0024] A three-factor query device based on privacy-preserving set intersection, comprising a processor and a memory; the memory is used to store a computer program; the processor is connected to the memory and is used to execute the computer program stored in the memory, so that the three-factor query device based on privacy-preserving set intersection executes any of the above-mentioned three-factor query methods based on privacy-preserving set intersection.
[0025] Specifically, the memory includes: ROM, RAM, magnetic disk, USB flash drive, memory card or optical disk, etc., which can store program codes.
[0026] Preferably, the processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0027] The above embodiments further illustrate the purpose, technical solutions and advantages of the present invention in detail. It should be understood that the above embodiments are only preferred implementation modes of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made to the present invention within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A three-factor query method based on privacy-preserving set intersection, characterized in that: include: Get system parameters; Determine the system mode. If the system is in online mode, execute the three-element query method of online mode. If the system is in offline mode, the three-factor query method of offline mode is executed; The system parameters include the system public parameters p, and the public parameters include the security parameters τ and κ; the random space R = {r∈z q |g r ∈ε}, where r represents a random number, z q represents the order set {1,…,q}, q represents the elliptic curve base point g r The order of , ε represents the elliptic curve point set; the message space M = {0,1} τ ; Mask space K ≥ {0,1} k ; Ideal permutation function Π,Π -1 :{0,1} τ →{0,1} k The three-factor query method for executing the online mode includes: the server selects a random number a←R, calculates m=msg(a) according to the selected random number, and sends the calculated m to the client, where R represents the random space and m represents the elliptic curve base point g a The encoding of msg indicates converting the data in the random space into the message space data; the client traverses [1,n c ], select a random number b i ←R, and calculate m based on the selected random number i ←msg(b i ) and f i ←Π(m i ), where n c Indicates the nth c data, f i Represents the elliptic curve base point The result of the position replacement of the code, Π represents the ideal permutation function; according to the obtained f i And the client's dataset construction c -1st order polynomial P = interpol(s i ,f i ), send the polynomial P to the server, where interpol(s i ,f i ) indicates a path that passes through all (s i ,f i ) is the lowest order curve, s i Represents the i-th data in the server data set; the server traverses [1,n s ], calculate k i =key(a,Π -1 (P(s i ))),all k i Collect and get The data in K is obfuscated and sent to the client, where n s Indicates the nth s data, k i Represents the elliptic curve base point The encoding of key represents the base point of the generated elliptic curve The encoding function, a represents the random number selected by the server, Π -1 represents the inverse function of the ideal permutation function, K represents the mask set; the client traverses [1,n c ], calculate e i =key(b i ,m), judge e i Does it exist in K? If so, retrieve data c i In the server's dataset S, otherwise not in the server's dataset S, where e i Indicates the client's mask, b i Represents a random number selected by the client; The three-element query method for executing the offline mode includes: the server traverses [1,n s ], select a random number b i ←R, calculate m based on the selected random number i ←msg(b i ) and f i ←Π(m i ); According to the calculated f i Build n with the server dataset s -1st order polynomial P = interpol(s i ,f i ), where the function msg:R→M; the server calculates the polynomial P=interpol(s i ,f i ) is sent to the client; the client selects a random number a←R, calculates m=msg(a) based on the selected random number a, and sends the calculated result m to the server; the client traverses [1,n c ], calculate k i =key(a,Π -1 (P(c i ))), for all calculated k i Collect and get After the server obtains the client's calculation result m, it traverses [1,n s ], and calculate e i =key(b i ,m), all e i Collect and get The data in E is mixed up and sent to the client; the client determines k i Does it exist in E? If it does, then the corresponding search data c i Exists in the dataset S on the server, otherwise does not exist in the dataset S on the server.
2. According to the three-factor query method based on privacy-preserving set intersection according to claim 1, it is characterized in that: The client data set is The data set on the server is in, Represents the data in the client data collection, Represents the data in the server-side data collection.
3. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer program is executed by a processor to implement the three-factor query method based on privacy-preserving set intersection as described in any one of claims 1 to 2.
4. A three-factor query device based on privacy-preserving set intersection, characterized in that: It includes a processor and a memory; the memory is used to store a computer program; the processor is connected to the memory and is used to execute the computer program stored in the memory, so that the three-factor query device based on the intersection of privacy-preserving sets executes the three-factor query method based on the intersection of privacy-preserving sets as described in any one of claims 1 to 2.
