National password IPSec secure communication method supporting quantum cryptography resistance

By introducing anti-quantum key encapsulation and anti-quantum signature technology into the national secret IPSec protocol, the problem that traditional encryption algorithms are easy to crack under quantum computers has been solved, and the anti-quantum attack capability and security guarantee of the national secret IPSec protocol have been improved. Ensure the smooth transition and high security of the system in the quantum computing environment.

CN118631448AActive Publication Date: 2024-09-10SHANDONG DUOFANG SEMICON CO LTD +1

Patent Information

Application Number
CN202410911510.8
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

Technical Problem

Traditional public key encryption algorithms are easily cracked in the face of quantum computers. The existing national secret IPSec protocol lacks the ability to resist quantum attacks in a quantum computing environment. Anti-quantum cryptography technology needs to be introduced to enhance security.

Method used

Introduce anti-quantum key encapsulation and anti-quantum signature technology into the national secret IPSec protocol, generate anti-quantum temporary shared keys through double verification and key exchange between the responder and the initiator, and generate hybrid key parameters based on this , ensuring a double protection mechanism for keys.

Benefits of technology

It significantly improves the system's ability to resist quantum attacks, provides reliable security in a quantum computing environment, and ensures that the system maintains a high level of security as quantum computing technology matures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118631448A
    Figure CN118631448A
Patent Text Reader

Abstract

The invention relates to the technical field of information security, in particular to a national secret IPSec security communication method supporting anti-quantum cryptography, which comprises the following steps: an initiator receives a mixed signature double certificate of a responder for verification, and constructs a mixed key exchange parameter and a mixed signature; the responder sequentially verifies the mixed signature double certificates of the initiator, decrypts the mixed key exchange parameters, verifies the mixed signature and performs anti-quantum key packaging operation to obtain a temporary ciphertext and an anti-quantum temporary shared key; the responder constructs a mixed key exchange parameter and a mixed signature; the initiator decrypts the mixed key exchange parameters of the responder; verifying the mixed signature of the responder; performing anti-quantum key de-encapsulation operation to obtain an anti-quantum temporary shared key; and the initiator and the responder generate respective mixed key parameters according to the quantum-resistant temporary shared key. According to the invention, the security of the IPSec protocol in the quantum computing era can be enhanced, and dual protection in the communication process is realized.
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 more specifically to a national secret IPSec secure communication method supporting anti-quantum cryptography. Background Art

[0002] With the rapid development of quantum computing technology, traditional public key encryption algorithms (such as RSA and ECC) are at risk of being cracked by quantum computers. The powerful computing power of quantum computers can crack many existing cryptographic systems in a very short time, which poses a huge threat to information security. As a national cryptographic standard, the National Secret Algorithm (SM series algorithm) has been widely used in the field of information security. However, in order to cope with the challenges brought by future quantum computing, it is necessary to introduce anti-quantum cryptographic technology into the existing National Secret IPSec protocol to enhance its ability to resist quantum attacks.

[0003] IPSec (Internet Protocol Security) is a framework for protecting Internet protocol communications, in which the IKE (Internet Key Exchange) protocol is responsible for establishing and maintaining security associations (SA). At present, the IPSec protocol mainly uses national secret algorithms (such as SM2, SM3, and SM4) for encryption and authentication, but these algorithms are also threatened by quantum computers. Therefore, it is of great practical significance and application value to study and design a method to integrate quantum-resistant key exchange and signature algorithms in national secret IPSec. Summary of the invention

[0004] In view of this, the present invention provides a national secret IPSec secure communication method that supports anti-quantum cryptography, which can enhance the security of the IPSec protocol in the era of quantum computing and achieve double protection in the communication process.

[0005] In order to achieve the above object, the present invention adopts the following technical solution:

[0006] A national secret IPSec secure communication method supporting quantum-resistant cryptography, comprising:

[0007] After receiving the security association payload sent by the initiator, the responder sends its pre-applied signature certificate with a hybrid signature of both quantum-resistant signature and national secret signature and the encryption certificate of the hybrid signature to the initiator;

[0008] The initiator uses the root certificate to verify the responder's hybrid signature dual certificate and generate a quantum-resistant key encapsulation algorithm temporary key;

[0009] The initiator constructs the hybrid key exchange parameters and hybrid signature based on the temporary key of the quantum-resistant key encapsulation algorithm and sends them to the responder;

[0010] The responder extracts the signature certificate and the encryption certificate of the hybrid signature with both the quantum-resistant signature and the national secret signature that the initiator has applied for in advance from the hybrid key exchange parameters, and verifies the hybrid signature double certificates of the initiator using the root certificate; decrypts the hybrid key exchange parameters constructed by the initiator to obtain the exchange data of the initiator; verifies the hybrid signature of the initiator; performs the key encapsulation operation of the quantum-resistant key encapsulation algorithm to obtain the temporary ciphertext and the quantum-resistant temporary shared key ss;

[0011] The responder constructs the hybrid key exchange parameters and hybrid signature based on the temporary ciphertext and sends them to the initiator;

[0012] The initiator decrypts the hybrid key exchange parameters of the responder to obtain the exchange data of the responder; verifies the hybrid signature of the responder; performs the key decapsulation operation of the quantum-resistant key encapsulation algorithm to obtain the quantum-resistant temporary shared key ss;

[0013] Both the initiator and the responder generate their own hybrid key parameters based on the quantum-resistant temporary shared key ss, and perform subsequent key derivation based on their own hybrid key parameters.

[0014] Furthermore, the process of the initiator verifying the hybrid signature dual certificate of the responder includes:

[0015] The initiator uses the national secret asymmetric algorithm signature public key in the root certificate to verify the national secret signature of the responder's signature certificate, and uses the root certificate's anti-quantum signature public key to verify the responder's anti-quantum signature; only when both signatures are verified, will the subsequent steps continue, otherwise the initiator terminates the connection;

[0016] The initiator uses the national secret asymmetric algorithm signature public key in the root certificate to verify the national secret signature of the responder's encryption certificate, and uses the anti-quantum signature public key of the root certificate to verify the anti-quantum signature of the responder's encryption certificate; only when both signatures are verified, the subsequent steps will be continued, otherwise the initiator will terminate the connection;

[0017] The process of the responder verifying the initiator's hybrid signature dual certificate includes:

[0018] The responder extracts the signature certificate with a hybrid signature of both anti-quantum signature and national secret signature and the encryption certificate with a hybrid signature that the initiator pre-applied for from the hybrid key exchange parameters, and uses the national secret asymmetric algorithm signature public key in the root certificate to verify the national secret signature of the initiator's signature certificate, and uses the anti-quantum signature public key of the root certificate to verify the anti-quantum signature of the initiator's signature certificate; only when both signatures are verified, will the subsequent steps be continued, otherwise the responder disconnects;

