Signature method and system

By pre-generating triples and private key fragments between the client and the server, digital signatures can be completed with only one information interaction, solving the problems of low efficiency and performance in the existing technology, achieving rapid signatures and improving The security of the key is ensured.

WO2024198874A1PCT designated stage expired Publication Date: 2024-10-03HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD

Patent Information

Application Number
PCT/CN2024/080363
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-27
Filing Date
2024-03-06
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

The existing two-party collaborative signature method requires multiple rounds of information exchange between the client and the server, resulting in low efficiency and performance, making it difficult to quickly complete the digital signature of the message.

Method used

By pre-generating triples and private key shards on the client and server, digital signatures can be completed with only one information interaction, reducing communication delays and improving signature efficiency and performance.

Benefits of technology

It realizes the rapid completion of collaborative signature between the client and the server, reduces the calculation amount and communication delay, improves the efficiency and performance of the signature, and improves the security of the key through dynamic storage of key updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024080363_03102024_PF_FP_ABST
    Figure CN2024080363_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a signature method and system, which are applied to the technical field of information. The method comprises: a client receives a first message to be signed from a cloud service node; the client sends a first parameter set to a server, and the server sends a second parameter set to the client, wherein the first parameter set is generated on the basis of said first message, a first triple, a first random number, identification information of the client and a first private key fragment, the second parameter set is generated on the basis of the first parameter set, a second triple, a second random number and a second private key fragment, and the second parameter set comprises a first signature component; the client generates a second signature component according to the first triple and the second parameter set; and the client sends a digital signature of said first message to the cloud service node, the digital signature comprising the first signature component and the second signature component, and the digital signature being used for identity verification of the cloud service node in a cloud server. The present application can improve the message signature efficiency and performance.
Need to check novelty before this filing date? Find Prior Art

Description

Signature method and system

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on March 27, 2023, with application number 202310308780.5 and application name “A Signature Method and System”, the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The present application relates to the field of information technology, and in particular to a signature method and system. Background Art

[0004] The SM2 digital signature algorithm involves a signer generating a digital signature for a message, and a verifier verifying the authenticity of the signature. Each signer has a paired public and private key. The private key is used to generate the digital signature and must be stored securely; the public key is used to verify the signature and can be made public.

[0005] To ensure the secure storage of private keys, they are typically split into two shards, stored separately on the client and server. Neither party can access the other's shard, requiring collaboration to generate a digital signature for a message. Current two-party collaborative signature methods require multiple rounds of information exchange between the client and server to calculate the client's digital signature, resulting in low efficiency and performance.

[0006] Summary of the Invention

[0007] This application provides a signature method and system that can improve the efficiency and performance of collaborative signature between the client and the server.

[0008] In a first aspect, an embodiment of the present application provides a signing method, including: a client receives a first message to be signed from a cloud service node; the client sends a first parameter set to a server, the first parameter set being generated based on the first message, a first triplet, a first random number, identification information of the client, and a first private key fragment; the server sends a second parameter set to the client, the second parameter set being generated based on the first parameter set, a second triplet, a second random number, and a second private key fragment, the second parameter set including a first signature component; the client generates a second signature component based on the first triplet and the second parameter set; the client sends a digital signature of the first message to the cloud service node, the digital signature of the first message including the first signature component and the second signature component, and the digital signature of the first message is used for identity authentication of the cloud service node in the cloud server.

[0009] With this design, the client and server only need to exchange information once during collaborative signing, quickly completing the digital signature of the message. This reduces communication latency during the collaborative signing process, thereby improving the efficiency and performance of signing, as well as the performance of collaborative decryption.

[0010] In one possible design, the first and second elements of the first triplet are randomly generated by the client, and the first and second elements of the second triplet are randomly generated by the server; the third element of the first triplet and the third element of the second triplet are generated based on the input and output of the first multiplier; wherein the input of the first multiplier includes the first and second elements of the first triplet, and the first and second elements of the second triplet. Through such a design, the triplet for signing can be pre-generated before the two parties sign collaboratively, which can reduce the amount of computation in the collaborative signing process and improve the performance of the collaborative signature.

[0011] In one possible design, the first private key shard is generated based on a third random number and the output of a second multiplier, and the second private key shard is generated based on a fourth random number and the output of the second multiplier; wherein the output of the second multiplier corresponds to the input of the second multiplier, and the input of the second multiplier is determined based on the third private key shard and the third random number randomly generated by the client, and the fourth private key shard and the fourth random number randomly generated by the server. With this design, private key shards for signing can be pre-generated before two parties sign collaboratively, which can reduce the amount of computation required during the collaborative signing process and improve the performance of the collaborative signature.

[0012] In one possible design, the first parameter set includes the following parameters: a first random point on an elliptic curve generated based on the first random number; a hash value generated based on the first message and the client's identification information; a first difference between the first private key shard and the first element in the first triplet; and a second difference between the first random number and the second element in the first triplet. This first parameter set can be used to determine a first signature component, which refers to the first component of the digital signature of the first message.

[0013] In one possible design, the second parameter set includes the following parameters: the first signature component generated based on the first random point, the second random number and the hash value; the first intermediate value generated based on the first difference, the second private key shard and the first element in the second triplet; the second intermediate value generated based on the second difference, the second element in the second triplet, the second random number and the first signature component; and the third intermediate value generated based on the first intermediate value, the second intermediate value and the second triplet.

[0014] In one possible design, the first parameter set may also include the client's identification information. Accordingly, the server can determine the second private key shard that pairs with the first private key shard based on the client's identification information. This design can be used in scenarios where the server is connected to multiple clients, making it easier to distinguish the client currently signing with the server.

[0015] In one possible design, the client and the server can also collaboratively update the private key shards. For example, the client updates the first private key shard based on the key derivation function and the public random point; the server updates the second private key shard based on the key derivation function and the public random point; wherein the public random point is a point on an elliptic curve generated based on a fifth random number and a sixth random number, the fifth random number is randomly generated by the client, and the sixth random number is randomly generated by the server. Through such a design, dynamic storage of the private key shards of both parties can be achieved, the difficulty of cracking the private key shards of both parties is increased, and the possibility of private key shards being leaked can be reduced to protect the private key shards, thereby improving the security of keys and digital signatures.

