PKI-based parallel signature system and method
By introducing a PKI-based parallel signature system into the digital currency system, and utilizing the registration and deregistration mechanisms of the root key management module and the expandable signature module, the problem of digital signature performance bottlenecks and private key security being difficult to balance is solved, and a better solution is achieved. Efficient signature processing and security assurance.
Patent Information
- Application Number
- CN202011290317.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-17
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-11-17
AI Technical Summary
The performance of digital signatures in existing digital currency systems has become a bottleneck, and the security of private keys is difficult to guarantee, especially in high-security and high-performance scenarios.
Adopt a PKI-based parallel signature system, use the root key management module to register and cancel the extensible signature module, use the root private key to sign the public key certificate, reduce the risk of root private key leakage, and use the deregistration mechanism of the extensible signature module Reduce the risk of private key leakage and implement parallel signature processing of multiple modules.
It improves the security of private keys and system efficiency, reduces the risk of root private key leakage, and avoids performance bottlenecks by reducing the load on the SE chip, achieving a balance between security and performance.
Smart Images

Figure CN112258170B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to encryption technology, and in particular to a PKI-based parallel signature system and method. Background Art
[0002] Digital currency is a new generation of currency, which is equivalent to the existing circulating currency. The issuing agency will issue encrypted strings in the form of currency issuance, and these encrypted strings represent real currency with denominations. Users can store and manage these currencies in their wallets. At the same time, the issuing agency will operate the digital currency registration center to record the ownership conversion relationship of currency during the circulation process. The digital currency registration center uses strings associated with public keys to mark the ownership of currency. When using currency, users need to use their own private keys to sign transactions. The digital currency registration center will verify the transaction itself based on the currency number and the corresponding public key. After determining the identity of the currency owner, the currency ownership will be converted and the corresponding currency ownership will be marked as a new public key. In essence, the transaction payment process of digital currency is the process of transferring currency ownership.
[0003] Since the existing digital currency is a system that implements specific functions based on public key cryptographic signatures, the performance of digital signatures in the system will become an important performance bottleneck of the entire system. The existing digital signature algorithm process relies on the private key managed by the system. For security reasons, the private key needs to be properly kept and even placed in proprietary cryptographic hardware. Therefore, how to balance the existing signature mode to achieve a balance between security and performance.
[0004] The general solution for managing private keys is to use TEE or SE chips. The general TEE solution allows users to import and export private keys at will. Its implementation principle is to protect fixed memory areas and CPU register groups to prevent illegal access. This solution can ensure security to a certain extent, and its computing resources are not so valuable. It can run more than just key-related code. The computing resources in SE are more valuable. Private keys imported into SE are often not allowed to be exported at will. At the same time, SE's computing resources are also more valuable and its performance is not high. However, SE is often needed in scenarios with high security requirements. This scenario may also have high-performance scenario requirements, so it is necessary to balance performance and security in this case.
[0005] Public key infrastructure is a digital certificate system based on digital signatures. The security of distributed public keys is guaranteed through CA signature authentication. As long as the security of the root public key is guaranteed, the trustworthiness of all public keys under the entire public key tree can be guaranteed. In essence, a digital certificate is a data structure that binds a public key to authentication information. Through this model, digital certificates can form a chained data authentication model to ensure the security of user public keys.
[0006] In summary, each digital signature of existing cryptography requires the participation of a private key, which leads to the risk of leakage of the root private key. Considering the need for high security, placing the private key in hardware will be subject to the performance limitations of the security protection hardware, and this performance limitation is difficult to break directly. Due to the sensitivity of private keys, deploying private keys in parallel will inevitably threaten the confidentiality of private keys, and a simple password encryption service will become a performance bottleneck for the system. Summary of the invention
[0007] In view of this, in order to solve at least one of the above technical problems, the purpose of the present application is to provide a PKI-based parallel signature system and method to improve private key security and system efficiency.
[0008] In a first aspect, the embodiments of the present application provide:
[0009] A PKI-based parallel signature system, comprising:
[0010] A root key management module, used for registering and deregistering the extensible signature module, wherein the root key management module uses the root private key to sign the public key certificate of the extensible signature module when processing the registration of the extensible signature module;
[0011] An extensible signature module, used to request registration and cancellation from the root private key module, and to sign data using its own private key, where different extensible signature modules have different private keys and different public key certificates;
[0012] The signature request gateway is used to receive the signature request from the external system, select an extensible signature module according to the signature request to sign the data in the signature request, and return the data signed by the extensible signature module to the external system.
[0013] In some embodiments, when the root key management module performs registration processing on the extensible signature module, it includes:
[0014] The root key management module receives a private key derivation request from the extensible signature module;
[0015] The root key management module obtains the public key certificate and logo of the extensible signature module from the private key derivation request;
[0016] The root key management module signs the public key certificate of the extensible signature module using the root private key;
[0017] The root key management module sends the public key certificate signed by the root private key to the extensible signature module;
[0018] The root key management module records the public key certificate and the logo of the extensible signature module in the extensible signature module list.
[0019] In some embodiments, when the root key management module performs a deregistration process on the extensible signature module, it includes:
[0020] The root key management module receives a destruction request of the extensible signature module;
[0021] The root key management module obtains the public key certificate of the extensible signature module from the destruction request;
[0022] The root key management module verifies the validity of the extensible signature module based on the public key certificate and the extensible signature module list obtained from the destruction request;
[0023] When the extensible signature module sending the destruction request is valid, the root key management module generates a revocation certificate according to the destruction request;
[0024] The root key management module signs the revocation certificate using the root private key and returns it to the extensible signature module that sends the destruction request;
[0025] The root key management module removes the extensible signature module that sends the destruction request from the extensible signature module list or marks it as invalid.
[0026] In some embodiments, when the extensible signature module requests registration from the root private key module, it includes:
[0027] The extensible signature module generates a unique mark, randomly generates a private key and a public key certificate corresponding to the private key;
[0028] The extensible signature module sends a private key derivation request to the root key management module, and the registration request carries the public key certificate and the flag;
[0029] The extensible signature module stores the public key certificate signed by the root key management module using the root private key;
[0030] The extensible signature module sends the public key certificate signed by the root private key to the signature request gateway for registration;
[0031] The extensible signature module monitors the signature request from the signature request gateway and performs signature processing using its own private key.
[0032] In some embodiments, when the extensible signature module requests the root private key module to cancel, it includes:
[0033] The extensible signature module generates a destruction request according to its own logo and public key certificate;
[0034] The extensible signature module signs the destruction request using its own private key and sends it to the root key management module;
[0035] The extensible signature module receives the revocation certificate of the root key management module;
[0036] The extensible signature module sends the revocation certificate to the signature request gateway to destroy the public key certificate stored in the signature request gateway;
[0037] The extensible signature module stops service.
[0038] In some embodiments, the signature request gateway stores a mapping table of extensible signature modules, in which the flags of all extensible signature modules and the public key certificate corresponding to each extensible signature module are recorded.
[0039] In some embodiments, the step of selecting an extensible signature module according to the signature request to sign the data in the signature request is as follows:
[0040] Get the data to be signed from the signature request and convert it into a hash value;
[0041] An extensible signature module is selected to sign the hash value.
[0042] In some embodiments, the root key management module runs based on an SE chip.
[0043] In some embodiments, the signature request gateway sends the public key certificate of the extensible signature module while returning the data signed by the extensible signature module to the external system.
[0044] In a second aspect, the embodiments of the present application provide:
[0045] A PKI-based parallel signature method, implemented by the above system, includes the following steps:
[0046] The root key management module registers at least one extensible signature module and signs the public key certificate of each extensible signature module;
[0047] The signature request gateway receives a signature request from an external system, selects an extensible signature module according to the signature request to sign the data in the signature request, and returns the data signed by the extensible signature module to the external system.
[0048] The embodiment of the present application performs signature management on the extensible signature module by setting up a root key management module, and private keys can be derived through the extensible signature module, so that multiple extensible signature modules can perform specific signature processing. On the one hand, since the root private key is only used for the extensible signature module within the system, the risk of leakage is reduced. Moreover, by adopting the architecture of this solution, the root key management module can be deployed in the SE chip for operation. Since the processing amount for signing the extensible signature module certificate is relatively small, the cost of the SE chip will not be greatly increased. The cancellation mechanism of the extensible signature module can reduce the risk of private key leakage of the extensible signature module to a certain extent, and multiple extensible signature modules can implement parallel signature processing based on the existing PKI (public key infrastructure). BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application, a brief introduction will be given below to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0050] Figure 1 It is a structural diagram of a PKI-based parallel signature system provided in an embodiment of the present application;
[0051] Figure 2 It is a flow chart of a registration process of an extensible signature module provided in an embodiment of the present application;
[0052] Figure 3 This is a flowchart of a cancellation process of an extensible signature module provided in an embodiment of the present application;
[0053] Figure 4 This is a flowchart of a PKI-based parallel signature method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described through the implementation method with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
[0055] Reference Figure 1 This embodiment discloses a PKI-based parallel signature system, which is compatible with the current PKI. The system includes:
[0056] A root key management module, used for registering and deregistering the extensible signature module, wherein the root key management module uses the root private key to sign the public key certificate of the extensible signature module when processing the registration of the extensible signature module;
[0057] An extensible signature module, used to request registration and cancellation from the root private key module, and to sign data using its own private key, where different extensible signature modules have different private keys and different public key certificates;
[0058] The signature request gateway is used to receive the signature request from the external system, select an extensible signature module according to the signature request to sign the data in the signature request, and return the data signed by the extensible signature module to the external system.
[0059] It should be understood that the root private key of the root key management module in this system is stored in the SE chip, while the extensible signature module can run based on the TEE solution. This ensures that the security of the root private key is relatively high. Even if the derived private key of the extensible signature module is leaked, data security can be guaranteed by canceling the certificate of the extensible signature module. It should be understood that the root key management module can cancel the extensible signature module according to a certain period, that is, the cancellation time can be determined when the extensible signature module is registered. Different extensible signature modules can have different life cycles and can be cancelled at any time as needed.
[0060] The embodiment of the present application performs signature management on the extensible signature module by setting up a root key management module, and private keys can be derived through the extensible signature module, so that multiple extensible signature modules can perform specific signature processing. On the one hand, since the root private key is only used for the extensible signature module within the system, the risk of leakage is reduced. Moreover, by adopting the architecture of this solution, the root key management module can be deployed in the SE chip for operation. Since the processing amount of signing the extensible signature module is relatively small, the cost of the SE chip will not be greatly increased. The cancellation mechanism of the extensible signature module can protect the risk of private key leakage of the extensible signature module to a certain extent, and multiple extensible signature modules can implement parallel signature processing based on the existing PKI (public key infrastructure).
[0061] The root key management module manages the core root private key of the system, which needs to be strictly protected. In actual applications, the root private key can be stored in the SE hardware chip so that the root private key cannot be exported, ensuring the overall security of the root private key. At the same time, the root key management module is responsible for signing the unsigned certificate of the extensible signature module and managing the information of the extensible signature module.
[0062] The root key management module also needs to record an extensible signature module list, which will record which extensible signature modules are valid online and how many extensible signature modules have been deregistered offline.
[0063] The root key management module records the generation of the root private key and its associated public key certificate. This public key certificate must be a self-signed certificate or a certificate signed by another CA.
[0064] Reference Figure 2 In some embodiments, when the root key management module performs registration processing on the extensible signature module, it includes:
[0065] The root key management module receives a private key derivation request from the extensible signature module;
[0066] The root key management module obtains the public key certificate and flag of the extensible signature module from the private key derivation request; in some embodiments, the root key management module checks whether the flag is stored in the extensible signature module list, and if so, returns identification, otherwise executes the next step.
[0067] The root key management module signs the public key certificate of the extensible signature module using the root private key;
[0068] The root key management module sends the public key certificate signed by the root private key to the extensible signature module;
[0069] The root key management module records the public key certificate and the logo of the extensible signature module in the extensible signature module list.
[0070] This embodiment is described from the perspective of the root key management module. It can be understood that corresponding processing is performed in the extensible signature module.
[0071] Also in Figure 2 As can be seen in some embodiments, when the extensible signature module requests registration from the root private key module, it includes:
[0072] The extensible signature module generates a unique logo, randomly generates a private key and a public key certificate corresponding to the private key; wherein the logo can be generated by a logo generation method of any distributed system.
[0073] The extensible signature module sends a private key derivation request to the root key management module, and the registration request carries the public key certificate and the flag;
[0074] The extensible signature module stores the public key certificate signed by the root key management module using the root private key;
[0075] The extensible signature module sends the public key certificate signed by the root private key to the signature request gateway for registration;
[0076] The extensible signature module monitors the signature request from the signature request gateway and performs signature processing using its own private key.
[0077] This embodiment describes the registration process from the perspective of an extensible signature module.
[0078] Through the above processing, the extensible signature module can be dynamically registered and deregistered. By controlling the number of extensible signature modules, the processing speed of data signatures can be improved. By managing the life cycle of extensible signature modules, the risk of leakage of derived private keys can be reduced.
[0079] The following describes the logout process:
[0080] In some embodiments, from the perspective of the root key management module, when the root key management module performs a deregistration process on the extensible signature module, it includes:
[0081] The root key management module receives a destruction request of the extensible signature module;
[0082] The root key management module obtains the public key certificate of the extensible signature module from the destruction request;
[0083] The root key management module verifies the validity of the extensible signature module based on the public key certificate and the extensible signature module list obtained from the destruction request;
[0084] When the extensible signature module sending the destruction request is valid, the root key management module generates a revocation certificate according to the destruction request;
[0085] The root key management module signs the revocation certificate using the root private key and returns it to the extensible signature module that sends the destruction request;
[0086] The root key management module removes the extensible signature module that sends the destruction request from the extensible signature module list or marks it as invalid.
[0087] In some embodiments, Figure 3 As shown, it is described from the perspective of the extensible signature module. When the extensible signature module requests the root private key module to cancel, it includes:
[0088] The extensible signature module generates a destruction request according to its own logo and public key certificate;
[0089] The extensible signature module signs the destruction request using its own private key and sends it to the root key management module;
[0090] The extensible signature module receives the revocation certificate of the root key management module;
[0091] The extensible signature module sends the revocation certificate to the signature request gateway to destroy the public key certificate stored in the signature request gateway;
[0092] The extensible signature module stops service.
[0093] It can be seen from the above embodiments that through the above deregistration mechanism, the extensible signature module with the risk of private key leakage can be flexibly deregistered, thereby improving the security of the system.
[0094] In some embodiments, the signature request gateway stores a mapping table of extensible signature modules, in which the flags of all extensible signature modules and the public key certificates corresponding to each extensible signature module are recorded. It should be understood that different extensible signature modules are modules that specifically process signatures, which is equivalent to authenticating the extensible signature module through the root key management module, while the data of the external system is signed by the private key of the extensible signature module. Therefore, even if the private key of the extensible signature module is leaked, the security loophole can be plugged by canceling the extensible signature module.
[0095] In some embodiments, the step of selecting an extensible signature module according to the signature request to sign the data in the signature request is as follows:
[0096] Get the data to be signed from the signature request and convert it into a hash value;
[0097] An extensible signature module is selected to sign the hash value.
[0098] It is understandable that the amount of data that needs to be signed may be relatively large. In order to ensure the overall efficiency of the system and reduce the amount of data transmitted, the data that needs to be signed can be replaced with the corresponding hash value according to the design of different signature algorithms. This method can minimize the amount of data transmission and ensure the overall performance of the system.
[0099] In some embodiments, the root key management module runs based on an SE chip.
[0100] In some embodiments, the signature request gateway sends the public key certificate of the extensible signature module while returning the data signed by the extensible signature module to the external system.
[0101] The signature request gateway is responsible for receiving external signature requests, completing the calculation of the hash value part of the signature request, selecting an extensible signature module, and sending the data to be signed to the extensible signature module. It is also responsible for returning the corresponding certificate of the signed extensible signature module to the requester.
[0102] The signature request gateway has a mapping table of extensible signature modules, which records the flags of all extensible signature modules and the public key certificates corresponding to the extensible signature modules. The external system can obtain the corresponding public key certificate based on the flag of the extensible signature module. The obtained public key certificate can be verified according to the following logic, and this verification logic can also be performed by the external system:
[0103] Read the root public key certificate index corresponding to the public key certificate, and obtain the corresponding root certificate from the network or the built-in environment of the device.
[0104] Use the root certificate to verify whether the current public key certificate is signed by the root public key certificate.
[0105] The advantage of this verification logic is that it complies with the verification method of the certificate chain in the existing public key infrastructure, and basically does not require any modification to the external system.
[0106] When the signature request gateway receives the signature request information from the external system, the specific signature execution process is as follows:
[0107] Read the request information that needs to be signed and calculate the hash value corresponding to the signature information.
[0108] The signature request gateway selects an online extensible signature module based on the distributed system node selection algorithm and sends the hash value or the real signature data to it.
[0109] After obtaining the signed digital signature, the corresponding extensible signature module certificate is read and returned to the requester.
[0110] Reference Figure 4 This embodiment discloses a PKI-based parallel signature method, which is implemented by the above system and includes the following steps:
[0111] The root key management module registers at least one extensible signature module and signs the public key certificate of each extensible signature module;
[0112] The signature request gateway receives a signature request from an external system, selects an extensible signature module according to the signature request to sign the data in the signature request, and returns the data signed by the extensible signature module to the external system.
[0113] It can be understood that the above method is based on system implementation and can achieve the technical effect corresponding to the system embodiment.
[0114] Through the above description of the implementation method, the technicians in the relevant field can clearly understand that the present application can be implemented with the help of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0115] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.
Claims
1. A PKI-based parallel signature system, characterized in that: include: A root key management module, used to perform registration and deregistration processing on the extensible signature module, wherein the root key management module uses the root private key to sign the public key certificate of the extensible signature module when processing the registration of the extensible signature module; An extensible signature module, used to request registration and deregistration from the root key management module, and to sign data using its own private key, where different extensible signature modules have different private keys and different public key certificates; The signature request gateway is used to receive the signature request from the external system, select an extensible signature module according to the signature request to sign the data in the signature request, and return the data signed by the extensible signature module to the external system.
2. The PKI-based parallel signature system according to claim 1, characterized in that: When the root key management module performs registration processing on the extensible signature module, it includes: The root key management module receives a private key derivation request from the extensible signature module; The root key management module obtains the public key certificate and logo of the extensible signature module from the private key derivation request; The root key management module signs the public key certificate of the extensible signature module using the root private key; The root key management module sends the public key certificate signed by the root private key to the extensible signature module; The root key management module records the public key certificate and the logo of the extensible signature module in the extensible signature module list.
3. The PKI-based parallel signature system according to claim 2, characterized in that: When the root key management module performs a deregistration process on the extensible signature module, it includes: The root key management module receives a destruction request of the extensible signature module; The root key management module obtains the public key certificate of the extensible signature module from the destruction request; The root key management module verifies the validity of the extensible signature module based on the public key certificate and the extensible signature module list obtained from the destruction request; When the extensible signature module sending the destruction request is valid, the root key management module generates a revocation certificate according to the destruction request; The root key management module signs the revocation certificate using the root private key and returns it to the extensible signature module that sends the destruction request; The root key management module removes the extensible signature module that sends the destruction request from the extensible signature module list or marks it as invalid.
4. The PKI-based parallel signature system according to claim 1, characterized in that: When the extensible signature module requests registration from the root key management module, it includes: The extensible signature module generates a unique mark, randomly generates a private key and a public key certificate corresponding to the private key; The extensible signature module sends a private key derivation request to the root key management module, and the registration request carries the public key certificate and the flag; The extensible signature module stores the public key certificate signed by the root key management module using the root private key; The extensible signature module sends the public key certificate signed by the root private key to the signature request gateway for registration; The extensible signature module monitors the signature request from the signature request gateway and performs signature processing using its own private key.
5. The PKI-based parallel signature system according to claim 4, characterized in that: When the extensible signature module requests the root key management module to cancel, it includes: The extensible signature module generates a destruction request according to its own logo and public key certificate; The extensible signature module signs the destruction request using its own private key and sends it to the root key management module; The extensible signature module receives the revocation certificate of the root key management module; The extensible signature module sends the revocation certificate to the signature request gateway to destroy the public key certificate stored in the signature request gateway; The extensible signature module stops service.
6. The PKI-based parallel signature system according to claim 1, characterized in that: The signature request gateway stores a mapping table of extensible signature modules, in which the flags of all extensible signature modules and the public key certificate corresponding to each extensible signature module are recorded.
7. The PKI-based parallel signature system according to claim 6, characterized in that: The step of selecting an extensible signature module according to the signature request to sign the data in the signature request is as follows: Get the data to be signed from the signature request and convert it into a hash value; An extensible signature module is selected to sign the hash value.
8. The PKI-based parallel signature system according to claim 1, characterized in that: The root key management module runs based on the SE chip.
9. The PKI-based parallel signature system according to claim 1, characterized in that: The signature request gateway sends the public key certificate of the extensible signature module while returning the data signed by the extensible signature module to the external system.
10. A PKI-based parallel signature method, implemented by the system as claimed in claim 1, characterized in that: The following steps are involved: The root key management module registers at least one extensible signature module and signs the public key certificate of each extensible signature module; The signature request gateway receives a signature request from an external system, selects an extensible signature module according to the signature request to sign the data in the signature request, and returns the data signed by the extensible signature module to the external system.
Citation Information
Patent Citations
Secret key certificate generating method and system for home gateway
CN101771541A
Digital signature method and system
CN106921496A