[0019] The responder uses the national secret asymmetric algorithm signature public key in the root certificate to verify the national secret signature of the initiator's encryption certificate, and uses the root certificate's anti-quantum signature public key to verify the initiator's encryption certificate's anti-quantum signature; only when both signatures are verified, will the subsequent steps be continued, otherwise the responder terminates the connection.

[0020] Furthermore, the initiator obtains the quantum-resistant key encapsulation algorithm temporary key (PK) by executing the key generation operation of the quantum-resistant key encapsulation algorithm. PQCe _i, SK PQCe _i), where PK PQCe _i represents the initiator's quantum-resistant key encapsulation algorithm temporary public key, SK PQCe _i represents the temporary private key of the quantum-resistant key encapsulation algorithm.

[0021] Furthermore, the initiator obtains the national cryptographic asymmetric algorithm encryption public key pub_enc_r from the responder's encryption certificate and constructs the mixed key exchange parameters: MixXCHi=XCHi||PK PQCe _i;

[0022] Where XCHi=Asymmetric_Enc(ski, pub_enc_r)||Symmetric_Enc(Ni,ski)||Symmetric_Enc(IDi,ski)||MixCERT_sig_i|| MixCERT_enc_i;

[0023] MixXCHi represents the mixed key exchange parameters constructed by the initiator, XCHi represents the national secret IPSec key exchange parameters of the initiator, || represents the link symbol, Asymmetric_Enc() represents the national secret asymmetric algorithm encryption operation, ski represents the national secret symmetric algorithm key randomly selected by the initiator, pub_enc_r represents the national secret asymmetric algorithm encryption public key of the responder, which is extracted from the encrypted certificate of the mixed signature of the responder, Symmetric_Enc represents the national secret symmetric algorithm encryption operation, Ni represents the random number of the initiator, IDi represents the identity of the initiator, PK PQCe _i represents the initiator's quantum-resistant key encapsulation algorithm temporary public key, MixCERT_sig_i represents the initiator's mixed signature signature certificate, and MixCERT_enc_i represents the initiator's mixed signature encryption certificate.

[0024] Furthermore, the mixed signature constructed by the initiator is expressed as: MixSIGi=SIGi||SIG PQC _i;

[0025] Among them, SIGi=Asymmetric_Sign(mi, priv_sig_i), SIG PQC _i = PQC_Sign(mi,SK PQCs _i), mi=ski||Ni||IDi||MixCERT_enc_i||PK PQCe _i;

[0026] SIGi represents the national secret IPSec signature of the initiator, SIG PQC _i represents the initiator's anti-quantum signature, MixSIGi represents the mixed signature constructed by the initiator; Asymmetric_Sign() represents the national secret asymmetric algorithm signature operation, PQC_Sign represents the anti-quantum signature operation, mi represents the initiator's message to be signed, priv_sig_i represents the initiator's national secret asymmetric algorithm signature private key, SK PQCs _i represents the quantum-resistant signature private key of the initiator, ski represents the symmetric key randomly selected by the initiator, Ni represents the random number of the initiator, IDi represents the identity of the initiator, and MixCERT_enc_i represents the encryption certificate of the initiator's mixed signature; PK PQCe _i represents the initiator's quantum-resistant key encapsulation algorithm temporary public key.

[0027] Furthermore, the process of the responder decrypting the hybrid key exchange parameters constructed by the initiator includes:

[0028] The responder extracts the national secret IPSec key exchange parameter XCHi from the initiator's mixed key exchange parameter MixXCHi, uses its own national secret asymmetric algorithm encryption private key priv_enc_r to decrypt the national secret asymmetric algorithm encrypted part of XCHi, obtains the national secret symmetric algorithm key ski randomly selected by the initiator, uses ski to decrypt the national secret symmetric algorithm encrypted part of XCHi, and obtains the initiator's random number Ni and identity identifier IDi;

[0029] The process of the responder verifying the hybrid signature constructed by the initiator includes:

[0030] Extract the initiator's quantum-resistant key encapsulation algorithm temporary public key PK from the initiator's hybrid key exchange parameters PQCe _i, use the decrypted parameters to reconstruct the initiator's message to be signed mi = ski||Ni||IDi||MixCERT_enc_i||PK PQCe _i;

[0031] Obtain the initiator's national secret asymmetric algorithm signature public key pub_sig_i and the initiator's quantum-resistant signature public key PK from the initiator's hybrid signature certificate PQCs_i, and extract the national secret IPSec signature SIGi and the anti-quantum signature SIG from the initiator's hybrid signature PQC _i;

[0032] Use mi and pub_sig _i to verify the validity of the signature SIGi, and use mi and PK PQCs _i Signature SIG PQC _i's validity is verified. Only when both signatures are verified at the same time, the subsequent steps will be continued. Otherwise, the responder will terminate the connection.

[0033] The responder performs the key encapsulation operation of the quantum-resistant key encapsulation algorithm, expressed as: (ct,ss) = PQC_Enc(PK PQCe _i);

[0034] Among them, PQC_Enc() represents the key encapsulation operation of the quantum-resistant key encapsulation algorithm, ct represents the temporary ciphertext of the quantum-resistant key encapsulation algorithm, and ss represents the quantum-resistant temporary shared key.

[0035] Furthermore, the responder obtains the national cryptographic asymmetric algorithm encryption public key pub_enc_i from the initiator's encryption certificate, and the constructed mixed key exchange parameters are expressed as: MixXCHr=XCHr||ct;

[0036] Where XCHr=Asymmetric_Enc(skr, pub_enc_i)||Symmetric_Enc(Nr,skr)||Symmetric_Enc(IDr,skr);

[0037] MixXCHr represents the mixed key exchange parameters constructed by the responder, XCHr represents the national secret IPSec key exchange parameters of the responder, Asymmetric_Enc() represents the national secret asymmetric algorithm encryption operation, skr represents the national secret symmetric algorithm key randomly selected by the responder, pub_enc_i represents the national secret asymmetric algorithm encryption public key of the initiator, which is extracted from the encryption certificate of the initiator's mixed signature, Symmetric_Enc represents the national secret symmetric algorithm encryption operation, Nr represents the random number of the responder, IDr represents the identity of the responder, and ct represents the temporary ciphertext of the quantum-resistant key encapsulation algorithm.

[0038] Furthermore, the mixed signature constructed by the responder is expressed as: MixSIGr=SIGr||SIG PQC _r, where, SIGr=Asymmetric_Sign(mr, priv_sig_r), SIG PQC _r = PQC_Sign(mr,SK PQCs_r), mr=skr||Nr||IDr||MixCERT_enc_r||ct;