[0016] In a second aspect, an embodiment of the present application provides a signature system, including a client and a server. The client is used to receive a first message to be signed from a cloud service node; and send a first parameter set to the server, the first parameter set being generated based on the first message, a first triplet, a first random number, identification information of the client, and a first private key fragment; the server is used to send a second parameter set to the client, the second parameter set being generated based on the first parameter set, a second triplet, a second random number, and a second private key fragment, the second parameter set including a first signature component; the client is also used to generate a second signature component based on the first triplet and the second parameter set; and send a digital signature of the first message to the cloud service node, the digital signature of the first message including the first signature component and the second signature component, the digital signature of the first message being used for authentication of the cloud service node in the cloud server.

[0017] In one possible design, the first element and the second element in the first triplet are randomly generated by the client, and the first element and the second element in the second triplet are randomly generated by the server; the third element in the first triplet and the third element in the second triplet are generated based on the input and output of the first multiplier; wherein the input of the first multiplier includes the first element and the second element in the first triplet, and the first element and the second element in the second triplet.

[0018] In one possible design, the first private key shard is generated based on a third random number and the output of a second multiplier, and the second private key shard is generated based on a fourth random number and the output of the second multiplier; wherein the output of the second multiplier corresponds to the input of the second multiplier, and the input of the second multiplier is determined based on the third private key shard and the third random number randomly generated by the client, and the fourth private key shard and the fourth random number randomly generated by the server.

[0019] In one possible design, the first parameter set includes the following parameters: a first random point on an elliptic curve generated based on the first random number; a hash value generated based on the first message and the identification information of the client; a first difference between the first private key shard and the first element in the first triplet; and a second difference between the first random number and the second element in the first triplet.

[0020] In one possible design, the second parameter set includes the following parameters: the first signature component generated based on the first random point, the second random number and the hash value; the first intermediate value generated based on the first difference, the second private key shard and the first element in the second triplet; the second intermediate value generated based on the second difference, the second element in the second triplet, the second random number and the first signature component; and the third intermediate value generated based on the first intermediate value, the second intermediate value and the second triplet.

[0021] In one possible design, the first parameter set also includes identification information of the client, and the server is further used to determine the second private key shard paired with the first private key shard based on the identification information of the client.

[0022] In one possible design, the client is further used to update the first private key shard based on a key derivation function and a public random point; the server is further used to update the second private key shard based on a key derivation function and the public random point; wherein the public random point is a point on an elliptic curve generated based on a fifth random number and a sixth random number, the fifth random number is randomly generated by the client, and the sixth random number is randomly generated by the server.

[0023] In a third aspect, an embodiment of the present application provides a computing device cluster, comprising at least one computing device, wherein the computing device comprises a processor and a memory; wherein the memory of the at least one computing device is used to store computer-executable instructions; and the processor of the at least one computing device is used to execute the computer-executable instructions so that the computing device cluster performs the method described in the first aspect and any possible design of the first aspect.

[0024] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which includes computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the method described in the first aspect and any possible design of the first aspect.

[0025] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes instructions. When the instructions are executed by a computing device cluster, the computing device cluster executes the method described in the first aspect and any possible design of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] FIG1 is a schematic diagram of the architecture of a signature system provided in an embodiment of the present application;

[0027] FIG2 is a schematic diagram of the architecture of another signature system provided in an embodiment of the present application;

[0028] FIG3 is a schematic diagram of a process for pre-calculating triples according to an embodiment of the present application;

[0029] FIG4 is a schematic diagram of a flow chart of a key generation method provided in an embodiment of the present application;

[0030] FIG5 is a schematic diagram of a flow chart of a signature method provided in an embodiment of the present application;

[0031] FIG6 is a flow chart of a key updating method provided in an embodiment of the present application;

[0032] FIG7 is a schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application;

[0033] FIG8 is a schematic diagram of the structure of another computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0035] The at least one (item, wheel) involved in the embodiments of the present application as follows indicates one (item, wheel) or multiple (items, wheels). Multiple (items, wheels) refers to two (items, wheels) or more than two (items, wheels). "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. In addition, it should be understood that although the terms first, second, etc. may be used to describe each object in the embodiments of the present application, these objects should not be limited to these terms. These terms are only used to distinguish each object from each other.

[0036] The terms "including" and "having" and any variations thereof mentioned in the following description of the embodiments of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes other steps or units that are not listed, or optionally includes other steps or units that are inherent to these processes, methods, products or devices. It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any method or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other methods or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way.

[0037] The signature method provided in the embodiments of the present application can be applied to the system shown in FIG1 , hereinafter referred to as signature system 1000. The signature system 1000 includes a server 110 and at least one client 120. Any of the at least one client 120 can collaborate with the server to generate a digital signature for a message corresponding to the client.

[0038] The client and the server can be implemented in software or hardware. For example, the client is used as an example to describe the implementation of the client. Similarly, the implementation of the server can refer to the implementation of the client.

[0039] When implemented through software, the client can be a process, application, or code block running on a computing device. The computing device can be at least one of a physical host (or physical machine), a virtual machine, and a container. Furthermore, the computing device can be one or more. For example, the client can be an application running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines used to run the application can be distributed in the same availability zone (AZ) or in different AZs. The multiple hosts / virtual machines / containers used to run the application can be distributed in the same region or in different regions. Typically, a region can include multiple AZs. Similarly, the multiple hosts / virtual machines used to run the application can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Typically, a region can include multiple VPCs, and a VPC can include multiple AZs.

[0040] In one possible design, the client and server can run in different virtual machines on the same physical host, achieving virtual machine-level isolation. In another possible design, the client and server can run on different physical hosts, achieving physical host-level isolation.

