Commercial password digital certificate generation method supporting anti-quantum cryptography
By using a hybrid signature and encryption algorithm between the certificate authority and the user to generate a hybrid signature certificate that is resistant to quantum cryptography and traditional public key cryptography, the security problem of traditional public key cryptography algorithms under quantum attacks is solved and the security of quantum attacks is achieved. Double guarantee of digital certificate security and compatibility in the environment.
Patent Information
- Application Number
- CN202410912481.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-07-09
AI Technical Summary
Traditional public key cryptography algorithms face the risk of security breaches under the development of quantum technology, leading to challenges to the security of the digital certificate system. There is a need for a commercial cryptographic digital certificate generation method that supports quantum attack resistance.
Using a commercial cryptographic digital certificate generation method, the certificate authority generates a hybrid signature self-signed certificate with both quantum cryptographic signatures and traditional public key cryptographic signatures. The user generates a hybrid signature certificate request file and sends it to the certificate authority, which verifies After generating a mixed signature certificate, the key generation center generates an encryption key pair, and generates private key encryption ciphertext and mixed ciphertext through the mixed signature and encryption algorithm. The user extracts and verifies the certificate and key.
Improve the security of digital certificates in quantum attack environments, eliminate the risk of forgery, and avoid man-in-the-middle attacks. The generated quantum-resistant digital certificates are compatible with existing certificates, suitable for both quantum-resistant and traditional environments, and resist the threat of quantum attacks.
Smart Images

