A method and system for generating an implicit certificate for data encryption

By adopting implicit certificate generation methods and systems in IoT devices, and using multi-layer authentication processes and national secret algorithms to reconstruct public and private keys, the problem of the traditional certificate model being difficult to implement in IoT devices is solved, and efficient identity authentication is achieved. and data encryption, improving security and management efficiency.

CN118540168BActive Publication Date: 2024-10-29CHINA TRANSPORT INFORMATION TECH GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411011312.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-10-29
Estimated Expiration
2044-07-26

AI Technical Summary

Technical Problem

In IoT scenarios, the traditional identity authentication model based on digital certificates is difficult to implement effectively due to the limited computing and storage capabilities of the device, and it is difficult to ensure the security of the data interaction process.

Method used

Using implicit certificate generation methods and systems, through the multi-layer authentication process between the terminal equipment management platform and the PKI/CA system, implicit signature certificates and implicit encryption certificates are generated and managed, and the public and private keys are reconstructed using the national secret algorithm. Achieve fast signature verification and efficient identity authentication.

Benefits of technology

It achieves efficient identity authentication and data encryption in IoT devices, reduces storage and transmission bandwidth requirements, optimizes the identity authentication system architecture, and improves security and management efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540168B_ABST
    Figure CN118540168B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for generating an implicit certificate for data encryption, wherein the method includes a terminal device applying to a PKI / CA system through a terminal device management platform and obtaining a signature certificate, the terminal device initiating an encryption certificate application to the terminal management platform, the terminal management platform generating a pre-encrypted public key based on the encryption certificate application, and sending the pre-encrypted public key to the PKI / CA system for a device encryption certificate application, the PKI / CA system registering an implicit encryption certificate and generating a CA private key reconstruction value, and sending the value to the terminal management platform, the terminal management platform backing up the implicit encryption certificate and generating a terminal device encryption private key and sending the value to the terminal device, the terminal device decrypting the private key to obtain the terminal device encryption private key and generating the terminal device encryption public key. The present invention adopts an implicit certificate implemented by a national secret algorithm, and is divided into a signature certificate and an encryption certificate according to the function, and supports the issuance of encryption certificate keys through a signature certificate, thereby realizing the localization of multi-layer management of implicit certificates.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information security technology, and in particular to a method and system for generating an implicit certificate for data encryption. Background Art

[0002] In the IoT scenario, there are a large number of heterogeneous devices, such as DTU, RTU and industrial gateway, which carry the task of transmitting information data between different platforms and devices. However, in the current increasingly severe network security environment, it is particularly important to ensure the security of the data interaction process between various endpoints. Considering that the computing power and storage capacity of IoT devices are usually limited, the traditional identity authentication model based on digital certificates is difficult to implement effectively in this environment.

[0003] Based on the strategic consideration of national information security, a digital certificate with national security and national secret standards, namely the national secret certificate, was proposed. Compared with the digital certificate with international standards, the national secret certificate adopts the cryptographic algorithm and security standards independently developed by China, such as SM2, SM3 and SM4. Different from the traditional digital certificate, the national secret certificate is divided into signature certificate and encryption certificate according to the functions of identity authentication and secure communication. The two are different in terms of application subject and function, so it is necessary to discuss the implementation of signature certificate and encryption certificate separately. Summary of the invention

[0004] In order to overcome the deficiencies of the above technologies, the present invention provides an implicit certificate generation method and system for data encryption, which uses implicit certificates to improve the speed of signature verification, is small in size, and occupies less bandwidth. Under the premise of realizing multi-layer system authentication, hierarchical management is realized. The PKI / CA system is only responsible for the terminal management platform, and the terminal management platform is responsible for the information of the Internet of Things devices. In this way, the device authentication mode is systematically improved, which is conducive to overall management and effectively reduces the storage and transmission of redundant information.

[0005] The technical solution adopted by the present invention to overcome its technical problems is: the first aspect of the present invention proposes a method and system for generating an implicit certificate for data encryption, including: the terminal device applies for a signature certificate from the PKI / CA system at least through a terminal device management platform and obtains an implicit signature certificate; the terminal device sends the device information and the implicit signature certificate to the terminal management platform to initiate an encryption certificate application; the terminal management platform verifies the signature certificate, thereby generating a pre-encrypted private key and a pre-encrypted public key; the terminal management platform sends the device information and the pre-encrypted public key to the PKI / CA system to initiate a terminal device encryption certificate application; the PKI / CA system generates a CA temporary encryption private key based on the terminal device encryption certificate application to obtain a CA temporary encryption public key, and calculates an encrypted public key reconstruction value based on the CA temporary encryption public key and the pre-encrypted public key to register the implicit encryption certificate , and generate a CA encrypted private key reconstruction value based on the implicit encryption certificate, and encrypt the CA encrypted private key reconstruction value based on the terminal management platform signature public key to obtain the CA encrypted private key reconstruction value ciphertext; the PKI / CA system sends the implicit encryption certificate and the CA encrypted private key reconstruction value ciphertext to the terminal management platform; the terminal management platform backs up the implicit encryption certificate, and generates the terminal device encrypted private key based on the CA encrypted private key reconstruction value ciphertext, and encrypts the terminal device encrypted private key based on the terminal device signature public key to obtain the terminal device encrypted private key ciphertext; the terminal management platform sends the implicit encryption certificate and the terminal device encrypted private key ciphertext to the terminal device; the terminal device decrypts the terminal device encrypted private key ciphertext based on the terminal device signature private key to obtain the terminal device encrypted private key, and generates the terminal device encrypted public key based on the encrypted public key reconstruction value in the implicit encryption certificate and the CA root encryption certificate public key.

[0006] Combine implicit certificates with national encryption algorithms, and transform the multi-layer management of implicit certificates into domestic applications. The implicit certificate scheme uses implicit certificates as the signature certificates and encryption certificates of IoT devices. The public and private key operations and identity authentication are completed through public and private key reconstruction, and certificate verification is completed through public and private key matching.

[0007] Furthermore, the terminal management platform verifies the signature certificate to generate a pre-encrypted private key and a pre-encrypted public key, specifically including: the terminal management platform calculates the terminal device signature public key; based on the backup terminal device signature certificate and the received implicit signature certificate, the terminal device signature public key is compared and verified. If the identity authentication passes, the terminal management platform generates a pre-encrypted private key, and obtains a pre-encrypted public key based on the pre-encrypted private key; if the identity authentication fails, the encrypted certificate application message is discarded.