[0041] When implemented through hardware, in one possible implementation, the client may include at least one computing device, etc. The multiple computing devices included in the client may be distributed in the same AZ or in different AZs; or, the multiple computing devices included in the client may be distributed in the same region or in different regions; or, the multiple computing devices included in the client may be distributed in the same VPC or in multiple VPCs. In another possible implementation, the client may also be a device implemented using an application-specific integrated circuit (ASIC) and / or a programmable logic device (PLD). Among them, the PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0042] The embodiments of the present application can be applied to cloud service scenarios, such as elastic load balancing (ELB), APIGW, public Nginx, object based storage (OBS), web application firewall (WAF), Internet of Things (IOT), etc. In the aforementioned cloud service scenarios, a cloud service platform that can interact with cloud users and a cloud server that provides cloud services are deployed. Cloud users can rent or purchase cloud services and initiate corresponding services on the cloud service platform based on the rented or purchased cloud services. The services initiated by cloud users are referred to as cloud service nodes below. Identity authentication and a secure communication link must first be completed between the cloud service node and the cloud server. In combination with the signature method provided in the embodiments of the present application, an optional implementation method is: the client and the server can be deployed in the cloud, the cloud service node calls the collaborative signature function of the client and the server to obtain the corresponding signature result, and sends the signature result to the cloud server, so that the cloud service authenticates the cloud service node according to the signature result, and establishes a secure communication link between the cloud server and the cloud service node after the verification is passed.

[0043] In addition, as shown in FIG2 , a software cryptographic module 200 may be provided in the cloud service platform. The software cryptographic module 200 uniformly manages the client and server, and provides a calling interface between the client and the server. For example, a cloud service node (i.e., a service initiated by a cloud user) may input a message to be signed into the software cryptographic module 200. The software cryptographic module calls the client 120 and the server 110 to collaboratively generate a digital signature for the message, and feeds the digital signature back to the cloud service node. The digital signature is used for authentication of the cloud service node in the cloud server. In addition, the embodiments of the present application may also be applied to other scenarios requiring digital signatures, and the embodiments of the present application are not limited thereto.

[0044] The following is a detailed description of the signature method provided in the embodiment of the present application. To facilitate implementation, the technical terms involved in the embodiment of the present application are first introduced.

[0045] (1) Elliptic Curve

[0046] The elliptic curve in the embodiment of the present application refers to the elliptic curve specified by the SM2 elliptic curve public key cryptography algorithm. The relevant parameters used to describe the elliptic curve include (p, a, b, n, G); where p is a finite field The order of a, b is the elliptic curve E:y 2 =x 3 +a*x+b parameters; n is the elliptic curve E in the finite field The number of midpoints, for example, the length of n is 256 bits.

[0047] Furthermore, it can be understood that based on a positive integer and the base point G on the elliptic curve, a multiple of the base point on the elliptic curve can be obtained, and the relationship between the multiple point and the base point can be expressed as D=[d]*G.

[0048] (2) Multiplier

[0049] The multiplier in the embodiments of the present application refers to a multiplier based on two-party multiplication. A multiplier based on two-party multiplication is operated by two participants, A and B. A and B respectively input different parameters to the multiplier, and the multiplier feeds back different outputs to A and B respectively. The input and output of the multiplier satisfy a specific relationship, and during this process, neither A nor B can obtain the input or output of the other.

[0050] For example, if A and B input integers a1 and a2 into a multiplier, respectively, the multiplier returns outputs m1 and m2 to A and B, respectively. The multiplier's input and output satisfy m1 + m2 = a1 * a2. Another example is if A and B input a pair of integers (x1, y1) and (x2, y2) into a multiplier, respectively. The multiplier returns outputs z1 and z2 to A and B, respectively. The multiplier's input and output satisfy z1 + z2 = (x1 + x2) * (y1 + y2).

[0051] (3) Triplet

[0052] A triplet refers to a combination of three elements, or a triplet combination. The triplet in the embodiment of the present application includes a first triplet generated by the client and a second triplet generated by the server. The first triplet and the second triplet are used to generate a digital signature.

[0053] As shown in Figure 3, the client and the server can use a two-party multiplier to generate the first triple and the second triple, including the following steps:

[0054] Step 31: The client randomly generates two integers a1 and b1. Represents an integer set, such as the integer set includes integers from 0 to n-1, and 1≤a1≤n-1, 1≤b1≤n-1. Similarly, the server randomly generates two integers a2 and b2, And 1≤a2≤n-1, 1≤b2≤n-1. Optionally, the client can use a random number generator to generate a1 and b1, and the server can use a random number generator to generate a2 and b2.

[0055] Step 32: The client inputs a1 and the server inputs b2 into the multiplier. The output of includes m1 and m2 corresponding to a1 and b2, satisfying m1+m2=a1*b2. Specifically, the multiplier Output m1 to the client, multiplier Output m2 to the server. Similarly, the client inputs b1 and the server inputs a2 to the multiplier. Multiplier The output of includes n1 and n2 corresponding to b1 and a2, satisfying n1+n2=b1*a2. Specifically, the multiplier Output n1 to the client, multiplier Output n2 to the server.

[0056] Step 33: The client can calculate the value of the multiplier corresponding to the client. The input (i.e. a1, b1) and output (i.e. m1, n1) of the server can calculate c1 = a1*b1+m1+n1. Similarly, the server can calculate c1 = a1*b1+m1+n1 based on the multiplier corresponding to the server. The input (i.e. a2, b2) and output (i.e. m2, n2) of the multiplier are calculated as c2 = a2*b2+m2+n2. It can be based on oblivious transfer of two-party multiplication.

[0057] Based on steps 1 to 3 above, the client can obtain the first triplet (a1, b1, c1), and the server can obtain the second triplet (a2, b2, c2). The first and second triplet conform to the following relationship: c1 + c2 = (a1 + a2) * (b1 + b2).

[0058] In one possible design, the client and server pre-generate the first and second triples required for collaborative signing before signing. The process of generating the first and second triples (i.e., steps 31-33) can also be summarized as a pre-computation phase. The result of the pre-computation phase is: the client obtains the first triple, and the server obtains the second triple.

[0059] (4) Private key sharding and public key

[0060] The embodiments of the present application involve client-side private key sharding and server-side private key sharding. Specifically, the private key sharding can be divided into a private key sharding for digital signature and a private key sharding for generating a public key.

[0061] For ease of distinction, the private key shard used by the client for digital signatures is referred to as the first private key shard, which can be stored on the storage medium of the client's computing device. The private key shard used by the server for digital signatures is referred to as the second private key shard, which can be stored on the storage medium of the server's computing device. The private key shard used by the client for generating public keys is referred to as the third private key shard, and the private key shard used by the server for generating public keys is referred to as the fourth private key shard.

[0062] FIG4 illustrates a key generation method in which a client and a server collaborate to generate a public key, a first private key fragment, and a second private key fragment. The method mainly includes the following steps.

