Multi-party co-computing method, computer readable medium and electronic equipment
By obtaining and processing multiple parties' data obfuscation shards and multiplying their own shards, it ensures that each party only owns part of the data, prevents collusion and cracking, solves the problem of data leakage in multi-party calculations, and improves the security of information sharing.
Patent Information
- Application Number
- CN202410785478.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-18
AI Technical Summary
In the field of secure multi-party computing, if some participants collude when multiple parties jointly calculate, it can easily lead to data leakage, especially when user privacy information is involved, which may lead to adverse consequences.
By obtaining multiple data obfuscation shards of any party and multiplying its own shards, it ensures that each party only owns one data shard of the other party, and by adding the ciphertext shards and multiplying the calculation of the peer secret shard, preventing co-operation Seek to crack the original data and achieve safe sharing of analysis request results.
It effectively improves the security of information sharing. Even if some participants collude, the information cannot be leaked, ensuring the security and privacy of data.
Smart Images

Figure CN118797684A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of secure multi-party computing, and more specifically, relates to a method for multi-party joint computing, a computer-readable medium, and an electronic device. Background Art
[0002] In the field of secure multi-party computing, data is usually distributed among different owners. When multiple parties complete joint analysis, they will encrypt their own data before performing calculations to prevent leakage of user data.
[0003] However, in the relevant technology, if several parties among multiple parties collude with each other, the data can be cracked, which may easily leak the data of some participants. If this data is private information related to the user, it may easily lead to more adverse consequences.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] The purpose of the present invention is to provide a multi-party joint computing method, a computer-readable medium and an electronic device to solve the problem of data leakage caused by collusion among some participants.
[0006] According to one aspect of an embodiment of the present application, a method for multi-party joint computing is provided, wherein the multiple parties at least include: a first party, a second party, and a third party, and the method includes:
[0007] Obtain multiple data obfuscation shards of any party and multiply the shards of itself; the number of data obfuscation shards of any party is related to the number of participants;
[0008] Send two shards of any party's data to two different parties;
[0009] Determine the summed fragment and the summed ciphertext fragment of any party according to the data obfuscated fragment of the first party and the data obfuscated fragment of the second party owned by any party;
[0010] Send the ciphertext fragments of any party to the other two parties;
[0011] The multiplication peer secret slice of the arbitrary party is obtained according to the summed ciphertext slice received by the arbitrary party, the third party's data confusion slice and the multiplication self slice of the arbitrary party;
[0012] Based on the multiplication peer secret shards, multiplication self shards, addition shards and third-party data obfuscation shards of multiple parties, the analysis request results are obtained.
[0013] In one embodiment of the present application, a multiplication peer secret slice of any party is obtained based on the summed ciphertext slices received by any party, the data obfuscation slices of a third party and the multiplication self-slice of any party, including: multiplying the summed ciphertext slices of each party with the data obfuscation slices of the third party received by any party respectively to obtain the multiplication temporary obfuscation slice of any party; based on the multiplication temporary obfuscation slice and the multiplication self-slice, obtaining the multiplication peer secret slice.
[0014] In one embodiment of the present application, an analysis request result is obtained based on multiplication peer secret slices, multiplication self slices, addition slices and data obfuscation slices of a third party of multiple parties, including: sending the multiplication peer secret slices corresponding to other parties other than any party to any party; decrypting the multiplication peer secret slices of other parties received by any party to obtain the multiplication peer slices; obtaining the multiplication result slices of any party based on the multiplication peer slices of other parties, the multiplication self slices of any party, the addition slices of any party and the data obfuscation slices of the third party; and summing the multiplication result slices of all parties to obtain the analysis request result.
[0015] In one embodiment of the present application, based on the multiplication peer slices of other parties, the multiplication self slices of any party, the sum slices of any party and the data confusion slices of a third party, the multiplication result slices of any party are obtained, including: multiplying the sum slices of any party with the data confusion slices of the third party to obtain the multiplication temporary confusion slices of any party; adding the corresponding multiplication peer slices, the multiplication self slices and the multiplication temporary confusion slices to obtain the multiplication result slices of any party.
[0016] In one embodiment of the present application, the multiplication result slices of each party are aggregated to obtain the analysis request result, including: adding the multiplication result slices of any party to obtain the analysis request result slices of any party; sending the analysis request result slices of other parties to the designated party; and restoring the analysis request result according to the analysis request result slices of each party.
[0017] In one embodiment of the present application, based on the data obfuscation slices of the first party and the data obfuscation slices of the second party owned by any party, the summed slices and the summed ciphertext slices of any party are determined, including: adding the data obfuscation slices of the first party and the data obfuscation slices of the second party to obtain the summed slices of any party; encrypting the summed slices to obtain the summed ciphertext slices of any party.
[0018] In one embodiment of the present application, multiple data obfuscation slices of any party include at least: a first data obfuscation slice, a second data obfuscation slice and a third data obfuscation slice, and obtaining multiple data obfuscation slices of any party includes: obtaining first original data of the first party, second original data of the second party and third original data of a third party; generating first data obfuscation slice, second data obfuscation slice and third data obfuscation slice corresponding to the first party based on the first original data; generating first data obfuscation slice, second data obfuscation slice and third data obfuscation slice corresponding to the second party based on the second original data; generating first data obfuscation slice, second data obfuscation slice and third data obfuscation slice corresponding to the third party based on the third original data.
[0019] In one embodiment of the present application, before obtaining multiple data confusion slices and multiplication self-slices of any party, the method also includes: obtaining encryption parameters of any party; generating public key and private key of any party based on the encryption parameters; sending the public key to other parties, and retaining the private key with any party.
[0020] According to one aspect of an embodiment of the present application, a computer medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for multi-party joint computing provided by any embodiment of the present application is implemented.
[0021] According to one aspect of an embodiment of the present application, an electronic device is provided, including: a processor; a memory for storing executable instructions of the processor; the processor executes the executable instructions to enable the electronic device to implement the method of multi-party joint computing provided by any embodiment of the present application.
[0022] In the technical solution of the present application, multiple data obfuscation slices and multiplication slices of any party are obtained; wherein the number of data obfuscation slices of any party is related to the number of participating parties; and then two of the data obfuscation slices of any party are sent to two different parties, so that each party only has one data slice of the other party, rather than the original data; then, the sum slice and the sum ciphertext slice of any party are determined according to the data obfuscation slice of the first party and the data obfuscation slice of the second party owned by any party; and the sum ciphertext slice of any party is sent to the other two parties, so that It is obtained that other parties in collusion cannot restore the original data through the addition ciphertext shards; then, according to the addition ciphertext shards received by any party, the third-party data confusion shards and the multiplication self-shards of any party, the multiplication peer secret shards of any party are obtained; finally, based on the multiplication peer secret shards of multiple parties, the multiplication self-shards, the addition shards and the third-party data confusion shards, the analysis request results are obtained, and multiple parties jointly calculate the analysis request results, and any party only holds part of the calculation results. Even if some participating parties collude, information will not be leaked, thereby improving the security of information sharing.
[0023] It should be understood that the above general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0025] Figure 1 The flowchart of the multi-party joint computing method provided by one embodiment of the present application is schematically shown.
[0026] Figure 2 The flowchart of the multi-party joint computing method provided by one embodiment of the present application is schematically shown.
[0027] Figure 3 A result block diagram of a multi-party joint computing device provided by an embodiment of the present application is schematically shown.
[0028] Figure 4 The structural block diagram of an electronic device provided by an embodiment of the present application is schematically shown.
[0029] Figure 5 The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0030] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0031] In addition, the features, structures or characteristics described in the present application may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the present application.
[0032] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0033] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0034] like Figure 1 As shown, the present application provides a method for multi-party joint computing, where the multi-party includes at least: a first party, a second party and a third party, and it is assumed that the parties do not trust each other during the multi-party joint computing, and no conspiracy among all parties occurs. The method includes S110 to S160, and the specific process is as follows.
[0035] S110, obtaining multiple data obfuscation shards of any party and multiplying the own shards; the number of data obfuscation shards of any party is related to the number of participating parties.
[0036] Specifically, any party refers to any one of the multiple parties. Data obfuscation shards refer to data formed by splitting the original data into multiple shards, and the split data can also be encrypted by random numbers or other encryption methods. The original data is the label data or data indicator obtained by the participant from its own database. The multiplication self-shard is the data used in the multiplication calculation stage, which can be generated by obtaining a random number. Its function is to increase the complexity of the data and avoid directly sending the multiplication calculation result to other parties to cause data leakage. For its specific function, please refer to the process of the multiplication calculation stage. The number of data obfuscation shards of any party can be equal to the number of participants. For example, if there are 4 participants, the number of data obfuscation shards of each party is 4. This application uses three participants as an example to explain the method steps, so the number of data obfuscation shards of any party in the subsequent description is also 3. In another embodiment, the number of data obfuscation shards of any party can also be greater than the number of participants to increase the complexity of the joint calculation and avoid data leakage.
[0037] In one embodiment of the present application, multiple data obfuscation slices of any party include at least: a first data obfuscation slice, a second data obfuscation slice and a third data obfuscation slice, and obtaining multiple data obfuscation slices of any party includes: obtaining first original data of the first party, second original data of the second party and third original data of a third party; generating first data obfuscation slice, second data obfuscation slice and third data obfuscation slice corresponding to the first party based on the first original data; generating first data obfuscation slice, second data obfuscation slice and third data obfuscation slice corresponding to the second party based on the second original data; generating first data obfuscation slice, second data obfuscation slice and third data obfuscation slice corresponding to the third party based on the third original data.
[0038] Specifically, assume that the first party has original data a, the second party has original data b, and the third party has original data c. Figure 2 As shown, the first party slices data a to obtain: first data obfuscated slice a1, second data obfuscated slice a2, and third data obfuscated slice a3. The second party slices data b to obtain: first data obfuscated slice b1, second data obfuscated slice b2, and third data obfuscated slice b3. The third party slices data c to obtain: first data obfuscated slice c1, second data obfuscated slice c2, and third data obfuscated slice c3.
[0039] In one embodiment of the present application, before obtaining multiple data confusion slices and multiplication self-slices of any party, the method of the present application also includes: obtaining encryption parameters of any party; generating public keys and private keys of any party based on the encryption parameters; sending the public key to other parties, and retaining the private key with any party.
[0040] Specifically, other parties call any party's public key to encrypt data and then send it to any party. The data can be decrypted by calling any party's private key. If a malicious party intercepts any party's data, it cannot decrypt the correct data without any party's private key. This can increase the security of data transmission and reduce the possibility of data leakage.
[0041] S120, sending two data obfuscated fragments of any party to two different parties.
[0042] Specifically, one of the data obfuscation slices of the first party is retained by the party itself, one of the data obfuscation slices is sent to the second party, and the last data obfuscation slice is sent to the third party; similarly, one of the data obfuscation slices of the second party is retained by the party itself, one of the data obfuscation slices is sent to the first party, and the last data obfuscation slice is sent to the third party. And one of the data obfuscation slices of the third party is retained by the party itself, one of the data obfuscation slices is sent to the first party, and the last data obfuscation slice is sent to the second party. In this way, each party only holds one data obfuscation slice of any party. For example, if the second party and the third party collude, they can only obtain two of the data obfuscation slices and cannot crack the original data.
[0043] S130. Determine the summed fragment and the summed ciphertext fragment of any party according to the data obfuscated fragment of the first party and the data obfuscated fragment of the second party owned by any party.
[0044] Specifically, the present application explains the method using data held by the first and second parties for addition calculations and data held by the third party for subsequent multiplication calculations, and it should be understood that the roles of the data held by the first, second, and third parties may vary depending on the analysis request.
[0045] In one embodiment of the present application, based on the data obfuscation slices of the first party and the data obfuscation slices of the second party owned by any party, the summed slices and the summed ciphertext slices of any party are determined, including: adding the data obfuscation slices of the first party and the data obfuscation slices of the second party to obtain the summed slices of any party; encrypting the summed slices to obtain the summed ciphertext slices of any party.
[0046] For example, Figure 2 As shown, the data obfuscation shard retained by the first party is a1, and the data obfuscation shard received by the first party from the second party is b1, then the addition shard of the first party is (a1+b1), and share_sum{k,i}=a{k,i}+b{k,i} can be used to represent the addition shard of any party, where i represents the serial number of the participating party, i=1, 2 or 3 in this application; k represents the serial number of the data obfuscation shard, k=1, 2 or 3 in this application. Then the addition shard of the first party is share_sum{1,1}=a{1,1}+b{1,1}, the addition shard of the second party is share_sum{2,2}=a{2,2}+b{2,2}, and the addition shard of the third party is share_sum{3,3}=a{3,3}+b{3,3}. Each party encrypts the summed slice calculated by itself to obtain the corresponding summed ciphertext slice c_share_sum{k,i}.
[0047] S140, sending the summed ciphertext fragments of any party to the other two parties.
[0048] Specifically, the first party sends the calculated sum ciphertext slices to the second party and the third party, the second party sends the calculated sum ciphertext slices to the first party and the third party, and the third party sends the calculated sum ciphertext slices to the first party and the second party.
[0049] S150. Obtain the multiplication peer secret fragment of the arbitrary party according to the summed ciphertext fragment received by the arbitrary party, the third party's data confusion fragment and the arbitrary party's multiplication self fragment.
[0050] Specifically, the principle of the multiplication calculation stage of the present application is introduced below. Assume that the product xy of data x and data y needs to be calculated. Without revealing the original data x and original data y, data x and data y are sharded, and different participants calculate the multiplication results of the shards of data x and data y. For example, data x has shards x1, shard x2 and shard x3, and data y has shards y1, shard y2 and shard y3. The calculation formula of xy is: xy = (x1 + x2 + x3) (y1 + y2 + y3) = x1y1 + x1y2 + x1y3 + x2y1 + x2y2 + x2y3 + x3y1 + x3y2 + x3y3.
[0051] Institution 1 owns shards x1 and shard y1, and shard x2 of institution 2 and shard x3 of institution 3 are sent to institution 1, then institution 1 can calculate x1y1, x2y1 and x3y1.
[0052] Institution 2 owns shards x2 and shard y2, and shard x1 of institution 1 and shard x3 of institution 3 are sent to institution 2, then institution 2 can calculate x1y2, x2y2 and x3y2.
[0053] Institution 3 has shards x3 and shard y3, and shard x1 of institution 1 and shard x2 of institution 2 are sent to institution 3, then institution 3 can calculate x1y3, x2y3 and x3y3. However, if two of the parties collude, there is a risk of cracking the original data. Therefore, the multiplication self-shard of any party is introduced to further encrypt the product of the additive ciphertext shard and the third-party data obfuscation shard. Assume that the multiplication self-shard is represented by rmi, where i represents the serial number of the participant who generates the multiplication self-shard, and i=1, 2 or 3 in this application. m represents the sender of the addition ciphertext shard, where when this party is the second party and the sender of the addition ciphertext shard is the first party, the corresponding multiplication self-shard is r12; when this party is the second party and the sender of the addition ciphertext shard is the third party, the corresponding multiplication self-shard is r32. Then, the multiplication result of the summed ciphertext slice owned by any party and the data obfuscated slice of the third party can be added, subtracted, multiplied or divided with the multiplication slice itself to obtain the corresponding multiplication peer secret slice.
[0054] In one embodiment of the present application, a multiplication peer secret slice of any party is obtained based on the summed ciphertext slices received by any party, the data obfuscation slices of a third party and the multiplication self-slice of any party, including: multiplying the summed ciphertext slices of each party with the data obfuscation slices of the third party received by any party respectively to obtain the multiplication temporary obfuscation slice of any party; based on the multiplication temporary obfuscation slice and the multiplication self-slice, obtaining the multiplication peer secret slice.
[0055] For example, Figure 2 As shown, the first party's summed ciphertext slice c_shrae_sum{1,1} can be used as slice x1, the second party's summed ciphertext slice c_shrae_sum{2,2} can be used as slice x2, and the third party's summed ciphertext slice c_shrae_sum{3,3} can be used as slice x3. The third party's first data obfuscated slice c1 can be used as slice y1, the second data obfuscated slice c2 can be used as slice y2, and the third data obfuscated slice c3 can be used as slice y3.
[0056] Then, the first party can calculate the multiplication temporary confusion slices: {shrae_sum{1,1}}*c1, {c_shrae_sum{2,2}}*c1 and {c_shrae_sum{3,3}}*c1; the second party can calculate the multiplication temporary confusion slices: {c_shrae_sum{1,1}}*c2, {shrae_sum{2,2}}*c2 and {c_shrae_sum{3,3}}*c2; the third party can calculate the multiplication temporary confusion slices: {c_shrae_sum{1,1}}*c3, {c_shrae_sum{2,2}}*c3 and {shrae_sum{3,3}}*c3. It should be understood that the summed slice calculated by this party and the third data obfuscated slice held by this party do not need to be obtained from other parties. Therefore, there is no need to multiply the summed ciphertext slice of this party with the third data obfuscated slice. It is sufficient to directly multiply the summed slice of this party with the third data obfuscated slice.
[0057] When this party is the second party and the sender of the summed ciphertext slice is the first party, the summed ciphertext slice c_shrae_sum{1,1} is multiplied with the data obfuscation slice c2 to obtain the multiplication temporary obfuscation slice c_shrae_sum{1,1}*c2, and then the multiplication self-slice r12 is subtracted from the multiplication temporary obfuscation slice c_shrae_sum{1,1}*c2 to obtain the multiplication peer secret slice c_shrae_sum{1,1}*c2-r12.
[0058] S160, based on the multiplication peer secret fragments, multiplication self fragments, addition fragments and third-party data obfuscation fragments, obtain the analysis request result.
[0059] Specifically, in the multiplication calculation phase as described above, x1y1, x1y2, x1y3, x2y1, x2y2, x2y3, x3y1, x3y2 and x3y3 can be obtained, and the multiplication result of xy can be obtained by adding all the multiplication slices. Each participant decrypts the received multiplication peer secret slice to obtain the multiplication peer slice. The multiplication peer slice is the multiplication result of the summed ciphertext slice of the party and the third data confusion slice of the third party owned by the other party, and the result of performing a preset operation on the multiplication of the other party's own slice. Therefore, the multiplication peer slice decrypted by any party and the multiplication result calculated by the party are added to obtain the multiplication result slice calculated by any party. The analysis request result is the addition result of the multiplication result slices of all participants.
[0060] In the technical solution of the present application, multiple data obfuscation slices and multiplication slices of any party are obtained; wherein the number of data obfuscation slices of any party is related to the number of participating parties; and then two of the data obfuscation slices of any party are sent to two different parties, so that each party only has one data slice of the other party, rather than the original data; then, based on the data obfuscation slice of the first party and the data obfuscation slice of the second party owned by any party, the sum slice and the sum ciphertext slice of any party are determined; and the sum ciphertext slice of any party is sent to The other two parties are prevented from restoring the original data through the addition ciphertext shards by the other parties in collusion; then, the multiplication peer secret shard of any party is obtained according to the addition ciphertext shards received by any party, the third party's data confusion shards and the multiplication self shards of any party; finally, the multiplication peer secret shards, the multiplication self shards and the addition shards of multiple parties are summarized to obtain the analysis request result, so that multiple parties can jointly calculate the analysis request result, and any party only holds part of the calculation result. Even if some participating parties collude, information will not be leaked, thereby improving the security of information sharing.
[0061] In one embodiment of the present application, the multiplication peer secret slices, multiplication self slices and addition slices of multiple parties are aggregated to obtain the analysis request result, including: sending the multiplication peer secret slices corresponding to other parties except any party to any party; decrypting the multiplication peer secret slices of other parties received by any party to obtain the multiplication peer slices; based on the multiplication peer slices of other parties, the multiplication self slices of any party, the addition slices of any party and the data obfuscation slices of the third party, the multiplication result slices of any party are obtained; and the multiplication result slices of all parties are aggregated to obtain the analysis request result.
[0062] Specifically, any party can receive the multiplication peer secret slice c_share sent by the other party sumj-cn={c_share_sum{k,i}*cn}-rmi; where n represents the sender number of the multiplication peer secret fragment, that is, the calculation party in the multiplication stage; j represents the receiver of the multiplication peer secret fragment. Therefore, for the first party, it can receive the multiplication peer secret fragment c_share sent by the second party. sum1-c2 , and can receive the multiplication peer secret shard c_share sent by a third party sum1-c3 For the second party, it can receive the multiplication peer secret slice c_share sent by the first party sum2-c1 , and can receive the multiplication peer secret shard c_share sent by a third party sum2-c3 For the third party, it can receive the multiplication peer secret shard c_share sent by the first party sum3-c1 , can receive the multiplication peer secret slice c_share sent by the second party sum3-c2 Then, the first party calls the decryption algorithm to multiply the peer secret slice c_share sum1-c2 and c_share sum1-c3 After decryption, we can get share_sum{1,1}*c2-r12 and share_sum{1,1}*c3-r13.
[0063] The second party calls the decryption algorithm to multiply the peer's secret slice c_share sum2-c1 and c_share sum2-c3 After decryption, we can get share_sum{2,2}*c1-r21 and share_sum{2,2}*c3-r23.
[0064] The third party calls the decryption algorithm to multiply the peer secret shard c_share sum3-c1 and c_share sum3-c2 After decryption, we can get share_sum{3,3}*c1-r31 and share_sum{3,3}*c2-r32.
[0065] Combining the multiplication shard of any party and the product of the sum shard and the third-party data obfuscation shard, the multiplication result shard of any party can be obtained. Finally, the multiplication result shards of all parties are summarized to obtain the analysis request result.
[0066] In one embodiment of the present application, based on the multiplication peer slices of other parties, the multiplication self slices of any party, the sum slices of any party and the data confusion slices of a third party, the multiplication result slices of any party are obtained, including: multiplying the sum slices of any party with the data confusion slices of the third party to obtain the multiplication temporary confusion slices of any party; adding the corresponding multiplication peer slices, the multiplication self slices and the sum slices of any party to obtain the multiplication result slices of any party.
[0067] Exemplarily, the first party's temporary multiplication confusion fragment is share_sum{1,1}*c1, and the other party's multiplication peer fragments decrypted by the first party are share_sum{1,1}*c2-r12 and share_sum{1,1}*c3-r13. Then the first party's multiplication result fragment mul_1 is share_sum{1,1}*c1+share_sum{1,1}*c2-r12+share_sum{1,1}*c3-r13+r21+r31.
[0068] The second party's temporary multiplication confusion fragment is share_sum{2,2}*c2, and the other party's multiplication counterpart fragments decrypted by the second party are share_sum{1,1}*c2-r12 and share_sum{1,1}*c3-r13. Then the second party's multiplication result fragment mul_2 is share_sum{2,2}*c2+share_sum{2,2}*c1-r21+share_sum{2,2}*c3-r23+r12+r32.
[0069] The third party's temporary obfuscated multiplication fragment is share_sum{3,3}*c3, and the third party's decrypted fragments of the other party's multiplication counterpart are share_sum{3,3}*c1-r31 and share_sum{3,3}*c2-r32. Then the third party's multiplication result fragment mul_3 is share_sum{3,3}*c3+share_sum{3,3}*c1-r31+share_sum{3,3}*c2-r32+r13+r23.
[0070] In one embodiment of the present application, the multiplication result slices of each party are aggregated to obtain the analysis request result, including: adding the multiplication result slices of any party to obtain the analysis request result slices of any party; sending the analysis request result slices of other parties to the designated party; and restoring the analysis request result according to the analysis request result slices of each party.
[0071] Exemplarily, assuming that the designated party is the first party, the second party and the third party send the multiplication result fragments to the first party for aggregation, and the analysis request result is as follows: share_re_1=mul_1+mul_2+mul_3=share_sum{1,1}*c1+share_sum{1,1}*c2-r12+share_sum{1,1}*c3-r13+r21+r31+share_sum{2,2}*c2+share_sum{2,2}*c1-r21+share_sum{2,2}*c3-r23+r12+r32+share_sum{3,3}*c3+share_sum{3,3}*c1-r31+share_sum{3,3}*c2-r32+r13+r23=share_sum{1,1}*c1+share_sum{1,1}*c2+share_sum{1,1}*c3+sha re_sum{2,2}*c2+share_sum{2,2}*c1+share_sum{2,2}*c3+share_sum{3,3}*c3+share_sum{3,3}*c1+share_sum{3,3}*c2.
[0072] It can be seen that by performing multi-party calculations through the method provided in this application, the result of (a+b)*c can be restored, and data is not easily leaked during data transmission. The multiplication shard result calculated by any party is only a part of the final result. The analysis request result shards of all participants need to be added together at the result receiving party to restore the final analysis request result. Collusion between some participants makes it impossible to restore the calculation result, which can reduce the possibility of information leakage.
[0073] In another embodiment, each participant can perform preset operations with preset parameters when transmitting analysis request result slices to increase the complexity of the analysis request result slices and prevent malicious parties from obtaining data cracking information. The analysis request result slices of any party can be added with the preset parameters. The number of preset parameters is related to the number of participants, and the preset parameters between any parties meet the specified conditions. For example, the preset parameter of the first party is α1, the preset parameter of the second party is α2, and the preset parameter of the third party is α3, and α1+α2+α3=0. In this way, when the addition calculation of the analysis request result slices is finally performed, it will not affect the final analysis request result.
[0074] The following describes an embodiment of the device of the present application. The present application provides a device for multi-party joint computing, where the multi-party at least includes: a first party, a second party, and a third party, such as Figure 3 As shown, the specific structure of the device is as follows.
[0075] The shard acquisition module 310 is used to acquire multiple data obfuscation shards of any party and multiplication of the own shards; the number of data obfuscation shards of any party is related to the number of participating parties.
[0076] The fragment sending module 320 is used to send two data fragments of any party to two different parties.
[0077] The summing module 330 is used to determine the summed fragment and the summed ciphertext fragment of any party according to the data obfuscated fragment of the first party and the data obfuscated fragment of the second party owned by any party.
[0078] The summing and sending module 340 is used to send the summing and ciphertext fragments of any party to the other two parties.
[0079] The multiplication module 350 is used to obtain the multiplication peer secret fragment of any party according to the summed ciphertext fragment received by any party, the third party's data confusion fragment and the multiplication self fragment of any party.
[0080] The result calculation module 360 is used to obtain the analysis request result based on the multiplication peer secret slices, multiplication own slices, addition slices and third-party data obfuscation slices of multiple parties.
[0081] In one embodiment of the present application, the multiplication module 350 includes: a first multiplication unit, which is used to multiply the summed ciphertext fragments of each party with the data obfuscated fragments of the third party received by any party, respectively, to obtain the multiplication temporary obfuscated fragments of any party; a second multiplication unit, which is used to obtain the multiplication peer secret fragment based on the multiplication temporary obfuscated fragment and the multiplication self-fragment.
[0082] In one embodiment of the present application, the result calculation module 360 includes: a product sending unit, which is used to send the multiplication peer secret slices corresponding to other parties other than any party to any party; a product decryption unit, which is used to decrypt the multiplication peer secret slices of other parties received by any party to obtain the multiplication peer slices; a product addition unit, which is used to obtain the multiplication result slices of any party based on the multiplication peer slices of other parties, the multiplication self-slices of any party, the addition slices of any party and the data obfuscation slices of the third party; a result calculation unit, which is used to summarize the multiplication result slices of each party to obtain the analysis request result.
[0083] In one embodiment of the present application, the product addition unit is also used to multiply the summed slice of any party with the data confusion slice of a third party to obtain the multiplication temporary confusion slice of any party; add the corresponding multiplication peer slice, the multiplication own slice and the multiplication temporary confusion slice to obtain the multiplication result slice of any party.
[0084] In one embodiment of the present application, the result calculation unit is also used to add the multiplication result slices of any party to obtain the analysis request result slices of any party; send the analysis request result slices of other parties to the designated party; and restore the analysis request results based on the analysis request result slices of each party.
[0085] In one embodiment of the present application, the sum module 330 includes: a first adding unit, used to add the data obfuscated fragments of the first party and the data obfuscated fragments of the second party to obtain the summed fragments of any party; and a sum encryption unit, used to encrypt the summed fragments to obtain the summed ciphertext fragments of any party.
[0086] In one embodiment of the present application, the multiple data obfuscation slices of any party include at least: a first data obfuscation slice, a second data obfuscation slice and a third data obfuscation slice, and the slice acquisition module 310 includes: an original data acquisition unit, used to acquire the first original data of the first party, the second original data of the second party and the third original data of the third party; a first slice unit, used to generate the first data obfuscation slice, the second data obfuscation slice and the third data obfuscation slice corresponding to the first party based on the first original data; a second slice unit, used to generate the first data obfuscation slice, the second data obfuscation slice and the third data obfuscation slice corresponding to the second party based on the second original data; a third slice unit, used to generate the first data obfuscation slice, the second data obfuscation slice and the third data obfuscation slice corresponding to the third party based on the third original data.
[0087] In one embodiment of the present application, the device provided by the present application also includes an encryption module, which is used to obtain encryption parameters of any party before obtaining multiple data confusion slices and multiplication self-slices of any party; generate public key and private key of any party based on the encryption parameters; send the public key to other parties, and retain the private key with any party.
[0088] It should be noted that the specific implementation contents of the device embodiments in the present application have been explained in detail in the corresponding method embodiments and will not be repeated here.
[0089] The electronic equipment of this application is introduced below, such as Figure 4 As shown, the present application provides an electronic device, which includes: a processor 410 and a memory 420, the memory 420 is used to store executable instructions of the processor; the processor 410 executes the executable instructions to enable the electronic device to implement the method of multi-party joint computing provided by any embodiment of the present application.
[0090] Specifically, the multi-party joint calculation method provided by the present application is stored in the memory 420 of the electronic device, and the method is executed by the processor 410, so that each participant shards the original data owned by itself, retains one of the data obfuscated shards in its own party, and sends the other data obfuscated shards to any party respectively. Note that the data obfuscated shards received by each party are not repeated. Then, these data obfuscated shards are subjected to the set addition and multiplication calculations according to the analysis request to obtain the analysis request result shards of each party, and finally the analysis request result shards are sent to the designated party for aggregation to obtain the analysis request results.
[0091] It should be known that the specific implementation content of the electronic device in the present application has been explained in detail in the corresponding method embodiment and will not be repeated here.
[0092] Figure 5 The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown.
[0093] It should be noted that Figure 5 The computer system 500 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0094] like Figure 5 As shown, the computer system 500 includes a processor 501, which can be a CPU (Central Processing Unit) or an MCU (Microcontroller Unit). The processor 501 can perform various appropriate actions and processes according to the program stored in the read-only memory 502 (Read-Only Memory, ROM) or the program loaded from the storage part 508 to the random access memory 503 (Random Access Memory, RAM). In the random access memory 503, various programs and data required for system operation are also stored. The processor 501, the read-only memory 502 and the random access memory 503 are connected to each other through a bus 504. The input / output interface 505 (Input / Output interface, i.e., I / O interface) is also connected to the bus 504.
[0095] The following components are connected to the input / output interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a local area network card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the input / output interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.
[0096] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the processor 501, various functions defined in the system of the present application are executed.
[0097] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0098] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0099] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0100] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation method of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the implementation method according to the present application.
[0101] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application.
[0102] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A multi-party joint computing method, characterized in that: The multiple parties include at least: a first party, a second party and a third party, and the method includes: Obtain multiple data obfuscation shards of any party and multiply the shards of itself; the number of data obfuscation shards of any party is related to the number of participants; Send two shards of any party's data to two different parties; Determine the summed fragment and the summed ciphertext fragment of any party according to the data obfuscated fragment of the first party and the data obfuscated fragment of the second party owned by any party; Send the ciphertext fragments of any party to the other two parties; The multiplication peer secret slice of the arbitrary party is obtained according to the summed ciphertext slice received by the arbitrary party, the third party's data confusion slice and the multiplication self slice of the arbitrary party; Based on the multiplication peer secret shards, multiplication self shards, addition shards and third-party data obfuscation shards of multiple parties, the analysis request results are obtained.
2. The multi-party joint computing method according to claim 1, characterized in that: The method of obtaining the multiplication peer secret fragment of any party according to the summed ciphertext fragment received by any party, the third party's data obfuscated fragment and the multiplication self fragment of any party includes: Multiply the summed ciphertext slices of each party by the data obfuscated slice of the third party received by any party, and obtain the multiplication temporary obfuscated slice of any party; Based on the multiplication temporary obfuscation slice and the multiplication self slice, the multiplication peer secret slice is obtained.
3. The multi-party joint computing method according to claim 1, characterized in that: The analysis request result is obtained based on the multiplication of the peer secret slices, the multiplication of the own slices, the addition of the slices and the third-party data obfuscation slices, including: Sending the multiplication peer secret fragment corresponding to the other party other than the arbitrary party to the arbitrary party; Decrypting the multiplication peer secret shard received by any party from the other party to obtain the multiplication peer shard; Based on the multiplication peer shards of other parties, the multiplication self shards of any party, the sum shards of any party and the data obfuscation shards of the third party, the multiplication result shards of the any party are obtained; The multiplication result fragments of each party are aggregated to obtain the analysis request result.
4. The multi-party joint computing method as claimed in claim 3, characterized in that: The multiplication result fragment of any party is obtained based on the multiplication peer fragment of other parties, the multiplication self fragment of any party, the sum fragment of any party and the data confusion fragment of the third party, including: Multiplying the summed slice of any party with the data obfuscated slice of the third party to obtain a multiplication temporary obfuscated slice of any party; The corresponding multiplication peer segment, the multiplication self segment and the multiplication temporary confusion segment are added together to obtain the multiplication result segment of any party.
5. The multi-party joint computing method as claimed in claim 3, characterized in that: The aggregating the multiplication result fragments of each party to obtain the analysis request result includes: Adding the multiplication result slices of any party to obtain the analysis request result slices of any party; Sending the analysis request result of other parties in segments to the designated party; The analysis request results are segmented according to the analysis request results of each party and restored to obtain the analysis request results.
6. The multi-party joint computing method according to claim 1, characterized in that: The step of determining the summed fragment and the summed ciphertext fragment of any party according to the first party's data obfuscated fragment and the second party's data obfuscated fragment owned by any party includes: Adding the first party's data obfuscation shard and the second party's data obfuscation shard to obtain a summed shard of any party; Encrypt the summed fragments to obtain the summed ciphertext fragments of any party.
7. The multi-party joint computing method according to claim 1, characterized in that: The multiple data obfuscation fragments of any party include at least: a first data obfuscation fragment, a second data obfuscation fragment, and a third data obfuscation fragment. The obtaining of the multiple data obfuscation fragments of any party includes: Acquire first original data of the first party, second original data of the second party, and third original data of the third party; Generate a first data obfuscated fragment, a second data obfuscated fragment, and a third data obfuscated fragment corresponding to the first party based on the first original data; Generate a first data obfuscated fragment, a second data obfuscated fragment, and a third data obfuscated fragment corresponding to the second party based on the second original data; A first data obfuscated fragment, a second data obfuscated fragment, and a third data obfuscated fragment corresponding to a third party are generated based on the third original data.
8. The multi-party joint computing method according to claim 1, characterized in that: Before obtaining a plurality of data obfuscation shards of any party and multiplying the shards themselves, the method further includes: Get encryption parameters of any party; generating a public key and a private key of the arbitrary party based on the encryption parameters; The public key is sent to the other party, and the private key is retained by the arbitrary party.
9. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for multi-party joint computing described in any one of claims 1 to 8 is implemented.
10. An electronic device, characterized in that: include: processor; A memory, configured to store executable instructions of the processor; The processor executes the executable instructions to enable the electronic device to implement the multi-party joint computing method as described in any one of claims 1 to 8.