[0039] MixSIGr represents the mixed signature constructed by the responder, SIGr represents the national secret IPSec signature of the responder, PQC _r represents the quantum-resistant signature of the responder, mr represents the message to be signed by the responder, priv_sig_r represents the national secret asymmetric algorithm signature private key of the responder, SK PQCs _r represents the responder's quantum-resistant signature private key, skr represents the national secret symmetric algorithm key randomly selected by the responder, Nr represents the responder's random number, IDr represents the responder's identity, and MixCERT_enc_r represents the responder's mixed signature encryption certificate.

[0040] Furthermore, the process of the initiator decrypting the hybrid key exchange parameters of the responder includes:

[0041] The initiator extracts the national secret IPSec key exchange parameter XCHr from the responder's mixed key exchange parameter MixXCHr, uses its own national secret asymmetric algorithm encryption private key priv_enc_i to decrypt the national secret asymmetric algorithm encrypted part of XCHr, obtains the national secret symmetric algorithm key skr randomly selected by the responder, uses skr to decrypt the national secret symmetric algorithm encrypted part of XCHr, and obtains the initiator's random number Nr and identity IDr;

[0042] The process of the initiator verifying the responder's hybrid signature includes:

[0043] Extract the temporary ciphertext ct of the quantum-resistant key encapsulation algorithm from the hybrid key exchange parameters of the responder, and use the decrypted parameters to reconstruct the responder's message to be signed mr=skr||Nr||IDr||MixCERT_enc_r||ct;

[0044] Extract the responder's national secret asymmetric algorithm signature public key pub_sig_r and the responder's quantum-resistant signature public key PK from the responder's hybrid signature certificate PQCs _r, and extract the national secret IPSec signature SIGr and anti-quantum signature SIG from the responder's hybrid signature PQC _r;

[0045] Use mr and pub_sig_r to verify the validity of the signature SIGr, and use mr and PK PQCs _r for signature SIG PQC The validity of _r is verified. Only when both signatures are verified at the same time, the subsequent steps will be continued. Otherwise, the initiator will terminate the connection.

[0046] The key decapsulation operation of the initiator for the quantum-resistant key encapsulation algorithm is: ss = PQC_Dec(ct,SK PQCe _i);

[0047] Among them, PQC_Dec() represents the key decapsulation operation of the quantum-resistant key encapsulation algorithm, and ss is the quantum-resistant temporary shared key.

[0048] Furthermore, the process for the initiator and the responder to generate their own mixed key parameters is as follows:

[0049] The initiator and responder generate the basic key parameter SKEYID according to the steps of the Chinese IPSec protocol specified in GM / T0022-2014, and generate the mixed key parameter MixSKEYID=SKEYID||ss according to the quantum-resistant temporary shared key ss;

[0050] Among them, MixSKEYID represents the mixed key parameter, and the key derivation step parameters of the subsequent GM / T0022-2014 are completely based on this mixed key parameter.

[0051] It can be seen from the above technical solutions that, compared with the prior art, the present invention has the following beneficial effects:

[0052] 1. The present invention not only significantly improves the system's ability to resist quantum attacks by introducing quantum-resistant key encapsulation and quantum-resistant signature into the national secret IPSec protocol, but also can provide reliable security protection in the current and future quantum computing environments. It can be used in cryptographic products such as cryptographic cards, cryptographic machines, gateways, CAs, etc. to resist the threat of quantum attacks.

[0053] 2. The present invention introduces a dual protection mechanism to ensure that the system can smoothly transition and maintain a high level of security as quantum computing technology gradually matures and becomes popular. This method provides a practical solution for the field of information security and has important application value and promotion prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] 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.

[0055] Figure 1 A flow chart of the national secret IPSec secure communication method supporting quantum-resistant cryptography provided by the present invention. DETAILED DESCRIPTION

[0056] 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.

[0057] like Figure 1 As shown, the embodiment of the present invention discloses a national secret IPSec secure communication method supporting anti-quantum cryptography, including:

[0058] S1. After receiving the security alliance payload sent by the initiator, the responder sends the signature certificate and the encryption certificate of the hybrid signature with both the quantum-resistant signature and the national secret algorithm that it has applied for in advance to the initiator;

[0059] S2. The initiator uses the root certificate to verify the responder's hybrid signature dual certificate and generates a temporary key for the quantum-resistant key encapsulation algorithm;

[0060] S3. The initiator constructs the hybrid key exchange parameters and hybrid signature according to the temporary key of the quantum-resistant key encapsulation algorithm and sends them to the responder.

[0061] S4. The responder extracts the signature certificate and the encryption certificate of the hybrid signature with both the quantum-resistant signature and the national secret signature that the initiator pre-applied for from the hybrid key exchange parameters, and verifies the hybrid signature dual certificates of the initiator using the root certificate;

[0062] Decrypt the hybrid key exchange parameters constructed by the initiator to obtain the exchange data of the initiator;

[0063] Verify the hybrid signature of the initiator;

[0064] Perform the key encapsulation operation of the quantum-resistant key encapsulation algorithm to obtain a temporary ciphertext and a quantum-resistant temporary shared key ss;

[0065] S5. The responder constructs a hybrid key exchange parameter and a hybrid signature based on the temporary ciphertext and sends them to the initiator;

[0066] S6. The initiator decrypts the hybrid key exchange parameters of the responder to obtain the exchange data of the responder; verifies the hybrid signature of the responder; performs the key decapsulation operation of the quantum-resistant key encapsulation algorithm to obtain the quantum-resistant temporary shared key ss;

[0067] S7. The initiator and the responder both generate their own hybrid key parameters based on the quantum-resistant temporary shared key ss, and perform subsequent key derivation based on their own hybrid key parameters.

[0068] The above steps are further explained below.

[0069] S1. After receiving the security alliance payload sent by the initiator, the responder sends the signature certificate MixCERT_sig_r with a mixed signature of both the quantum-resistant signature and the national secret signature and the encryption certificate MixCERT_enc_r with the mixed signature to the initiator.

[0070] S2. The initiator verifies the hybrid signature dual certificate of the responder. The specific verification process is as follows:

[0071] The initiator first uses the national secret asymmetric algorithm signature public key in the root certificate to verify the national secret signature of the responder's signature certificate, and uses the anti-quantum signature public key of the root certificate to verify the anti-quantum signature of the responder's signature certificate; only when both signatures are verified, the subsequent steps will be continued, otherwise the initiator will terminate the connection; then the national secret asymmetric algorithm signature public key in the root certificate is used to verify the national secret signature of the responder's encryption certificate, and the anti-quantum signature public key of the root certificate is used to verify the anti-quantum signature of the responder's encryption certificate; only when both signatures are verified, the subsequent steps will be continued, otherwise the initiator will terminate the connection;