[0063] S41, the client randomly generates two integers d1 and z1, And 1≤d1≤n-1, 1≤z1≤n-1. The client uses d1 as the third private key fragment and calculates the client's first public key fragment P1 = [d1]*G. The client uses the first public key fragment P1 and the client's identification information (such as ID A ) is sent to the server. Accordingly, the server can also randomly generate two integers d2 and z2, 1≤d2≤n-1, 1≤z2≤n-1. The server uses d2 as the fourth private key shard and calculates the public key P = P1 + [d2]*G between the client and server based on the fourth private key shard d2 and the received first public key shard P1. [d2]*G can also be understood as the server's second public key shard P2. The server then sends the calculated public key P to the client.

[0064] It is understood that the client's third private key fragment is not disclosed to the server, and the server's fourth private key fragment is not disclosed to the client. Optionally, the third and fourth private key fragments can be positive integers. For example, the third and fourth private key fragments can be large positive integers to reduce the probability of the third or fourth private key fragments being tested correctly.

[0065] S42: The client and the server collaboratively generate a first private key fragment of the client and a second private key fragment of the server using a two-party multiplier. Optionally, the multiplier may be a multiplier based on Beaver two-party multiplication, such as a multiplier constructed based on the first triple and the second triple.

[0066] Specifically, the client inputs 1+d1,z1 into the multiplier The client inputs d2 and z2 into the multiplier Multiplier The output of the multiplier includes w corresponding to 1+d1, z1, d2 and z2, satisfying w=(1+d1+d2)*(z1+z2). Output w to the client and server.

[0067] S43, the client can calculate the first private key fragment T1 = z1*w based on z1 and w -1 The server can calculate the first private key fragment T2 = z2*w based on z2 and w -1 .

[0068] In addition, it can be understood that the four arithmetic operations involving integers in the embodiments of the present application are all operations modulo n, that is, the results of the four arithmetic operations involving integers are integers less than or equal to n. For example, the aforementioned modulo w -1 represents the multiplicative inverse of w modulo n, which corresponds to: w -1 *w≡1modn. For example, z1*w -1 It can also be described as (z1*w -1 )mod n, that is, T1<n; z2*w -1 It can also be described as (z2*w -1 )mod n, that is, T2<n.

[0069] The following takes a client and server collaborative signature as an example to explain the signature method provided by the embodiment of the present application in detail. FIG5 shows a signature method, which mainly includes the following steps.

[0070] S501: The client obtains a first message to be signed.

[0071] In the aforementioned cloud service scenario, the first message received by the client comes from the cloud service node. For example, if a software cryptographic module is provided on the cloud service platform for unified management of the client and server, the cloud service node can input the first message into the software cryptographic module, which can then input the first message into the client.

[0072] Optionally, the first message may be a handshake message sent by the cloud service node to the cloud server.

[0073] S502: The client generates a first parameter set based on the first message, the first triplet, the first random number, the identification information of the client, and the first private key fragment.

[0074] The first and second elements of the first triplet are randomly generated by the client, and the third element of the first triplet is generated based on the input and output of the first multiplier, wherein the input of the first multiplier includes the first and second elements of the first triplet and the first and second elements of the second triplet, and there is a mapping relationship or corresponding relationship between the output of the first multiplier and the aforementioned input. Exemplarily, the first multiplier can be the multiplier described above. The method for generating the first triplet on the client side can be specifically understood by referring to the steps described in FIG3 . That is, the client side can pre-generate the first triplet according to the steps described in FIG3 . This embodiment of the present application does not describe this in detail. In this design, pre-generating the first triplet for digital signature can reduce the amount of parameter calculation required by the client side during the collaborative signature phase, thereby improving the efficiency and performance of the signature.

[0075] Similarly, the first private key shard is generated based on the third random number and the output of the second multiplier, the output of the second multiplier corresponds to the input of the second multiplier, and the input of the second multiplier is determined based on the third private key shard and the third random number randomly generated by the client, and the fourth private key shard and the fourth random number randomly generated by the server. Exemplarily, the second multiplier can be the multiplier described above. The method for generating the first private key shard of the client can be understood by referring to the steps described in Figure 4. The third private key shard is d1 randomly generated by the client, and the third random number is z1 randomly generated by the client; the fourth private key shard is d2 randomly generated by the server, and the fourth random number is z2 randomly generated by the server. The client can pre-generate the first private key shard according to the steps described in Figure 4, and this embodiment of the present application will not go into details. In such a design, the first private key shard for digital signature is generated in advance, and there is no need to calculate the first private key shard in the collaborative signature stage. This can reduce the amount of parameter calculation of the client in the collaborative signature stage and improve the efficiency and performance of the signature.

[0076] In one possible design, the first parameter set includes the following parameters:

[0077] (1-1) A first random point on the elliptic curve is generated based on a first random number.

[0078] For example, the client can calculate the first random point R1 = [k1] * G, where k1 represents the first random number generated by the client. And 1≤k1≤n-1.

[0079] (1-2) A hash value is generated based on the first message and the identification information of the client.

[0080] The hash value can be understood as the hash value of the first message. For example, the client can generate the hash value of the first message according to the SM3 hash function. Before calculating the hash value of the first message to be signed, it is necessary to concatenate the hash value of the client's identification information on the basis of the first message. For example, the client can calculate the hash value of the first message: e=Hash(Z A ||M); where e represents the hash value of the first message, Z A Represents the hash value of the client's identification information, || represents the concatenation operator, M represents the first message; Hash represents the hash function, and the value of e is Z A ||The hash value or digital summary of M.

[0081] (1-3) The first difference between the first private key shard and the first element in the first triplet.

[0082] For example, the client may calculate the first difference f1 = T1 - a1, where T1 represents the first private key fragment generated by the client, and a1 represents the first element in the first triplet.

[0083] (1-4) The second difference between the first random number and the second element in the first triplet.

[0084] For example, the client may calculate the first difference g1=k1-b1, where k1 represents the first random number generated by the client, and b1 represents the second element in the first triplet.

[0085] S503: The client sends a first parameter set to the server.

[0086] Corresponding to S502 , it can be understood that the client sends a first parameter set including ( R1 , e , f1 , g1 ) to the server.

[0087] Optionally, the client may further send identification information of the client to the server, for example, the client includes the identification information of the client in the first parameter set.

[0088] S504: The server generates a second parameter set based on the first parameter set, the second triplet, the second random number, and the second private key fragment.

