Calculation method and system for collaborative digital signature combined with ECDH protocol

By introducing the ECDH protocol into collaborative digital signatures and using the change factor shared by both parties to update the sub-private key, the problem of vulnerability to attacks under client resource constraints is solved, security is improved, and calculation and communication volume are reduced.

CN115459931BActive Publication Date: 2024-10-29BEIJING RES INST UNIV OF SCI & TECH OF CHINA +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211123658.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-15
Publication Date
2024-10-29
Estimated Expiration
2042-09-15

AI Technical Summary

Technical Problem

Existing collaborative digital signature technology is vulnerable to attacks due to client resource constraints. An attacker can perform any number of digital signature operations after stealing the sub-private key, resulting in insufficient security.

Method used

Using the ECDH protocol, the communicating parties determine the change factor shared by both parties by sending and receiving data back and forth, and use the change factor and the sub-private key at the previous moment to update the current sub-private key, thereby calculating the intermediate and final signature results, ensuring that the attacker It is impossible to grasp the changes of the sub-private key.

Benefits of technology

The security of collaborative digital signatures is improved, preventing attackers from stealing sub-private keys for forgery operations, and reducing the amount of computation and communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115459931B_ABST
    Figure CN115459931B_ABST
Patent Text Reader

Abstract

The present invention discloses a calculation method and system of a collaborative digital signature combined with an ECDH protocol. The communicating parties use the ECDH protocol to send / receive data back and forth, so that the communicating parties can obtain a secret W shared by both parties, and the secret W can be used as a variation factor, so that an attacker cannot obtain the variation factor by monitoring data from a network. Therefore, even if an attacker steals a certain sub-private key, the attacker cannot grasp the variation of the sub-private key. In addition, the ECDH protocol is closely combined with the collaborative digital signature, which can not only ensure that the attacker cannot obtain the variation factor by monitoring data from a network, but also effectively reduce the amount of calculation and the amount of communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cryptography, and in particular to a calculation method and system for collaborative digital signatures combined with an ECDH protocol. Background Art

[0002] With the development of cryptography technology, digital signature technology based on public key cryptography has become an important tool to ensure information security in the fields of e-commerce and identity authentication.

[0003] The private key can be split into multiple sub-private keys and stored in independent devices of multiple parties. In each digital signature operation, multiple parties need to collaborate and multiple sub-private keys participate in the calculation. In addition, in the above-mentioned collaborative digital signature calculation process, each party cannot obtain the information of the sub-private keys of other parties, nor can it obtain the information of the private key as a whole. The most common situation is the collaborative digital signature calculation of two parties, in which the client and the server each master their own sub-private keys and cooperate to complete the digital signature calculation. The digital signature algorithm of the Chinese cryptographic industry standard SM2 elliptic curve public key cryptography algorithm also has a two-party collaborative digital signature calculation method.

[0004] However, due to the resource and cost constraints of the client, it is difficult to use dedicated cryptographic hardware devices to protect the sub-private key. Therefore, attackers can steal the client's sub-private key through software vulnerabilities, network attacks, data duplication, etc. Once the attacker steals the client's sub-private key, he can impersonate the client, perform collaborative calculations with the server, and complete digital signature operations. In this case, the attacker can perform collaborative calculations with the server at any time and complete any number of digital signature operations.

[0005] In view of this, it is necessary to develop new technical solutions to improve security so that attackers cannot grasp the changes in sub-private keys and further improve the security of collaborative digital signature calculation methods. Summary of the invention

[0006] The purpose of the present invention is to provide a calculation method and system for collaborative digital signatures combined with the ECDH protocol, so that attackers cannot obtain change factors from monitored data, nor can they grasp the changes in sub-private keys, thereby improving the security of the collaborative digital signature scheme.

[0007] The objective of the present invention is achieved through the following technical solutions:

[0008] A collaborative digital signature calculation method combined with an ECDH protocol, comprising:

[0009] The first communication party generates the first ECDH message and sends it to the second communication party;