[0008] The PKI / CA system generates a CA temporary encryption private key based on the terminal device encryption certificate application to obtain the CA temporary encryption public key, calculates the encrypted public key reconstruction value based on the CA temporary encryption public key and the pre-encrypted public key to register the implicit encryption certificate, and generates a CA encryption private key reconstruction value based on the implicit encryption certificate, and encrypts the CA encryption private key reconstruction value based on the terminal management platform signature public key to obtain the CA encryption private key reconstruction value ciphertext, specifically including: the PKI / CA system obtains the pre-encrypted public key based on the terminal device encryption certificate application message; the PKI / CA system generates a random number as the CA temporary encryption private key to calculate the CA temporary encryption public key; calculates the encrypted public key reconstruction value based on the pre-encrypted public key and the CA temporary encryption public key; registers the implicit encryption certificate based on the encrypted public key reconstruction value; calculates the implicit encryption certificate hash value based on the implicit encryption certificate, and generates the CA encryption private key reconstruction value based on the implicit encryption certificate hash value, the CA temporary encryption private key and the CA root encryption certificate private key; encrypts the CA encryption private key reconstruction value based on the terminal management platform signature public key to obtain the CA encryption private key reconstruction value ciphertext.

[0009] Furthermore, the terminal management platform backs up the implicit encryption certificate, generates the terminal device encryption private key based on the CA encryption private key reconstruction value ciphertext, and encrypts the encrypted private key based on the terminal device signature public key to obtain the terminal device encryption private key ciphertext, specifically including: the terminal management platform verifies the integrity of the implicit encryption certificate, and verifies the signature of the received implicit encryption certificate issued by the PKI / CA system; backs up the implicit encryption certificate that has passed the integrity verification and signature verification, so as to correspond the terminal device to the implicit encryption certificate; decrypts the CA encryption private key reconstruction value ciphertext based on the terminal management platform signature private key to obtain the CA encryption private key reconstruction value; generates the terminal device encryption private key based on the implicit encryption certificate hash value, the pre-encrypted private key and the CA encryption private key reconstruction value; encrypts the terminal device encryption private key based on the terminal device signature public key to obtain the terminal device encryption private key ciphertext.

[0010] Furthermore, the terminal device decrypts the terminal device encrypted private key ciphertext based on the terminal device signature private key to obtain the terminal device encrypted private key, and generates the terminal device encrypted public key based on the encrypted public key reconstruction value, specifically including: the terminal device verifies the integrity of the received implicit encryption certificate and verifies the signature; if the integrity verification and the signature verification are both passed, the terminal device encrypted private key is decrypted based on the terminal device signature private key to obtain the terminal device encrypted private key; the terminal device encrypted public key is calculated based on the encrypted public key reconstruction value in the implicit encryption certificate and the CA root encryption certificate public key; and the terminal device encryption key is obtained after verifying the terminal device encrypted public key.

[0011] Furthermore, the terminal device applies for a signature certificate from the PKI / CA system at least through the terminal device management platform and obtains an implicit signature certificate, which specifically includes: the terminal device generates a pre-signed private key, and calculates a pre-signed public key based on the pre-signed private key; the terminal device at least encapsulates the device information and the pre-signed public key information and initiates a signature certificate application request to the terminal management platform; the terminal management platform generates a platform temporary signature private key based on the signature certificate application request, and calculates a platform temporary signature public key based on the platform temporary signature private key; the terminal management platform at least encapsulates the pre-signed public key, the platform temporary signature public key and the device information and sends the package to the terminal management platform. Request the PKI / CA system to apply for a terminal device signature certificate; the PKI / CA system generates a CA temporary signature private key based on the signature certificate application to obtain a CA temporary signature public key, calculates a signature public key reconstruction value based on the CA temporary signature public key, the platform temporary signature public key and the pre-signature public key, and registers an implicit signature certificate, generates a CA signature private key reconstruction value based on the implicit signature certificate and the CA temporary signature private key, and encrypts the CA signature private key reconstruction value based on the pre-signature public key to obtain a CA signature private key reconstruction value ciphertext; the PKI / CA system sends the implicit signature certificate and the CA signature private key reconstruction value ciphertext to the terminal management platform; The terminal management platform backs up the implicit signature certificate, and generates a platform signature private key reconstruction value based on the implicit signature certificate and the platform temporary signature private key, and encrypts the platform signature private key reconstruction value based on the pre-signed public key to obtain the platform signature private key reconstruction value ciphertext; the terminal management platform sends the encapsulated information including at least the implicit signature certificate, the platform signature private key reconstruction value ciphertext and the CA signature private key reconstruction value ciphertext to the terminal device; the terminal device decrypts the received encapsulated message based on the pre-signed private key to obtain the platform signature private key reconstruction value and the CA signature private key reconstruction value, and generates the terminal device signature private key and the terminal device signature public key respectively based on the implicit signature certificate, the CA signature private key reconstruction value, the platform signature private key reconstruction value and the pre-signed private key; the terminal device verifies the terminal device signature public key to obtain the terminal device signature key.

[0012] The issuance of encryption certificate keys is supported by signature certificates. The public key reconstruction value and the corresponding private key reconstruction value used for the signature certificate are composed of the terminal device, the terminal management platform and the PKI / CA system.

[0013] Further, the PKI / CA system generates a CA temporary signature private key based on the signature certificate application to obtain a CA temporary signature public key, calculates a signature public key reconstruction value based on the CA temporary signature public key, the platform temporary signature public key and the pre-signature public key to register an implicit signature certificate, generates a CA signature private key reconstruction value based on the implicit signature certificate and the CA temporary signature private key, and encrypts the CA signature private key reconstruction value based on the pre-signature public key to obtain a CA signature private key reconstruction value ciphertext, specifically including: the PKI / CA system obtains the pre-signature public key and the platform temporary signature public key according to the signature certificate application message; the PKI / CA system generates a random number as the CA temporary signature private key, based on the CA temporary signature public key, the platform temporary signature public key and the pre-signature public key A temporary signature private key calculates CA temporary signature public key; based on the pre-signature public key, the platform temporary signature public key and the CA temporary signature public key, the terminal device public key reconstruction value is calculated; based on the terminal device public key reconstruction value, the implicit signature certificate is calculated and registered; based on the implicit signature certificate, the implicit signature certificate hash value is calculated, and based on the implicit signature certificate hash value, the CA temporary signature private key and the CA root signature certificate private key, the CA signature private key reconstruction value is calculated and generated; based on the pre-signature public key, the CA signature private key reconstruction value is encrypted to obtain the CA signature private key reconstruction value ciphertext; the PKI / CA system encapsulates the information including at least the implicit signature certificate and the CA signature private key reconstruction value ciphertext and sends it to the terminal management platform.

[0014] Furthermore, the terminal management platform backs up the implicit signature certificate, and generates a platform signature private key reconstruction value based on the implicit signature certificate and the platform temporary signature private key, and encrypts the platform signature private key reconstruction value based on the pre-signed public key to obtain the platform signature private key reconstruction value ciphertext, specifically including: the terminal management platform verifies the integrity of the implicit signature certificate, and verifies the signature of the implicit signature certificate issued by the received PKI / CA system; backs up after the integrity verification and signature verification are successful, so as to correspond the terminal device to the implicit signature certificate; generates a platform signature private key reconstruction value based on the implicit signature certificate, the platform temporary signature private key and the terminal management platform signature private key, and encrypts the platform signature private key reconstruction value based on the pre-signed public key to obtain the platform signature private key reconstruction value ciphertext.

