Security authentication method, device, data processing equipment and system
By sending the ciphertext and commitment value of the calculation factor in the secure multi-party computing system, the credibility of the participants is verified, the problem of insufficient security in the existing technology is solved, and the trusted authentication and data processing system of the participants are realized. security improvement.
Patent Information
- Application Number
- CN202410987047.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-10-01
AI Technical Summary
Existing secure multi-party computing technology has insufficient security in preventing collusion attacks, making it difficult to effectively improve the security of data processing systems.
In the data processing system of secure multi-party computation, the first participant sends the ciphertext and commitment value of the calculation factor to other participants, and each participant verifies the commitment value based on the ciphertext of the calculation factor and broadcasts the verification result to determine Credibility of the first party. This method uses random numbers from a secret random number set to generate calculation factors and commitment values, which improves the security of the verification process.
It achieves trusted authentication of each participant, establishes a safe and trusted secure multi-party computing environment, enhances the overall security of the data processing system, and prevents intrusions from untrusted participants.
Smart Images

Figure CN118740376A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a security authentication method, device, data processing equipment and system. Background Art
[0002] At present, the use of secure multi-party computing (MPC) technology to protect the security of distributed machine learning models is a major solution. Through secure multi-party computing, users can complete data collaborative computing without data aggregation, while protecting the privacy of the original data of the data owner. Each participant executes the common established computing logic and obtains the calculation result while keeping the data in their own local area. After the calculation is completed, each participant cannot obtain any additional information except for their own input data and output results.
[0003] Although secure multi-party computing technology has made great progress, there is still the problem of collusion attacks. Therefore, how to improve the security of data processing systems based on highly secure multi-party computing is a technical problem that needs to be solved urgently. Summary of the invention
[0004] The purpose of the present invention is to provide a security authentication method, device, data processing equipment and system, which solves the technical problem of how to improve the security of a data processing system based on highly secure multi-party computing, which is an urgent problem to be solved.
[0005] In a first aspect, to achieve the above-mentioned purpose, an embodiment of the present invention provides a security authentication method, which is applied to a first participant in a data processing system based on secure multi-party computing, wherein the data processing system includes n participants, the first participant is one of the n participants, and n is a positive integer;
[0006] The security authentication method comprises:
[0007] Sending the ciphertext of the calculation factor and the commitment value to other participants among the n participants; wherein the calculation factor corresponding to each of the other participants is generated according to a random number in the secret random number set, and the commitment value corresponding to each of the other participants is generated according to the calculation factor and the order of the secret random number set;
[0008] Each of the other participants verifies the commitment value according to the ciphertext of the calculation factor, and broadcasts the verification result of the commitment value, so that the other participants can determine whether the first participant is trustworthy according to the verification result.
[0009] In some optional embodiments, the step of generating the commitment value according to the calculation factor and the order of the secret random number set includes:
[0010] Determining a first calculation factor corresponding to each other participant based on the first secret random number set;
[0011] Determining a second calculation factor corresponding to each other participant based on the second secret random number set;
[0012] The commitment value is obtained according to the order of the first secret random number set, the order of the second secret random number set, the first calculation factor and the second calculation factor.
[0013] In some optional embodiments, obtaining the commitment value according to the order of the first secret random number set, the order of the second secret random number set, the first calculation factor, and the second calculation factor includes:
[0014] According to the formula: A = g ai(x) h bi(x) modp, determining the commitment value corresponding to each other party;
[0015] Wherein, A is the commitment value; ai(x) is the first calculation factor generated by the first participant for other participants, bi(x) is the second calculation factor generated by the first participant for other participants, x is the eigenvalue corresponding to the other participants; g is the rank element of the first secret random number set; h is the rank element of the second secret random number set; mod is the modulus operator; p is a large prime number set by the system.
[0016] In some optional embodiments, before the first participant sends the ciphertext of the calculation factor and the commitment value to other participants respectively, the method further includes:
[0017] The first participant generates a calculation factor for each other participant, wherein the calculation factor includes a first calculation factor and a second calculation factor;
[0018] The first participant encrypts the calculation factor using the public key of other participants to obtain the ciphertext of the calculation factor.
[0019] In some optional embodiments, the first participant generates a calculation factor for each other participant, including:
[0020] According to the formula: ai(x) = a i0 +a i1 x+a i2 x 2 +…+a it x t , determine the first calculation factor;
[0021] According to the formula: bi(x) = bi0 +b i1 x+b i2 x 2 +…+b it x t , determine the second calculation factor;
[0022] Among them, a i0 to a it is a random number in the first secret random number set, b i0 To b it is a random number in the second secret random number set, x is the characteristic value corresponding to each other participant, n=2t+1, and t is a positive integer.
[0023] In a second aspect, to achieve the above-mentioned purpose, an embodiment of the present invention provides a security authentication method, which is applied to a second participant in a data processing system based on secure multi-party computing, wherein the data processing system includes n participants, the second participant is one of the n participants except the first participant, and n is a positive integer;
[0024] The security authentication method comprises:
[0025] Receiving the ciphertext of the calculation factor and the commitment value sent by the first participant; wherein the calculation factor is generated according to a random number in a secret random number set, and the commitment value is generated according to the calculation factor and an order of the secret random number set;
[0026] Generating a verification result of the commitment value according to the ciphertext of the calculation factor;
[0027] The verification result is broadcasted, so that other participants among the n participants except the first participant can determine whether the first participant is credible according to the verification result.
[0028] In some optional embodiments, generating a verification result of the commitment value according to the ciphertext of the calculation factor includes:
[0029] decrypting the ciphertext of the calculation factor according to the private key of the second participant to obtain the calculation factor; the calculation factor includes a first calculation factor and a second calculation factor;
[0030] Obtaining a verification value of the commitment value according to the first calculation factor, the second calculation factor, the order of the first secret random number set, and the order of the second secret random number set;
[0031] If the commitment value is the same as the verification value, a first verification result is generated, wherein the first verification result is used to indicate that the commitment value has passed security authentication;
[0032] If the commitment value is different from the verification value, a second verification result is generated, where the second verification result is used to indicate that the commitment value has not passed security authentication.
[0033] In some optional embodiments, obtaining the verification value according to the first calculation factor, the second calculation factor, the order of the first secret random number set, and the order of the second secret random number set includes:
[0034] According to the formula: B = g ai(x) h bi(x) modp, determining the verification value;
[0035] Among them, B is the verification value; ai(x) is the first calculation factor sent by the first participant, bi(x) is the second calculation factor sent by the first participant, x is the eigenvalue corresponding to the second participant; g is the rank element of the first secret random number set; h is the rank element of the second secret random number set; mod is the modulus operator; p is a large prime number set by the system.
[0036] In a third aspect, to achieve the above-mentioned purpose, an embodiment of the present invention provides a security authentication method, which is applied to a third party in a data processing system based on secure multi-party computing, wherein the data processing system includes n parties, the third party is one of the n parties except the first party and the second party, and n is a positive integer;
[0037] The security authentication method comprises:
[0038] Receive the ciphertext of the calculation factor and the commitment value sent by the first participant, and generate a verification result of the commitment value; wherein the calculation factor is generated by the first participant according to a random number in a secret random number set, and the commitment value is generated by the first participant according to the calculation factor and an order of the secret random number set;
[0039] receiving a verification result sent by a second participant, each of the verification results being used to indicate whether the commitment value has passed security authentication; wherein the commitment value is sent by the first participant to the second participant, and the second participant is a participant other than the first participant and the third participant among the n participants;
[0040] Determine whether the first party is trustworthy based on the collected verification results; wherein the collected verification results include the verification results generated by itself and the verification results sent by the other parties.
[0041] In some optional embodiments, determining whether the first party is credible according to the n verification results includes:
[0042] If at least t of the collected verification results pass the security authentication, the first participant is determined to be a trusted participant; wherein n=2t+1, t is a positive integer;
[0043] If at least t of the collected verification results fail the security authentication, the first participant is determined to be an untrustworthy participant, and the first participant is removed from the n participants.
[0044] In a fourth aspect, in order to achieve the above-mentioned purpose, an embodiment of the present invention provides a data processing system based on secure multi-party computing, wherein the data processing system includes n participants, including:
[0045] A first party among the n parties is configured to send a ciphertext of a calculation factor and a commitment value to other parties among the n parties, wherein the commitment value is generated according to the calculation factor and an order of a set of secret random numbers;
[0046] The other parties among the n parties are used to verify the commitment value according to the ciphertext of the calculation factor, and broadcast the verification result of the commitment value, so that the other parties among the n parties except the first party can determine whether the first party is trustworthy according to the verification result.
[0047] In a fifth aspect, to achieve the above-mentioned purpose, an embodiment of the present invention provides a security authentication device, which is applied to a first participant in a data processing system based on secure multi-party computing, wherein the data processing system includes n participants, the first participant is any one of the n participants, and n is a positive integer;
[0048] The safety authentication device comprises:
[0049] A first sending module is used to send the ciphertext of the calculation factor and the commitment value to other participants among the n participants; wherein the calculation factor corresponding to each of the other participants is generated according to a random number in a secret random number set, and the commitment value corresponding to each of the other participants is generated according to the calculation factor and an order of the secret random number set;
[0050] Each of the other participants verifies the commitment value according to the ciphertext of the calculation factor, and broadcasts the verification result of the commitment value, so that the other participants can determine whether the first participant is trustworthy according to the verification result.
[0051] In a sixth aspect, to achieve the above-mentioned purpose, an embodiment of the present invention provides a security authentication device, which is applied to a second participant in a data processing system based on secure multi-party computing, wherein the data processing system includes n participants, and the second participant is any one of the n participants except the first participant, and n is a positive integer;
[0052] The safety authentication device comprises:
[0053] A first receiving module, configured to receive a ciphertext of a calculation factor and a commitment value sent by the first participant; wherein the calculation factor is generated according to a random number in a secret random number set, and the commitment value is generated according to the calculation factor and an order of the secret random number set;
[0054] A first processing module, configured to generate a verification result of the commitment value according to the ciphertext of the calculation factor;
[0055] The second sending module is used to broadcast the verification result, so that other participants among the n participants except the first participant can determine whether the first participant is credible according to the verification result.
[0056] In a seventh aspect, to achieve the above-mentioned purpose, an embodiment of the present invention provides a security authentication device, which is applied to a third party in a data processing system based on secure multi-party computing, wherein the data processing system includes n parties, and the third party is any one of the n parties except the first party, where n is a positive integer;
[0057] The safety authentication device comprises:
[0058] A second receiving module is used to receive the ciphertext of the calculation factor and the commitment value sent by the first participant, and generate a verification result of the commitment value; wherein the calculation factor is generated by the first participant according to a random number in a secret random number set, and the commitment value is generated by the first participant according to the calculation factor and an order of the secret random number set;
[0059] A third receiving module is used to receive n-2 verification results sent by n-2 second participants, each of which is used to indicate whether the commitment value has passed the security authentication; wherein the commitment value is sent by the first participant to the second participant, and the second participant is the other participant among the n participants except the first participant and the third participant;
[0060] A security authentication module is used to determine whether the first participant is trustworthy based on n-1 verification results; wherein the n-1 verification results include the verification results generated by itself and n-2 verification results sent by the other participants.
[0061] In the eighth aspect, in order to achieve the above-mentioned purpose, an embodiment of the present invention provides a data processing device, including a transceiver, a processor, a memory, and a program or instruction stored in the memory and executable on the processor; when the processor executes the program or instruction, it implements the steps of the security authentication method described in the first aspect, the second aspect, or the third aspect.
[0062] To achieve the above-mentioned purpose, an embodiment of the present invention provides a readable storage medium on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the security authentication method described in the first aspect, the second aspect or the third aspect are implemented.
[0063] To achieve the above-mentioned purpose, an embodiment of the present invention provides a computer program product, including computer instructions, which, when executed by a processor, implement the steps of the security authentication method as described in the first aspect, the second aspect, or the third aspect.
[0064] The beneficial effects of the above technical solution of the present invention are as follows:
[0065] The method of the embodiment of the present invention, the data processing system includes n participants, the first participant sends the ciphertext of the calculation factor and the commitment value to the other participants in the n participants; the calculation factor corresponding to each other participant is generated according to the random number in the secret random number set, and the commitment value corresponding to each other participant is generated according to the calculation factor and the order of the secret random number set; each other participant verifies the commitment value according to the ciphertext of the calculation factor, and broadcasts the verification result of the commitment value, so that the other participants determine whether the first participant is credible according to the verification result. Through the scheme of the present invention, each participant can be authenticated and a secure and credible secure multi-party computing environment can be established for the data processing system. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 One of the flow charts of the security authentication method according to an embodiment of the present invention;
[0067] Figure 2 This is a second flowchart of the security authentication method according to an embodiment of the present invention;
[0068] Figure 3 This is a third flowchart of the security authentication method according to an embodiment of the present invention;
[0069] Figure 4 This is a diagram of a model training architecture based on secure multi-party computing according to an embodiment of the present invention;
[0070] Figure 5 This is one of the structural block diagrams of the security authentication device according to an embodiment of the present invention;
[0071] Figure 6This is a second structural block diagram of the security authentication device according to an embodiment of the present invention;
[0072] Figure 7 This is a third structural block diagram of the security authentication device according to an embodiment of the present invention;
[0073] Figure 8 One of the hardware structure diagrams of the data processing device according to the embodiment of the present invention;
[0074] Fig. 9 The second hardware structure diagram of the data processing device according to the embodiment of the present invention;
[0075] Fig.10 This is the third hardware structure diagram of the data processing device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0076] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0077] It should be understood that the references to "one embodiment" or "an embodiment" throughout the specification mean that the specific features, structures, or characteristics associated with the embodiment are included in at least one embodiment of the present invention. Therefore, the references to "in one embodiment" or "in an embodiment" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0078] In various embodiments of the present invention, it should be understood that the size of the serial numbers of the following processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0079] Additionally, the terms "system" and "network" are often used interchangeably herein.
[0080] In the embodiments provided in the present application, it should be understood that "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.
[0081] like Figure 1 As shown, a security authentication method according to an embodiment of the present invention is applied to a first participant in a data processing system based on secure multi-party computing, wherein the data processing system includes n participants, the first participant is one of the n participants, and n is a positive integer;
[0082] The security authentication method comprises the following steps:
[0083] Step 101: Sending the ciphertext of the calculation factor and the commitment value to other participants among the n participants; wherein the calculation factor corresponding to each of the other participants is generated according to a random number in a secret random number set, and the commitment value corresponding to each of the other participants is generated according to the calculation factor and the order of the secret random number set;
[0084] Each of the other participants verifies the commitment value according to the ciphertext of the calculation factor, and broadcasts the verification result of the commitment value, so that the other participants can determine whether the first participant is trustworthy according to the verification result.
[0085] It is understandable that after the first participant sends the calculation factor and commitment value, each other participant can receive at most n-2 verification results of the commitment values, and combined with the verification results of the commitment values obtained by itself, at most n-1 verification results of the commitment values can be collected.
[0086] It should be noted that the first participant randomly generates a calculation factor for each other participant based on the secret random number set, and generates a commitment value based on the calculation factor and the order of the secret random number set. In this way, different other participants have different corresponding calculation factors and commitment values.
[0087] In the above embodiment, the first participant is one of the n participants, and each of the n participants needs to send the ciphertext of the calculation factor and the commitment value to the other participants as the first participant; the other participants verify the commitment value sent by the first participant based on the ciphertext of the calculation factor, and broadcast the verification result of the commitment value, so that the other participants can determine whether the first participant is trustworthy based on the collected verification results. In this way, each of the n participants can be authenticated and a secure and trustworthy secure multi-party computing environment can be established for the data processing system.
[0088] In some optional embodiments, the step of generating the commitment value according to the calculation factor and the order of the secret random number set includes:
[0089] Determining a first calculation factor corresponding to each other participant based on the first secret random number set;
[0090] Determining a second calculation factor corresponding to each other participant based on the second secret random number set;
[0091] The commitment value is obtained according to the order of the first secret random number set, the order of the second secret random number set, the first calculation factor and the second calculation factor.
[0092] The rank of the secret random number set is the number of random numbers included in the secret random number set.
[0093] In the above embodiment, a commitment value is generated according to two calculation factors and the order of two secret random number sets, which increases the complexity of the algorithm and can improve the security of the trusted verification process.
[0094] In some optional embodiments, obtaining the commitment value according to the order of the first secret random number set, the order of the second secret random number set, the first calculation factor, and the second calculation factor includes:
[0095] According to the formula: A = g ai(x) h bi(x) modp, determining the commitment value corresponding to each other party;
[0096] Wherein, A is the commitment value; ai(x) is the first calculation factor generated by the first participant for other participants, bi(x) is the second calculation factor generated by the first participant for other participants, x is the eigenvalue corresponding to the other participants; g is the rank element of the first secret random number set; h is the rank element of the second secret random number set; mod is the modulus operator; p is a large prime number set by the system.
[0097] It should be noted that the characteristic value corresponding to each participant is pre-configured by the system. Optionally, the value of x is from 1 to n, that is, n participants are numbered so that participant j corresponds to characteristic value j, j = 1, 2, ..., n.
[0098] For example, the first calculation factor generated by participant 1 for other participant 2 is a1(2), and the second calculation factor is b1(2); the first calculation factor generated by participant 1 for other participant 3 is a1(3), and the second calculation factor is b1(3); the first calculation factor generated by participant 1 for other participant 4 is a1(4), and the second calculation factor is b1(4), and so on. In this way, participant 1 can generate different first calculation factors and second calculation factors for each other participant, and use the first calculation factors and second calculation factors to generate corresponding commitment values for each other participant, so that the corresponding commitment values of different participants are different.
[0099] In some optional embodiments, before the first participant sends the ciphertext of the calculation factor and the commitment value to other participants respectively, the method further includes:
[0100] The first participant generates a calculation factor for each other participant, wherein the calculation factor includes a first calculation factor and a second calculation factor;
[0101] The first participant encrypts the calculation factor using the public key of other participants to obtain the ciphertext of the calculation factor.
[0102] In the specific implementation, during the certificate generation phase, all participants store the certificate private key locally, and disclose their own public key and public key correctness proof to any other participants. Other participants can use the public key correctness proof to verify the public key. If the verification is successful, it means that the public key is valid. Each participant publishes the commitment value generated for other participants, and uses the public key of other participants to encrypt the calculation factor to obtain the ciphertext EC(ai(x), bi(x)). Here, the encryption algorithm with additive homomorphism can be used to obtain the ciphertext of the calculation factor. Additive homomorphism is that the ciphertext of the sum of two plaintexts is equal to a certain operation result of the corresponding ciphertext of the two plaintexts.
[0103] In the above embodiment, by encrypting the calculation factor, the security of the calculation factor can be guaranteed and malicious parties can be prevented from obtaining the calculation factor.
[0104] In some embodiments, the first participant generates a calculation factor for each other participant, including:
[0105] According to the formula: ai(x) = a i0 +a i1 x+a i2 x 2 +…+a it x t , determine the first calculation factor;
[0106] According to the formula: bi(x) = b i0 +b i1 x+b i2 x 2 +…+b it x t , determine the second calculation factor;
[0107] Among them, a i0 to a it is a random number in the first secret random number set, b i0 To b it is a random number in the second secret random number set, x is the characteristic value corresponding to each other participant, n=2t+1, and t is a positive integer.
[0108] For example, assuming that the eigenvalue corresponding to other participant 2 is 2, then the first calculation factor generated by participant 1 for other participant 2 is a1(2)=a i0 +2a i1 +4a i2 +…+2 t a it , the second calculation factor is b1(2)=b i0 +2b i1 +4b i2 +…+2 t bit .
[0109] See also Figure 2 , a security authentication method according to an embodiment of the present invention is applied to a second participant in a data processing system based on secure multi-party computing, wherein the data processing system includes n participants, the second participant is one of the n participants except the first participant, and n is a positive integer;
[0110] The security authentication method comprises the following steps:
[0111] Step 201: receiving the ciphertext of the calculation factor and the commitment value sent by the first participant; wherein the calculation factor is generated according to a random number in a secret random number set, and the commitment value is generated according to the calculation factor and the order of the secret random number set;
[0112] It should be noted that the second party is used to refer to any other party except the first party.
[0113] It should be noted that the first participant randomly generates a calculation factor for each other participant based on the secret random number set, and generates a commitment value based on the calculation factor and the order of the secret random number set. In this way, the corresponding calculation factors and commitment values of different other participants are different.
[0114] Step 202: Generate a verification result of the commitment value according to the ciphertext of the calculation factor;
[0115] In the specific implementation, the ciphertext of the calculation factor sent by the first participant is encrypted using the public key of the second participant, and the second participant decrypts it using the local private key to obtain the calculation factor; further, the calculation is performed based on the calculation factor and the order of the known secret random number set to obtain the verification value of the commitment value; based on the verification value, the verification result of the commitment value is obtained, and the verification result is used to indicate whether the commitment value has passed the security authentication.
[0116] Step 203: Broadcast the verification result, so that other participants among the n participants except the first participant can determine whether the first participant is credible based on the verification result.
[0117] In this embodiment, after the first participant sends the ciphertext of the calculation factor and the commitment value to the other participants, each other participant verifies the commitment value and broadcasts the verification result of the commitment value. In this way, each other participant can receive at most n-2 verification results of the commitment value, and can collect at most n-1 verification results of the commitment value combined with the verification results of the commitment value obtained by itself; finally, each other participant determines whether the first participant is trustworthy based on the collected verification results. In this way, each of the n participants can be authenticated and a secure and trustworthy secure multi-party computing environment can be established for the data processing system.
[0118] In some embodiments, generating a verification result of the commitment value according to the ciphertext of the calculation factor includes:
[0119] decrypting the ciphertext of the calculation factor according to the private key of the second participant to obtain the calculation factor; the calculation factor includes a first calculation factor and a second calculation factor;
[0120] Obtaining a verification value of the commitment value according to the first calculation factor, the second calculation factor, the order of the first secret random number set, and the order of the second secret random number set;
[0121] If the commitment value is the same as the verification value, a first verification result is generated, wherein the first verification result is used to indicate that the commitment value has passed security authentication;
[0122] If the commitment value is different from the verification value, a second verification result is generated, where the second verification result is used to indicate that the commitment value has not passed security authentication.
[0123] In this embodiment, the second participant regenerates a commitment value as the verification value using the same algorithm as the first participant based on the received calculation factor and the order of the known secret random number set; and generates a verification result of the commitment value by comparing the verification value with the commitment value sent by the first participant. Through this embodiment, each other participant can generate a verification result for the commitment value sent by the first participant, so that each other participant can perform trustworthy verification on the first participant and generate a verification result.
[0124] In some embodiments, obtaining the verification value according to the first calculation factor, the second calculation factor, the order of the first secret random number set, and the order of the second secret random number set includes:
[0125] According to the formula: B = g ai(x) h bi(x) modp, determining the verification value;
[0126] Among them, B is the verification value; ai(x) is the first calculation factor sent by the first participant, bi(x) is the second calculation factor sent by the first participant, x is the eigenvalue corresponding to the second participant; g is the rank element of the first secret random number set; h is the rank element of the second secret random number set; mod is the modulus operator; p is a large prime number set by the system.
[0127] In this embodiment, if the calculation factor sent by the first participant to the second participant is correct, then according to the formula B=g ai(x) h bi(x) The verification value B generated by modp will be the same as the commitment value sent by the first participant.
[0128] See also Figure 3 , a security authentication method according to an embodiment of the present invention is applied to a third party in a data processing system based on secure multi-party computing, wherein the data processing system includes n parties, the third party is one of the n parties except the first party and the second party, and n is a positive integer;
[0129] The security authentication method comprises the following steps:
[0130] Step 301: Receive the ciphertext of the calculation factor and the commitment value sent by the first participant, and generate a verification result of the commitment value; wherein the calculation factor is generated by the first participant according to a random number in a secret random number set, and the commitment value is generated by the first participant according to the calculation factor and the order of the secret random number set.
[0131] Step 302: Receive the verification results sent by the second participant, each of which is used to characterize whether the commitment value has passed the security authentication; wherein the commitment value is sent by the first participant to the second participant, and the second participant is the other participant among the n participants except the first participant and the third participant.
[0132] Here, the second party refers to one of the other parties except the first party, and the third party refers to another one of the other parties except the first party.
[0133] It is understandable that, in actual application, since the second participant and the third participant are both participants other than the first participant, the second participant will also receive the verification result of the commitment value sent by the third participant. Similarly, the second participant and the third participant will also receive the verification results sent by other participants except the second participant, the first participant and the third participant.
[0134] Step 303: Determine whether the first party is trustworthy based on the collected verification results; wherein the collected verification results include the verification results generated by itself and the verification results sent by the other parties.
[0135] In the above embodiment, after the first participant sends the ciphertext of the calculation factor and the commitment value to the other participants respectively, each other participant verifies the commitment value respectively and broadcasts the verification result of the commitment value. In this way, each other participant can receive at most n-2 verification results of the commitment value, and can collect at most n-1 verification results of the commitment value combined with the verification results of the commitment value obtained by itself; finally, each other participant determines whether the first participant is trustworthy based on the collected verification results. In this way, each of the n participants can be authenticated and a secure and trustworthy secure multi-party computing environment can be established for the data processing system.
[0136] In some embodiments, determining whether the first party is trustworthy according to the n verification results includes:
[0137] If at least t of the collected verification results pass the security authentication, the first participant is determined to be a trusted participant; wherein n=2t+1, t is a positive integer;
[0138] If at least t of the collected verification results fail the security authentication, the first participant is determined to be an untrustworthy participant, and the first participant is removed from the n participants.
[0139] It should be pointed out that n participants satisfy the n=2t+1 model, where t is the maximum number of nodes that can be tolerated. In this way, the privacy of honest node inputs can be guaranteed during the input phase of secure multi-party computation, and t+1 correct shares can be used to reconstruct the computation results during the recovery phase.
[0140] In the above embodiment, if more than half of the other participants determine that the first participant is trustworthy, the first participant can be used as a data processing node in the secure multi-party computing; otherwise, the first participant will be treated as a dishonest node and needs to be removed and cannot be used as a data processing node in the secure multi-party computing. In this way, by performing trustworthy authentication on each of the n participants and removing untrustworthy participants, a secure and trustworthy secure multi-party computing environment can be established for the data processing system.
[0141] In addition, an embodiment of the present invention provides a data processing system based on secure multi-party computing, wherein the data processing system includes n participants, including:
[0142] A first party among the n parties is configured to send a ciphertext of a calculation factor and a commitment value to other parties among the n parties, wherein the commitment value is generated according to the calculation factor and an order of a set of secret random numbers;
[0143] The other parties among the n parties are used to verify the commitment value according to the ciphertext of the calculation factor, and broadcast the verification result of the commitment value, so that the other parties among the n parties except the first party can determine whether the first party is trustworthy according to the verification result.
[0144] In the above embodiment, the first participant is one of the n participants, and each of the n participants needs to send the ciphertext of the calculation factor and the commitment value to the other participants; the other participants verify the commitment value sent by the first participant based on the ciphertext of the calculation factor, and broadcast the verification result of the commitment value, so that the other participants can determine whether the first participant is trustworthy based on the collected verification results. In this way, each of the n participants can be authenticated and a secure and trustworthy secure multi-party computing environment can be established for the data processing system.
[0145] It should be pointed out that the process of generating the calculation factor and the commitment value is similar to the embodiment applied to the first participant, and can achieve the same technical effect; the verification process of the commitment value by other participants is similar to the embodiment applied to the second participant and the third participant, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0146] It should be noted that the above embodiment mainly introduces how to perform security authentication on each participant to suggest an optional secure multi-party computing environment. After establishing a trusted secure multi-party environment, subsequent data transmission can also be in the form of certificates, with the sender using the receiver's public key to encrypt the data and the receiver using the local private key to decrypt it.
[0147] In addition, the following is a brief introduction to distributed model training based on the built trusted and secure multi-party environment.
[0148] The basic idea is: first, train the local model in each local node, and after the local model is optimized, perform weighted average of the local models to generate the entire model. During the training process of secure multi-party computing, the gradient information of each local model is transmitted in the network. In this way, problems such as high network load and data security caused by data transmission are avoided to a certain extent; and by sending a large number of model training processes to distributed nodes, the overall computing resource utilization of the network is relatively improved.
[0149] like Figure 4As shown in the figure, secure multi-party computation includes six participant roles: task initiator, algorithm provider, result user, data provider, scheduler, and calculator. In actual applications, one entity can assume multiple roles at the same time.
[0150] The identity trust problem of participating entities is solved by a trusted central server. Specifically, the participating entities first register before conducting secure multi-party computing. During the registration, they clarify the type of role they may assume in participating in secure multi-party computing, and obtain a digital certificate issued by the trusted central server. The digital signature in the certificate prevents malicious participants or external attackers from forging and tampering with the certificate content. After that, the participating parties complete the mutual trust of each other's identities based on the digital certificate and collaborate to complete the secure multi-party computing task. During the task execution process, each participant can only complete the corresponding actions according to the agreed role. Secure multi-party computing includes three main modules: task scheduling management module, data service module, and computing engine. These modules provide data interfaces and operation interfaces for different participants to collaborate to complete a multi-party secure computing task.
[0151] Specifically, model training based on secure multi-party computing mainly involves the following aspects:
[0152] 1) During the secure multi-party computing training process, the regional scheduling module initializes the model parameters of each node with the same value before the secure multi-party computing training starts, and transmits it to all participating nodes; at the same time, the scheduling module has the information of all nodes, and when initializing the parameters, it also broadcasts the node list.
[0153] 2) During training, the node updates the model using the local dataset: The node takes the aggregated result obtained from the last interaction as the input model and updates it using mini-batch gradient descent (SGD) on the local data.
[0154] 3) Each node stores a bandwidth table with other peer nodes in the region. At the beginning, this table is initialized to 0. Once a peer node is selected in a communication round, it will estimate the available bandwidth of the link by monitoring the shard transmission time and combining the round-trip time (RTT). After smoothing the bandwidth value with the bandwidth values recorded in the previous communication rounds, it is stored in the bandwidth table. The node dynamically plans the bandwidth table and selects the appropriate peer node for secure multi-party computing interaction.
[0155] 4) The node divides the locally trained model into N gradient shards. For each shard, the node must select S peers and send a model shard pull request, which contains a shard description and the node's unique identifier to indicate which part of the model to send and to whom to send the model. Each node must send shard pull requests to other nodes, and the regional scheduling module evenly distributes these requests among all nodes to balance the transmission workload using more links.
[0156] 5) When the node provides the model shards to other nodes, it also receives the previously requested shards. The secure multi-party computing model aggregation phase will not start until all pull requests are satisfied. Only data that has passed the secure multi-party authentication will be received and processed. The node aggregates the external model shards with the local model and puts the aggregated shards together to rebuild the model. With the aggregation results, the node will return to the first step and start the next local training until the entire training process converges to end the secure multi-party computing process.
[0157] 6) Add a node interaction monitoring mechanism. If a node exits unexpectedly, once other interacting nodes find that the connection of the interacting node is lost, they can mark it as unsafe, resend the request to another online node and stop the secure multi-party computing interaction from the offline node. If false reports or offline node returns due to network fluctuations, the unsafe flag can be deleted as long as the secure multi-party communication is reestablished. When a new node joins the secure multi-party cluster, it registers with the regional scheduling module and requests a node list, so that other nodes in the area will quickly notice that the node has joined and generate secure multi-party interactions.
[0158] 7) The dispatch center collects the quantity and status of resources of each regional module, network resource topology information, network latency information, etc., and summarizes the distribution map. When the dispatch center monitors new resource requests, it will first estimate the required resource arrangement, and then select the area with the lowest resource utilization rate nearby according to the request location and the Top N algorithm based on the distribution map, and dispatch nodes that meet the network latency and computing resources through regional secure multi-party computing for use. Using the computing resources and network transmission latency of the nodes as constraints, the nodes in each area are reasonably allocated to meet the security and latency requirements of all tenants and achieve the optimal configuration of the entire network.
[0159] like Figure 5 As shown, a security authentication device 500 according to an embodiment of the present invention is applied to a first participant in a data processing system based on secure multi-party computing, wherein the data processing system includes n participants, the first participant is any one of the n participants, and n is a positive integer;
[0160] The security authentication device 500 comprises:
[0161] The first sending module 501 is used to send the ciphertext of the calculation factor and the commitment value to other participants in the n participants; wherein the calculation factor corresponding to each of the other participants is generated according to the random number in the secret random number set, and the commitment value corresponding to each of the other participants is generated according to the calculation factor and the order of the secret random number set;
[0162] Each of the other participants verifies the commitment value according to the ciphertext of the calculation factor, and broadcasts the verification result of the commitment value, so that the other participants can determine whether the first participant is trustworthy according to the verification result.
[0163] Optionally, the apparatus 500 further includes:
[0164] A first determination module, configured to determine a first calculation factor corresponding to each other participant based on a first secret random number set;
[0165] A second determination module, configured to determine a second calculation factor corresponding to each other participant based on a second secret random number set;
[0166] The first acquisition module is used to obtain the commitment value according to the order of the first secret random number set, the order of the second secret random number set, the first calculation factor and the second calculation factor.
[0167] Optional ID, the first acquisition module is specifically used for:
[0168] According to the formula: A = g ai(x) h bi(x) modp, determining the commitment value corresponding to each other party;
[0169] Wherein, A is the commitment value; ai(x) is the first calculation factor generated by the first participant for other participants, bi(x) is the second calculation factor generated by the first participant for other participants, x is the eigenvalue corresponding to the other participants; g is the rank element of the first secret random number set; h is the rank element of the second secret random number set; mod is the modulus operator; p is a large prime number set by the system.
[0170] Optionally, the apparatus 500 further includes:
[0171] A calculation factor generation module, used for the first participant to generate a calculation factor for each other participant, wherein the calculation factor includes a first calculation factor and a second calculation factor;
[0172] The encryption processing module is used for the first participant to encrypt the calculation factor using the public key of other participants to obtain the ciphertext of the calculation factor.
[0173] Optionally, the calculation factor generation module is specifically used for:
[0174] According to the formula: ai(x) = a i0 +a i1 x+a i2 x 2 +…+a it xt , determine the first calculation factor;
[0175] According to the formula: bi(x) = b i0 +b i1 x+b i2 x 2 +…+b it x t , determine the second calculation factor;
[0176] Among them, a i0 to a it is a random number in the first secret random number set, b i0 To b it is a random number in the second secret random number set, x is the characteristic value corresponding to each other participant, n=2t+1, and t is a positive integer.
[0177] like Figure 6 As shown, a security authentication device 600 according to an embodiment of the present invention is applied to a second participant in a data processing system based on secure multi-party computing, wherein the data processing system includes n participants, the second participant is any one of the n participants except the first participant, and n is a positive integer;
[0178] The security authentication device 600 comprises:
[0179] The first receiving module 601 is used to receive the ciphertext of the calculation factor and the commitment value sent by the first participant; wherein the calculation factor is generated according to the random number in the secret random number set, and the commitment value is generated according to the calculation factor and the order of the secret random number set;
[0180] A first processing module 602, configured to generate a verification result of the commitment value according to the ciphertext of the calculation factor;
[0181] The second sending module 603 is used to broadcast the verification result, so that other participants among the n participants except the first participant can determine whether the first participant is credible according to the verification result.
[0182] Optionally, the first processing module 602 is specifically configured to:
[0183] decrypting the ciphertext of the calculation factor according to the private key of the second participant to obtain the calculation factor; the calculation factor includes a first calculation factor and a second calculation factor;
[0184] Obtaining a verification value of the commitment value according to the first calculation factor, the second calculation factor, the order of the first secret random number set, and the order of the second secret random number set;
[0185] If the commitment value is the same as the verification value, a first verification result is generated, wherein the first verification result is used to indicate that the commitment value has passed security authentication;
[0186] If the commitment value is different from the verification value, a second verification result is generated, where the second verification result is used to indicate that the commitment value has not passed security authentication.
[0187] Optionally, the first processing module 602 is specifically configured to:
[0188] According to the formula: B = g ai(x) h bi(x) modp, determining the verification value;
[0189] Among them, B is the verification value; ai(x) is the first calculation factor sent by the first participant, bi(x) is the second calculation factor sent by the first participant, x is the eigenvalue corresponding to the second participant; g is the rank element of the first secret random number set; h is the rank element of the second secret random number set; mod is the modulus operator; p is a large prime number set by the system.
[0190] like Figure 7 As shown, a security authentication device 700 according to an embodiment of the present invention is applied to a third party in a data processing system based on secure multi-party computing, wherein the data processing system includes n parties, the third party is any one of the n parties except the first party, and n is a positive integer;
[0191] The security authentication device 700 comprises:
[0192] The second receiving module 701 is used to receive the ciphertext of the calculation factor and the commitment value sent by the first participant, and generate a verification result of the commitment value; wherein the calculation factor is generated by the first participant according to a random number in a secret random number set, and the commitment value is generated by the first participant according to the calculation factor and the order of the secret random number set;
[0193] The third receiving module 702 is used to receive n-2 verification results sent by n-2 second participants, each of which is used to indicate whether the commitment value has passed the security authentication; wherein the commitment value is sent by the first participant to the second participant, and the second participant is the other participant among the n participants except the first participant and the third participant;
[0194] The security authentication module 703 is used to determine whether the first participant is trustworthy based on the n-1 verification results; wherein the n-1 verification results include the verification results generated by itself and the n-2 verification results sent by the other participants.
[0195] Optionally, the security authentication module 703 is specifically used for:
[0196] If at least t of the collected verification results pass the security authentication, the first participant is determined to be a trusted participant; wherein n=2t+1, t is a positive integer;
[0197] If at least t of the collected verification results fail the security authentication, the first participant is determined to be an untrustworthy participant, and the first participant is removed from the n participants.
[0198] A data processing device according to another embodiment of the present invention is applied to a first participant in a data processing system based on secure multi-party computing, wherein the data processing system includes n participants, the first participant is one of the n participants, and n is a positive integer.
[0199] like Figure 8 As shown, it includes a transceiver 810, a processor 800, a memory 820, and a program or instruction stored in the memory 820 and executable on the processor 800; when the processor 800 executes the program or instruction, the following steps are implemented:
[0200] Sending the ciphertext of the calculation factor and the commitment value to other participants among the n participants; wherein the calculation factor corresponding to each of the other participants is generated according to a random number in the secret random number set, and the commitment value corresponding to each of the other participants is generated according to the calculation factor and the order of the secret random number set;
[0201] Each of the other participants verifies the commitment value according to the ciphertext of the calculation factor, and broadcasts the verification result of the commitment value, so that the other participants can determine whether the first participant is trustworthy according to the verification result.
[0202] The transceiver 810 is used to receive and send data under the control of the processor 800 .
[0203] Among them, Figure 8In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking together various circuits of one or more processors represented by processor 800 and memory represented by memory 820. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 810 may be a plurality of components, i.e., including a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. The processor 800 is responsible for managing the bus architecture and general processing, and the memory 820 may store data used by the processor 800 when performing operations.
[0204] Optionally, when the processor 800 executes the program or instruction, the processor 800 specifically implements the following steps: determining a first calculation factor corresponding to each other participant according to the first secret random number set;
[0205] Determining a second calculation factor corresponding to each other participant based on the second secret random number set;
[0206] The commitment value is obtained according to the order of the first secret random number set, the order of the second secret random number set, the first calculation factor and the second calculation factor.
[0207] Optionally, the processor 800 specifically implements the following steps when executing the program or instruction:
[0208] According to the formula: A = g ai(x) h bi(x) modp, determining the commitment value corresponding to each other party;
[0209] Wherein, A is the commitment value; ai(x) is the first calculation factor generated by the first participant for other participants, bi(x) is the second calculation factor generated by the first participant for other participants, x is the eigenvalue corresponding to the other participants; g is the rank element of the first secret random number set; h is the rank element of the second secret random number set; mod is the modulus operator; p is a large prime number set by the system.
[0210] Optionally, when executing the program or instruction, the processor 800 further implements the following steps:
[0211] The first participant generates a calculation factor for each other participant, wherein the calculation factor includes a first calculation factor and a second calculation factor;
[0212] The first participant encrypts the calculation factor using the public key of other participants to obtain the ciphertext of the calculation factor.
[0213] Optionally, the processor 800 specifically implements the following steps when executing the program or instruction:
[0214] According to the formula: ai(x) = a i0 +a i1 x+a i2 x 2 +…+a it x t , determine the first calculation factor;
[0215] According to the formula: bi(x) = b i0 +b i1 x+b i2 x 2 +…+b it x t , determine the second calculation factor;
[0216] Among them, a i0 to a it is a random number in the first secret random number set, b i0 To b it is a random number in the second secret random number set, x is the characteristic value corresponding to each other participant, n=2t+1, and t is a positive integer.
[0217] A data processing device according to another embodiment of the present invention is applied to a second participant in a data processing system based on secure multi-party computing, wherein the data processing system includes n participants, the second participant is one of the n participants except the first participant, and n is a positive integer.
[0218] like Fig. 9 As shown, it includes a transceiver 910, a processor 900, a memory 920, and a program or instruction stored in the memory 920 and executable on the processor 900; when the processor 900 executes the program or instruction, the following steps are implemented:
[0219] Receiving the ciphertext of the calculation factor and the commitment value sent by the first participant; wherein the calculation factor is generated according to a random number in a secret random number set, and the commitment value is generated according to the calculation factor and an order of the secret random number set;
[0220] Generating a verification result of the commitment value according to the ciphertext of the calculation factor;
[0221] The verification result is broadcasted, so that other participants among the n participants except the first participant can determine whether the first participant is credible according to the verification result.
[0222] The transceiver 910 is used to receive and send data under the control of the processor 900 .
[0223] Among them, Fig. 9 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking together various circuits of one or more processors represented by processor 900 and memory represented by memory 920. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 910 may be a plurality of components, i.e., including a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. The processor 900 is responsible for managing the bus architecture and general processing, and the memory 920 may store data used by the processor 900 when performing operations.
[0224] Optionally, the processor 900 specifically implements the following steps when executing the program or instruction:
[0225] decrypting the ciphertext of the calculation factor according to the private key of the second participant to obtain the calculation factor; the calculation factor includes a first calculation factor and a second calculation factor;
[0226] Obtaining a verification value of the commitment value according to the first calculation factor, the second calculation factor, the order of the first secret random number set, and the order of the second secret random number set;
[0227] If the commitment value is the same as the verification value, a first verification result is generated, wherein the first verification result is used to indicate that the commitment value has passed security authentication;
[0228] If the commitment value is different from the verification value, a second verification result is generated, where the second verification result is used to indicate that the commitment value has not passed security authentication.
[0229] Optionally, the processor 900 specifically implements the following steps when executing the program or instruction:
[0230] According to the formula: B = g ai(x) h bi(x) modp, determining the verification value;
[0231] Among them, B is the verification value; ai(x) is the first calculation factor sent by the first participant, bi(x) is the second calculation factor sent by the first participant, x is the eigenvalue corresponding to the second participant; g is the rank element of the first secret random number set; h is the rank element of the second secret random number set; mod is the modulus operator; p is a large prime number set by the system.
[0232] A data processing device according to another embodiment of the present invention is applied to a third party in a data processing system based on secure multi-party computing, wherein the data processing system includes n parties, the third party is one of the n parties except the first party and the second party, and n is a positive integer.
[0233] like Fig.10 As shown, it includes a transceiver 1010, a processor 1000, a memory 1020, and a program or instruction stored in the memory 1020 and executable on the processor 1000; when the processor 1000 executes the program or instruction, the following steps are implemented:
[0234] Receive the ciphertext of the calculation factor and the commitment value sent by the first participant, and generate a verification result of the commitment value; wherein the calculation factor is generated by the first participant according to a random number in a secret random number set, and the commitment value is generated by the first participant according to the calculation factor and an order of the secret random number set;
[0235] receiving a verification result sent by a second participant, each of the verification results being used to indicate whether the commitment value has passed security authentication; wherein the commitment value is sent by the first participant to the second participant, and the second participant is a participant other than the first participant and the third participant among the n participants;
[0236] Determine whether the first party is trustworthy based on the collected verification results; wherein the collected verification results include the verification results generated by itself and the verification results sent by the other parties.
[0237] The transceiver 1010 is used to receive and send data under the control of the processor 1000 .
[0238] Among them, Fig.10 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking together various circuits of one or more processors represented by processor 1000 and memory represented by memory 1020. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 1010 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. The processor 1000 is responsible for managing the bus architecture and general processing, and the memory 1020 may store data used by the processor 1000 when performing operations.
[0239] Optionally, when the processor 1000 executes the program or instruction, the processor 1000 specifically implements the following steps:
[0240] If at least t of the collected verification results pass the security authentication, the first participant is determined to be a trusted participant; wherein n=2t+1, t is a positive integer;
[0241] If at least t of the collected verification results fail the security authentication, the first participant is determined to be an untrustworthy participant, and the first participant is removed from the n participants.
[0242] A computer-readable storage medium according to an embodiment of the present invention stores a program or instruction thereon, and when the program or instruction is executed by a processor, the steps in the security authentication method described above are implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0243] An embodiment of the present invention provides a computer program product, comprising computer instructions, which implement the steps of the security authentication method described above when executed by a processor.
[0244] It should be further explained that the terminals described in this specification include but are not limited to smart phones, tablet computers, etc., and many of the functional components described are called modules in order to more particularly emphasize the independence of their implementation methods.
[0245] In the embodiment of the present invention, module can be implemented with software so that it can be executed by various types of processors. For example, an executable code module of an identification can include one or more physical or logical blocks of computer instructions, for example, it can be constructed as an object, process or function. Nevertheless, the executable code of the identified module does not need to be physically located together, but can include different instructions stored in different positions, and when these instructions are logically combined together, it constitutes a module and realizes the specified purpose of the module.
[0246] In fact, executable code module can be a single instruction or many instructions, and can even be distributed on a plurality of different code segments, distributed among different programs, and distributed across a plurality of memory devices. Similarly, operating data can be identified in the module, and can be implemented and organized in the data structure of any appropriate type according to any appropriate form. The operating data can be collected as a single data set, or can be distributed in different locations (including on different storage devices), and can only be present on a system or network as an electronic signal at least in part.
[0247] When a module can be implemented by software, considering the level of existing hardware technology, a person skilled in the art can build a corresponding hardware circuit to implement the corresponding function of the module that can be implemented by software without considering the cost. The hardware circuit includes a conventional very large scale integration (VLSI) circuit or gate array and existing semiconductors such as logic chips, transistors, or other discrete components. The module can also be implemented by a programmable hardware device, such as a field programmable gate array, a programmable array logic, a programmable logic device, etc.
[0248] The above exemplary embodiments are described with reference to the accompanying drawings, and many different forms and embodiments are feasible without departing from the spirit and teachings of the present invention. Therefore, the present invention should not be constructed as a limitation of the exemplary embodiments proposed herein. More specifically, these exemplary embodiments are provided so that the present invention will be perfect and complete, and the scope of the present invention will be conveyed to those who are familiar with the technology. In these figures, the component sizes and relative sizes may be exaggerated for clarity. The terms used here are only based on the purpose of describing specific exemplary embodiments and are not intended to be limiting. As used herein, unless the text clearly indicates otherwise, the singular forms "one", "an" and "the" are intended to include these multiple forms. It will be further understood that the terms "including" and / or "comprising" when used in this specification indicate the presence of the features, integers, steps, operations, components and / or components, but do not exclude the presence or increase of one or more other features, integers, steps, operations, components, components and / or their groups. Unless otherwise indicated, when stated, a range of values includes the upper and lower limits of that range and any subranges therebetween.
[0249] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A security authentication method, characterized in that: Applied to a first participant in a data processing system based on secure multi-party computing, the data processing system comprising n participants, the first participant being one of the n participants, and n being a positive integer; The security authentication method comprises: Sending the ciphertext of the calculation factor and the commitment value to other participants among the n participants; wherein the calculation factor corresponding to each of the other participants is generated according to a random number in the secret random number set, and the commitment value corresponding to each of the other participants is generated according to the calculation factor and the order of the secret random number set; Each of the other participants verifies the commitment value according to the ciphertext of the calculation factor, and broadcasts the verification result of the commitment value, so that the other participants can determine whether the first participant is trustworthy according to the verification result.
2. The security authentication method according to claim 1, characterized in that: The step of generating the commitment value according to the calculation factor and the order of the secret random number set comprises: Determining a first calculation factor corresponding to each other participant based on the first secret random number set; Determining a second calculation factor corresponding to each other participant based on the second secret random number set; The commitment value is obtained according to the order of the first secret random number set, the order of the second secret random number set, the first calculation factor and the second calculation factor.
3. The security authentication method according to claim 2, characterized in that: Acquiring the commitment value according to the order of the first secret random number set, the order of the second secret random number set, the first calculation factor, and the second calculation factor, includes: According to the formula: A = g ai(x) h bi(x) modp, determining the commitment value corresponding to each other party; Wherein, A is the commitment value; ai(x) is the first calculation factor generated by the first participant for other participants, bi(x) is the second calculation factor generated by the first participant for other participants, x is the eigenvalue corresponding to the other participants; g is the rank element of the first secret random number set; h is the rank element of the second secret random number set; mod is the modulus operator; p is a large prime number set by the system.
4. The security authentication method according to claim 1, characterized in that: Before the first participant sends the ciphertext of the calculation factor and the commitment value to other participants respectively, the method further includes: The first participant generates a calculation factor for each other participant, wherein the calculation factor includes a first calculation factor and a second calculation factor; The first participant encrypts the calculation factor using the public key of other participants to obtain the ciphertext of the calculation factor.
5. The security authentication method according to claim 4, characterized in that: The first participant generates a calculation factor for each other participant, including: According to the formula: ai(x) = a i0 +a i1 x+a i2 x 2 +…+a it x t , determine the first calculation factor; According to the formula: bi(x) = b i0 +b i1 x+b i2 x 2 +…+b it x t , determine the second calculation factor; Among them, a i0 to a it is a random number in the first secret random number set, b i0 To b it is a random number in the second secret random number set, x is the characteristic value corresponding to each other participant, n=2t+1, and t is a positive integer.
6. A security authentication method, characterized in that: Applied to a second participant in a data processing system based on secure multi-party computing, the data processing system comprising n participants, the second participant being one of the n participants except the first participant, and n being a positive integer; The security authentication method comprises: Receiving the ciphertext of the calculation factor and the commitment value sent by the first participant; wherein the calculation factor is generated according to a random number in a secret random number set, and the commitment value is generated according to the calculation factor and an order of the secret random number set; Generating a verification result of the commitment value according to the ciphertext of the calculation factor; The verification result is broadcasted, so that other participants among the n participants except the first participant can determine whether the first participant is credible according to the verification result.
7. The security authentication method according to claim 6, characterized in that: The step of generating a verification result of the commitment value according to the ciphertext of the calculation factor includes: decrypting the ciphertext of the calculation factor according to the private key of the second participant to obtain the calculation factor; the calculation factor includes a first calculation factor and a second calculation factor; Obtaining a verification value of the commitment value according to the first calculation factor, the second calculation factor, the order of the first secret random number set, and the order of the second secret random number set; If the commitment value is the same as the verification value, a first verification result is generated, wherein the first verification result is used to indicate that the commitment value has passed security authentication; If the commitment value is different from the verification value, a second verification result is generated, where the second verification result is used to indicate that the commitment value has not passed security authentication.
8. The security authentication method according to claim 7, characterized in that: The obtaining of the verification value according to the first calculation factor, the second calculation factor, the order of the first secret random number set, and the order of the second secret random number set includes: According to the formula: B = g ai(x) h bi(x) modp, determining the verification value; Among them, B is the verification value; ai(x) is the first calculation factor sent by the first participant, bi(x) is the second calculation factor sent by the first participant, x is the eigenvalue corresponding to the second participant; g is the rank element of the first secret random number set; h is the rank element of the second secret random number set; mod is the modulus operator; p is a large prime number set by the system.
9. A security authentication method, characterized in that: Applied to a third party in a data processing system based on secure multi-party computing, the data processing system comprising n parties, the third party being one of the n parties other than the first party and the second party, where n is a positive integer; The security authentication method comprises: Receive the ciphertext of the calculation factor and the commitment value sent by the first participant, and generate a verification result of the commitment value; wherein the calculation factor is generated by the first participant according to a random number in a secret random number set, and the commitment value is generated by the first participant according to the calculation factor and an order of the secret random number set; receiving a verification result sent by a second participant, each of the verification results being used to indicate whether the commitment value has passed security authentication; wherein the commitment value is sent by the first participant to the second participant, and the second participant is a participant other than the first participant and the third participant among the n participants; Determine whether the first party is trustworthy based on the collected verification results; wherein the collected verification results include the verification results generated by itself and the verification results sent by the other parties.
10. The security authentication method according to claim 9, characterized in that: The determining, based on the n verification results, whether the first party is credible includes: If at least t of the collected verification results pass the security authentication, the first participant is determined to be a trusted participant; wherein n=2t+1, t is a positive integer; If at least t of the collected verification results fail the security authentication, the first participant is determined to be an untrustworthy participant, and the first participant is removed from the n participants.
11. A data processing system based on secure multi-party computing, characterized in that: The data processing system includes n participants, including: A first party among the n parties is configured to send a ciphertext of a calculation factor and a commitment value to other parties among the n parties, wherein the commitment value is generated according to the calculation factor and an order of a set of secret random numbers; The other parties among the n parties are used to verify the commitment value according to the ciphertext of the calculation factor, and broadcast the verification result of the commitment value, so that the other parties among the n parties except the first party can determine whether the first party is trustworthy according to the verification result.
12. A data processing device comprising: A transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the processor implements the steps of the security authentication method as described in any one of claims 1 to 5, or implements the steps of the security authentication method as described in any one of claims 6 to 8, or implements the steps of the security authentication method as described in any one of claims 9 to 10.
13. A security authentication device, characterized in that: Applied to a first participant in a data processing system based on secure multi-party computing, the data processing system comprising n participants, the first participant being any one of the n participants, and n being a positive integer; The safety authentication device comprises: A first sending module is used to send the ciphertext of the calculation factor and the commitment value to other participants among the n participants; wherein the calculation factor corresponding to each of the other participants is generated according to a random number in a secret random number set, and the commitment value corresponding to each of the other participants is generated according to the calculation factor and an order of the secret random number set; Each of the other participants verifies the commitment value according to the ciphertext of the calculation factor, and broadcasts the verification result of the commitment value, so that the other participants can determine whether the first participant is trustworthy according to the verification result.
14. A security authentication device, characterized in that: Applied to a second participant in a data processing system based on secure multi-party computing, the data processing system comprising n participants, the second participant being any one of the n participants except the first participant, and n being a positive integer; The safety authentication device comprises: A first receiving module, configured to receive a ciphertext of a calculation factor and a commitment value sent by the first participant; wherein the calculation factor is generated according to a random number in a secret random number set, and the commitment value is generated according to the calculation factor and an order of the secret random number set; A first processing module, configured to generate a verification result of the commitment value according to the ciphertext of the calculation factor; The second sending module is used to broadcast the verification result, so that other participants among the n participants except the first participant can determine whether the first participant is credible according to the verification result.
15. A security authentication device, characterized in that: Applied to a third party in a data processing system based on secure multi-party computing, the data processing system includes n parties, the third party is any one of the n parties except the first party, and n is a positive integer; The safety authentication device comprises: A second receiving module is used to receive the ciphertext of the calculation factor and the commitment value sent by the first participant, and generate a verification result of the commitment value; wherein the calculation factor is generated by the first participant according to a random number in a secret random number set, and the commitment value is generated by the first participant according to the calculation factor and an order of the secret random number set; A third receiving module is used to receive n-2 verification results sent by n-2 second participants, each of which is used to indicate whether the commitment value has passed the security authentication; wherein the commitment value is sent by the first participant to the second participant, and the second participant is the other participant among the n participants except the first participant and the third participant; A security authentication module is used to determine whether the first participant is trustworthy based on n-1 verification results; wherein the n-1 verification results include the verification results generated by itself and n-2 verification results sent by the other participants.
16. A readable storage medium having a program or instruction stored thereon, characterized in that: When the program or instruction is executed by the processor, it implements the steps of the security authentication method as described in any one of claims 1 to 5, or implements the steps of the security authentication method as described in any one of claims 6 to 8, or implements the steps of the security authentication method as described in any one of claims 9 to 10.
17. A computer program product, characterized in that It includes computer instructions, which, when executed by a processor, implement the steps of the security authentication method as described in any one of claims 1 to 5, or implement the steps of the security authentication method as described in any one of claims 6 to 8, or implement the steps of the security authentication method as described in any one of claims 9 to 10.