[0010] The second communication party is responsible for generating the second message of ECDH and calculating the intermediate signature result, and sending the generated second message of ECDH and the calculated intermediate signature result to the first communication party; wherein, the second communication party generates the second message of ECDH in combination with the first message, or uses the intermediate information generated by the calculation of the intermediate signature result as the second message of ECDH; the second communication party determines the change factor shared by the two communication parties in combination with the first message and the second message, determines its own current sub-private key by using the change factor shared by the two communication parties and its own sub-private key at the previous moment, and then calculates the intermediate signature result in combination with its own current sub-private key;

[0011] The first communicating party determines the change factor shared by the communicating parties in combination with the first message and the second message, determines its own current sub-private key using the change factor shared by the communicating parties and its own sub-private key at the previous moment, and calculates the final signature result in combination with the intermediate signature result.

[0012] A computing system for collaborative digital signature in combination with ECDH protocol, comprising: a first communication party and a second communication party; wherein:

[0013] The first communication party generates the first ECDH message and sends it to the second communication party;

[0014] The second communication party is responsible for generating the second message of ECDH and calculating the intermediate signature result, and sending the generated second message of ECDH and the calculated intermediate signature result to the first communication party; wherein, the second communication party generates the second message of ECDH in combination with the first message, or uses the intermediate information generated by the calculation of the intermediate signature result as the second message of ECDH; the second communication party determines the change factor shared by the two communication parties in combination with the first message and the second message, determines its own current sub-private key by using the change factor shared by the two communication parties and its own sub-private key at the previous moment, and then calculates the intermediate signature result in combination with its own current sub-private key;

[0015] The first communicating party determines the change factor shared by the communicating parties in combination with the first message and the second message, determines its own current sub-private key using the change factor shared by the communicating parties and its own sub-private key at the previous moment, and calculates the final signature result in combination with the intermediate signature result.

[0016] It can be seen from the technical solution provided by the present invention that the communicating parties of the collaborative digital signature calculation use the ECDH protocol to send / receive data back and forth, so that the communicating parties can obtain the secret W shared by both parties and can use it as a variation factor, so that an attacker cannot obtain the variation factor by eavesdropping on data from the network. Therefore, even if an attacker steals a sub-private key at a certain time, he cannot grasp the change of the sub-private key; in addition, the close combination of the ECDH protocol and the collaborative digital signature can not only ensure that the attacker cannot obtain the variation factor by eavesdropping on data from the network, but also effectively reduce the amount of calculation and communication (compared to a simple superposition combination). BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0018] Figure 1 A flowchart of a method for calculating a collaborative digital signature in combination with the ECDH protocol provided in an embodiment of the present invention;

[0019] Figure 2 A schematic diagram of a computing system for collaborative digital signatures combined with the ECDH protocol provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0020] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of the present invention.

[0021] First, the terms that may be used in this article are explained as follows:

[0022] The terms "include", "comprises", "contains", "has" or other descriptions with similar semantics should be interpreted as non-exclusive inclusion. For example, including certain technical feature elements (such as raw materials, components, ingredients, carriers, dosage forms, materials, dimensions, parts, components, mechanisms, devices, steps, procedures, methods, reaction conditions, processing conditions, parameters, algorithms, signals, data, products or products, etc.) should be interpreted as including not only certain technical feature elements explicitly listed, but also other technical feature elements known in the art that are not explicitly listed.

[0023] The following is a detailed description of a method and system for calculating a collaborative digital signature in combination with the ECDH protocol provided by the present invention. The contents not described in detail in the embodiments of the present invention belong to the prior art known to professionals and technicians in the field. If the specific conditions are not specified in the embodiments of the present invention, the conditions are carried out according to the conventional conditions in the field or the conditions recommended by the manufacturer. If the manufacturer is not specified in the reagents or instruments used in the embodiments of the present invention, they are all conventional products that can be purchased commercially.

[0024] Embodiment 1

[0025] The embodiment of the present invention provides a method for calculating a collaborative digital signature in combination with the ECDH protocol, such as Figure 1 As shown, it mainly includes the following steps:

[0026] Step 1: The first communication party generates the first ECDH message and sends it to the second communication party.

[0027] In an embodiment of the present invention, a first communication party and a second communication party are included, and the types of the two communication parties include: server and client, and the types of the two communication parties are different in the same computing process, that is, when the first communication party is a server, the second communication party is a client; when the first communication party is a client, the second communication party is a server.