[0015] Furthermore, the terminal device decrypts the received encapsulated message based on the pre-signed private key to obtain the platform signature private key reconstruction value and the CA signature private key reconstruction value, and generates the terminal device signature private key and the terminal device signature public key respectively based on the implicit signature certificate, the CA signature private key reconstruction value, the platform signature private key reconstruction value and the pre-signed private key, specifically including: the terminal device decrypts based on the pre-signed private key to obtain the platform signature private key reconstruction value and the CA signature private key reconstruction value; the terminal device signature private key is calculated based on the implicit signature certificate hash value, the platform signature private key reconstruction value, the pre-signed private key and the CA signature private key reconstruction value; the terminal device signature public key is calculated based on the implicit signature certificate hash value, the signature public key reconstruction value in the implicit signature certificate, the CA root signature certificate public key and the terminal management platform signature public key.

[0016] The second aspect of the present invention further proposes an implicit certificate generation system for data encryption, which is used to run the above-mentioned implicit certificate generation method for data encryption, including several terminal devices, several terminal management platforms that respectively manage IoT terminal devices, and a PKI / CA system connected to the terminal management platform, wherein the terminal device is used to generate a pre-signed key, and send a signed certificate application to the terminal management platform based on device information and a pre-signed public key, and obtain the terminal device signing key based on the returned implicit signed certificate, the platform signed private key reconstruction value ciphertext, and the CA signed private key reconstruction value ciphertext; and, initiate an encryption certificate application to the terminal management platform based on the signed certificate and device information, and obtain the terminal device encryption key based on the returned implicit encryption certificate and the terminal device encryption private key ciphertext;

[0017] Terminal management platform: used to verify and sign the signature certificate application and encryption certificate application sent by the terminal device.

[0018] And generate a temporary platform signature private key according to the signature certificate application, thereby obtaining a temporary platform signature public key, generate a pre-encrypted private key according to the encryption certificate application, thereby obtaining a pre-encrypted public key, and apply for a signature certificate and encryption certificate from the PKI / CA system, as well as verify and back up the returned implicit signature certificate and implicit encryption certificate,

[0019] And, it is used to generate the platform signature private key reconstruction value ciphertext based on the returned implicit signature certificate and the platform temporary signature private key, the terminal management platform signature private key and the pre-signed public key, and send the implicit signature certificate, CA signature private key reconstruction value ciphertext and platform signature private key reconstruction value ciphertext to the terminal device,

[0020] Alternatively, it is used to generate an encrypted private key ciphertext based on the returned implicit encryption certificate and the CA encrypted private key reconstruction value ciphertext, the pre-encrypted private key and the terminal device signature public key, and to send the implicit encryption certificate and the encrypted private key ciphertext to the terminal device;

[0021] PKI / CA system: used to generate a CA temporary signature private key based on the signature certificate application, and obtain the CA temporary signature public key based on the CA temporary signature private key, and calculate the signature public key reconstruction value based on the CA temporary signature public key, the platform temporary signature public key and the pre-signature public key, so as to register the implicit signature certificate and calculate the CA signature private key reconstruction value ciphertext, and send the implicit signature certificate and CA signature private key reconstruction value ciphertext to the terminal management platform,

[0022] And, it is used to generate a CA temporary encryption private key based on the encryption certificate application, thereby obtaining the CA temporary encryption public key, calculate the encrypted public key reconstruction value based on the CA temporary encryption public key and the pre-encrypted public key to register the implicit encryption certificate, and generate the CA encryption private key reconstruction value ciphertext based on the implicit encryption certificate, CA temporary encryption private key, CA root encryption certificate private key and terminal management platform signature public key, and send the implicit encryption certificate and CA encryption private key reconstruction value ciphertext to the corresponding terminal management platform.

[0023] The beneficial effects of the present invention are:

[0024] 1. The present invention realizes the combination of implicit certificates with national secret algorithms, and the domestic application transformation of multi-layer management implicit certificates. The implicit certificate scheme uses implicit certificates as the signature certificate and encryption certificate of the IoT device, completes the calculation of public and private keys and identity authentication through public and private key reconstruction, and completes certificate verification through public and private key matching;

[0025] 2. The public key reconstruction value and the corresponding private key reconstruction value used for the signature certificate are composed of the terminal device, the terminal management platform and the PKI / CA system. The public key reconstruction value and the corresponding private key reconstruction value used for the encryption certificate are composed of the terminal management platform and the PKI / CA system. The signature certificate supports the issuance of the encryption certificate key. The two functions complement each other and effectively realize the localization of multi-layer management of implicit certificates;

[0026] 3. The implicit certificate has small storage space, high signature verification speed and is compatible with standard certificate formats;

[0027] 4. The upper-level system authenticates the device through public and private key reconstruction values, and does not need to be directly responsible for system or device information other than the directly subordinate lower-level system, which optimizes the identity authentication system architecture. This multi-layer management model greatly reduces the security burden of CA and device management platform. Compared with a single authentication architecture, it improves security and establishes a more complete management system. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 A schematic diagram of a process of obtaining an encryption certificate by a terminal device in a method for generating an implicit certificate for data encryption according to an embodiment of the present invention;

[0029] Figure 2A flowchart of a terminal device acquiring a signature certificate in a method for generating an implicit certificate for data encryption according to an embodiment of the present invention;

[0030] Figure 3 A schematic diagram of the implicit certificate generation system architecture for applying for a signature certificate for a terminal device according to an embodiment of the present invention;

[0031] Figure 4 A schematic diagram of the implicit certificate generation system architecture for applying for an encryption certificate for a terminal device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0032] In order to facilitate those skilled in the art to better understand the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The following is only exemplary and does not limit the protection scope of the present invention.

[0033] like Figure 1 As shown, a flow chart of a method for generating an implicit certificate for data encryption described in this embodiment, wherein the encryption certificate in the implicit certificate serves as an important basis for key negotiation and data encryption, and plays an indispensable role in the national secret certificate system. The public key reconstruction value and the corresponding private key reconstruction value used for the encryption certificate are composed of both the terminal management platform and the PKI / CA system, and specifically include the following steps.

[0034] S100, the terminal device applies for and obtains a signature certificate and an implicit signature certificate from the PKI / CA system at least through the terminal device management platform.