Figure CN118631449A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information security technology, and more specifically to a method for generating a commercial cryptographic digital certificate supporting quantum-resistant cryptography. Background Art
[0002] The current commercial cryptographic digital certificate system is mainly generated by traditional public key cryptographic algorithms. However, with the rapid development of quantum technology, traditional public key cryptographic algorithms are facing the risk of security breaches, and the security of the digital certificate system is challenged. It has become a trend in the future for traditional public key cryptographic algorithms to be replaced by quantum-resistant cryptographic algorithms. How to generate commercial cryptographic digital certificates that support quantum attack resistance is imminent. Summary of the invention
[0003] In view of this, the present invention provides a method for generating commercial cryptographic digital certificates that supports quantum-resistant cryptography, which ensures the security of the digital certificate system under a quantum attack environment. At the same time, the generated user certificates are compatible with existing digital certificates.
[0004] In order to achieve the above object, the present invention adopts the following technical solution:
[0005] A method for generating a commercial cryptographic digital certificate supporting quantum-resistant cryptography comprises the following steps:
[0006] The certificate authority generates a hybrid self-signed certificate with both quantum-resistant cryptographic signature and traditional public key cryptographic signature;
[0007] The user generates a hybrid signature certificate request file and sends it to the certificate authority;
[0008] The certificate authority verifies the hybrid signature certificate request file, and after the verification is passed, generates a user signature certificate with a hybrid signature that has both a quantum-resistant cryptographic signature and a traditional public key cryptographic signature;
[0009] The key generation center generates a user's traditional public key cryptographic encryption key pair and a user's quantum-resistant cryptographic encryption key pair, and returns them to the certificate authority;
[0010] The certificate authority generates a user encryption certificate with a hybrid signature of both quantum-resistant cryptographic signature and traditional public key cryptographic signature;
[0011] The certificate authority generates a hybrid encryption private key and a hybrid encryption public key based on the traditional public key cryptography encryption key pair and the quantum cryptography encryption key pair, generates a private key encryption ciphertext and a hybrid ciphertext based on the user signature certificate, the user encryption certificate and the random symmetric algorithm key, and sends the hybrid encryption public key, the private key encryption ciphertext and the hybrid ciphertext to the user;
[0012] The user extracts the signature certificate, encryption certificate, quantum-resistant cryptographic encryption private key and traditional public key cryptographic encryption private key of the hybrid signature, and verifies the signature certificate and encryption certificate.
[0013] Furthermore, the process of generating a hybrid self-signed certificate by a certificate authority includes:
[0014] The certificate authority has two types of keys: the traditional public key cryptographic signature key pair (CASK GMsig , CAPK GMsig ) and quantum-resistant cryptographic signature key pair (CASK PQCsig , CAPK PQCsig );
[0015] Among them, CASK GMsig Represents the traditional public key cryptographic signature private key of the certificate authority, CAPK GMsig Represents the traditional public key cryptographic signature public key of the certificate authority, CASK PQCsig Represents the certificate authority quantum-resistant cryptographic signature private key, CAPK PQCsig Represents the quantum-resistant cryptographic signature public key of the certificate authority;
[0016] The certificate authority issues its own traditional public key cryptographic signature public key CAPK GMsig Put it in the public key field of the certificate and change the quantum-resistant cryptographic signature public key CAPK PQCsig Place it in the extension of the certificate's message to be signed;
[0017] Use your own quantum-resistant cryptographic signature private key CASK PQCsig Perform quantum-resistant cryptographic signature CAsig on the certificate's message to be signed tb PQC =Sign PQC (tb, CASK PQCsig ), signature result CAsig PQC Place it in the extension of the certificate's message to be signed;
[0018] Update the message to be signed to tb new , the certificate authority uses the traditional public key cryptographic private key CASK GMsig Message to be signed for the certificate tb new Perform traditional public key cryptographic signature CAsig GM =Sign GM (tb new , CASK GMsig ), signature result CAsig GM Put it in the signature part of the certificate to generate a hybrid self-signed certificate with both quantum-resistant cryptographic signature and traditional public key cryptographic signature;
[0019] Among them, CAsigPQC Indicates the quantum-resistant cryptographic signature result of the self-signed certificate issued by the certificate authority, CAsig GM Indicates the traditional public key cryptographic signature result of the self-signed certificate issued by the certificate authority. PQC () indicates quantum-resistant cryptographic signature operation, Sign GM () represents the traditional public key cryptographic signature operation.
[0020] Furthermore, the process of generating a hybrid signature certificate request file by a user includes:
[0021] Users generate their own traditional public key cryptographic signature key pair (USK GMsig , UPK GMsig ), quantum-resistant cryptographic signature key pair (USK PQCsig , UPK PQCsig ) and quantum-resistant cryptographic temporary key pairs (TUSK PQCenc TUPK PQCenc );
[0022] Among them, USK GMsig Represents the user's traditional public key cryptographic signature private key, UPK GMsig Represents the user's traditional public key cryptographic signature public key, USK PQCsig Represents the user's quantum-resistant cryptographic signature private key, UPK PQCsig Represents the user's quantum-resistant cryptographic signature public key, TUSK PQCenc Indicates the user's quantum-resistant cryptographic temporary private key, TUPK PQCenc Indicates the user's quantum-resistant cryptographic encryption temporary public key;
[0023] The user counts his or her own identity information as UID and calculates the hybrid public key UPK mix =UPK GMsig ||UPK PQCsig ||TUPK PQCenc , calculate the user signature message um=UPK Mix ||UID; use your own quantum-resistant cryptographic signature private key USK PQCsig Generate quantum-resistant cryptographic signature sig for um PQC =Sign PQC (um, USK PQCsig ); Use traditional public key cryptography to sign private key USK GMsig Generate a traditional public key cryptographic signature sig for um GM =Sign GM (um, USK GMsig ), generate a mixed signature sig for um mix =sig PQC ||sig GM; Combine the user signature message um with the mixed signature sig mix Generate a hybrid signature certificate request file CSR mix Send to the certificate authority;
[0024] Among them, || represents the join operation, sig PQC Indicates the user's quantum-resistant cryptographic signature result, sig GM Represents the user's traditional public key cryptographic signature result.
[0025] Furthermore, the process of the certificate authority verifying the hybrid signature certificate request file includes:
[0026] The certificate authority sends the hybrid signature certificate request file CSR from the user mix Extract the user's traditional public key cryptographic signature public key UPK GMsig , quantum-resistant cryptographic signature public key UPK PQCsig , quantum-resistant cryptographic encryption temporary public key TUPK PQCenc , user identity information UID, anti-quantum cryptographic signature sig PQC And the traditional key signature sig GM ;
[0027] Using quantum-resistant cryptographic signature public key UPK PQCsig Verify quantum-resistant cryptographic signature sig PQC Validity a=Verify PQC (sig PQC ,UPK Mix ||UID, UPK PQCsig ), using traditional public key cryptography to sign the public key UPK GMsig Verify traditional key signature sig GM b=Verify GM (sig GM ,UPK Mix ||UID, UPK GMsig ), when a and b are both true, the verification is successful, and the certificate authority continues to the following steps, otherwise, the certificate authority exits the step of generating the user certificate;
[0028] Among them, Verify PQC () indicates the verification operation of quantum-resistant cryptographic signature, Verify GM () represents the verification operation of traditional public key cryptographic signature.
[0029] Furthermore, the process of generating a hybrid-signed user-signed certificate by a certificate authority includes:
[0030] The certificate authority will use the traditional public key cryptographic signature public key UPK GMsigPut it in the public key field of the user's signature certificate and change the quantum-resistant cryptographic signature public key UPK PQCsig Put it in the extension field of the certificate, combine it with the user identity information in the hybrid signature certificate request file CSR, and generate the message utb to be signed of the user signature certificate;
[0031] Use your own quantum-resistant cryptographic signature private key CASK PQCsig Perform quantum-resistant cryptographic signature on the message to be signed utb of the user signature certificate to generate the user signature certificate quantum-resistant signature usig PQC =Sign PQC (utb, CASK PQCsig ), signature result usig PQC Place it in the extension of the message to be signed in the signing certificate;
[0032] Update the message to be signed to utb new =utb||usig PQC , using traditional public key cryptography private key CASK GMsig utb message to be signed for the signing certificate new Perform traditional public key cryptographic signature and generate user signature certificate traditional signature usig GM =Sign GM (utb new , CASK GMsig ), signature result usig GM Put it in the signature part of the signature certificate to generate a hybrid signature certificate for the user with both quantum-resistant cryptographic signature and traditional public key cryptographic signature. sig .
[0033] Furthermore, the process of the key generation center generating the user's traditional public key cryptographic encryption key pair and the user's quantum-resistant cryptographic encryption key pair is as follows:
[0034] The certificate authority sends a key pair generation request to the key generation center;
[0035] After receiving the request, the key generation center runs the traditional public key cryptographic key generation algorithm to generate a traditional public key cryptographic key pair (USK GMenc , UPK GMenc ) and run the quantum-resistant cryptographic key generation algorithm to generate a quantum-resistant cryptographic key pair (USK PQCenc , UPK PQCenc ), and the user's two private keys USK GMenc With USK PQCenc Save and save (USK GMenc , UPK GMenc ) and (USK PQCenc , UPKPQCenc ) is sent to the certificate authority via a secure channel;
[0036] Among them, USK GMenc Indicates the user's traditional public key password encrypted private key, UPK GMenc Indicates the user's traditional public key password encrypted public key, USK PQCenc Represents the user's quantum-resistant cryptographic encryption private key, UPK PQCsig Represents the user's quantum-resistant cryptographic encryption public key.
[0037] Furthermore, the process of generating a user encryption certificate by a certificate authority is as follows:
[0038] The certificate authority receives two key pairs from the key generation center and encrypts the public key UPK GMenc Put it in the public key field of the encryption certificate and use the quantum-resistant cryptographic public key UPK PQCenc Put it in the extension field of the encryption certificate, combine it with the user identity information in the hybrid signature certificate request file, and generate the encrypted certificate to be signed message utb enc ;
[0039] Use your own quantum-resistant cryptographic signature private key CASK PQCsig utb for the message to be signed by the encryption certificate enc Perform anti-quantum cryptographic signature and generate user encryption certificate anti-quantum signature usig PQCenc =Sign PQC (utb enc , CASK PQCsig ), signature result usig PQCenc Place it in the extension of the message to be signed by the encryption certificate;
[0040] Update the message to be signed to utb enc_new , using traditional public key cryptography private key CASK GMsig utb for the message to be signed by the encryption certificate enc_new Perform traditional public key cryptographic signature and generate user encryption certificate traditional signature usig GMenc =Sign GM (utb enc_new , CASK GMsig ), signature result usig GMenc Put it in the signature part of the encryption certificate to generate an encryption certificate for the user with a hybrid signature of both quantum-resistant cryptographic signature and traditional public key cryptographic signature. enc .
[0041] Furthermore, the process of generating the hybrid encryption public key, the private key encryption ciphertext and the hybrid ciphertext by the certificate authority includes:
[0042] The certificate authority generates a hybrid encryption private key USK mix =USK GMenc ||USK PQCenc With hybrid encryption public key UPK mix =UPK GMenc ||UPK PQCenc , using quantum-resistant cryptography to encrypt the temporary public key TUPK PQCenc Run the encryption algorithm to generate quantum-resistant cryptographic encryption temporary ciphertext TCT and temporary shared key TSS, and use TSS as the symmetric algorithm key;
[0043] Calculate the symmetric algorithm plaintext m=USK mix ||UCer sig ||UCer enc , calculate the quantum-resistant ciphertext c PQC =Enc Sym (m,tss);
[0044] Randomly select the symmetric algorithm key K and send the quantum-resistant ciphertext c PQC As the plaintext of the symmetric algorithm, calculate the private key encrypted ciphertext c SK =Enc Sym (c PQC , K);
[0045] Utilize the user's traditional public key cryptographic signature public key UPK GMsig Encrypt the symmetric algorithm key K to generate the symmetric algorithm key encrypted ciphertext c K =Enc GM (K,UPK GMsig ), generate mixed ciphertext c mix =c K ||tct;
[0046] Among them, Enc Sym () indicates the symmetric algorithm encryption operation, Enc GM () represents traditional public key cryptographic encryption operations.
[0047] Furthermore, the process of a user extracting a signature certificate, an encryption certificate, a quantum-resistant cryptographic private key, and a traditional public key cryptographic private key includes:
[0048] User extracts quantum-resistant cryptographic public key UPK PQCenc , Traditional public key cryptography encryption public key UPK GMenc 、Symmetric algorithm key encrypts ciphertext c K , temporary quantum-resistant cryptographic key encapsulation ciphertext tct;
[0049] Use your own traditional public key cryptographic signature public key USK GMsigDecrypt the symmetric algorithm encrypted ciphertext c K Get the symmetric algorithm key K=Dec GM (K, USK GMsig ), use the symmetric algorithm key K to decrypt the private key encrypted ciphertext c SK Get the quantum-resistant ciphertext c PQC =Dec Sym (c SK , K);
[0050] Encrypt the private key TUSK using your own temporary quantum-resistant cryptography PQCenc Decrypt the encapsulated ciphertext tct to obtain the temporary shared key tss, and use the temporary shared key tss to decrypt the quantum-resistant ciphertext c PQC Get the symmetric algorithm plaintext m=Dec Sym (c PQC , tss), extract your own signature certificate UCer sig , encryption certificate UCer enc , quantum-resistant cryptographic encryption private key USK PQCenc , Traditional public key cryptography encrypted private key USK GMenc ;
[0051] Among them, Dec Sym () indicates the symmetric algorithm decryption operation, Dec GM () represents the traditional public key cryptographic decryption operation.
[0052] Furthermore, after the user extracts the signature certificate and encryption certificate of the hybrid signature, the validity thereof is verified;
[0053] When verifying the validity of a hybrid signature certificate, the traditional public key cryptographic signature part of the hybrid signature certificate is verified using the verification method of the existing commercial cryptographic digital certificate system, and then the quantum-resistant cryptographic signature public key of the hybrid signature self-signed certificate of the certificate issuing authority is obtained from the certificate chain, and the quantum-resistant cryptographic signature part of the hybrid signature certificate is verified. When both signatures are verified at the same time, the hybrid signature certificate is deemed valid.
[0054] When verifying the validity of a hybrid-signed encryption certificate, the traditional public key cryptographic signature part of the hybrid-signed encryption certificate is verified using the verification method of the existing commercial cryptographic digital certificate system, and then the quantum-resistant cryptographic signature public key of the hybrid-signed self-signed certificate of the certificate authority is obtained from the certificate chain, and the quantum-resistant cryptographic signature part of the hybrid-signed encryption certificate is verified. When both signatures are verified at the same time, the hybrid-signed encryption certificate is deemed valid.
[0055] It can be seen from the above technical solutions that, compared with the prior art, the present invention has the following beneficial effects:
[0056] 1. Compared with the existing commercial cryptographic digital certificate system, the present invention adds an anti-quantum algorithm to enhance the security of the digital certificates generated in a quantum attack environment, eliminate the risk of certificates being forged, and avoid the threat of man-in-the-middle attacks.
[0057] 2. The quantum-resistant digital certificate generated by the present invention is compatible with existing digital certificates, and is not only applicable to quantum-resistant environments, but also to existing environments that do not support quantum-resistant algorithms, thus avoiding the impact of incompatibility caused by direct upgrades of quantum-resistant digital certificates. It can be used in cryptographic products such as gateways, cryptographic cards, cryptographic machines, and CAs to resist the threat of quantum attacks. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0059] Figure 1 A flow chart of a method for generating a commercial cryptographic digital certificate supporting quantum-resistant cryptography provided by the present invention. DETAILED DESCRIPTION
[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0061] like Figure 1 As shown, an embodiment of the present invention discloses a method for generating a commercial cryptographic digital certificate supporting quantum-resistant cryptography, comprising the following steps:
[0062] S1. The certificate authority generates a self-signed certificate with a hybrid signature that has both quantum-resistant cryptographic signature and traditional public key cryptographic signature;
[0063] S2. The user generates a hybrid signature certificate request file and sends it to the certificate authority;
[0064] S3. The certificate authority verifies the hybrid signature certificate request file, and after the verification is passed, generates a user signature certificate with a hybrid signature that has both a quantum-resistant cryptographic signature and a traditional public key cryptographic signature;
[0065] S4. The key generation center generates a user traditional public key cryptographic encryption key pair and a user anti-quantum cryptographic encryption key pair, and returns them to the certificate authority;
[0066] S5. The certificate authority generates a user encryption certificate with a hybrid signature of both quantum-resistant cryptographic signature and traditional public key cryptographic signature;
[0067] S6. The certificate authority generates a hybrid encryption private key and a hybrid encryption public key based on the traditional public key cryptography encryption key pair and the quantum cryptography encryption key pair, generates a private key encryption ciphertext and a hybrid ciphertext based on the user signature certificate, the user encryption certificate and the random symmetric algorithm key, and sends the hybrid encryption public key, the private key encryption ciphertext and the hybrid ciphertext to the user;
[0068] S7. The user extracts the signature certificate, encryption certificate, quantum-resistant cryptographic encryption private key and traditional public key cryptographic encryption private key of the hybrid signature, and verifies the signature certificate and encryption certificate.
[0069] The above steps are further described below.
[0070] S1. The certificate authority (CA) has two types of keys: the traditional public key cryptographic signature key pair (CASK GMsig , CAPK GMsig ) and quantum-resistant cryptographic signature key pair (CASK PQCsig , CAPK PQCsig );
[0071] Among them, CASK GMsig Represents the traditional public key cryptographic signature private key of the certificate authority, CAPK GMsig Represents the traditional public key cryptographic signature public key of the certificate authority, CASK PQCsig Represents the certificate authority quantum-resistant cryptographic signature private key, CAPK PQCsig Represents the quantum-resistant cryptographic signature public key of the certificate authority;
[0072] The certificate authority issues its own traditional public key cryptographic signature public key CAPK GMsig Put it in the public key field of the certificate and change the quantum-resistant cryptographic signature public key CAPK PQCsig Place it in the extension of the certificate's message to be signed;
[0073] Use your own quantum-resistant cryptographic signature private key CASK PQCsig Perform quantum-resistant cryptographic signature CAsig on the certificate's message to be signed tb PQC =Sign PQC (tb, CASK PQCsig ), signature result CAsig PQC Place it in the extension of the certificate's message to be signed;
[0074] Update the message to be signed to tb new , the certificate authority uses the traditional public key cryptographic private key CASK GMsig Message to be signed for the certificate tb new Perform traditional public key cryptographic signature CAsig GM =Sign GM (tb new , CASK GMsig ), signature result CAsig GM Put it in the signature part of the certificate to generate a hybrid self-signed certificate with both quantum-resistant cryptographic signature and traditional public key cryptographic signature;
[0075] Among them, CAsig PQC Indicates the quantum-resistant cryptographic signature result of the self-signed certificate issued by the certificate authority, CAsig GM Indicates the traditional public key cryptographic signature result of the self-signed certificate issued by the certificate authority. PQC () indicates quantum-resistant cryptographic signature operation, Sign GM () represents the traditional public key cryptographic signature operation.
[0076] S2, users generate their own traditional public key cryptographic signature key pair (USK GMsig , UPK GMsig ), quantum-resistant cryptographic signature key pair (USK PQCsig , UPK PQCsig ) and quantum-resistant cryptographic temporary key pairs (TUSK PQCenc TUPK PQCenc );
[0077] Among them, USK GMsig Represents the user's traditional public key cryptographic signature private key, UPK GMsig Represents the user's traditional public key cryptographic signature public key, USK PQCsig Represents the user's quantum-resistant cryptographic signature private key, UPK PQCsig Represents the user's quantum-resistant cryptographic signature public key, TUSK PQCenc Indicates the user's quantum-resistant cryptographic temporary private key, TUPK PQCenc Indicates the user's quantum-resistant cryptographic encryption temporary public key;
[0078] The user counts his or her own identity information as UID and calculates the hybrid public key UPK mix =UPK GMsig ||UPK PQCsig ||TUPK PQCenc , calculate the user signature message um=UPK Mix ||UID; use your own quantum-resistant cryptographic signature private key USK PQCsigGenerate quantum-resistant cryptographic signature sig for um PQC =Sign PQC (um, USK PQCsig ); Use traditional public key cryptography to sign private key USK GMsig Generate a traditional public key cryptographic signature sig for um GM =Sign GM (um, USK GMsig ), generate a mixed signature sig for um mix =sig PQC ||sig GM ; Combine the user signature message um with the mixed signature sig mix Generate a hybrid signature certificate request file CSR mix Send to the certificate authority;
[0079] Among them, || represents the join operation, sig PQC Indicates the user's quantum-resistant cryptographic signature result, sig GM Represents the user's traditional public key cryptographic signature result.
[0080] S3. The certificate authority receives the user's hybrid signature certificate request file CSR mix After that, first request the hybrid signature certificate file CSR sent by the user mix Extract the user's traditional public key cryptographic signature public key UPK GMsig , quantum-resistant cryptographic signature public key UPK PQCsig , quantum-resistant cryptographic encryption temporary public key TUPK PQCenc , user identity information UID, anti-quantum cryptographic signature sig PQC And the traditional key signature sig GM ;
[0081] Afterwards, the quantum-resistant cryptographic signature public key UPK is used PQCsig Verify quantum-resistant cryptographic signature sig PQC Validity a=Verify PQC (sig PQC ,UPK Mix ||UID, UPK PQCsig ), using traditional public key cryptography to sign the public key UPK GMsig Verify traditional key signature sig GM b=Verify GM (sig GM ,UPK Mix ||UID, UPK GMsig ), when a and b are both true, the verification is successful, and the certificate authority continues to the following steps, otherwise, the certificate authority exits the step of generating the user certificate;
[0082] Among them, Verify PQC () indicates the verification operation of quantum-resistant cryptographic signature, Verify GM () represents the verification operation of traditional public key cryptographic signature.
[0083] After verification, the certificate authority will issue the traditional public key cryptographic signature public key UPK GMsig Put it in the public key field of the user's signature certificate and change the quantum-resistant cryptographic signature public key UPK PQCsig Put it in the extension field of the certificate, combine it with the user identity information in the hybrid signature certificate request file CSR, and generate the message utb to be signed of the user signature certificate;
[0084] Use your own quantum-resistant cryptographic signature private key CASK PQCsig Perform quantum-resistant cryptographic signature on the message to be signed utb of the user signature certificate to generate the user signature certificate quantum-resistant signature usig PQC =Sign PQC (utb, CASK PQCsig ), signature result usig PQC Place it in the extension of the message to be signed in the signing certificate;
[0085] Update the message to be signed to utb new =utb||usig PQC , using traditional public key cryptography private key CASK GMsig utb message to be signed for the signing certificate new Perform traditional public key cryptographic signature and generate user signature certificate traditional signature usig GM =Sign GM (utb new , CASK GMsig ), signature result usig GM Put it in the signature part of the signature certificate to generate a hybrid signature certificate for the user with both quantum-resistant cryptographic signature and traditional public key cryptographic signature. sig .
[0086] S4. The certificate authority requests the user's traditional public key cryptographic SM2 encryption key pair (USK SM2enc , UPK SM2enc ), user quantum cryptography Kyber key encapsulation key pair (USK Kyberenc , UPK Kyberenc ).
[0087] After receiving the request, the key generation center runs the traditional public key cryptographic key generation algorithm to generate a traditional public key cryptographic key pair (USK GMenc, UPK GMenc ) and run the quantum-resistant cryptographic key generation algorithm to generate a quantum-resistant cryptographic key pair (USK PQCenc , UPK PQCenc ), and the user's two private keys USK GMenc With USK PQCenc Save and save (USK GMenc , UPK GMenc ) and (USK PQCenc , UPK PQCenc ) is sent to the certificate authority via a secure channel;
[0088] Among them, USK GMenc Indicates the user's traditional public key password encrypted private key, UPK GMenc Indicates the user's traditional public key password encrypted public key, USK PQCenc Represents the user's quantum-resistant cryptographic encryption private key, UPK PQCsig Represents the user's quantum-resistant cryptographic encryption public key.
[0089] S5. The certificate authority receives two key pairs sent by the key generation center and encrypts the public key UPK GMenc Put it in the public key field of the encryption certificate and use the quantum-resistant cryptographic public key UPK PQCenc Put it in the extension field of the encryption certificate, combine it with the user identity information in the hybrid signature certificate request file, and generate the encrypted certificate to be signed message utb enc ;
[0090] Use your own quantum-resistant cryptographic signature private key CASK PQCsig utb for the message to be signed by the encryption certificate enc Perform anti-quantum cryptographic signature and generate user encryption certificate anti-quantum signature usig PQCenc =Sign PQC (utb enc , CASK PQCsig ), signature result usig PQCenc Place it in the extension of the message to be signed by the encryption certificate;
[0091] Update the message to be signed to utb enc_new , using traditional public key cryptography private key CASK GMsig utb for the message to be signed by the encryption certificate enc_new Perform traditional public key cryptographic signature and generate user encryption certificate traditional signature usig GMenc =Sign GM (utb enc_new , CASK GMsig ), signature result usig GMencPut it in the signature part of the encryption certificate to generate an encryption certificate for the user with a hybrid signature of both quantum-resistant cryptographic signature and traditional public key cryptographic signature. enc .
[0092] S6. The certificate authority generates a hybrid encryption private key USK mix =USK GMenc ||USK PQCenc With hybrid encryption public key UPK mix =UPK GMenc ||UPK PQCenc , using quantum-resistant cryptography to encrypt the temporary public key TUPK PQCenc Run the encryption algorithm to generate quantum-resistant cryptographic encryption temporary ciphertext TCT and temporary shared key TSS, and use TSS as the symmetric algorithm key;
[0093] Calculate the symmetric algorithm plaintext m=USK mix ||UCer sig ||UCer enc , calculate the quantum-resistant ciphertext c PQC =Enc Sym (m,tss);
[0094] Randomly select the symmetric algorithm key K and send the quantum-resistant ciphertext c PQC As the plaintext of the symmetric algorithm, calculate the private key encrypted ciphertext c SK =Enc Sym (c PQC , K);
[0095] Utilize the user's traditional public key cryptographic signature public key UPK GMsig Encrypt the symmetric algorithm key K to generate the symmetric algorithm key encrypted ciphertext c K =Enc GM (K,UPK GMsig ), generate mixed ciphertext c mix =c K ||tct;
[0096] Among them, Enc Sym () indicates the symmetric algorithm encryption operation, Enc GM () represents traditional public key cryptographic encryption operations.
[0097] The certificate authority then mixes the public key UPK mix 、Private key encrypted ciphertext c SK With the mixed ciphertext c mix Send to user.
[0098] S7. The user receives the hybrid public key UPK mix 、Private key encrypted ciphertext cSK With the mixed ciphertext c mix After that, the signature certificate, encryption certificate, quantum-resistant cryptographic encryption private key and traditional public key cryptographic encryption private key are extracted. The specific process includes:
[0099] User extracts quantum-resistant cryptographic public key UPK PQCenc , Traditional public key cryptography encryption public key UPK GMenc 、Symmetric algorithm key encrypts ciphertext c K , temporary quantum-resistant cryptographic key encapsulation ciphertext tct;
[0100] Use your own traditional public key cryptographic signature public key USK GMsig Decrypt the symmetric algorithm encrypted ciphertext c K Get the symmetric algorithm key K=Dec GM (K, USK GMsig ), use the symmetric algorithm key K to decrypt the private key encrypted ciphertext c SK Get the quantum-resistant ciphertext c PQC =Dec Sym (c SK , K);
[0101] Encrypt the private key TUSK using your own temporary quantum-resistant cryptography PQCenc Decrypt the encapsulated ciphertext tct to obtain the temporary shared key tss, and use the temporary shared key tss to decrypt the quantum-resistant ciphertext c PQC Get the symmetric algorithm plaintext m=Dec Sym (c PQC , tss), extract your own signature certificate UCer sig , encryption certificate UCer enc , quantum-resistant cryptographic encryption private key USK PQCenc , Traditional public key cryptography encrypted private key USK GMenc ;
[0102] Among them, Dec Sym () indicates the symmetric algorithm decryption operation, Dec GM () represents the traditional public key cryptographic decryption operation.
[0103] Afterwards, the user verifies the validity of the signature certificate and encryption certificate of the extracted hybrid signature;
[0104] When verifying the validity of a hybrid signature certificate, the traditional public key cryptographic signature part of the hybrid signature certificate is verified using the verification method of the existing commercial cryptographic digital certificate system, and then the quantum-resistant cryptographic signature public key of the hybrid signature self-signed certificate of the certificate issuing authority is obtained from the certificate chain, and the quantum-resistant cryptographic signature part of the hybrid signature certificate is verified. When both signatures are verified at the same time, the hybrid signature certificate is deemed valid.
[0105] When verifying the validity of a hybrid-signed encryption certificate, the traditional public key cryptographic signature part of the hybrid-signed encryption certificate is verified using the verification method of the existing commercial cryptographic digital certificate system, and then the quantum-resistant cryptographic signature public key of the hybrid-signed self-signed certificate of the certificate authority is obtained from the certificate chain, and the quantum-resistant cryptographic signature part of the hybrid-signed encryption certificate is verified. When both signatures are verified at the same time, the hybrid-signed encryption certificate is deemed valid.
[0106] Specifically, taking the validity verification of the hybrid signature certificate as an example, the user first obtains the traditional public key cryptographic signature public key CAPK from the CA self-signed certificate. GMsig , and then extract the signature message of the signature certificate, and use the traditional public key algorithm to verify the traditional public key cryptographic signature part in the signature certificate; then, the user obtains the quantum-resistant cryptographic signature public key CAPK in the CA self-signed certificate PQCsig , then extract the signature message of the signature certificate, delete the anti-quantum signature extension part from the signature message in the signature certificate, and update the signature message of the signature certificate. Combined with the anti-quantum cryptographic signature public key CAPK PQCsig , the updated signature message, and the quantum-resistant cryptographic signature part in the signature certificate are verified using a quantum-resistant public key algorithm. When both signatures are verified at the same time, the signature certificate with the hybrid signature is deemed valid.
[0107] The above method is described below using the quantum-resistant cryptographic signature algorithm Dilithium, the quantum-resistant cryptographic key encapsulation algorithm Kyber, the traditional public key cryptographic signature algorithm SM2, the traditional public key cryptographic encryption algorithm SM2, and the symmetric algorithm SM4 as examples.
[0108] S1 and CA have two keys, namely the traditional public key cryptography SM2 signature key pair (CASK SM2sig , CAPK SM2sig ) and the quantum-resistant Dilithium signature key pair (CASK Dilithiumsig , CAPK Dilithiumsig ).
[0109] Among them, CASK SM2sig Indicates CA traditional public key cryptographic SM2 signature private key, CAPK SM2sig Indicates CA traditional public key cryptographic SM2 signature public key, CASKDilithiumsig Represents CA quantum-resistant Dilithium signature private key, CAPK Dilithiumsig Represents the CA quantum-resistant Dilithium signature public key.
[0110] CA first signs its traditional public key cryptographic SM2 public key CAPK SM2sig Put it in the public key field of the certificate and change the quantum-resistant Dilithium signature public key CAPK Dilithiumsig Put it in the extension of the certificate message to be signed, and then use your own quantum-resistant cryptographic signature private key CASK Dilithiumsig Perform quantum-resistant cryptographic signature sig on the certificate's message to be signed tb Dilithium =Sign Dilithium (tb, CASK Dilithiumsig ), signature result sig Dilithium Place it in the extension of the certificate's message to be signed. Afterwards, update the message to be signed to tb new , CA uses the traditional public key cryptographic private key CASK SM2sig Message to be signed for the certificate tb new Perform traditional public key cryptographic signature sig SM2 =Sign SM2 (tb new , CASK SM2sig ), signature result sig SM2 It is placed in the signature part of the certificate, thus generating a hybrid signature certificate that has both quantum-resistant cryptographic signature and traditional public key cryptographic signature.
[0111] Among them, Sign Dilithium () indicates the quantum-resistant Dilithium signature operation, Sign SM2 () represents the traditional public key cryptography SM2 signature operation.
[0112] S2, users generate their own traditional public key cryptographic signature key pair (USK SM2sig , UPK SM2sig ), quantum-resistant cryptographic signature key pair (USK Dilithiumsig , UPK Dilithiumsig ), Temporary Quantum-resistant Cryptographic Key Encapsulation Key Pair (TUSK Kyberenc , TUPK Kyberenc ).
[0113] Among them, USK SM2sig Indicates the user's traditional public key password SM2 signature private key, UPK SM2sig Indicates the user's traditional public key cryptographic SM2 signature public key, USK Dilithiumsig Represents the user's quantum-resistant Dilithium signature private key, UPKDilithiumsig Represents the user's quantum-resistant Dilithium signature public key, TUSK Kyberenc Indicates the user's quantum-resistant cryptographic key encapsulation temporary private key, TUPK Kyberenc Indicates the user's quantum-resistant cryptographic key encapsulation temporary public key.
[0114] The user counts his or her own identity information as UID and calculates the hybrid public key UPK mix =UPK SM2sig ||UPK Dilithiumsig ||TUPK Kyberenc , calculate the user signature message um=UPK Mix ||UID, using its own quantum-resistant Dilithium signature private key USK Dilithiumsig Generate a quantum-resistant cryptographic signature sig for m Dilithium =Sign Dilithium (m, USK Dilithiumsig ), using traditional public key cryptography to sign private key USK SM2sig Generate a traditional public key cryptographic SM2 signature sig for m SM2 =Sign SM2 (m,USK SM2sig ), thereby generating a mixed signature sig for m mix =sig Dilithium ||sig SM2 . Combine the user signature message um with the mixed signature sig mix Generate a hybrid signature certificate request file CSR mix , and CSR mix Send to CA.
[0115] Among them, || represents the join operation, Sign Dilithium () indicates the quantum-resistant Dilithium signature operation, Sign SM2 () represents the traditional public key cryptography SM2 signature operation.
[0116] S3. Receive the user's hybrid signature certificate request file CSR mix After that, the CA first extracts the user's hybrid public key UPK from the CSR file mix 、Traditional public key cryptography SM2 signature public key UPK SM2sig , quantum-resistant cryptography Dilithium signature public key UPK Dilithiumsig , user identity information UID, anti-quantum cryptographic signature sig Dilithium And the traditional key signature sig SM2 . Using the public key UPK Dilithiumsig Verify signature sig Dilithium Validity a=VerifyDilithium (sig Dilithium ,UPK Mix ||UID,UPK Dilithiumsig ), using the public key UPK SM2sig Verify signature sig SM2 b=Verify SM2 (sig SM2 ,UPK Mix ||UID,UPK SM2sig ), only when a and b are true at the same time, the verification is passed, and CA continues to the following steps. Otherwise, CA exits the step of generating user certificates and does not continue to execute the following steps.
[0117] Among them, Verify Dilithium () indicates the verification operation of the quantum-resistant Dilithium signature, Verify SM2 () represents the verification operation of the traditional public key cryptography SM2 signature.
[0118] Afterwards, the CA will use the traditional public key cryptographic signature public key UPK SM2sig Put it in the public key field of the user's signature certificate and change the quantum-resistant Dilithium signature public key UPK Dilithiumsig Put it in the extension field of the user signature certificate, combine the user identity information in the CSR file, etc., generate the message to be signed utb of the user signature certificate, and then use your own quantum-resistant Dilithium signature private key CASK Dilithiumsig Perform the quantum-resistant Dilithium signature on the message to be signed utb of the user signature certificate to generate the quantum-resistant signature usig of the user signature certificate Dilithium =Sign Dilithium (utb,CASK Dilithiumsig ), signature result usig Dilithium Put it in the extension of the message to be signed by the user's signature certificate. After that, update the message to be signed to utb new =utb||usig Dilithium , using the traditional public key cryptography SM2 signature private key CASK SM2sig utb message to be signed for the signing certificate new Perform traditional public key cryptography SM2 signature and generate user signature certificate traditional signature usig SM2 =Sign SM2 (utb new , CASK SM2sig ), signature result usig SM2 Put it in the signature part of the user's signature certificate, so as to generate a signature certificate for the user with a hybrid signature of both quantum-resistant cryptographic signature and traditional public key cryptographic signature.sig .
[0119] S4, CA requests the user's traditional public key SM2 encryption key pair (USK SM2enc ,UPK SM2enc ), user quantum cryptography Kyber key encapsulation key pair (USK Kyberenc , UPK Kyberenc ).
[0120] After receiving the request from CA, KMC runs the traditional public key cryptography SM2 key generation algorithm to generate a traditional public key cryptography encryption key pair (USK SM2enc , UPK SM2enc ) and run the quantum-resistant Kyber key encapsulation key generation algorithm to generate a quantum-resistant Kyber key encapsulation key pair (USK Kyberenc , UPK Kyberenc ), and the user's two private keys USK SM2enc With USK Kyberenc Save and save (USK SM2enc , UPK SM2enc ) and (USK Kyberenc , UPK Kyberenc ) is sent to CA via a secure channel.
[0121] Among them, USK SM2enc Indicates the user's traditional public key password SM2 encrypted private key, UPK SM2enc Indicates the user's traditional public key SM2 encrypted public key, USK Kyberenc Represents the user's quantum-resistant Kyber key-wrapped private key, UPK Kyberenc Represents the user's quantum-resistant Kyber key-wrapped public key.
[0122] S5. CA receives two key pairs sent by KMS and encrypts the public key UPK with the traditional public key cipher SM2. SM2enc Put it in the public key field of the user's encryption certificate to encapsulate the quantum-resistant Kyber key into the public key UPK Kyberenc Put it in the extension field of the user encryption certificate, combine it with the user identity information in the CSR file, and generate the message to be signed of the user encryption certificate utb enc , and then use its own quantum-resistant Dilithium signature private key CASK Dilithiumsig utb to be signed message of user encryption certificate enc Perform quantum-proof cryptographic Dilithium signature and generate user encryption certificate quantum-proof signature usig Dilithiumenc =Sign Dilithium (utb enc, CASK Dilithiumsig ), signature result usig Dilithiumenc Put it in the extension of the message to be signed by the user's encryption certificate. After that, update the message to be signed to utb enc_new , using the traditional public key cryptography SM2 signature private key CASK SM2sig utb for the message to be signed by the encryption certificate enc_new Perform traditional public key cryptographic signature and generate user encryption certificate traditional signature usig SM2enc =Sign SM2 (utb enc_new , CASK SM2sig ), signature result usig SM2enc Put it in the signature part of the user's encryption certificate, so as to generate an encryption certificate for the user with a hybrid signature of both quantum-resistant cryptographic signature and traditional public key cryptographic signature. enc .
[0123] S6. CA generates hybrid private key USK mix =USK SM2enc ||USK Kyberenc With the hybrid public key UPK mix =UPK SM2enc ||UPK Kyberenc , using the user's temporary quantum-resistant cryptographic Kyber key to encapsulate the public key TUPK PQCenc Run the key encapsulation algorithm to generate the user's temporary quantum-resistant key encapsulation ciphertext tct and temporary shared key tss, and use tss as the symmetric algorithm key. Calculate the symmetric algorithm plaintext m=USK mix ||UCer sig ||UCer enc , calculate the quantum-resistant ciphertext c PQC =Enc SM4 (m, tss); then, CA randomly selects the symmetric algorithm key K and PQC As the plaintext of the symmetric algorithm, calculate the private key encrypted ciphertext c SK =Enc SM4 (c PQC , K); Use the user's traditional public key cryptography SM2 to sign the public key UPK SM2sig The symmetric algorithm key K is used to encrypt and generate the symmetric algorithm key encrypted ciphertext c K =Enc SM2 (K,UPK SM2sig ), thereby generating the mixed ciphertext c mix =c K ||tct.
[0124] Among them, Enc SM4() indicates the symmetric algorithm SM4 encryption operation, Enc SM2 () represents the traditional public key cryptography SM2 encryption operation.
[0125] Afterwards, the CA will mix the public key UPK mix 、Private key encrypted ciphertext c SK With the mixed ciphertext c mix Send to user.
[0126] S7. User extracts quantum-resistant cryptographic Kyber key encapsulation public key UPK Kyberenc , Traditional public key cryptography Kyber encrypted public key UPK SM2enc 、Symmetric algorithm key encrypts ciphertext c K , the user's temporary quantum-resistant cryptographic Kyber key encapsulation ciphertext tct. First, use your own traditional public key cryptography SM2 signature public key USK SM2sig Decryptionc K Get the symmetric algorithm key K=Dec SM2 (K,USK SM2sig ), use K to decrypt the private key to encrypt the ciphertext c SK Get the quantum-resistant ciphertext c PQC =Dec SM4 (c SK , K), using its own temporary quantum-resistant cryptographic Kyber key to encapsulate the private key TUSK Kyberenc Decapsulate the ciphertext tct to obtain the temporary shared key tss, and use tss to decrypt c PQC Get the symmetric algorithm plaintext m=Dec SM4 (c PQC , tss), thereby extracting your own signature certificate UCer sig , encryption certificate UCer enc , quantum-resistant cryptographic key encapsulation private key USK Kyberenc , Traditional public key cryptography encrypted private key USK SM2enc .
[0127] Among them, Dec SM4 () indicates the decryption operation of the symmetric algorithm SM4, Dec SM2 () represents the traditional public key cryptography SM2 decryption operation.
[0128] When a user verifies the validity of a signed certificate, he or she first uses the CA's traditional public key cryptographic signature private key to verify the traditional public key cryptographic signature part of the signed certificate, and then uses the CA's quantum-resistant cryptographic signature private key to verify the quantum-resistant cryptographic signature part of the signed certificate. Only when both signatures are verified at the same time, the signed certificate is considered valid.
[0129] When a user verifies the validity of an encryption certificate, he or she first uses the CA's traditional public key cryptographic signature private key to verify the traditional public key cryptographic signature part of the encryption certificate, and then uses the CA's quantum-resistant cryptographic signature private key to verify the quantum-resistant cryptographic signature part of the encryption certificate. Only when both signatures are verified at the same time, the signed certificate is considered valid.
[0130] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0131] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for generating a commercial cryptographic digital certificate supporting quantum-resistant cryptography, characterized in that: The following steps are involved: The certificate authority generates a hybrid self-signed certificate with both quantum-resistant cryptographic signature and traditional public key cryptographic signature; The user generates a hybrid signature certificate request file and sends it to the certificate authority; The certificate authority verifies the hybrid signature certificate request file, and after the verification is passed, generates a user signature certificate with a hybrid signature that has both a quantum-resistant cryptographic signature and a traditional public key cryptographic signature; The key generation center generates a user's traditional public key cryptographic encryption key pair and a user's quantum-resistant cryptographic encryption key pair, and returns them to the certificate authority; The certificate authority generates a user encryption certificate with a hybrid signature of both quantum-resistant cryptographic signature and traditional public key cryptographic signature; The certificate authority generates a hybrid encryption private key and a hybrid encryption public key based on the traditional public key cryptography encryption key pair and the quantum cryptography encryption key pair, generates a private key encryption ciphertext and a hybrid ciphertext based on the user signature certificate, the user encryption certificate and the random symmetric algorithm key, and sends the hybrid encryption public key, the private key encryption ciphertext and the hybrid ciphertext to the user; The user extracts the signature certificate, encryption certificate, quantum-resistant cryptographic encryption private key and traditional public key cryptographic encryption private key of the hybrid signature, and verifies the signature certificate and encryption certificate.
2. The method for generating a commercial cryptographic digital certificate supporting quantum-resistant cryptography according to claim 1, characterized in that: The process for a certificate authority to generate a hybrid self-signed certificate includes: The certificate authority has two types of keys: the traditional public key cryptographic signature key pair (CASK GMsig , CAPK GMsig ) and quantum-resistant cryptographic signature key pair (CASK PQCsig , CAPK PQCsig ); Among them, CASK GMsig Represents the traditional public key cryptographic signature private key of the certificate authority, CAPK GMsig Represents the traditional public key cryptographic signature public key of the certificate authority, CASK PQCsig Represents the certificate authority quantum-resistant cryptographic signature private key, CAPK PQCsig Represents the quantum-resistant cryptographic signature public key of the certificate authority; The certificate authority issues its own traditional public key cryptographic signature public key CAPK GMsig Put it in the public key field of the certificate and change the quantum-resistant cryptographic signature public key CAPK PQCsig Place it in the extension of the certificate's message to be signed; Use your own quantum-resistant cryptographic signature private key CASK PQCsig Perform quantum-resistant cryptographic signature CAsig on the certificate's message to be signed tb PQC =Sign PQC (tb, CASK PQCsig ), signature result CAsig PQC Place it in the extension of the certificate's message to be signed; Update the message to be signed to tb new , the certificate authority uses the traditional public key cryptographic private key CASK GMsig Message to be signed for the certificate tb new Perform traditional public key cryptographic signature CAsig GM =Sign GM (tb new , CASK GMsig ), signature result CAsig GM Put it in the signature part of the certificate to generate a hybrid self-signed certificate with both quantum-resistant cryptographic signature and traditional public key cryptographic signature; Among them, CAsig PQC Indicates the quantum-resistant cryptographic signature result of the self-signed certificate issued by the certificate authority, CAsig GM Indicates the traditional public key cryptographic signature result of the self-signed certificate issued by the certificate authority. PQC () indicates quantum-resistant cryptographic signature operation, Sign GM () represents the traditional public key cryptographic signature operation.
3. The method for generating a commercial cryptographic digital certificate supporting quantum-resistant cryptography according to claim 2, characterized in that: The process of generating a hybrid signature certificate request file by a user includes: Users generate their own traditional public key cryptographic signature key pair (USK GMsig , UPK GMsig ), quantum-resistant cryptographic signature key pair (USK PQCsig , UPK PQCsig ) and quantum-resistant cryptographic temporary key pairs (TUSK PQCenc TUPK PQCenc ); Among them, USK GMsig Represents the user's traditional public key cryptographic signature private key, UPK GMsig Represents the user's traditional public key cryptographic signature public key, USK PQCsig Represents the user's quantum-resistant cryptographic signature private key, UPK PQCsig Represents the user's quantum-resistant cryptographic signature public key, TUSK PQCenc Indicates the user's quantum-resistant cryptographic temporary private key, TUPK PQCenc Indicates the user's quantum-resistant cryptographic encryption temporary public key; The user counts his or her own identity information as UID and calculates the hybrid public key UPK mix =UPK GMsig ||UPK PQCsig ||TUPK PQCenc , calculate the user signature message um=UPK Mix ||UID; use your own quantum-resistant cryptographic signature private key USK PQCsig Generate quantum-resistant cryptographic signature sig for um PQC =Sign PQC (um, USK PQCsig ); Use traditional public key cryptography to sign private key USK GMsig Generate a traditional public key cryptographic signature sig for um GM =Sign GM (um, USK GMsig ), generate a mixed signature sig for um mix =sig PQC ||sig GM ; Combine the user signature message um with the mixed signature sig mix Generate a hybrid signature certificate request file CSR mix Send to the certificate authority; Among them, || represents the join operation, sig PQC Indicates the user's quantum-resistant cryptographic signature result, sig GM Represents the user's traditional public key cryptographic signature result.
4. The method for generating a commercial cryptographic digital certificate supporting quantum-resistant cryptography according to claim 3, characterized in that: The process by which the certificate authority verifies the hybrid signature certificate request file includes: The certificate authority sends the hybrid signature certificate request file CSR from the user mix Extract the user's traditional public key cryptographic signature public key UPK GMsig , quantum-resistant cryptographic signature public key UPK PQCsig , quantum-resistant cryptographic encryption temporary public key TUPK PQCenc , user identity information UID, anti-quantum cryptographic signature sig PQC And the traditional key signature sig GM ; Using quantum-resistant cryptographic signature public key UPK PQCsig Verify quantum-resistant cryptographic signature sig PQC Validity a=Verify PQC (sig PQC ,UPK Mix ||UID, UPK PQCsig ), using traditional public key cryptography to sign the public key UPK GMsig Verify traditional key signature sig GM b=Verify GM (sig GM ,UPK Mix ||UID, UPK GMsig ), when a and b are both true, the verification is successful, and the certificate authority continues to the following steps, otherwise, the certificate authority exits the step of generating the user certificate; Among them, Verify PQC () indicates the verification operation of quantum-resistant cryptographic signature, Verify GM () represents the verification operation of traditional public key cryptographic signature.
5. The method for generating a commercial cryptographic digital certificate supporting quantum-resistant cryptography according to claim 4, characterized in that: The process by which a certificate authority generates a hybrid signed user-signed certificate includes: The certificate authority will use the traditional public key cryptographic signature public key UPK GMsig Put it in the public key field of the user's signature certificate and change the quantum-resistant cryptographic signature public key UPK PQCsig Put it in the extension field of the certificate, combine it with the user identity information in the hybrid signature certificate request file CSR, and generate the message to be signed utb of the user signature certificate; Use your own quantum-resistant cryptographic signature private key CASK PQCsig Perform quantum-resistant cryptographic signature on the message to be signed utb of the user signature certificate to generate the user signature certificate quantum-resistant signature usig PQC =Sign PQC (utb, CASK PQCsig ), signature result usig PQC Place it in the extension of the message to be signed in the signing certificate; Update the message to be signed to utb new =utb||usig PQC , using traditional public key cryptography private key CASK GMsig utb message to be signed for the signing certificate new Perform traditional public key cryptographic signature and generate user signature certificate traditional signature usig GM =Sign GM (utb new , CASK GMsig ), signature result usig GM Put it in the signature part of the signature certificate to generate a hybrid signature certificate for the user with both quantum-resistant cryptographic signature and traditional public key cryptographic signature. sig .
6. The method for generating a commercial cryptographic digital certificate supporting quantum-resistant cryptography according to claim 5, characterized in that: The process of the key generation center generating the user's traditional public key cryptographic encryption key pair and the user's quantum-resistant cryptographic encryption key pair is as follows: The certificate authority sends a key pair generation request to the key generation center; After receiving the request, the key generation center runs the traditional public key cryptographic key generation algorithm to generate a traditional public key cryptographic key pair (USK GMenc , UPK GMenc ) and run the quantum-resistant cryptographic key generation algorithm to generate a quantum-resistant cryptographic key pair (USK PQCenc , UPK PQCenc ), and the user's two private keys USK GMenc With USK PQCenc Save and save (USK GMenc , UPK GMenc ) and (USK PQCenc , UPK PQCenc ) is sent to the certificate authority via a secure channel; Among them, USK GMenc Indicates the user's traditional public key password encrypted private key, UPK GMenc Indicates the user's traditional public key password encrypted public key, USK PQCenc Represents the user's quantum-resistant cryptographic encryption private key, UPK PQCsig Represents the user's quantum-resistant cryptographic encryption public key.
7. The method for generating a commercial cryptographic digital certificate supporting quantum-resistant cryptography according to claim 6, characterized in that: The process for a certificate authority to generate a user encryption certificate is: The certificate authority receives two key pairs from the key generation center and encrypts the public key UPK GMenc Put it in the public key field of the encryption certificate and use the quantum-resistant cryptographic public key UPK PQCenc Put it in the extension field of the encryption certificate, combine it with the user identity information in the hybrid signature certificate request file, and generate the encrypted certificate to be signed message utb enc ; Use your own quantum-resistant cryptographic signature private key CASK PQCsig utb message to be signed for encryption certificate enc Perform anti-quantum cryptographic signature and generate user encryption certificate anti-quantum signature usig PQCenc =Sign PQC (utb enc , CASK PQCsig ), signature result usig PQCenc Place it in the extension of the message to be signed by the encryption certificate; Update the message to be signed to utb enc_new , using traditional public key cryptography private key CASK GMsig utb message to be signed for encryption certificate enc_new Perform traditional public key cryptographic signature and generate user encryption certificate traditional signature usig GMenc =Sign GM (utb enc_new , CASK GMsig ), signature result usig GMenc Put it in the signature part of the encryption certificate to generate an encryption certificate for the user with a hybrid signature of both quantum-resistant cryptographic signature and traditional public key cryptographic signature. enc .
8. The method for generating a commercial cryptographic digital certificate supporting quantum-resistant cryptography according to claim 7, characterized in that: The process by which a certificate authority generates a hybrid encryption public key, private key encryption ciphertext, and hybrid ciphertext includes: The certificate authority generates a hybrid encryption private key USK mix =USK GMenc ||USK PQCenc With hybrid encryption public key UPK mix =UPK GMenc ||UPK PQCenc , using quantum-resistant cryptography to encrypt the temporary public key TUPK PQCenc Run the encryption algorithm to generate quantum-resistant cryptographic encryption temporary ciphertext TCT and temporary shared key TSS, and use TSS as the symmetric algorithm key; Calculate the symmetric algorithm plaintext m=USK mix ||UCer sig ||UCer enc , calculate the quantum-resistant ciphertext c PQC =Enc Sym (m, tss); Randomly select the symmetric algorithm key K and send the quantum-resistant ciphertext c PQC As the plaintext of the symmetric algorithm, calculate the private key encrypted ciphertext c SK =Enc Sym (c PQC ,K); Utilize the user's traditional public key cryptographic signature public key UPK GMsig Encrypt the symmetric algorithm key K to generate the symmetric algorithm key encrypted ciphertext c K =Enc GM (K,UPK GMsig ), generate mixed ciphertext c mix =c K ||tct; Among them, Enc Sym () indicates the symmetric algorithm encryption operation, Enc GM () represents traditional public key cryptographic encryption operations.
9. The method for generating a commercial cryptographic digital certificate supporting quantum-resistant cryptography according to claim 8, characterized in that: The process of users extracting signature certificates, encryption certificates, quantum-resistant cryptographic private keys, and traditional public key cryptographic private keys includes: User extracts quantum-resistant cryptographic public key UPK PQCenc , Traditional public key cryptography encryption public key UPK GMenc 、Symmetric algorithm key encrypts ciphertext c K , temporary quantum-resistant cryptographic key encapsulation ciphertext tct; Use your own traditional public key cryptographic signature public key USK GMsig Decrypt the symmetric algorithm encrypted ciphertext c K Get the symmetric algorithm key K=Dec GM (K, USK GMsig ), use the symmetric algorithm key K to decrypt the private key encrypted ciphertext c SK Get the quantum-resistant ciphertext c PQC =Dec Sym (c SK ,K); Encrypt the private key TUSK using your own temporary quantum-resistant password PQCenc Decrypt the encapsulated ciphertext tct to obtain the temporary shared key tss, and use the temporary shared key tss to decrypt the quantum-resistant ciphertext c PQC Get the symmetric algorithm plaintext m=Dec Sym (c PQC , tss), extract your own signature certificate UCer sig , encryption certificate UCer enc , quantum-resistant cryptographic encryption private key USK PQCenc , Traditional public key cryptography encrypted private key USK GMenc ; Among them, Dec Sym () indicates the symmetric algorithm decryption operation, Dec GM () represents the traditional public key cryptographic decryption operation.
10. The method for generating a commercial cryptographic digital certificate supporting quantum-resistant cryptography according to claim 1, characterized in that: After the user extracts the signature certificate and encryption certificate of the hybrid signature, the validity of the certificates is verified; When verifying the validity of the hybrid signature certificate, the traditional public key cryptographic signature part of the hybrid signature certificate is verified using the verification method of the existing commercial cryptographic digital certificate system, and then the quantum-resistant cryptographic signature public key of the hybrid signature self-signed certificate of the certificate issuing authority is obtained from the certificate chain, and the quantum-resistant cryptographic signature part of the hybrid signature certificate is verified. When both signatures are verified at the same time, the hybrid signature certificate is deemed valid; When verifying the validity of a hybrid-signed encryption certificate, the traditional public key cryptographic signature part of the hybrid-signed encryption certificate is verified using the verification method of the existing commercial cryptographic digital certificate system, and then the quantum-resistant cryptographic signature public key of the hybrid-signed self-signed certificate of the certificate authority is obtained from the certificate chain, and the quantum-resistant cryptographic signature part of the hybrid-signed encryption certificate is verified. When both signatures are verified at the same time, the hybrid-signed encryption certificate is deemed valid.
Citation Information
Patent Citations
Method for generating dual-key system digital certificate and application method
CN111628860A
Anti-quantum computing digital signature system based on digital certificate and signature method
CN112104453A
Block chain transaction verification method and system based on mixed quantum digital signature
CN115345618A
Anti-quantum hybrid certificate combination method and system, and electronic equipment
CN117650898A
Hybrid key derivation to secure data
US20220209950A1
Cited By
Post-quantum digital certificate application method and device, electronic equipment and storage medium
CN118827067A
Digital certificate generation method and device, electronic equipment and storage medium
CN119276476A
Method and device for establishing corresponding relation between post-quantum certificate and traditional certificate
CN119382889A
Anti-quantum identity authentication method, anti-quantum identity authentication system and electronic equipment
CN119449326A
Digital certificate authentication method and device based on post-quantum algorithm, equipment and medium
CN119603065A