[0089] The first and second elements of the second triplet are randomly generated by the server, and the third element of the second triplet is generated based on the input and output of the first multiplier, wherein the input of the first multiplier includes the first and second elements of the first triplet and the first and second elements of the second triplet, and there is a mapping relationship or corresponding relationship between the output of the first multiplier and the aforementioned input. Exemplarily, the first multiplier can be the multiplier described above. The server's second triplet generation method can be specifically understood by referring to the steps described in Figure 3. That is, the server can pre-generate the second triplet according to the steps described in Figure 3. This embodiment of the application does not describe this in detail. In this design, pre-generating the second triplet for digital signature can reduce the amount of parameter calculation required by the server during the collaborative signing phase, thereby improving the efficiency and performance of the signature.

[0090] In one possible design, the server includes private key shards that are paired with one or more client private key shards. The client's identification information can be used by the server to determine the private key shards that are paired with the client's private key shards. Based on this, corresponding to the description in S503, the server can determine a second private key shard that is paired with the first private key shard based on the received client identification information.

[0091] The following describes the generation method of the private key fragment included in the server by taking the second private key fragment as an example. The second private key fragment is generated based on the fourth random number and the output of the second multiplier, the output of the second multiplier corresponds to the input of the second multiplier, and the input of the second multiplier is determined based on the third private key fragment and the third random number randomly generated by the server, and the fourth private key fragment and the fourth random number randomly generated by the server. Exemplarily, the second multiplier can be the multiplier described above. The method for generating the second private key shard on the server side can be understood by referring to the steps described in FIG4 . The third private key shard is d1 randomly generated by the server side, and the third random number is z1 randomly generated by the server side. The fourth private key shard is d2 randomly generated by the server side, and the fourth random number is z2 randomly generated by the server side. The server side can pre-generate the second private key shard according to the steps described in FIG4 , which will not be described in detail in the embodiment of the present application. In such a design, the second private key shard for digital signature is generated in advance, and there is no need to calculate the second private key shard in the collaborative signature stage. This can reduce the amount of parameter calculation on the server side in the collaborative signature stage and improve the efficiency and performance of the signature.

[0092] In one possible design, the second parameter set includes the following parameters:

[0093] (2-1) A first signature component is generated based on the first random point, the second random number, and the hash value.

[0094] For example, first, the server can generate a second random point R=R1+[k2]*G on the elliptic curve based on the first random point and the second random number, where k2 represents the second random number generated by the client. And 1≤k²≤n-1. The coordinate information of the second random point R can be expressed as (x, y). The server then generates the first signature component r = (x + e) ​​mod n based on the horizontal coordinate of the second random point and the hash value. In addition, the first signature component can also replace the first component described as the digital signature of the first message.

[0095] (2-2) A first intermediate value generated based on the first difference, the second private key shard, and the first element in the second triplet.

[0096] For example, the server calculates the first intermediate value f=f1+T2-a2, where f1 represents the first difference, T2 represents the second private key shard, and a2 represents the first element in the second triplet.

[0097] (2-3) A second intermediate value is generated based on the second difference, the second element in the second triplet, the second random number, and the first signature component.

[0098] For example, the server calculates the second intermediate value g=g1+k2-b2+r, where g1 represents the second difference, k2 represents the second random number, b2 represents the second element in the second triplet, and r represents the first signature component.

[0099] (2-4) A third intermediate value is generated based on the first intermediate value, the second intermediate value, and the second triplet.

[0100] For example, the server calculates the third intermediate value s2=c2+a2*g+b2*f, where (a2, b2, c2) represents the second triplet, f represents the first intermediate value, and g represents the second intermediate value.

[0101] S505: The server sends a second parameter set to the client.

[0102] Corresponding to S504, it can be understood that the server sends a second parameter set including (f, g, r, s2) to the client, wherein the second parameter set includes the first signature component.

[0103] S506: The client generates a second signature component according to the first triplet and the second parameter set.

[0104] For example, the client calculates the second signature component s = f*g + s2 + c1 + a1*g + b1*fr. (a1, b1, c1) represents the first triple, and (f, g, r, s2) represents the second signature component. Alternatively, the second signature component can replace the second component described as the digital signature of the first message.

[0105] S507: The client sends the digital signature of the first message, where the digital signature of the first message includes the first signature component and the second signature component.

[0106] For example, corresponding to the description in S506, the digital signature of the first message can be represented as (r, s). In the aforementioned cloud service scenario, the client can send the digital signature of the first message to the cloud service node for authentication of the cloud service node in the cloud server. For example, the cloud service node sends the digital signature (r, s) of the first message to the cloud server, and the cloud server verifies the digital signature based on the aforementioned public key, i.e., authenticates the cloud service node. After verification, the cloud server can establish a secure communication link with the cloud service node.

[0107] In addition, it can be understood that when a software cryptographic module is set up on the cloud business platform for unified management of the client and server, the client can feedback the digital signature of the first message to the software cryptographic module, and then the software cryptographic module can feedback the digital signature of the first message to the cloud business node.

[0108] In the above-mentioned signature method provided in the embodiment of the present application, in the collaborative signature stage, the client and the server only need to interact once, that is, the digital signature of the message can be quickly completed with less information interaction, which can improve the efficiency and performance of the signature.

[0109] In addition, embodiments of the present application also provide a key update method. The client and server can collaboratively update the first private key shard / second private key shard used for signing, enabling dynamic storage of both parties' private key shards. This increases the difficulty of cracking both parties' private key shards and reduces the likelihood of private key shard leakage, thereby improving the security of keys and digital signatures. Based on this, the client and server use the most recent first and second private key shards when digitally signing messages.

[0110] Specifically, as shown in FIG6 , a key updating method mainly includes the following steps.

[0111] S601: The client and the server jointly generate a common random point.

[0112] The public random point is a point on the elliptic curve generated based on the fifth random number and the sixth random number. Specifically, the following steps S61 to S64 can be referred to for implementation:

[0113] S61, the client can randomly generate a fifth random number, and calculate the third random point P3=[k3]*G on the elliptic curve based on the fifth random number (such as expressed as k3), where And 1≤k3≤n-1; then, the client sends the third random point to the server.

[0114] Optionally, the client may also send identification information of the client to the server.