[0035] In the certificate scheme based on national encryption, traditional digital certificates are divided into signature certificates and encryption certificates. Therefore, in order to be compatible with national encryption certificates, the implicit certificates in this application are also divided into implicit signature certificates and implicit encryption certificates. As the basis of the national encryption certificate system, the signature certificate is the basis for supporting device security. The public key reconstruction value and the corresponding private key reconstruction value of the implicit signature certificate in this application are composed of the terminal device, the terminal management platform and the PKI / CA system. Among them, the signature key is derived from the certificate hash value, the device pre-signature key, and the key reconstruction value of the terminal management platform and the PKI / CA system. The issuance of the signature certificate involves three parties: the terminal device, the terminal management platform and the CA. Figure 2 The figure is a flow chart of a terminal device applying for and obtaining an implicit signature certificate from a PKI / CA system through a terminal device management platform.

[0036] The national secret certificate can be SM2, SM3 and SM4. In one embodiment of the present invention, the public key cryptographic algorithm of the IoT terminal device, the IoT terminal management platform and the PKI / CA system adopts the SM2 elliptic curve algorithm, and the selection of the elliptic curve parameters adopts the SM2 specification. The networked terminal device, the IoT terminal management platform and the PKI / CA system pre-agree on a unified elliptic curve parameter G=(p, a, b, g x ,g y ,z).

[0037] The terminal device generates a terminal device signature key including the following steps.

[0038] S101, the terminal device generates a pre-signed private key, and calculates a pre-signed public key based on the pre-signed private key.

[0039] The terminal device generates a random number k u ∈[1,2,…,n-1] as the pre-signed private key, and pass the pre-signed private key k u Calculate the pre-signed public key P u =k u G , thereby obtaining the pre-signing key (k u ,P u ).

[0040] S102, the terminal device encapsulates at least the device information of the terminal device and the information of the pre-signed public key and then initiates a signature certificate application request to the terminal management platform.

[0041] The device information of the terminal device includes basic device information, device serial number, etc.

[0042] S103: The terminal management platform generates a temporary signature private key k based on the signature certificate application request. m , and calculate the platform temporary signature public key and platform temporary key based on the platform temporary signature private key.

[0043] S1031, the terminal management platform performs signature verification on the device information in the signature certificate application request. If the verification is successful, the terminal management platform generates a random number k m ∈[1,2,…,n-1] is used as the temporary signature private key of the terminal management platform.

[0044] S1032, based on the temporary signature private key k of the terminal management platform m Computing terminal management platform temporary signature public key P m =k m G, get the temporary key (k m ,P m ).

[0045] S104, the terminal management platform encapsulates at least the pre-signed public key, the platform temporary signature public key and the device information, and sends the encapsulated message to the PKI / CA system to request an application for a terminal device signature certificate.

[0046] S1041, the terminal management platform standardizes the device information of the terminal device according to the preset implicit signature certificate format;

[0047] S1042, the pre-signed public key P u 、Platform temporary signature public key P m The standardized device information is encapsulated and sent to the PKI / CA system.

[0048] S105, the PKI / CA system generates a CA temporary signature private key based on the signature certificate application to obtain a CA temporary signature public key, calculates a signature public key reconstruction value based on the CA temporary signature public key, the platform temporary signature public key and the pre-signature public key to register an implicit signature certificate, generates a CA signature private key reconstruction value based on the implicit signature certificate and the CA temporary signature private key, and encrypts the CA signature private key reconstruction value based on the pre-signature public key to obtain a CA signature private key reconstruction value ciphertext.

[0049] S1051, the PKI / CA system obtains the pre-signed public key P according to the received signature certificate application message u and the platform temporary signature public key P m ;

[0050] S1052, the PKI / CA system randomly generates a random number k CA ∈[1,2,…,n-1] as the CA temporary signature private key;

[0051] S1053, based on CA temporary signature private key k CA Calculate CA temporary signature public key P CA =k CA G, get the CA temporary signature key pair (k CA ,P CA );

[0052] S1054, based on the pre-signed public key P u 、Platform temporary signature public key P m and CA temporary signature public key P CA Calculate the reconstruction value R of the terminal device public key u , R u =P u +P m +P CA .

[0053] S1055, calculate and register the implicit signature certificate Cert1 based on the terminal device public key reconstruction value Ru u ;

[0054] S1056, calculating the implicit signature certificate hash value h1 based on the implicit signature certificate u =hash(Cert1 u ), and based on the implicitly signed certificate hash value h1 u The CA signature private key reconstruction value r1 is calculated using the CA temporary signature private key CA = h1 u ×k CA + q CA .

[0055] In one embodiment of the present invention, the hash function uses the SM3 hash algorithm. In addition, the CA root signature certificate private key of the PKI / CA system is q CA and CA root signing certificate public key Q CA , together constitute the CA root certificate key pair (q ca , Q CA ).

[0056] S1057, encrypt the CA signature private key reconstruction value based on the pre-signed public key to obtain the CA signature private key reconstruction value ciphertext.

[0057] Use the pre-signed public key P u Encrypted CA signature private key reconstruction value r1 CA , get the CA signature private key reconstruction value ciphertext P u (r1 CA ).

[0058] S106, the PKI / CA system will implicitly sign the certificate Cert1 u , CA signature private key reconstruction value ciphertext P u (r1 CA ) and other information are packaged and sent to the terminal management platform.

[0059] S107, the terminal management platform backs up the implicit signature certificate, generates a platform signature private key reconstruction value based on the implicit signature certificate and the platform temporary signature private key, and encrypts the platform signature private key reconstruction value based on the pre-signed public key to obtain the platform signature private key reconstruction value ciphertext.

[0060] S1071, the terminal management platform verifies the integrity of the implicit signature certificate and verifies the signature of the implicit signature certificate issued by the received PKI / CA system;

[0061] The integrity of the implicitly signed certificate is verified, and the implicitly signed certificate received in response from the PKI / CA system is verified.

[0062] In one embodiment of the present invention, by h1 u =hash(Cert1 u) Verify the integrity of the implicit signature certificate and verify the signature of the implicit signature certificate.

[0063] S1072, the implicit signature certificate Cert1 that has passed integrity verification and signature verification successfully u Backup to match the terminal device with the implicit signature certificate.

[0064] S1073, based on implicit signature certificate Cert1 u 、Platform temporary signature private key k m And the terminal management platform signature private key q m Generate platform signature private key reconstruction value r m .

[0065] Generate platform signature private key reconstruction value r m =h u ×k m +q m .

[0066] S1074, based on the pre-signed public key P u Reconstruct the value r of the platform signature private key m Encrypt to get the platform signature private key reconstruction value ciphertext P u (r m ).

[0067] S108, the terminal management platform will include at least the implicit signature certificate Cert1 u 、Platform signature private key reconstruction value ciphertext P u (r m ) and CA signature private key reconstruction value ciphertext P u (r1 CA ) is sent to the terminal device.

