Multi-party joint data processing method and device
By introducing arithmetic sharing and Boolean sharing sharding provided by the facilitator into technologies such as dense state judgment, the problem of high communication rounds in the existing technology is solved, and efficient dense state judgment and communication overhead savings are achieved.
Patent Information
- Application Number
- CN202410763930.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-08-30
AI Technical Summary
Existing technologies such as dense state determination are difficult to meet the higher requirements in practical applications, such as high computational overhead or high communication overhead, and cannot effectively reduce the number of communication rounds.
By designing a multi-party joint data processing method, and using the arithmetic sharing sharding and Boolean sharing sharding of random numbers provided by the facilitator, efficient dense state judgment can be achieved, communication rounds can be reduced, and communication overhead can be saved.
Efficient dense state judgment is achieved, and the number of communication rounds is reduced to O(lgn), which effectively saves communication overhead and meets higher requirements in practical applications.
Smart Images

Figure CN118568773A
Abstract
Description
Technical Field
[0001] One or more embodiments of the present specification relate to the technical field of data security processing, and in particular, to a method and apparatus for multi-party joint data processing, a method and apparatus for tripartite joint data processing, a computer-readable storage medium, and a computing device. Background Art
[0002] Confidential equality judgment is an application in secure multi-party computing (MPC), which refers to multiple parties judging whether two numbers are equal without revealing their respective inputs. The judgment result will be made public to one or more of the parties.
[0003] The need for confidentiality judgment usually occurs in business scenarios with strict requirements for privacy protection. For example, in the scenario of user identity authentication, it is necessary to compare and verify the user's identity information such as the ID number, while protecting the privacy security of the information of each participant.
[0004] However, the current method of implementing the confidentiality status judgment is difficult to meet higher requirements in practical applications. Therefore, the embodiments of this specification provide a confidentiality status judgment scheme that can better meet practical needs, such as reducing communication rounds and saving communication overhead. Summary of the invention
[0005] The embodiments of this specification describe a method and device for data processing by multiple parties, as well as a method and device for data processing by three parties. By designing an assisting party to simultaneously provide an arithmetic sharing slice and a Boolean sharing slice of a random number, efficient and low-communication-round secret state judgment can be achieved.
[0006] According to a first aspect, a method for jointly performing data processing by multiple parties is provided, for securely determining whether first data is equal to second data, wherein the first data and the second data are both distributed to multiple computing parties in an arithmetic sharing manner; the method comprises:
[0007] Each computing party subtracts the first data and the second data in the local first slice and the second slice respectively, and obtains the difference slice of the data difference between the first data and the second data. Each computing party receives the first arithmetic sharing slice and the first Boolean sharing slice of the random number from the assisting party. Each computing party uses the local difference slice and the first arithmetic sharing slice to perform a predetermined arithmetic operation and then interacts with each other, so that the designated computing party reconstructs the numerical plaintext after the predetermined arithmetic operation is performed on the data difference and the random number. The designated computing party determines its own slice of the target Boolean value based on the numerical plaintext and its local first Boolean sharing slice; other computing parties determine their own slices of the target Boolean value based on their local first Boolean sharing slice; wherein the target Boolean value indicates whether the data difference is zero.
[0008] In one embodiment, each computing party uses the local difference slice and the first arithmetic sharing slice to perform a predetermined arithmetic operation and then interacts with each other, so that the designated computing party reconstructs the numerical plaintext after performing the predetermined arithmetic operation on the data difference and the random number, including:
[0009] Each computing party performs a predetermined arithmetic operation using the local difference slice and the first arithmetic sharing slice to obtain a corresponding numerical slice. The designated computing party reconstructs the numerical plaintext based on the local numerical slice and other numerical slices received from other computing parties.
[0010] In one embodiment, the predetermined arithmetic operation is an addition operation or a subtraction operation.
[0011] In one embodiment, the designated computing party determines its own slice of the target Boolean value based on the numerical plaintext and its local first Boolean shared slice, including: performing a first logical operation on the numerical plaintext and the local first Boolean shared slice to obtain its own intermediate slice, and performing a second logical operation on the intermediate slice to obtain its own slice of the target Boolean value.
[0012] Among them, the other computing parties determine their own slice of the target Boolean value based on their local first Boolean sharing slice, including: the other computing parties use their local first Boolean sharing slice as their own intermediate slice, and perform the second logical operation on the intermediate slice to obtain their own slice of the target Boolean value.
[0013] Furthermore, in a specific embodiment, the first logical operation is an XOR operation and a NOT operation performed on the result of the XOR operation, and the second logical operation is a bit-by-bit logical AND operation.
[0014] In a specific embodiment, the first logical operation is an exclusive-OR operation, and the second logical operation is a bit-by-bit logical-OR operation followed by a logical-NOT operation.
[0015] According to a second aspect, a method for jointly performing data processing by multiple parties is provided, for securely determining whether first data is equal to second data, wherein the first data and the second data are distributed to multiple computing parties in an arithmetic sharing manner; the method is applied to a designated computing party among the multiple computing parties, and includes:
[0016] Subtract the first and second local slices of the first data and the second data respectively to obtain a difference slice of the data difference between the first data and the second data; other difference slices are held by other computing parties accordingly. Receive the first arithmetic sharing slice and the first Boolean sharing slice of the random number from the assisting party; other arithmetic sharing slices and other Boolean sharing slices are held by other computing parties accordingly. Perform a predetermined arithmetic operation on the local difference slice and the first arithmetic sharing slice and then interact with the other computing parties to reconstruct the numerical plaintext after the predetermined arithmetic operation is performed on the data difference and the random number. Determine the local slice of the target Boolean value based on the numerical plaintext and its local first Boolean sharing slice; other slices of the target Boolean value are determined by the other computing parties based on the local first Boolean sharing slice; wherein the target Boolean value indicates whether the data difference is zero.
[0017] According to a third aspect, a method for jointly performing data processing by multiple parties is provided, for securely determining whether first data is equal to second data, wherein the first data and the second data are distributed to multiple computing parties in an arithmetic sharing manner; the method is applied to any computing party among the multiple computing parties except a designated computing party, and includes:
[0018] Subtract the first and second local slices of the first data and the second data respectively to obtain a difference slice of the data difference between the first data and the second data; other difference slices are held by other computing parties accordingly. Receive the first arithmetic sharing slice and the first Boolean sharing slice of the random number from the assisting party; other arithmetic sharing slices and other Boolean sharing slices are held by other computing parties accordingly. Perform a predetermined arithmetic operation on the local difference slice and the first arithmetic sharing slice and then interact with the designated computing party, so that the designated computing party reconstructs the numerical plaintext after the predetermined arithmetic operation is performed on the data difference and the random number. Determine the local slice of the target Boolean value based on the local first Boolean sharing slice; the slice of the target Boolean value in the designated computing party is determined by it based on the numerical plaintext and the local first Boolean sharing slice; wherein the target Boolean value indicates whether the data difference is zero.
[0019] According to a fourth aspect, a method for three-party joint data processing is provided for securely determining whether first data is equal to second data, wherein the first data and the second data are split into arithmetic slices and distributed to three computing parties in a replicated secret sharing manner; the method comprises:
[0020] The second party and the third party each subtract the first data and the second data in the local first slice and the second slice respectively, and obtain the difference slice of the data difference of the first data and the second data. The first party splits the first random number into two first arithmetic slices and two first Boolean slices, and sends them to the second party and the third party respectively. The second party and the third party each use the local difference slice and the received first arithmetic slice to perform a predetermined arithmetic operation and then interact, so that the second party reconstructs the numerical plaintext after the predetermined arithmetic operation is performed on the data difference and the first random number. The second party determines the local slice of the target Boolean value based on the numerical plaintext and one of the two first Boolean slices; the first party and the third party determine the local slice of the target Boolean value based on at least the other of the two first Boolean slices; wherein the target Boolean value indicates whether the data difference is zero.
[0021] In one embodiment, the difference slice includes two difference sub-slices; wherein the second party and the third party each use the local difference slice and the received first arithmetic slice to perform a predetermined arithmetic operation and then interact, so that the second party reconstructs the numerical plaintext after performing the predetermined arithmetic operation on the data difference and the first random number, including:
[0022] The second party uses the two local difference sub-slices and the local first arithmetic slice to perform a predetermined arithmetic operation to obtain a corresponding numerical slice. The third party uses one of the two local difference sub-slices and the local first arithmetic slice to perform the predetermined arithmetic operation to obtain a corresponding numerical slice; one of the two difference sub-slices is different from the two difference sub-slices in the second party. The second party reconstructs the numerical plaintext using the locally calculated numerical slice and the numerical slice received from the third party.
[0023] In one embodiment, the difference slice includes two difference sub-slices; wherein the second party and the third party each use the local difference slice and the received first arithmetic slice to perform a predetermined arithmetic operation and then interact, so that the second party reconstructs the numerical plaintext after performing the predetermined arithmetic operation on the data difference and the first random number, including:
[0024] The second party uses one of the two local difference sub-slices and the local first arithmetic slice to perform a predetermined arithmetic operation to obtain a corresponding numerical slice; one of the two difference sub-slices is different from the two difference sub-slices in the third party. The third party uses the two local difference sub-slices and the local first arithmetic slice to perform the predetermined arithmetic operation to obtain a corresponding numerical slice. The second party reconstructs the numerical plaintext using the locally calculated numerical slice and the numerical slice received from the third party.
[0025] In one embodiment, the predetermined arithmetic operation is an addition operation or a subtraction operation.
[0026] In one embodiment, the second party determines the local shard of the target Boolean value based on the numerical plaintext and one of the two first Boolean shards, including: performing a first logical operation on the numerical plaintext, the local first Boolean shard, and a second random number shared with the first party to obtain a third intermediate shard; determining the second random number as the second intermediate shard; and performing a second logical operation on the second intermediate shard and the third intermediate shard, respectively, to obtain two local sub-shards of the target Boolean value.
[0027] Further, in a specific embodiment, the first party and the third party determine their own shards of the target Boolean value at least based on the other of the two first Boolean shards, including: the first party determines the second random number and the other of the two first Boolean shards as the second intermediate shard and the first intermediate shard, respectively; the third party determines the other of the two first Boolean shards as the first intermediate shard, and receives the third intermediate shard from the second party; the first party and the third party each perform the second logical operation on each local intermediate shard to obtain two their own sub-shards of the target Boolean value.
[0028] Furthermore, in one example, the first logical operation includes an XOR operation and a NOT operation, and the second logical operation is a bit-by-bit logical AND operation.
[0029] In another example, the first logical operation is an exclusive OR operation, and the second logical operation is a bit-by-bit logical OR operation followed by a logical NOT operation.
[0030] According to a fifth aspect, a method for three-party joint data processing is provided for securely determining whether first data is equal to second data, wherein the first data and the second data are split into arithmetic slices and distributed to three computing parties in a manner of replicating secret sharing; the method is applied to the second party, comprising:
[0031] Subtract the first and second local slices of the first data and the second data, respectively, to obtain a difference slice of the data difference of the first data and the second data; the other difference slices are held by a third party. Receive one of the two first arithmetic slices and one of the two first Boolean slices split for the first random number from the first party; the other arithmetic slice and the other Boolean slice are held by a third party. Perform a predetermined arithmetic operation on the local difference slice and the first arithmetic slice, and then interact with the third party to reconstruct the numerical plaintext after the predetermined arithmetic operation is performed on the data difference and the first random number. Determine the local slice of the target Boolean value based on the numerical plaintext and one of the two first Boolean slices; the other slices are determined by the first party and the third party respectively based on the other of the two first Boolean slices; wherein the target Boolean value indicates whether the data difference is zero.
[0032] According to a sixth aspect, a method for three-party joint data processing is provided for securely determining whether first data is equal to second data, wherein the first data and the second data are split into arithmetic slices and distributed to three computing parties in a manner of replicating secret sharing; the method is applied to a third party, including:
[0033] Subtract the first and second local slices of the first data and the second data, respectively, to obtain the difference slice of the data difference of the first data and the second data; the other difference slices are held by the second party. Receive one of the two first arithmetic slices and one of the two first Boolean slices split for the first random number from the first party; the other arithmetic slice and the other Boolean slice are held by the second party. Perform a predetermined arithmetic operation on the local difference slice and the first arithmetic slice, and then interact with the second party, so that the second party reconstructs the numerical plaintext after the predetermined arithmetic operation is performed on the data difference and the first random number. Determine the local slice of the target Boolean value at least according to the local first Boolean slice; the slice of the target Boolean value in the third party is determined according to the numerical plaintext and the first Boolean slice it holds; the slice of the target Boolean value in the first party is determined at least according to the first Boolean slice shared by it and the third party; wherein the target Boolean value indicates whether the data difference is zero.
[0034] According to a seventh aspect, a method for three-party joint data processing is provided for securely determining whether first data is equal to second data, wherein the first data and the second data are split into arithmetic slices and distributed to three computing parties in a manner of replicated secret sharing; the method is applied to the first party, comprising:
[0035] The first random number is split into two first arithmetic slices and two first Boolean slices, which are sent to the second party and the third party respectively. At least based on the first Boolean slice shared with the third party, the slice of the target Boolean value indicating whether the data difference is zero is determined; the slice of the target Boolean value in the third party is determined at least based on the first Boolean slice it holds; the slice of the target Boolean value in the second party is determined based on the numerical plaintext and the first Boolean slice it holds. Wherein, the numerical plaintext is determined based on the following steps: the second party and the third party each subtract the first data and the second data in their local first slice and the second slice respectively, to obtain the difference slice of the data difference of the first data and the second data; the second party and the third party each use the local difference slice and the received first arithmetic slice to perform a predetermined arithmetic operation and then interact, so that the second party reconstructs the numerical plaintext after the predetermined arithmetic operation is performed on the data difference and the first random number.
[0036] According to an eighth aspect, a device for jointly performing data processing by multiple parties is provided, for securely determining whether first data is equal to second data, wherein the first data and the second data are distributed to multiple computing parties in an arithmetic sharing manner; the device is integrated in a designated computing party among the multiple computing parties, and includes:
[0037] The difference slice calculation module is configured to subtract the first and second local slices of the first data and the second data respectively, to obtain the difference slice of the data difference of the first data and the second data; the other difference slices are held by other computing parties accordingly. The random number slice receiving module is configured to receive the first arithmetic sharing slice and the first Boolean sharing slice of the random number from the assisting party; the other arithmetic sharing slices and other Boolean sharing slices are held by the other computing parties accordingly. The numerical plaintext reconstruction module is configured to interact with the other computing parties after performing a predetermined arithmetic operation on the local difference slice and the first arithmetic sharing slice, so as to reconstruct the numerical plaintext after performing the predetermined arithmetic operation on the data difference and the random number. The target slice determination module is configured to determine the local slice of the target Boolean value according to the numerical plaintext and its local first Boolean sharing slice; the other slices of the target Boolean value are determined by the other computing parties according to the local first Boolean sharing slice; wherein the target Boolean value indicates whether the data difference is zero.
[0038] According to a ninth aspect, a device for jointly performing data processing by multiple parties is provided, for securely determining whether first data is equal to second data, wherein the first data and the second data are distributed to multiple computing parties in an arithmetic sharing manner; the device is integrated in any computing party among the multiple computing parties except a designated computing party, and includes:
[0039] The difference slice calculation module is configured to subtract the first and second slices of the first data and the second data respectively in the local area to obtain the difference slice of the data difference of the first data and the second data; other difference slices are held by other computing parties accordingly. The random number slice receiving module is configured to receive the first arithmetic sharing slice and the first Boolean sharing slice of the random number from the assisting party; other arithmetic sharing slices and other Boolean sharing slices are held by other computing parties accordingly. The interaction module is configured to interact with the designated computing party after performing a predetermined arithmetic operation using the local difference slice and the first arithmetic sharing slice, so that the designated computing party reconstructs the numerical plaintext after performing the predetermined arithmetic operation on the data difference and the random number. The target slice calculation module is configured to determine the local slice of the target Boolean value based on the local first Boolean sharing slice; the slice of the target Boolean value in the designated computing party is determined by it based on the numerical plaintext and the local first Boolean sharing slice; wherein the target Boolean value indicates whether the data difference is zero.
[0040] According to a tenth aspect, a device for three-party joint data processing is provided, for securely determining whether first data is equal to second data, wherein the first data and the second data are split into arithmetic slices and distributed to three computing parties in a manner of replicating secret sharing; the device is integrated into the second party, comprising:
[0041] The difference slice calculation module is configured to subtract the first and second slices of the first data and the second data respectively in the local area to obtain the difference slice of the data difference of the first data and the second data; the other difference slices are held by a third party. The random number slice receiving module is configured to receive from the first party one of the two first arithmetic slices and one of the two first Boolean slices for the first random number split; the other arithmetic slice and the other Boolean slice are held by a third party. The numerical plaintext reconstruction module is configured to interact with the third party after performing a predetermined arithmetic operation on the local difference slice and the first arithmetic slice, so as to reconstruct the numerical plaintext after the predetermined arithmetic operation is performed on the data difference and the first random number. The target slice determination module is configured to determine the local slice of the target Boolean value according to the numerical plaintext and one of the two first Boolean slices; the other slices are determined by the first party and the third party respectively according to the other of the two first Boolean slices; wherein the target Boolean value indicates whether the data difference is zero.
[0042] According to an eleventh aspect, a device for three-party joint data processing is provided, for securely determining whether first data is equal to second data, wherein the first data and the second data are split into arithmetic slices and distributed to three computing parties in a manner of replicating secret sharing; a third party in which the device is integrated includes:
[0043] The data difference calculation module is configured to subtract the first and second local slices of the first data and the second data respectively, and obtain the difference slice of the data difference of the first data and the second data; the other difference slices are held by the second party. The random number slice receiving module is configured to receive from the first party one of the two first arithmetic slices and one of the two first Boolean slices for the first random number split; wherein the other arithmetic slice and the other Boolean slice are held by the second party. The interaction module is configured to interact with the second party after performing a predetermined arithmetic operation on the local difference slice and the first arithmetic slice, so that the second party reconstructs the numerical plaintext after performing the predetermined arithmetic operation on the data difference and the first random number. The target slice determination module is configured to determine the local slice of the target Boolean value at least according to the local first Boolean slice; the slice of the target Boolean value in the third party is determined according to the numerical plaintext and the first Boolean slice held by it; the slice of the target Boolean value in the first party is determined at least according to the first Boolean slice shared by it and the third party; wherein the target Boolean value indicates whether the data difference is zero.
[0044] According to the twelfth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed in a computer, the computer is caused to execute the method provided in any one of the first to seventh aspects.
[0045] According to the thirteenth aspect, a computing device is provided, including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method provided in any one of the first to seventh aspects is implemented.
[0046] In summary, the method and device for multi-party joint data processing disclosed in the embodiments of this specification, by introducing an assisting party, performs both arithmetical and Boolean sharing of a random number, and provides n arithmetic sharing slices and n Boolean sharing slices to n computing parties accordingly, thereby achieving efficient secret state judgment. At the same time, the communication rounds are reduced to O(lgn), effectively saving communication overhead.
[0047] In addition, by using the method and device for three-party joint data processing disclosed in the embodiments of this specification, one of the three computing parties simultaneously assumes the role of an assisting party, performs both arithmetical and Boolean sharing of a random number, and provides two arithmetic slices and two Boolean slices to the other two computing parties respectively, efficient secret state judgment can be achieved. At the same time, the number of communication rounds is reduced, effectively saving communication overhead. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0049] Figure 1 A schematic diagram showing the communication interaction of multiple parties jointly performing data processing disclosed in the embodiments of this specification;
[0050] Figure 2 A schematic diagram of communication interaction for three parties to jointly perform data processing disclosed in the embodiments of this specification is shown;
[0051] Figure 3 Show Figure 2 An example of the execution interaction of step S25;
[0052] Figure 4 A schematic diagram showing the functional module structure of the device for jointly performing data processing by multiple parties disclosed in an embodiment of this specification integrated into a designated computing party;
[0053] Figure 5 A schematic diagram showing the functional module structure of the device for jointly performing data processing by multiple parties disclosed in an embodiment of this specification integrated into a non-designated computing party;
[0054] Figure 6 A schematic diagram showing the functional module structure of the device for three-party joint data processing disclosed in the embodiment of this specification integrated into the second party (H1 party);
[0055] Figure 7 A schematic diagram showing the functional module structure of the device for three-party joint data processing disclosed in the embodiment of this specification integrated into a third party (H2 party);
[0056] Figure 8 A schematic diagram of the functional module structure of the device for three-party joint data processing disclosed in the embodiment of this specification is integrated into the first party (H0 party). DETAILED DESCRIPTION
[0057] The solution provided in this specification is described below in conjunction with the accompanying drawings.
[0058] As mentioned above, the current method of implementing secret state equalization is difficult to meet higher requirements in practical applications, for example, there are deficiencies such as high computational overhead or high communication overhead. Therefore, the embodiments of this specification provide a secret state equalization scheme (or equalization protocol, equalization operator), which can greatly reduce the number of communication rounds, thereby saving communication overhead.
[0059] In the above-mentioned confidential state judgment scheme, it is necessary to judge whether the first data x and the second data y are equal in a confidential state. The first data x and the second data y can be the collected or pre-processed business data, or can be the intermediate data generated in the process of processing the business data. It can be understood that the first data x and the second data y have the same number of bits, which is recorded as k bits in the text, for example, k=8. In addition, the "first" and "second" in the "first data" and "second data", as well as similar terms elsewhere in the text, are all for distinguishing similar things and do not have other limiting functions such as sorting.
[0060] The following is an illustrative introduction to the specific content of the first data x and the second data y in conjunction with a specific business scenario.
[0061] 1) In the scenario of data matching and deduplication, when merging customer databases, enterprises need to find the corresponding identical records in the two databases, but do not want to disclose other additional information. It should be noted that all user (or customer) related data mentioned in this article is collected and used after obtaining user authorization.
[0062] In this scenario, the first data x and the second data y may be data records in databases of two different companies.
[0063] 2) In biometric systems, such as fingerprint or facial recognition systems, the stored biometric data needs to be matched to confirm the user's identity, but the details of the biometric data do not want to be leaked during the matching process.
[0064] At this time, the first data may be user biometric data collected in real time, and the second data may be user biometric data stored previously.
[0065] The above introduces the first data x and the second data y that need to be judged in a secret state.
[0066] In the secret state equality judgment scheme, different equality judgment protocols are designed for different implementation scenarios. The following first introduces the equality judgment protocol V1 designed for the implementation scenario S1, and then introduces the equality judgment protocol V2 designed for the implementation scenario S2. It should be understood that the execution of the equality judgment protocol V1 and the execution of the equality judgment protocol V2 are independent of each other.
[0067] Specifically, the distribution of the first data x and the second data y in the computing party under the implementation scenario S1 is first introduced, followed by the input and output of the equalization protocol V1, and then the interaction steps between the parties involved in the execution of the equalization protocol V1 are introduced.
[0068] 1. Data distribution under implementation scenario S1
[0069] The first data x and the second data y are both distributed to multiple (denoted as n) computing parties in an arithmetic sharing manner.
[0070] It should be understood that arithmetic sharing is a secret sharing technology. First of all, secret sharing is a technology that divides a secret (plaintext data) into multiple shares (or shards), so that no single share can reveal the secret itself. Only when a sufficient number of shares are collected can the original secret be restored; the sufficient number can be set according to application requirements such as security strength. Furthermore, arithmetic sharing allows the secret sharing shards to maintain the sharing property under arithmetic operations (such as addition, multiplication, etc.), that is, the result of arithmetic operations directly performed on the shards corresponds to the shards obtained by performing the corresponding arithmetic operations on the original secret.
[0071] For the above distribution method, in other words, each of the n computing parties holds an arithmetic shard of the first data x and an arithmetic shard of the second data y. It should be understood that the arithmetic shard refers to the shard of the data under arithmetic sharing; in addition, the shard of the first data x may be referred to as the first shard, and the shard of the second data y may be referred to as the second shard.
[0072] For intuitive description, in the implementation scenario S1, the first shard locally held by each computing party Pi for the first data x is denoted as [x] i , the second shard locally held by the second data y is denoted as [y] i .
[0073] In addition, there are many possible ways for n computing parties to obtain the first shard and the second shard. For example, they can directly receive n first shards from the holder of the first data x, and receive n second shards from the holder of the second data y. For another example, the first data x and the second data y are intermediate data, and the n computing parties each obtain the local first shard and the second shard by jointly performing the previous MPC calculation.
[0074] The above introduces the data distribution under the implementation scenario S1.
[0075] 2. Input and Output of the Equality Judgment Protocol V1
[0076] 1) The input of the equal judgment protocol V1 includes: the first fragment [x] provided by each computing party Pi for the first data x i , and the second slice [y] provided for the second data y i .
[0077] 2) The output of the equality judgment protocol V1 includes: the Boolean fragments [b] obtained by each computing party Pi for the target Boolean value bi , wherein the target Boolean value b indicates whether the first data x and the second data y are equal. Generally, the target Boolean value is 1-bit data, and b=1 indicates equality, and b=0 indicates inequality.
[0078] It should be understood that the above-mentioned Boolean sharding refers to the sharding of data under Boolean sharing. Boolean sharing is another secret sharing technology that usually expresses the secret in binary form and shares and reconstructs the secret through Boolean logic operations. For example, a binary value can be split into multiple shares through an exclusive OR operation (XOR). A single share cannot provide any information about the secret, but the union of all shares can restore the original secret.
[0079] For the output of the above-mentioned equal judgment protocol V1, the n Boolean slices obtained by the n computing parties can reconstruct the target Boolean value b. It should be understood that this reconstruction can be designed to occur or not occur according to actual needs. For example, n computing parties share n Boolean slices, so the n computing parties can each reconstruct the target Boolean value b locally. For another example, the n computing parties can directly perform subsequent MPC calculations based on the n Boolean slices without reconstructing the target Boolean value b.
[0080] The above introduces the input and output of the peer judgment protocol V1.
[0081] Next, combine Figure 1 , introduces the interaction steps between the parties involved in the execution of the arbitration protocol V1.
[0082] Figure 1 The following is a schematic diagram of the communication interaction of multiple parties jointly performing data processing disclosed in the embodiments of this specification. Note that Figure 1 In addition to the n computing parties mentioned above, the interacting parties shown in FIG. 1 also include an assisting party (or a helping party). It should be noted that the assisting party is very critical to reducing the communication rounds in the equal judgment protocol V1. It does not participate in the input and output of the protocol V1, but during the execution of the protocol V1, it performs arithmetic sharing and Boolean sharing on the local random numbers, and provides the obtained n arithmetic sharing slices and n Boolean sharing slices to the n computing parties, thereby helping the advancement of the protocol.
[0083] It can be understood that each of the n computing parties and assisting parties mentioned above can be implemented as any device, platform or equipment cluster with computing and processing capabilities. Figure 1 As shown, the execution of the equal judgment protocol V1 includes the following steps:
[0084] Step S11: Each computing party Pi stores the first data x and the second data y in the first shard [x] of the local computer. i and the second fragment [y] iSubtract the difference d between the first data x and the second data y to obtain the difference slice [d] i .
[0085] It can be understood that d = xy, but this plaintext calculation process does not occur. In addition, the calculation involved in this step can be expressed as:
[0086] [d] i =[x] i -[y] i (1)
[0087] In this way, each calculation square Pi can obtain the difference slice [d] i .
[0088] Step S12: The dealer performs arithmetic sharing on the local random number r to obtain n arithmetic sharing slices, denoted as And, perform Boolean sharing on the random number r to obtain n Boolean sharing shards, denoted as
[0089] In order to make the notation of mathematical symbols in this paper concise and unified, the following The superscript arith in the word is omitted and abbreviated as [r] i For any slice, it is marked with the superscript bool only when the slice is a Boolean slice.
[0090] It should be understood that the random number r in the assisting party can be generated locally or sampled locally. The following relationships exist between the random number r and its n arithmetic sharing slices and n Boolean sharing slices:
[0091]
[0092] In formula (3), Indicates a continuous XOR operation on n Boolean sharing slices.
[0093] Based on the above, the assisting party can further execute step S13 to send n arithmetic sharing slices and n Boolean sharing slices for the random number r to n computing parties accordingly, so that each computing party Pi obtains the arithmetic sharing slice [r] i Sharing Shards with Boolean
[0094] Based on the above interaction steps, each computing party Pi has obtained the difference shard [d] i , Arithmetic Sharding Sharding[r] i Sharing Shards with Boolean Thus, step S14 can be executed, and each computing party Pi uses its own local difference slice [d] iSharding with Arithmetic[r] i After performing a predetermined arithmetic operation, interaction is performed so that the designated calculation party Pj reconstructs a numerical plaintext c after performing the predetermined arithmetic operation on the data difference d and the random number r.
[0095] It should be noted that 1) the predetermined arithmetic operation refers to a predetermined type of arithmetic operation. The following mainly describes the predetermined type of addition as an example. For the case where the predetermined arithmetic operation is other types of operations such as subtraction, it can be reasonably inferred by reference. 2) The designated computing party Pj can be any computing party among the n computing parties.
[0096] Specifically, this step can be divided into the following two sub-steps S141 and S142 ( Figure 1 Not shown):
[0097] S141, each computing party Pi uses its local difference slice [d] i Sharding with Arithmetic[r] i Perform addition operation to obtain the numerical slice [c] of the numerical plaintext c i . Therefore, the calculation in this substep can be expressed as:
[0098] [c] i =[d] i +[r] i (4)
[0099] S142, each computing party Pi is based on the local value sharding [c] i The interaction is performed so that the designated computing party Pj reconstructs the numerical plaintext c after adding the data difference d and the random number r.
[0100] It is understandable that c=d+r, but this plaintext calculation will not occur. In addition, there are many interactive modes for this sub-step, because the numerical plaintext c does not contain sensitive information and can be disclosed to any computing party.
[0101] In one embodiment, each computing party Pi respectively divides the local value slice [c] i Provided to the designated computing party Pj, the designated computing party Pj can reconstruct the numerical plaintext c. This reconstruction can be expressed as:
[0102]
[0103] In another embodiment, each computing party Pi divides the local value into slices [c] iIt is provided to the other n-1 computing parties respectively, and then, once the numerical plaintext c is reconstructed locally, it is provided to the designated computing party Pj. After obtaining two identical numerical plaintexts c, the designated computing party Pj notifies other computing parties to stop reconstructing or sending the numerical plaintext c.
[0104] By executing the above sub-steps S141 and S142, the execution of step S14 can be completed, so that the designated calculation party Pj can obtain the numerical plaintext c, which is equivalent to the result obtained by performing a predetermined arithmetic operation on the data difference d and the random number r.
[0105] Afterwards, the designated computing party Pj can further execute step S15 to share the shards according to the numerical plaintext c and the local Boolean Determine the local shard of the target Boolean value b In addition, other computing parties Pi≠j execute step S16 and share the shards according to their local Boolean Determine the local shard of the target Boolean value b
[0106] It can be understood that the design of step S15 and step S16 is compatible, so that the slices obtained by each calculation party Pi are The reconstructed target Boolean value b can indicate whether the data difference d is 0, that is, whether the first data x is equal to the second data y.
[0107] To facilitate understanding, the transitional concept of intermediate sharding is introduced below, and the execution of steps S15 and S16 is also introduced.
[0108] Specifically, the execution of step S15 may include: specifying the computing party Pj to calculate the value plaintext c and the local Boolean sharing fragment Perform the first logical operation to obtain the intermediate shard of our side And, for the intermediate fragment Perform the second logical operation to obtain the local slice of the target Boolean value b
[0109] The execution of step S16 may include: other computing parties Pi≠j share the slices with their local Boolean The intermediate shard of our side And, for the intermediate fragment Perform the second logical operation above to obtain the local slice of the target Boolean value b
[0110] It should be understood that the design of the first logical operation is compatible with the design of the second logical operation. In addition, the concept of intermediate sharding may not be introduced. For example, the execution of step S16 includes: other computing parties Pi≠j share their local Boolean sharding Perform the second logical operation to obtain the local slice of the target Boolean value b
[0111] Furthermore, the first logical operation and the second logical operation are first introduced as examples, and then the sharding is further introduced. The reconstructed target Boolean value b can indicate the mathematical principle of whether the data difference d is 0.
[0112] In implementation mode A, the first logic operation is an XOR operation and a NOT operation, and the second logic operation is a bit-by-bit logical AND operation. Shard with our side Can be expressed as:
[0113]
[0114] in, represents the exclusive OR operation, It represents the logical NOT operation (or negation operation), and ∧ represents the logical AND operation.
[0115] In step S16, other calculation parties Pi≠j calculate their own fragments It can be expressed as:
[0116]
[0117] Understandably,
[0118] The above introduces implementation method A for executing steps S15 and S16.
[0119] In implementation mode B, the first logical operation is an exclusive OR operation, and the second logical operation is a bit-by-bit logical OR operation followed by a logical NOT operation. Shard with our side Can be expressed as:
[0120]
[0121] Here, ∨ represents a logical OR operation.
[0122] In step S16, other calculation parties Pi≠j calculate their own fragments It can be expressed as:
[0123]
[0124] The above introduces implementation method B for executing steps S15 and S16.
[0125] It should be noted that the implementation of steps S15 and S16 is not limited to the above-mentioned implementation mode A or implementation mode B. For example, according to the operation rules of logical operations, many variations can be derived based on the above-mentioned two implementation modes. Figure 1 The relative execution order of the interaction steps illustrated in the figure is not limited in the embodiments of this specification, as long as the flow of data is logical.
[0126] Next, to help understand, assume that each computing party Pi uses implementation method A to obtain its own shard Based on this introduction, the reconstructed target Boolean value b can indicate the mathematical principle of whether the data difference d is 0.
[0127] Specifically, the relationship between the data difference d and the target Boolean value b is based on the intermediate shards. and The following first introduces the mathematical relationship between the intermediate value z and the data difference d, and then introduces the mathematical relationship between the target Boolean value b and the intermediate value z, so that the relationship between the data difference d and the target Boolean value b can be clearly defined.
[0128] 1) Mathematical relationship between the intermediate value z and the data difference d
[0129] It can be understood that the intermediate value z can be based on the intermediate shard and Reconstructed to get:
[0130]
[0131] Formula (6) in the above embodiment A and Substituting into formula (12) and combining with the operation rules of logical operations, we can deduce:
[0132]
[0133] Furthermore, substituting the aforementioned c=r+d and d=xy into formula (13), we can obtain:
[0134]
[0135] Observe formula (14), combined with the properties of logical operations, we can see that if and only if the first data x is equal to the second data y, the negation operation is performed. Object It is equal to The XOR result of the same value is all 0 bits, that is, all bits are 0. At this time, the result of the negation operation, that is, the intermediate value z is all 1 bits.
[0136] 2) The mathematical relationship between the target Boolean value b and the intermediate value z
[0137] It can be understood that the target Boolean value b can be based on Boolean sharding and Reconstructed to get:
[0138]
[0139] Substituting formulas (7) and (8) in the above implementation mode A into formula (15), it can be deduced that:
[0140]
[0141] From formula (16), we can see that the value of b is 1 only when z is all 1 bits, otherwise b is 0.
[0142] 3) Relationship between data difference d and target Boolean value b
[0143] The conclusion obtained in 1) above is that the intermediate value z will be all 1 bits only when and only when the first service data x is equal to the second service data y, that is, the data difference d is all 0 bits. The conclusion obtained in 2) above is that the target Boolean value b is 1 only when the intermediate value z is all 1 bits. It can be inferred from this that b is 1 only when the data difference d is all 0 bits, otherwise it is 0. This means that the target Boolean value b can indicate whether the data difference d is 0.
[0144] In combination with implementation A, the mathematical principle that the target Boolean value b can indicate whether the data difference d is 0 is introduced above. It should be understood that in combination with implementation B and other implementations, similar derivation and analysis can be performed with reference, and no further description is given.
[0145] In summary, by adopting the equality judgment protocol V1 provided in the embodiment of this specification, by introducing an assisting party, a random number is shared both arithmetically and Booleanly, and n arithmetic sharing slices and n Boolean sharing slices are provided to n computing parties respectively, efficient confidential equality judgment can be achieved. At the same time, the communication rounds are reduced to O(lgn), effectively saving communication overhead.
[0146] The above mainly introduces the equality judgment protocol V1 designed for implementation scenario S1 in the secret state equality judgment scheme. Next, the equality judgment protocol V2 designed for implementation scenario S2 is introduced.
[0147] Specifically, the distribution of the first data x and the second data y in the computing party and the input and output of the equal judgment protocol V2 under the implementation scenario S2 are first introduced, and then the interaction steps between the parties involved in the execution of the equal judgment protocol V2 are introduced.
[0148] 1. Data distribution under implementation scenario S2
[0149] The first data x and the second data y are split into arithmetic slices and distributed to three computing parties in a replicated secret sharing manner. It should be understood that replicated secret sharing technology (RSS) is a variant of secret sharing technology. Its feature is that multiple shares of the secret are distributed to each participant instead of a single share. The purpose of this is to increase the redundancy and fault tolerance of the system. Even if some shares are lost or some participants are unreliable, the secret information can still be safely recovered.
[0150] For example, if the first data x needs to be shared among three computing parties (Hi parties, i=0, 1 or 2), the first data x is first converted into three shares: <x> 0、 <x>1 and <x>2. These shares are then copied, and the total of 6 shares obtained by copying are sent to three computing parties in groups of two, so that each of the three computing parties gets two different shares. For the sake of intuitive and clear description, the following expression of the RSS shares held by the computing parties is based on the mapping relationship between the computing party code Hi and the subscript of the share symbol <·> shown in Table 1 below.
[0151] Table 1
[0152] H0 <![CDATA[<·>0、<·>1]]> H1 <![CDATA[<·>1、<·>2]]> H2 <![CDATA[<·>2、<·>0]]>
[0153] Based on Table 1, the two shares obtained by party Hi for the first data x can be recorded as <x> i and <x> i+1 It should be understood that the notation with the subscript i+1 should be i+1mod 3, which is omitted in the text. <y> 0, <y>1
[0154] Furthermore, for the sake of simplicity, the two shares of a certain data obtained by Party Hi are referred to as two sub-shards, and are collectively referred to as shards for the certain data. For example, Party Hi holds the first shard for the first data x, and the first shard includes two first sub-shards ( <x> i , <x> i+1 ), or, Hi holds the first fragment for the first data x ( <x> i , <x> i+1 ).
[0155] In addition, there are many possible ways for the three computing parties to obtain the first shard and the second shard. For example, the shards can be received directly from the data holder. For another example, the shards can be obtained by jointly executing a previous MPC calculation.
[0156] The above introduces the data distribution under the implementation scenario S2.
[0157] 2. Input and Output of the Equality Judgment Protocol V2
[0158] 1) The input of the equal arbitration protocol V2 includes: local fragments provided by two computing parties (hereinafter referred to as H1 and H2) except the assisting party (hereinafter referred to as H0) among the three computing parties for the first data and the second data, respectively.
[0159] 2) The output of the equality judgment protocol V2 includes: the Boolean fragments of the target Boolean value b obtained by each computing party Hi (i = 0, 1 or 2) under RSS Generally, the target Boolean value is 1-bit data, and b=1 indicates equality, and b=0 indicates inequality.
[0160] Based on the output of the above-mentioned equal judgment protocol V2, the three computing parties or any two of them can cooperate to reconstruct the target Boolean value b. It should be understood that this reconstruction can be designed to occur or not according to actual needs.
[0161] The above introduces the input and output of the peer judgment protocol V2.
[0162] Next, combine Figure 2 , introduces the interaction steps between the three computing parties involved in the execution of the equal judgment protocol V2.
[0163] Figure 2 The following is a schematic diagram of the communication interaction of three parties jointly performing data processing disclosed in the embodiment of this specification. Note that, Figure 1 In addition to being a computing party, the H0 party shown in the figure also plays the role of an assisting party. It should be noted that the H0 party, as an assisting party, is very critical to reducing the number of communication rounds in the equal judgment protocol V2. It does not need to participate in the input of the protocol V2, but during the execution of the protocol V2, it performs arithmetic sharing and Boolean sharing of the local random numbers, and provides the two arithmetic sharing fragments and two Boolean sharing fragments obtained to the H1 party and the H2 party respectively, thereby helping to advance the protocol.
[0164] Understandably, Figure 2 The three parties involved in the interaction can be realized as any device, platform or equipment cluster with computing and processing capabilities; in addition, the H0 party, H1 party and H2 party may be referred to as the first party, the second party and the third party respectively in this article. Figure 2 As shown, the execution of the equal judgment protocol V2 includes the following steps:
[0165] In step S21, party H1 and party H2 each subtract the first data x and the second data y in their local first slices and second slices, respectively, to obtain a difference slice of the data difference d between the first data and the second data.
[0166] Specifically, the calculation performed by H1 in this step can be expressed as:
[0167] ( <d> 1, <d> 2)=( <x> 1, <x> 2)-( <y> 1, <y>2) (17)
[0168] Understandably, <d> 1= <x> 1- <y> 1, <d> 2= <x> 2- <y>2.
[0169] The calculation performed by H2 in this step can be expressed as:
[0170] ( <d> 2, <d> 0)=( <x> 2, <x> 0)-( <y> 2, <y>0) (18)
[0171] Understandably, <d> 2= <x> 2- <y> 2, <d> 0= <x> 0- <y>0.
[0172] From the above, party H1 and party H2 can each obtain the difference slice of the data difference d. Specifically, party H1 obtains the difference slice ( <d> 1, <d>2), H2 obtains the difference fragment ( <d> 2, <d>0). It is understandable that the data difference d can be reconstructed by the H1 and H2 parties, but this reconstruction process does not occur.
[0173] Step S22, H0 sends the first random number r (0) Split into two first arithmetic slices [r (0) ]1 and [r (0) ]2, and split into two first Boolean slices and
[0174] It should be understood that the first random number r in the H0 square (0) It can be generated locally or sampled locally, r (0) The superscript (0) indicates r (0) The party holding r is H0. (0) The following relationships exist between the two first arithmetic slices and the two first Boolean slices:
[0175] r=[r (0) ]1+[r (0) ]2 (19)
[0176]
[0177] Based on the above, party H0 can further perform step S23 to send the two first arithmetic slices and the two first Boolean slices to party H1 and party H2 respectively. Thus, party H1 obtains the first arithmetic slice [r (0) ]1 and the first Boolean fragment H2 obtains the first arithmetic slice [r (0) ]2 and the first Boolean slice
[0178] Based on the above interaction steps, H1 obtains the difference shard ( <d> 1, <d>2) The first arithmetic slice [r (0) ]1 and the first Boolean fragment H2 obtains the difference fragment ( <d> 2, <d>0), the first arithmetic slice [r (0) ]2 and the first Boolean slice Thus, step S24 can be executed, and parties H1 and H2 each use the local difference slice and the received first arithmetic slice to perform a predetermined arithmetic operation and then interact, so that party H1 reconstructs the numerical plaintext c after performing the predetermined arithmetic operation on the data difference and the first random number.
[0179] It should be noted that the predetermined arithmetic operation in this step refers to a predetermined type of arithmetic operation. The following description mainly takes the predetermined type of addition as an example. For the case where the predetermined arithmetic operation is other operation types such as subtraction, reasonable reference can be made for inference.
[0180] Specifically, this step can be divided into the following two sub-steps S241 and S242 ( Figure 2 Not shown):
[0181] S241, H1 and H2 each use the local difference fragment and the first random number r (0) The first arithmetic slice of is added to obtain the numerical slices [c]1 and [c]2 of the numerical plaintext c respectively.
[0182] In one embodiment, H1 performs the following calculations in this substep:
[0183] [c]1= <d>1+ <d<2+[r (0) ]1 (21)
[0184] And, H2 performs the following calculations in this substep:
[0185] [c]2= <d>0+[r (0) ]2 (22)
[0186] By observing formulas (21) and (22), we can find that H1 uses the two difference sub-shards contained in the local difference shard in the calculation. <d>1 and <d>2. H2 only uses the difference sub-shards in the local difference shards that are different from the two difference sub-shards in H1 during calculation. <d>0. Therefore, this sub-step can also be implemented as another embodiment.
[0187] In another embodiment, H1 performs the following calculation in this substep:
[0188] [c]1= <d>1+[r (0) ]1 (23)
[0189] And, H2 performs the following calculations in this substep:
[0190] [c]2= <d> 0+ <d>2+[r (0) ]2 (24)
[0191] From the above, parties H1 and H2 obtain the numerical fragments [c]1 and [c]2 of the numerical plaintext c respectively.
[0192] S242, H1 and H2 interact based on their local value slices, so that H1 reconstructs the data difference d and the first random number r (0) The numeric plaintext c after the addition operation.
[0193] It is understandable that c = d + r (0) , but this plaintext calculation will not occur. In addition, there are many ways to interact in this sub-step. This is because the numerical plaintext c does not contain sensitive information, so it can also be revealed to both H1 and H2.
[0194] In one embodiment, after receiving the numerical fragment [c]2 from H2, H1 reconstructs the numerical plaintext c using the following formula.
[0195] c=[c]1+[c]2 (25)
[0196] In another embodiment, party H1 sends the value fragment [c]1 to party H2, and then receives the reconstructed value plaintext c from party H2.
[0197] By executing the above sub-steps S241 and S242, the execution of step S24 can be completed. Then, party H1 can obtain the numerical plaintext c, which is equivalent to the data difference d and the first random number r (0) The result of performing a predetermined arithmetic operation.
[0198] Then, in step S25, H1 party calculates the value of the plaintext c and the first Boolean fragment Determine the local shard of the target Boolean value b And, H0 and H2 are at least based on the first Boolean fragment Determines the local shard of the target boolean value.
[0199] It can be understood that in step S25, each computing party Hi determines its own shard The methods are mutually adaptable, so that the target Boolean value b reconstructed by the three parties can indicate whether the data difference d is 0, that is, whether the first data x is equal to the second data y.
[0200] For ease of understanding, the concept of an intermediate sub-shard is introduced below, and the execution of step S25 is exemplarily described.
[0201] Exemplarily, the execution of step S25 includes: Figure 3 The following sub-steps S301-S304 are shown in:
[0202] S301, H1 performs the first Boolean fragmentation of the local plaintext c and a second random number, r, shared with party H0 (0,1) Perform the first logical operation to obtain the third intermediate sub-shard And the second random number r (0,1) Determined as the second intermediate sub-shard Further, the second intermediate shard and the third intermediate shard Perform the second logical operation to obtain the two local sub-shards of the target Boolean value b
[0203] For the second random number r shared by party H1 and party H0 (0,1) In one embodiment, the second random number r can be generated locally by party H0 or party H1 and then sent to the other party. In another embodiment, party H0 and party H1 can each generate the second random number r locally based on the same random seed. (0,1) .
[0204] Note that the above-mentioned first logical operation and second logical operation will be described later.
[0205] S302, H1 sends the third intermediate sub-shard Send to H2.
[0206] S303, H2 will take the first local Boolean fragment Determined as the first intermediate sub-shard And for the first intermediate sub-shard and the received third intermediate sub-shard Perform the second logical operation to obtain the two local sub-shards of the target Boolean value b
[0207] S304, H0 will take the first local Boolean fragment Determined as the first intermediate sub-shard And, the second random number r (0,1) Determined as the second intermediate sub-shard Further, the first intermediate sub-shard <z>0 and the second intermediate subshard Perform the second logical operation to obtain the two local sub-shards of the target Boolean value b
[0208] It should be understood that the designs of the first logic operation and the second logic operation are mutually compatible; in addition, the concept of intermediate slices may not be introduced in some steps. For example, step S304 may be implemented as follows: H0 performs the first Boolean slice and the second random number r (0,1) Perform the second logical operation to obtain the two local sub-shards of the target Boolean value b
[0209] Furthermore, the first logical operation and the second logical operation are first introduced as examples, and then the sharding is further introduced. The reconstructed target Boolean value b can indicate the mathematical principle of whether the data difference d is 0.
[0210] In implementation C, the first logic operation includes an XOR operation and a NOT operation, and the second logic operation is a bit-by-bit logical AND operation. <z>2 and two sub-shards of this recipe It can be expressed as:
[0211]
[0212] in,
[0213] In step S303, two sub-shards of the H2 square are calculated. It can be expressed as:
[0214]
[0215] in,
[0216] In step S304, party H0 calculates two sub-shards of its own party It can be expressed as the above formulas (29) and (28).
[0217] The above introduces implementation method C of executing each sub-step in step S25.
[0218] In implementation mode D, the first logical operation is an exclusive OR operation, and the second logical operation is a bit-by-bit logical OR operation followed by a logical NOT operation.
[0219] Therefore, in step S301, H1 calculates the third intermediate sub-shard <z>2 and two sub-shards of this recipe It can be expressed as:
[0220]
[0221] in,
[0222] In step S303, two sub-shards of the H2 square are calculated. It can be expressed as:
[0223]
[0224] in,
[0225] In step S304, party H0 calculates two sub-shards of its own party It can be expressed as the above formulas (33) and (32).
[0226] The above introduces implementation method D of executing each sub-step in step S25.
[0227] It should be noted that the implementation of step S25 is not limited to the above-mentioned implementation mode C or implementation mode D. For example, according to the operation rules of logical operations, many variations can be derived based on the above-mentioned two implementation modes. Figure 2 The relative execution order of the interaction steps illustrated in the figure is not limited in the embodiments of this specification, as long as the flow of data is logical.
[0228] Next, to help understand, assume that the three parties use implementation method C to obtain their own shards Based on this introduction, the reconstructed target Boolean value b can indicate the mathematical principle whether the data difference d is 0. Because this mathematical principle is essentially similar to the mathematical principle introduced for the equality judgment protocol V1 above, it is only briefly described here.
[0229] 1) The third intermediate sub-shard can be calculated according to implementation mode C Formula (26), as well as The following formula is deduced to obtain the mathematical relationship between the intermediate value z corresponding to the intermediate sub-shard and the numerical plaintext c.
[0230]
[0231] Further, the aforementioned c=r (0) Substituting +d and d=xy into formula (34), we can obtain:
[0232]
[0233] 2) According to formulas (27), (28) and (29) for calculating the three sub-slices of the target Boolean value b in implementation mode C, the following derivation can be performed:
[0234]
[0235] 3) It can be seen from formula (35) and formula (36) that, currently, only when the first data x is equal to the second data y, b is 1, otherwise it is 0. This means that the target Boolean value b can indicate whether the data difference d is 0.
[0236] In combination with implementation C, the mathematical principle that the target Boolean value b can indicate whether the data difference d is 0 is introduced above. It should be understood that in combination with implementation D and other implementations, similar derivation and analysis can be performed with reference, and no further description is given.
[0237] In summary, by adopting the equalization protocol V2 provided in the embodiment of this specification, one of the three computing parties can assume the role of the assisting party at the same time, perform both arithmetical and Boolean sharing of a random number, and provide two arithmetic slices and two Boolean slices to the other two computing parties respectively, so as to achieve efficient confidential equalization. At the same time, the number of communication rounds is reduced, effectively saving communication overhead.
[0238] Corresponding to the interaction methods involved in the above-mentioned equalization protocols V1 and V2, the embodiments of this specification also provide corresponding interaction devices. Specifically, they are as follows:
[0239] Figure 4 A schematic diagram of the functional module structure of a device for data processing by multiple parties disclosed in an embodiment of this specification is integrated into a designated computing party. The device is used to safely determine whether a first data is equal to a second data, and the first data and the second data are distributed to multiple computing parties in an arithmetic sharing manner; the device is integrated into a designated computing party among the multiple computing parties. Figure 4 As shown, the device 400 includes the following functional modules:
[0240] The difference slice calculation module 410 is configured to subtract the first and second local slices of the first data and the second data, respectively, to obtain the difference slice of the data difference of the first data and the second data; other difference slices are held by other computing parties accordingly. The random number slice receiving module 420 is configured to receive the first arithmetic sharing slice and the first Boolean sharing slice of the random number from the assisting party; other arithmetic sharing slices and other Boolean sharing slices are held by the other computing parties accordingly. The numerical plaintext reconstruction module 430 is configured to interact with the other computing parties after performing a predetermined arithmetic operation on the local difference slice and the first arithmetic sharing slice, so as to reconstruct the numerical plaintext after performing the predetermined arithmetic operation on the data difference and the random number. The target slice determination module 440 is configured to determine the local slice of the target Boolean value based on the numerical plaintext and its local first Boolean sharing slice; other slices of the target Boolean value are determined by the other computing parties based on the local first Boolean sharing slice; wherein the target Boolean value indicates whether the data difference is zero.
[0241] Figure 5 A schematic diagram showing the functional module structure of a device for data processing by multiple parties disclosed in an embodiment of this specification integrated into a non-designated computing party, the device is used to safely determine whether a first data is equal to a second data, the first data and the second data are distributed to multiple computing parties in an arithmetic sharing manner; the device is integrated into any computing party among the multiple computing parties except the designated computing party. Figure 5 As shown, the device 500 includes the following functional modules:
[0242] The difference slice calculation module 510 is configured to subtract the first and second local slices of the first data and the second data, respectively, to obtain the difference slice of the data difference of the first data and the second data; other difference slices are held by other computing parties. The random number slice receiving module 520 is configured to receive the first arithmetic sharing slice and the first Boolean sharing slice of the random number from the assisting party; other arithmetic sharing slices and other Boolean sharing slices are held by other computing parties. The interaction module 530 is configured to interact with the designated computing party after performing a predetermined arithmetic operation using the local difference slice and the first arithmetic sharing slice, so that the designated computing party reconstructs the numerical plaintext after performing the predetermined arithmetic operation on the data difference and the random number. The target slice calculation module 540 is configured to determine the local slice of the target Boolean value based on the local first Boolean sharing slice; the slice of the target Boolean value in the designated computing party is determined by it based on the numerical plaintext and the local first Boolean sharing slice; wherein the target Boolean value indicates whether the data difference is zero.
[0243] Figure 6 The functional module structure diagram of the device for data processing by three parties disclosed in the embodiment of this specification is integrated into the second party (H1 party), the device is used to safely determine whether the first data is equal to the second data, the first data and the second data are split into arithmetic slices, and distributed to the three computing parties in a way of copying secret sharing; the device is integrated into the second party. Figure 6 As shown, the device 600 includes the following functional modules:
[0244] The difference slice calculation module 610 is configured to subtract the first and second local slices of the first data and the second data, respectively, to obtain the difference slice of the data difference of the first data and the second data; the other difference slices are held by a third party. The random number slice receiving module 620 is configured to receive from the first party one of the two first arithmetic slices and one of the two first Boolean slices for the first random number split; the other arithmetic slice and the other Boolean slice are held by a third party. The numerical plaintext reconstruction module 630 is configured to interact with the third party after performing a predetermined arithmetic operation on the local difference slice and the first arithmetic slice, so as to reconstruct the numerical plaintext after the predetermined arithmetic operation is performed on the data difference and the first random number. The target slice determination module 640 is configured to determine the local slice of the target Boolean value according to the numerical plaintext and one of the two first Boolean slices; the other slices are determined by the first party and the third party respectively according to the other of the two first Boolean slices; wherein the target Boolean value indicates whether the data difference is zero.
[0245] Figure 7 The functional module structure diagram of the device for data processing by three parties disclosed in the embodiment of this specification is integrated into a third party (H2 party), the device is used to safely determine whether the first data is equal to the second data, the first data and the second data are split into arithmetic slices, and distributed to the three computing parties in a way of copying secret sharing; the third party in which the device is integrated. Figure 7 As shown, the device 700 includes the following functional modules:
[0246] The data difference calculation module 710 is configured to subtract the first and second local slices of the first data and the second data, respectively, to obtain a difference slice of the data difference between the first data and the second data; the other difference slices are held by the second party. The random number slice receiving module 720 is configured to receive from the first party one of the two first arithmetic slices and one of the two first Boolean slices for the first random number split; the other arithmetic slice and the other Boolean slice are held by the second party. The interaction module 730 is configured to interact with the second party after performing a predetermined arithmetic operation on the local difference slice and the first arithmetic slice, so that the second party reconstructs the numerical plaintext after performing the predetermined arithmetic operation on the data difference and the first random number. The target shard determination module 740 is configured to determine the local shard of the target Boolean value at least based on the local first Boolean shard; the shard of the target Boolean value in the third party is determined based on the numerical plaintext and the first Boolean shard it holds; the shard of the target Boolean value in the first party is determined based on at least the first Boolean shard shared by it and the third party; wherein the target Boolean value indicates whether the data difference is zero.
[0247] Figure 8 The schematic diagram of the functional module structure of the device for data processing by three parties disclosed in the embodiment of this specification is integrated into the first party (H0 party), the device is used to safely determine whether the first data is equal to the second data, the first data and the second data are split into arithmetic slices, and distributed to the three computing parties in a copy secret sharing manner; the device is integrated into the first party. Figure 8 As shown, the device 800 includes:
[0248] The random number slice sending module 810 is configured to split the first random number into two first arithmetic slices and two first Boolean slices, and send them to the second party and the third party respectively. The target slice determination module 820 is configured to determine the slice of the target Boolean value indicating whether the data difference is zero based on at least the first Boolean slice shared with the third party; the slice of the target Boolean value in the third party is determined based on at least the first Boolean slice held by it; the slice of the target Boolean value in the second party is determined based on the numerical plaintext and the first Boolean slice held by it.
[0249] The numerical plaintext is determined based on the following steps: the second party and the third party each subtract the first data and the second data in the local first slice and the second slice respectively, to obtain the difference slice of the data difference between the first data and the second data; the second party and the third party each use the local difference slice and the received first arithmetic slice to perform a predetermined arithmetic operation and then interact, so that the second party reconstructs the numerical plaintext after performing the predetermined arithmetic operation on the data difference and the first random number.
[0250] It should be noted that the introduction to the above devices can also refer to the aforementioned description of the relevant methods, which will not be repeated here.
[0251] According to another embodiment, there is also provided a computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute Figure 1 or Figure 2 The method described.
[0252] According to another embodiment, a computing device is provided, including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, Figure 1 or Figure 2 The method described. Those skilled in the art should be aware that in one or more of the above examples, the functions described in the present invention can be implemented by hardware, software, firmware, or any combination thereof. When implemented by software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium.
[0253] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solution of the present invention should be included in the scope of protection of the present invention.< / z> < / z> < / z> < / d> < / d> < / d> < / d> < / d> < / d> < / d> < / d> < / d> < / d> < / d> < / d> < / d> < / d> < / d> < / d> < / y> < / x> < / d> < / y> < / x> < / d> < / y> < / y> < / x> < / x> < / d> < / d> < / y> < / x> < / d> < / y> < / x> < / d> < / y> < / y> < / x> < / x> < / d> < / d> < / x> < / x> < / x> < / x> < / y> < / y> < / x> < / x> < / x> < / x> < / x>
Claims
1. A method for jointly performing data processing by multiple parties, for securely determining whether first data is equal to second data, wherein the first data and the second data are both distributed to multiple computing parties in an arithmetic sharing manner; the method comprises: Each computing party subtracts the first and second local slices of the first data and the second data respectively, to obtain a difference slice of the data difference between the first data and the second data; Each computing party receives a first arithmetic sharing slice and a first Boolean sharing slice of a random number from the assisting party; Each computing party uses its own local difference slice and the first arithmetic sharing slice to perform a predetermined arithmetic operation and then interacts with each other, so that the designated computing party reconstructs the numerical plaintext after performing the predetermined arithmetic operation on the data difference and the random number; The designated computing party determines its own slice of the target Boolean value according to the numerical plaintext and its local first Boolean shared slice; Other computing parties determine their own slices of the target Boolean value based on their local first Boolean shared slices; wherein the target Boolean value indicates whether the data difference is zero.
2. The method according to claim 1, wherein: Each computing party uses the local difference slice and the first arithmetic sharing slice to perform a predetermined arithmetic operation and then interacts with each other, so that the designated computing party reconstructs the numerical plaintext after performing the predetermined arithmetic operation on the data difference and the random number, including: Each computing party performs a predetermined arithmetic operation using the local difference shard and the first arithmetic sharing shard to obtain a corresponding value shard; The designated computing party reconstructs the numerical plaintext based on the local numerical fragments and other numerical fragments received from other computing parties.
3. The method according to claim 1 or 2, wherein: The predetermined arithmetic operation is an addition operation or a subtraction operation.
4. The method according to claim 1, wherein: The designated computing party determines the local slice of the target Boolean value according to the numerical plaintext and its local first Boolean shared slice, including: Performing a first logical operation on the numerical plaintext and the local first Boolean shared slice to obtain the local intermediate slice, and performing a second logical operation on the intermediate slice to obtain the local slice of the target Boolean value; The other computing parties determine their own shards of the target Boolean value based on their local first Boolean shared shards, including: Other computing parties use their local first Boolean shared slice as their intermediate slice, and perform the second logical operation on the intermediate slice to obtain their own slice of the target Boolean value.
5. The method according to claim 4, wherein: The first logic operation is an XOR operation and a NOT operation performed on the result of the XOR operation, and the second logic operation is a bit-by-bit logical AND operation.
6. The method according to claim 4, wherein: The first logic operation is an exclusive OR operation, and the second logic operation is a bit-by-bit logical OR operation followed by a logical NOT operation.
7. A method for jointly performing data processing by multiple parties, for securely determining whether first data is equal to second data, wherein the first data and the second data are both distributed among multiple computing parties in an arithmetic sharing manner; The method is applied to a specified computing party among the multiple computing parties, and includes: Subtract the first and second local slices of the first and second data from each other to obtain a difference slice of the data difference between the first and second data; other difference slices are held by other computing parties accordingly; Receive the first arithmetic sharing slice and the first Boolean sharing slice of the random number from the assisting party; the other arithmetic sharing slices and the other Boolean sharing slices are held by the other computing parties respectively; After performing a predetermined arithmetic operation using the local difference slice and the first arithmetic sharing slice, the predetermined arithmetic operation is performed and then the predetermined arithmetic operation is performed on the data difference and the random number, and then the predetermined arithmetic operation is performed ... The local slice of the target Boolean value is determined based on the numerical plaintext and its local first Boolean shared slice; other slices of the target Boolean value are determined by the other computing parties based on the local first Boolean shared slice; wherein the target Boolean value indicates whether the data difference is zero.
8. A method for jointly performing data processing by multiple parties, for securely determining whether first data is equal to second data, wherein the first data and the second data are both distributed among multiple computing parties in an arithmetic sharing manner; The method is applied to any one of the multiple computing parties except the specified computing party, and includes: Subtract the first and second local slices of the first and second data from each other to obtain a difference slice of the data difference between the first and second data; other difference slices are held by other computing parties accordingly; The first arithmetic sharing shard and the first Boolean sharing shard of the random number are received from the assisting party; the other arithmetic sharing shards and other Boolean sharing shards are held by other computing parties accordingly; After performing a predetermined arithmetic operation using the local difference slice and the first arithmetic sharing slice, the predetermined arithmetic operation is performed and then the predetermined arithmetic operation is performed on the data difference and the random number, and then ... According to the local first Boolean shared slice, the local slice of the target Boolean value is determined; the slice of the target Boolean value in the specified computing party is determined by it according to the numerical plaintext and the local first Boolean shared slice; wherein, the target Boolean value indicates whether the data difference is zero.
9. A method for three-party joint data processing, for securely determining whether first data is equal to second data, wherein the first data and the second data are split into arithmetic slices and distributed to three computing parties in a replicated secret sharing manner; the method comprises: The second party and the third party each subtract the first and second local slices of the first data and the second data from each other to obtain a difference slice of the data difference between the first data and the second data; The first party splits the first random number into two first arithmetic fragments and two first Boolean fragments, and sends them to the second party and the third party respectively; The second party and the third party each use the local difference slice and the received first arithmetic slice to perform a predetermined arithmetic operation and then interact, so that the second party reconstructs the numerical plaintext after performing the predetermined arithmetic operation on the data difference and the first random number; The second party determines its own slice of the target Boolean value based on the numerical plaintext and one of the two first Boolean slices; the first party and the third party determine their own slice of the target Boolean value based on at least the other of the two first Boolean slices; wherein the target Boolean value indicates whether the data difference is zero.
10. The method according to claim 9, wherein: The difference slice includes two difference sub-slices; wherein the second party and the third party each use the local difference slice and the received first arithmetic slice to perform a predetermined arithmetic operation and then interact, so that the second party reconstructs the numerical plaintext after performing the predetermined arithmetic operation on the data difference and the first random number, including: The second party performs a predetermined arithmetic operation using the two local difference sub-slices and the local first arithmetic slice to obtain a corresponding value slice; The third party uses one of the two local difference sub-slices and the local first arithmetic slice to perform the predetermined arithmetic operation to obtain a corresponding numerical slice; one of the two difference sub-slices is different from both difference sub-slices in the second party; The second party reconstructs the numerical plaintext by using the numerical fragments calculated locally and the numerical fragments received from the third party.
11. The method according to claim 9, wherein: The difference slice includes two difference sub-slices; wherein the second party and the third party each use the local difference slice and the received first arithmetic slice to perform a predetermined arithmetic operation and then interact, so that the second party reconstructs the numerical plaintext after performing the predetermined arithmetic operation on the data difference and the first random number, including: The second party uses one of the two local difference sub-slices and the local first arithmetic slice to perform a predetermined arithmetic operation to obtain a corresponding numerical slice; one of the two difference sub-slices is different from the two difference sub-slices in the third party; The third party uses the two local difference sub-slices and the local first arithmetic slice to perform the predetermined arithmetic operation to obtain a corresponding value slice; The second party reconstructs the numerical plaintext by using the numerical fragments calculated locally and the numerical fragments received from the third party.
12. The method according to any one of claims 9 to 11, wherein: The predetermined arithmetic operation is an addition operation or a subtraction operation.
13. The method according to claim 9, wherein: The second party determines the own fragment of the target Boolean value according to the numerical plaintext and one of the two first Boolean fragments, including: Perform a first logical operation on the numerical plaintext, the local first Boolean fragment, and the second random number shared with the first party to obtain a third intermediate fragment; Determining a second random number as a second intermediate shard; A second logical operation is performed on the second intermediate slice and the third intermediate slice respectively to obtain two local sub-slices of the target Boolean value.
14. The method according to claim 13, wherein: The first party and the third party determine their own slices of the target Boolean value based on at least the other of the two first Boolean slices, including: The first party determines the second random number and the other of the two first Boolean fragments as the second intermediate fragment and the first intermediate fragment, respectively; The third party determines the other of the two first Boolean fragments as the first intermediate fragment, and receives the third intermediate fragment from the second party; The first party and the third party each perform the second logical operation on each local intermediate shard to obtain two local sub-shards of the target Boolean value.
15. The method according to claim 13 or 14, wherein: The first logic operation includes an exclusive-OR operation and a negation operation, and the second logic operation is a bit-by-bit logical AND operation.
16. The method according to claim 13 or 14, wherein: The first logic operation is an exclusive OR operation, and the second logic operation is a bit-by-bit logical OR operation followed by a logical NOT operation.
17. A method for three-party joint data processing for securely determining whether first data is equal to second data, wherein the first data and the second data are split into arithmetic slices and distributed to three computing parties in a replicated secret sharing manner; The method is applied to the second party, comprising: Subtracting the first and second local slices of the first and second data from each other to obtain a difference slice of the data difference between the first and second data; the other difference slices are held by a third party; receiving from the first party one of the two first arithmetic slices and one of the two first Boolean slices for the first random number split; wherein the other arithmetic slice and the other Boolean slice are held by a third party; After performing a predetermined arithmetic operation using the local difference slice and the first arithmetic slice, the predetermined arithmetic operation is performed and then interacted with the third party, thereby reconstructing a numerical plaintext after performing the predetermined arithmetic operation on the data difference and the first random number; The first party and the third party determine the target Boolean value based on the numerical plaintext and one of the two first Boolean slices; the other party's slices are determined by the first party and the third party respectively based on the other of the two first Boolean slices; wherein the target Boolean value indicates whether the data difference is zero.
18. A method for three-party joint data processing for securely determining whether first data is equal to second data, wherein the first data and the second data are split into arithmetic slices and distributed to three computing parties in a replicated secret sharing manner; The method is applied to third parties including: Subtracting the first and second local slices of the first and second data from each other to obtain a difference slice of the data difference between the first and second data; the other difference slices are held by the second party; receiving from the first party one of the two first arithmetic slices and one of the two first Boolean slices for the first random number split; wherein the other arithmetic slice and the other Boolean slice are held by the second party; After performing a predetermined arithmetic operation using the local difference slice and the first arithmetic slice, the second party interacts with the second party, so that the second party reconstructs a numerical plaintext after performing the predetermined arithmetic operation on the data difference and the first random number; The local slice of the target Boolean value is determined at least based on the local first Boolean slice; the slice of the target Boolean value in the third party is determined based on the numerical plaintext and the first Boolean slice it holds; the slice of the target Boolean value in the first party is determined based on at least the first Boolean slice shared by it and the third party; wherein the target Boolean value indicates whether the data difference is zero.
19. A method for three-party joint data processing for securely determining whether first data is equal to second data, wherein the first data and the second data are split into arithmetic slices and distributed to three computing parties in a replicated secret sharing manner; The method is applied to a first party, comprising: Splitting the first random number into two first arithmetic fragments and two first Boolean fragments, and sending the fragments to the second party and the third party respectively; Determine the own-party slice of the target Boolean value indicating whether the data difference is zero based on at least the first Boolean slice shared with the third party; the slice of the target Boolean value in the third party is determined based on at least the first Boolean slice held by the third party; the slice of the target Boolean value in the second party is determined based on the numerical plaintext and the first Boolean slice held by the third party; The numerical plaintext is determined based on the following steps: the second party and the third party each subtract the first data and the second data in the local first slice and the second slice respectively, to obtain the difference slice of the data difference between the first data and the second data; the second party and the third party each use the local difference slice and the received first arithmetic slice to perform a predetermined arithmetic operation and then interact, so that the second party reconstructs the numerical plaintext after performing the predetermined arithmetic operation on the data difference and the first random number.
20. A device for jointly performing data processing by multiple parties, for securely determining whether first data is equal to second data, wherein the first data and the second data are both distributed among multiple computing parties in an arithmetic sharing manner; The device is integrated into a specified computing party among the plurality of computing parties, including: A difference slice calculation module is configured to subtract the first and second slices of the first data and the second data respectively in the local area to obtain a difference slice of the data difference between the first data and the second data; other difference slices are held by other calculation parties accordingly; A random number shard receiving module, configured to receive a first arithmetic sharing shard and a first Boolean sharing shard of a random number from an assisting party; other arithmetic sharing shards and other Boolean sharing shards are held by the other computing parties accordingly; A numerical plaintext reconstruction module is configured to interact with the other computing parties after performing a predetermined arithmetic operation on the local difference slice and the first arithmetic sharing slice, thereby reconstructing the numerical plaintext after performing the predetermined arithmetic operation on the data difference and the random number; The target shard determination module is configured to determine the local shard of the target Boolean value based on the numerical plaintext and its local first Boolean shared shard; other shards of the target Boolean value are determined by the other calculation parties based on the local first Boolean shared shard; wherein the target Boolean value indicates whether the data difference is zero.
21. A device for jointly performing data processing by multiple parties, for securely determining whether first data is equal to second data, wherein the first data and the second data are distributed among multiple computing parties in an arithmetic sharing manner; The device is integrated in any one of the multiple computing parties except the designated computing party, and includes: A difference slice calculation module is configured to subtract the first and second slices of the first data and the second data respectively in the local area to obtain a difference slice of the data difference between the first data and the second data; other difference slices are held by other calculation parties accordingly; A random number shard receiving module is configured to receive a first arithmetic sharing shard and a first Boolean sharing shard of a random number from an assisting party; other arithmetic sharing shards and other Boolean sharing shards are held by other computing parties accordingly; An interaction module, configured to interact with the designated computing party after performing a predetermined arithmetic operation using the local difference slice and the first arithmetic sharing slice, so that the designated computing party reconstructs a numerical plaintext after performing the predetermined arithmetic operation on the data difference and the random number; The target shard calculation module is configured to determine the local shard of the target Boolean value based on the local first Boolean shared shard; the shard of the target Boolean value in the specified calculation party is determined by it based on the numerical plaintext and the local first Boolean shared shard; wherein the target Boolean value indicates whether the data difference is zero.
22. A device for three-party joint data processing, for securely determining whether first data is equal to second data, wherein the first data and the second data are split into arithmetic slices and distributed to three computing parties in a replicated secret sharing manner; The second party in which the device is integrated comprises: a difference slice calculation module, configured to subtract the first and second slices of the first data and the second data respectively in the local area, to obtain a difference slice of the data difference between the first data and the second data; other difference slices are held by a third party; A random number shard receiving module, configured to receive from the first party one of the two first arithmetic shards and one of the two first Boolean shards for the first random number split; wherein the other arithmetic shard and the other Boolean shard are held by a third party; a numerical plaintext reconstruction module, configured to interact with the third party after performing a predetermined arithmetic operation on the local difference slice and the first arithmetic slice, so as to reconstruct the numerical plaintext after performing the predetermined arithmetic operation on the data difference and the first random number; The target fragmentation determination module is configured to determine the fragmentation of the target Boolean value based on the numerical plaintext and one of the two first Boolean fragments; the fragmentation of the other party is determined by the first party and the third party respectively based on the other of the two first Boolean fragments; wherein the target Boolean value indicates whether the data difference is zero.
23. A device for three-party joint data processing, for securely determining whether first data is equal to second data, wherein the first data and the second data are split into arithmetic slices and distributed to three computing parties in a replicated secret sharing manner; Third parties into which the device is integrated, including: a data difference calculation module, configured to subtract the first and second local slices of the first and second data from each other to obtain a difference slice of the data difference between the first and second data; the other difference slices are held by the second party; A random number slice receiving module, configured to receive from the first party one of the two first arithmetic slices and one of the two first Boolean slices for the first random number split; wherein the other arithmetic slice and the other Boolean slice are held by the second party; an interaction module, configured to interact with the second party after performing a predetermined arithmetic operation on the local difference slice and the first arithmetic slice, so that the second party reconstructs a numerical plaintext after performing the predetermined arithmetic operation on the data difference and the first random number; A target shard determination module is configured to determine the local shard of the target Boolean value at least based on a local first Boolean shard; the shard of the target Boolean value in the third party is determined based on the numerical plaintext and the first Boolean shard held by it; the shard of the target Boolean value in the first party is determined based on at least the first Boolean shard shared by it and the third party; wherein the target Boolean value indicates whether the data difference is zero.
24. A computer-readable storage medium having a computer program stored thereon, wherein: When the computer program is executed in a computer, the computer is caused to execute the method according to any one of claims 1 to 19.
25. A computing device comprising a memory and a processor, wherein: The memory stores executable codes, and when the processor executes the executable codes, the method according to any one of claims 1 to 19 is implemented.