[0115] S62, the server can randomly generate a sixth random number, and calculate the fourth random point P4=[k4]*G on the elliptic curve based on the sixth random number (such as k4), where And 1≤k4≤n-1; then, the server sends a fourth random point to the client.

[0116] It is understood that S61 and S62 can be executed simultaneously, or S61 can be executed first and then S62, or S62 can be executed first and then S61. The embodiment of the present application does not limit the execution order of S61 and S62. After executing S61 to S62, S63 to S64 are executed.

[0117] S63: The client generates a public random point based on the fifth random number and the fourth random point.

[0118] For example, the client may calculate the public random point P′=[k3]*P4, ie, P′=[k3]*[k4]*G.

[0119] S64: The server generates a public random point based on the sixth random number and the third random point.

[0120] For example, the server may calculate the public random point P′=[k4]*P3, ie, P′=[k4]*[k3]*G.

[0121] It is understandable that S63 can be executed simultaneously with S64, or S63 can be executed first and then S64, or S64 can be executed first and then S63. The embodiment of the present application does not limit the execution order of S63 and S64.

[0122] S602: The client updates the first private key shard according to the key derivation function and the public random point.

[0123] Exemplarily, the coordinate information of the public random point is recorded as (x′, y′). First, the client can calculate u = KDF(x′||y′, lens); wherein u can be understood as a key update parameter or update factor, which is used to update the first private key shard; KDF() represents a key derivation function; (x′, y′) represents the coordinate information of the public random point, x′ is the horizontal coordinate of the public random point, and y′ is the vertical coordinate of the public random point; lens represents the length of x′ or y′, such as 256 bits. Then, the client determines the difference between the first private key shard T1 and the aforementioned key update parameter u as the updated first private key shard T1′ = T1-u.

[0124] S603: The server updates the second private key shard according to the key derivation function and the public random point.

[0125] Exemplarily, the coordinate information of the public random point is recorded as (x′, y′). First, the server can calculate u = KDF(x′||y′, lens); wherein u can be understood as a key update parameter or update factor, which is used to update the second private key shard; KDF() represents a key derivation function; (x′, y′) represents the coordinate information of the public random point, x′ is the horizontal coordinate of the public random point, and y′ is the vertical coordinate of the public random point; lens represents the length of x′ or y′, such as 256 bits. Then, the server determines the difference between the second private key shard T2 and the aforementioned key update parameter u as the updated second private key shard T2′ = T2 + u.

[0126] Optionally, the above embodiment can be understood as a two-party collaborative SM2 signature method, which can be executed by processors of two participants (such as the client and the server). The method includes four stages: pre-calculation stage, key generation stage, collaborative signature stage, and key update stage.

[0127] Based on the same concept, the following introduces a way to divide the functional modules within the client and server.

[0128] (1) The client includes a client pre-calculation module, a client key generation module, a client collaborative signature module and a client key update module.

[0129] The client pre-calculation module includes a random number generation submodule, a preset function submodule, an information sending and receiving submodule, and a storage submodule. The random number generation submodule is used to generate the first and second elements of the first triplet. The preset function submodule uses the first multiplier to calculate the third element of the first triplet. The information sending and receiving submodule is used to exchange the intermediate results of the first multiplier with the server. The storage submodule is used to store the first triplet.

[0130] The client key generation module includes a random number generation submodule, an SM2 curve calculation submodule, an information sending and receiving submodule, a preset function submodule, a large number calculation submodule, and a storage submodule. Among them, the random number generation submodule is used to generate a third private key shard and a third random number. The SM2 curve calculation submodule is used to calculate the first public key shard obtained by multiplying the third private key shard by the base point (G) on the SM2 elliptic curve. The information sending and receiving submodule is used to send the first public key shard to the server and receive the public key sent by the server. The preset function submodule uses the second multiplier to calculate w, and the information sending and receiving submodule is used to exchange the intermediate result of the second multiplier with the server. The large number calculation submodule is used to obtain the first private key shard by multiplying the third random number by the inverse of w. The storage submodule is used to store the first private key shard.

[0131] The client collaborative signature module includes a private key acquisition submodule, a random number generation submodule, an SM2 curve calculation submodule, a preset function submodule, a large number calculation submodule, and an information sending and receiving submodule. Among them, the private key acquisition submodule is used to obtain the first private key shard. The random number generation submodule is used to generate a first random number. The SM2 curve calculation submodule is used to calculate the first random number multiplied by the base point (G) on the SM2 elliptic curve to obtain a first random point. The preset function submodule is used to calculate the hash value of the first message using a hash function. The large number calculation submodule is used to calculate the first difference and the second difference. The information sending and receiving submodule is used to send the first parameter set to the server and receive the second parameter set sent by the server. The large calculation submodule is also used to calculate the second signature component.

[0132] The client key update module includes a random number generation submodule, an SM2 curve calculation submodule, an information sending and receiving submodule, an SM2 curve calculation submodule, a preset function submodule, and a large number calculation submodule. Among them, the random number generation submodule is used to generate a fifth random number. The SM2 curve calculation submodule is used to calculate the fifth random number multiplied by the base point (G) on the SM2 elliptic curve to obtain a third random point. The information sending and receiving submodule is used to send the third random point to the server and receive the fourth random point. The SM2 curve calculation submodule is also used to calculate the fifth random number multiplied by the fourth random point to obtain a public random point. The preset function submodule uses a derivation function (such as a key derivation function KDF) to calculate the derived value of the public random point to obtain a key update parameter. The large calculation submodule calculates the first private key shard minus the key update parameter to obtain the updated first private key shard.

[0133] (2) The server includes a server pre-calculation module, a server key generation module, a server collaborative signature module and a server key update module.

[0134] The server-side pre-calculation module includes a random number generation submodule, a preset function submodule, an information sending and receiving submodule, and a storage submodule. The random number generation submodule is used to generate the first and second elements of the second triplet. The preset function submodule uses the first multiplier to calculate the third element of the second triplet. The information sending and receiving submodule is used to exchange the intermediate results of the first multiplier with the client. The storage submodule is used to store the second triplet.