[0068] S109, the terminal device uses the pre-signed private key k u Decrypt the received encapsulated message to obtain the platform signature private key reconstruction value r m And CA signature private key reconstruction value r1 CA , and based on the received implicit signature certificate Cert1 u , CA signature private key reconstruction value r1 CA , platform signature private key reconstruction value r m The terminal device signature private key and the terminal device signature public key are generated by the pre-signed private key respectively.

[0069] S1091, verify the integrity of the received implicit signature certificate. If the verification is successful, verify the signature of the received implicit signature certificate.

[0070] In one embodiment of the present invention, h1 is used u =hash(Cert1u ) to verify the integrity of the implicit encryption certificate.

[0071] S1092, if the verification is successful, then based on the pre-signed private key k u Decrypt to get the platform signature private key reconstruction value r m And CA signature private key reconstruction value r1 CA .

[0072] S1093, based on the implicit signature certificate hash value h1 u , platform signature private key reconstruction value r m , CA signature private key reconstruction value r1 CA and the pre-signed private key k u Calculate the terminal device signature private key.

[0073] Terminal device signature private key q u = h1 u ×k u +r m +r1 CA .

[0074] S1094, based on implicit signature certificate hash value h1 u , terminal device public key reconstruction value R u Calculate and obtain the terminal device signature public key.

[0075] Terminal device signature public key Q u =h1 u ×R u +Q CA +Q m Among them, Q CA Q is the public key of the CA root signing certificate. m Sign the public key for the terminal management platform.

[0076] S110, the terminal device verifies the terminal device signature public key and obtains the terminal device signature key.

[0077] Verify that Q is satisfied u =q u G, if satisfied, the terminal device signature key (q u ,Q u ). And save the obtained terminal device signature key.

[0078] S200, the terminal device sends the device information and the implicit signature certificate to the terminal management platform to initiate an encryption certificate application.

[0079] The terminal device sends an encrypted certificate request, encapsulates the device information and the corresponding digital signature, and the implicit signature certificate and sends it to the terminal management platform.

[0080] It should be noted that the reconstruction value of the terminal device signature public key is included in the signature certificate. When applying for an implicit encryption certificate, the implicit signature certificate is first submitted as the basis for device authentication. The terminal management platform calculates the terminal device signature public key through the reconstruction value of the terminal device signature public key and then verifies the signature to determine the device identity.

[0081] S300, the terminal management platform verifies the signature certificate, thereby generating a pre-encrypted private key and a pre-encrypted public key.

[0082] S3001, the terminal management platform calculates the terminal device signature public key Q u =R u +Q m +Q CA .

[0083] R u Reconstruct the value of the terminal device public key in the implicit signature certificate, Q CA Q is the public key of the CA root signing certificate. m Sign the public key for the terminal management platform.

[0084] S3002: perform a comparison and verification based on the implicit signature certificate backed up on the terminal management platform and the received implicit signature certificate.

[0085] S3003, if the verification is successful, the terminal management platform randomly generates a random number t m ∈[1,2,…,n-1] as the pre-encrypted private key, and calculate the pre-encrypted public key T based on the pre-encrypted private key m =t m G, get the pre-encryption key (t m ,T m ).

[0086] If the verification fails, the received encryption certificate application is discarded.

[0087] S400, the terminal management platform sends the device information and the pre-encrypted public key to the PKI / CA system to initiate an application for a terminal device encryption certificate.

[0088] S500, the PKI / CA system generates a CA temporary encryption private key based on the terminal device encryption certificate application to obtain a CA temporary encryption public key, calculates an encrypted public key reconstruction value based on the CA temporary encryption public key and the pre-encrypted public key to register an implicit encryption certificate, generates a CA encryption private key reconstruction value based on the implicit encryption certificate, and encrypts the CA encryption private key reconstruction value based on the terminal management platform signature public key to obtain a CA encryption private key reconstruction value ciphertext. Specifically, the following steps are included.

[0089] S5001, the PKI / CA system obtains the pre-encrypted public key T according to the encrypted certificate application message m .

[0090] S5002, the PKI / CA system randomly generates a random number as a CA temporary encryption private key.

[0091] The PKI / CA system randomly generates a random number t CA ∈[1,2,…,n-1] is used as the CA temporary encryption private key.

[0092] S5003, calculate the CA temporary encryption public key T based on the CA temporary encryption private key CA =t CA G, and calculate the encrypted public key reconstruction value D based on the pre-encrypted public key and the CA temporary encrypted public key u =T m +T CA .

[0093] S5004, reconstructing the value D based on the encrypted public key u Calculate and register implicit encryption certificate Cert2 u .

[0094] S5005, based on implicit encryption certificate Cert2 u An implicit encryption certificate hash value is calculated, and a CA encryption private key reconstruction value is generated based on the implicit encryption certificate hash value.

[0095] Implicitly encrypted certificate hash value h2 u =hash(Cert2 u ), CA encrypted private key reconstruction value r2 CA =h2 u ×t CA +e CA , where e CA Encrypt the private key of the CA root certificate.

[0096] S5006, based on the terminal management platform signature public key Q m Reconstruct the value r2 of the CA encrypted private key CA Encrypt to get the CA encrypted private key reconstruction value ciphertext Q m (r2 CA ).

[0097] S600, the PKI / CA system sends the implicit encryption certificate and the CA encrypted private key reconstruction value ciphertext to the terminal management platform.

[0098] S700, the terminal management platform backs up the implicit encryption certificate, and generates the terminal device encryption private key based on the CA encryption private key reconstruction value ciphertext, and encrypts the terminal device encryption private key based on the terminal device signature public key to obtain the terminal device encryption private key ciphertext, which specifically includes the following steps.

[0099] S7001, the terminal management platform verifies the integrity of the implicit encryption certificate and verifies the signature of the implicit encryption certificate received in response to the PKI / CA system.

[0100] In one embodiment of the present invention, h2 u =hash(Cert2 u ) Verify the integrity of the implicit encryption certificate. And verify the signature of the received implicit encryption certificate.

[0101] S7002, back up the implicit encryption certificate after the integrity verification and signature verification are successful, so as to correspond the terminal device with the implicit encryption certificate.

[0102] S7003, if the verification is successful, then based on the terminal management platform signature private key q m Decrypt to get the CA encrypted private key reconstruction value r2 CA .

[0103] S7004, based on implicit encryption certificate hash value h2 u , pre-encrypted private key t m And CA encrypted private key reconstruction value r2 CA Generate terminal device encryption private key e u .

[0104] Terminal device encryption private key u =h2 u ×t m +r2 CA .

[0105] S7005, encrypt the private key of the terminal device based on the terminal device signature public key u Encrypt to obtain the terminal device encrypted private key reconstruction value ciphertext Q u (e u ).

[0106] S800, the terminal management platform sends the implicit encryption certificate and the terminal device encrypted private key ciphertext to the terminal device.