[0072] Afterwards, the initiator obtains the quantum-resistant key encapsulation algorithm temporary key (PK PQCe _i, SK PQCe _i), where PK PQCe _i represents the initiator's quantum-resistant key encapsulation algorithm temporary public key, SK PQCe _i represents the temporary private key of the quantum-resistant key encapsulation algorithm.

[0073] S3. The initiator constructs the mixed key exchange parameter MixXCHi and the mixed signature MixSIGi, and sends them to the responder.

[0074] Specifically, the initiator obtains the national cryptographic asymmetric algorithm encryption public key pub_enc_r from the responder's encryption certificate, and the constructed mixed key exchange parameters are expressed as: MixXCHi=XCHi||PK PQCe _i, where

[0075] Among them, MixXCHi represents the mixed key exchange parameters constructed by the initiator, XCHi represents the national secret IPSec key exchange parameters of the initiator, || represents the link symbol, Asymmetric_Enc() represents the national secret asymmetric algorithm encryption operation, ski represents the national secret symmetric algorithm key randomly selected by the initiator, pub_enc_r represents the national secret asymmetric algorithm encryption public key of the responder, which is extracted from the encrypted certificate of the mixed signature of the responder, Symmetric_Enc represents the national secret symmetric algorithm encryption operation, Ni represents the random number of the initiator, IDi represents the identity of the initiator, PK PQCe _i represents the initiator's quantum-resistant key encapsulation algorithm temporary public key, MixCERT_sig_i represents the initiator's mixed signature signature certificate, and MixCERT_enc_i represents the initiator's mixed signature encryption certificate.

[0076] The mixed signature constructed by the initiator is expressed as: MixSIGi=SIGi||SIG PQC _i, where SIGi=Asymmetric_Sign(mi, priv_sig_i), SIG PQC _i = PQC_Sign(mi,SK PQCs _i), mi=ski||Ni||IDi||MixCERT_enc_i||PK PQCe _i;

[0077] Among them, SIGi represents the national secret IPSec signature of the initiator, SIG PQC _i represents the initiator's anti-quantum signature, MixSIGi represents the mixed signature constructed by the initiator; Asymmetric_Sign() represents the national secret asymmetric algorithm signature operation, PQC_Sign represents the anti-quantum signature operation, mi represents the initiator's message to be signed, priv_sig_i represents the initiator's national secret asymmetric algorithm signature private key, SK PQCs _i represents the quantum-resistant signature private key of the initiator, ski represents the national secret symmetric algorithm key randomly selected by the initiator, Ni represents the random number of the initiator, IDi represents the identity of the initiator, MixCERT_enc_i represents the signature certificate of the initiator's mixed signature; PK PQCe _i represents the initiator's quantum-resistant key encapsulation algorithm temporary public key.

[0078] S4. The responder verifies the hybrid signature dual certificates of the initiator. Specifically, it extracts the signature certificate MixCERT_sig_i and the encryption certificate MixCERT_enc_i of the hybrid signature that the initiator pre-applied for from the hybrid key exchange parameters. The national secret signature of the initiator's signature certificate is first verified by using the national secret asymmetric algorithm signature public key in the root certificate, and the anti-quantum signature public key of the root certificate is used to verify the anti-quantum signature of the initiator's signature certificate; only when both signatures are verified successfully, the subsequent steps are continued, otherwise the responder disconnects the connection; then, the national secret signature of the initiator's encryption certificate is verified by using the national secret asymmetric algorithm signature public key in the root certificate, and the anti-quantum signature public key of the root certificate is used to verify the anti-quantum signature of the initiator's encryption certificate; only when both signatures are verified successfully, the subsequent steps are continued, otherwise the responder disconnects the connection.

[0079] Afterwards, the responder extracts the national secret IPSec key exchange parameter XCHi from the initiator's mixed key exchange parameter MixXCHi, uses its own national secret asymmetric algorithm encryption private key priv_enc_r to decrypt the national secret asymmetric algorithm encrypted part of XCHi, obtains the initiator's national secret symmetric algorithm key ski, uses ski to decrypt the national secret symmetric algorithm encrypted part of XCHi, and obtains the initiator's random number Ni and identity identifier IDi.

[0080] Then, the responder first extracts the initiator's quantum-resistant key encapsulation algorithm temporary public key PK from the initiator's hybrid key exchange parameters. PQCe _i, use the decrypted parameters to reconstruct the initiator's message to be signed mi = ski||Ni||IDi||MixCERT_enc_i||PK PQCe _i; then obtain the initiator's national secret asymmetric algorithm signature public key pub_sig_i and the initiator's anti-quantum signature public key PK from the initiator's hybrid signature certificate PQCs _i, and extract the national secret IPSec signature SIGi and the anti-quantum signature SIG from the initiator's hybrid signature PQC _i; then use mi and pub_sig_i to verify the validity of the signature SIGi, and use mi and PK PQCs _i Signature SIG PQC The validity of _i is verified. Only when both signatures are verified at the same time can the subsequent steps be continued.

[0081] The responder performs the key encapsulation operation of the quantum-resistant key encapsulation algorithm, expressed as: (ct,ss) = PQC_Enc(PK PQCe _i);

[0082] Among them, PQC_Enc() represents the key encapsulation operation of the quantum-resistant key encapsulation algorithm, ct represents the temporary ciphertext of the quantum-resistant key encapsulation algorithm, and ss represents the quantum-resistant temporary shared key.

[0083] S5. The responder constructs the mixed key exchange parameter MixXCHr and the mixed signature MixSIGr, and sends them to the initiator.

[0084] Specifically, the responder obtains the national cryptographic asymmetric algorithm encryption public key pub_enc_i from the initiator's encryption certificate, and the constructed mixed key exchange parameters are expressed as: MixXCHr=XCHr||ct, where XCHr=Asymmetric_Enc(skr,pub_enc_i)||Symmetric_Enc(Nr,skr)||Symmetric_Enc(IDr,skr);

[0085] Among them, MixXCHr represents the mixed key exchange parameters constructed by the responder, XCHr represents the national secret IPSec key exchange parameters of the responder, Asymmetric_Enc() represents the national secret asymmetric algorithm encryption operation, skr represents the national secret symmetric algorithm key randomly selected by the responder, pub_enc_i represents the national secret asymmetric algorithm encryption public key of the initiator, which is extracted from the encryption certificate of the initiator's mixed signature, Symmetric_Enc represents the national secret symmetric algorithm encryption operation, Nr represents the random number of the responder, IDr represents the identity of the responder, and ct represents the temporary ciphertext of the quantum-resistant key encapsulation algorithm.

[0086] The mixed signature constructed by the responder is expressed as: MixSIGr=SIGr||SIG PQC _r, where, SIGr=Asymmetric_Sign(mr, priv_sig_r), SIG PQC _r = PQC_Sign(mr,SK PQCs _r), mr=skr||Nr||IDr||MixCERT_enc_r||ct;