[0135] The server-side key generation module includes a random number generation submodule, an SM2 curve calculation submodule, an information sending and receiving submodule, a preset function submodule, a large number calculation submodule, and a storage submodule. Among them, the random number generation submodule is used to generate a fourth private key shard and a fourth random number. The SM2 curve calculation submodule is used to calculate the second public key shard obtained by multiplying the fourth private key shard by the base point (G) on the SM2 elliptic curve, and to calculate the first public key shard plus the second public key shard to obtain a public key. The information sending and receiving submodule is used to send the public key to the client. The preset function submodule uses the second multiplier to calculate w, and the information sending and receiving submodule is used to exchange the intermediate result of the second multiplier with the client. The large number calculation submodule is used to obtain the second private key shard by multiplying the fourth random number by the inverse of w. The storage submodule is used to store the second private key shard.

[0136] The server-side collaborative signature module includes a private key acquisition submodule, a random number generation submodule, an SM2 curve calculation submodule, a large number calculation submodule, and an information sending and receiving submodule. The private key acquisition submodule is used to obtain the second private key shard. The random number generation submodule is used to generate a second random number. The SM2 curve calculation submodule is used to calculate the second random number and multiply it by the base point (G) on the SM2 elliptic curve to obtain a second random point. The information sending and receiving submodule is used to receive the first parameter set sent by the client. The large number calculation submodule is used to calculate the first intermediate value, the second intermediate value, and the first signature component. The information sending and receiving submodule is also used to send the second parameter set to the server.

[0137] The server-side key update module includes a random number generation submodule, an SM2 curve calculation submodule, an information sending and receiving submodule, an SM2 curve calculation submodule, a preset function submodule, and a large number calculation submodule. Among them, the random number generation submodule is used to generate a sixth random number. The SM2 curve calculation submodule is used to calculate the sixth random number multiplied by the base point (G) on the SM2 elliptic curve to obtain a fourth random point. The information sending and receiving submodule is used to send the fourth random point to the server and receive the third random point. The SM2 curve calculation submodule is also used to calculate the sixth random number multiplied by the third random point to obtain a public random point. The preset function submodule uses a derivation function (such as a key derivation function KDF) to calculate the derived value of the public random point to obtain a key update parameter. The large calculation submodule calculates the second private key fragment minus the key update parameter to obtain the updated second private key fragment.

[0138] Based on the above embodiments, the present application also provides a computing device cluster. As shown in FIG7 , the computing device cluster includes at least one computing device 100 , each of which includes a processor 104 and a memory 106 .

[0139] The memory 106 in at least one computing device 100 in the computing device cluster is used to store computer-executable instructions, such as instructions for executing the aforementioned signature method using the same signature system. The processor 104 of at least one computing device 100 executes the computer-executable instructions, causing the computing device cluster to execute the instructions for the signature method. In some possible implementations, one or more computing devices 100 in the computing device cluster may also be used to execute some of the instructions for executing the signature method using the signature system. In other words, a combination of one or more computing devices 100 can jointly execute the instructions for executing the signature method using the signature system.

[0140] Each computing device 100 may also include a communication interface 108, through which a computing device 100 can exchange information with other computing devices. Exemplarily, the communication interface 108 may be a transceiver, a circuit, a bus, a module, a pin, or other types of communication interfaces. When the computing device 100 is a chip-type device or circuit, the communication interface 108 in the computing device 100 may also be an input / output circuit that can input information (or receive information) and output information (or send information). The processor is an integrated processor or microprocessor or integrated circuit or logic circuit, and the processor can determine output information based on input information.

[0141] In the embodiments of the present application, coupling refers to an indirect coupling or communication connection between devices, units, or modules, and can be electrical, mechanical, or other forms, used for information exchange between devices, units, or modules. The processor 104 may operate in conjunction with the memory 106 and the communication interface 108. The specific connection medium between the processor 104, memory 106, and communication interface 108 is not limited in the embodiments of the present application.

[0142] Optionally, referring to FIG7 , the processor 104, the memory 106, and the communication interface 108 are interconnected via a bus 102. The bus 102 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, FIG7 shows only one thick line, but this does not mean that there is only one bus or only one type of bus.

[0143] In the embodiments of the present application, the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the various methods, steps, and logic block diagrams of the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods of the embodiments of the present application may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0144] In an embodiment of the present application, the memory may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or a volatile memory (volatile memory), such as a random-access memory (RAM). The memory is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory in the embodiment of the present application may also be a circuit or any other device that can implement a storage function, for storing program instructions and / or data.

[0145] It should also be noted that the memory 106 in different computing devices 100 in the computing device cluster can store different instructions. The instructions stored in the memory 106 of a computing device 100 are used to execute part of the functions of the signature system. In other words, the instructions stored in the memory 106 of a computing device 100 can implement part of the functions of the client or the server.

[0146] Figure 8 illustrates a possible implementation. As shown in Figure 8, two computing devices 100A and 100B are connected via a communication interface 108. The memory in computing device 100A stores instructions for executing client functions. The memory in computing device 100B stores instructions for executing server functions. In other words, the memories 106 of computing devices 100A and 100B jointly store instructions for the signature system to execute the signature method.

[0147] It should be understood that the functions of the computing device 100A shown in FIG8 may also be completed by multiple computing devices 100. Similarly, the functions of the computing device 100B may also be completed by multiple computing devices 100.

[0148] Embodiments of the present application also provide a computer program product comprising instructions. The computer program product may be software or a program product comprising instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on a computing device cluster, it causes the computing device cluster to execute the aforementioned application to the signature system for executing the signature method, or causes the computing device cluster to execute the aforementioned application to the signature system for executing the signature method.

[0149] The present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device, or a data storage device such as a data center that contains one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive). The computer-readable storage medium includes instructions that instruct a computing device cluster to execute the aforementioned application to the signature system for executing the signature method, or instruct a computing device cluster to execute the aforementioned application to the signature system for executing the signature method.

[0150] In the embodiments of the present application, under the premise that there is no logical contradiction, the examples can reference each other, for example, the methods and / or terms between method embodiments can reference each other, for example, the functions and / or terms between system embodiments can reference each other, for example, the functions and / or terms between system examples and method examples can reference each other.

[0151] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the protection scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A signature method, characterized in that: include: The client receives a first message to be signed from a cloud service node; The client sends a first parameter set to the server, where the first parameter set is generated based on the first message, a first triplet, a first random number, identification information of the client, and a first private key fragment; The server sends a second parameter set to the client, where the second parameter set is generated based on the first parameter set, a second triplet, a second random number, and a second private key fragment, and the second parameter set includes a first signature component; The client generates a second signature component according to the first triplet and the second parameter set; The client sends the digital signature of the first message to the cloud service node, the digital signature of the first message includes the first signature component and the second signature component, and the digital signature of the first message is used for identity authentication of the cloud service node in the cloud server.

