Quantum-resistant security enhancement method for Internet key exchange protocol
By combining quantum key distribution technology and post-quantum cryptography technology in the communication network, the keys that resist quantum computing attacks are generated, and the impact of quantum computing on key negotiation and encryption is solved, and communication security and reliability are improved.
Patent Information
- Application Number
- CN202411007782.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2044-07-25
AI Technical Summary
Quantum computing has an impact on key negotiation, encryption and signature applications in classical cryptography. The existing technology is difficult to effectively resist quantum computing attacks, and post-quantum cryptography algorithms and quantum key distribution technologies have high costs and limitations.
In a communication network, the initial key is generated by key negotiation with the second network device, and the quantum key is processed using post-quantum cryptographic encryption, combined with quantum key distribution technology and post-quantum cryptography technology to generate quantum computing attacks that are resistant to quantum computing A capable key for encrypting communication.
It enhances the ability of network communication between network devices to resist quantum computing attacks, reduces costs, improves security and reliability, and ensures the confidentiality and integrity of data during transmission.
Smart Images

Figure CN118540164B_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 an Internet key exchange 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 embodiments of the present application provide a method for enhancing the anti-quantum security of an Internet Key Exchange protocol of a communication network.
[0004] The embodiment of the present application provides a method for enhancing the anti-quantum security of an Internet Key Exchange 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] Performing key negotiation with the second network device to generate an initial key, wherein the initial key includes a first encryption key, a first verification key, and a first derived key;
[0006] Acquire a first quantum key from a first network node connected to the first network device;
[0007] Performing post-quantum cryptographic encryption processing on the first quantum key, and sending a first encryption result of the post-quantum cryptographic encryption processing to the second network device;
[0008] Decrypt the received second encryption result sent by the second network device to obtain a second decryption result; generate a second encryption key, a second verification key and a second derived key according to the first quantum key, the first encryption key, the first verification key, the first derived key, the first encryption result and the second decryption result to encrypt 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 and the second network device apply for a quantum key, and use a post-quantum cryptographic algorithm to encrypt the quantum key to generate a key that can resist quantum computing attacks. The post-quantum cryptographic algorithm is a series of encryption algorithms designed to resist quantum computing attacks. After generating a key that is resistant to quantum computing attacks, the first network device and the second network device share keys through communication, and use these keys, quantum keys and other keys in the communication between the first network device and the second network device. In this way, the anti-quantum capability of network communication between network devices is enhanced.
[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 first quantum key application is sent to a first network node connected to a first network device. Next, a first quantum key distributed by the first network node according to the first quantum key application is received. Then, the first quantum key is labeled according to the identification code of the first network device to obtain a quantum key identifier. In this way, a quantum key identifier having the identification code of the first network device is obtained, which is helpful for using and managing quantum keys.
[0018] In some embodiments, performing post-quantum cryptographic encryption processing on the first quantum key and sending the first encryption result of the post-quantum cryptographic encryption processing to the second network device includes:
[0019] Performing post-quantum cryptographic encryption processing on the quantum key identifier to obtain a first encryption result;
[0020] The first encryption result is encrypted according to the first encryption key and the first verification key, and the encrypted first encryption result is sent to the second network device.
[0021] In this way, after obtaining the quantum key identifier, the quantum key identifier is subjected to post-quantum cryptographic encryption to obtain a first encryption result. Then, the first encryption result is encrypted using the first encryption key and the first verification key and sent to the second network device, thereby ensuring the security of the first encryption result after encryption during the transmission process to the second network device. By using the post-quantum cryptographic algorithm to encrypt the quantum key identifier, the quantum key distribution technology and the post-quantum cryptography technology are combined to increase the complexity of the quantum key identifier.
[0022] In some embodiments, performing post-quantum cryptographic encryption on the quantum key identifier to obtain a first encryption result includes:
[0023] Concatenating the quantum key identifier and a randomly generated first random number to obtain a first session message;
[0024] Performing post-quantum cryptographic derivation processing on the first session message to generate a first session key in the first encryption result;
[0025] Performing post-quantum cryptographic encryption processing on the first session message to generate a first encrypted message in the first encryption result;
[0026] Performing post-quantum cryptographic signature processing on the quantum key identifier to generate a first signature message in the first encryption result.
[0027] In this way, the quantum key identifier is concatenated with the randomly generated first random number to obtain the first session message, and then the first session message is subjected to post-quantum cryptographic derivation processing to generate the first session key in the first encryption result. Next, the first session message is subjected to post-quantum cryptographic encryption processing to generate the first encrypted message in the first encryption result. And the quantum key identifier is subjected to post-quantum cryptographic signature processing to generate the first signature message in the first encryption result. In this way, by using post-quantum cryptography technology to perform various processing on the first session message, such as encryption processing, signature processing and derivation processing, the quantum key distribution technology and post-quantum cryptography technology are combined to increase the complexity of the first session message and ensure the security of the first session message.
[0028] In some implementations, the decrypting the received second encryption result sent by the second network device to obtain the second decryption 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 decrypted to obtain a second decryption result, where the second decryption result includes the quantum key identifier, the second session message, and the second signature message.
[0031] In this way, the second encryption result sent by the second network device is received, and the second encryption result is decrypted to obtain the second decryption result, which includes the quantum key identifier, the second session message, and the 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.
[0032] In certain embodiments, the method further comprises:
[0033] A second session key is obtained according to the second session message and the quantum key identifier.
[0034] In this way, a second session key is obtained according to the second session message and the quantum key identifier. The second session key has the ability to resist quantum computing attacks by combining quantum key distribution technology and post-quantum cryptography technology.
[0035] In certain embodiments, the method further comprises:
[0036] Perform post-quantum cryptographic signature verification processing on the quantum key identifier according to the second signature message.
[0037] In this way, the quantum key identifier is subjected to post-quantum cryptographic signature verification according to the second signature message, thereby confirming the integrity and legitimacy of the received data and ensuring that the correct quantum key identifier is received.
[0038] In some embodiments, generating a second encryption key, a second verification key, and a second derived key according to the first quantum key, the first encryption key, the first verification key, the first derived key, the first encryption result, and the second decryption result to encrypt communication between the second network device and the first network device includes:
[0039] generating a second encryption key based on the first encryption key, the first quantum key, the first session key, and the second session key;
[0040] generating a second verification key according to the first verification key, the first quantum key, the first session key, and the second session key;
[0041] generating a second derived key based on the first derived key, the first quantum key, the first session key, and the second session key;
[0042] The communication between the first network device and the second network device is encrypted according to the second encryption key, the second verification key, and the second derived key.
[0043] In this way, a second encryption key is generated according to the first encryption key, the first quantum key, the first session key and the second session key. The second encryption key has good resistance to quantum computing attacks and is used to encrypt data in the communication process between the first network device and the second network device, thereby ensuring the security of the data during transmission. A second verification key is generated according to the first verification key, the first quantum key, the first session key and the second session key. The second verification key has good resistance to quantum computing attacks and is used to ensure the integrity and legitimacy of the data in the communication process between the first network device and the second network device. A second derived key is generated according to the first derived key, the first quantum key, the first session key and the second session key. The second derived key has good resistance to quantum computing attacks and is used to ensure other security purposes in the communication process between the first network device and the second network device, such as deriving a key with higher complexity. The communication between the first network device and the second network device is encrypted according to the second encryption key, the second verification key and the second derived key. In this way, the ability of the communication between network devices to resist quantum computing attacks is enhanced by using the key generated by combining the quantum key distribution technology and the post-quantum cryptography technology, thereby protecting the data transmitted during the communication process.
[0044] The embodiment of the present application provides a method for enhancing the anti-quantum security of an Internet Key Exchange 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:
[0045] Performing key negotiation with the first network device to generate an initial key, the initial key comprising a first encryption key, a first verification key, and a first derived key;
[0046] Receiving a first encryption result of post-quantum cryptographic encryption processing performed by the first network device 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;
[0047] Decrypting the first encryption result to obtain a first decrypted result; encrypting the first decrypted result to obtain a second encryption result;
[0048] A second encryption key, a second verification key and a second derived key are generated according to a second quantum key, the first encryption key, the first verification key, the first derived key, the second encryption result and the first decryption result to encrypt communication between the second network device and the first network device.
[0049] In this way, during the communication process between the first network device and the second network device, the first network device and the second network device apply for a quantum key, and use a post-quantum cryptographic algorithm to encrypt the quantum key to generate a key that can resist quantum computing attacks. The post-quantum cryptographic algorithm is a series of encryption algorithms designed to resist quantum computing attacks. After generating a key that is resistant to quantum computing attacks, the first network device and the second network device share keys through communication, and use these keys, quantum keys and other keys in the communication between the first network device and the second network device. In this way, the anti-quantum capability of network communication between network devices is enhanced.
[0050] In some embodiments, the first decryption result includes a first signed message, and the method further includes:
[0051] Performing post-quantum cryptographic signature verification processing on the quantum key identifier according to the first signature message;
[0052] When the signature verification result is correct, the second quantum key is obtained from a second network node connected to the second network device.
[0053] In this way, the quantum key identifier is subjected to post-quantum cryptographic signature verification according to the first signature message, thereby ensuring that the correct quantum key identifier is obtained and the integrity of the data and the legitimacy of the source are guaranteed. If the signature verification result is correct, the second quantum key is obtained from the second network node connected to the second network device, thereby ensuring that the obtained second quantum key matches the first quantum key of the first network device, and the quantum key is used to generate a key with higher security.
[0054] In some embodiments, the first decryption result includes a quantum key identifier, and encrypting the first decryption result to obtain a second encryption result includes:
[0055] Concatenating the quantum key identifier and a randomly generated second random number to obtain a second session message;
[0056] Performing post-quantum cryptographic derivation processing on the second session message to generate a second session key in the second encryption result;
[0057] Performing post-quantum cryptographic encryption processing on the second session message to generate a second encrypted message in the second encryption result;
[0058] Performing post-quantum cryptographic signature processing on the quantum key identifier to generate a second signature message in the second encryption result;
[0059] The second encryption result is encrypted according to the first encryption key and the first verification key.
[0060] In this way, the quantum key identifier and the randomly generated second random number are concatenated to obtain the second session message, and then the second session message is subjected to post-quantum cryptographic derivation processing to generate the second session key in the second encryption result. The second session message is then subjected to post-quantum cryptographic encryption processing to generate the second encrypted message in the second encryption result, and the quantum key identifier is subjected to post-quantum cryptographic signature processing to generate the second signature message in the second encryption result. The second encryption result is encrypted according to the first encryption key and the first verification key. In this way, various processing such as encryption processing, signature processing and derivation processing are performed on the second session message using post-quantum cryptography technology, and the combination of quantum key distribution technology and post-quantum cryptography technology increases the complexity of the second session message, and also ensures the security of the second session message during transmission.
[0061] In some embodiments, the first decryption result includes a first session message, and generating a second encryption key, a second verification key, and a second derived key according to the second quantum key, the first encryption key, the first verification key, the first derived key, the second encryption result, and the first decryption result to encrypt communication between the second network device and the first network device includes:
[0062] Generate a second encryption key according to the first encryption key, the second quantum key, the first session key, and the second session key;
[0063] Generate a second verification key according to the first verification key, the second quantum key, the first session key, and the second session key;
[0064] generating a second derived key according to the first derived key, the second quantum key, the first session key, and the second session key;
[0065] The communication between the second network device and the first network device is encrypted according to the second encryption key, the second verification key, and the second derived key.
[0066] In this way, a second encryption key is generated according to the first encryption key, the first quantum key, the first session key and the second session key. The second encryption key has good resistance to quantum computing attacks and is used to encrypt data in the communication process between the first network device and the second network device, thereby ensuring the security of the data during transmission. A second verification key is generated according to the first verification key, the first quantum key, the first session key and the second session key. The second verification key has good resistance to quantum computing attacks and is used to ensure the integrity and legitimacy of the data in the communication process between the first network device and the second network device. A second derived key is generated according to the first derived key, the first quantum key, the first session key and the second session key. The second derived key has good resistance to quantum computing attacks and is used to ensure other security purposes in the communication process between the first network device and the second network device, such as deriving a key with higher complexity. The communication between the first network device and the second network device is encrypted according to the second encryption key, the second verification key and the second derived key. In this way, the ability of the communication between network devices to resist quantum computing attacks is enhanced by using the key generated by combining the quantum key distribution technology and the post-quantum cryptography technology, thereby protecting the data transmitted during the communication process.
[0067] An embodiment of the present application provides a first network device, the first network device is used in a communication network based on an Internet Key Exchange Protocol, the communication network further includes a second network device, and the first network device is configured as follows:
[0068] Performing key negotiation with the second network device to generate an initial key, wherein the initial key includes a first encryption key, a first verification key, and a first derived key;
[0069] Acquire a first quantum key from a first network node connected to the first network device;
[0070] Performing post-quantum cryptographic encryption processing on the first quantum key, and sending a first encryption result of the post-quantum cryptographic encryption processing to the second network device;
[0071] Decrypting the received second encryption result sent by the second network device to obtain a second decryption result;
[0072] A second encryption key, a second verification key, and a second derived key are generated according to the first quantum key, the first encryption key, the first verification key, the first derived key, the first encryption result, and the second decryption result to encrypt communication between the first network device and the second network device.
[0073] In this way, during the communication process between the first network device and the second network device, the first network device and the second network device apply for a quantum key, and use a post-quantum cryptographic algorithm to encrypt the quantum key to generate a key that can resist quantum computing attacks. The post-quantum cryptographic algorithm is a series of encryption algorithms designed to resist quantum computing attacks. After generating a key that is resistant to quantum computing attacks, the first network device and the second network device share keys through communication, and use these keys, quantum keys and other keys in the communication between the first network device and the second network device. In this way, the anti-quantum capability of network communication between network devices is enhanced.
[0074] An embodiment of the present application provides a second network device, the second network device is used in a communication network based on an Internet Key Exchange Protocol, the communication network further includes a first network device, and the second network device is configured as follows:
[0075] Performing key negotiation with the first network device to generate an initial key, the initial key comprising a first encryption key, a first verification key, and a first derived key;
[0076] Receiving a first encryption result of post-quantum cryptographic encryption processing performed by the first network device 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;
[0077] Decrypting the first encryption result to obtain a first decryption result;
[0078] Encrypting the first decryption result to obtain a second encryption result;
[0079] A second encryption key, a second verification key and a second derived key are generated according to a second quantum key, the first encryption key, the first verification key, the first derived key, the second encryption result and the first decryption result to encrypt communication between the second network device and the first network device.
[0080] In this way, during the communication process between the first network device and the second network device, the first network device and the second network device apply for a quantum key, and use a post-quantum cryptographic algorithm to encrypt the quantum key to generate a key that can resist quantum computing attacks. The post-quantum cryptographic algorithm is a series of encryption algorithms designed to resist quantum computing attacks. After generating a key that is resistant to quantum computing attacks, the first network device and the second network device share keys through communication, and use these keys, quantum keys and other keys in the communication between the first network device and the second network device. In this way, the anti-quantum capability of network communication between network devices is enhanced.
[0081] An embodiment of the present application provides a communication system based on the Internet Key Exchange Protocol, wherein the communication system includes the first network device as described above, the second network device as described above, and a quantum key distribution network, wherein the quantum key distribution network is configured to distribute quantum keys to the first network device or the second network device.
[0082] In this way, during the communication process between the first network device and the second network device, the first network device and the second network device apply for a quantum key, and use a post-quantum cryptographic algorithm to encrypt the quantum key to generate a key that can resist quantum computing attacks. The post-quantum cryptographic algorithm is a series of encryption algorithms designed to resist quantum computing attacks. After generating a key that is resistant to quantum computing attacks, the first network device and the second network device share keys through communication, and use these keys, quantum keys and other keys in the communication between the first network device and the second network device. In this way, the anti-quantum capability of network communication between network devices is enhanced.
[0083] 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 method described in any one of the above embodiments is implemented.
[0084] In this way, during the communication process between the first network device and the second network device, the first network device and the second network device apply for a quantum key, and use a post-quantum cryptographic algorithm to encrypt the quantum key to generate a key that can resist quantum computing attacks. The post-quantum cryptographic algorithm is a series of encryption algorithms designed to resist quantum computing attacks. After generating a key that is resistant to quantum computing attacks, the first network device and the second network device share keys through communication, and use these keys, quantum keys and other keys in the communication between the first network device and the second network device. In this way, the anti-quantum capability of network communication between network devices is enhanced.
[0085] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any one of the above embodiments is implemented.
[0086] In this way, during the communication process between the first network device and the second network device, the first network device and the second network device apply for a quantum key, and use a post-quantum cryptographic algorithm to encrypt the quantum key to generate a key that can resist quantum computing attacks. The post-quantum cryptographic algorithm is a series of encryption algorithms designed to resist quantum computing attacks. After generating a key that is resistant to quantum computing attacks, the first network device and the second network device share keys through communication, and use these keys, quantum keys and other keys in the communication between the first network device and the second network device. In this way, the anti-quantum capability of network communication between network devices is enhanced.
[0087] Additional aspects and advantages of the present application will be partially given in the following description, and will become obvious from the following description, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0088] 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:
[0089] Figure 1 It is one of the flow charts of the method of the implementation mode of the present application;
[0090] Figure 2 It is an architectural diagram of a method for implementing the present application;
[0091] Figure 3 is a signaling diagram of a method according to an embodiment of the present application;
[0092] Figure 4 This is the second flow chart of the method of the implementation mode of the present application;
[0093] Figure 5This is the third flow chart of the method of the implementation mode of the present application;
[0094] Figure 6 This is the fourth flow chart of the method of the implementation mode of the present application;
[0095] Figure 7 This is the fifth flow chart of the method of the implementation mode of the present application;
[0096] Figure 8 This is the sixth flow chart of the method of the implementation mode of the present application;
[0097] Fig. 9 This is the seventh flow chart of the method of the implementation mode of the present application;
[0098] Fig.10 This is the eighth flow chart of the method of the implementation mode of the present application;
[0099] Fig.11 This is the ninth flow chart of the method of the implementation mode of the present application;
[0100] Fig.12 This is the tenth flowchart of the method of the implementation mode of the present application;
[0101] Fig.13 This is the eleventh flow chart of the method of the implementation mode of the present application;
[0102] Fig.14 This is the twelfth flow chart of the method of the implementation mode of the present application;
[0103] Fig.15 This is the thirteenth flow chart of the method of the implementation mode of the present application. DETAILED DESCRIPTION
[0104] The embodiments of the present application are described in detail below, and the embodiments of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.
[0105] 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.
[0106] At present, the international technologies for dealing with the threat of quantum computing are mainly divided into two categories: "classical anti-quantum - post-quantum cryptographic algorithms" and "quantum anti-quantum - quantum cryptographic technology". Post-quantum cryptography (PQC) is designed based on mathematical problems that known quantum algorithms cannot solve in polynomial time, and its security depends on computational complexity. However, from a development perspective, the mathematical problems that post-quantum cryptography relies on still have questions such as whether they will remain difficult to solve in the future, whether the algorithm security is effective in the long term, and whether they are still immune to emerging quantum attacks. These all indicate that PQC has certain vulnerabilities and uncertainties. Quantum key distribution technology (QKD) achieves the goals of classical cryptography based on the quantum physics realization principle that a single quantum is indivisible and a quantum state cannot be cloned. This technology refers to the method and process of information-theoretic secure key generation and distribution by the communicating parties through the method of transmitting quantum states, but the application cost of quantum key distribution technology is relatively high. Both technologies have the ability to resist quantum computing attacks, but both have their limitations. Therefore, providing cryptographic technologies that are relatively low-cost and highly secure and can resist quantum computing attacks has become an urgent problem to be solved.
[0107] Based on the above possible situations, please refer to Figure 1 The embodiment of the present application provides a method for enhancing the anti-quantum security of an Internet key exchange 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:
[0108] 011: Perform key negotiation with the second network device to generate an initial key, where the initial key includes a first encryption key, a first verification key, and a first derived key;
[0109] 012: Obtain a first quantum key from a first network node connected to a first network device;
[0110] 013: Perform post-quantum cryptographic encryption processing on the first quantum key, and send a first encryption result of the post-quantum cryptographic encryption processing to the second network device;
[0111] 014: decrypting the second encryption result received and sent by the second network device to obtain a second decryption result;
[0112] 015: Generate a second encryption key, a second verification key, a first derived key, a first encryption result, and a second decryption result according to the first quantum key, the first encryption key, the first verification key, the first derived key, to encrypt communication between the first network device and the second network device.
[0113] The present application also provides a network device, including a memory and a processor. The method of the present application can be implemented by the network device of the present application. Specifically, a computer program is stored in the memory, and the processor is used to negotiate a key with the second network device to generate an initial key, the initial key includes a first encryption key, a first verification key and a first derived key, and obtain a first quantum key from a first network node connected to the first network device, and perform post-quantum cryptographic encryption on the first quantum key, and send the first encryption result of the post-quantum cryptographic encryption to the second network device, and decrypt the second encryption result received by the second network device to obtain a second decryption result. The processor is also used to generate a second encryption key, a second verification key and a second derived key according to the first quantum key, the first encryption key, the first verification key, the first derived key, the first encryption result and the second decryption result to encrypt the communication between the first network device and the second network device.
[0114] 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 a negotiation module, an acquisition module, an encryption module, a decryption module and a derivation module. The negotiation module is used to negotiate a key with the second network device to generate an initial key, and the initial key includes a first encryption key, a first verification key and a first derived key. 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 of the post-quantum cryptographic encryption processing to the second network device. The decryption module is used to decrypt the second encryption result received by the second network device to obtain a second decryption result. The derivation module is used to generate a second encryption key, a second verification key and a second derived key according to the first quantum key, the first encryption key, the first verification key, the first derived key, the first encryption result and the second decryption result, so as to encrypt the communication between the first network device and the second network device.
[0115] The present application provides a communication system based on the Internet Key Exchange 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.
[0116] See also Figure 2 In some embodiments, the first network device communicates with the second network device through an IPSec encrypted channel, such as IKE key exchange. The IPSec encrypted channel refers to the use of the IPsec (Internet Protocol Security) protocol to protect the transmission of IP data packets. 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.
[0117] 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 description of operations related to the PQC algorithm refers to the above FIPS standards. Of course, in other implementation methods, other algorithms such as NewHope algorithm, Sidh algorithm, HQC algorithm, etc. can also be used as PQC related algorithms.
[0118] Specifically, in the implementation mode of the present application, first, the first network device and the second network device perform key negotiation to generate an initial key, and the initial key includes a first encryption key, a first verification key, and a first derived key. Among them, the first encryption key and the first verification key are used to protect data during the communication process, and the first derived key can be used for other security purposes, such as deriving a key with higher security.
[0119] Next, the first network device obtains the first quantum key from the first network node connected to the first network device. The first quantum key is used to generate a more secure key to counter quantum computing attacks. The first network device then performs post-quantum cryptographic encryption on the first quantum key and sends the first encryption result of the 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 communication between the first network device and the second network device in the communication network ensures data consistency.
[0120] 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.
[0121] 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 in the communication network.
[0122] Finally, the first network device generates a second encryption key, a second verification key, a second derived key, the first encryption result, and the second decryption result according to the first quantum key, the first encryption key, the first verification key, the first derived key, to encrypt the communication between the first network device and the second network device. In this way, the post-quantum cryptography technology and the quantum key distribution technology are combined to enhance the key's ability to resist quantum computing attacks.
[0123] In the above method, during the communication process between the first network device and the second network device, the first network device and the second network device apply for a quantum key, and use a post-quantum cryptographic algorithm to encrypt the quantum key to generate a key that can resist quantum computing attacks. The post-quantum cryptographic algorithm is a series of encryption algorithms designed to resist quantum computing attacks. After generating a key that is resistant to quantum computing attacks, the first network device and the second network device share keys through communication, and use these keys, quantum keys and other keys in the communication between the first network device and the second network device. In this way, the anti-quantum capability of network communication between network devices is enhanced.
[0124] In some implementations, it should be noted that in the implementation of the present application, the initiator IPSec VPN gateway refers to the first network device, and the responder IPSec VPN gateway refers to the second network device. Figure 3, wherein the initiator IPSec VPN gateway (hereinafter referred to as the initiator gateway) and the responder IPSec VPN gateway (hereinafter referred to as the responder gateway) perform key negotiation in the IKE security association initialization phase (IKE_SA_INIT phase) according to the IKEv2 (Internet Key Exchange Version 2) protocol. In this process, the first encryption key SK_e for encrypting data, the first derived key SK_d for deriving other keys, and the first verification key SK_a for authentication integrity protection are finally obtained. The initiator gateway and the responder gateway both store the above three keys. The IPSec VPN gateway is a network security device that obtains the session key through the IKEv2 key exchange protocol and uses the session key to establish an IPSec encryption channel to encrypt and decrypt the business data transmitted through the network.
[0125] After completing the IKE security association initialization phase, the IKE authentication phase (IKE_AUTH phase) of the IKEv2 protocol is completed immediately. Then the initiator gateway obtains the first quantum key QK_UUID from the first quantum network node, which is the quantum network node closest to the initiator gateway and authorized. The quantum network node is the network node. A series of post-quantum cryptographic encryption processes are performed on the first quantum key QK_UUID distributed to the initiator gateway to obtain the first encryption result with signature information, key encapsulation information and other related information, and the first encryption result is sent to the responder gateway.
[0126] After the responder gateway completes the corresponding operation, it receives the second encryption result sent back by the responder gateway, and performs corresponding decryption processing on the result to obtain the second decryption result. The initiator gateway generates a second encryption key, a second shared key, and a second verification key with the ability to resist quantum computing attacks based on the first quantum key QK_UUID, the first encryption result, the second encryption result, the first encryption key SK_e generated after key negotiation, the first derived key SK_d generated after key negotiation, and the first verification key SK_a generated after key negotiation. These keys with the ability to resist quantum computing attacks will be used in subsequent communication processes. In the subsequent description of this article, the above names will continue to be used, including but not limited to the initiator gateway, the responder gateway, the first quantum key QK_UUID, the quantum network node, etc.
[0127] In summary, in the quantum security enhancement method of the Internet Key Exchange Protocol of the communication network of the implementation mode of the present application, the network device and the network communication encryption device, during the communication process between the first network device and the second network device, the first network device and the second network device apply for a quantum key, and use a post-quantum cryptographic algorithm to encrypt the quantum key to generate a key that can resist quantum computing attacks. The post-quantum cryptographic algorithm is a series of encryption algorithms designed to resist quantum computing attacks. After generating a key with the ability to resist quantum computing attacks, the first network device and the second network device share keys through communication, and integrate these keys, quantum keys and other keys for use in the communication between the first network device and the second network device. In this way, the quantum resistance of network communications between network devices is enhanced.
[0128] See also Figure 4 In some embodiments, the method further comprises:
[0129] 016: Access the first network node through a pre-established channel;
[0130] 017: Load the security certificate of the first network device or the security certificate of the second network device.
[0131] 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.
[0132] In some embodiments, the processor is 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.
[0133] Specifically, before the first network device negotiates a key with the second network node, it accesses the first network node through a pre-established channel. The pre-established channel can protect data during data transmission and reduce the risk of unauthorized access. 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.
[0134] In some embodiments, please refer to Figure 3Before the initiator gateway and the responder gateway conduct key negotiation, the initiator gateway accesses the 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 responder gateway are inside 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 key pair of each other's post-quantum cryptography algorithm, 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.
[0135] In this way, the first network device accesses the quantum network node through a trusted channel and loads the security certificate by offline import, both of which ensure the confidentiality of the data of the first network device and reduce the risk of data leakage.
[0136] See also Figure 5 In some embodiments, step 012 (obtaining a first quantum key from a first network node connected to a first network device) includes:
[0137] 0121: Sending a first quantum key application to a first network node connected to a first network device;
[0138] 0122: receiving a first quantum key distributed by the first network node according to the first quantum key application;
[0139] 0123: Label the first quantum key according to the identification code of the first network device to obtain a quantum key identifier.
[0140] In some embodiments, the application module is used to send a first quantum key application to a first network node connected to a first network device, the receiving module is used to receive a first quantum key distributed by the first network node based on the first quantum key application, and the labeling module is used to label the first quantum key based on an identification code of the first network device to obtain a quantum key identifier.
[0141] In some embodiments, the processor is also used to send a first quantum key application to a first network node connected to the first network device, receive a first quantum key distributed by the first network node according to the first quantum key application, and mark the first quantum key according to an identification code of the first network device to obtain a quantum key identifier.
[0142] Specifically, the first network device sends a first quantum key application to a first network node connected to the first network device. Then, the first network device receives the first quantum key distributed by the first network node according to the first quantum key application. Then, the first network device labels the first quantum key according to the identification code of the first network device to obtain a quantum key identifier. In this way, a quantum key identifier with the identification code of the first network device is obtained, which is helpful for using and managing quantum keys.
[0143] In some embodiments, please refer to Figure 3 , the initiator gateway applies for a quantum key from the first quantum network node, which is the quantum network node closest to the initiator gateway and authorized. When the first quantum network node generates and distributes the first quantum key QK_UUID (more than 128 bits) through the quantum key distribution network, the second quantum network node closest to the responder gateway and authorized synchronously generates a matching second quantum key QK_UUID, but the quantum key will not be distributed to the responder gateway immediately. The first quantum key QK_UUID needs to be more than 128 bits because the commonly used symmetric encryption algorithms SM4, AES, etc. use a key of 128 bits. The initiator gateway receives the first quantum key QK_UUID distributed to the initiator gateway by the first quantum network node, and then annotates the first quantum key QK_UUID with the initiator's own unique universal identification code to obtain a quantum key identifier, which can be used to identify and track quantum keys, facilitating the management and use of quantum keys in subsequent communication processes.
[0144] In this way, through this process, the first network device is able to securely receive and process the quantum key, providing a basis for establishing a secure communication channel.
[0145] See also Figure 6 In some embodiments, step 013 (performing post-quantum cryptographic encryption processing on the first quantum key, and sending the first encryption result of the post-quantum cryptographic encryption processing to the second network device) includes:
[0146] 0131: performing post-quantum cryptographic encryption processing on the quantum key identifier to obtain a first encryption result;
[0147] 0132: Encrypt the first encryption result according to the first encryption key and the first verification key, and send the encrypted first encryption result to the second network device.
[0148] In some embodiments, the encryption module is further used to perform post-quantum cryptographic encryption on the quantum key identifier to obtain a first encryption result, and the sending module is used to encrypt the first encryption result according to the first encryption key and the first verification key, and send the encrypted first encryption result to the second network device.
[0149] In some embodiments, the processor is further used to perform post-quantum cryptographic encryption processing on the quantum key identifier to obtain a first encryption result, and to encrypt the first encryption result according to the first encryption key and the first verification key, and to send the encrypted first encryption result to the second network device.
[0150] Specifically, after obtaining the quantum key identifier, the first network device performs post-quantum cryptographic encryption processing on the quantum key identifier to obtain a first encryption result. Then, the first network device uses the first encryption key and the first verification key to encrypt the first encryption result and sends it to the second network device. In this way, the security of the encrypted first encryption result during the transmission process to the second network device is guaranteed. By using the post-quantum cryptographic algorithm to encrypt the quantum key identifier, the quantum key distribution technology and the post-quantum cryptography technology are combined to increase the complexity of the quantum key identifier.
[0151] In some embodiments, please refer again to Figure 3 The initiator gateway uses the post-quantum cryptographic algorithm to encrypt the quantum key identifier to obtain the first encryption result. In this way, the confidentiality of the quantum key identifier is protected, ensuring that the quantum key identifier cannot be cracked by an unauthorized third party even if it is intercepted during transmission. Based on IKEv2, the AUTH_PQC and KE_PQC messages are extended. AUTH_PQC includes PQC signature information, and KE_PQC includes PQC key encapsulation information. The first encryption result is sent to the responder gateway under the encryption and integrity protection of the first encryption key SK_e and the first verification key SK_a. The message structure is as follows:
[0152] HDR,SK {IDi, [CERT_PQC,] [IDr,]AUTH_PQC, KE_PQC}
[0153] HDR is the IKEv2 protocol header, and SK{} indicates encryption and integrity protection of data content. When a PQC certificate is available, CERT_PQC indicates a PQC encryption certificate and a PQC signature certificate. When a certificate is not available, the initiator gateway and the responder gateway import each other's encryption public key and signature public key in an offline manner. In this way, by superimposing the key encapsulation and authentication process using post-quantum cryptographic algorithms and quantum key distribution technology on the original key exchange and authentication message methods of IKEv2, the quantum resistance of the protocol is improved, ensuring the security and reliability of the first encryption result during transmission.
[0154] In this way, the first network device ensures the security and integrity of the quantum key identifier and establishes a secure foundation for subsequent communications.
[0155] See also Figure 7 In some embodiments, step 0131 (performing post-quantum cryptographic encryption processing on the quantum key identifier to obtain a first encryption result) includes:
[0156] 01311: Processing the quantum key identifier and the randomly generated first random connection to obtain a first session message;
[0157] 01312: performing post-quantum cryptographic derivation processing on the first session message to generate a first session key in a first encryption result;
[0158] 01313: performing post-quantum cryptographic encryption processing on the first session message to generate a first encrypted message in a first encryption result;
[0159] 01314: Perform post-quantum cryptographic signature processing on the quantum key identifier to generate a first signature message in the first encryption result.
[0160] 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 session message, the derivation module is also used to perform post-quantum cryptographic derivation processing on the first session message to generate a first session key in a first encryption result, the encryption module is also used to perform post-quantum cryptographic encryption processing on the first session message to generate a first encrypted message in the first encryption result, and the signature module is used to perform post-quantum cryptographic signature processing on the quantum key identifier to generate a first signature message in the first encryption result.
[0161] In some embodiments, the processor is further configured to concatenate the quantum key identifier and a randomly generated first random number to obtain a first session message, perform post-quantum cryptographic derivation processing on the first session message to generate a first session key in a first encryption result, perform post-quantum cryptographic encryption processing on the first session message to generate a first encrypted message in the first encryption result, and perform post-quantum cryptographic signature processing on the quantum key identifier to generate a first signature message in the first encryption result.
[0162] Specifically, the first network device concatenates the quantum key identifier with the randomly generated first random number to obtain the first session message, and then performs post-quantum cryptographic derivation processing on the first session message to generate the first session key in the first encryption result. Next, the first network device performs post-quantum cryptographic encryption processing on the first session message to generate the first encrypted message in the first encryption result, and performs post-quantum cryptographic signature processing on the quantum key identifier to generate the first signature message in the first encryption result. In this way, by using post-quantum cryptography technology to perform various processing on the first session message, such as encryption processing, signature processing, and derivation processing, the quantum key distribution technology and post-quantum cryptography technology are combined to increase the complexity of the first session message and ensure the security of the first session message.
[0163] In some embodiments, please refer to Figure 3 , the initiator gateway randomly generates a 128-bit random number r1 and directly concatenates it with the quantum key identifier UUID_QK to obtain the first session message m1. By concatenating it with the random number r1, the randomness and unpredictability of the quantum key identifier UUID_QK are increased. Then, the initiator gateway uses the first session 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 K (K1). The first session key generated in this way has good resistance to quantum computing attacks. The initiator gateway then performs PQC encryption and encapsulation on m1 to obtain the first encrypted message m2, which ensures the confidentiality of the data during transmission. Then, the initiator gateway uses the PQC digital signature algorithm to use UUID_QK as M in the PQC signature algorithm for PQC signature protection to obtain the first signed message M1, ensuring the integrity of the message and the authenticity of the source, and any unauthorized access and tampering will be detected. In this way, the post-quantum cryptographic algorithm and quantum key distribution technology are used to improve the original IKEv2 based on the classical KPI algorithm, enhancing the ability of the original IKEv2 protocol to resist quantum computing attacks.
[0164] In this way, through this process, the first network device ensures the security, integrity and authenticity of the source of data transmission, and establishes a secure foundation for subsequent communications.
[0165] See also Figure 8In some implementations, step 014 (decrypting the second encryption result received and sent by the second network device to obtain a second decryption result) includes:
[0166] 0141: 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;
[0167] 0142: Decrypt the second encryption result to obtain a second decryption result, where the second decryption result includes the quantum key identifier, the second session message, and the second signature message.
[0168] In some embodiments, the receiving module is used to receive a second encryption result sent by a 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 also used to decrypt the second encryption result to obtain a second decryption result, and the second decryption result includes a quantum key identifier, a second session message, and a second signature message.
[0169] In some embodiments, the processor is also used to receive a second encryption result sent by a second network device, the second encryption result is obtained by the second network device encrypting the first decryption result, the first decryption result is obtained by the second network device decrypting the first encryption result, and the second encryption result is decrypted to obtain a second decryption result, the second decryption result includes a quantum key identifier, a second session message and a second signature message.
[0170] Specifically, the first network device receives the second encryption result sent by the second network device, and then decrypts the second encryption result to obtain a second decryption result, which includes the quantum key identifier, the second session message, and the 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.
[0171] In some embodiments, please refer to Figure 3 The initiator gateway receives the second encryption result sent by the responder gateway, the second encryption result is obtained by the responder gateway encrypting the first decryption result, and the first decryption result is obtained by the responder gateway decrypting the first encryption result. Then, the initiator gateway decrypts the second encryption result to obtain a second decryption result, the second decryption result includes the quantum key identifier UUID_QK, the second session message m3 and the second signature message M2.
[0172] In this way, through this process, the first network device and the second network device achieve secure data exchange and communication, ensuring the confidentiality, integrity and authenticity of the source of the data.
[0173] See also Fig. 9 In some embodiments, the method further comprises:
[0174] 018: Obtain a second session key according to the second session message and the quantum key identifier.
[0175] In some embodiments, the computing module is used to obtain a second session key according to the second session message and the quantum key identifier.
[0176] In some embodiments, the processor is further configured to obtain a second session key based on the second session message and the quantum key identifier.
[0177] Specifically, the first network device obtains a second session key according to the second session message and the quantum key identifier. The second session key has the ability to resist quantum computing attacks by combining quantum key distribution technology and post-quantum cryptography technology.
[0178] In some embodiments, please refer to Figure 3 The initiator gateway calculates (calculated by the parameters and algorithm carried in the second decryption result) the second session key K2 according to the second session message and the quantum key identifier UUID_QK in the second decryption result. The key has good resistance to quantum computing attacks.
[0179] Thus, through this process, the first network device and the second network device can generate and exchange a second session key. This key exchange and generation process ensures the security and reliability of communication and provides a basis for establishing and maintaining a secure communication channel.
[0180] See also Fig.10 In some embodiments, the method further comprises:
[0181] 019: Perform post-quantum cryptographic signature verification on the quantum key identifier according to the second signature message.
[0182] In some embodiments, the verification module is used to perform post-quantum cryptographic signature verification on the quantum key identifier according to the second signature message.
[0183] In some embodiments, the processor is further configured to perform post-quantum cryptographic signature verification on the quantum key identifier according to the second signature message.
[0184] Specifically, the first network device performs post-quantum cryptographic signature verification on the quantum key identifier according to the second signature message, thereby confirming the integrity and legitimacy of the received data and ensuring that the correct quantum key identifier is received.
[0185] In some embodiments, please refer to Figure 3 The initiator gateway performs post-quantum cryptographic signature verification on the quantum key identifier according to the second signature message. By calculating the signature and verifying whether the signature is valid, it is confirmed whether the data has been tampered with during the transmission process, ensuring the integrity of the second session message and the authenticity of the source.
[0186] In this way, through this process, the first network device can verify the source and integrity of the received message, ensuring the security and reliability of communication.
[0187] See also Fig.11 In some embodiments, step 015 (generating a second encryption key, a second verification key, and a second derivative key according to the first quantum key, the first encryption key, the first verification key, the first derived key, the first encryption result, and the first decryption result to encrypt communication between the second network device and the first network device) includes:
[0188] 0151: Generate a second encryption key according to the first encryption key, the first quantum key, the first session key and the second session key;
[0189] 0152: Generate a second verification key according to the first verification key, the first quantum key, the first session key and the second session key;
[0190] 0153: Generate a second derived key according to the first derived key, the first quantum key, the first session key and the second session key;
[0191] 0154: Encrypt the communication between the first network device and the second network device according to the second encryption key, the second verification key, and the second derived key.
[0192] In some embodiments, the derivation module is further used to generate a second encryption key based on the first encryption key, the first quantum key, the first session key, and the second session key. The derivation module is further used to generate a second verification key based on the first verification key, the first quantum key, the first session key, and the second session key. The derivation module is further used to generate a second derived key based on the first derived key, the first quantum key, the first session key, and the second session key. The communication module is used to encrypt the communication between the first network device and the second network device based on the second encryption key, the second verification key, and the second derived key.
[0193] In some embodiments, the processor is further configured to generate a second encryption key based on the first encryption key, the first quantum key, the first session key, and the second session key, generate a second verification key based on the first verification key, the first quantum key, the first session key, and the second session key, and generate a second derived key based on the first derived key, the first quantum key, the first session key, and the second session key. The processor is further configured to encrypt communications between the first network device and the second network device based on the second encryption key, the second verification key, and the second derived key.
[0194] Specifically, the first network device generates a second encryption key according to the first encryption key, the first quantum key, the first session key and the second session key. The second encryption key has good resistance to quantum computing attacks and is used to encrypt data in the communication process between the first network device and the second network device, ensuring the security of the data during transmission. Then, the first network device generates a second verification key according to the first verification key, the first quantum key, the first session key and the second session key. The second verification key has good resistance to quantum computing attacks and is used to ensure the integrity and legitimacy of the data in the communication process between the first network device and the second network device. Then, the first network device generates a second derived key according to the first derived key, the first quantum key, the first session key and the second session key. The second derived key has good resistance to quantum computing attacks and is used to ensure other security uses in the communication process between the first network device and the second network device, such as deriving a key with higher complexity. Finally, the first network device encrypts the communication between the first network device and the second network device according to the second encryption key, the second verification key and the second derived key, so that the ability of the communication between network devices to resist quantum computing attacks is enhanced by using the key generated by combining quantum key distribution technology and post-quantum cryptography technology, and the data transmitted during the communication process is protected.
[0195] In some embodiments, please refer to Figure 3The initiator gateway generates a second encryption key by XORing the first encryption key SK_e, the first quantum key QK_UUID, the first session key K1, and the second session key K2. The second encryption key is used to encrypt data during the communication process. The second verification key is generated by XORing the first verification key SK_a, the first quantum key QK_UUID, the first session key K1, and the second session key K2. The second verification key is used to ensure the integrity of the data. The second derived key is generated by XORing the first derived key, the first quantum key QK_UUID, the first session key, and the second session key. The second derived key can be used for other security purposes, such as encrypting log data, backup data, etc. These keys combine quantum keys and post-quantum cryptography technology and have excellent resistance to quantum computing attacks. The initiator gateway uses the second encryption key, the second verification key, and the second derived key to perform the subsequent CREATE_CHILD_SA phase and rekeying, including confidentiality and integrity protection of messages and key derivation. The CREATE_CHILD_SA phase defines the encryption and authentication parameters of the actual data flow between the two network devices, while rekeying is an important security mechanism in IPsec VPN, which is used to update and renegotiate existing security associations.
[0196] In this way, the first network device generates keys for protecting subsequent communication data transmission between communication networks. These keys combine quantum keys and post-quantum cryptography technology to ensure the security and reliability of communication. This allows the communication between communication networks to have good resistance to quantum computing attacks, and ensures the security of data transmission even when quantum computers may threaten existing encryption algorithms.
[0197] See also Fig.12 The embodiment of the present application provides a method for enhancing the anti-quantum security of an Internet key exchange 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:
[0198] 021: Perform key negotiation with the first network device to generate an initial key, where the initial key includes a first encryption key, a first verification key, and a first derived key;
[0199] 022: receiving a first encryption result of post-quantum cryptographic encryption processing performed by the first network device 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;
[0200] 023: decrypt the first encryption result to obtain a first decryption result;
[0201] 024: Encrypt the first decryption result to obtain a second encryption result;
[0202] 025: Generate a second encryption key, a second verification key and a second derived key according to the second quantum key, the first encryption key, the first verification key, the first derived key, the second encryption result and the first decryption result to encrypt the communication between the second network device and the first network device.
[0203] 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 negotiate a key with the first network device to generate an initial key, the initial key includes a first encryption key, a first verification key and a first derived key, and receive a first encryption result of the first network device performing post-quantum cryptographic encryption processing on the first quantum key, the first quantum key is obtained by the first network device from the first network node accessed, and the first encryption result is decrypted to obtain a first decryption result and the first decryption result is encrypted to obtain a second encryption result. The processor is also used to generate a second encryption key, a second verification key and a second derived key according to the second quantum key, the first encryption key, the first verification key, the first derived key, the second encryption result and the first decryption result to encrypt the communication between the second network device and the first network device.
[0204] 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 negotiation module, a receiving module, a decryption module, an encryption module and a derivation module. The negotiation module is used to negotiate a key with the first network device to generate an initial key, and the initial key includes a first encryption key, a first verification key and a first derived key. The receiving module is used to receive the first encryption result of the first network device performing post-quantum cryptographic encryption on the first quantum key, and the first quantum key is obtained by the first network device from the first network node accessed. The decryption module is used to decrypt the first encryption result to obtain a first decryption result. The encryption module is used to encrypt the first decryption result to obtain a second encryption result. The derivation module is used to generate a second encryption key, a second verification key and a second derived key according to the second quantum key, the first encryption key, the first verification key, the first derived key, the second encryption result and the first decryption result, so as to encrypt the communication between the second network device and the first network device.
[0205] Specifically, in the implementation manner of the present application, first, the second network device and the first network device perform key negotiation to generate an initial key, the initial key includes a first encryption key, a first verification key and a first derived key, the first encryption key and the first verification key are used to protect data during the communication process, and the derived key can be used for other security purposes, such as deriving a key with higher security. Next, the first network device applies for a quantum key, performs a series of operations on the quantum key to obtain a first encryption result, and sends the first encryption result to the second network device. 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, and the first quantum key is obtained by the first network device from the intervening first network node. The second network device then decrypts the first encryption result to obtain a first decryption result. Thereafter, the second network device encrypts the first decryption result to obtain a second encryption result.
[0206] Finally, the second network device generates a second encryption key, a second verification key and a second derived key based on the second quantum key, the first encryption key, the first verification key, the first derived key, the second encryption result and the first decryption result to encrypt the communication between the second network device and the first network device, combining post-quantum cryptography technology and quantum key distribution technology to enhance the key's ability to resist quantum computing attacks.
[0207] Through the above method, during the communication process between the second network device and the first network device, the second network device and the first network device apply for a quantum key, and use a post-quantum cryptographic algorithm to encrypt the quantum key to generate a key that can resist quantum computing attacks. The post-quantum cryptographic algorithm is a series of encryption algorithms designed to resist quantum computing attacks. After generating a key that is resistant to quantum computing attacks, the first network device and the second network device share the key through communication, and use these keys, quantum keys and other keys in the communication between the first network device and the second network device. In this way, the anti-quantum capability of network communication between network devices is enhanced.
[0208] In some embodiments, please refer to Figure 3, the responder IPSec VPN gateway, i.e., the second network device (hereinafter referred to as the responder gateway) and the initiator IPSec VPN gateway, i.e., the first network device (hereinafter referred to as the initiator gateway) perform key negotiation in the IKE security association initialization phase (IKE_SA_INIT phase) according to the IKEv2 (Internet Key Exchange Version 2) protocol, and finally obtain the first encryption key SK_e for encrypting data, the first derived key SK_d for deriving other keys, and the first verification key SK_a for authentication integrity protection. Both the responder gateway and the initiator gateway store the above three keys. The IPSec VPN gateway is a network security device that obtains the session key through the IKEv2 key exchange protocol and uses the session key to establish an IPSec encryption channel to encrypt and decrypt business data transmitted through the network.
[0209] After completing the IKE security association initialization phase, the IKE authentication phase (IKE_AUTH phase) of the IKEv2 protocol is completed immediately. Next, the initiator gateway applies for the first quantum key QK_UUID, performs a series of operations on the first quantum key QK_UUID to obtain the first encryption result, and sends the first encryption result to the responder gateway. Then, the responder gateway receives the first encryption result of the initiator gateway performing post-quantum cryptographic algorithm encryption on the first quantum key QK_UUID, and the first quantum key QK_UUID is obtained by the initiator gateway from the first quantum network node connected. The responder gateway then decrypts the first encryption result to obtain the first decryption result, so that the responder gateway obtains the relevant data of the initiator gateway. The responder gateway then encrypts the first decryption result to obtain the second encryption result. This process increases the complexity of the responder gateway data.
[0210] Finally, the responder gateway generates a second encryption key, a second verification key, and a second derived key based on the second quantum key, the first encryption key SK_e, the first verification key SK_a, the first derived key SK_d, the second encryption result, and the first decryption result obtained from the second quantum network node. These keys with the ability to resist quantum computing attacks will be used in subsequent communication processes.
[0211] In summary, in the quantum security enhancement method of the Internet Key Exchange Protocol of the communication network of the implementation mode of the present application, the network device and the network communication encryption device, during the communication process between the first network device and the second network device, the first network device and the second network device apply for a quantum key, and use a post-quantum cryptographic algorithm to encrypt the quantum key to generate a key that can resist quantum computing attacks. The post-quantum cryptographic algorithm is a series of encryption algorithms designed to resist quantum computing attacks. After generating a key with the ability to resist quantum computing attacks, the first network device and the second network device share keys through communication, and integrate these keys, quantum keys and other keys for use in the communication between the first network device and the second network device. In this way, the quantum resistance of network communications between network devices is enhanced.
[0212] See also Fig.13 In some embodiments, the first decryption result includes a first signed message, and the method further includes:
[0213] 026: Perform post-quantum cryptographic signature verification on the quantum key identifier according to the first signature message;
[0214] 027: When the signature verification result is correct, obtain the second quantum key from the second network node connected to the second network device.
[0215] In some embodiments, the signature verification module is used to perform post-quantum cryptographic signature verification on the quantum key identifier according to the first signature message, and the acquisition module is used to obtain the second quantum key from the second network node connected to the second network device when the signature verification result is correct.
[0216] In some embodiments, the processor is further configured to perform post-quantum cryptographic signature verification on the quantum key identifier according to the first signature message, and to obtain a second quantum key from a second network node connected to the second network device when the signature verification result is correct.
[0217] Specifically, the second network device performs post-quantum cryptographic signature verification on the quantum key identifier according to the first signature message, thereby ensuring that the correct quantum key identifier is obtained and that the integrity of the data and the legitimacy of the source are guaranteed. If the signature verification result is correct, the second network device obtains the second quantum key from the second network node connected to the second network device, thereby ensuring that the obtained second quantum key matches the first quantum key of the first network device, and the quantum key is used to generate a more secure key.
[0218] In some embodiments, please refer to Figure 3, the responder gateway decrypts the first encryption result to obtain a first decryption result, the first decryption result includes a first signature message M1, and performs post-quantum cryptographic signature verification on the quantum key identifier UUID_QK according to the first signature message M1, and determines that the received quantum key identifier UUID_QK is sent from the initiator and has not been accessed and modified by an unauthorized third party during the transmission process. After confirming that the received quantum key identifier is correct, the second quantum key identifier is used to apply to the second quantum network node connected to the responder gateway to obtain a second quantum key, and the second quantum key is generated and stored in the second quantum network node at the same time as the first quantum key QK_UUID obtained by the initiator gateway.
[0219] In this way, through this process, the second network device can verify the integrity and authenticity of the quantum key identifier and ensure that it has a quantum key that matches the first network device, thereby providing security for subsequent communications.
[0220] See also Fig.14 In some embodiments, the first decryption result includes a quantum key identifier, and step 024 (encrypting the first decryption result to obtain a second encryption result) includes:
[0221] 0241: concatenate the quantum key identifier and the randomly generated second random number to obtain a second session message;
[0222] 0242: performing post-quantum cryptographic derivation processing on the second session message to generate a second session key in a second encryption result;
[0223] 0243: Perform post-quantum cryptography encryption processing on the second session message to generate a second encrypted message in a second encryption result;
[0224] 0244: performing post-quantum cryptographic signature processing on the quantum key identifier to generate a second signature message in a second encryption result;
[0225] 0245: Encrypt the second encryption result according to the first encryption key and the first verification key.
[0226] In some embodiments, the splicing module is used to splice the quantum key identifier and the randomly generated second random number to obtain a second session message. The derivation module is also used to perform post-quantum cryptographic derivation processing on the second session message to generate a second session key in the second encryption result. The encryption module is also used to perform post-quantum cryptographic encryption processing on the second session message to generate a second encrypted message in the second encryption result. The signature module is used to perform post-quantum cryptographic signature processing on the quantum key identifier to generate a second signature message in the second encryption result. The encryption module is also used to encrypt the second encryption result according to the first encryption key and the first verification key.
[0227] In some embodiments, the processor is further configured to perform concatenation processing on the quantum key identifier and the randomly generated second random number to obtain a second session message, perform post-quantum cryptographic derivation processing on the second session message to generate a second session key in a second encryption result, perform post-quantum cryptographic encryption processing on the second session message to generate a second encrypted message in the second encryption result, and perform post-quantum cryptographic signature processing on the quantum key identifier to generate a second signature message in the second encryption result. The processor is further configured to perform encryption processing on the second encryption result according to the first encryption key and the first verification key.
[0228] Specifically, the second network device performs concatenation processing on the quantum key identifier and the randomly generated second random number to obtain the second session message, and then performs post-quantum cryptographic derivation processing on the second session message to generate the second session key in the second encryption result. The second network device then performs post-quantum cryptographic encryption processing on the second session message to generate the second encrypted message in the second encryption result, and performs post-quantum cryptographic signature processing on the quantum key identifier to generate the second signature message in the second encryption result. The second network device performs encryption processing on the second encryption result according to the first encryption key and the first verification key. In this way, various processing such as encryption processing, signature processing and derivation processing are performed on the second session message using post-quantum cryptography technology, and the combination of quantum key distribution technology and post-quantum cryptography technology increases the complexity of the second session message, and also ensures the security of the second session message during transmission.
[0229] In some embodiments, please refer to Figure 3 The first decrypted result obtained by decrypting the first encryption result includes the quantum key identifier UUID_QK. The responder gateway directly concatenates the quantum key identifier UUID_QK and the randomly generated second random number r2 to obtain the second session message m3 in the second encryption result. The randomness and unpredictability of the quantum key identifier are increased by concatenating it with the random number r2. Then, the second session message m3 is used as the encrypted message m in the PQC key encapsulation algorithm, and the G function in the PQC algorithm is run to obtain the second session key K (K2) in the second encryption result. The first session key generated in this way has good resistance to quantum computing attacks.
[0230] Then, the second session message is encrypted and encapsulated by PQC to obtain the second encrypted message m4 in the second encryption result. In this way, the confidentiality of the data during transmission is ensured. The responder gateway then uses the PQC digital signature algorithm to use UUID_QK as M in the PQC signature algorithm for PQC signature protection to obtain the second signed message M2, ensuring the integrity of the message and the authenticity of the source. Any unauthorized access and tampering will be detected. Finally, the responder gateway expands the AUTH_PQC and KE_PQC messages based on IKEv2. AUTH_PQC includes PQC signature information, and KE_PQC includes PQC key encapsulation information. The second encryption result is sent to the initiator gateway under the encryption and integrity protection of the first encryption key SK_e and the first verification key SK_a. The message structure is as follows:
[0231] HDR, SK {IDr, [CERT_PQC,] AUTH_PQC, KE_PQC}
[0232] HDR is the IKEv2 protocol header, and SK{} indicates encryption and integrity protection of data content. When a PQC certificate is available, CERT_PQC indicates a PQC encryption certificate and a PQC signature certificate. When no certificate is available, the initiator gateway and the responder gateway import each other's encryption public key and signature public key in an offline manner. This ensures the security and reliability of the second encryption result during transmission.
[0233] In this way, through this process, the second network device ensures the security and integrity of the quantum key identifier, establishing a secure foundation for subsequent communications.
[0234] See also Fig.15 In some embodiments, the first decryption result includes a first session message, and step 025 (generating a second encryption key, a second verification key, and a second derivative key according to the second quantum key, the first encryption key, the first verification key, the first derived key, the first encryption result, and the first decryption result to encrypt communication between the second network device and the first network device) includes:
[0235] 0251: performing post-quantum cryptographic derivation processing on the first session message to generate a first session key;
[0236] 0252: Generate a second encryption key according to the first encryption key, the second quantum key, the first session key, and the second session key;
[0237] 0253: Generate a second verification key according to the first verification key, the second quantum key, the first session key, and the second session key;
[0238] 0254: Generate a second derived key according to the first derived key, the second quantum key, the first session key, and the second session key;
[0239] 0255: Encrypt the communication between the second network device and the first network device according to the second encryption key, the second verification key, and the second derived key.
[0240] In some embodiments, the derivation module is further used to perform post-quantum cryptographic derivation processing on the first session message to generate a first session key. The derivation module is further used to generate a second encryption key based on the first encryption key, the first quantum key, the first session key, and the second session key. The derivation module is further used to generate a second verification key based on the first verification key, the first quantum key, the first session key, and the second session key. The derivation module is further used to generate a second derived key based on the first derived key, the first quantum key, the first session key, and the second session key. The communication module is used to encrypt the communication between the first network device and the second network device based on the second encryption key, the second verification key, and the second derived key.
[0241] In some embodiments, the processor is further configured to perform post-quantum cryptographic derivation processing on the first session message to generate a first session key, generate a second encryption key based on the first encryption key, the first quantum key, the first session key, and the second session key, generate a second verification key based on the first verification key, the first quantum key, the first session key, and the second session key, and generate a second derived key based on the first derived key, the first quantum key, the first session key, and the second session key. The processor is further configured to encrypt communications between the first network device and the second network device based on the second encryption key, the second verification key, and the second derived key.
[0242] Specifically, the second network device generates a second encryption key based on the first encryption key, the first quantum key, the first session key and the second session key. The second encryption key has good resistance to quantum computing attacks and is used to encrypt data in the communication process between the first network device and the second network device, ensuring the security of the data during transmission. Then, the second network device generates a second verification key based on the first verification key, the first quantum key, the first session key and the second session key. The second verification key has good resistance to quantum computing attacks and is used to ensure the integrity and legitimacy of the data in the communication process between the first network device and the second network device. Then, the second network device generates a second derived key based on the first derived key, the first quantum key, the first session key and the second session key. The second derived key has good resistance to quantum computing attacks and is used to ensure other security uses in the communication process between the first network device and the second network device, such as deriving a key with higher complexity. At the back left, the second network device encrypts the communication between the first network device and the second network device according to the second encryption key, the second verification key, and the second derived key. In this way, the ability of communication between network devices to resist quantum computing attacks is enhanced by using a key generated by combining quantum key distribution technology and post-quantum cryptography technology, thereby protecting the data transmitted during the communication process.
[0243] In some embodiments, please refer to Figure 3 , the responder gateway performs post-quantum cryptographic derivation processing on the first session message m1 to generate the first session key K1. Then, the responder gateway generates the second encryption key by XORing the first encryption key SK_e, the first quantum key, the first session key and the second session key. The second encryption key is used to encrypt the data in the communication process; the second verification key is generated by XORing the first verification key SK_a, the first quantum key, the first session key and the second session key. The second verification key is used to ensure the integrity of the data; the second derived key is generated by XORing the first derived key SK_d, the first quantum key, the first session key and the second session key. The second derived key can be used for other security purposes (such as encrypting log data, backup data, etc.). These keys combine quantum keys and post-quantum cryptography technology and have excellent resistance to quantum computing attacks. The responder gateway uses the second encryption key, the second verification key, and the second derived key to perform the subsequent CREATE_CHILD_SA phase and rekeying, including confidentiality and integrity protection of messages and key derivation. The CREATE_CHILD_SA phase defines the encryption and authentication parameters of the actual data flow between the two network devices. Rekeying is an important security mechanism in IPsec VPN, which is used to update and renegotiate existing security associations.
[0244] In this way, the second network device generates keys for protecting subsequent communication data transmission between the communication networks. These keys combine quantum keys and post-quantum cryptography technology to ensure the security and reliability of communication. This allows the communication between the communication networks to have good resistance to quantum computing attacks, and ensures the security of data transmission even when quantum computers may threaten existing encryption algorithms.
[0245] 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 method of the present application.
[0246] 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.
[0247] 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.
[0248] 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.
[0249] 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 quantum security of an Internet key exchange protocol of a communication network, characterized in that: The communication network includes a first network device and a second network device, the method is used for the first network device, and the method includes: Performing key negotiation with the second network device to generate an initial key, wherein the initial key includes a first encryption key, a first verification key, and a first derived key; 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 a first encryption result of 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; A second encryption key, a second verification key, and a second derived key are generated according to the first quantum key, the first encryption key, the first verification key, the first derived key, the first encryption result, and the second decryption result to encrypt 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 of the first quantum key by the first network node connected to the first network device includes: Sending a first quantum key application to the first network node connected to the first network device; Receiving a first quantum key distributed by the first network node according to the first quantum key application; The first quantum key is labeled according to the identification code of the first network device to obtain a quantum key identifier.
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 of the post-quantum cryptographic encryption processing to the second network device, includes: Performing post-quantum cryptographic encryption processing on the quantum key identifier to obtain a first encryption result; The first encryption result is encrypted according to the first encryption key and the first verification key, and the encrypted first encryption result is sent to the second network device.
5. The method according to claim 4, characterized in that The performing post-quantum cryptographic encryption processing on the quantum key identifier to obtain a first encryption result includes: Concatenating the quantum key identifier and a randomly generated first random number to obtain a first session message; Performing post-quantum cryptographic derivation processing on the first session message to generate a first session key in the first encryption result; Performing post-quantum cryptographic encryption processing on the first session message to generate a first encrypted message in the first encryption result; Performing post-quantum cryptographic signature processing on the quantum key identifier to generate a first signature message in the first encryption result.
6. The method according to claim 5, characterized in that The decrypting the received second encryption result sent by the second network device to obtain the second decryption 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 decrypted to obtain a second decryption result, where the second decryption result includes the quantum key identifier, the second session message, and the second signature message.
7. The method according to claim 6, characterized in that The method further comprises: A second session key is obtained according to the second session message and the quantum key identifier.
8. The method according to claim 6, characterized in that The method further comprises: Perform post-quantum cryptographic signature verification processing on the quantum key identifier according to the second signature message.
9. The method according to claim 7, characterized in that: The step of generating a second encryption key, a second verification key, and a second derivative key according to the first quantum key, the first encryption key, the first verification key, the first derived key, the first encryption result, and the second decryption result to encrypt communication between the second network device and the first network device comprises: generating a second encryption key based on the first encryption key, the first quantum key, the first session key, and the second session key; generating a second verification key according to the first verification key, the first quantum key, the first session key, and the second session key; generating a second derived key based on the first derived key, the first quantum key, the first session key, and the second session key; The communication between the first network device and the second network device is encrypted according to the second encryption key, the second verification key, and the second derived key.
10. A method for enhancing quantum security of an Internet key exchange protocol of a communication network, characterized in that: The communication network includes a first network device and a second network device, the method is used for the second network device, and the method includes: Performing key negotiation with the first network device to generate an initial key, the initial key comprising a first encryption key, a first verification key, and a first derived key; Receiving a first encryption result of post-quantum cryptographic encryption processing performed by the first network device 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; Encrypting the first decryption result to obtain a second encryption result; A second encryption key, a second verification key and a second derived key are generated according to a second quantum key, the first encryption key, the first verification key, the first derived key, the second encryption result and the first decryption result to encrypt communication between the second network device and the first 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: Performing post-quantum cryptographic signature verification processing on the quantum key identifier according to the first signature message; When the signature verification result is correct, the second quantum key is obtained from a second network node connected to the second network device.
12. The method according to claim 11, characterized in that The first decryption result includes a quantum key identifier, and the encrypting the first decryption result to obtain a second encryption result includes: Concatenating the quantum key identifier and a randomly generated second random number to obtain a second session message; Performing post-quantum cryptographic derivation processing on the second session message to generate a second session key in the second encryption result; Performing post-quantum cryptographic encryption processing on the second session message to generate a second encrypted message in the second encryption result; Performing post-quantum cryptographic signature processing on the quantum key identifier to generate a second signature message in the second encryption result; The second encryption result is encrypted according to the first encryption key and the first verification key.
13. The method according to claim 12, characterized in that The first decryption result includes a first session message, and generating a second encryption key, a second verification key, and a second derived key according to a second quantum key, the first encryption key, the first verification key, the first derived key, the second encryption result, and the first decryption result to encrypt communication between the second network device and the first network device includes: Performing post-quantum cryptographic derivation processing on the first session message to generate a first session key; Generate a second encryption key according to the first encryption key, the second quantum key, the first session key, and the second session key; Generate a second verification key according to the first verification key, the second quantum key, the first session key, and the second session key; generating a second derived key according to the first derived key, the second quantum key, the first session key, and the second session key; The communication between the second network device and the first network device is encrypted according to the second encryption key, the second verification key, and the second derived key.
Citation Information
Cited By
Quantum key system and quantum key method
TWI937952B