[0087] MixSIGr represents the mixed signature constructed by the responder, SIGr represents the national secret IPSec signature of the responder, PQC _r represents the quantum-resistant signature of the responder, mr represents the message to be signed by the responder, priv_sig_r represents the national secret asymmetric algorithm signature private key of the responder, SK PQCs_r represents the responder's quantum-resistant signature private key, skr represents the national secret symmetric algorithm key randomly selected by the responder, Nr represents the responder's random number, IDr represents the responder's identity, and MixCERT_enc_r represents the responder's mixed signature encryption certificate.

[0088] S6. The initiator extracts the national secret IPSec key exchange parameter XCHr from the responder's mixed key exchange parameter MixXCHr, uses its own national secret asymmetric algorithm encryption private key priv_enc_i to decrypt the national secret asymmetric algorithm encrypted part of XCHr, obtains the national secret symmetric algorithm key skr randomly selected by the responder, uses skr to decrypt the national secret symmetric algorithm encrypted part of XCHr, and obtains the initiator's random number Nr and identity IDr;

[0089] Afterwards, the initiator first extracts the temporary ciphertext ct of the quantum-resistant key encapsulation algorithm from the responder's hybrid key exchange parameters, and uses the decrypted parameters to reconstruct the responder's message to be signed mr=skr||Nr||IDr||MixCERT_enc_r||ct; then extracts the responder's national secret asymmetric algorithm signature public key pub_sig_r and the responder's quantum-resistant signature public key PK from the responder's hybrid signature certificate. PQCs _r, and extract the national secret IPSec signature SIGr and anti-quantum signature SIG from the responder's hybrid signature PQC _r; then use mr and pub_sig_r to verify the validity of the signature SIGr, and use mr and PK PQCs _r for signature SIG PQC The validity of _r is verified. Only when both signatures are verified at the same time, the subsequent steps will be continued; otherwise, the initiator terminates the connection.

[0090] Then, the key decapsulation operation of the quantum-resistant key encapsulation algorithm is performed ss = PQC_Dec(ct,SK PQCe _i);

[0091] Among them, PQC_Dec() represents the quantum-resistant key decapsulation operation, and ss is the quantum-resistant temporary shared key.

[0092] S7. The initiator and responder generate the basic key parameter SKEYID according to the steps of the Chinese secret IPSec protocol specified in GM / T0022-2014, and generate the mixed key parameter MixSKEYID=SKEYID||ss according to the quantum-resistant temporary shared key ss. The subsequent keys of the initiator and responder are all derived based on the mixed key parameter MixSKEYID.

[0093] Next, the method of the present invention is described by taking the anti-quantum signature algorithm Dilithium, the anti-quantum key encapsulation algorithm Kyber, the national secret asymmetric signature algorithm SM2, the national secret asymmetric encryption algorithm SM2, and the national secret symmetric algorithm SM4 as examples. The initiator and the responder have applied for their own hybrid signature certificate, hybrid signature encryption certificate, anti-quantum signature key, national secret asymmetric algorithm signature key, and national secret asymmetric algorithm encryption key in advance, and the root certificate has been pre-installed in the operating system of the initiator and the responder. The above-mentioned hybrid signature refers to the Dilithium signature of the message to be signed in the certificate first, and then the SM2 signature.

[0094] The specific steps include:

[0095] S1. After receiving the security alliance payload sent by the initiator, the responder sends the signature certificate MixCERT_sig_r with a mixed signature of both the quantum-resistant Dilithium signature and the national secret SM2 signature and the encryption certificate MixCERT_enc_r with a mixed signature to the initiator.

[0096] S2. The initiator verifies the hybrid signature dual certificate of the responder. The specific steps are as follows: the initiator first uses the national secret asymmetric algorithm SM2 signature public key in the root certificate to verify the national secret signature of the responder's signature certificate, and uses the root certificate's anti-quantum Dilithium signature public key to verify the responder's signature certificate's anti-quantum signature; only when both signatures are verified, the subsequent steps will be continued, otherwise the initiator will interrupt the connection; then the national secret asymmetric algorithm SM2 signature public key in the root certificate is used to verify the national secret signature of the responder's encryption certificate, and the root certificate's anti-quantum Dilithium signature public key is used to verify the responder's encryption certificate's anti-quantum signature; only when both signatures are verified, the subsequent steps will be continued, otherwise the initiator will interrupt the connection; then the key generation operation of the anti-quantum key encapsulation algorithm kyber is performed to obtain the anti-quantum key encapsulation algorithm temporary key (PK Kyber _i, SK Kyber _i).

[0097] Among them, PK Kyber _i represents the initiator’s quantum-resistant key encapsulation algorithm Kyber temporary public key, SK Kyber _i represents the quantum-resistant key encapsulation algorithm Kyber temporary private key.

[0098] S3. The initiator constructs the mixed key exchange parameter MixXCHi=XCHi||PK Kyber _i and mixed signature MixSIGi=SIG SM2 i||SIG Dilithium _i, and sent to the responder. Among them, XCHi=SM2_Enc(ski, pubSM2 _enc_r)||SM4_Enc(Ni,ski)||SM4_Enc(IDi,ski)||MixCERT_sig_i|| MixCERT_enc_i,SIG SM2 i = SM2_Sign(mi,priv SM2 _sig_i), SIG Dilithium _i = Dilithium_Sign(mi,SK Dilithium _i), mi=ski||Ni||IDi||MixCERT_enc_i||PK Kyber _i.

[0099] Among them, XCHi represents the national secret IPSec key exchange parameter of the initiator, || represents the link symbol, PK Kyber _i represents the initiator's quantum-resistant key encapsulation algorithm Kyber temporary public key, MixXCHi represents the hybrid key exchange parameters constructed by the initiator, SIG SM2 i represents the SM2 signature of the national secret IPSec of the initiator, SIG Dilithium _i represents the quantum-resistant Dilithium signature of the initiator, MixSIGi represents the mixed signature constructed by the initiator, SM2_Enc represents the encryption operation of the national secret asymmetric algorithm SM2, SM4_Enc represents the encryption operation of the national secret symmetric algorithm SM4, pub SM2 _enc_r represents the responder's national secret asymmetric algorithm SM2 encryption public key, which is extracted from the responder's hybrid signature encryption certificate, SM2_Sign() represents the national secret asymmetric algorithm SM2 signature operation, Dilithium_Sign represents the quantum-resistant Dilithium signature operation, mi represents the initiator's message to be signed, priv SM2 _sig_i represents the initiator's national asymmetric algorithm SM2 signature private key, SK Dilithium _i represents the quantum-resistant Dilithium signature private key of the initiator, ski represents the symmetric key randomly selected by the initiator, Ni represents the random number of the initiator, IDi represents the identity of the initiator, MixCERT_sig_i represents the signature certificate of the initiator's mixed signature, and MixCERT_enc_i represents the encryption certificate of the initiator's mixed signature.