2. The method according to claim 1, characterized in that The first element and the second element in the first triplet are randomly generated by the client, and the first element and the second element in the second triplet are randomly generated by the server; the third element in the first triplet and the third element in the second triplet are generated based on the input and output of the first multiplier; wherein the input of the first multiplier includes the first element and the second element in the first triplet, and the first element and the second element in the second triplet.

3. The method according to claim 1 or 2, characterized in that The first private key shard is generated based on a third random number and an output of a second multiplier, and the second private key shard is generated based on a fourth random number and an output of the second multiplier; wherein the output of the second multiplier corresponds to an input of the second multiplier, and the input of the second multiplier is determined based on the third private key shard and the third random number randomly generated by the client, and the fourth private key shard and the fourth random number randomly generated by the server.

4. The method according to any one of claims 1 to 3, characterized in that: The first parameter set includes the following parameters: A first random point on an elliptic curve generated based on the first random number; a hash value generated based on the first message and the identification information of the client; a first difference between the first private key fragment and the first element in the first triplet; A second difference between the first random number and the second element in the first triplet.

5. The method according to claim 4, characterized in that The second parameter set includes the following parameters: the first signature component generated based on the first random point, the second random number and the hash value; a first intermediate value generated based on the first difference, the second private key shard, and the first element in the second triple; a second intermediate value generated based on the second difference, the second element in the second triplet, the second random number, and the first signature component; A third intermediate value is generated based on the first intermediate value, the second intermediate value, and the second triplet.

6. The method according to any one of claims 1 to 5, characterized in that: The first parameter set also includes identification information of the client, and the method further includes: The server determines, according to the identification information of the client, the second private key fragment paired with the first private key fragment.

7. The method according to any one of claims 1 to 6, characterized in that: Also includes: The client updates the first private key shard according to a key derivation function and a public random point; The server updates the second private key shard according to the key derivation function and the public random point; The public random point is a point on an elliptic curve generated based on a fifth random number and a sixth random number, the fifth random number is randomly generated by the client, and the sixth random number is randomly generated by the server.

8. A signature system, characterized in that: Including client and server; The client is used to receive a first message to be signed from a cloud service node; And, sending a first parameter set to the server, where the first parameter set is generated based on the first message, the first triplet, a first random number, identification information of the client, and a first private key fragment; The server is configured to send a second parameter set to the client, where the second parameter set is generated based on the first parameter set, a second triplet, a second random number, and a second private key fragment, and the second parameter set includes a first signature component; The client is further configured to generate a second signature component according to the first triplet and the second parameter set; and send the digital signature of the first message to the cloud service node, the digital signature of the first message including the first signature component and the The second signature component, the digital signature of the first message is used for the identity authentication of the cloud service node in the cloud server.

9. The system according to claim 8, characterized in that The first element and the second element in the first triplet are randomly generated by the client, and the first element and the second element in the second triplet are randomly generated by the server; the third element in the first triplet and the third element in the second triplet are generated based on the input and output of the first multiplier; wherein the input of the first multiplier includes the first element and the second element in the first triplet, and the first element and the second element in the second triplet.

10. The system according to claim 8 or 9, characterized in that The first private key shard is generated based on a third random number and an output of a second multiplier, and the second private key shard is generated based on a fourth random number and an output of the second multiplier; wherein the output of the second multiplier corresponds to an input of the second multiplier, and the input of the second multiplier is determined based on the third private key shard and the third random number randomly generated by the client, and the fourth private key shard and the fourth random number randomly generated by the server.

11. The system according to any one of claims 8 to 10, characterized in that: The first parameter set includes the following parameters: A first random point on an elliptic curve generated based on the first random number; a hash value generated based on the first message and the identification information of the client; a first difference between the first private key fragment and the first element in the first triplet; A second difference between the first random number and the second element in the first triplet.

12. The system according to claim 11, characterized in that The second parameter set includes the following parameters: the first signature component generated based on the first random point, the second random number and the hash value; a first intermediate value generated based on the first difference, the second private key shard, and the first element in the second triple; a second intermediate value generated based on the second difference, the second element in the second triplet, the second random number, and the first signature component; A third intermediate value is generated based on the first intermediate value, the second intermediate value, and the second triplet.

13. The system according to any one of claims 8 to 12, characterized in that: The first parameter set also includes identification information of the client. The server is further configured to determine the second private key fragment paired with the first private key fragment based on the identification information of the client.

14. The system according to any one of claims 8 to 13, characterized in that: The client is further used to update the first private key shard according to the key derivation function and the public random point; The server is further configured to update the second private key shard according to the key derivation function and the public random point; The public random point is a point on an elliptic curve generated based on a fifth random number and a sixth random number, the fifth random number is randomly generated by the client, and the sixth random number is randomly generated by the server.

15. A computing device cluster, characterized in that: comprising at least one computing device, the computing device comprising a processor and a memory; The memory of the at least one computing device is used to store computer-executable instructions; The processor of the at least one computing device is configured to execute the computer-implemented instructions so that the computing device cluster performs the method according to any one of claims 1 to 7.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes computer program instructions, and when the computer program instructions are executed by a computing device cluster, the computing device cluster is caused to perform the method according to any one of claims 1 to 7.

17. A computer program product, characterized in that The computer program product comprises instructions, and when the instructions are executed by a computing device cluster, the computing device cluster is caused to perform the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Multi-party collaborative SM2 signature and decryption method and system

    CN110971405A

  • Collaborative signature method and system based on SM2 algorithm

    CN114978488A

  • Cloud collaborative signature system and method based on national cryptographic algorithm

    CN115002759A

  • Collaborative signature method, system and device and computer readable storage medium

    CN115442052A

  • Method for two step digital signature

    US20110264917A1

Cited By

  • Handwritten signature method based on collaborative signature technology

    CN120124112A

  • Post-quantum collaborative signature method and device based on key segmentation and medium

    CN120528600A

  • Anti-quantum collaborative signature method and anti-quantum collaborative signature system

    CN120710685A