[0107] It should be noted that the implicit encryption certificate Cert2 u The encrypted public key reconstruction value D u Therefore, when the implicit encryption certificate is issued, the encrypted public key reconstruction value is also issued.

[0108] S900, the terminal device decrypts the terminal device encrypted private key ciphertext based on the terminal device signature private key to obtain the terminal device encrypted private key, and generates the terminal device encrypted public key based on the encrypted public key reconstruction value in the implicit encryption certificate and the CA root encryption certificate public key.

[0109] S9001, the terminal device performs integrity verification on the received implicit encryption certificate and verifies the signature.

[0110] In one embodiment of the present invention, h2 u =hash(Cert2 u ) to verify the certificate integrity.

[0111] S9002: If both the integrity verification and the signature verification are passed, the terminal device encryption private key is obtained by decrypting the terminal device signature private key.

[0112] Terminal device signature private key q u Decrypt to obtain the terminal device encryption private key e u .

[0113] S9003, based on implicitly encrypted certificate hash value Cert2 u , the encrypted public key reconstruction value D in the implicit encryption certificate u The encryption public key is calculated using the CA root encryption certificate public key.

[0114] Generate terminal device encryption public key E u =h2 u ×D u +E CA , where E CA The public key of the CA root encryption certificate.

[0115] S9004, after verifying the terminal device encryption public key and the terminal device encryption private key, obtain the terminal device encryption key.

[0116] Verify whether the terminal device encryption public key and the terminal device encryption private key meet E u =e u G, if satisfied, the terminal device encryption private key encryption key (e u ,E u ).

[0117] In another embodiment of the present invention, a system for generating an implicit certificate for data encryption is provided, which runs the above-mentioned method for generating an implicit certificate for data encryption. Figure 3 The schematic diagram of the implicit certificate generation system architecture for applying for an implicit signature certificate for a terminal device is shown in FIG. Figure 4The diagram shows the implicit certificate generation system architecture for a terminal device to apply for an implicit encryption certificate. An implicit certificate generation system for data encryption includes at least a number of terminal devices, a number of terminal management platforms that manage IoT terminal devices, and a PKI / CA system connected to the terminal management platform, wherein the terminal device: generates a pre-signed key, sends a signed certificate application to the terminal management platform based on device information and a pre-signed public key, and obtains a device signing key based on the returned implicit signing certificate, the platform signature private key reconstruction value ciphertext, and the CA signature private key reconstruction value ciphertext; and initiates an encryption certificate application to the terminal management platform based on the signing certificate and device information, and obtains an encryption key based on the returned implicit encryption certificate and the terminal device encryption private key ciphertext.

[0118] Terminal management platform: used to verify and sign the signature certificate application and encryption certificate application sent by the terminal device.

[0119] And generate a temporary platform signature private key according to the signature certificate application, thereby obtaining a temporary platform signature public key, generate a pre-encrypted private key according to the encryption certificate application, thereby obtaining a pre-encrypted public key, and apply for a signature certificate and encryption certificate from the PKI / CA system, as well as verify and back up the returned implicit signature certificate and implicit encryption certificate,

[0120] And, it is used to generate the platform signature private key reconstruction value ciphertext based on the returned implicit signature certificate and the platform temporary signature private key, the terminal management platform signature private key and the pre-signed public key, and send the implicit signature certificate, CA signature private key reconstruction value ciphertext and platform signature private key reconstruction value ciphertext to the terminal device,

[0121] Alternatively, it is used to generate a terminal device encrypted private key ciphertext based on the returned implicit encryption certificate and CA encrypted private key reconstruction value ciphertext, the pre-encrypted private key and the terminal device signature public key, and to send the implicit encryption certificate and the terminal device encrypted private key ciphertext to the terminal device;

[0122] The PKI / CA system is used to generate a CA temporary signature private key based on a signature certificate application, and obtain a CA temporary signature public key based on the CA temporary signature private key, and calculate a signature public key reconstruction value based on the CA temporary signature public key, the platform temporary signature public key and the pre-signature public key, so as to register an implicit signature certificate and calculate the CA signature private key reconstruction value ciphertext, and send the implicit signature certificate and the CA signature private key reconstruction value ciphertext to the terminal management platform. And, it is used to generate a CA temporary encryption private key based on an encryption certificate application, so as to obtain a CA temporary encryption public key, calculate an encryption public key reconstruction value based on the CA temporary encryption public key and the pre-encryption public key, so as to register an implicit encryption certificate, and generate a CA encryption private key reconstruction value ciphertext based on the implicit encryption certificate, the CA temporary encryption private key, the CA root encryption certificate private key and the terminal management platform signature public key, and send the implicit encryption certificate and the CA encryption private key reconstruction value ciphertext to the corresponding terminal management platform.

[0123] In one embodiment of the present invention, IoT terminal devices refer to some IoT data collection devices and data transmission devices with encryption functions, such as PLCs with encryption modules, VPN devices with encryption functions, etc. The PKI / CA system is a CA that supports implicit certificates or a CA that supports implicit certificates built by the enterprise itself. The terminal management platform is an application platform that can uniformly manage and control IoT terminal devices within the jurisdiction, and is usually a systematic platform deployed in the server. The terminal management platform should simultaneously deploy cryptographic devices, such as cryptographic machines, to support basic functions such as key management, data encryption and decryption, and signature verification.

[0124] It should be noted that the terminal management platform can adopt a multi-level setting. The bottom-level terminal management platform can apply to the upper-level terminal management platform in turn. The top-level terminal management platform communicates with the PKI / CA system and applies to the CA for implicit signature certificates and implicit encryption certificates.

[0125] The present invention realizes data encryption of national secret algorithm based on implicit certificate with multi-layer management. Implicit certificate with small storage space and fast signature verification speed is used as signature certificate and encryption certificate of IoT device, and public and private key calculation and identity authentication are completed through public and private key reconstruction, and certificate verification is completed through public and private key matching.

[0126] The upper-level system authenticates the device through the public and private key reconstruction value, and does not need to be directly responsible for the system or device information other than the directly subordinate lower-level system, which optimizes the identity authentication system architecture. In addition, it is compatible with the existing traditional digital certificate and implicit certificate schemes, and has a high degree of freedom in the number of multi-layer management side devices and authentication modes.

[0127] The multi-layer management strategy also effectively optimizes the security issues caused by the reconstruction value of the public and private keys of implicit certificates. In one embodiment of the present invention, other systems except the device body cannot restore the private key or even the complete private key reconstruction value, including the encryption key generation scheme generated by the device management platform. Since the constituent units of the public and private key reconstruction values ​​are complex, the systems involved in the reconstruction are jointly responsible for the certificate, which greatly reduces the security weight of the CA and the device management platform. Compared with a single authentication architecture, it has higher security and a more complete management system.