[0100] S4. The responder verifies the initiator's hybrid signature dual certificate. The specific steps are as follows:

[0101] First, extract the signature certificate MixCERT_sig_i and the mixed signature encryption certificate MixCERT_enc_i of the mixed signature that the initiator pre-applied for, which have both the anti-quantum Dilithium signature and the national secret SM2 signature, from the hybrid key exchange parameters. First, use the national secret asymmetric algorithm SM2 signature public key in the root certificate to verify the national secret SM2 signature of the initiator's signature certificate, and use the anti-quantum Dilithium signature public key of the root certificate to verify the anti-quantum Dilithium signature of the initiator's signature certificate; only if both signatures are verified successfully, proceed to the subsequent steps, otherwise the responder disconnects the connection; then use the national secret asymmetric algorithm SM2 signature public key in the root certificate to verify the national secret SM2 signature of the initiator's encryption certificate, and use the anti-quantum Dilithium signature public key of the root certificate to verify the anti-quantum Dilithium signature of the initiator's encryption certificate; only if both signatures are verified successfully, proceed to the subsequent steps, otherwise the responder disconnects the connection.

[0102] After that, extract the national secret IPSec key exchange parameter XCHi from the initiator's mixed key exchange parameter MixXCHi, and use its own national secret asymmetric algorithm SM2 to encrypt the private key priv SM2 _enc_r decrypts the encrypted part of XCHi's national secret asymmetric algorithm SM2, obtains the national secret symmetric algorithm key ski randomly selected by the initiator, uses ski to decrypt the encrypted part of XCHi's national secret symmetric algorithm SM4, and obtains the initiator's random number Ni and identity identifier IDi.

[0103] Then, the initiator's quantum-resistant key encapsulation algorithm Kyber temporary public key PK is extracted from the initiator's hybrid key exchange parameters Kyber _i, use the decrypted parameters to reconstruct the initiator's message to be signed mi = ski||Ni||IDi||MixCERT_enc_i||PK Kyber _i; then obtain the initiator's national secret asymmetric algorithm SM2 signature public key pub from the initiator's hybrid signature certificate SM2 _sig_i and the initiator's quantum-resistant Dilithium signature public key PK Dilithium _i, and extract the SM2 signature SIG of the national secret IPSec from the hybrid signature of the initiator SM2 i and quantum-resistant signatures SIG Dilithium _i; then use mi, pub SM2 _sig_i for signature SIG SM2 The validity of i is verified by using mi and PK Dilithium _i Signature SIG DilithiumThe responder performs the key encapsulation operation of the quantum-resistant key encapsulation algorithm (ct,ss) = Kyber_Enc(PK Kyber _i), and obtain the temporary ciphertext ct and the quantum-resistant temporary shared key ss.

[0104] Among them, Kyber_Enc() represents the key encapsulation operation of quantum-resistant Kyber, ct represents the temporary ciphertext of the quantum-resistant key encapsulation algorithm, and ss represents the quantum-resistant temporary shared key.

[0105] S5. The responder constructs the mixed key exchange parameters MixXCHr=XCHr||ct and the mixed signature MixSIGr=SIG SM2 r||SIG Dilithium _r, and sent to the initiator. Among them, XCHr=SM2_Enc(skr, pub SM2 _enc_i)||SM4_Enc(Nr,skr)||SM4_Enc(IDr,skr),SIG SM2 r = SM2_Sign(mr,priv SM2 _sig_r), SIG Dilithium _r = Dilithium_Sign(mr,SK Dilithium _r), mr=skr||Nr||IDr||MixCERT_enc_r||ct.

[0106] Among them, XCHr represents the national secret IPSec key exchange parameter of the responder, MixXCHr represents the mixed key exchange parameter constructed by the responder, and SIG SM2 r represents the SM2 signature of the responder's national secret IPSec, SIG Dilithium _r represents the quantum-resistant Dilithium signature of the responder, MixSIGr represents the mixed signature constructed by the responder, SM2_Enc represents the encryption operation of the national secret asymmetric algorithm SM2, SM4_Enc represents the encryption operation of the national secret symmetric algorithm SM4, pub SM2 _enc_i represents the initiator's national secret asymmetric algorithm SM2 encryption public key, which is extracted from the initiator's hybrid signature encryption certificate, mr represents the responder's message to be signed, priv SM2 _sig_r indicates the responder's national asymmetric algorithm SM2 signature private key, SK Dilithium_r represents the responder's quantum-resistant Dilithium signature private key, skr represents the national secret symmetric algorithm key randomly selected by the responder, Nr represents the responder's random number, IDr represents the responder's identity, and MixCERT_enc_r represents the responder's mixed signature encryption certificate.

[0107] S6. The initiator extracts the national secret IPSec key exchange parameter XCHr from the responder's mixed key exchange parameter MixXCHr, and uses its own national secret asymmetric algorithm SM2 to encrypt the private key priv SM2 _enc_i decrypts the encrypted part of XCHr using the national secret asymmetric algorithm SM2, obtains the national secret symmetric algorithm key skr randomly selected by the responder, uses skr to decrypt the encrypted part of XCHr using the national secret symmetric algorithm SM4, and obtains the initiator's random number Nr and identity IDr.

[0108] Then, first extract the temporary ciphertext ct of the quantum-resistant key encapsulation algorithm from the responder's hybrid key exchange parameters, and use the decrypted parameters to reconstruct the responder's message to be signed mr = skr||Nr||IDr||MixCERT_enc_r||ct; then obtain the responder's national secret asymmetric algorithm SM2 signature public key pub from the responder's hybrid signature certificate SM2 _sig_r and the initiator's quantum-resistant Dilithium signature public key PK Dilithium _r, and extract the SM2 signature SIG of the national secret IPSec from the hybrid signature of the responder SM2 r and quantum-resistant signature SIG Dilithium _r.

[0109] Then use mr, pub SM2 _sig_r for signature SIG SM2 r's effectiveness was verified by using mr and PK Dilithium _r for signature SIG Dilithium _r is verified. Only when both signatures are verified at the same time, the subsequent steps will be continued. Otherwise, the initiator will disconnect the connection. Then the key decapsulation operation of the quantum-resistant key algorithm Kyber is performed ss= Kyber_Dec(ct, SK Kyber _i), and obtain the quantum-resistant temporary shared key ss.

[0110] Among them, Kyber_Dec() represents the quantum-resistant Kyber key decapsulation operation.

[0111] S7. The initiator and responder generate the basic key parameter SKEYID according to the steps of the Chinese secret IPSec protocol specified in GM / T0022-2014, and generate the mixed key parameter MixSKEYID=SKEYID||ss according to the quantum-resistant temporary shared key ss. The subsequent keys of the initiator and responder are all derived based on MixSKEYID.

