Data processing method and device in multi-party security computing and storage medium
Through the combination of multi-party encryption protocol and Bloom filter, the problem of low computing efficiency of traditional PSI technology and PSI-CA is solved, efficient and safe multi-party security calculation is realized, and data privacy and processing efficiency are ensured.
Patent Information
- Application Number
- CN202410762185.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-10-15
AI Technical Summary
When calculating the intersection and intersection cardinality of privacy sets, traditional PSI technology and PSI-CA technology have low computational efficiency and communication efficiency, and the multi-party security calculation effect is not good.
Using a method based on multi-party encryption protocols and Bloom filters, by constructing a Bloom filter of an encrypted set, and using an inadvertent pseudo-random function and a two-choice OT protocol, data interaction and processing between participating parties can be achieved to ensure data privacy. and efficiency.
It improves the efficiency and security of multi-party security calculations, ensures that participating parties cannot obtain information outside the intersection, and improves the space efficiency and parallelization capabilities of data processing.
Smart Images

Figure CN118779894A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of multi-party computing, and in particular to a data processing method, device and storage medium in multi-party secure computing. Background Art
[0002] In multi-party secure computing scenarios, in order to prevent data from being leaked during the calculation process, Private Set Intersection (PSI) technology or Private Set Intersection-Cardinality (PSI-CA) technology is usually used for multi-party computing.
[0003] PSI technology can jointly calculate the intersection of multiple participants' local sets without disclosing their local sets to each other, and does not disclose information other than the intersection to any participant. For example, in the intersection calculation of two-party privacy sets, the two parties each hold their local privacy sets X and Y. After the calculation is completed, both parties can obtain the intersection of the privacy sets X∩Y, but cannot obtain information other than the intersection.
[0004] PSI-CA technology can jointly calculate the intersection size of local sets of multiple participants without disclosing their local sets to each other, and does not leak any information except the intersection size.
[0005] However, traditional PSI technology and PSI-CA technology have low computational efficiency and communication efficiency when calculating the intersection of privacy sets and the cardinality of the intersection of privacy sets, and the effect of multi-party secure computing is not good. Summary of the invention
[0006] In view of this, the present disclosure proposes a data processing method, device and storage medium in multi-party secure computing, which can solve the problem that the computing efficiency and communication efficiency of traditional PSI technology and PSI-CA calculation processing results are low, and the effect of multi-party secure computing is not good.
[0007] According to one aspect of the present disclosure, a data processing method in a multi-party secure computation is provided, wherein the multi-party secure computation comprises: at least two participating terminals and a server terminal that is communicatively connected to the at least two participating terminals, wherein a first participating terminal of the at least two participating terminals is a terminal that obtains a processing result, and other participating terminals and the server terminal except the first participating terminal do not obtain the processing result; the method is applied to the first participating terminal, and the method comprises:
[0008] Interacting with a second participant terminal among the at least two participants terminal based on a preset multi-party encryption protocol to encrypt a local data set of the first participant terminal based on the interaction content to obtain a first encrypted set;
[0009] constructing a first Bloom filter based on the first encrypted set;
[0010] The first Bloom filter is sent to the server, so that after obtaining the first Bloom filter, the server can obtain the random string of the second participant or the string in the first obfuscated Bloom filter of the second participant based on the value of each bucket in the first Bloom filter based on the two-choice oblivious transmission OT protocol; and construct a second obfuscated Bloom filter based on the obtained string; wherein the first obfuscated Bloom filter is constructed by the second participant based on the second encryption set, and the second encryption set is obtained by the second participant encrypting the local data set based on the multi-party encryption protocol;
[0011] Obtaining the second confused Bloom filter;
[0012] A membership check is performed on the first encrypted set based on the second confused Bloom filter to obtain the processing result.
[0013] In a possible implementation, the processing result is the intersection of the local data sets of each participating terminal; accordingly,
[0014] The method of interacting with a second participant terminal among the at least two participants based on a preset multi-party encryption protocol to encrypt a local data set of the first participant terminal based on the interaction content to obtain a first encrypted set includes:
[0015] Taking the local data set of the first participant as input, the local data set is encrypted using the key generated by the second participant based on the oblivious pseudo-random function OPRF protocol to obtain the first encrypted set.
[0016] In a possible implementation, the method of taking the local data set of the first participant as input and encrypting the local data set using a key generated by the second participant based on an oblivious pseudo-random function OPRF protocol to obtain the first encrypted set includes:
[0017] Obtaining a public key generated by the second participant according to the secret key;
[0018] Generate a local private key;
[0019] Generate a shared key based on the local private key and the public key, and generate a local public key based on the local private key;
[0020] Calculate each element in the local data set based on a preset first hash function, and encrypt the calculated first hash value using the local public key to obtain a first intermediate set;
[0021] Sending the first intermediate set to the second participant, so that the second participant uses the key to encrypt the first intermediate set to obtain a second intermediate set;
[0022] Obtaining the second intermediate set;
[0023] A hash value of each element in the second intermediate set is calculated based on a preset second hash function, and the shared key is used to encrypt the elements to obtain the first encrypted set.
[0024] In a possible implementation, the processing result is the intersection size of the local data sets of each participating terminal; accordingly,
[0025] The method of interacting with a second participant terminal among the at least two participants based on a preset multi-party encryption protocol to encrypt a local data set of the first participant terminal based on the interaction content to obtain a first encrypted set includes:
[0026] Taking the local data set of the first participant as input, the local data set is encrypted using the key generated by the second participant and a pseudo-random permutation function based on the obfuscated OPRF protocol to obtain the first encrypted set.
[0027] In a possible implementation, the method of taking the local data set of the first participant as input, encrypting the local data set based on the obfuscated OPRF protocol using a key generated by the second participant and a pseudo-random permutation function to obtain the first encrypted set includes:
[0028] Obtaining a public key generated by the second participant according to the secret key;
[0029] Generate a local private key;
[0030] Generate a shared key based on the local private key and the public key, and generate a local public key based on the local private key;
[0031] Calculate each element in the local data set based on a preset first hash function, and encrypt the calculated first hash value using the local public key to obtain a first intermediate set;
[0032] Sending the first intermediate set to the second participant, so that the second participant uses the key to encrypt the first intermediate set, and uses a pre-generated pseudo-random permutation function to permute elements in the first intermediate set to obtain a third intermediate set;
[0033] Obtaining the third intermediate set;
[0034] Calculate the hash value of each element in the third intermediate set based on a preset second hash function to obtain a second hash value;
[0035] The second Hash value is encrypted using the shared key to obtain the first encrypted set.
[0036] According to another aspect of the present disclosure, a data processing method in a multi-party secure computing is provided, wherein the multi-party secure computing comprises: at least two participating terminals and a server terminal that is communicatively connected to the at least two participating terminals, wherein a first participating terminal among the at least two participating terminals is a terminal that obtains a processing result, and other participating terminals and the server terminal except the first participating terminal do not obtain the processing result; the method is applied to a second participating terminal among the other participating terminals, and the method comprises:
[0037] Interacting with the first participant based on a preset multi-party encryption protocol, so that the first participant encrypts the local data set based on the interaction content;
[0038] Encrypting the local data set of the second participant based on the multi-party encryption protocol to obtain a second encrypted set;
[0039] constructing a first obfuscated Bloom filter based on the second encryption set;
[0040] Based on the first obfuscated Bloom filter and the random string, the server exchanges data based on the one-to-one OT protocol, so that after obtaining the first Bloom filter constructed by the first participant, the server can obtain the random string of the second participant or the string in the first obfuscated Bloom filter of the second participant based on the one-to-one inadvertent transmission OT protocol, at least according to the value of each bucket in the first Bloom filter; and construct a second obfuscated Bloom filter based on the obtained string; the second obfuscated Bloom filter is used for the first participant to perform membership detection on the second obfuscated Bloom filter based on the first Bloom filter to obtain the processing result;
[0041] Among them, the first Bloom filter is constructed by the first participant based on the first encryption set, and the first encryption set is obtained by the first participant interacting with the second participant based on the multi-party encryption protocol to encrypt the local data set of the first participant based on the interaction content.
[0042] In a possible implementation, the processing result is the intersection of the local data sets of each participating terminal; accordingly,
[0043] The step of encrypting the local data set of the second participant terminal based on the multi-party encryption protocol to obtain a second encrypted set includes:
[0044] The local data set of the second participant is taken as input, and the local data set is encrypted using a pre-generated key based on the OPRF protocol to obtain the second encrypted set.
[0045] In a possible implementation, taking the local data set of the second participant as input, encrypting the local data set using a pre-generated key based on the OPRF protocol to obtain the second encrypted set includes:
[0046] generating the key;
[0047] Calculate the hash value of each element in the local data set using a preset first hash function to obtain a first hash value;
[0048] Calculate the hash value of each first hash value using a preset second hash function to obtain a second hash value;
[0049] Each second hash value is encrypted based on the key to obtain the second encrypted set.
[0050] In a possible implementation, the interacting with the first participant based on a preset multi-party encryption protocol includes:
[0051] generating a public key based on the secret key;
[0052] Send the public key to the first participant; so that the first participant generates a shared key based on the local private key and the public key, and generates a local public key based on the local private key; calculate each element in the local data set based on a preset first hash function, and encrypt the calculated first hash value using the local public key to obtain a first intermediate set; send the first intermediate set to the second participant;
[0053] Acquire the first intermediate set sent by the first participant;
[0054] Encrypting the first intermediate set using the key to obtain a second intermediate set;
[0055] The second intermediate set is sent to the first participating end; so that the first participating end calculates the second hash value of each element in the second intermediate set based on a preset second hash function, and uses the shared key to encrypt each second hash value to obtain the first encrypted set.
[0056] In a possible implementation, the processing result is the intersection size of the local data sets of each participating terminal; accordingly,
[0057] The step of encrypting the local data set of the second participant based on the encryption protocol to obtain a second encrypted set includes:
[0058] Taking the local data set of the second participant as input, the local data set is encrypted using a pre-generated key and a pseudo-random permutation function based on the obfuscated OPRF protocol to obtain the second encrypted set.
[0059] In a possible implementation, taking the local data set of the second participant as input, encrypting the local data set based on the obfuscated OPRF protocol using a pre-generated key and a pseudo-random permutation function to obtain the second encrypted set includes:
[0060] generating the key and the pseudo-random permutation function;
[0061] Using the pseudo-random permutation function to permute each element in the local data set;
[0062] Calculate the hash value of the replaced element using a preset first hash function to obtain a replaced first hash value;
[0063] Calculate the hash value of each replaced first hash value using a preset second hash function to obtain a replaced second hash value;
[0064] Each replaced second hash value is encrypted based on the key to obtain the second encrypted set.
[0065] In a possible implementation, the interacting with the first participant based on a preset multi-party encryption protocol includes:
[0066] generating a public key based on the secret key;
[0067] Send the public key to the first participant; so that the first participant generates a shared key based on the local private key and the public key, and generates a local public key based on the local private key; calculate each element in the local data set based on a preset first hash function, and encrypt the calculated first hash value using the local public key to obtain a first intermediate set; send the first intermediate set to the second participant;
[0068] Acquire the first intermediate set sent by the first participant;
[0069] Encrypting the first intermediate set using the key, and permuting elements in the first intermediate set using a pre-generated pseudo-random permutation function to obtain a third intermediate set;
[0070] The third intermediate set is sent to the first participating end; so that the first participating end calculates the second hash value of each element in the third intermediate set based on a preset second hash function, and uses the shared key to encrypt each second hash value to obtain the first encrypted set.
[0071] In a possible implementation manner, the at least two participating terminals further include a third participating terminal, and the third participating terminal does not obtain the processing result. Accordingly, the method further includes:
[0072] Based on the multi-party encryption protocol, interaction is performed with the third participant so that the third participant encrypts the local data set based on the interaction content to obtain a third encrypted set, and constructs a second Bloom filter based on the third encrypted set; the second Bloom filter is used for the server to aggregate the first Bloom filter and the second Bloom filter so as to obtain the random string of the second participant or the string in the first obfuscated Bloom filter of the second participant according to the value of each bucket in the aggregated Bloom filter based on the two-choice OT protocol.
[0073] According to another aspect of the present disclosure, a data processing method in a multi-party secure computation is provided, wherein the multi-party secure computation comprises: at least two participating terminals and a server terminal that is communicatively connected to the at least two participating terminals, wherein a first participating terminal among the at least two participating terminals is a terminal that obtains a processing result, and other participating terminals and the server terminal except the first participating terminal do not obtain the processing result; the method is applied to a third participating terminal among the other participating terminals, and the method comprises:
[0074] Interacting with a second participant terminal among the at least two participants terminal based on a preset multi-party encryption protocol to encrypt a local data set of the third participant terminal based on the interaction content to obtain a third encrypted set;
[0075] constructing a second Bloom filter based on the third encrypted set;
[0076] The second Bloom filter is sent to the server so that the server can aggregate the second Bloom filter and the first Bloom filter constructed by the first participant, and then, based on the two-choice OT protocol, obtain the random string of the second participant or the string in the first obfuscated Bloom filter of the second participant according to the values of each bucket in the aggregated Bloom filter; and construct a second obfuscated Bloom filter based on the obtained string; the second obfuscated Bloom filter is used for the first participant to perform membership detection on the second obfuscated Bloom filter based on the first Bloom filter to obtain the processing result;
[0077] The first Bloom filter is constructed by the first participant based on a first encryption set, and the first encryption set is obtained by the first participant interacting with the second participant based on the multi-party encryption protocol to encrypt the local data set of the first participant based on the interaction content;
[0078] The first confused Bloom filter is constructed by the second participant based on a second encryption set, and the second encryption set is obtained by the second participant encrypting a local data set based on the multi-party encryption protocol.
[0079] According to another aspect of the present disclosure, a data processing method in a multi-party secure computation is provided, wherein the multi-party secure computation comprises: at least two participating terminals and a server terminal that is communicatively connected to the at least two participating terminals, wherein a first participating terminal of the at least two participating terminals is a terminal that obtains a processing result, and other participating terminals and the server terminal except the first participating terminal do not obtain the processing result; the method is applied to the server terminal, and the method comprises:
[0080] Obtaining a first Bloom filter constructed by the first participant based on a first encryption set; wherein the first encryption set is obtained by the first participant interacting with the second participant based on the multi-party encryption protocol to encrypt a local data set based on the interaction content;
[0081] Based on the two-choice OT protocol, at least according to the value of each bucket in the first Bloom filter, obtain the random string of the second participant or the string in the first obfuscated Bloom filter of the second participant; the first obfuscated Bloom filter is constructed by the second participant based on the second encryption set, and the second encryption set is obtained by the second participant encrypting the local data set based on the multi-party encryption protocol;
[0082] Construct a second obfuscated Bloom filter based on the obtained string;
[0083] The second confused Bloom filter is sent to the first participant, so that the first participant performs membership detection on the second confused Bloom filter based on the first Bloom filter to obtain the processing result.
[0084] In a possible implementation manner, the at least two participating terminals also include a third participating terminal; accordingly,
[0085] The method of acquiring the random string of the second participant or the string in the first obfuscated Bloom filter of the second participant based on the two-choice OT protocol at least according to the value of each bucket in the first Bloom filter includes:
[0086] Acquire a second Bloom filter constructed by the third participant based on a third encryption set; wherein the third encryption set is obtained by the third participant interacting with the second participant based on the multi-party encryption protocol to encrypt a local data set based on the interaction content;
[0087] Aggregating the first Bloom filter and each second Bloom filter to obtain an aggregated Bloom filter;
[0088] For the value of each bucket in the aggregated Bloom filter, based on the two-choice OT protocol, obtain the random string of the second participant or the string of the bucket in the first obfuscated Bloom filter of the second participant.
[0089] In a possible implementation manner, aggregating the first Bloom filter and each second Bloom filter to obtain an aggregated Bloom filter includes:
[0090] An AND operation is performed on the first Bloom filter and each second Bloom filter by bucket to obtain the aggregated Bloom filter.
[0091] According to another aspect of the present disclosure, there is provided a data processing device, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.
[0092] According to another aspect of the present disclosure, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions implement the above method when executed by a processor.
[0093] According to another aspect of the present disclosure, a computer program product is provided, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.
[0094] The first participant interacts with the second participant based on a preset multi-party encryption protocol, so as to encrypt the local data set of the first participant based on the interaction content to obtain a first encrypted set; construct a first Bloom filter based on the first encrypted set; send the first Bloom filter to the server, so that after obtaining the first Bloom filter, the server obtains the random string of the second participant or the string in the first obfuscated Bloom filter generated by the second participant based on the local data set based on the two-choice OT protocol at least according to the value of each bucket in the first Bloom filter; and construct a second obfuscated Bloom filter based on the obtained string; the first participant performs membership detection on the second obfuscated Bloom filter based on the first Bloom filter to obtain a processing result; so that the second participant with the key of the multi-party encryption protocol cannot obtain the second obfuscated Bloom filter used to calculate the processing result, but the second obfuscated Bloom filter is obtained by the secure and reliable server. At this time, even if the local data set input by the second participant is unreliable, it can be guaranteed that the second participant will not obtain the string used to indicate the intersection, thereby ensuring the security of the data processing method. At the same time, since the Bloom filter is a data structure with high space efficiency, the efficiency of membership detection can be improved. In addition, the combination of Bloom filter and OT can parallelize most operations, thus further improving data processing efficiency. It can also be applied to multi-party secure computing with large local data sets, thus improving the availability of data processing methods.
[0095] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0096] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
[0097] Figure 1 A schematic diagram showing a scenario of multi-party secure computing according to an embodiment of the present disclosure;
[0098] Figure 2 A flow chart showing a data processing method according to an embodiment of the present disclosure;
[0099] Figure 3 A flowchart showing a data processing method according to another embodiment of the present disclosure;
[0100] Figure 4 A flowchart showing a method for encrypting a local data set using the DH-based OPRF protocol according to an embodiment of the present disclosure is shown;
[0101] Figure 5A flowchart showing a method for encrypting a local data set using a DH-based obfuscated OPRF protocol according to an embodiment of the present disclosure is shown;
[0102] Figure 6 A block diagram showing a data processing device according to an embodiment of the present disclosure;
[0103] Figure 7 A block diagram showing a data processing device according to another embodiment of the present disclosure;
[0104] Figure 8 A block diagram showing a data processing device according to another embodiment of the present disclosure;
[0105] Fig. 9 A block diagram of a data processing device according to another embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0106] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0107] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0108] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.
[0109] First, several terms involved in this application are introduced.
[0110] 1. Bloom Filter: Mainly used to retrieve whether an element is in a set. Generally, a Bloom filter includes a bit array of fixed size (the bit array is a binary vector or a bitmap) and a series of random mapping functions. The bit data includes L buckets, each of which has a length of 1, where L is a positive integer. The idea of data retrieval based on Bloom filters includes at least the following steps:
[0111] Step 1: Add elements to the Bloom filter.
[0112] The elements are calculated by a hash function in a Bloom filter to obtain a hash value; the value of the bucket indicated by the hash value in the bit array is set to 1 according to the hash value; and each bucket is initialized to 0. There is at least one hash function.
[0113] Step 2: Query the element.
[0114] Use the hash function in the Bloom filter to calculate each element to be queried to obtain a hash value; in the bit array, determine whether the value of the bucket corresponding to the hash value is 1; if it is 1, it is determined that the element to be queried is in the Bloom filter; if not 1, it is determined that the element to be queried is not in the Bloom filter.
[0115] 2. Garbled Bloom Filter (GBF) is a data structure based on Bloom filter, which combines the concept of garbled circuit and is used to query set membership in a privacy-preserving environment. The main purpose of GBF is to allow the client to query whether a certain element exists in a set without revealing any information about the element to the server while protecting user privacy.
[0116] GBF is built on the basis of the standard Bloom filter, but the storage structure is different from that of Bloom filter. The storage structure of GBF does not use a bit array of length L, but a string array of length L, and the length of the string in each array is σ bits. In other words, the storage structure of GBF includes L buckets, each bucket has a length of σ, and L and σ are both positive integers. When an element x needs to be inserted into GBF, k hash functions are used to hash the element x to obtain the position values H(x) of k buckets; the element x is split into k strings of length σ bits, and the k strings are equal to the element x after the exclusive OR (XOR) operation; the k strings are respectively stored in the buckets pointed to by the k position values H(x). k is a positive integer.
[0117] When the position value of the element x' inserted later conflicts with at least one position value of the element x, if the element x' is split, it is necessary to reuse the string at the at least one position value to split the element x'.
[0118] In addition, after all elements are inserted into GBF, if there are still buckets with no data in each string array, random strings are filled in the buckets.
[0119] Obfuscated Bloom filters can hide the actual contents of a collection and the elements being queried, thereby completing membership queries while protecting the privacy of both parties.
[0120] 3. One-out-of-Two Oblivious Transfer (1-out-of-2OT) is a protocol used to protect privacy in cryptography. It allows the sender to send one of a pair of messages to the receiver, and the receiver can choose which one of the messages to receive. At the same time, the sender does not know which message the receiver has selected, and the receiver does not know the content of the unselected messages.
[0121] 4. Oblivious Pseudorandom Function (OPRF): Mainly used to generate the output of a pseudorandom function without leaking input information.
[0122] 5. Multi-party negotiation of Advanced Encryption Standard (AES) encryption: refers to the process of jointly agreeing on an AES encryption key with the participation of multiple parties. This process usually requires the use of a full key exchange protocol, such as the Diffie-Hellman (DH) key exchange protocol, to ensure the secure transmission of the key.
[0123] 6. DH key exchange protocol: It is a method to securely transmit a shared key between two communicating parties. The DH key exchange process includes at least the following steps:
[0124] Step 1: Select a large prime number p and a primitive root g, where the primitive root g is selected from the multiplicative group modulo p.
[0125] Step 2: Generate private key and public key.
[0126] Participant A selects a private random number a and calculates the public key of participant A = g a mod p.
[0127] Participant B chooses a private random number b and calculates the public key of participant B B = g b mod p.
[0128] Step 3: Exchange public keys.
[0129] Party A sends public key A to party B.
[0130] Party B sends public key B to party A.
[0131] Step 4: Calculate the shared key.
[0132] After receiving the public key B, party A calculates the shared key s = B a mod p.
[0133] After receiving the public key A, party B calculates the shared key s = A b mod p.
[0134] According to the properties of exponential operation, participants A and B obtain the same shared key s, that is, s = g ab mod p. This shared key s can be used for subsequent encrypted communications.
[0135] In the Diffie-Hellman key exchange protocol, given g, p, g x In the case of mod p, it is difficult to calculate x. Therefore, even if the attacker intercepts the public keys A and B, it is not easy to calculate the shared key s, which can ensure the security of encrypted communication.
[0136] The following is a detailed introduction to the data processing method in the multi-party secure computing involved in the present application. Before introducing this, in order to more clearly understand the scenario of the multi-party secure computing, the scenario is first introduced. Figure 1 A schematic diagram of a multi-party secure computing scenario according to an embodiment of the present disclosure is shown. Figure 1 It can be known that the multi-party secure computing includes: at least two participating terminals 110 and a service terminal 120 communicatively connected to the at least two participating terminals.
[0137] In this application, it is assumed that there are t participating terminals P = {P1, ..., P t}, where t is an integer greater than or equal to 2, P j ∈P holds local data sets respectively And|X j |=n j , n j is a positive integer, n of different participating terminals j The same or different, wherein each participating terminal n j The maximum value of is n.
[0138] The at least two participating terminals include a first participating terminal P1, which is a terminal for obtaining the processing result. In the present application, the processing result may be a PSI result, that is, a local data set X of each participating terminal. j The intersection of Or it can be the PSI-CA result, that is, the local data set X of each participating end j The intersection size Rather than the intersection itself.
[0139] Except for the first participant P1, other participants and the server do not obtain the processing results. Among them, other participants include at least the second participant P t , the second participant terminal P tThe first participant P1 is used to interact with the first participant P1 based on a preset multi-party encryption protocol, so that the first participant P1 can encrypt its local data set. t It can be a participant terminal selected arbitrarily from other participants, or a pre-specified participant terminal. This application does not apply to the second participant terminal P t The method of determining is limited.
[0140] Optionally, the other participating terminals further include at least one third participating terminal, which does not obtain the processing result and communicates with the second participating terminal P t Interact based on a preset multi-party encryption protocol so that the third party can encrypt its local data set.
[0141] Optionally, the participating end in the present application may be an electronic device with processing and communication capabilities, such as a user terminal or a server, wherein the user terminal includes but is not limited to: computers, mobile phones, tablet computers, and wearable devices, etc.; the device types between different participating ends may be the same or different, and this embodiment does not limit the device types of the participating ends.
[0142] The server S is used to provide secure and reliable auxiliary computing services. The server S does not need to input data during the multi-party secure computing process, but instead calculates the data sent by each participating end.
[0143] The server S may be a server or a server cluster or other electronic devices with processing and communication capabilities. This embodiment does not limit the implementation method of the server S.
[0144] Based on the above schematic diagram of multi-party secure computing, Figure 2 A flow chart showing a data processing method in a multi-party secure computing according to an embodiment of the present disclosure is shown. Figure 2 As shown, the method at least includes:
[0145] Step 201: A first participant interacts with a second participant based on a preset multi-party encryption protocol, so that the first participant encrypts a local data set of the first participant based on the interaction content to obtain a first encrypted set.
[0146] In other words, the first participant interacts with the second participant based on a multi-party encryption protocol to encrypt the local data set of the first participant based on the interaction content; the second participant interacts with the first participant based on a multi-party encryption protocol to allow the first participant to encrypt the local data set based on the interaction content.
[0147] Among them, the interaction process based on the multi-party encryption protocol may involve multiple interactions. The multi-party encryption protocol allows the first participant to generate a key based on the second participant to encrypt the local data set to ensure the privacy of the local data set of the first participant.
[0148] Step 202: The second participant encrypts the local data set of the second participant based on the multi-party encryption protocol to obtain a second encrypted set.
[0149] The second participant uses the same multi-party encryption protocol to encrypt the local data set to ensure that the processing result can be determined based on the second encrypted set obtained by encryption.
[0150] Step 203: The second participant constructs a first obfuscated Bloom filter based on the second encryption set.
[0151] The first confused Bloom filter includes L buckets, where L is a positive integer, and the value of L is determined based on the maximum number of elements in the local data set of each participating terminal.
[0152] Illustratively, L=1.44∈n, where ∈ is a preset parameter indicating the maximum allowed false alarm rate, and n is the maximum number of elements in the local data set of each participating terminal.
[0153] The first obfuscated Bloom filter is constructed based on the second encrypted set, including: for each element x in the second encrypted set, using the preset w hash functions to perform hash calculation on the element x to obtain the index values H(x) of the w buckets; splitting the element x into w strings of σ bits in length, the w strings being equal to the element x after the exclusive OR (XOR) operation; and storing the w strings in the buckets pointed to by the w index values H(x). Thus, each bucket of the first obfuscated Bloom filter includes σ bits.
[0154] The value of w is usually set to an integer multiple of L / n. Schematically, the value of w is:
[0155]
[0156] in, Indicates rounding up.
[0157] Optionally, steps 202 and 203 may be executed before step 201, or may be executed after step 201, or may be executed synchronously with step 201. This embodiment does not limit the execution order of steps 202 and 203.
[0158] Step 204: The first participant constructs a first Bloom filter based on the first encryption set.
[0159] The first Bloom filter also includes L buckets, and the length of each bucket is 1. Constructing the first Bloom filter based on the first encrypted set includes: for each element y in the first encrypted set, using preset w hash functions to perform hash calculation on the element y, obtaining index values H(y) of the w buckets, and setting the value of the bucket indicated by each index value H(y) to 1.
[0160] Among them, the w hash functions in the first participant are the same as the w hash functions in the second participant.
[0161] Step 205: The first participant sends a first Bloom filter to the server.
[0162] The first Bloom filter is used for the server to obtain the first Bloom filter, based on a two-choice OT protocol, to obtain a random string of the second participant or a string in the first obfuscated Bloom filter of the second participant at least according to the value of each bucket in the first Bloom filter; and to construct a second obfuscated Bloom filter based on the obtained string; wherein the first obfuscated Bloom filter is constructed by the second participant based on the second encryption set, and the second encryption set is obtained by the second participant encrypting the local data set based on a multi-party encryption protocol.
[0163] Steps 204 and 205 are executed after step 201. The execution order of steps 204 and 205 is independent of steps 202-203. This embodiment does not limit the execution order between steps 204-205 and steps 202-203.
[0164] Step 206: The server obtains a first Bloom filter constructed by the first participant based on the first encryption set.
[0165] The first encryption set is obtained by the first participant interacting with the second participant based on a multi-party encryption protocol to encrypt the local data set based on the interaction content.
[0166] Step 207, the server and the second participant exchange data based on the OT protocol, so that the server can obtain the random string of the second participant or the string in the first obfuscated Bloom filter of the second participant at least according to the value of each bucket in the first Bloom filter.
[0167] In other words, the server exchanges data with the second participant based on the two-choice OT protocol so as to obtain the random string of the second participant or the string in the first obfuscated Bloom filter of the second participant at least according to the value of each bucket in the first Bloom filter; accordingly, the second participant exchanges data with the server based on the two-choice OT protocol based on the first obfuscated Bloom filter and the random string so that after the server obtains the first Bloom filter constructed by the first participant, it obtains the random string of the second participant or the string in the first obfuscated Bloom filter of the second participant based on the two-choice OT protocol at least according to the value of each bucket in the first Bloom filter; and constructs a second obfuscated Bloom filter based on the obtained string.
[0168] The second obfuscated Bloom filter is used for the first participant to perform membership detection on the second obfuscated Bloom filter based on the first Bloom filter to obtain a processing result.
[0169] The first confused Bloom filter is constructed by the second participant based on the second encryption set, and the second encryption set is obtained by the second participant encrypting the local data set based on the multi-party encryption protocol.
[0170] The two-choice OT protocol involves L OT interactions. During each OT interaction, the server obtains a string of a bucket in the first obfuscated Bloom filter of the second participant or a random string generated by the second participant.
[0171] In one example, when each participant only includes the first participant and the second participant, in the k∈[1, L]th OT, the second participant P t The input is The input of the server S is the string (value) BF[k]' of the kth bucket in the first Bloom filter; the second participant P t No output is obtained, the server S obtains Among them, r k A random string generated for the second participant. Optionally, the random strings generated for different OTs are different. k The bit length is σ. GBF[k] represents the string of the kth bucket in the first obfuscated Bloom filter. BF[k]' represents the value of the kth bucket in the first Bloom filter, which is 0 or 1.
[0172] According to the above content, if the value of the kth bucket in the first Bloom filter is 1, the server S obtains the string of the kth bucket in GBF[k]; if the value of the kth bucket in the first Bloom filter is 0, the server S obtains the random string generated by the kth OT.
[0173] In the case where each participant terminal further includes at least one third participant terminal, please refer to the description of the following embodiment.
[0174] Step 208: The server constructs a second obfuscated Bloom filter based on the acquired character string.
[0175] Since OT is performed L times, the server can obtain L strings. The server pre-creates a second obfuscated Bloom filter with L bits, and stores the L strings in the corresponding buckets of the second obfuscated Bloom filter in sequence according to the number of OTs. The second obfuscated Bloom filter includes L buckets, each of which includes σ bits, or the length of each bucket is σ.
[0176] The process of constructing the second confusion Bloom filter can be expressed as follows:
[0177]
[0178] Among them, GBF ∩ [k] represents the kth bucket of the second confused Bloom filter, Indicates the string obtained by the kth OT.
[0179] Step 209: The server sends the second obfuscated Bloom filter to the first participant.
[0180] Step 210: The first participant obtains a second obfuscated Bloom filter; performs membership detection on the first encrypted set based on the second obfuscated Bloom filter to obtain a processing result.
[0181] In one example, if the processing result is the intersection of the local data sets of each participating terminal, a membership check is performed on the first encrypted set based on the second confused Bloom filter to obtain a processing result, including:
[0182] For the local data collection of the first participant The corresponding first encryption set Obtain the index value of each element in the first encrypted set after being calculated by w hash functions, obtain the string in the bucket indicated by each index value from the second confused Bloom filter; perform an XOR operation on each string; compare the string obtained by XOR with the element; if they are consistent, determine that the element belongs to the intersection of each local data set, and output the element in the local data set corresponding to the element; if they are inconsistent, determine that the element does not belong to the intersection of each local data set Wherein, n1 represents the number of elements in the local data set X1 of the first participant.
[0183] In another example, if the processing result is the intersection size of the local data sets of each participating terminal, a membership check is performed on the first encrypted set based on the second confused Bloom filter to obtain a processing result, including:
[0184] For the local data collection of the first participant The corresponding first encryption set Obtain the index value of each element in the first encrypted set after being calculated by w hash functions, and obtain the string in the bucket indicated by the index value from the second confused Bloom filter; perform an XOR operation on the string; compare the string obtained by the XOR with the element; if they are consistent, determine that the element belongs to the intersection of each local data set; if they are inconsistent, determine that the element does not belong to the intersection of each local data set; count the number of elements belonging to the intersection to obtain the intersection size
[0185] It should be noted that, when the processing result is the intersection size, the elements in the first encrypted set in the first participating end and the elements in the local data set of the first participating end no longer have a one-to-one correspondence, that is, even if the first participating end determines that the elements in the first encrypted set belong to the intersection of each local data set, it cannot determine which element in the local data set the element is encrypted from.
[0186] In summary, the data processing method in multi-party secure computing provided by this embodiment is that the first participant interacts with the second participant based on a preset multi-party encryption protocol to encrypt the local data set of the first participant based on the interaction content to obtain a first encrypted set; construct a first Bloom filter based on the first encrypted set; send the first Bloom filter to the server, so that after the server obtains the first Bloom filter, based on the two-choice OT protocol, at least according to the value of each bucket in the first Bloom filter, obtain the random string of the second participant or the string in the first obfuscated Bloom filter generated by the second participant based on the local data set; and construct a second obfuscated Bloom filter based on the obtained string; the first participant performs membership detection on the second obfuscated Bloom filter based on the first Bloom filter to obtain a processing result; so that the second participant who has the key of the multi-party encryption protocol cannot obtain the second obfuscated Bloom filter used to calculate the processing result, but the second obfuscated Bloom filter is obtained by the secure and trusted server. At this time, even if the local data set input by the second participant is untrustworthy, it can be guaranteed that the second participant will not obtain the string used to indicate the intersection, thereby ensuring the security of the data processing method. At the same time, since Bloom filter is a data structure with high space efficiency, it can improve the efficiency of membership detection. In addition, the combination of Bloom filter and OT can parallelize most operations, thus further improving the data processing efficiency and being applicable to multi-party secure computation with large local data sets, thus improving the availability of data processing methods.
[0187] Optionally, steps 201 to 203, and step 207 in the above embodiments can be implemented separately as method embodiments of the second participating end; steps 201, 204, 205 and 210 can be implemented separately as method embodiments of the first participating end; steps 206 to 209 can be implemented separately as method embodiments of the server end.
[0188] Optionally, based on the above embodiment, refer to Figure 3 If the multiple participants also include a third participant, the following steps are also included before step 207:
[0189] Step 301: The third participant terminal interacts with the second participant terminal based on a preset multi-party encryption protocol, so that the third participant terminal encrypts the local data set of the third participant terminal based on the interaction content to obtain a third encrypted set.
[0190] In other words, the third participant interacts with the second participant based on a multi-party encryption protocol to encrypt the local data set of the third participant based on the interaction content; the second participant interacts with the third participant based on a multi-party encryption protocol to allow the third participant to encrypt the local data set based on the interaction content.
[0191] The way in which the third participant terminal interacts with the second participant terminal based on the multi-party encryption protocol is the same as the way in which the first participant terminal interacts with the second participant terminal based on the multi-party encryption protocol. For specific descriptions, see step 201 and the following embodiments, which will not be repeated here.
[0192] Step 302: The third participant constructs a second Bloom filter based on the third encryption set.
[0193] The way in which the third participant terminal constructs the second Bloom filter is the same as the way in which the first participant terminal constructs the first Bloom filter. For a specific description, see step 204, which will not be repeated in this embodiment.
[0194] Step 303, the third participant sends a second Bloom filter to the server, so that the server can aggregate the second Bloom filter and the first Bloom filter constructed by the first participant, and then, based on the two-choice OT protocol, obtain the random string of the second participant or the string in the first obfuscated Bloom filter of the second participant according to the values of each bucket in the aggregated Bloom filter; and construct a second obfuscated Bloom filter based on the obtained string.
[0195] Accordingly, as an alternative step to step 207:
[0196] Step 304: The server obtains a second Bloom filter constructed by the third participant based on the third encryption set.
[0197] The third encryption set is obtained by the third participant interacting with the second participant based on a multi-party encryption protocol to encrypt the local data set based on the interaction content.
[0198] Step 305: The server aggregates the first Bloom filter and each second Bloom filter to obtain an aggregated Bloom filter.
[0199] In one example, aggregating the first Bloom filter and each second Bloom filter to obtain an aggregated Bloom filter includes: performing an AND operation on the first Bloom filter and each second Bloom filter by bucket to obtain the aggregated Bloom filter.
[0200] The method of obtaining the aggregated Bloom filter BF can be expressed by the following formula:
[0201]
[0202] Wherein, ∧ represents a bitwise AND operation (in this application, a bucket-wise AND operation is performed, that is, the values in the same bucket of different Bloom filters are ANDed to obtain the value of the bucket in the aggregated Bloom filter), BF j It represents the Bloom filters sent by each participant except the second participant, including the first Bloom filter sent by the first participant and the third Bloom filter sent by the third participant. t represents the total number of participants, and k represents the kth bucket in the Bloom filter.
[0203] Step 306, for the value of each bucket in the aggregated Bloom filter, the server and the second participant interact based on the two-choice OT protocol, so that the server obtains the random string of the second participant or the string of the bucket in the first obfuscated Bloom filter of the second participant.
[0204] In other words, for the value of each bucket in the aggregated Bloom filter, the server obtains the random string of the second participant or the string of the bucket in the first obfuscated Bloom filter of the second participant based on the two-choose-one OT protocol. Accordingly, the second participant interacts with the server based on the two-choose-one OT protocol so that the server can obtain the random string or the string of the bucket in the first obfuscated Bloom filter.
[0205] At this time, when each participant terminal includes a first participant terminal, a second participant terminal, and a third participant terminal, in the k∈[1, L]th OT, the second participant terminal P t The input is The input of the server S is the value of the kth bucket in the aggregated Bloom filter BF[k]; the second participant P t No output is obtained, the server S obtains Among them, r kA random string generated for the second participant. Optionally, the random strings generated for different OTs are different. k The bit length is σ. GBF[k] represents the string of the kth bucket in the first obfuscated Bloom filter. BF[k] represents the value of the kth bucket in the aggregated Bloom filter, which is 0 or 1.
[0206] According to the above content, if the value of the kth bucket in the aggregated Bloom filter is 1, the server S obtains the string of the kth bucket in GBF[k]; if the value of the kth bucket in the aggregated Bloom filter is 0, the server S obtains the random string generated by the kth OT.
[0207] Thereafter, steps 208 - 210 are executed.
[0208] In summary, the data processing method provided in this embodiment can be applied to scenarios where at least three participating terminals perform multi-party computing, which can improve the availability of the data processing method. At the same time, since each participating terminal sends a Bloom filter to the server, each of the Bloom filters only stores one bit value, thus reducing the amount of data sent to the server and saving communication resources.
[0209] Optionally, based on the above embodiments, the preset multi-party encryption protocol includes but is not limited to the OPRF protocol, or the AES protocol, etc. The present application does not limit the implementation method of the multi-party encryption protocol.
[0210] Below, the preset multi-party encryption protocol is the OPRF protocol, and the processing result is the intersection of the local data sets of each participating terminal.
[0211] At this time, as a replaceable step of step 201: the first participant takes the local data set as input, encrypts the local data set based on the oblivious pseudo-random function OPRF protocol using the key generated by the second participant to obtain a first encrypted set.
[0212] Accordingly, as a replaceable step of step 202: the second participant takes the local data set as input, encrypts the local data set using a pre-generated key based on the OPRF protocol, and obtains a second encrypted set.
[0213] The implementation of the OPRF protocol includes but is not limited to: an OPRF protocol based on DH, an OPRF protocol based on RSA (Rivest–Shamir–Adleman), etc. This embodiment does not limit the implementation of the OPRF protocol.
[0214] In this embodiment, the encryption of the local data set based on the OPRF protocol of DH is taken as an example for explanation. Figure 4 For the convenience of description, Figure 4 The second participant is represented as participant P t , the first participant and the third participant are denoted as participant P j An exemplary description is given, where j∈[1, t-1], and t is a positive integer greater than 1. t With the participating end P j The following parameters are pre-shared: the large prime number p in the DH protocol and the multiplication group modulo p and its primitive root g; the first hash function H1: (indicates converting any length of binary input into a domain Elements on) and the second hash function H2: (Domain The elements on the Bloom filter are converted into binary numbers of length σ); and the Bloom filter (including the first Bloom filter and the second Bloom filter), and the length L of the confusion Bloom filter. Figure 4 , as an alternative step to step 201 or 301:
[0215] Step 401: Participating terminal P t Generate a secret key, based on which a public key is generated.
[0216] Participating terminal P t The generated key can be understood as a local private key in DH. Based on this, the key can be randomly generated by the second participant. Optionally, during the calculation of a processing result, the key does not change. In other words, the participant P t Based on the same key and each participating end P t Correspondingly, the public key A is generated based on the key, which can be expressed by the following formula:
[0217] A = gα mod p;
[0218] Among them, α represents the participating end P t The generated key, where denotes that α is the multiplicative group modulo p The integer domain of A randomly selected integer from .
[0219] Step 402: Participating terminal P t Send the public key to the participating terminal P j .
[0220] Step 402 includes sending the public key to the first participant. When the multi-party secure computation includes a third participant, step 402 also includes sending the public key to the third participant. tThe public key may be sent to the first participant and the third participant at the same time, or may be sent to the first participant and each third participant at different sending times. This embodiment does not limit the sending method of the public key.
[0221] The public key is used for the first participant and the third participant to generate a shared key based on the local private key and the public key respectively, and to generate a local public key based on the local private key; to calculate each element in the local data set based on the preset first hash function, and to encrypt the calculated first hash value using the local public key to obtain a first intermediate set; and to send the first intermediate set to the second participant. See the following steps for details.
[0222] Step 403: Participating terminal P j Get the participating end P t Generate a public key based on the key; generate a local private key; generate a local public key based on the local private key; generate a local public key based on the local private key and the participating end P t The public key sent is used to generate a shared secret key.
[0223] Participating terminal P j The local private key may be generated before the public key is obtained, or after the public key is obtained, or during the period of obtaining the public key. This embodiment does not limit the timing of generating the local private key.
[0224] According to the content of the DH protocol, the local public key B is generated based on the local private key, which can be expressed by the following formula:
[0225]
[0226] The shared key K is generated based on the local private key and the public key, which can be expressed as follows:
[0227]
[0228] Right now,
[0229] Among them, A represents the participating end P t The public key sent, β j Indicates the participating end P j The generated local private key, Represents β j is the multiplicative group modulo p The integer domain of A randomly selected integer from .
[0230] Step 404, the participating terminal P j Each element in the local data set is calculated based on a preset first hash function, and the calculated first hash value is encrypted using a local public key to obtain a first intermediate set.
[0231] The first intermediate set can be expressed as follows:
[0232]
[0233] Among them, x j,i Indicates the participating end P j The i-th element in the local data set, H1 is the first hash function, n j For the participating end P j The number of elements in the local data collection.
[0234] Step 405: Participating terminal P j Send the first intermediate set to the participating terminal P t , for the participating end P t The first intermediate set is encrypted using the key to obtain a second intermediate set.
[0235] Step 406: Participating terminal P t Get the participating end P j The first intermediate collection sent.
[0236] Step 407, the participating terminal P t For each first intermediate set, the first intermediate set is encrypted using a key to obtain a second intermediate set.
[0237] The second intermediate set can be expressed as follows:
[0238]
[0239] Among them, α is the participating end P t The generated private key, x j,i Indicates the participating end P j The i-th element in the first intermediate set of j For the participating end P j The number of elements in the local data collection.
[0240] Step 408: Participating terminal P t The second intermediate set is sent to the participant P corresponding to the first intermediate set. j ; For the participating end P corresponding to the first intermediate set j The second hash value of each element in the second intermediate set is calculated based on the preset second hash function, and each second hash value is encrypted using the shared key to obtain the participating terminal P j The encrypted collection corresponding to the local data collection.
[0241] If the participating terminal P jFor the first participating end, the second intermediate set is used for the first participating end to calculate the second hash value of each element in the second intermediate set based on a preset second hash function, and to encrypt each second hash value using a shared key to obtain the first encrypted set.
[0242] If the participating terminal P j If it is a third participant, the second intermediate set is used for the third participant to calculate the second hash value of each element in the second intermediate set based on a preset second hash function, and encrypt each second hash value using a shared key to obtain the third encrypted set.
[0243] Step 409, the participating terminal P j Obtain a second intermediate set; calculate a hash value of each element in the second intermediate set based on a preset second hash function, and encrypt it using a shared key to obtain an encrypted set corresponding to the local data set.
[0244] If the participating terminal P j is the first participating terminal, then the encryption set corresponding to the local data set is the first encryption set; if the participating terminal P j If the local participant is a third participant, the encryption set corresponding to the local data set is the third encryption set.
[0245] The encrypted set corresponding to the local data set It can be expressed by the following formula:
[0246]
[0247] Among them, x j,i Indicates the participating end P j The i-th element in the local data set, n j For the participating end P j The number of elements in the local data set, H2 is the second hash function.
[0248] Accordingly, as an alternative step to step 202:
[0249] Step 410, the participating terminal P t A preset first hash function is used to calculate the hash value of each element in the local data set to obtain a first hash value; a preset second hash function is used to calculate the hash value of each first hash value to obtain a second hash value; and each second hash value is encrypted based on a key to obtain a second encrypted set.
[0250] The second encryption set can be expressed as follows:
[0251]
[0252] Among them, x t,i Indicates the participating end Pt The i-th element in the local data set, n t For the participating end P t The number of elements in the local data collection.
[0253] In summary, the DH-based OPRF protocol provided in this embodiment can ensure that the participating terminals P t During the calculation process, the participating end P cannot be obtained. j The local data set of the participating terminal P j Unable to obtain the participating end P t The local data collection ensures the security of the computing process.
[0254] In addition, during the calculation of the processing results, the participating terminal P t Only one key needs to be generated, and local data sets of each participating end are encrypted based on the key, which can reduce the complexity of data encryption and improve data processing efficiency. At the same time, it can also reduce the number of key exchanges and save communication resources.
[0255] In addition, by converting the domain The elements on the P are converted into binary numbers of length σ, so that each participating terminal P j The length of the elements in the corresponding encrypted set is adapted to the length of each bucket in the second obfuscated Bloom filter, ensuring that the length of the elements in the first encrypted set is consistent with the length of each bucket in the second obfuscated Bloom filter during subsequent membership detection, thereby ensuring the effectiveness of the membership detection.
[0256] In the following, the preset multi-party encryption protocol is the OPRF protocol, and the processing result is the intersection size of the local data sets of each participating terminal. Since the first participating terminal cannot obtain the content of the intersection when the processing result is the intersection size, it is necessary to break the element correspondence between the local data set of the first participating terminal and the first encrypted set. Based on this, in this embodiment, the OPRF protocol is an obfuscated OPRF protocol.
[0257] At this time, as an alternative step to step 201: the first participant uses the local data set of the first participant as input, and encrypts the local data set using the key generated by the second participant and the pseudo-random permutation function based on the obfuscated OPRF protocol to obtain a first encrypted set Among them, the second participant P t The input is the key α and the random permutation π, the first participant or the third participant P j The input is the local data set X j , x j,π(i) ∈X j, j∈[1, t-1], t is a positive integer greater than 1; F represents the OPRF function, the second participant P t No output will be obtained, the first participant or the third participant P j A mask set is obtained, that is, the first encryption set mentioned above.
[0258] Accordingly, as an alternative step to step 202: the second participant uses the local data set of the second participant as input, encrypts the local data set based on the obfuscated OPRF protocol using a pre-generated key and a pseudo-random permutation function to obtain a second encrypted set Among them, the second participant P t The input is the key α, random permutation π and local data set X t , x t,π(i) ∈X t ; F represents the OPRF function, the second participating end P t A mask set is obtained, that is, the second encryption set mentioned above.
[0259] In this embodiment, the encryption and obfuscation of the local data set based on the DH obfuscated OPRF protocol is taken as an example for explanation. Figure 5 For the convenience of description, Figure 5 The second participant is represented as participant P t , the first participant and the third participant are denoted as participant P j An exemplary description is given, where j∈[1, t-1], and t is a positive integer greater than 1. t With the participating end P j The following parameters are pre-shared: the large prime number p in the DH protocol and the multiplication group modulo p and its primitive root g; the first hash function H1: (indicates converting any length of binary input into a domain Elements on) and the second hash function H2: (Domain The elements on the Bloom filter are converted into binary numbers of length σ); and the Bloom filter (including the first Bloom filter and the second Bloom filter), and the length L of the confusion Bloom filter. Figure 5 , as an alternative step to step 201 or 301:
[0260] Step 501: Participating terminal P t Generate a secret key and a pseudo-random function, and generate a public key based on the secret key.
[0261] Participating terminal P t The description of generating the key is detailed in step 401, which will not be repeated in this embodiment. tThe pseudo-random function π is generated only by the participating end P t Known, other participating terminals cannot know.
[0262] Step 502: Participating terminal P t Send the public key to the participating terminal P j .
[0263] Step 502 includes sending the public key to the first participant. When the multi-party secure computation includes a third participant, step 502 also includes sending the public key to the third participant. t The public key may be sent to the first participant and the third participant at the same time, or may be sent to the first participant and each third participant at different sending times. This embodiment does not limit the sending method of the public key.
[0264] The public key is used for the first participant and the third participant to generate a shared key based on the local private key and the public key respectively, and to generate a local public key based on the local private key; to calculate each element in the local data set based on the preset first hash function, and to encrypt the calculated first hash value using the local public key to obtain a first intermediate set; and to send the first intermediate set to the second participant. See the following steps for details.
[0265] Step 503: Participating terminal P j Get the participating end P t Generate a public key based on the key; generate a local private key; generate a local public key based on the local private key; generate a local public key based on the local private key and the participating end P t The public key sent is used to generate a shared secret key.
[0266] The relevant description of this step is detailed in step 403, and this embodiment will not be repeated here.
[0267] Step 504, the participating terminal P j Each element in the local data set is calculated based on a preset first hash function, and the calculated first hash value is encrypted using a local public key to obtain a first intermediate set.
[0268] The first intermediate set can be expressed as follows:
[0269]
[0270] Among them, x j,i Indicates the participating end P j The i-th element in the local data set, n j For the participating end P j The number of elements in the local data collection.
[0271] The relevant description of this step is detailed in step 404, and this embodiment will not be repeated here.
[0272] Step 505: Participating terminal P j Send the first intermediate set to the participating terminal P t , for the participating end P t The first intermediate set is encrypted using a key, and the elements in the first intermediate set are permuted using a pre-generated pseudo-random permutation function to obtain a third intermediate set.
[0273] Step 506: Participating terminal P t Get the participating end P j The first intermediate collection sent.
[0274] Step 507, the participating terminal P t The first intermediate set is encrypted using a key, and the elements in the first intermediate set are permuted using a pre-generated pseudo-random permutation function to obtain a third intermediate set.
[0275] Optionally, the participating terminal P t After replacing the elements in the first intermediate set, the replaced elements are encrypted; or, the participating terminal P t After the elements in the first intermediate set are encrypted, the encrypted elements are replaced. This embodiment does not limit the order of encryption and replacement.
[0276] Taking the example of first permuting the elements and then encrypting them, the third intermediate set can be expressed by the following formula:
[0277]
[0278] Among them, α is the participating end P t The generated private key, x j,π(i) represents the i-th permuted element in the first intermediate set, β j Indicates the participating end P j The generated local private key, n j For the participating end P j The number of elements in the local data collection.
[0279] Step 508: Participating terminal P t The third intermediate set is sent to the participant P corresponding to the first intermediate set. j ; For the participating end P corresponding to the first intermediate set j The second hash value of each element in the third intermediate set is calculated based on the preset second hash function, and each second hash value is encrypted using the shared key to obtain the participating terminal P j The encrypted collection corresponding to the local data collection.
[0280] Step 509, the participating terminal P jObtain a third intermediate set; calculate a hash value of each element in the third intermediate set based on a preset second hash function, and encrypt it using a shared key to obtain an encrypted set corresponding to the local data set.
[0281] If the participating terminal P j is the first participating terminal, then the encryption set corresponding to the local data set is the first encryption set; if the participating terminal P j If the local participant is a third participant, the encryption set corresponding to the local data set is the third encryption set.
[0282] The encrypted set corresponding to the local data set It can be expressed by the following formula:
[0283]
[0284] Among them, x j,π(i) represents the i-th permuted element in the first intermediate set, n j For the participating end P j The number of elements in the local data set of the participating end P t The generated private key, β j Indicates the participating end P j The generated local private key.
[0285] Accordingly, as an alternative step to step 202:
[0286] Step 510, the participating terminal P t Use a pseudo-random permutation function to permute each element in a local data set; use a preset first hash function to calculate the hash value of the permuted element to obtain a permuted first hash value; use a preset second hash function to calculate the hash value of each permuted first hash value to obtain a permuted second hash value; and encrypt each permuted second hash value based on a key to obtain a second encrypted set.
[0287] The second encryption set can be expressed as follows:
[0288]
[0289] Among them, x t,π(i) Indicates that the participating end P t The local data set is permuted by the pseudo-random permutation function π, and the i-th element, n t For the participating end P t The number of elements in the local data set of the participating end P t The generated private key.
[0290] In summary, the DH-based obfuscated OPRF protocol provided in this embodiment can ensure that the participating terminals P tDuring the calculation process, the participating end P cannot be obtained. j The local data set of the participating terminal P j Unable to obtain the participating end P t The local data set ensures the security of the computing process. t The element correspondence between the local data set of each participating end and the corresponding encrypted set can be destroyed through the pseudo-random permutation function π. At this time, the first participating end and the third participating end cannot trace back to obtain the local data set through their respective encrypted sets. Therefore, it can be ensured that in the process of determining the size of the intersection, the intersection itself will not be obtained, thereby ensuring the security of data processing.
[0291] In addition, during the calculation of the processing results, the participating terminal P t Only one key needs to be generated, and local data sets of each participating end are encrypted based on the key, which can reduce the complexity of data encryption and improve data processing efficiency. At the same time, it can also reduce the number of key exchanges and save communication resources.
[0292] Figure 6 6 is a block diagram of a data processing device provided by an embodiment of the present application. This embodiment is described by taking the device used in the first participant as an example. The device includes at least the following modules: a data encryption module 610, a filter construction module 620, a filter sending module 630, a filter acquisition module 640 and a data processing module 650.
[0293] The data encryption module 610 is used to interact with a second participant terminal among the at least two participants based on a preset multi-party encryption protocol, so as to encrypt a local data set of the first participant terminal based on the interaction content to obtain a first encrypted set;
[0294] A filter construction module 620, configured to construct a first Bloom filter based on the first encryption set;
[0295] The filter sending module 630 is used to send the first Bloom filter to the server, so that after obtaining the first Bloom filter, the server can obtain the random string of the second participant or the string in the first obfuscated Bloom filter of the second participant based on the value of each bucket in the first Bloom filter based on the two-choice oblivious transmission OT protocol; and construct a second obfuscated Bloom filter based on the obtained string; wherein the first obfuscated Bloom filter is constructed by the second participant based on the second encryption set, and the second encryption set is obtained by the second participant encrypting the local data set based on the multi-party encryption protocol;
[0296] A filter acquisition module 640, configured to acquire the second obfuscated Bloom filter;
[0297] The data processing module 650 is configured to perform membership detection on the first encrypted set based on the second obfuscated Bloom filter to obtain the processing result.
[0298] For detailed description, please refer to the above method embodiment.
[0299] Figure 7 7 is a block diagram of a data processing device provided by another embodiment of the present application. This embodiment is described by taking the device used in the second participant as an example. The device includes at least the following modules: a key interaction module 710, a data encryption module 720, a filter construction module 730 and a data exchange module 740.
[0300] A key interaction module 710, configured to interact with the first participant based on a preset multi-party encryption protocol, so that the first participant encrypts a local data set based on the interaction content;
[0301] The data encryption module 720 is used to encrypt the local data set of the second participant based on the multi-party encryption protocol to obtain a second encrypted set;
[0302] A filter construction module 730, configured to construct a first obfuscated Bloom filter based on the second encryption set;
[0303] The data exchange module 740 is used to exchange data with the server based on the two-choice OT protocol based on the first obfuscated Bloom filter and the random string, so that after the server obtains the first Bloom filter constructed by the first participant, it can obtain the random string of the second participant or the string in the first obfuscated Bloom filter of the second participant based on the two-choice inadvertent transmission OT protocol at least according to the value of each bucket in the first Bloom filter; and construct a second obfuscated Bloom filter based on the obtained string; the second obfuscated Bloom filter is used for the first participant to perform membership detection on the second obfuscated Bloom filter based on the first Bloom filter to obtain the processing result;
[0304] Among them, the first Bloom filter is constructed by the first participant based on the first encryption set, and the first encryption set is obtained by the first participant interacting with the second participant based on the multi-party encryption protocol to encrypt the local data set of the first participant based on the interaction content.
[0305] For detailed description, please refer to the above method embodiment.
[0306] Figure 88 is a block diagram of a data processing device provided by another embodiment of the present application. This embodiment is described by taking the third participant as an example. The device at least includes the following modules: a data encryption module 810, a filter construction module 820 and a filter sending module 830.
[0307] The data encryption module 810 is used to interact with the second participant terminal of the at least two participants based on a preset multi-party encryption protocol, so as to encrypt a local data set of a third participant terminal of the at least two participants based on the interaction content to obtain a third encrypted set;
[0308] A filter construction module 820, configured to construct a second Bloom filter based on the third encryption set;
[0309] The filter sending module 830 is used to send the second Bloom filter to the server end, so that the server end can aggregate the second Bloom filter and the first Bloom filter constructed by the first participant end, and then, based on the two-choice OT protocol, obtain the random string of the second participant end or the string in the first obfuscated Bloom filter of the second participant end according to the values of each bucket in the aggregated Bloom filter; and construct a second obfuscated Bloom filter based on the obtained string; the second obfuscated Bloom filter is used for the first participant end to perform membership detection on the second obfuscated Bloom filter based on the first Bloom filter to obtain the processing result;
[0310] The first Bloom filter is constructed by the first participant based on a first encryption set, and the first encryption set is obtained by the first participant interacting with the second participant based on the multi-party encryption protocol to encrypt the local data set of the first participant based on the interaction content;
[0311] The first confused Bloom filter is constructed by the second participant based on a second encryption set, and the second encryption set is obtained by the second participant encrypting a local data set based on the multi-party encryption protocol.
[0312] For detailed description, please refer to the above method embodiment.
[0313] Fig. 9 9 is a block diagram of a data processing device provided by another embodiment of the present application. This embodiment is described by taking the device used in a server as an example. The device includes at least the following modules: a filter acquisition module 910, a data exchange module 920, a filter construction module 930 and a filter sending module 940.
[0314] The filter acquisition module 910 is used to acquire a first Bloom filter constructed by the first participant based on the first encryption set; wherein the first encryption set is obtained by the first participant interacting with the second participant based on the multi-party encryption protocol to encrypt the local data set based on the interaction content;
[0315] The data exchange module 920 is used to obtain the random string of the second participant or the string in the first obfuscated Bloom filter of the second participant based on the OT protocol, at least according to the value of each bucket in the first Bloom filter; the first obfuscated Bloom filter is constructed by the second participant based on the second encryption set, and the second encryption set is obtained by the second participant encrypting the local data set based on the multi-party encryption protocol;
[0316] A filter construction module 930, configured to construct a second obfuscated Bloom filter based on the acquired character string;
[0317] The filter sending module 940 is used to send the second obfuscated Bloom filter to the first participating end, so that the first participating end performs membership detection on the second obfuscated Bloom filter based on the first Bloom filter to obtain the processing result.
[0318] For detailed description, please refer to the above method embodiment.
[0319] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0320] The embodiment of the present disclosure also provides a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the above method when executed by a processor. The computer-readable storage medium can be a volatile or non-volatile computer-readable storage medium.
[0321] An embodiment of the present disclosure further proposes an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.
[0322] The embodiments of the present disclosure also provide a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.
[0323] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.
[0324] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A data processing method in multi-party secure computing, characterized in that: The multi-party secure computation comprises: at least two participating terminals and a server terminal that is communicatively connected to the at least two participating terminals, wherein the first participating terminal of the at least two participating terminals is a terminal that obtains a processing result, and other participating terminals and the server terminal except the first participating terminal do not obtain the processing result; the method is applied to the first participating terminal, and the method comprises: Interacting with a second participant terminal among the at least two participants terminal based on a preset multi-party encryption protocol to encrypt a local data set of the first participant terminal based on the interaction content to obtain a first encrypted set; constructing a first Bloom filter based on the first encrypted set; The first Bloom filter is sent to the server, so that after obtaining the first Bloom filter, the server can obtain the random string of the second participant or the string in the first obfuscated Bloom filter of the second participant based on the value of each bucket in the first Bloom filter based on the two-choice oblivious transmission OT protocol; and construct a second obfuscated Bloom filter based on the obtained string; wherein the first obfuscated Bloom filter is constructed by the second participant based on the second encryption set, and the second encryption set is obtained by the second participant encrypting the local data set based on the multi-party encryption protocol; Obtaining the second confused Bloom filter; A membership check is performed on the first encrypted set based on the second confused Bloom filter to obtain the processing result.
2. The method according to claim 1, characterized in that The processing result is the intersection of the local data sets of each participating terminal; accordingly, The method of interacting with a second participant terminal among the at least two participants based on a preset multi-party encryption protocol to encrypt a local data set of the first participant terminal based on the interaction content to obtain a first encrypted set includes: Taking the local data set of the first participant as input, the local data set is encrypted using the key generated by the second participant based on the oblivious pseudo-random function OPRF protocol to obtain the first encrypted set.
3. The method according to claim 2, characterized in that The method of taking the local data set of the first participant as input and encrypting the local data set using the key generated by the second participant based on the oblivious pseudo-random function OPRF protocol to obtain the first encrypted set includes: Obtaining a public key generated by the second participant according to the secret key; Generate a local private key; Generate a shared key based on the local private key and the public key, and generate a local public key based on the local private key; Calculate each element in the local data set based on a preset first hash function, and encrypt the calculated first hash value using the local public key to obtain a first intermediate set; Sending the first intermediate set to the second participant, so that the second participant uses the key to encrypt the first intermediate set to obtain a second intermediate set; Obtaining the second intermediate set; A hash value of each element in the second intermediate set is calculated based on a preset second hash function, and the shared key is used to encrypt the elements to obtain the first encrypted set.
4. The method according to claim 1, characterized in that: The processing result is the intersection size of the local data sets of each participating terminal; accordingly, The method of interacting with a second participant terminal among the at least two participants based on a preset multi-party encryption protocol to encrypt a local data set of the first participant terminal based on the interaction content to obtain a first encrypted set includes: Taking the local data set of the first participant as input, the local data set is encrypted using the key generated by the second participant and a pseudo-random permutation function based on the obfuscated OPRF protocol to obtain the first encrypted set.
5. The method according to claim 4, characterized in that The method of taking the local data set of the first participant as input, encrypting the local data set based on the obfuscated OPRF protocol using the key generated by the second participant and a pseudo-random permutation function to obtain the first encrypted set includes: Obtaining a public key generated by the second participant according to the secret key; Generate a local private key; Generate a shared key based on the local private key and the public key, and generate a local public key based on the local private key; Calculate each element in the local data set based on a preset first hash function, and encrypt the calculated first hash value using the local public key to obtain a first intermediate set; Sending the first intermediate set to the second participant, so that the second participant uses the key to encrypt the first intermediate set, and uses a pre-generated pseudo-random permutation function to permute elements in the first intermediate set to obtain a third intermediate set; Obtaining the third intermediate set; Calculate the hash value of each element in the third intermediate set based on a preset second hash function to obtain a second hash value; The second Hash value is encrypted using the shared key to obtain the first encrypted set.
6. A data processing method in multi-party secure computing, characterized in that: The multi-party secure computation comprises: at least two participating terminals and a server terminal that is communicatively connected to the at least two participating terminals, wherein the first participating terminal among the at least two participating terminals is a terminal that obtains a processing result, and the other participating terminals and the server terminal except the first participating terminal do not obtain the processing result; the method is applied to the second participating terminal among the other participating terminals, and the method comprises: Interacting with the first participant based on a preset multi-party encryption protocol, so that the first participant encrypts the local data set based on the interaction content; Encrypting the local data set of the second participant based on the multi-party encryption protocol to obtain a second encrypted set; constructing a first obfuscated Bloom filter based on the second encryption set; Based on the first obfuscated Bloom filter and the random string, the server exchanges data based on the one-to-one OT protocol, so that after obtaining the first Bloom filter constructed by the first participant, the server can obtain the random string of the second participant or the string in the first obfuscated Bloom filter of the second participant based on the one-to-one inadvertent transmission OT protocol, at least according to the value of each bucket in the first Bloom filter; and construct a second obfuscated Bloom filter based on the obtained string; the second obfuscated Bloom filter is used for the first participant to perform membership detection on the second obfuscated Bloom filter based on the first Bloom filter to obtain the processing result; Among them, the first Bloom filter is constructed by the first participant based on the first encryption set, and the first encryption set is obtained by the first participant interacting with the second participant based on the multi-party encryption protocol to encrypt the local data set of the first participant based on the interaction content.
7. The method according to claim 6, characterized in that The processing result is the intersection of the local data sets of each participating terminal; Accordingly, The step of encrypting the local data set of the second participant terminal based on the multi-party encryption protocol to obtain a second encrypted set includes: The local data set of the second participant is taken as input, and the local data set is encrypted using a pre-generated key based on the OPRF protocol to obtain the second encrypted set.
8. The method according to claim 7, characterized in that The method of taking the local data set of the second participant as input and encrypting the local data set using a pre-generated key based on the OPRF protocol to obtain the second encrypted set includes: generating the key; Calculate the hash value of each element in the local data set using a preset first hash function to obtain a first hash value; Calculate the hash value of each first hash value using a preset second hash function to obtain a second hash value; Each second hash value is encrypted based on the key to obtain the second encrypted set.
9. The method according to claim 8, characterized in that The interacting with the first participant based on the preset multi-party encryption protocol includes: generating a public key based on the secret key; Send the public key to the first participant; so that the first participant generates a shared key based on the local private key and the public key, and generates a local public key based on the local private key; calculate each element in the local data set based on a preset first hash function, and encrypt the calculated first hash value using the local public key to obtain a first intermediate set; send the first intermediate set to the second participant; Acquire the first intermediate set sent by the first participant; Encrypting the first intermediate set using the key to obtain a second intermediate set; The second intermediate set is sent to the first participating end; so that the first participating end calculates the second hash value of each element in the second intermediate set based on a preset second hash function, and uses the shared key to encrypt each second hash value to obtain the first encrypted set.
10. The method according to claim 6, characterized in that The processing result is the intersection size of the local data sets of each participating terminal; accordingly, The step of encrypting the local data set of the second participant based on the encryption protocol to obtain a second encrypted set includes: Taking the local data set of the second participant as input, the local data set is encrypted using a pre-generated key and a pseudo-random permutation function based on the obfuscated OPRF protocol to obtain the second encrypted set.
11. The method according to claim 10, characterized in that The method of taking the local data set of the second participant as input, encrypting the local data set based on the obfuscated OPRF protocol using a pre-generated key and a pseudo-random permutation function to obtain the second encrypted set includes: generating the key and the pseudo-random permutation function; Using the pseudo-random permutation function to permute each element in the local data set; Calculate the hash value of the replaced element using a preset first hash function to obtain a replaced first hash value; Calculate the hash value of each replaced first hash value using a preset second hash function to obtain a replaced second hash value; Each replaced second Hash value is encrypted based on the key to obtain the second encrypted set.
12. The method according to claim 11, characterized in that The interacting with the first participant based on the preset multi-party encryption protocol includes: generating a public key based on the secret key; Send the public key to the first participant; so that the first participant generates a shared key based on the local private key and the public key, and generates a local public key based on the local private key; calculate each element in the local data set based on a preset first hash function, and encrypt the calculated first hash value using the local public key to obtain a first intermediate set; send the first intermediate set to the second participant; Acquire the first intermediate set sent by the first participant; Encrypting the first intermediate set using the key, and permuting elements in the first intermediate set using a pre-generated pseudo-random permutation function to obtain a third intermediate set; The third intermediate set is sent to the first participating end; so that the first participating end calculates the second hash value of each element in the third intermediate set based on a preset second hash function, and uses the shared key to encrypt each second hash value to obtain the first encrypted set.
13. The method according to any one of claims 6 to 12, characterized in that: The at least two participating terminals also include a third participating terminal, and the third participating terminal does not obtain the processing result. Accordingly, the method further includes: Based on the multi-party encryption protocol, interaction is performed with the third participant so that the third participant encrypts the local data set based on the interaction content to obtain a third encrypted set, and constructs a second Bloom filter based on the third encrypted set; the second Bloom filter is used for the server to aggregate the first Bloom filter and the second Bloom filter so as to obtain the random string of the second participant or the string in the first obfuscated Bloom filter of the second participant according to the value of each bucket in the aggregated Bloom filter based on the two-choice OT protocol.
14. A data processing method in multi-party secure computing, characterized in that: The multi-party secure computation comprises: at least two participating terminals and a server terminal that is communicatively connected to the at least two participating terminals, wherein the first participating terminal of the at least two participating terminals is a terminal that obtains a processing result, and the other participating terminals and the server terminal except the first participating terminal do not obtain the processing result; the method is applied to a third participating terminal of the other participating terminals, and the method comprises: Interacting with a second participant terminal among the at least two participants terminal based on a preset multi-party encryption protocol to encrypt a local data set of the third participant terminal based on the interaction content to obtain a third encrypted set; constructing a second Bloom filter based on the third encrypted set; The second Bloom filter is sent to the server so that the server can aggregate the second Bloom filter and the first Bloom filter constructed by the first participant, and then, based on the two-choice OT protocol, obtain the random string of the second participant or the string in the first obfuscated Bloom filter of the second participant according to the values of each bucket in the aggregated Bloom filter; and construct a second obfuscated Bloom filter based on the obtained string; the second obfuscated Bloom filter is used for the first participant to perform membership detection on the second obfuscated Bloom filter based on the first Bloom filter to obtain the processing result; The first Bloom filter is constructed by the first participant based on a first encryption set, and the first encryption set is obtained by the first participant interacting with the second participant based on the multi-party encryption protocol to encrypt the local data set of the first participant based on the interaction content; The first confused Bloom filter is constructed by the second participant based on a second encryption set, and the second encryption set is obtained by the second participant encrypting a local data set based on the multi-party encryption protocol.
15. A data processing method in multi-party secure computing, characterized in that: The multi-party secure computation comprises: at least two participating terminals and a server terminal that is communicatively connected to the at least two participating terminals, wherein the first participating terminal of the at least two participating terminals is a terminal that obtains a processing result, and other participating terminals and the server terminal except the first participating terminal do not obtain the processing result; the method is applied to the server terminal, and the method comprises: Obtaining a first Bloom filter constructed by the first participant based on a first encryption set; wherein the first encryption set is obtained by the first participant interacting with the second participant based on the multi-party encryption protocol to encrypt a local data set based on the interaction content; Based on the two-choice OT protocol, at least according to the value of each bucket in the first Bloom filter, obtain the random string of the second participant or the string in the first obfuscated Bloom filter of the second participant; the first obfuscated Bloom filter is constructed by the second participant based on the second encryption set, and the second encryption set is obtained by the second participant encrypting the local data set based on the multi-party encryption protocol; Construct a second obfuscated Bloom filter based on the obtained string; The second confused Bloom filter is sent to the first participant, so that the first participant performs membership detection on the second confused Bloom filter based on the first Bloom filter to obtain the processing result.
16. The method according to claim 15, characterized in that The at least two participating terminals also include a third participating terminal; accordingly, The method of acquiring the random string of the second participant or the string in the first obfuscated Bloom filter of the second participant based on the two-choice OT protocol at least according to the value of each bucket in the first Bloom filter includes: Acquire a second Bloom filter constructed by the third participant based on a third encryption set; wherein the third encryption set is obtained by the third participant interacting with the second participant based on the multi-party encryption protocol to encrypt a local data set based on the interaction content; Aggregating the first Bloom filter and each second Bloom filter to obtain an aggregated Bloom filter; For the value of each bucket in the aggregated Bloom filter, based on the two-choice OT protocol, obtain the random string of the second participant or the string of the bucket in the first obfuscated Bloom filter of the second participant.
17. The method according to claim 16, characterized in that The step of aggregating the first Bloom filter and each second Bloom filter to obtain an aggregated Bloom filter includes: An AND operation is performed on the first Bloom filter and each second Bloom filter by bucket to obtain the aggregated Bloom filter.
18. A data processing device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to implement the method described in any one of claims 1 to 5, or the method described in any one of claims 6 to 13, or the method described in claim 14, or the method described in any one of claims 15 to 17 when executing the instructions stored in the memory.
19. A non-volatile computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, they implement the method described in any one of claims 1 to 5, or the method described in any one of claims 6 to 13, or the method described in claim 14, or the method described in any one of claims 15 to 17.
