Anti-quantum security enhancement method for national secret IPSec VPN protocol
By using post-quantum cryptographic encryption processing and quantum key distribution technology in communication networks, the problem of insufficient quantum capability resistance in the face of quantum computing attacks by Guomi IPSec VPN protocol is solved, and effective resistance to quantum computing attacks and data is achieved. High security of transmission.
Patent Information
- Application Number
- CN202411007783.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-07-25
AI Technical Summary
The existing Guomi IPSec VPN protocol lacks quantum resistance when facing quantum computing attacks and cannot effectively resist threats brought by quantum computers.
By using post-quantum cryptographic encryption processing and quantum key distribution technology in communication networks, quantum keys are obtained and the key identifier and communication data are encrypted using post-quantum cryptographic algorithms to establish a security association identifier that resists quantum computing attacks. , to enhance the security of network communication.
It effectively enhances the quantum computing ability of the communication network, ensures the security of data transmission and the confidentiality of the key, resists quantum computing attacks, and provides higher security guarantees.
Smart Images

Figure CN118540165B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network security, and more specifically, to a method for enhancing the anti-quantum security of a national secret IPSec VPN protocol of a communication network. Background Art
[0002] The leap in computing power represented by quantum computing has a significant impact on the security of related algorithms in classical cryptography. Understandably, with the realization of large-scale quantum computers, it will have a certain impact on key negotiation, encryption, signature and other applications in classical cryptography. Therefore, providing cryptographic technology that can resist quantum computing attacks has become an urgent problem to be solved. Summary of the invention
[0003] The present application provides a method for enhancing the anti-quantum security of the national secret IPSec VPN protocol of a communication network.
[0004] The embodiment of the present application provides a method for enhancing the anti-quantum security of a national secret IPSec VPN protocol of a communication network, wherein the communication network includes a first network device and a second network device, and the method is used for the first network device, and the method includes:
[0005] Acquire a first quantum key from a first network node connected to the first network device;
[0006] Performing post-quantum cryptographic encryption processing on the first quantum key, and sending the first encryption result after the post-quantum cryptographic encryption processing to the second network device;
[0007] decrypting the received second encryption result sent by the second network device to obtain a second decryption result, where the second encryption result is obtained by the second network device according to the first encryption result;
[0008] A security association identifier is obtained according to the first quantum key, the first encryption result and the second decryption result to protect the communication between the first network device and the second network device.
[0009] In this way, during the communication process between the first network device and the second network device, the first network device applies for the first quantum key and quantum key identifier, and uses the post-quantum cryptographic algorithm to encrypt the quantum key identifier and the data exchanged during the communication process to protect the transmission of the quantum key identifier. The post-quantum cryptographic algorithm is a series of encryption algorithms designed to resist quantum computing attacks. After the second network device obtains the quantum key identifier, it applies for the second quantum key. The first network device and the second network device use the quantum key in the communication to establish a security alliance between the first network device and the second network device. This enhances the anti-quantum capability of the network communication between the first network device and the second network device.
[0010] In certain embodiments, the method further comprises:
[0011] Accessing the first network node through a pre-established channel;
[0012] Load the security certificate of the first network device or the security certificate of the second network device.
[0013] In this way, before negotiating a key with the second network device, the first network device is accessed through a pre-established channel, which can protect data during data transmission and reduce the risk of unauthorized access. Then, the security certificate of the first network device or the security certificate of the second network device is loaded. After the security certificate is loaded, it will be used to establish and maintain a secure communication channel to enhance the security of data during transmission.
[0014] In some embodiments, the obtaining a first quantum key from a first network node connected to the first network device includes:
[0015] Sending a quantum key application to the first network node connected to the first network device;
[0016] Receive a first quantum key and a quantum key identifier distributed by the first network node according to the quantum key application, where the quantum key identifier is obtained by the first network node marking the first quantum key using an identification code of the first network device.
[0017] In this way, a quantum key application is sent to the first network node. Then, after the quantum key application is approved, the first quantum key and quantum key identifier distributed by the first network node according to the quantum key application are received. The quantum key identifier is obtained by the first network node using the identification code of the first network node to mark the first quantum key. In this way, the first quantum key and quantum key identifier are obtained. The first quantum key can be used to subsequently generate a key with the ability to resist quantum computing attacks. The quantum key identifier helps to use and manage the first quantum key.
[0018] In some embodiments, performing post-quantum cryptographic encryption processing on the first quantum key and sending the first encryption result after the post-quantum cryptographic encryption processing to the second network device includes:
[0019] Concatenating the quantum key identifier and a randomly generated first random number to obtain a first encrypted message;
[0020] Performing post-quantum cryptographic derivation processing on the first encrypted message to obtain a first session key;
[0021] Performing an XOR process on the randomly generated first temporary key and the first session key to obtain a first XOR key, wherein the first XOR key is encrypted and sent to the second network device;
[0022] Performing post-quantum cryptography encryption processing on the first encrypted message to obtain a second encrypted message in the first encryption result;
[0023] Encrypting the first session random number according to the first temporary key to obtain a first session encrypted message in the first encryption result;
[0024] Obtain a first verification message according to the quantum key identifier, the first session random number and the first identification information;
[0025] Performing post-quantum cryptographic signature processing on the first verification message to obtain a first signature message in the first encryption result;
[0026] The first encryption result is sent to the second network device.
[0027] In this way, the quantum key identifier and the randomly generated first random number are concatenated to obtain a first encrypted message. Next, the first encrypted message is subjected to post-quantum cryptographic derivation processing to obtain a first session key. Then, the randomly generated first temporary key and the first session key are subjected to XOR processing to obtain a first XOR key, and the first XOR key is encrypted and sent to the second network device. The first encrypted message is subjected to post-quantum cryptographic encryption processing to obtain a second encrypted message in the first encryption result. The first session random number is then encrypted according to the first temporary key to obtain a first session encrypted message in the first encryption result. A first verification message is obtained according to the quantum key identifier, the first session random number and the first identification information, and the first verification message is subjected to post-quantum cryptographic signature processing to obtain a first signature message in the first encryption result. Finally, the first encryption result is sent to the second network device. The confidentiality of the quantum key identifier is increased by concatenating the quantum key identifier with the first random number, and the quantum key identifier and its derivatives are processed using a post-quantum cryptographic algorithm to increase the complexity of the quantum key identifier by combining quantum key distribution technology with post-quantum cryptographic technology.
[0028] In some implementations, the decrypting the received second encryption result sent by the second network device to obtain a second decryption result, wherein the second encryption result is obtained by the second network device according to the first encryption result, includes:
[0029] receiving the second encryption result sent by the second network device, where the second encryption result is obtained by the second network device encrypting the first decryption result, and the first decryption result is obtained by the second network device decrypting the first encryption result;
[0030] The second encryption result is subjected to post-quantum cryptographic decryption processing to obtain a second decryption result, where the second decryption result includes a third encrypted message, a quantum key identifier, a second XOR key, a second session encryption message, and a second signature message.
[0031] In this way, the second encryption result sent by the second network device is received. The second encryption result is obtained by the second network device encrypting the first decryption result, while the first decryption result is obtained by the second network device decrypting the first encryption result. The second encryption result is decrypted to obtain a second decryption result, which includes a third encrypted message, a quantum key identifier, a second XOR key, and a second signature message. In this way, the first network device determines the availability of the channel for communication with the second network device, and obtains the key information of the second network device, which can be combined with the relevant key information of the first network device to generate a more secure key.
[0032] In certain embodiments, the method further comprises:
[0033] Obtain a second verification message according to the second signature message, where the second verification message is obtained by the quantum key identifier, the second session random number, and the second identification information;
[0034] Perform post-quantum signature verification on the second signature message to confirm the correctness of the second verification message.
[0035] In this way, the second verification message is obtained according to the second signature message, and then the second signature message is subjected to post-quantum cryptographic signature verification, and the second verification message quantum key identifier, the second session random number and the second identification information are obtained. By performing post-quantum cryptographic signature verification on the second signature message, the correctness of the second verification message is determined, the integrity of the second network device-related data received by the network device is ensured, the identity of the second network device is verified, and security is provided for subsequent data transmission.
[0036] In certain embodiments, the method further comprises:
[0037] Obtaining a second session key according to the third encrypted message;
[0038] Obtain a second temporary key according to the second session key and the second XOR key;
[0039] The second session encrypted message is decrypted according to the second temporary key to obtain a second session random number.
[0040] In this way, the second session key is calculated based on the third encrypted message, and the second temporary key is obtained based on the second session key and the second XOR key. Finally, the second session encrypted message is decrypted based on the second temporary key to obtain the second session random number. In this way, the second session random number is obtained to generate a security association identifier for protecting the communication between the first network device and the second network device.
[0041] In certain embodiments, the method further comprises:
[0042] Performing key negotiation with the second network device to exchange identification random numbers;
[0043] The obtaining a security association identifier according to the first quantum key, the first encryption result, and the second decryption result to protect communication between the first network device and the second network device includes:
[0044] A security association identifier is obtained according to the identification random number, the first quantum key, the first encryption result and the second decryption result to protect the communication between the first network device and the second network device, wherein the identification random number includes a first identification random number and a second identification random number.
[0045] In this way, a key negotiation is performed with the second network device to exchange the identification random number. Then, a security association identifier is obtained according to the identification random number, the first quantum key, the first encryption result, and the second decryption result to protect the communication between the first network device and the second network device. The identification random number includes the first identification random number and the second identification random number. In this way, the confidentiality of the security association identifier is increased by adding the identification random number, which can well protect the communication between the first network device and the second network device.
[0046] In some embodiments, obtaining a security association identifier according to the first quantum key, the first encryption result, and the second decryption result to protect communication between the first network device and the second network device includes:
[0047] Performing splicing processing according to the first session random number, the second session random number and the first quantum key to obtain a session splicing body;
[0048] Concatenate the first identification random number and the second identification random number to obtain an identification concatenation;
[0049] A security association identifier is obtained according to the session concatenation and the identification concatenation to protect the communication between the first network device and the second network device.
[0050] In this way, a session splice is obtained by splicing the first session random number, the second session random number and the first quantum key. Next, the first identification random number and the second identification random number are spliced to obtain an identification splice. Finally, a security association identifier is obtained according to the session splice and the identification splice to protect the communication between the first network device and the second network device. In this way, by processing the quantum key with other randomly generated random numbers and deriving a security association identifier with the ability to resist quantum computing attacks to protect the communication between the first network device and the second network device, the security of the communication data between the first network device and the second network device is enhanced.
[0051] The embodiment of the present application provides a method for enhancing the anti-quantum security of a national secret IPSec VPN protocol of a communication network, wherein the communication network includes a first network device and a second network device, and the method is used for the second network device, and the method includes:
[0052] Receiving a first encryption result obtained by the first network device performing post-quantum cryptographic encryption processing on a first quantum key, where the first quantum key is obtained by the first network device from a first network node to which it is connected;
[0053] Decrypting the first encryption result to obtain a first decryption result;
[0054] Performing post-quantum cryptography encryption processing on the first decryption result, and sending the second encryption result after the post-quantum cryptography encryption processing to the first network device;
[0055] A security association identifier is obtained according to the second quantum key, the first decryption result and the second encryption result to protect the communication between the first network device and the second network device.
[0056] In this way, during the communication process between the first network device and the second network device, the first network device applies for the first quantum key and quantum key identifier, and uses the post-quantum cryptographic algorithm to encrypt the quantum key identifier and the data exchanged during the communication process to protect the transmission of the quantum key identifier. The post-quantum cryptographic algorithm is a series of encryption algorithms designed to resist quantum computing attacks. After the second network device obtains the quantum key identifier, it applies for the second quantum key. The first network device and the second network device use the quantum key in the communication to establish a security alliance between the first network device and the second network device. This enhances the anti-quantum capability of the network communication between the first network device and the second network device.
[0057] In some embodiments, the first decryption result includes a first signed message, and the method further includes:
[0058] Obtain a first verification message according to the first signature message, where the first verification message is obtained by the quantum key identifier, the first session random number, and the first identification information;
[0059] Performing post-quantum signature verification processing on the first signature message to confirm the correctness of the first verification message and the quantum key identifier;
[0060] When the quantum key identifier is obtained correctly, the second quantum key is obtained from a second network node connected to the second network device.
[0061] In this way, the first signature message is processed with post-quantum cryptographic signature verification to confirm that the correct first verification message is received to ensure the integrity of the data and the legitimacy of the source. The first verification message is obtained by the quantum key identifier, the first session random number and the first identification information. When it is confirmed that the received first verification message is correct, an application is made to obtain the second quantum key from the second network node connected to the second network device according to the quantum key identifier. This ensures that the obtained second quantum key matches the first quantum key of the network device, and the second quantum key is used to generate a key with high security and good resistance to quantum computing attacks.
[0062] In some embodiments, the first decryption result includes a quantum key identifier, and performing post-quantum cryptographic encryption on the first decryption result to obtain a second encryption result includes:
[0063] Concatenating the quantum key identifier and the randomly generated second random number to obtain a third encrypted message;
[0064] Performing post-quantum cryptographic derivation processing on the third encrypted message to obtain a second session key;
[0065] Performing an XOR process on the randomly generated second temporary key and the second session key to obtain a second XOR key, and the second XOR key is encrypted and sent to the first network device;
[0066] Performing post-quantum cryptography encryption processing on the third encrypted message to obtain a fourth encrypted message in the second encryption result;
[0067] Encrypting the second session random number according to the second temporary key to obtain a third session encrypted message in the second encryption result;
[0068] Obtain a second verification message according to the quantum key identifier, the second session random number, and the second identification information;
[0069] Performing post-quantum cryptographic signature processing on the second verification message to obtain a second signature message in a second encryption result;
[0070] The second encryption result is sent to the first network device.
[0071] In this way, the quantum key identifier and the randomly generated second random number are spliced to obtain a third encrypted message. Next, the third encrypted message is subjected to post-quantum cryptographic derivation processing to obtain a second session key. Then, the randomly generated second temporary key and the second session key are subjected to XOR processing to obtain a second XOR key, and the second XOR key is encrypted and sent to the first network device. The third encrypted message is subjected to post-quantum cryptographic encryption processing to obtain a fourth encrypted message in the second encryption result. The second session random number is then encrypted according to the second temporary key to obtain a second session encrypted message in the second encryption result. The second verification message is obtained according to the quantum key identifier, the second session random number and the second identification information, and the second verification message is subjected to post-quantum cryptographic signature processing to obtain a second signature message in the second encryption result. Finally, the second encryption result is sent to the first network device. The confidentiality of the quantum key identifier is increased by splicing the quantum key identifier with the second random number, and the quantum key identifier and its derivative products are processed using a post-quantum cryptographic algorithm to increase the complexity of the quantum key identifier by combining quantum key distribution technology with post-quantum cryptographic technology.
[0072] In certain embodiments, the method further comprises:
[0073] Performing key negotiation with the first network device to exchange identification random numbers;
[0074] Obtaining a security association identifier according to the second quantum key, the first decryption result, and the second encryption result to protect communication between the first network device and the second network device, including:
[0075] A security association identifier is obtained according to the identification random number, the second quantum key, the first decryption result and the second encryption result to protect the communication between the first network device and the second network device, wherein the identification random number includes a first identification random number and a second identification random number.
[0076] In this way, key negotiation is performed with the first network device to exchange the identification random number. Then, a security association identifier is obtained according to the identification random number, the second quantum key, the first decryption result, and the second encryption result to protect the communication between the second network device and the first network device. The identification random number includes the first identification random number and the second identification random number. In this way, the confidentiality of the security association random number is increased by adding the identification random number, which can well protect the communication between the first network device and the second network device.
[0077] In some embodiments, the first decrypted message includes a first encrypted message, a first XOR key, and a first session encrypted message, and obtaining a security association identifier according to the second quantum key, the first decryption result, and the second encryption result to protect communication between the first network device and the second network device includes:
[0078] Obtaining a first session key according to the first encrypted message;
[0079] Obtain a first temporary key according to the first session key and the first XOR key;
[0080] Decrypting the first session encrypted message according to the first temporary key to obtain a first session random number;
[0081] Performing splicing processing according to the first session random number, the second session random number and the first quantum key to obtain a session splicing body;
[0082] Concatenate the first identification random number and the second identification random number to obtain an identification concatenation;
[0083] A security association identifier is obtained according to the session concatenation and the identification concatenation to protect the communication between the first network device and the second network device.
[0084] In this way, the first session key is calculated based on the first encrypted message, and then the first temporary key is obtained based on the first session key and the first XOR key. Next, the first session encrypted message is decrypted based on the first temporary key to obtain the first session random number. Then, a session splicing body is obtained by splicing the first session random number, the second session random number and the first quantum key. Then, the first identification random number and the second identification random number are spliced to obtain an identification splicing body. Finally, a security association identifier is obtained based on the session splicing body and the identification splicing body to protect the communication between the first network device and the second network device. In this way, the second quantum key is processed with other randomly generated random numbers and a security association identifier with the ability to resist quantum computing attacks is derived to protect the communication between the first network device and the second network device, thereby enhancing the security of the communication data between the first network device and the second network device.
[0085] The embodiment of the present application provides a first network device, the first network device is used in a communication network based on the national secret IPSecVPN protocol, the communication network also includes a second network device, and the first network device is configured as:
[0086] Acquire a first quantum key from a first network node connected to the first network device;
[0087] Performing post-quantum cryptographic encryption processing on the first quantum key, and sending the first encryption result after the post-quantum cryptographic encryption processing to the second network device;
[0088] decrypting the received second encryption result sent by the second network device to obtain a second decryption result, where the second encryption result is obtained by the second network device according to the first encryption result;
[0089] A security association identifier is obtained according to the first quantum key, the first encryption result and the second decryption result to protect the communication between the first network device and the second network device.
[0090] In this way, during the communication process between the first network device and the second network device, the first network device applies for the first quantum key and quantum key identifier, and uses the post-quantum cryptographic algorithm to encrypt the quantum key identifier and the data exchanged during the communication process to protect the transmission of the quantum key identifier. The post-quantum cryptographic algorithm is a series of encryption algorithms designed to resist quantum computing attacks. After the second network device obtains the quantum key identifier, it applies for the second quantum key. The first network device and the second network device use the quantum key in the communication to establish a security alliance between the first network device and the second network device. This enhances the anti-quantum capability of the network communication between the first network device and the second network device.
[0091] The embodiment of the present application provides a second network device, the second network device is used in a communication network based on the national secret IPSecVPN protocol, the communication network also includes a first network device, and the second network device is configured as follows:
[0092] Receiving a first encryption result obtained by the first network device performing post-quantum cryptographic encryption processing on a first quantum key, where the first quantum key is obtained by the first network device from a first network node to which it is connected;
[0093] Decrypting the first encryption result to obtain a first decryption result;
[0094] Performing post-quantum cryptography encryption processing on the first decryption result, and sending the second encryption result after the post-quantum cryptography encryption processing to the first network device;
[0095] A security association identifier is obtained according to the second quantum key, the first decryption result and the second encryption result to protect the communication between the first network device and the second network device.
[0096] In this way, during the communication process between the first network device and the second network device, the first network device applies for the first quantum key and quantum key identifier, and uses the post-quantum cryptographic algorithm to encrypt the quantum key identifier and the data exchanged during the communication process to protect the transmission of the quantum key identifier. The post-quantum cryptographic algorithm is a series of encryption algorithms designed to resist quantum computing attacks. After the second network device obtains the quantum key identifier, it applies for the second quantum key. The first network device and the second network device use the quantum key in the communication to establish a security alliance between the first network device and the second network device. This enhances the anti-quantum capability of the network communication between the first network device and the second network device.
[0097] An embodiment of the present application provides a communication system based on the national secret IPSec VPN protocol, characterized in that the communication system includes the first network device as described above, the second network device as described above, and a quantum key distribution network, and the quantum key distribution network is configured to distribute quantum keys to the first network device or the second network device.
[0098] An embodiment of the present application provides a network device, which includes one or more processors and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the above method is implemented.
[0099] The embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the above method is implemented.
[0100] Additional aspects and advantages of the embodiments of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0101] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0102] Figure 1 It is one of the flow charts of the method of the implementation mode of the present application;
[0103] Figure 2 It is an architectural diagram of a method for implementing an embodiment of the present application;
[0104] Figure 3 is a signaling diagram of a method according to an embodiment of the present application;
[0105] Figure 4 This is the second flow chart of the method of the implementation mode of the present application;
[0106] Figure 5 This is the third flow chart of the method of the implementation mode of the present application;
[0107] Figure 6 This is the fourth flow chart of the method of the implementation mode of the present application;
[0108] Figure 7 This is the fifth flow chart of the method of the implementation mode of the present application;
[0109] Figure 8 This is the sixth flow chart of the method of the implementation mode of the present application;
[0110] Fig. 9 This is the seventh flow chart of the method of the implementation mode of the present application;
[0111] Fig.10 This is the eighth flow chart of the method of the implementation mode of the present application;
[0112] Fig.11 This is the ninth flow chart of the method of the implementation mode of the present application;
[0113] Fig.12 This is the tenth flowchart of the method of the implementation mode of the present application;
[0114] Fig.13 This is the eleventh flow chart of the method of the implementation mode of the present application;
[0115] Fig.14 This is the twelfth flow chart of the method of the implementation mode of the present application;
[0116] Fig.15 This is the thirteenth flow chart of the method of the implementation mode of the present application;
[0117] Fig.16 This is the fourteenth flow chart of the method of the implementation mode of the present application. DETAILED DESCRIPTION
[0118] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the embodiments of the present application, and cannot be understood as limiting the embodiments of the present application.
[0119] The leap in computing power represented by quantum computing has a significant impact on the security of related algorithms in classical cryptography. In other words, quantum computing poses a more direct and urgent threat to classical cryptography. For example, Shor's quantum algorithm can solve complex mathematical problems such as large integer decomposition and discrete logarithm solution in polynomial time, and quickly crack widely used public key cryptographic algorithms such as RSA, ECC, DSA, ElGamal, etc. Understandably, with the realization of large-scale quantum computers, it will have a certain impact on key negotiation, encryption, signature and other applications in classical cryptography.
[0120] In this way, the security of the Internet, which uses classical cryptographic algorithms to protect the communication process, is deeply threatened by quantum computing attacks. For example, the first phase of the establishment of the ISAKMP security alliance by the National Encryption IPSec VPN Protocol at the network layer uses a digital envelope method combining SM4 symmetric encryption and SM2 elliptic curve public key encryption for key exchange, and uses the SM2 elliptic curve algorithm for digital signature for identity authentication. Although the National Encryption IPSec VPN Protocol uses classical PKI technology to provide relatively strong security and forward secrecy, it lacks the ability to resist quantum computing attacks. The National Encryption IPSec VPN Protocol is a protocol defined by GM / T0022 "IPSec VPN Technical Specifications" and GB / T 36968 "Information Security Technology IPSec VPN Technical Specifications" for the network layer to establish an encrypted communication tunnel between two network devices. It includes the most widely used key exchange protocol in the field of domestic commercial encryption for data security transmission and communication channel encryption.
[0121] At present, the international technologies for dealing with the threat of quantum computing attacks are mainly divided into two categories: "classical anti-quantum - post-quantum cryptographic algorithms" and "quantum anti-quantum - quantum cryptographic technology". Quantum key distribution technology uses the principles of quantum mechanics to generate keys that cannot be stolen by third parties, ensuring the security of key transmission. It is particularly suitable for key exchange scenarios and can replace existing asymmetric key negotiation algorithms, such as RSA or ECC, to improve the security of keys. However, quantum key distribution technology cannot currently completely replace all applications of asymmetric algorithms. For example, scenarios such as signature verification and integrity protection still require the use of asymmetric algorithms.
[0122] Post-quantum cryptographic algorithms are asymmetric cryptographic algorithms designed based on new mathematical problems, aiming to resist the possible threats posed by quantum computers. NIST has announced the first batch of four post-quantum cryptographic algorithms to be standardized, including Kyber, Dilithium, Falcon, and SPHINCS+. These algorithms cover a variety of technical routes to reduce the risk of a single technology being cracked. Post-quantum cryptographic algorithms can theoretically replace all asymmetric algorithms and are more general. However, the security of post-quantum cryptographic algorithms still depends on the complexity of computational problems, and may face new cracking methods in the future or become unsafe as computing power increases. In addition, the post-quantum cryptographic algorithm standard has not yet been officially announced, and the production and certification of related products also take time, so its large-scale application still requires a long period of time.
[0123] Both post-quantum cryptographic algorithms and quantum key distribution technologies have the ability to resist quantum computing attacks, but each has its limitations. Therefore, providing relatively low-cost and highly secure cryptographic technology that can resist quantum computing attacks has become an urgent problem to be solved.
[0124] Based on the above questions, please refer to Figure 1 The embodiment of the present application provides a method for enhancing the anti-quantum security of a national secret IPSec VPN protocol of a communication network, wherein the communication network includes a first network device and a second network device, and the method is used for the first network device, and the method includes:
[0125] 011: Obtaining a first quantum key from a first network node connected to a first network device;
[0126] 012: Perform post-quantum cryptography encryption processing on the first quantum key, and send the first encryption result after the post-quantum cryptography encryption processing to the second network device;
[0127] 013: decrypting the second encryption result received and sent by the second network device to obtain a second decryption result, where the second encryption result is obtained by the second network device according to the first encryption result;
[0128] 014: Obtain a security association identifier according to the first quantum key, the first encryption result, and the second decryption result to protect the communication between the first network device and the second network device.
[0129] The embodiment of the present application also provides a network device, including a memory and a processor. The method of the embodiment of the present application can be implemented by the network device of the embodiment of the present application. Specifically, a computer program is stored in the memory, and the processor is used to obtain a first quantum key from a first network node connected to the first network device, and perform post-quantum cryptographic encryption processing on the first quantum key, and send the first encryption result after post-quantum cryptographic encryption processing to the second network device, and decrypt the second encryption result received by the second network device to obtain a second decryption result, the second encryption result is obtained by the second network device according to the first encryption result and the security association identifier is obtained according to the first quantum key, the first encryption result and the second decryption result, so as to protect the communication between the first network device and the second network device.
[0130] The embodiment of the present application also provides a first network device. The method of the embodiment of the present application can be implemented by the first network device of the embodiment of the present application. Specifically, the first network device includes an acquisition module, an encryption module, a decryption module and a derivation module. The acquisition module is used to obtain a first quantum key from a first network node connected to the first network device. The encryption module is used to perform post-quantum cryptographic encryption processing on the first quantum key, and send the first encryption result after post-quantum cryptographic encryption processing to the second network device. The decryption module is used to decrypt the second encryption result received and sent by the second network device to obtain a second decryption result, and the second encryption result is obtained by the second network device based on the first encryption result. The derivation module is used to obtain a security association identifier based on the first quantum key, the first encryption result and the second decryption result to protect the communication between the first network device and the second network device.
[0131] The present application provides a communication system based on the national secret IPSec VPN protocol, the communication system includes the first network device, the second network device and the quantum key distribution network of the above-mentioned implementation mode, and the quantum key distribution network is configured to distribute quantum keys to the first network device or the second network device. Specifically, the quantum key distribution network includes network nodes and a quantum network link control center, and the network nodes are used to store quantum keys in the quantum key distribution network. The quantum network link center can establish quantum key distribution and relay links between network nodes according to the names of the network nodes, and the relay links are used for functions such as data transfer. The quantum key distribution network is used to implement services such as quantum key generation, quantum key relay, and quantum key provision.
[0132] See also Figure 2In some embodiments, the first network device and the second network device communicate through an IPSec encrypted channel, such as performing key exchange. The IPSec encrypted channel refers to an encrypted communication channel established between the first network device and the second network device, which is used to protect the transmission of IP data packets using the IPsec (Internet Protocol Security) protocol at the network layer. Each network device has an accessed network node, and the network device applies for a quantum key from the network node through a trusted channel. When the quantum key application is approved, the network node sends the quantum key to the network device through a trusted channel. When the first network device successfully applies for and obtains the quantum key distributed by the network node accessed to the first network device, the quantum network link control center will synchronously control the network node accessed by the second network device to generate a quantum key, but will not send it to the second network device immediately. The correspondence between the above-mentioned first network device, the second network device, and the network node is provided by the management and control platform.
[0133] It should be noted that the implementation method of this application uses FIPS203 Module-Lattice-based Key-Encapsulation Mechanism Standard as the PQC key encapsulation algorithm and FIPS 204 Module-Lattice-Based Digital Signature Standard as the PQC digital signature algorithm for example for explanation. The following descriptions of operations related to the PQC algorithm refer to the above FIPS standard. Of course, in other implementations, other algorithms such as the NewHope algorithm, the Sidh algorithm, the HQC algorithm, etc. can also be used as PQC related algorithms. It should also be noted that the embodiments of this application are for the IPSec VPN protocol defined in GM / T 0022 "IPSec VPN Technical Specifications" and GB / T 36968 "Information Security Technology IPSec VPN Technical Specifications", hereinafter referred to as the National Secret IPSec VPN Protocol.
[0134] Specifically, in the implementation mode of the present application, the first network device obtains the first quantum key from the first network node connected to the first network device, and the first quantum key is used to generate a more secure key to resist quantum computing attacks. The first network device then performs post-quantum cryptographic encryption processing on the first quantum key, and sends the first encryption result processed by post-quantum cryptographic encryption to the second network device. By combining post-quantum cryptography technology with quantum key distribution technology, the confidentiality of the key is improved, and the encryption result is sent to the second network device for sharing, so that the first network device and the second network device ensure data consistency in the communication of the communication network.
[0135] Then, the second network device receives the first encryption result of the first network device performing post-quantum cryptographic encryption on the first quantum key, where the first quantum key is obtained by the first network device from the first network node to which it is connected. Next, the first encryption result is decrypted to obtain a first decryption result. The first decryption result is then encrypted to obtain a second encryption result. After obtaining the second encryption result, the second network device sends the second encryption result to the first network device.
[0136] Thereafter, the first network device decrypts the second encryption result received from the second network device to obtain a second decryption result, thereby sharing the information of the second network device and ensuring data consistency between the first network device and the second network device during communication in the communication network.
[0137] Finally, the first network device obtains a security association identifier according to the first quantum key, the first encryption result, and the second decryption result to protect the communication between the first network device and the second network device. In this way, the ability of the communication between the first network device and the second network device to resist quantum computing attacks is enhanced by combining quantum key distribution technology and post-quantum cryptographic algorithms to generate security association identifiers.
[0138] The following is an example to illustrate the method of implementing the present application. In the embodiment of the present application, the initiator IPSec VPN gateway is a first network device, hereinafter referred to as the initiator gateway. The IPSec VPN gateway is used to obtain a session key through the national secret IPSec VPN key exchange protocol and use the session key to establish an IPSec encryption channel to encrypt and decrypt business data transmitted through the network. The responder IPSec VPN gateway is a network device, hereinafter referred to as the responder gateway. The quantum network node is a network node, which is used to store and provide the generated quantum key to the IPSec VPN gateway through a trusted channel. Please refer to Figure 3 , the initiator gateway obtains the first quantum key QK_UUID1 from the first quantum network node connected to the first network device. After obtaining the first quantum key QK_UUID1, the first quantum key QK_UUID1 is encrypted by the post-quantum cryptographic algorithm to obtain a first encryption result, which includes the IKEv1 protocol header (HDR), XCH1 and SIG1. The initiator gateway sends the first encryption result to the second network device.
[0139] Then, the responder gateway receives the first encryption result sent by the initiator gateway, and decrypts the first encryption result to obtain the first decryption result. The responder gateway then performs post-quantum cryptography encryption on the first decryption result to obtain the second encryption result, which includes HDR, XCH2, and SIG2. After obtaining the second encryption result, the responder gateway sends the second encryption result to the initiator gateway.
[0140] Subsequently, the initiator gateway receives the second encryption result sent by the client, and decrypts the second encryption result to obtain the second decryption result. Subsequently, the initiator calculates the security association identifier SKEYID according to the relevant information in the first encryption result and the relevant information in the second decryption result in accordance with the national secret IPSec VPN protocol. The communication between the initiator gateway and the responder gateway is then encrypted according to the security association identifier SKEYID to protect the communication data. In this way, it is ensured that even in the face of possible threats from quantum computers, the communication between the initiator gateway and the responder gateway can still be protected to provide secure data transmission. By using post-quantum cryptography algorithms and quantum key distribution technology, communications can be more secure against possible threats from quantum computers.
[0141] In summary, in the anti-quantum security enhancement method, communication system, first network device and second network device of the national secret IPSec VPN protocol of the communication network of the implementation mode of the present application, for the communication process between the first network device and the second network device, the first network device applies for the first quantum key and quantum key identifier, and uses the post-quantum cryptographic algorithm to encrypt the quantum key identifier and the data exchanged during the communication process to protect the transmission of the quantum key identifier. The post-quantum cryptographic algorithm is a series of encryption algorithms designed to resist quantum computing attacks. After the second network device obtains the quantum key identifier, it applies for the second quantum key and uses the quantum key in the communication to establish a security alliance between the first network device and the second network device. This enhances the anti-quantum capability of the network communication between the first network device and the second network device.
[0142] See also Figure 4 In some embodiments, the method further comprises:
[0143] 016: Access the first network node through a pre-established channel;
[0144] 017: Load the security certificate of the first network device or the security certificate of the second network device.
[0145] In some implementations, the access module is used to access the first network node through a pre-established channel, and the loading module is used to load the security certificate of the first network device or the security certificate of the second network device.
[0146] In some embodiments, the processor is further configured to access the first network node through a pre-established channel, and load a security certificate of the first network device or a security certificate of the second network device.
[0147] Specifically, before transmitting data with the second network device, the first network device accesses the first network node through a pre-established channel. The pre-established channel can protect data during the data transmission process and reduce the risk of unauthorized access during the transmission process. Then, the first network device loads the security certificate of the first network device or the security certificate of the second network device. After the security certificate is loaded, it will be used to establish and maintain a secure communication channel to enhance the security of data during transmission.
[0148] Continuing with the above example, please refer again to Figure 3 Before the initiator gateway and the responder gateway transmit data, the initiator gateway accesses the first quantum network node with the closest physical distance and completed authorization through a trusted channel. A trusted channel refers to a mechanism or protocol that provides a secure communication path between two communicating entities. One way to establish it is that the initiator gateway and the first quantum network node are in the same cabinet and directly connected by a shielded network cable. This channel ensures the confidentiality, integrity and availability of data during transmission, and prevents unauthorized access, tampering or eavesdropping. At the same time, through offline import, the initiator gateway and the responder gateway load the public key of the other party's post-quantum cryptography algorithm key pair, or the certificate of their own post-quantum cryptography algorithm issued by the certificate system. The certificate includes an encryption certificate and a signature certificate. The offline import method means that the transmission of keys or certificates will not pass through the Internet or other network paths that may be monitored or attacked, ensuring the security of the transmission process.
[0149] In this way, the initiator gateway accesses the first quantum network node through a trusted channel and loads the security certificate by offline import, ensuring the confidentiality of network device data and reducing the risk of data leakage.
[0150] See also Figure 5 In some embodiments, step 011 (obtaining a first quantum key from a first network node connected to a first network device) includes:
[0151] 0111: sending a quantum key application to a first network node connected to a first network device;
[0152] 0112: Receive a first quantum key and a quantum key identifier distributed by the first network node according to the quantum key application, where the quantum key identifier is obtained by the first network node marking the first quantum key using an identification code of the first network device.
[0153] In some embodiments, the sending module is used to send a quantum key application to a first network node connected to the first network device. The receiving module is used to receive a first quantum key and a quantum key identifier distributed by the first network node according to the quantum key application, where the quantum key identifier is obtained by the first network node marking the first quantum key using an identification code of the first network device.
[0154] In some embodiments, the processor is further used to send a quantum key application to a first network node connected to the first network device, and to receive a first quantum key and a quantum key identifier distributed by the first network node according to the quantum key application, where the quantum key identifier is obtained by the first network node marking the first quantum key using an identification code of the first network device.
[0155] Specifically, the first network device sends a quantum key application to the first network node connected to the first network device. After the first network node approves the quantum key application, it distributes the first quantum key and quantum key identifier generated from the quantum key distribution network to the network device. The quantum key identifier is obtained by the first network node using the identification code of the first network device to mark the first quantum key. The quantum key identifier helps to manage and use the quantum key. In this way, the first quantum key and quantum key identifier are obtained for key derivation in subsequent processes.
[0156] Continuing with the above example, please refer again to Figure 3 , the initiator gateway and the responder gateway send messages 1 and 2 in accordance with the national secret IPSec VPN protocol to conduct the first phase of key negotiation. After the key negotiation is completed, a quantum key application is sent to the first quantum network node directly connected to the initiator gateway to obtain the quantum key. The first quantum network node directly connected to the initiator gateway distributes the first quantum key QK_UUID1 of more than 128 bits and the quantum key identifier UUID_QK generated by the quantum key distribution network to the initiator gateway through a trusted channel. The quantum key identifier is obtained by the first quantum network node connected to the initiator gateway using the unique universal identification code of the initiator gateway to mark the first quantum key. The quantum key identifier helps to manage and use the quantum key. At the same time, the quantum network link control center generates a matching second quantum key QK_UUID2 through the quantum key distribution network and stores it in the second quantum network node connected to the responder gateway, instead of directly distributing it to the responder gateway.
[0157] In this way, the initiator gateway obtains the first quantum key QK_UUID1 and the quantum key identifier UUID_QK for subsequent key derivation.
[0158] See also Figure 6In some embodiments, step 012 (performing post-quantum cryptographic encryption processing on the first quantum key, and sending the first encryption result after the post-quantum cryptographic encryption processing to the second network device) includes:
[0159] 0121: concatenate the quantum key identifier and the randomly generated first random number to obtain a first encrypted message;
[0160] 0122: Perform post-quantum cryptographic derivation processing on the first encrypted message to obtain a first session key;
[0161] 0123: performing XOR processing on the randomly generated first temporary key and the first session key to obtain a first XOR key, and the first XOR key is encrypted and sent to the second network device;
[0162] 0124: Perform post-quantum cryptography encryption processing on the first encrypted message to obtain a second encrypted message in the first encryption result;
[0163] 0125: encrypting the first session random number according to the first temporary key to obtain a first session encrypted message in a first encryption result;
[0164] 0126: Obtain a first verification message according to the quantum key identifier, the first session random number and the first identification information;
[0165] 0127: Perform post-quantum cryptographic signature processing on the first verification message to obtain a first signature message in the first encryption result;
[0166] 0128: Send the first encryption result to the second network device.
[0167] In some embodiments, the splicing module is used to splice the quantum key identifier and the randomly generated first random number to obtain a first encrypted message, and the derivation module is used to perform post-quantum cryptographic derivation processing on the first encrypted message to obtain a first session key. The processing module is used to perform XOR processing on the randomly generated first temporary key and the first session key to obtain a first XOR key, and the first XOR key is encrypted and sent to the second network device. The encryption module is used to perform post-quantum cryptographic encryption processing on the first encrypted message to obtain a second encrypted message in the first encryption result. The encryption module is also used to encrypt the first session random number according to the first temporary key to obtain the first session encrypted message in the first encryption result. The splicing module is also used to obtain a first verification message according to the quantum key identifier, the first session random number and the first identification information. The signature module is used to perform post-quantum cryptographic signature processing on the first verification message to obtain a first signature message in the first encryption result. The sending module is used to send the first encryption result to the second network device.
[0168] In some embodiments, the processor is further configured to concatenate the quantum key identifier and the randomly generated first random number to obtain a first encrypted message, perform post-quantum cryptographic derivation processing on the first encrypted message to obtain a first session key, perform XOR processing on the randomly generated first temporary key and the first session key to obtain a first XOR key, the first XOR key is encrypted and sent to the second network device, and perform post-quantum cryptographic encryption processing on the first encrypted message to obtain a second encrypted message in the first encryption result. The processor is further configured to encrypt the first session random number according to the first temporary key to obtain a first session encrypted message in the first encryption result, obtain a first verification message according to the quantum key identifier, the first session random number and the first identification information, perform post-quantum cryptographic signature processing on the first verification message to obtain a first signature message in the first encryption result and send the first encryption result to the second network device.
[0169] Specifically, the first network device concatenates the quantum key identifier with the randomly generated first random number to obtain a first encrypted message. Next, the first network device performs post-quantum cryptographic derivation processing on the first encrypted message to obtain a first session key. Then, the first network device performs XOR processing on the randomly generated first temporary key and the first session key to obtain a first XOR key, which is encrypted and sent to the second network device. The first network device performs post-quantum cryptographic encryption processing on the first encrypted message to obtain a second encrypted message in the first encryption result. The first network device then encrypts the first session random number according to the first temporary key to obtain the first session encrypted message in the first encryption result. The first network device obtains a first verification message based on the quantum key identifier, the first session random number and the first identification information, and performs post-quantum cryptographic signature processing on the first verification message to obtain a first signature message in the first encryption result. Finally, the first network device sends the first encryption result to the second network device. In this way, the first network device increases the confidentiality of the quantum key identifier by concatenating the quantum key identifier with the first random number, and processes the quantum key identifier and its derivatives using a post-quantum cryptographic algorithm to increase the complexity of the quantum key identifier by combining quantum key distribution technology with post-quantum cryptographic technology.
[0170] Continuing with the above example, message 3 is the first encryption result. Figure 3After the initiator gateway obtains the first quantum key QK_UUID1 and the quantum key identifier UUID_QK, the initiator gateway sends message 3 to the responder gateway, and message 3 includes HDR, XCH1 and SIG1. First, the initiator gateway concatenates the quantum key identifier and the randomly generated first random number r1 to obtain the first encrypted message m1. Then, the initiator gateway uses the first encrypted message m1 as the encrypted message m in the PQC key encapsulation algorithm, and runs the G function of the PQC algorithm to obtain the first session key K1. The initiator gateway performs XOR processing on the randomly generated first temporary key SK1 and the first session key K1 to obtain the first XOR key Y1, that is, Sk1⊕K1. The first XOR key Y1 is sent to the responder gateway using SM2 elliptic curve public key encryption protection. The initiator gateway then performs PQC encryption encapsulation on the first encrypted message m1 to obtain the second encrypted message m2.
[0171] In addition, the initiator gateway uses the first temporary key SK1 to perform SM2 elliptic curve public key encryption protection on the first session random number Nonce1 calculated by the initiator gateway itself to obtain the first session encrypted message H1. In the traditional national secret IPSec VPN protocol, the initiator gateway also uses the first temporary key SK1 to perform SM2 elliptic curve public key encryption protection on the initiator's first identification information ID1. XCH1 in message 3 is obtained by splicing the first XOR key Y1 protected by SM2 elliptic curve public key encryption, the second encrypted message m2, the first session encrypted message H1, the first identification information ID1 protected by SM4 symmetric encryption, the encryption certificate CERT_sig_1 of the initiator gateway, and the signature certificate CERT_enc_1 of the initiator gateway. When the initiator gateway has a PQC certificate, XCH1 also needs to splice the PQC encryption certificate CERT_PQC_sig_1 of the initiator gateway and the PQC signature certificate CERT_PQC_enc_1 of the initiator gateway. XCH1 is as follows:
[0172] XCH1 = Asymmetric_Encrypt(Sk1⊕K1 , pub_2)| PQC_Encaps(m1,pqc_pub_2)| Symmetric_Encrypt(Nonce1,Sk1) | Symmetric_Encrypt(ID1,Sk1) | CERT_sig_1 |CERT_enc_1 | [CERT_PQC_sig_1] | [ CERT_PQC_enc_1].
[0173] At the same time, the initiator gateway concatenates the first temporary key SK1, the first session random number Nonce1 calculated by the initiator gateway itself, the first identification information ID1 of the initiator gateway and the encryption certificate CERT_sig_1 to obtain a first temporary concatenation, and digitally signs the first temporary concatenation using the SM2 elliptic curve algorithm. The initiator gateway concatenates the first quantum key QK_UUID1, the first session random number Nonce1 calculated by the initiator itself and the first identification information ID1 of the initiator to obtain a first verification message, and then uses the post-quantum cryptographic signature algorithm to perform PQC signature protection on the first verification message as the signed data M in the PQC signature algorithm to obtain the first signature message M1. SIGi is obtained by concatenating the first temporary concatenation digitally signed using the SM2 elliptic curve algorithm and the first signature message. SIGi is shown below:
[0174] SIG1 = Asymmetric_Sign(Sk1 | Nonce1 | ID1 | CERT_enc_1, priv_1) |PQC_Sign(UUID_QK| Nonce1 | ID1, pqc_priv_1)
[0175] Finally, the initiator gateway sends message 3 to the responder gateway.
[0176] In this way, the initiator gateway sends the first session random number Nonce1 calculated by the initiator itself to the responder gateway, so that the responder gateway obtains the first session random number Nonce1 for subsequent processes. The initiator gateway increases the confidentiality of the quantum key identifier by splicing the quantum key identifier UUID_QK with the randomly generated first random number r1, and processes the quantum key identifier UUID_QK and its derivatives using a post-quantum cryptographic algorithm to combine quantum key distribution technology with post-quantum cryptographic technology to increase the complexity of the quantum key identifier.
[0177] See also Figure 7 In some implementations, step 013 (decrypting the second encryption result received and sent by the second network device to obtain a second decryption result, the second encryption result being obtained by the second network device based on the first encryption result) includes:
[0178] 0131: receiving a second encryption result sent by a second network device, where the second encryption result is obtained by the second network device encrypting the first decryption result, and the first decryption result is obtained by the second network device decrypting the first encryption result;
[0179] 0132: Perform post-quantum cryptographic decryption processing on the second encryption result to obtain a second decryption result, where the second decryption result includes a third encrypted message, a quantum key identifier, a second XOR key, a second session encryption message, and a second signature message.
[0180] In some embodiments, the receiving module is used to receive a second encryption result sent by the second network device, the second encryption result is obtained by the second network device encrypting the first decryption result, and the first decryption result is obtained by the second network device decrypting the first encryption result. The decryption module is used to perform post-quantum cryptographic decryption on the second encryption result to obtain a second decryption result, and the second decryption result includes a third encrypted message, a quantum key identifier, a second XOR key, a second session encryption message, and a second signature message.
[0181] In some embodiments, the processor is further configured to receive a second encryption result sent by a second network device, the second encryption result being obtained by the second network device performing encryption processing on the first decryption result, and the first decryption result being obtained by the second network device performing decryption processing on the first encryption result. And performing post-quantum cryptographic decryption processing on the second encryption result to obtain a second decryption result, the second decryption result including a third encrypted message, a quantum key identifier, a second XOR key, a second session encryption message, and a second signature message.
[0182] Specifically, the first network device receives the second encryption result sent by the second network device, and the second encryption result is obtained by the second network device performing post-quantum cryptographic encryption processing on the first decryption result, and the first decryption result is obtained by the second network device performing decryption processing on the first encryption result. Then, the first network device decrypts the second encryption result to obtain a second decryption result, and the second decryption result includes a third encrypted message, a quantum key identifier, a second XOR key, a second session encryption message, and a second signature message. In this way, the first network device determines the availability of the channel for communication with the second network device, and obtains the key information of the second network device, which can be combined with the relevant key information of the network device to generate a more secure key.
[0183] Continuing with the above example, message 4 is the second encryption result. Figure 3 , the initiator gateway receives the message 4 sent by the responder gateway, and the message 4 is obtained by the client performing post-quantum cryptographic encryption on the first decryption result, and the first decryption result is obtained by the secure access gateway decrypting the message 3. Then, the initiator gateway decrypts the message 4 to obtain the second decryption result, which includes the third encrypted message m3, the quantum key identifier UUID_QK, the second XOR key Y2, the second session encrypted message H2 and the second signature message M2.
[0184] In this way, the initiator gateway determines the availability of the channel for communication with the responder and obtains the key information of the responder, which can be combined with the relevant key information of the initiator gateway to generate a more secure key.
[0185] See also Figure 8 In some embodiments, the method further comprises:
[0186] 018: Obtain a second verification message according to the second signature message, where the second verification message is obtained by the quantum key identifier, the second session random number, and the second identification information;
[0187] 019: Perform post-quantum signature verification on the second signature message to confirm the correctness of the second verification message.
[0188] In some embodiments, the processing module is used to obtain a second verification message based on the second signature message, where the second verification message is obtained by the quantum key identifier, the second session random number, and the second identification information. The signature verification module is used to perform post-quantum signature verification on the second signature message to confirm the correctness of the obtained second verification message.
[0189] In some embodiments, the processor is also used to obtain a second verification message based on the second signature message, the second verification message is obtained by the quantum key identifier, the second session random number and the second identification information, and perform post-quantum signature verification on the second signature message to confirm the correctness of the second verification message.
[0190] Specifically, the first network device obtains the second verification message based on the second signature message, and the second verification message is obtained by splicing the quantum key identifier, the second session random number, and the second identification information. The first network device then performs post-quantum cryptographic signature verification on the second signature message to confirm the correctness of the second verification message. By performing the signature verification process, the first network device can confirm the identity of the second network device and the integrity of the data, providing security for subsequent data transmission.
[0191] Continuing with the above example, please refer again to Figure 3 The initiator gateway obtains the second verification message based on the second signature message M2, and then performs post-quantum cryptographic signature verification on the second signature message M2 to confirm the correctness of the second verification message, that is, to confirm that the correct quantum key identifier UUID_QK, the second session random number Nonce2 and the second identification information ID2 have been received.
[0192] In this way, the initiator gateway and the responder gateway achieve secure data exchange and communication, ensuring the confidentiality, integrity and authenticity of the data.
[0193] See also Fig. 9 In some embodiments, the method further comprises:
[0194] 020: Obtain a second session key according to the third encrypted message;
[0195] 021: Obtain a second temporary key according to the second session key and the second XOR key;
[0196] 022: Decrypt the second session encrypted message according to the second temporary key to obtain a second session random number.
[0197] In some embodiments, the derivation module is further configured to obtain a second session key according to the third encrypted message, the processing module is configured to obtain a second temporary key according to the second session key and the second XOR key, and the decryption module is further configured to decrypt the second session encrypted message according to the second temporary key to obtain a second session random number.
[0198] In some embodiments, the processor is further configured to obtain a second session key based on the third encrypted message, obtain a second temporary key based on the second session key and a second XOR key, and decrypt the second session encrypted message based on the second temporary key to obtain a second session random number.
[0199] Specifically, the first network device calculates the second session key according to the third encrypted message, and then obtains the second temporary key according to the second session key and the second XOR key. Then, the first network device decrypts the second session encrypted message according to the second temporary key to obtain the second session random number. In this way, the second session random number is obtained to generate a security association identifier for protecting the communication between the first network device and the second network device.
[0200] Continuing with the above example, please refer again to Figure 3 The initiator gateway obtains the second session key K2 according to the third encrypted message m3, and then obtains the second temporary key SK2 according to the second session key K2 and the second XOR key Y2. Then, the initiator gateway decrypts the second session encrypted message H2 according to the second temporary key SK2 to obtain the second session random number Nonce2.
[0201] In this way, the initiator gateway obtains the second session random number Nonce2 to generate a security association identifier SKEYID for protecting the communication between the first network device and the second network device.
[0202] See also Fig.10 In some embodiments, the method further comprises:
[0203] 023: perform key negotiation with the second network device to exchange the identification random number;
[0204] Step 014 (obtaining a security association identifier according to the first quantum key, the first encryption result, and the second decryption result to protect communication between the first network device and the second network device) includes:
[0205] 0141: A security association identifier is obtained according to an identification random number, a first quantum key, a first encryption result, and a second decryption result to protect communication between a first network device and a second network device, wherein the identification random number includes a first identification random number and a second identification random number.
[0206] In some embodiments, the negotiation module is further used to perform key negotiation with the second network device to exchange the identification random number. The processing module is further used to obtain a security association identifier according to the identification random number, the first quantum key, the first encryption result and the second decryption result to protect the communication between the first network device and the second network device, and the identification random number includes the first identification random number and the second identification random number.
[0207] In some embodiments, the processor is further used to perform key negotiation with the second network device to exchange an identification random number, and to obtain a security association identifier based on the identification random number, the first quantum key, the first encryption result, and the second decryption result to protect communications between the first network device and the second network device, wherein the identification random number includes a first identification random number and a second identification random number.
[0208] Specifically, the first network device and the second network device perform key negotiation to exchange identification random numbers. Then, a security association identifier is obtained based on the identification random number, the first quantum key, the first encryption result, and the second decryption result to protect the communication between the first network device and the second network device. The identification random number includes the first identification random number and the second identification random number. In this way, the confidentiality of the security association identifier is increased by adding the identification random number, which can well protect the communication between the first network device and the second network device.
[0209] Continuing with the above example, the initiator gateway and the responder gateway perform key negotiation. The initiator gateway sends message 1 to the responder gateway, and the responder gateway sends message 2 to the initiator gateway. Message 1 includes HDR and ISAKMP security association (SA), and message 2 includes HDR, SA, the encryption certificate CERT_sig_2 of the responder gateway, and the signature certificate CERT_enc_2 of the responder gateway. If the responder gateway has a PQC security certificate, the responder gateway also needs to send the PQC encryption certificate CERT_PQC_sig_2 of the responder gateway and the PQC signature certificate CERT_PQC_enc_2 of the responder gateway. In this process, the initiator gateway and the responder gateway also exchange identification random number Cookies. The initiator gateway then obtains the security association identifier SKEYID based on the identification random number Cookie, the first quantum key QK_UUID1, message 3, and message 4. The identification random number Cookie includes the first identification random number Cookie1 of the initiator gateway and the second identification random number Cookie2 of the responder gateway.
[0210] In this way, the confidentiality of the security association identifier SKEYID is increased by adding the identification random number Cookie, which can well protect the communication between the initiator gateway and the responder gateway.
[0211] See also Fig.11 In some implementations, step 014 (obtaining a security association identifier according to the first quantum key, the first encryption result, and the second decryption result to protect communication between the first network device and the second network device) includes:
[0212] 0142: performing splicing processing according to the first session random number, the second session random number and the first quantum key to obtain a session splicing body;
[0213] 0143: concatenate the first identification random number and the second identification random number to obtain an identification concatenation;
[0214] 0144: Obtain a security association identifier according to the session concatenation and the identification concatenation to protect the communication between the first network device and the second network device.
[0215] In some embodiments, the splicing module is further used to splice the first session random number, the second session random number and the first quantum key to obtain a session splice, and to splice the first identification random number and the second identification random number to obtain an identification splice. The derivation module is further used to obtain a security association identifier based on the session splice and the identification splice to protect the communication between the first network device and the second network device.
[0216] In some embodiments, the processor is also used to perform splicing processing based on the first session random number, the second session random number and the first quantum key to obtain a session splicing body, and to splice the first identification random number and the second identification random number to obtain an identification splicing body, and to obtain a security association identifier based on the session splicing body and the identification splicing body to protect the communication between the first network device and the second network device.
[0217] Specifically, the first network device performs splicing processing according to the first session random number, the second session random number and the first quantum key to obtain a session splice. Next, the first network device splices the first identification random number and the second identification random number to obtain an identification splice. Finally, the first network device obtains a security association identifier according to the session splice and the identification splice to protect the communication between the first network device and the second network device. In this way, by processing the quantum key with other randomly generated random numbers and deriving a security association identifier with the ability to resist quantum computing attacks to protect the communication between the first network device and the second network device, the security of the communication data between the first network device and the second network device is enhanced.
[0218] Continuing with the above example, the initiator gateway first removes the ISAKMP general header from the first session random number Nonce1 to obtain N1_b, and removes the ISAKMP general header from the second session random number Nonce2 to obtain N2_b. The initiator gateway then concatenates N1_b, N2_b and the first quantum key QK_UUID1 to obtain the session concatenation N1_b | N2_b | QK_UUID. Next, the initiator gateway concatenates the first identification random number Cookie1 and the second identification random number Cookie2 to obtain the identification concatenation Cookie1|Cookie2. Finally, the initiator gateway uses a pseudo-random function (PRF) using a hash (HASH) function to take the session concatenation N1_b | N2_b | QK_UUID and the identification concatenation Cookie1|Cookie2 as input to output the security association identifier SKEYID. The initiator gateway then derives the subsequent derived key SKEYID_d, verification key SKEYID_a, and encryption key SKEYID_e based on the security association identifier SKEYID in accordance with the national secret IPSec VPN protocol.
[0219] Finally, the initiator gateway performs subsequent first-stage message 5 and 6 exchange and second-stage key exchange according to the national secret IPSec VPN protocol based on the derived key SKEYID_d, verification key SKEYID_a, and encryption key SKEYID_e to obtain the final session key.
[0220] In this way, the initiator gateway processes the first quantum key QK_UUID1 with other randomly generated random numbers to derive a security association identifier SKEYID that is resistant to quantum computing attacks, and then uses the security association identifier SKEYID to generate keys with different functions for protecting subsequent communications between the initiator gateway and the responder gateway, thereby enhancing the security of communication data between the initiator gateway and the responder gateway.
[0221] See also Fig.12 The embodiment of the present application provides a method for enhancing the anti-quantum security of a national secret IPSec VPN protocol of a communication network, wherein the communication network includes a first network device and a second network device, and the method is used for the second network device, and the method includes:
[0222] 031: receiving a first encryption result obtained by performing post-quantum cryptographic encryption processing on a first quantum key by a first network device, where the first quantum key is obtained by the first network device from a first network node to which the device is connected;
[0223] 032: Decrypt the first encryption result to obtain a first decryption result;
[0224] 033: Perform post-quantum cryptography encryption processing on the first decryption result, and send the second encryption result after the post-quantum cryptography encryption processing to the first network device;
[0225] 034: Obtain a security association identifier according to the second quantum key, the first decryption result, and the second encryption result to protect the communication between the first network device and the second network device.
[0226] The embodiment of the present application also provides a network device, including a memory and a processor. The method of the embodiment of the present application can be implemented by the network device of the embodiment of the present application. Specifically, a computer program is stored in the memory, and the processor is used to receive a first encryption result obtained by a first network device performing post-quantum cryptographic encryption processing on a first quantum key, and the first quantum key is obtained by the first network device from the first network node connected. And the first encryption result is decrypted to obtain a first decryption result and the first decryption result is encrypted by post-quantum cryptography, and the second encryption result after post-quantum cryptography encryption is sent to the first network device. The processor is also used to obtain a security association identifier based on the second quantum key, the first decryption result and the second encryption result to protect the communication between the first network device and the second network device.
[0227] The embodiment of the present application also provides a second network device. The method of the embodiment of the present application can be implemented by the second network device of the embodiment of the present application. Specifically, the second network device includes a receiving module, a decryption module, an encryption module and a derivation module. The receiving module is used to receive a first encryption result obtained by the first network device performing post-quantum cryptographic encryption processing on the first quantum key, and the first quantum key is obtained by the first network device from the first network node connected. The decryption module is used to perform post-quantum cryptographic encryption processing on the first decryption result, and send the second encryption result processed by post-quantum cryptographic encryption to the first network device. The derivation module is used to obtain a security association identifier based on the second quantum key, the first decryption result and the second encryption result to protect the communication between the first network device and the second network device.
[0228] Specifically, in the implementation mode of the present application, the first network device obtains the first quantum key from the first network node connected to the first network device, and the first quantum key is used to generate a more secure key to resist quantum computing attacks. The first network device then performs post-quantum cryptographic encryption processing on the first quantum key, and sends the first encryption result processed by post-quantum cryptographic encryption to the second network device. By combining post-quantum cryptography technology with quantum key distribution technology, the confidentiality of the key is improved, and the encryption result is sent to the second network device for sharing, so that the first network device and the second network device ensure data consistency in the communication of the communication network.
[0229] Then, the second network device receives the first encryption result of the first network device performing post-quantum cryptographic encryption on the first quantum key, which is obtained by the first network device from the first network node to which it is connected. Next, the first encryption result is decrypted to obtain the first decryption result. The first decryption result is encrypted to obtain the second encryption result. After obtaining the second encryption result, the second network device sends the second encryption result to the first network device. Finally, the second network device obtains a security association identifier based on the second quantum key, the first decryption result, and the second encryption result to encrypt the communication between the second network device and the first network device. In this way, the ability of the communication between the first network device and the second network device to resist quantum computing attacks is enhanced by combining quantum key distribution technology and post-quantum cryptographic algorithms to generate security association identifiers.
[0230] Continuing with the above example, see Figure 3, the initiator gateway obtains the first quantum key QK_UUID1 from the first quantum network node connected to the first network device. After obtaining the first quantum key QK_UUID1, the first quantum key QK_UUID1 is encrypted by the post-quantum cryptographic algorithm to obtain a first encryption result, which includes HDR, XCH1 and SIG1. The initiator gateway sends the first encryption result to the second network device.
[0231] Then, the responder gateway receives the first encryption result sent by the initiator gateway, and decrypts the first encryption result to obtain the first decryption result. The responder gateway then performs post-quantum cryptography encryption on the first decryption result to obtain the second encryption result, which includes HDR, XCH2, and SIG2. After obtaining the second encryption result, the responder gateway sends the second encryption result to the initiator gateway.
[0232] Finally, the responder gateway obtains the security association identifier SKEYID according to the second quantum key QK_UUID2, the first decryption result and the second encryption result to encrypt the communication between the responder gateway and the initiator gateway. In this way, the security association identifier SKEYID is generated by combining quantum key distribution technology and post-quantum cryptographic algorithm to enhance the ability of the communication between the initiator gateway and the responder gateway to resist quantum computing attacks.
[0233] In summary, in the anti-quantum security enhancement method, communication system, first network device and second network device of the national secret IPSec VPN protocol of the communication network of the implementation mode of the present application, for the communication process between the first network device and the second network device, the first network device applies for the first quantum key and quantum key identifier, and uses the post-quantum cryptographic algorithm to encrypt the quantum key identifier and the data exchanged during the communication process to protect the transmission of the quantum key identifier. The post-quantum cryptographic algorithm is a series of encryption algorithms designed to resist quantum computing attacks. After the second network device obtains the quantum key identifier, it applies for the second quantum key and uses the quantum key in the communication to establish a security alliance between the first network device and the second network device. This enhances the anti-quantum capability of the network communication between the first network device and the second network device.
[0234] See also Fig.13 In some embodiments, the first decryption result includes a first signed message, and the method further includes:
[0235] 035: Obtain a first verification message according to the first signature message, where the first verification message is obtained by the quantum key identifier, the first session random number, and the first identification information;
[0236] 036: Perform post-quantum signature verification processing on the first signature message to confirm the correctness of the first verification message and the quantum key identifier;
[0237] 037: When the quantum key identifier is obtained correctly, obtain the second quantum key from the second network node connected to the second network device.
[0238] In some embodiments, the derivation module is used to obtain a first verification message based on the first signature message, and the first verification message is obtained by the quantum key identifier, the first session random number and the first identification information. The signature verification module is used to perform post-quantum signature verification processing on the first signature message to confirm the correctness of the first verification message and the quantum key identifier. The acquisition module is used to obtain the second quantum key from the second network node connected to the second network device when the quantum key identifier is obtained correctly.
[0239] In some embodiments, the processor is also used to obtain a first verification message based on the first signature message, the first verification message is obtained by the quantum key identifier, the first session random number and the first identification information, and to perform post-quantum signature verification on the first signature message to confirm the correctness of the first verification message and the quantum key identifier, and to obtain a second quantum key from a second network node connected to the second network device when the quantum key identifier is obtained correctly.
[0240] Specifically, the second network device performs post-quantum cryptographic signature verification on the first signature message to confirm that the correct first verification message is received to ensure the integrity of the data and the legitimacy of the source. The first verification message is obtained by the quantum key identifier, the first session random number and the first identification information. When it is confirmed that the received first verification message is correct, an application is made to obtain the second quantum key from the second network node connected to the second network device according to the quantum key identifier. This ensures that the obtained second quantum key matches the first quantum key of the network device, and the second quantum key is used to generate a key with high security and good resistance to quantum computing attacks.
[0241] Continuing with the above example, see Figure 3 The responder gateway performs post-quantum cryptographic signature verification on the first signature message M1 to confirm that the correct first verification message is received to ensure the integrity of the data and the legitimacy of the source. The first verification message is obtained by the quantum key identifier UUID_QK, the first session random number Nonce1 and the first identification information ID1. When it is confirmed that the received quantum key identifier is correct, the responder gateway applies to the second quantum network node connected to the responder gateway for the second quantum key QK_UUID2 according to the quantum key identifier UUID_QK.
[0242] In this way, it is ensured that the second quantum key QK_UUID2 obtained by the responder gateway matches the first quantum key QK_UUID1 of the network device, and the second quantum key is used to generate a key with high security and good resistance to quantum computing attacks.
[0243] See also Fig.14 In some embodiments, the first decryption result includes a quantum key identifier, and step 033 (performing post-quantum cryptographic encryption on the first decryption result) includes:
[0244] 0331: concatenate the quantum key identifier and the randomly generated second random number to obtain a third encrypted message;
[0245] 0332: performing post-quantum cryptographic derivation processing on the third encrypted message to obtain a second session key;
[0246] 0333: Perform an XOR process on the randomly generated second temporary key and the second session key to obtain a second XOR key, and the second XOR key is encrypted and sent to the first network device;
[0247] 0334: Perform post-quantum cryptography encryption processing on the third encrypted message to obtain a fourth encrypted message in the second encryption result;
[0248] 0335: encrypting the second session random number according to the second temporary key to obtain a third session encrypted message in the second encryption result;
[0249] 0336: Obtain a second verification message according to the quantum key identifier, the second session random number and the second identification information;
[0250] 0337: Perform post-quantum cryptographic signature processing on the second verification message to obtain a second signature message in the second encryption result;
[0251] 0338: Send the second encryption result to the first network device.
[0252] In some embodiments, the splicing module is used to splice the quantum key identifier and the randomly generated second random number to obtain a third encrypted message, and the derivation module is used to perform post-quantum cryptographic derivation processing on the third encrypted message to obtain a second session key. The processing module is used to perform XOR processing on the randomly generated second temporary key and the second session key to obtain a second XOR key, and the second XOR key is encrypted and sent to the first network device. The encryption module is used to perform post-quantum cryptographic encryption processing on the third encrypted message to obtain a fourth encrypted message in the second encryption result. The encryption module is also used to encrypt the second session random number according to the second temporary key to obtain a third session encrypted message in the second encryption result. The splicing module is also used to obtain a second verification message according to the quantum key identifier, the second session random number and the second identification information. The signature module is used to perform post-quantum cryptographic signature processing on the second verification message to obtain a second signature message in the second encryption result. The sending module is used to send the second encryption result to the first network device.
[0253] In some embodiments, the processor is further configured to concatenate the quantum key identifier and the randomly generated second random number to obtain a third encrypted message, perform post-quantum cryptographic derivation processing on the third encrypted message to obtain a second session key, perform XOR processing on the randomly generated second temporary key and the second session key to obtain a second XOR key, the second XOR key is encrypted and sent to the first network device, and perform post-quantum cryptographic encryption processing on the third encrypted message to obtain a fourth encrypted message in the second encryption result. The processor is further configured to encrypt the second session random number according to the second temporary key to obtain a third session encrypted message in the second encryption result, obtain a second verification message according to the quantum key identifier, the second session random number, and the second identification information, and perform post-quantum cryptographic signature processing on the second verification message to obtain a second signature message in the second encryption result and send the second encryption result to the first network device.
[0254] Specifically, the second network device concatenates the quantum key identifier with the randomly generated second random number to obtain a third encrypted message. Then, the second network device performs post-quantum cryptographic derivation processing on the third encrypted message to obtain a second session key. Then, the second network device performs XOR processing on the randomly generated second temporary key and the second session key to obtain a second XOR key, and the second XOR key is encrypted and sent to the first network device. The second network device performs post-quantum cryptographic encryption processing on the third encrypted message to obtain a fourth encrypted message in the third encryption result. The second network device then encrypts the second session random number according to the second temporary key to obtain a second session encrypted message in the second encryption result. The second network device obtains a second verification message according to the quantum key identifier, the second session random number and the second identification information, and performs post-quantum cryptographic signature processing on the second verification message to obtain a second signature message in the second encryption result. Finally, the second network device sends the second encryption result to the first network device. In this way, the second network device increases the confidentiality of the quantum key identifier by concatenating the quantum key identifier with the second random number, and processes the quantum key identifier and its derivatives using a post-quantum cryptographic algorithm to increase the complexity of the quantum key identifier by combining quantum key distribution technology with post-quantum cryptographic technology.
[0255] Continuing with the above example, see Figure 3 After the responder gateway obtains the second quantum key QK_UUID2, the responder gateway sends message 4 to the initiator gateway, and message 4 includes HDR, XCH2 and SIG2. First, the responder gateway concatenates the quantum key identifier and the randomly generated second random number r2 to obtain the third encrypted message m3. Then, the responder gateway uses the third encrypted message m3 as the encrypted message m in the PQC key encapsulation algorithm, and runs the G function of the PQC algorithm to obtain the second session key K2. The responder gateway performs XOR processing on the randomly generated second temporary key SK2 and the second session key K2 to obtain the second XOR key Y2, that is, Sk2⊕K2. The second XOR key Y2 is sent to the initiator gateway using SM2 elliptic curve public key encryption protection. The responder gateway then performs PQC encryption encapsulation on the third encrypted message m3 to obtain the fourth encrypted message m4.
[0256] In addition, the responder gateway uses the second temporary key SK2 to perform SM2 elliptic curve public key encryption protection on the second session random number Nonce2 calculated by the responder gateway itself to obtain the second session encrypted message H2. In the traditional national secret IPSec VPN protocol, the responder gateway also uses the second temporary key SK2 to perform SM2 elliptic curve public key encryption protection on the initiator's second identification information ID2. XCH1 in message 4 is obtained by splicing the second XOR key Y2 protected by SM2 elliptic curve public key encryption, that is, Sk2⊕K2, the fourth encrypted message m2, the second session encrypted message H2 and the second identification information ID2 protected by SM4 symmetric encryption. XCH2 is shown as follows:
[0257] XCH2 = Asymmetric_Encrypt(Sk2⊕K2 , pub_1)| PQC_Encaps(m2,pqc_pub_1)| Symmetric_Encrypt(Nonce2,Sk2) | Symmetric_Encrypt(ID2,Sk2)
[0258] At the same time, the responder gateway concatenates the second temporary key SK2, the second session random number Nonce2 calculated by the responder gateway itself, the second identification information ID2 of the responder gateway and the encryption certificate CERT_enc_2 to obtain a second temporary concatenation, and digitally signs the second temporary concatenation using the SM2 elliptic curve algorithm. The responder gateway concatenates the second quantum key QK_UUID2, the second session random number Nonce2 calculated by the responder gateway itself and the second identification information ID2 of the responder gateway to obtain a second verification message, and then uses the post-quantum cryptographic signature algorithm to perform PQC signature protection on the second verification message as the signed data M in the PQC signature algorithm to obtain a second signature message M2. SIG2 is obtained by concatenating the second temporary concatenation protected by the SM2 elliptic curve algorithm and the second signature message. SIG2 is shown as follows:
[0259] SIG2 = Asymmetric_Sign(Sk2 | Nonce2 | ID2 | CERT_enc_2, priv_2) |PQC_Sign(UUID_QK| Nonce 2 | ID2, pqc_priv_2)
[0260] Finally, the responder gateway sends message 4 to the responder gateway.
[0261] In this way, the responder gateway sends the second session random number Nonce2 calculated by the initiator to the initiator gateway, so that the initiator gateway obtains the second session random number Nonce2 for subsequent processes. The responder gateway increases the confidentiality of the quantum key identifier by splicing the quantum key identifier UUID_QK with the randomly generated second random number r2, and processes the quantum key identifier UUID_QK and its derivatives using a post-quantum cryptographic algorithm to combine quantum key distribution technology with post-quantum cryptographic technology to increase the complexity of the quantum key identifier.
[0262] See also Fig.15 In some embodiments, the method further comprises:
[0263] 038: Perform key negotiation with the first network device to exchange the identification random number;
[0264] Step 034 (obtaining a security association identifier according to the second quantum key, the first decryption result, and the second encryption result to protect the communication between the first network device and the second network device) includes:
[0265] 0341: A security association identifier is obtained according to an identification random number, a second quantum key, a first decryption result, and a second encryption result to protect communication between a first network device and a second network device, wherein the identification random number includes a first identification random number and a second identification random number.
[0266] In some embodiments, the negotiation module is used to perform key negotiation with the first network device to exchange the identification random number. The derivation module is also used to obtain a security association identifier according to the identification random number, the second quantum key, the first decryption result, and the second encryption result to protect the communication between the first network device and the second network device, and the identification random number includes the first identification random number and the second identification random number.
[0267] In some embodiments, the processor is also used to perform key negotiation with the first network device to exchange identification random numbers, and obtain a security association identifier based on the identification random number, the second quantum key, the first decryption result, and the second encryption result to protect communication between the first network device and the second network device, wherein the identification random number includes a first identification random number and a second identification random number.
[0268] Specifically, the first network device and the second network device perform key negotiation to exchange identification random numbers. Then, a security association identifier is obtained based on the identification random number, the first quantum key, the first encryption result, and the second decryption result to protect the communication between the first network device and the second network device. The identification random number includes the first identification random number and the second identification random number. In this way, the confidentiality of the security association identifier is increased by adding the identification random number, which can well protect the communication between the first network device and the second network device.
[0269] Continuing with the above example, please refer again to Figure 3 , the initiator gateway and the responder gateway conduct key negotiation. The initiator gateway sends message 1 to the responder gateway, and the responder gateway sends message 2 to the initiator gateway. Message 1 includes HDR and ISAKMP security association (SA), and message 2 includes HDR, SA, encryption certificate CERT_sig_2, and signature certificate CERT_enc_2. If the responder gateway has a PQC security certificate, the responder gateway also needs to send the PQC encryption certificate CERT_PQC_sig_2 and the PQC signature certificate CERT_PQC_enc_2. In this process, the initiator gateway and the responder gateway also exchange identification random number Cookies. The responder gateway then obtains the security association identifier SKEYID based on the identification random number Cookie, the second quantum key QK_UUID2, message 3, and message 4. The identification random number Cookie includes the first identification random number Cookie1 of the initiator gateway and the second identification random number Cookie2 of the responder gateway. In this way, the confidentiality of the security association identifier SKEYID is increased by adding the identification random number Cookie, which can well protect the communication between the initiator gateway and the responder gateway.
[0270] See also Fig.16 In some embodiments, the first decrypted message includes the first encrypted message, the first XOR key, and the first session encrypted message, and step 034 (obtaining a security association identifier according to the second quantum key, the first decryption result, and the second encryption result to protect the communication between the first network device and the second network device) includes:
[0271] 0342: Obtain a first session key according to the first encrypted message;
[0272] 0343: Obtain a first temporary key according to the first session key and the first XOR key;
[0273] 0344: decrypt the first session encrypted message according to the first temporary key to obtain a first session random number;
[0274] 0345: performing splicing processing according to the first session random number, the second session random number and the first quantum key to obtain a session splicing body;
[0275] 0346: concatenate the first identification random number and the second identification random number to obtain an identification concatenation;
[0276] 0347: Obtain a security association identifier according to the session concatenation and the identification concatenation to protect the communication between the first network device and the second network device.
[0277] In some embodiments, the derivation module is further used to obtain a first session key according to the first encrypted message, and to obtain a first temporary key according to the first session key and the first XOR key. The decryption module is used to decrypt the first session encrypted message according to the first temporary key to obtain a first session random number. The splicing module is used to perform splicing processing according to the first session random number, the second session random number and the first quantum key to obtain a session splicing body. The splicing module is also used to splice the first identification random number and the second identification random number to obtain an identification splicing body. The derivation module is also used to obtain a security association identifier according to the session splicing body and the identification splicing body to protect the communication between the first network device and the second network device.
[0278] In some embodiments, the processor is further configured to obtain a first session key according to the first encrypted message, obtain a first temporary key according to the first session key and the first XOR key, and decrypt the first session encrypted message according to the first temporary key to obtain a first session random number. The processor is further configured to perform splicing processing according to the first session random number, the second session random number, and the first quantum key to obtain a session splice, splice the first identification random number and the second identification random number to obtain an identification splice, and obtain a security association identifier according to the session splice and the identification splice to protect the communication between the first network device and the second network device.
[0279] Specifically, the second network device calculates the first session key according to the first encrypted message, and then obtains the first temporary key according to the first session key and the first XOR key. Then, the second network device decrypts the first session encrypted message according to the first temporary key to obtain the first session random number. Then, the second network device obtains a session splicing body by splicing the first session random number, the second session random number and the first quantum key. The second network device then splices the first identification random number and the second identification random number to obtain an identification splicing body. Finally, the second network device obtains a security association identifier according to the session splicing body and the identification splicing body to protect the communication between the first network device and the second network device. In this way, the second quantum key is processed with other randomly generated random numbers and a security association identifier with the ability to resist quantum computing attacks is derived to protect the communication between the first network device and the second network device, thereby enhancing the security of the communication data between the first network device and the second network device.
[0280] Continuing with the above example, the responder gateway performs SM2 digital envelope decapsulation on the received message 3 to obtain the first XOR key Y1, and decapsulates it according to the PQC key to obtain the first encrypted message m1. The responder gateway obtains the first session key K1 according to the first encrypted message m1, and then performs XOR processing on the first session key K1 and the first XOR key Y1 to obtain the first temporary key SK1. The responder gateway then decrypts the first session encrypted message H1 according to the first temporary key SK1 to obtain the first session random number Nonce1.
[0281] Subsequently, the responder gateway first removes the ISAKMP general header from the first session random number Nonce1 to obtain N1_b, and removes the ISAKMP general header from the second session random number Nonce2 to obtain N2_b. The responder gateway then concatenates N1_b, N2_b and the first quantum key QK_UUID1 to obtain the session concatenation N1_b | N2_b | QK_UUID. Next, the responder gateway concatenates the first identification random number Cookie1 and the second identification random number Cookie2 to obtain the identification concatenation Cookie1|Cookie2. Finally, the responder gateway uses a pseudo-random function (PRF) and a hash (HASH) function to take the session concatenation N1_b | N2_b | QK_UUID and the identification concatenation Cookie1|Cookie2 as input to output the security association identifier SKEYID. The responder gateway then derives the subsequent derived key SKEYID_d, verification key SKEYID_a, and encryption key SKEYID_e based on the security association identifier SKEYID in accordance with the national secret IPSec VPN protocol.
[0282] Finally, the responder gateway performs subsequent first-stage message 5 and message 6 exchange and second-stage key exchange according to the national secret IPSec VPN protocol based on the derived key SKEYID_d, verification key SKEYID_a, and encryption key SKEYID_e to obtain the final session key.
[0283] In this way, the responder gateway processes the first quantum key QK_UUID1 with other randomly generated random numbers to derive a security association identifier SKEYID that is resistant to quantum computing attacks, and then uses the security association identifier SKEYID to generate keys with different functions for protecting subsequent communications between the initiator gateway and the responder gateway, thereby enhancing the security of communication data between the responder gateway and the initiator gateway.
[0284] The present application also provides a computer-readable storage medium containing a computer program. When the computer program is executed by one or more processors, the one or more processors execute the voice interaction method of the present application.
[0285] It is understood that a computer program includes computer program code. The computer program code may be in source code form, object code form, executable file or some intermediate form. Computer readable storage media may include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), and software distribution medium.
[0286] In the description of this specification, the descriptions with reference to the terms "specifically", "further", "particularly", "understandably", etc. are intended to mean that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not intended to refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0287] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0288] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for enhancing the quantum security of a national secret IPSec VPN protocol of a communication network, wherein the communication network comprises a first network device and a second network device, the method is applied to the first network device, and the method comprises: Acquire a first quantum key from a first network node connected to the first network device; Performing post-quantum cryptographic encryption processing on the first quantum key, and sending the first encryption result after the post-quantum cryptographic encryption processing to the second network device; decrypting the received second encryption result sent by the second network device to obtain a second decryption result, where the second encryption result is obtained by the second network device according to the first encryption result; A security association identifier SKEYID is obtained according to the first quantum key, the first encryption result and the second decryption result to protect the communication between the first network device and the second network device.
2. The method according to claim 1, characterized in that The method further comprises: Accessing the first network node through a pre-established channel; Load the security certificate of the first network device or the security certificate of the second network device.
3. The method according to claim 1, characterized in that The obtaining a first quantum key from a first network node connected to the first network device includes: Sending a quantum key application to the first network node connected to the first network device; Receive a first quantum key and a quantum key identifier distributed by the first network node according to the quantum key application, where the quantum key identifier is obtained by the first network node marking the first quantum key using an identification code of the first network device.
4. The method according to claim 3, characterized in that The performing post-quantum cryptographic encryption processing on the first quantum key, and sending the first encryption result after the post-quantum cryptographic encryption processing to the second network device, includes: Concatenating the quantum key identifier and a randomly generated first random number to obtain a first encrypted message; Performing post-quantum cryptographic derivation processing on the first encrypted message to obtain a first session key; Performing an XOR process on the randomly generated first temporary key and the first session key to obtain a first XOR key, wherein the first XOR key is encrypted and sent to the second network device; Performing post-quantum cryptography encryption processing on the first encrypted message to obtain a second encrypted message in the first encryption result; Encrypting the first session random number according to the first temporary key to obtain a first session encrypted message in the first encryption result; Obtain a first verification message according to the quantum key identifier, the first session random number and the first identification information; Performing post-quantum cryptographic signature processing on the first verification message to obtain a first signature message in the first encryption result; The first encryption result is sent to the second network device.
5. The method according to claim 4, characterized in that The decrypting the received second encryption result sent by the second network device to obtain a second decryption result, wherein the second encryption result is obtained by the second network device according to the first encryption result, includes: receiving the second encryption result sent by the second network device, where the second encryption result is obtained by the second network device encrypting the first decryption result, and the first decryption result is obtained by the second network device decrypting the first encryption result; The second encryption result is subjected to post-quantum cryptographic decryption processing to obtain a second decryption result, where the second decryption result includes a third encrypted message, a quantum key identifier, a second XOR key, a second session encryption message, and a second signature message.
6. The method according to claim 5, characterized in that The method further comprises: Obtain a second verification message according to the second signature message, where the second verification message is obtained by the quantum key identifier, the second session random number, and the second identification information; Perform post-quantum signature verification on the second signature message to confirm the correctness of the second verification message.
7. The method according to claim 5, characterized in that The method further comprises: Obtaining a second session key according to the third encrypted message; Obtain a second temporary key according to the second session key and the second XOR key; The second session encrypted message is decrypted according to the second temporary key to obtain a second session random number.
8. The method according to claim 7, characterized in that The method further comprises: Performing key negotiation with the second network device to exchange identification random numbers; The obtaining a security association identifier SKEYID according to the first quantum key, the first encryption result, and the second decryption result to protect communication between the first network device and the second network device includes: A security association identifier SKEYID is obtained according to the identification random number, the first quantum key, the first encryption result and the second decryption result to protect the communication between the first network device and the second network device, wherein the identification random number includes a first identification random number and a second identification random number.
9. The method according to claim 8, characterized in that The obtaining a security association identifier SKEYID according to the first quantum key, the first encryption result, and the second decryption result to protect communication between the first network device and the second network device includes: Performing splicing processing according to the first session random number, the second session random number and the first quantum key to obtain a session splicing body; Concatenate the first identification random number and the second identification random number to obtain an identification concatenation; A security association identifier SKEYID is obtained according to the session concatenation and the identification concatenation to protect the communication between the first network device and the second network device.
10. A method for enhancing the anti-quantum security of a national secret IPSec VPN protocol of a communication network, wherein the communication network comprises a first network device and a second network device, the method is used for the second network device, and the method comprises: Receiving a first encryption result obtained by the first network device performing post-quantum cryptographic encryption processing on a first quantum key, where the first quantum key is obtained by the first network device from a first network node to which it is connected; Decrypting the first encryption result to obtain a first decryption result; Performing post-quantum cryptography encryption processing on the first decryption result, and sending the second encryption result after the post-quantum cryptography encryption processing to the first network device; A security association identifier SKEYID is obtained according to the second quantum key, the first decryption result and the second encryption result to protect the communication between the first network device and the second network device.
11. The method according to claim 10, characterized in that The first decryption result includes a first signed message, and the method further includes: Obtain a first verification message according to the first signature message, where the first verification message is obtained by a quantum key identifier, a first session random number, and first identification information; Performing post-quantum signature verification processing on the first signature message to confirm the correctness of the first verification message and the quantum key identifier; When the quantum key identifier is obtained correctly, the second quantum key is obtained from a second network node connected to the second network device.
12. The method according to claim 10, characterized in that The first decryption result includes a quantum key identifier, and the performing post-quantum cryptographic encryption processing on the first decryption result includes: Concatenating the quantum key identifier and the randomly generated second random number to obtain a third encrypted message; Performing post-quantum cryptographic derivation processing on the third encrypted message to obtain a second session key; Performing an XOR process on the randomly generated second temporary key and the second session key to obtain a second XOR key, and the second XOR key is encrypted and sent to the first network device; Performing post-quantum cryptography encryption processing on the third encrypted message to obtain a fourth encrypted message in the second encryption result; Encrypting the second session random number according to the second temporary key to obtain a third session encrypted message in the second encryption result; Obtain a second verification message according to the quantum key identifier, the second session random number, and the second identification information; Performing post-quantum cryptographic signature processing on the second verification message to obtain a second signature message in a second encryption result; The second encryption result is sent to the first network device.
13. The method according to claim 10, characterized in that The method further comprises: Performing key negotiation with the first network device to exchange identification random numbers; Obtaining a security association identifier SKEYID according to the second quantum key, the first decryption result, and the second encryption result to protect communication between the first network device and the second network device, including: A security association identifier SKEYID is obtained according to the identification random number, the second quantum key, the first decryption result and the second encryption result to protect the communication between the first network device and the second network device, wherein the identification random number includes a first identification random number and a second identification random number.
14. The method according to claim 13, characterized in that The first decryption result includes a first encrypted message, a first XOR key, and a first session encrypted message, and obtaining a security association identifier SKEYID according to the second quantum key, the first decryption result, and the second encryption result to protect communication between the first network device and the second network device includes: Obtaining a first session key according to the first encrypted message; Obtain a first temporary key according to the first session key and the first XOR key; Decrypting the first session encrypted message according to the first temporary key to obtain a first session random number; Performing splicing processing according to the first session random number, the second session random number and the first quantum key to obtain a session splicing body; Concatenate the first identification random number and the second identification random number to obtain an identification concatenation; A security association identifier SKEYID is obtained according to the session concatenation and the identification concatenation to protect the communication between the first network device and the second network device.
Citation Information
Cited By
Method and system to increase security in VPN services
EP4761177A1