[0028] In the embodiment of the present invention, ECDH refers to the security scheme of elliptic curve DH (Diffie-Hellman key exchange), and the communicating parties use ECDH to send / receive data back and forth, thereby obtaining a secret shared by both parties.

[0029] In the embodiment of the present invention, the first communication party generates the first ECDH message including the following situations:

[0030] Case 1: The first communication party generates the first ECDH message: Q1 = [k3] G;

[0031] The second case: The first communication party generates the first ECDH message: Q1 = [k1] P2, P2 = [D2' -1 ]G;

[0032] The third case: the first communication party generates the first ECDH message: Q1 = [k3] (G + P);

[0033] Where: G represents the base point of the elliptic curve, k3 represents the first random number generated by the first communication party, k3∈(1,n-1), n ​​represents the order of the elliptic curve, k1 represents the second random number generated by the first communication party, k1∈(1,n-1), P represents the public key; [k3]G represents the k3-times point operation of the base point G of the elliptic curve, [k1]P2 represents the k1-times point operation of P2, P2 is D2' of the base point G of the elliptic curve -1The result of the doubling operation, D2' represents the sub-private key of the second communication party at the last moment, D2' -1 It represents the inverse element of D2' modulo n, [k3](G+P) represents the k3-fold point operation of (G+P), and the subsequent similar formulas also express similar meanings, so they are not elaborated here.

[0034] Step 2: The second communication party is responsible for generating the second ECDH message and calculating the intermediate signature result, and sending the generated second ECDH message and the calculated intermediate signature result to the first communication party.

[0035] In the embodiment of the present invention, the second communication party can generate the second message of ECDH in combination with the first message; of course, the intermediate information generated by the calculation of the intermediate signature result can also be used as the second message of ECDH, so that the ECDH protocol and the collaborative digital signature can be closely combined. At the same time, the second communication party determines the change factor W shared by the two communication parties in combination with the first message and the second message, so that the attacker cannot obtain the change factor W even if he monitors all the data in the network.

[0036] In contrast to the three situations provided above, the second communication party generates the second ECDH message and the change factor W shared by both communication parties is as follows:

[0037] (1) The first case: The second communication party generates the second ECDH message Q2=[k4]Q1 in combination with the first message, or uses the intermediate information [k5]G generated by the calculation of the intermediate signature as the second ECDH message, and the change factor shared by the two communication parties is W=[k3*k4]G, or W=[k3*k5]G; wherein k4 represents the first random number generated by the second communication party, k4∈(1,n-1), and k5 represents the second random number generated by the second communication party, k5∈(1,n-1).

[0038] (2) The second case: The second communication party uses the intermediate information [k2]G generated by the calculation of the intermediate signature as the second message of ECDH. The change factor shared by both communication parties is W = [k1*k2*D2 -1 ]G, k2 represents the third random number generated by the second communicating party.

[0039] (3) The third case: the second communication party uses the intermediate information [k5](G+P) generated by the calculation of the intermediate signature as the second message of ECDH, and the change factor shared by the two communication parties is W=[k3*k5](G+P).

[0040] In the embodiment of the present invention, the communicating parties use the shared change factor to transform their respective sub-private keys at the previous moment to obtain the current sub-private key: the first communicating party uses the change factor shared by the communicating parties and its own sub-private key D1' at the previous moment to determine its own current sub-private key D1, and then calculates the intermediate signature result in combination with its own current sub-private key; the second communicating party uses the change factor shared by the communicating parties and its own sub-private key D2' at the previous moment to determine its own current sub-private key D2. After transforming their respective current sub-private keys, the communicating parties still keep the overall private key corresponding to the sub-private key unchanged. For example, when the sub-private keys are combined in a multiplication manner, that is, the overall private key D = D1*D2 mod n, D1 = D1'*W mod n, D2 = D2'*W -1 mod n; where W is the change factor shared by both communicating parties, W -1 It represents the inverse element of the change factor W modulo n shared by both communicating parties, where mod n represents the modulo n operation. When the sub-private keys are combined in an additive manner, that is, the overall private key D=D1+D2 mod n, D1=D1'+W mod n, D2=D2'-W mod n.

[0041] Comparing the three situations provided above, the second communication party calculates the intermediate signature result as follows:

[0042] (1) For the first case, the second communication party uses any of the following calculation methods:

[0043] (A1) The first calculation method:

[0044] Q2=[k4]Q1

[0045] (x,y)=[k5]G+Q2

[0046] r=(e+x)mod n

[0047] S'=D2*(r+k5)mod n

[0048] S"=D2*k4 modn

[0049] Wherein, (x, y) represents the coordinates of the point on the elliptic curve. The main purpose of calculating (x, y) is to use the x coordinate to substitute into the following formula to calculate r, where r represents the first component of the final signature result, S' and S" are used together as the intermediate signature result, D2 represents the current sub-private key of the second communication party, and mod n represents the modulo n operation; e is the hash value, which is expressed as: e = Hash(M), M = Z||M, Hash(.) represents the hash function, || represents the concatenation of bit strings or byte strings, Z represents the hash value of the identity identifiers of the first communication party and the second communication party based on the elliptic curve public key cryptography algorithm standard, and M represents the current information to be signed; when using the first calculation method, Q2 is used as the second message of ECDH, or the intermediate information [k5]G generated by the calculation of the intermediate signature result is used as the second message of ECDH.

[0050] (A2) The second calculation method:

[0051] Q2=[D2 -1 ]Q1

[0052] (x,y)=[k5]G+Q2

[0053] r=(e+x)mod n

[0054] S'=D2*(r+k5)mod n

[0055] Where Q2 is D2 of Q1 -1 The result of doubling the point operation, D2 -1 It represents the inverse element of the current sub-private key D2 modulo n of the second communication party, and S' is the intermediate signature result. When the second calculation method is used, the intermediate information [k5]G generated by calculating the intermediate signature result is used as the second message of ECDH.

[0056] (2) For the second case, the second communication party uses the following calculation method:

[0057] Q2=[k2]G

[0058] (x,y)=Q1+Q2

[0059] r=(e+x)mod n

[0060] S'=D2*(r+k2)mod n

[0061] Among them, (x, y) represents the coordinates of the point of the elliptic curve, r represents the first component of the final signature result, S' is the intermediate signature result, D2 represents the current sub-private key of the second communication party, mod n represents the modulo n operation; e is the hash value, expressed as: e=Hash(M), M=Z||M, Hash(.) represents the hash function, || represents the concatenation of bit strings or byte strings, Z represents the hash value of the identity identifiers of the first communication party and the second communication party based on the elliptic curve public key cryptography algorithm standard, and M represents the current information to be signed.

[0062] (3) For the third case, the second communication party uses the following calculation method:

[0063] (x,y)=[k5](G+P)+Q1

[0064] r=(e+x)mod n

[0065] S'=k5+r*D2 mod n

[0066] Among them, (x, y) represents the coordinates of the point of the elliptic curve, r represents the first component of the final signature result, S' is the intermediate signature result, D2 represents the current sub-private key of the second communication party, mod n represents the modulo n operation; e is the hash value, expressed as: e=Hash(M), M=Z||M, Hash(.) represents the hash function, || represents the concatenation of bit strings or byte strings, Z represents the hash value of the identity identifiers of the first communication party and the second communication party based on the elliptic curve public key cryptography algorithm standard, and M represents the current information to be signed.

[0067] Step 3: The first communicating party determines the change factor shared by both communicating parties by combining the first message and the second message, determines its own current sub-private key by using the change factor shared by both communicating parties, and calculates the final signature result by combining the intermediate signature result.

[0068] Comparing the three situations provided above, the way the first communication party calculates the final signature result in each situation is as follows:

[0069] (1) For the first case:

[0070] When the first calculation method is used, the first communication party calculates:

[0071] S=D1*S'+D1*k3*S”–r mod n

[0072] When the second calculation method is used, the first communication party calculates:

[0073] S=D1*(k3+S')-r mod n

[0074] Among them, D1 represents the current sub-private key of the first communication party itself, S represents the first component of the final signature result, and the final signature result is (r, S).

[0075] (2) For the second case, the process of the first communication party calculating the final signature result is expressed as:

[0076] S=D1*(k1+S')-r mod n

[0077] Among them, D1 represents the current sub-private key of the first communication party itself, S represents the first component of the final signature result, and the final signature result is (r, S).

[0078] (3) For the third case, the process of the first communication party calculating the final signature result is expressed as:

[0079] S=k3+r*D1+S'-r mod n

[0080] Among them, D1 represents the current sub-private key of the first communication party itself, S represents the first component of the final signature result, and the final signature result is (r, S).

[0081] For ease of understanding, the calculation process in each case provided above is introduced below in combination with the principle.

[0082] 1. Principle introduction.

[0083] The SM2 algorithm obtains the signature result (r, S), where r and S are two components of the signature result. The calculation formula can be expressed as:

[0084] r=Hash(m)+x([k]G)

[0085] S=(1+d) -1 (k+r)-r=D(k+r)-r

[0086] Among them, Hash(.) represents the hash function, m is the information obtained by concatenating the hash value Z with the current information to be signed M, and x([k]G) represents the x coordinate of [k]G. From the above two formulas, we can see that the signature result depends on D and k, D=(1+d) -1 mod n, that is, D represents the inverse element of the overall private key (d+1) mod n.

[0087] 2. Collaborative digital signature process combined with ECDH protocol.

[0088] The previous article provides three situations, and the first situation includes two methods, so it is divided into four solutions for introduction.

[0089] 1. The first solution (the first method in the first case provided above).

[0090] Overall private key (d+1) -1 =D1*D2 mod n, the sub-private key combined by multiplication, the process is as follows:

[0091] (1)Q1=[k3]G.

[0092] (2) Q2=[k4]Q1, (x,y)=[k5]G+Q2, r=(e+x)mod n; S'=D2*(r+k5)mod n and S”=D2*k4 mod n.

[0093] (3)S=D1*S′+D1*k3*S”–r mod n.

[0094] In the above process, steps (1) and (3) are performed by the first communication party, and step (2) is performed by the second communication party. This is the case for all subsequent solutions, so they will not be described in detail.

[0095] After the ECDH protocol is introduced, Q1 is used as the first message of ECDH, and Q2 or [k5]G is sent additionally as the second message of ECDH; the communicating parties obtain the change factor [k3*k4]G (or [k3*k5]G), and then multiply and divide the sub-private keys D1' and D2' at the previous moment by the change factor to obtain the current sub-private keys D1 and D2.

[0096] This scheme is equivalent to k=k3*k4+k5, S=D1*D2(r+k5)+D1*D2*k3*k4–r=D1*D2(k3*k4+k5-r)–r, and the calculation scheme is established.

[0097] 2. The second solution (the second method under the first situation provided above).

[0098] Overall private key (d+1) -1 =D1*D2 mod n, the process is as follows:

[0099] (1)Q1=[k3]G.

[0100] (2)Q2=[D2 -1 ]Q1, (x, y)=[k5]G+Q2, r=(e+x)mod n; S'=D2*(r+k5)mod n.

[0101] (3) S = D1*(k3+S')-r mod n.

[0102] After the ECDH protocol is introduced, Q1 is used as the first message of ECDH, and [k5]G is sent additionally as the second message of ECDH; the communicating parties obtain the change factor [k3*k5]G, and then multiply and divide the sub-private keys D1' and D2' at the previous moment by the change factor to obtain the current sub-private keys D1 and D2.

[0103] This solution is equivalent to k = k3*D2 -1 +k5; equivalent to replacing k4 of the first solution with D2 -1 Instead, S = D1*(k3+D2*r+D2*k5)-r=D1*D2(k3*D2 -1 +r+k5)–r, the calculation scheme is established.

[0104] 3. The third option (the second situation provided above).

[0105] Overall private key (d+1) -1 =D1*D2 mod n, and P2 = [D2' -1 ]G, that is, P2 is the base point G of the elliptic curve D2' -1 The result of doubling the point operation is as follows:

[0106] (1)Q1=[k1]P2.

[0107] (2) Q2=[k2]G, (x, y)=Q1+Q2, r=(e+x)mod n; S'=D2*(r+k2)mod n.

[0108] (3) S = D1*(k1+S')-r mod n.

[0109] After the ECDH protocol is introduced, Q1 is used as the first message of ECDH, and [k2]G is sent as the second message of ECDH. The communication parties obtain the change factor [k1*k2*D2 -1 ]G, and then multiply and divide the sub-private keys D1' and D2' of the previous moment by the change factors to obtain the current sub-private keys D1 and D2.

[0110] This solution is equivalent to k=k1*D2 -1 +k2; Same as the second solution, but the order of operations is reversed, S = D1*(k1+D2*r+D2*k2)-r = D1*D2*(k1*D2 -1 +k2+r)–r mod n, the calculation scheme is valid.

[0111] 4. The fourth option (the third situation provided above).

[0112] Overall private key (d+1) -1=D1+D2 mod n, the process is as follows:

[0113] (1)Q1=[k3](G+P).

[0114] (2) (x, y) = [k5] (G + P) + Q1, r = (e + x) mod n; S' = k5 + r*D2 mod n.

[0115] (3)S=k3+r*D1+S'-r mod n.

[0116] After the ECDH protocol is introduced, Q1 is used as the first message of ECDH, and [k5](G+P) is additionally sent as the second message of ECDH; both parties obtain the change factor [k3*k5](G+P), and then add or subtract the change factor from the previous sub-private keys D1' and D2' to obtain the current sub-private keys D1 and D2.

[0117] This scheme is equivalent to k=(k3+k5)*(d+1), S=k3+r*D1+S'-r=k3+r*D1+k5+r*D2-r=r*(D1+D2)+(k3+k5)–r, and the calculation scheme is established.

[0118] Embodiment 2

[0119] The embodiment of the present invention provides a computing system for collaborative digital signatures in combination with the ECDH protocol, which is implemented based on the method provided in the above-mentioned embodiment 1, such as Figure 2 As shown, the system mainly includes a first communication party and a second communication party; wherein:

[0120] The first communication party generates the first ECDH message and sends it to the second communication party;

[0121] The second communication party is responsible for generating the second message of ECDH and calculating the intermediate signature result, and sending the generated second message of ECDH and the calculated intermediate signature result to the first communication party; wherein, the second communication party generates the second message of ECDH in combination with the first message, or uses the intermediate information generated by the calculation of the intermediate signature result as the second message of ECDH; the second communication party determines the change factor shared by the two communication parties in combination with the first message and the second message, determines its own current sub-private key by using the change factor shared by the two communication parties and its own sub-private key at the previous moment, and then calculates the intermediate signature result in combination with its own current sub-private key;

[0122] The first communicating party determines the change factor shared by the communicating parties in combination with the first message and the second message, determines its own current sub-private key using the change factor shared by the communicating parties and its own sub-private key at the previous moment, and calculates the final signature result in combination with the intermediate signature result.

[0123] The workflow of the two communicating parties involved here has been introduced in detail in the previous embodiments, so it will not be repeated here.

[0124] Technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the system can be divided into different functional modules to complete all or part of the functions described above.

[0125] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for calculating collaborative digital signatures in combination with the ECDH protocol. It is characterized in that include: The first communication party generates the first ECDH message and sends it to the second communication party; The second communication party is responsible for generating the second message of ECDH and calculating the intermediate signature result, and sending the generated second message of ECDH and the calculated intermediate signature result to the first communication party; wherein, the second communication party generates the second message of ECDH in combination with the first message, or uses the intermediate information generated by the calculation of the intermediate signature result as the second message of ECDH; the second communication party determines the change factor shared by the two communication parties in combination with the first message and the second message, determines its own current sub-private key by using the change factor shared by the two communication parties and its own sub-private key at the previous moment, and then calculates the intermediate signature result in combination with its own current sub-private key; The first communication party determines the change factor shared by both communication parties by combining the first message and the second message, determines its own current sub-private key by using the change factor shared by both communication parties and its own sub-private key at the previous moment, and calculates the final signature result by combining the intermediate signature result; The first communication party generates a first ECDH message, the second communication party generates a second ECDH message, and the change factor shared by the two communication parties includes any of the following situations: The first case: the first communication party generates the first ECDH message: Q1 = [k3] G, the second communication party generates the second ECDH message: Q2 = [k4] Q1 based on the first message, or uses the intermediate information [k5] G generated by the calculation of the intermediate signature as the second ECDH message, and the change factor shared by the two communication parties is W = [k3*k4] G, or W = [k3*k5] G; wherein G represents the base point of the elliptic curve, k3 represents the first random number generated by the first communication party, k3∈(1,n-1), k4 represents the first random number generated by the second communication party, k4∈(1,n-1), k5 represents the second random number generated by the second communication party, k5∈(1,n-1), and n represents the order of the elliptic curve; The second case: The first communication party generates the first ECDH message: Q1 = [k1] P2, P2 = [D2' -1 ]G, the second communication party uses the intermediate information [k2]G generated by the calculation of the intermediate signature as the second message of ECDH, and the change factor shared by the two communication parties is W = [k1*k2*D2 -1 ]G, where P2 is the base point D2' of the elliptic curve G -1 The result of the doubling operation, D2' represents the sub-private key of the second communication party at the last moment, D2' -1 represents the inverse element of D2' modulo n, k1 represents the second random number generated by the first communication party, k1∈(1,n-1), k2 represents the third random number generated by the second communication party, k2∈(1,n-1); The third case: The first communication party generates the first ECDH message as: Q1 = [k3] (G + P), and the second communication party uses the intermediate information [k5] (G + P) generated by the calculation of the intermediate signature result as the second ECDH message. The change factor shared by the two communication parties is W = [k3*k5] (G + P), where P represents the public key; The method in which the second communication party calculates the intermediate signature result includes: For the first case, the second communication party uses any of the following calculation methods: The first calculation method: Q2=[k4]Q1 (x,y)=[k5]G+Q2 r=(e+x)mod n S'=D2*(r+k5)mod n S"=D2*k4 modn Wherein, (x, y) represents the coordinates of the point of the elliptic curve, r represents the first component of the final signature result, S' and S" are used together as the intermediate signature result, D2 represents the current sub-private key of the second communication party, mod n represents the modulo n operation; e is the hash value, which is expressed as: e = Hash(m), m = Z||M, Hash(.) represents the hash function, || represents the concatenation of bit strings or byte strings, Z represents the hash value of the identity identifiers of the first communication party and the second communication party based on the elliptic curve public key cryptography algorithm standard, and M represents the current information to be signed; when using the first calculation method, Q2 is used as the second message of ECDH, or the intermediate information [k5]G generated by the calculation of the intermediate signature result is used as the second message of ECDH; The second calculation method: <h2 style=";text-align:left;direction:ltr">Q2=[D2<h2 style=";text-align:left;direction:ltr"> -1 <h2 style=";text-align:left;direction:ltr"> ]Q1 (x,y)=[k5]G+Q2 r=(e+x)mod n S'=D2*(r+k5)mod n Among them, S' is the intermediate signature result; when using the second calculation method, the intermediate information [k5]G generated by calculating the intermediate signature result is used as the second message of ECDH; The first communication party calculates the final signature result in the following ways: When the first calculation method is used, the first communication party calculates: S=D1*S'+D1*k3*S”–r mod n When the second calculation method is used, the first communication party calculates: S=D1*(k3+S')-r mod n Among them, D1 represents the current sub-private key of the first communication party itself, S represents the first component of the final signature result, and the final signature result is (r, S).

2. According to claim 1, a method for calculating a collaborative digital signature in combination with the ECDH protocol, It is characterized in that The method in which the second communication party calculates the intermediate signature result includes: For the second case, the second communication party uses the following calculation method: Q2=[k2]G (x,y)=Q1+Q2 r=(e+x)mod n S'=D2*(r+k2)mod n Among them, (x, y) represents the coordinates of the point of the elliptic curve, r represents the first component of the final signature result, S' is the intermediate signature result, D2 represents the current sub-private key of the second communication party itself, mod n represents the modulo n operation; e is the hash value, expressed as: e=Hash(m), m=Z||M, Hash(.) represents the hash function, || represents the concatenation of bit strings or byte strings, Z represents the hash value of the identity identifiers of the first communication party and the second communication party based on the elliptic curve public key cryptography algorithm standard, and M represents the current information to be signed.

3. According to claim 2, a method for calculating a collaborative digital signature in combination with the ECDH protocol, It is characterized in that The process of the first communication party calculating the final signature result is expressed as: S=D1*(k1+S2)-r mod n Among them, D1 represents the current sub-private key of the first communication party itself, S represents the first component of the final signature result, and the final signature result is (r, S).

4. The method for calculating a collaborative digital signature in combination with the ECDH protocol according to claim 1, It is characterized in that The method in which the second communication party calculates the intermediate signature result includes: For the third case, the second communication party uses the following calculation method: (x,y)=[k5](G+P)+Q1 r=(e+x)mod n S'=k5+r*D2 mod n Among them, (x, y) represents the coordinates of the point of the elliptic curve, r represents the first component of the final signature result, S' is the intermediate signature result, D2 represents the current sub-private key of the second communication party itself, mod n represents the modulo n operation; e is the hash value, expressed as: e=Hash(m), m=Z||M, Hash(.) represents the hash function, || represents the concatenation of bit strings or byte strings, Z represents the hash value of the identity identifiers of the first communication party and the second communication party based on the elliptic curve public key cryptography algorithm standard, and M represents the current information to be signed.

5. According to claim 4, a method for calculating a collaborative digital signature in combination with the ECDH protocol, It is characterized in that The process of the first communication party calculating the final signature result is expressed as: S=k3+r*D1+S'-r mod n Among them, D1 represents the current sub-private key of the first communication party itself, S represents the first component of the final signature result, and the final signature result is (r, S).

6. A method for calculating a collaborative digital signature in combination with the ECDH protocol according to any one of claims 1 to 5, It is characterized in that Methods of determining one's own current sub-private key by using the change factor shared by the communicating parties and one's own sub-private key at a previous moment include: When the sub-private keys are combined in a multiplicative manner, that is, the overall private key D = D1*D2 mod n, D1 = D1'*W mod n, D2 = D2'*W -1 mod n; where D1 is the current sub-private key of the first communication party, D1' is the sub-private key of the first communication party at the previous moment, D2 is the current sub-private key of the second communication party, D2' is the sub-private key of the second communication party at the previous moment, and W is the change factor shared by both communication parties, W -1 It represents the inverse element of the change factor W modulo n shared by both communicating parties, where mod n represents the modulo n operation. When the sub-private keys are combined in an additive manner, that is, the overall private key D=D1+D2 mod n, D1=D1'+W mod n, D2=D2'-W mod n.

7. A computing system for collaborative digital signatures combined with the ECDH protocol, It is characterized in that The method according to any one of claims 1 to 6 is implemented, and the system comprises: a first communication party and a second communication party; wherein: The first communication party generates the first ECDH message and sends it to the second communication party; The second communication party is responsible for generating the second message of ECDH and calculating the intermediate signature result, and sending the generated second message of ECDH and the calculated intermediate signature result to the first communication party; wherein, the second communication party generates the second message of ECDH in combination with the first message, or uses the intermediate information generated by the calculation of the intermediate signature result as the second message of ECDH; the second communication party determines the change factor shared by the two communication parties in combination with the first message and the second message, determines its own current sub-private key by using the change factor shared by the two communication parties and its own sub-private key at the previous moment, and then calculates the intermediate signature result in combination with its own current sub-private key; The first communicating party determines the change factor shared by the communicating parties in combination with the first message and the second message, determines its own current sub-private key using the change factor shared by the communicating parties and its own sub-private key at the previous moment, and calculates the final signature result in combination with the intermediate signature result.

Citation Information

Patent Citations

  • Collaborative signature method, device and system based on SM2 algorithm, and medium

    CN111130804A

  • Cooperative decryption information processing method and device based on change factor

    CN115021923A

  • Improved digital signature and key agreement schemes

    EP2363976A1

  • Method for creating common key, encryption method using the common key, method for managing common key, method for authentifying solid by solid number of terminal, program for executing these methods, and application software including the program

    JP2003304237A