[0128] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.

Claims

1. A method for generating an implicit certificate for data encryption, It is characterized in that include: The terminal device at least applies for a signature certificate from the PKI / CA system through the terminal device management platform and obtains an implicit signature certificate; The terminal device sends the device information and the implicit signature certificate to the terminal management platform to initiate an encryption certificate application; The terminal management platform verifies the signature certificate to generate a pre-encrypted private key and a pre-encrypted public key; The terminal management platform sends the device information and pre-encrypted public key to the PKI / CA system to initiate an application for a terminal device encryption certificate; The PKI / CA system generates a CA temporary encryption private key based on the terminal device encryption certificate application to obtain a CA temporary encryption public key, calculates an encrypted public key reconstruction value based on the CA temporary encryption public key and the pre-encrypted public key to register an implicit encryption certificate, generates a CA encryption private key reconstruction value based on the implicit encryption certificate, and encrypts the CA encryption private key reconstruction value based on the terminal management platform signature public key to obtain a CA encryption private key reconstruction value ciphertext; The PKI / CA system sends the implicit encryption certificate and the CA encrypted private key reconstruction value ciphertext to the terminal management platform; The terminal management platform backs up the implicit encryption certificate, reconstructs the value ciphertext based on the CA encryption private key to generate the terminal device encryption private key, and encrypts the terminal device encryption private key based on the terminal device signature public key to obtain the terminal device encryption private key ciphertext; The terminal management platform sends the implicit encryption certificate and the terminal device encrypted private key ciphertext to the terminal device; The terminal device decrypts the terminal device encrypted private key ciphertext based on the terminal device signature private key to obtain the terminal device encrypted private key, and generates the terminal device encrypted public key based on the encrypted public key reconstruction value in the implicit encryption certificate and the CA root encryption certificate public key.

2. A method for generating an implicit certificate for data encryption according to claim 1, It is characterized in that The terminal management platform verifies the signature certificate to generate a pre-encrypted private key and a pre-encrypted public key, specifically including: The terminal management platform calculates the terminal device signature public key; The terminal device signature certificate based on the backup is compared with the terminal device signature public key of the received implicit signature certificate. If the identity authentication is passed, the terminal management platform generates a pre-encrypted private key, and obtains a pre-encrypted public key based on the pre-encrypted private key; If the identity authentication fails, the encrypted certificate request message is discarded.

3. The method for generating an implicit certificate for data encryption according to claim 1, It is characterized in that The PKI / CA system generates a CA temporary encryption private key based on the terminal device encryption certificate application to obtain a CA temporary encryption public key, calculates an encrypted public key reconstruction value based on the CA temporary encryption public key and the pre-encrypted public key to register an implicit encryption certificate, generates a CA encryption private key reconstruction value based on the implicit encryption certificate, and encrypts the CA encryption private key reconstruction value based on the terminal management platform signature public key to obtain a CA encryption private key reconstruction value ciphertext, specifically including: The PKI / CA system obtains the pre-encrypted public key based on the encrypted certificate application message of the terminal device; The PKI / CA system generates a random number as the CA temporary encryption private key, thereby calculating the CA temporary encryption public key; Calculate the encrypted public key reconstruction value based on the pre-encrypted public key and the CA temporary encrypted public key; Registering an implicit encryption certificate based on the encrypted public key reconstructed value; Calculate an implicit encryption certificate hash value based on the implicit encryption certificate, and calculate and generate a CA encryption private key reconstruction value based on the implicit encryption certificate hash value, the CA temporary encryption private key, and the CA root encryption certificate private key; The CA encrypted private key reconstruction value is encrypted based on the terminal management platform signature public key to obtain the CA encrypted private key reconstruction value ciphertext.

4. The method for generating an implicit certificate for data encryption according to claim 1, It is characterized in that The terminal management platform backs up the implicit encryption certificate, generates a terminal device encryption private key based on the CA encryption private key reconstruction value ciphertext, and encrypts the terminal device encryption private key based on the terminal device signature public key to obtain the terminal device encryption private key ciphertext, specifically including: The terminal management platform verifies the integrity of the implicit encryption certificate and verifies the signature of the implicit encryption certificate issued by the PKI / CA system. Back up the implicit encryption certificate that has passed integrity verification and signature verification, so as to match the terminal device with the implicit encryption certificate; Decrypt the CA encrypted private key reconstruction value ciphertext based on the terminal management platform signature private key to obtain the CA encrypted private key reconstruction value; Generate a terminal device encryption private key based on the implicit encryption certificate hash value, the pre-encrypted private key and the CA encryption private key reconstruction value; The terminal device encryption private key is encrypted based on the terminal device signature public key to obtain the terminal device encryption private key ciphertext.

5. The method for generating an implicit certificate for data encryption according to claim 1, It is characterized in that The terminal device decrypts the terminal device encrypted private key ciphertext based on the terminal device signature private key to obtain the terminal device encrypted private key, and generates the terminal device encrypted public key based on the encrypted public key reconstruction value, specifically including: The terminal device verifies the integrity of the received implicit encryption certificate and verifies the signature; If both integrity verification and signature verification are passed, the terminal device encryption private key is obtained by decryption based on the terminal device signature private key; The terminal device encryption public key is calculated based on the encryption public key reconstruction value in the implicit encryption certificate and the CA root encryption certificate public key; The terminal device encryption key is obtained after verifying the terminal device encryption public key and the terminal device encryption private key.

6. A method for generating an implicit certificate for data encryption according to claim 1, It is characterized in that The terminal device applies for a signature certificate from the PKI / CA system at least through the terminal device management platform and obtains an implicit signature certificate, specifically including: The terminal device generates a pre-signed private key and calculates a pre-signed public key based on the pre-signed private key; The terminal device at least encapsulates the device information and the pre-signed public key information and initiates a signature certificate application request to the terminal management platform; The terminal management platform generates a temporary platform signature private key based on the signature certificate application request, and calculates a temporary platform signature public key based on the temporary platform signature private key; The terminal management platform at least encapsulates the pre-signed public key, the platform temporary signature public key and the device information and sends them to the PKI / CA system to request an application for a terminal device signature certificate; The PKI / CA system generates a CA temporary signature private key based on the signature certificate application to obtain a CA temporary signature public key, calculates a signature public key reconstruction value based on the CA temporary signature public key, the platform temporary signature public key and the pre-signature public key to register an implicit signature certificate, generates a CA signature private key reconstruction value based on the implicit signature certificate and the CA temporary signature private key, and encrypts the CA signature private key reconstruction value based on the pre-signature public key to obtain a CA signature private key reconstruction value ciphertext; The PKI / CA system sends the implicit signature certificate and the CA signature private key reconstruction value ciphertext to the terminal management platform; The terminal management platform backs up the implicit signature certificate, generates a platform signature private key reconstruction value based on the implicit signature certificate and the platform temporary signature private key, and encrypts the platform signature private key reconstruction value based on the pre-signed public key to obtain the platform signature private key reconstruction value ciphertext; The terminal management platform sends packaged information including at least the implicit signature certificate, the platform signature private key reconstruction value ciphertext and the CA signature private key reconstruction value ciphertext to the terminal device; The terminal device decrypts the received encapsulated message based on the pre-signed private key to obtain the platform signature private key reconstruction value and the CA signature private key reconstruction value, and generates the terminal device signature private key and the terminal device signature public key respectively based on the implicit signature certificate, the CA signature private key reconstruction value, the platform signature private key reconstruction value and the pre-signed private key; The terminal device obtains the terminal device signature key after verifying the terminal device signature public key.