[0112] 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.

[0113] 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 national secret IPSec secure communication method supporting quantum-resistant cryptography, characterized in that: include: After receiving the security association payload sent by the initiator, the responder sends its pre-applied signature certificate with a hybrid signature of both quantum-resistant signature and national secret signature and the encryption certificate of the hybrid signature to the initiator; The initiator uses the root certificate to verify the responder's hybrid signature dual certificate and generate a quantum-resistant key encapsulation algorithm temporary key; The initiator constructs the hybrid key exchange parameters and hybrid signature based on the temporary key of the quantum-resistant key encapsulation algorithm and sends them to the responder; The responder extracts the signature certificate and the encryption certificate of the hybrid signature that the initiator pre-applied for from the hybrid key exchange parameters, which have both the quantum-resistant signature and the national secret signature; and uses the root certificate to verify the hybrid signature dual certificates of the initiator; Decrypt the encrypted part of the hybrid key exchange parameters constructed by the initiator to obtain the exchange data of the initiator; verify the hybrid signature of the initiator; perform quantum-resistant key encapsulation operations to obtain temporary ciphertext and quantum-resistant temporary shared key ss; The responder constructs the hybrid key exchange parameters and hybrid signature based on the temporary ciphertext and sends them to the initiator; The initiator decrypts the hybrid key exchange parameters of the responder to obtain the exchange data of the responder; verifies the hybrid signature of the responder; performs quantum-resistant key decapsulation operation to obtain the quantum-resistant temporary shared key ss; Both the initiator and the responder generate their own hybrid key parameters based on the quantum-resistant temporary shared key ss, and perform subsequent key derivation based on their own hybrid key parameters.

2. The method for secure communication of national secret IPSec supporting quantum cryptography according to claim 1, characterized in that: The process of the initiator verifying the responder's hybrid signature dual certificate includes: The initiator uses the national secret asymmetric algorithm signature public key in the root certificate to verify the national secret signature of the responder's signature certificate, and uses the root certificate's anti-quantum signature public key to verify the responder's anti-quantum signature; only when both signatures are verified, will the subsequent steps continue, otherwise the initiator terminates the connection; The initiator uses the national secret asymmetric algorithm signature public key in the root certificate to verify the national secret signature of the responder's encryption certificate, and uses the anti-quantum signature public key of the root certificate to verify the anti-quantum signature of the responder's encryption certificate; only when both signatures are verified, the subsequent steps will be continued, otherwise the initiator will terminate the connection; The process of the responder verifying the initiator's hybrid signature dual certificate includes: The responder extracts the signature certificate with a hybrid signature of both anti-quantum signature and national secret signature and the encryption certificate with a hybrid signature that the initiator pre-applied for from the hybrid key exchange parameters, and uses the national secret asymmetric algorithm signature public key in the root certificate to verify the national secret signature of the initiator's signature certificate, and uses the anti-quantum signature public key of the root certificate to verify the anti-quantum signature of the initiator's signature certificate; only when both signatures are verified, will the subsequent steps be continued, otherwise the responder disconnects; The responder uses the national secret asymmetric algorithm signature public key in the root certificate to verify the national secret signature of the initiator's encryption certificate, and uses the root certificate's anti-quantum signature public key to verify the initiator's encryption certificate's anti-quantum signature; only when both signatures are verified, will the subsequent steps be continued, otherwise the responder terminates the connection.

3. The method for secure communication of national secret IPSec supporting quantum cryptography according to claim 1, characterized in that: The initiator obtains the quantum-resistant key encapsulation algorithm temporary key (PK) by executing the key generation operation of the quantum-resistant key encapsulation algorithm. PQCe _i, SK PQCe _i), where PK PQCe _i represents the initiator's quantum-resistant key encapsulation algorithm temporary public key, SK PQCe _i represents the temporary private key of the quantum-resistant key encapsulation algorithm.

4. The method for secure communication of national secret IPSec supporting quantum cryptography according to claim 1, characterized in that: The initiator obtains the national cryptographic asymmetric algorithm encryption public key pub_enc_r from the responder's encryption certificate and constructs the mixed key exchange parameters, which are expressed as: MixXCHi=XCHi||PK PQCe _i; Among them, MixXCHi represents the mixed key exchange parameters constructed by the initiator, XCHi represents the national secret IPSec key exchange parameters of the initiator, || represents the link symbol, Asymmetric_Enc() represents the national secret asymmetric algorithm encryption operation, ski represents the national secret symmetric algorithm key randomly selected by the initiator; pub_enc_r represents the national secret asymmetric algorithm encryption public key of the responder, which is extracted from the encrypted certificate of the mixed signature of the responder; Symmetric_Enc represents the national secret symmetric algorithm encryption operation, Ni represents the random number of the initiator, IDi represents the identity of the initiator, PK PQCe _i represents the initiator's quantum-resistant key encapsulation algorithm temporary public key, MixCERT_sig_i represents the initiator's mixed signature signature certificate, and MixCERT_enc_i represents the initiator's mixed signature encryption certificate.

5. The method for secure communication of national secret IPSec supporting quantum-resistant cryptography according to claim 4 is characterized in that: The mixed signature constructed by the initiator is expressed as: MixSIGi=SIGi||SIG PQC _i; Among them, SIGi=Asymmetric_Sign(mi, priv_sig_i), SIG PQC _i= PQC_Sign(mi, SK PQCs _i),mi=ski||Ni||IDi||MixCERT_enc_i||PK PQCe _in; SIGi represents the national secret IPSec signature of the initiator, SIG PQC _i represents the initiator's anti-quantum signature, MixSIGi represents the mixed signature constructed by the initiator; Asymmetric_Sign() represents the national secret asymmetric algorithm signature operation, PQC_Sign represents the anti-quantum signature operation, mi represents the initiator's message to be signed, priv_sig_i represents the initiator's national secret asymmetric algorithm signature private key, SK PQCs _i represents the quantum-resistant signature private key of the initiator, ski represents the national secret symmetric algorithm key randomly selected by the initiator, Ni represents the random number of the initiator, IDi represents the identity of the initiator, and MixCERT_enc_i represents the encryption certificate of the initiator's mixed signature; PK PQCe _i represents the initiator's quantum-resistant key encapsulation algorithm temporary public key.

6. The method for secure communication of national secret IPSec supporting quantum cryptography according to claim 5, characterized in that: The process of the responder decrypting the hybrid key exchange parameters constructed by the initiator includes: The responder extracts the national secret IPSec key exchange parameter XCHi from the initiator's mixed key exchange parameter MixXCHi, uses its own national secret asymmetric algorithm encryption private key priv_enc_r to decrypt the national secret asymmetric algorithm encrypted part of XCHi, obtains the national secret symmetric algorithm key ski randomly selected by the initiator, uses ski to decrypt the national secret symmetric algorithm encrypted part of XCHi, and obtains the initiator's random number Ni and identity identifier IDi; The process of the responder verifying the hybrid signature constructed by the initiator includes: Extract the initiator's quantum-resistant key encapsulation algorithm temporary public key PK from the initiator's hybrid key exchange parameters PQCe _i, reconstruct the initiator's message to be signed mi = ski||Ni||IDi||MixCERT_enc_i||PK PQCe _i; Obtain the initiator's national secret asymmetric algorithm signature public key pub_sig_i and the initiator's quantum-resistant signature public key PK from the initiator's hybrid signature certificate PQCs _i, and extract the national secret IPSec signature SIGi and the anti-quantum signature SIG from the initiator's hybrid signature PQC _i; Use mi and pub_sig_i to verify the validity of the signature SIGi, and use mi and PK PQCs _i Signature SIG PQC _i's validity is verified. Only when both signatures are verified at the same time, the subsequent steps will be continued. Otherwise, the responder will terminate the connection. The key encapsulation operation of the quantum-resistant key encapsulation algorithm performed by the responder is expressed as: (ct,ss) = PQC_Enc(PK PQCe _i); Among them, PQC_Enc() represents the key encapsulation operation of the quantum-resistant key encapsulation algorithm, ct represents the temporary ciphertext of the quantum-resistant key encapsulation algorithm, and ss represents the quantum-resistant temporary shared key.

7. The method for secure communication of national secret IPSec supporting quantum cryptography according to claim 1, characterized in that: The responder obtains the national cryptographic asymmetric algorithm encryption public key pub_enc_i from the initiator's encryption certificate, and the constructed mixed key exchange parameters are expressed as: MixXCHr=XCHr||ct; Where XCHr=Asymmetric_Enc(skr, pub_enc_i)||Symmetric_Enc(Nr,skr)||Symmetric_Enc(IDr,skr); MixXCHr represents the mixed key exchange parameters constructed by the responder, XCHr represents the national secret IPSec key exchange parameters of the responder, Asymmetric_Enc() represents the national secret asymmetric algorithm encryption operation, skr represents the national secret symmetric algorithm key randomly selected by the responder, pub_enc_i represents the national secret asymmetric algorithm encryption public key of the initiator, which is extracted from the encryption certificate of the initiator's mixed signature; Symmetric_Enc represents the national secret symmetric algorithm encryption operation, Nr represents the random number of the responder, IDr represents the identity of the responder, and ct represents the temporary ciphertext of the quantum-resistant key encapsulation algorithm.

8. The method for secure communication of national secret IPSec supporting quantum-resistant cryptography according to claim 7, characterized in that: The mixed signature constructed by the responder is expressed as: MixSIGr=SIGr||SIG PQC _r; Among them, SIGr=Asymmetric_Sign(mr, priv_sig_r), SIG PQC _r= PQC_Sign(mr,SK PQCs _r),mr=skr||Nr||IDr||MixCERT_enc_r||ct; MixSIGr represents the mixed signature constructed by the responder, SIGr represents the national secret IPSec signature of the responder, PQC _r represents the quantum-resistant signature of the responder, mr represents the message to be signed by the responder, priv_sig_r represents the national secret asymmetric algorithm signature private key of the responder, SK PQCs _r represents the responder's quantum-resistant signature private key, skr represents the national secret symmetric algorithm key randomly selected by the responder, Nr represents the responder's random number, IDr represents the responder's identity, and MixCERT_enc_r represents the responder's mixed signature encryption certificate.

9. The method for secure communication of national secret IPSec supporting quantum cryptography according to claim 8, characterized in that: The process of the initiator decrypting the responder's hybrid key exchange parameters includes: The initiator extracts the national secret IPSec key exchange parameter XCHr from the responder's mixed key exchange parameter MixXCHr, uses its own national secret asymmetric algorithm encryption private key priv_enc_i to decrypt the national secret asymmetric algorithm encrypted part of XCHr, obtains the national secret symmetric algorithm key skr randomly selected by the responder, uses skr to decrypt the national secret symmetric algorithm encrypted part of XCHr, and obtains the initiator's random number Nr and identity IDr; The process of the initiator verifying the responder's hybrid signature includes: Extract the quantum-resistant key encapsulation algorithm temporary ciphertext ct from the responder's hybrid key exchange parameters, and reconstruct the responder's message to be signed mr=skr||Nr||IDr||MixCERT_enc_r||ct; Extract the responder's national secret asymmetric algorithm signature public key pub_sig_r and the responder's quantum-resistant signature public key PK from the responder's hybrid signature certificate PQCs _r, and extract the national secret IPSec signature SIGr and anti-quantum signature SIG from the responder's hybrid signature PQC _r; Use mr and pub_sig_r to verify the validity of the signature SIGr, and use mr and PK PQCs _r for signature SIG PQC _r's validity is verified. Only when both signatures are verified at the same time, the subsequent steps will be continued. Otherwise, the initiator will terminate the connection. The key decapsulation operation of the initiator for the quantum-resistant key encapsulation algorithm is: ss = PQC_Dec(ct,SK PQCe _i); Among them, PQC_Dec() represents the key decapsulation operation of the quantum-resistant key encapsulation algorithm, and ss is the quantum-resistant temporary shared key.

10. The method for secure communication of national secret IPSec supporting quantum cryptography according to claim 1, characterized in that: The process for the initiator and responder to generate their own mixed key parameters is as follows: The initiator and responder generate the basic key parameter SKEYID according to the national secret IPSec protocol, and generate the mixed key parameter MixSKEYID=SKEYID||ss according to the quantum-resistant temporary shared key ss; Among them, MixSKEYID represents the mixed key parameter, and the subsequent key derivation steps are completely based on the mixed key parameter.

Citation Information

Patent Citations

  • Certificate authentication system and authentication method based on post-quantum signature

    CN116388986A

  • IND-CPA safe anti-quantum key packaging method and system

    CN116684069A

  • CoAP protocol anti-quantum attack encryption method and device

    CN116996209A

  • Special simplified network security communication method based on national cryptographic algorithm

    CN117879924A

  • Methods of generating a key and a communication method

    US20220294611A1

Cited By

  • National cryptographic SSH protocol supporting anti-quantum algorithm and cryptographic device

    CN118984225A

  • Communication data transmission method and device, equipment and storage medium

    CN119011287A

  • Post-quantum and national secret hybrid dual-certificate IKE key negotiation method and device

    CN119135343A

  • Method and device for IKE key negotiation using a hybrid dual certificate based on post-quantum and national encryption

    CN119135343B

  • Session key generation method and related device

    CN119276494A