7. A method for generating an implicit certificate for data encryption according to claim 6, It is characterized in that The PKI / CA system generates a CA temporary signature private key based on the signature certificate application to obtain a CA temporary signature public key, calculates a signature public key reconstruction value based on the CA temporary signature public key, the platform temporary signature public key and the pre-signature public key to register an implicit signature certificate, generates a CA signature private key reconstruction value based on the implicit signature certificate and the CA temporary signature private key, and encrypts the CA signature private key reconstruction value based on the pre-signature public key to obtain a CA signature private key reconstruction value ciphertext, specifically including: The PKI / CA system obtains the pre-signed public key and the platform temporary signature public key based on the signature certificate application message; The PKI / CA system generates a random number as the CA temporary signature private key, and calculates the CA temporary signature public key based on the CA temporary signature private key; The signature public key reconstruction value is calculated based on the pre-signature public key, the platform temporary signature public key and the CA temporary signature public key; Calculate and register an implicit signature certificate based on the signature public key reconstruction value; Calculate the implicit signature certificate hash value based on the implicit signature certificate, and calculate and generate the CA signature private key reconstruction value based on the implicit signature certificate hash value, the CA temporary signature private key and the CA root signature certificate private key; The CA signature private key reconstruction value is encrypted based on the pre-signed public key to obtain the CA signature private key reconstruction value ciphertext.

8. A method for generating an implicit certificate for data encryption according to claim 6, It is characterized in that The terminal management platform backs up the implicit signature certificate, generates a platform signature private key reconstruction value based on the implicit signature certificate and the platform temporary signature private key, and encrypts the platform signature private key reconstruction value based on the pre-signed public key to obtain the platform signature private key reconstruction value ciphertext, specifically including: The terminal management platform verifies the integrity of the implicit signature certificate and verifies the signature of the implicit signature certificate issued by the PKI / CA system. The integrity verification and signature verification are successfully backed up, thereby matching the terminal device with the implicit signature certificate; Generate a platform signature private key reconstruction value based on the implicit signature certificate, the platform temporary signature private key and the terminal management platform signature private key; The platform signature private key reconstruction value is encrypted based on the pre-signed public key to obtain the platform signature private key reconstruction value ciphertext.

9. A method for generating an implicit certificate for data encryption according to claim 6, It is characterized in that The terminal device decrypts the received encapsulated message based on the pre-signed private key to obtain the platform signature private key reconstruction value and the CA signature private key reconstruction value, and generates the terminal device signature private key and the terminal device signature public key based on the implicit signature certificate, the CA signature private key reconstruction value, the platform signature private key reconstruction value and the pre-signed private key, specifically including: The terminal device decrypts the pre-signed private key to obtain the platform signature private key reconstruction value and the CA signature private key reconstruction value; The terminal device signature private key is calculated based on the implicit signature certificate hash value, the platform signature private key reconstruction value, the pre-signature private key and the CA signature private key reconstruction value; The terminal device signature public key is calculated based on the implicit signature certificate hash value, the signature public key reconstruction value in the implicit signature certificate, the CA root signature certificate public key and the terminal management platform signature public key.

10. An implicit certificate generation system for data encryption, running an implicit certificate generation method for data encryption as claimed in any one of claims 1 to 9, Features: At least several terminal devices, several terminal management platforms that manage IoT terminal devices respectively, and a PKI / CA system connected to the terminal management platform. Terminal device: used to generate a pre-signed key, send a signature certificate application to the terminal management platform based on the device information and the pre-signed public key, and obtain the terminal device signature key based on the returned implicit signature certificate, the platform signature private key reconstruction value ciphertext, and the CA signature private key reconstruction value ciphertext; And, based on the signature certificate and device information, initiate an encryption certificate application to the terminal management platform, and obtain the terminal device encryption key based on the returned implicit encryption certificate and the terminal device encryption private key ciphertext; Terminal management platform: used to verify and sign the signature certificate application and encryption certificate application sent by the terminal device. And generate a temporary platform signature private key according to the signature certificate application, thereby obtaining a temporary platform signature public key, generate a pre-encrypted private key according to the encryption certificate application, thereby obtaining a pre-encrypted public key, and apply for a signature certificate and encryption certificate from the PKI / CA system, as well as verify and back up the returned implicit signature certificate and implicit encryption certificate, And, it is used to generate the platform signature private key reconstruction value ciphertext based on the returned implicit signature certificate and the platform temporary signature private key, the terminal management platform signature private key and the pre-signed public key, and send the implicit signature certificate, CA signature private key reconstruction value ciphertext and platform signature private key reconstruction value ciphertext to the terminal device, Alternatively, it is used to generate a terminal device encrypted private key ciphertext based on the returned implicit encryption certificate and CA encrypted private key reconstruction value ciphertext, the pre-encrypted private key and the terminal device signature public key, and to send the implicit encryption certificate and the terminal device encrypted private key ciphertext to the terminal device; PKI / CA system: used to generate a CA temporary signature private key based on the signature certificate application, and obtain the CA temporary signature public key based on the CA temporary signature private key, and calculate the signature public key reconstruction value based on the CA temporary signature public key, the platform temporary signature public key and the pre-signature public key, so as to register the implicit signature certificate and calculate the CA signature private key reconstruction value ciphertext, and send the implicit signature certificate and CA signature private key reconstruction value ciphertext to the terminal management platform, And, it is used to generate a CA temporary encryption private key based on the encryption certificate application, thereby obtaining the CA temporary encryption public key, calculate the encrypted public key reconstruction value based on the CA temporary encryption public key and the pre-encrypted public key to register the implicit encryption certificate, and generate the CA encryption private key reconstruction value ciphertext based on the implicit encryption certificate, CA temporary encryption private key, CA root encryption certificate private key and terminal management platform signature public key, and send the implicit encryption certificate and CA encryption private key reconstruction value ciphertext to the corresponding terminal management platform.

Citation Information

Patent Citations

  • Signature verification method and device, computer equipment and storage medium

    CN110380862A

  • Implicit certificate key generation method based on SM2 digital signature

    CN112367175A