Anti-quantum security enhancement method for national secret SSL VPN protocol

By combining post-quantum cryptography algorithm and quantum key distribution technology in the Guomi SSL VPN protocol, quantum key resistance is generated, which solves the shortcomings of classical cryptography in quantum computing attacks, enhances communication security, and resists quantum computing threats.

CN118540163BActive Publication Date: 2024-11-15中电信量子信息科技集团有限公司
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202411007781.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-11-15
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

The existing classic cryptography algorithms are difficult to resist when facing quantum computing attacks, especially the emergence of large quantum computers poses a threat to applications such as key negotiation, encryption and signatures, and post-quantum cryptography algorithms and quantum key distribution technologies have their own Limitations, it cannot completely replace asymmetric algorithms.

Method used

In the SSL VPN protocol of the communication network, the post-quantum cryptography algorithm and quantum key distribution technology are used to obtain quantum key and quantum key identifiers, and perform post-quantum cryptography encryption processing to generate quantum computing attack-resistant Quantum-resistant keys are used to encrypt communication between network devices and terminals.

Benefits of technology

It enhances the communication security between network devices and terminals, resists quantum computing attacks, ensures the confidentiality and integrity of data transmission, and provides higher resistance to quantum computing attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540163B_ABST
    Figure CN118540163B_ABST
Patent Text Reader

Abstract

The present application discloses a method for enhancing the anti-quantum security of a national secret SSLVPN protocol of a communication network. The method includes: obtaining a first quantum key and a quantum key identifier from a first network node connected to a network device, performing post-quantum cryptographic encryption processing on the quantum key identifier, and sending the first encryption result after post-quantum cryptographic encryption processing to a terminal, decrypting the second encryption result received and sent by the terminal to obtain a second decryption result, the second encryption result is obtained according to the first encryption result, the first master key is obtained according to the first encryption result and the second decryption result, and the second master key is generated according to the first master key, the first encryption result, the second decryption result and the first quantum key to encrypt the communication between the network device and the terminal. The terminal and the network device encrypt the communication by using post-quantum cryptographic algorithms and quantum key distribution technology, significantly enhancing the ability to resist quantum computing attacks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network security, and more specifically, to a method for enhancing the anti-quantum security of a national secret SSL VPN protocol of a communication network. Background Art

[0002] The leap in computing power represented by quantum computing has a significant impact on the security of related algorithms in classical cryptography. Understandably, with the realization of large-scale quantum computers, it will have a certain impact on key negotiation, encryption, signature and other applications in classical cryptography. Therefore, providing cryptographic technology that can resist quantum computing attacks has become an urgent problem to be solved. Summary of the invention

[0003] The present application provides a method for enhancing the anti-quantum security of the national secret SSL VPN protocol of a communication network.

[0004] The embodiment of the present application provides a method for enhancing the anti-quantum security of a national secret SSL VPN protocol of a communication network, wherein the communication network includes a terminal and a network device, and the method is used for the network device, and the method includes:

[0005] Acquire a first quantum key and a quantum key identifier from a first network node connected to the network device;

[0006] Performing post-quantum cryptography encryption processing on the quantum key identifier, and sending a first encryption result after the post-quantum cryptography encryption processing to the terminal;

[0007] decrypting a second encryption result received and sent by the terminal to obtain a second decryption result, where the second encryption result is obtained based on the first encryption result;

[0008] Obtain a first master key according to the first encryption result and the second decryption result;

[0009] A second master key is generated according to the first master key, the first encryption result, the second decryption result and the first quantum key to encrypt communication between the network device and the terminal.

[0010] In this way, during the communication process between network devices and terminals, network devices and terminals apply for quantum keys, and use post-quantum cryptographic algorithms to encrypt quantum keys to generate anti-quantum keys that can resist quantum computing attacks. Post-quantum cryptographic algorithms are a series of encryption algorithms designed to resist quantum computing attacks. Network devices and terminals exchange relevant data to generate master keys, and then integrate the master keys, anti-quantum keys and quantum keys for use in network devices and terminals.

[0011] In certain embodiments, the method further comprises:

[0012] Accessing a first network node through a pre-established channel;

[0013] Load the security certificate of the terminal or the security certificate of the network device.

[0014] In this way, before data transmission with the terminal, the first network node is accessed through a pre-established channel. The pre-established channel can protect data during data transmission and reduce the risk of unauthorized access during data transmission. Next, the security certificate of the terminal or the security certificate of the 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.

[0015] In certain embodiments, the obtaining a first quantum key and a quantum key identifier from a first network node connected to the network device includes:

[0016] Sending a quantum key application to the first network node;

[0017] 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 node.

[0018] In this way, a quantum key application is sent to the first network node. Then, after the quantum key application is approved, the first quantum key and quantum key identifier distributed by the first network node according to the quantum key application are received. The quantum key identifier is obtained by the first network node using the identification code of the first network node to mark the first quantum key. In this way, the first quantum key and quantum key identifier are obtained. The first quantum key can be used to subsequently generate a key with the ability to resist quantum computing attacks. The quantum key identifier helps to use and manage the first quantum key.

[0019] In some embodiments, performing post-quantum cryptography encryption processing on the quantum key identifier and sending the first encryption result after the post-quantum cryptography encryption processing to the terminal includes:

[0020] Concatenating the quantum key identifier and a randomly generated first random number to obtain a first handshake message;

[0021] Obtain a second handshake message according to the first handshake message and the first handshake random number in the first encryption result;

[0022] Performing post-quantum cryptographic derivation processing on the first handshake message to generate a first handshake key;

[0023] Performing post-quantum cryptographic encryption processing on the first handshake message to generate a first encrypted message in the first encryption result;

[0024] Concatenate the quantum key identifier, the first handshake random number, and a signature parameter corresponding to a public key exchange algorithm used by the network device to obtain a first verification message;

[0025] Performing post-quantum cryptographic signature processing on the first verification message to generate a first signature message in the first encryption result;

[0026] The first encryption result is sent to the terminal.

[0027] In this way, the quantum key identifier and the randomly generated first random number are spliced ​​to obtain a first handshake message. Next, the first handshake message is XORed with the first handshake random number in the first encryption result to generate a second handshake message in the first encryption result. Then, the second handshake message is subjected to post-quantum cryptographic derivation processing to generate a first handshake key, and the second handshake message is subjected to post-quantum cryptographic encryption processing to generate a first encrypted message in the first encryption result. The quantum key identifier, the first handshake random number, and the signature parameters corresponding to the public key exchange algorithm used by the network device are spliced ​​to obtain a first verification message, and then the first verification message is subjected to post-quantum cryptographic signature processing to generate a first signature message in the first encryption result, and the first signature message is used to verify the authenticity and integrity of the data. Finally, the first encryption result is sent to the terminal. The confidentiality of the quantum key identifier is increased by splicing the quantum key identifier with the first random number, and the quantum key identifier and its derivative products are processed using a post-quantum cryptographic algorithm to increase the complexity of the quantum key identifier by combining quantum key distribution technology with post-quantum cryptographic technology.

[0028] In some implementations, the decrypting the received second encryption result sent by the terminal to obtain the second decryption result includes:

[0029] receiving the second encryption result sent by the terminal, where the second encryption result is obtained by the terminal performing post-quantum cryptography encryption processing on the first decryption result, and the first decryption result is obtained by the terminal performing decryption processing on the first encryption result;

[0030] The second encryption result is decrypted to obtain a second decryption result, where the second decryption result includes a second handshake random number, a fourth handshake message, and a second signature message.

[0031] In this way, the second encryption result sent by the receiving terminal is obtained by the terminal encrypting the first decryption result, and the first decryption result is obtained by the terminal decrypting the first encryption result. The second encryption result is decrypted to obtain a second decryption result, and the second decryption result includes the second handshake random number, the fourth handshake message and the second signature message. In this way, the network device determines the availability of the channel for communication with the terminal and obtains the key information of the terminal, 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] Obtaining a second handshake key according to the fourth handshake message;

[0034] A third handshake message and a quantum key identifier are obtained according to the fourth handshake message and the second handshake random number.

[0035] In this way, the second handshake key is obtained according to the fourth handshake message. Then, the third handshake message and the quantum key identifier are obtained according to the fourth handshake message and the second handshake random number. The second handshake key obtained in this way is used for subsequent key generation to obtain a key with good resistance to quantum computing attacks.

[0036] In certain embodiments, the method further comprises:

[0037] Obtain a second verification message according to the second signature message;

[0038] Perform post-quantum cryptographic signature verification on the second signature message to confirm the correctness of the second verification message, where the second verification message is obtained by concatenating the quantum key identifier, the second handshake random number, and the key material information corresponding to the public key exchange algorithm used by the terminal.

[0039] In this way, the second verification message is obtained according to the second signature message, and then the second signature message is subjected to post-quantum cryptographic signature verification. The second verification message is obtained by splicing the quantum key identifier, the second handshake random number, and the key material information corresponding to the public key exchange algorithm used by the terminal. By performing post-quantum cryptographic signature verification on the second signature message, the correctness of the second verification message is determined, the integrity of the terminal-related data received by the network device is ensured, the identity of the terminal is verified, and security is provided for subsequent data transmission.

[0040] In some embodiments, generating a second master key according to the first master key, the first encryption result, the second decryption result, and the first quantum key to encrypt communication between the network device and the terminal includes:

[0041] Performing an XOR process on the first master key and a concatenation, where the concatenation is obtained by concatenating an XOR body and the first quantum key, and the XOR body is obtained by performing an XOR process on the first handshake key and the second handshake key;

[0042] The communication between the network device and the terminal is encrypted according to the second master key.

[0043] In this way, the first handshake key and the second handshake key are first XORed to obtain an XOR body. Then the XOR body and the first quantum key are spliced ​​to obtain a spliced ​​body. Next, the first master key and the spliced ​​body are XORed to generate a second master key. Finally, the generated second master key is used to encrypt the communication between the network device and the terminal. 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 quantum key distribution technology and post-quantum cryptography technology, and the data transmitted during the communication process is protected.

[0044] The embodiment of the present application provides a method for enhancing the anti-quantum security of a national secret SSL VPN protocol of a communication network, wherein the communication network includes a terminal and a network device, and the method is used for the terminal, and the method includes:

[0045] receiving a first encryption result of post-quantum cryptographic encryption processing performed by the network device on a quantum key identifier, where the quantum key identifier is obtained by the network device from a first network node to which the network device accesses;

[0046] Decrypting the first encryption result to obtain a first decryption result;

[0047] Performing post-quantum cryptographic processing on the first decryption result, and sending a second encryption result after the post-quantum cryptographic processing to the network device;

[0048] Obtain a first master key according to the first decryption result and the second encryption result;

[0049] A second master key is generated according to the first master key, the first decryption result, the second encryption result and the second quantum key to encrypt the communication between the network device and the terminal.

[0050] In this way, during the communication process between network devices and terminals, network devices and terminals apply for quantum keys, and use post-quantum cryptographic algorithms to encrypt quantum keys to generate anti-quantum keys that can resist quantum computing attacks. Post-quantum cryptographic algorithms are a series of encryption algorithms designed to resist quantum computing attacks. Network devices and terminals exchange relevant data to generate master keys, and then combine the master keys, anti-quantum keys and quantum keys for use in communication between network devices and terminals. In this way, the ability of network communication between network devices and terminals to resist quantum attacks is enhanced.

[0051] In some embodiments, the first decryption result includes a second handshake message and a first handshake random number, and the method further includes:

[0052] Obtain a first handshake message according to the second handshake message and the first handshake random number;

[0053] The quantum key identifier is obtained according to the first handshake message.

[0054] In this way, the first handshake message is obtained according to the second handshake message and the first handshake random number, and then the quantum key identifier is obtained according to the obtained first handshake message. In this way, the quantum key identifier is obtained, and the quantum key identifier can be applied for according to the quantum key identifier.

[0055] In some embodiments, the first decryption result includes a first signed message, and the method further includes:

[0056] Obtain a first verification message according to the first signed message;

[0057] Performing post-quantum cryptographic signature verification on the first signature message to confirm the correctness of a first verification message, where the first verification message is obtained by concatenating the quantum key identifier, the first handshake random number, and a signature parameter corresponding to a public key exchange algorithm used by the network device;

[0058] When the obtained quantum key identifier is correct, a second quantum key is obtained from a service node connected to the terminal.

[0059] In this way, the first signature message is processed with post-quantum cryptographic signature verification to confirm that the correct first verification message has been received, ensuring the integrity of the data and the legitimacy of the source. When the received first verification message is confirmed to be correct, an application is made to the service node of the access terminal to obtain the second quantum key according to the quantum key identifier. This ensures that the obtained second quantum key matches the first quantum key of the network device, and the second quantum key is used to generate a key with high security and good resistance to quantum computing attacks.

[0060] In some embodiments, the obtaining the second quantum key from a service node connected to the terminal includes:

[0061] Using the service node to inject multiple keys into the cryptographic module of the terminal;

[0062] Sending a quantum key application to the service node, wherein the quantum key application is protected by a protection key, and the protection key is a randomly used one from a plurality of keys injected into the cryptographic module;

[0063] receiving a quantum key encryption result obtained by the service node encrypting the second quantum key according to the protection key, where the second quantum key is generated by a second network node connected to the service node and distributed to the service node;

[0064] The quantum key encryption result is decrypted to obtain the second quantum key.

[0065] In this way, the service node is used to inject keys into the cryptographic module so that the keys in the cryptographic module are sufficient for use. When it is confirmed that the correct quantum key identifier is obtained, a quantum key application is sent to the service node, and the quantum key application is encrypted and protected by a key randomly extracted from multiple keys in the cryptographic module as a protection key. Then, the receiving service node encrypts the second quantum key according to the protection key to obtain the quantum key encryption result, and the second quantum key is generated by the second network node connected to the service node and distributed to the service node. The quantum key encryption result is decrypted to obtain the second quantum key. In this way, the second quantum key is obtained, and the second quantum key can be used to generate a key with the ability to resist quantum computing attacks.

[0066] In some embodiments, performing post-quantum cryptographic processing on the first decryption result, and sending the second encryption result after the post-quantum cryptographic processing to the network device, includes:

[0067] Concatenating the quantum key identifier and the randomly generated second random number to obtain a third handshake message;

[0068] Generate a fourth handshake message by processing the third handshake message and the second handshake random number in the second encryption result;

[0069] Performing post-quantum cryptography derivation processing on the fourth handshake message to generate a second handshake key;

[0070] Performing post-quantum cryptographic encryption processing on the fourth handshake message to generate a second encrypted message in the second encryption result;

[0071] Concatenate the quantum key identifier, the second handshake random number, and key material information corresponding to the public key exchange algorithm used by the terminal to obtain a second verification message;

[0072] Performing post-quantum cryptographic signature processing on the second verification message to generate a second signature message in the second encryption result;

[0073] The second encryption result is sent to the network device.

[0074] In this way, the quantum key identifier and the randomly generated second random number are spliced ​​to obtain a third handshake message. Then, the third handshake message and the second handshake random number in the second encryption result are XORed to generate a fourth handshake message in the second encryption result. Next, the fourth handshake message is subjected to post-quantum cryptographic derivation processing to generate a second handshake key, and the fourth handshake message is subjected to post-quantum cryptographic encryption processing to generate a second encrypted message in the second encryption result. The quantum key identifier, the second handshake random number, and the key material information corresponding to the public key exchange algorithm used by the terminal are then spliced ​​to obtain a second verification message. Finally, the second verification message is subjected to post-quantum cryptographic signature processing to generate a second signature message in the second encryption result. The second encryption result is sent to the network device. The confidentiality of the quantum key identifier is increased by splicing the quantum key identifier with the second random number, and the quantum key identifier and its derivatives are encrypted using a post-quantum cryptographic algorithm to increase the complexity of the quantum key identifier by combining quantum key distribution technology with post-quantum cryptographic technology.

[0075] In some embodiments, the first decryption result includes a second handshake message, and the second master key is generated according to the first master key, the first decryption result, the second encryption result, and the second quantum key to encrypt the communication between the network device and the terminal, including:

[0076] Obtaining a first handshake key according to the second handshake message;

[0077] Performing an XOR process on the first master key and a concatenation to generate the second master key, the concatenation is obtained by concatenating an XOR body and the second quantum key, and the XOR body is obtained by performing an XOR process on the first handshake key and the second handshake key;

[0078] The communication between the network device and the terminal is encrypted according to the second master key.

[0079] In this way, the first handshake key is first obtained according to the second handshake message. Then, the first handshake key and the second handshake key are XORed to obtain an XOR body. The XOR body and the first quantum key are then spliced ​​to obtain a spliced ​​body. Then, the first master key and the spliced ​​body are XORed to generate a second master key. Finally, the generated second master key is used to encrypt the communication between the network device and the terminal. 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 quantum key distribution technology and post-quantum cryptography technology, and the data transmitted during the communication process is protected.

[0080] The embodiment of the present application provides a network device, the network device is used in a communication network based on the national secret secure socket layer virtual private network protocol, the communication network also includes a terminal, and the network device is configured as follows:

[0081] Acquire a first quantum key and a quantum key identifier from a first network node connected to the network device;

[0082] Performing post-quantum cryptography encryption processing on the quantum key identifier, and sending a first encryption result after the post-quantum cryptography encryption processing to the terminal;

[0083] decrypting a second encryption result received and sent by the terminal to obtain a second decryption result, where the second encryption result is obtained based on the first encryption result;

[0084] Obtain a first master key according to the first encryption result and the second decryption result;

[0085] A second master key is generated according to the first master key, the first encryption result, the second decryption result and the first quantum key to encrypt communication between the network device and the terminal.

[0086] In this way, during the communication process between network devices and terminals, network devices and terminals apply for quantum keys, and use post-quantum cryptographic algorithms to encrypt quantum keys to generate anti-quantum keys that can resist quantum computing attacks. Post-quantum cryptographic algorithms are a series of encryption algorithms designed to resist quantum computing attacks. Network devices and terminals exchange relevant data to generate master keys, and then combine the master keys, anti-quantum keys and quantum keys for use in communication between network devices and terminals. In this way, the ability of network communication between network devices and terminals to resist quantum attacks is enhanced.

[0087] An embodiment of the present application provides a terminal, the terminal is used in a communication network based on the Internet Transport Layer Security Protocol, the communication network also includes a network device, and the terminal is configured as follows:

[0088] receiving a first encryption result of post-quantum cryptographic encryption processing performed by the network device on a quantum key identifier, where the quantum key identifier is obtained by the network device from a first network node to which the network device accesses;

[0089] Decrypting the first encryption result to obtain a first decryption result;

[0090] Performing post-quantum cryptographic processing on the first decryption result, and sending a second encryption result after the post-quantum cryptographic processing to the network device;

[0091] Obtain a first master key according to the first decryption result and the second encryption result;

[0092] A second master key is generated according to the first master key, the first decryption result, the second encryption result and the second quantum key to encrypt the communication between the network device and the terminal.

[0093] In this way, during the communication process between network devices and terminals, network devices and terminals apply for quantum keys, and use post-quantum cryptographic algorithms to encrypt quantum keys to generate anti-quantum keys that can resist quantum computing attacks. Post-quantum cryptographic algorithms are a series of encryption algorithms designed to resist quantum computing attacks. Network devices and terminals exchange relevant data to generate master keys, and then combine the master keys, anti-quantum keys and quantum keys for use in communication between network devices and terminals. In this way, the ability of network communication between network devices and terminals to resist quantum attacks is enhanced.

[0094] An embodiment of the present application provides a communication system based on the national secret secure socket layer virtual private network protocol, characterized in that the communication system includes a network device as described above, a terminal as described above, and a quantum key distribution network, and the quantum key distribution network is configured to distribute quantum keys to the network device or the terminal.

[0095] An embodiment of the present application provides a network device, which includes one or more processors and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the above method is implemented.

[0096] An embodiment of the present application provides a terminal, which includes one or more processors and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the above method is implemented.

[0097] The embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above method is implemented.

[0098] Additional aspects and advantages of the embodiments of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0099] 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:

[0100] Figure 1 It is one of the flow charts of the method of the implementation mode of the present application;

[0101] Figure 2 It is an architectural diagram of a method for implementing an embodiment of the present application;

[0102] Figure 3 is a signaling diagram of a method according to an embodiment of the present application;

[0103] Figure 4 This is the second flow chart of the method of the implementation mode of the present application;

[0104] Figure 5 This is the third flow chart of the method of the implementation mode of the present application;

[0105] Figure 6 This is the fourth flow chart of the method of the implementation mode of the present application;

[0106] Figure 7 This is the fifth flow chart of the method of the implementation mode of the present application;

[0107] Figure 8 This is the sixth flow chart of the method of the implementation mode of the present application;

[0108] Fig. 9 This is the seventh flow chart of the method of the implementation mode of the present application;

[0109] Fig.10 This is the eighth flow chart of the method of the implementation mode of the present application;

[0110] Fig.11 This is the ninth flow chart of the method of the implementation mode of the present application;

[0111] Fig.12 This is the tenth flowchart of the method of the implementation mode of the present application;

[0112] Fig.13 This is the eleventh flow chart of the method of the implementation mode of the present application;

[0113] Fig.14 This is the twelfth flow chart of the method of the implementation mode of the present application;

[0114] Fig.15 This is the thirteenth flow chart of the method of the implementation mode of the present application;

[0115] Fig.16 This is the fourteenth flow chart of the method of the implementation mode of the present application. DETAILED DESCRIPTION

[0116] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the embodiments of the present application, and cannot be understood as limiting the embodiments of the present application.

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

[0118] As a result, the security of the Internet, which uses classical cryptographic algorithms to protect the communication process, is deeply threatened by quantum computing attacks. For example, the national secret SSL VPN protocol used at the transport layer and application layer adopts the SM2 / SM9 digital signature algorithm for identity authentication, and uses the ECDHE and digital envelope methods of SM2 / SM9 for key exchange. Although the national secret SSL VPN protocol provides relatively strong security and forward secrecy, SM2 / SM9 still belongs to the elliptic curve algorithm in the classical cryptographic algorithm and lacks the ability to resist quantum computing. The national secret SSL VPN protocol is a virtual private network protocol for the transport layer and application layer defined by GM / T 0024 "SSL VPN Technical Specification" and GB∕T 38636 "Information Security Technology Transport Layer Cryptography Protocol TLCP", which includes the most widely used key exchange and authentication protocol for secure remote access systems in the field of domestic commercial cryptography.

[0119] At present, the international technologies for dealing with the threat of quantum computing attacks are mainly divided into two categories: one is to use asymmetric algorithms for (symmetric) key negotiation and then encrypt and transmit through symmetric algorithms, and study the use of quantum key distribution (QKD) networks for symmetric key negotiation to protect the security of keys; the other is to study post-quantum cryptography (PQC) algorithms to directly replace existing asymmetric algorithms. Quantum key distribution technology uses the principles of quantum mechanics to generate keys that cannot be stolen by third parties, ensuring the security of key transmission. It is particularly suitable for key exchange scenarios and can replace existing asymmetric key negotiation algorithms, such as RSA or ECC, to improve the security of keys. However, quantum key distribution technology cannot currently completely replace all applications of asymmetric algorithms. For example, scenarios such as signature verification, integrity protection, and non-repudiation still require the use of asymmetric algorithms.

[0120] Post-quantum cryptographic algorithms are asymmetric cryptographic algorithms designed based on new mathematical problems, aiming to resist the possible threats posed by quantum computers. NIST has announced the first batch of four post-quantum cryptographic algorithms to be standardized, including Kyber, Dilithium, Falcon, and SPHINCS+. These algorithms cover a variety of technical routes to reduce the risk of a single technology being cracked. Post-quantum cryptographic algorithms can theoretically replace all asymmetric algorithms and are more general. However, the security of post-quantum cryptographic algorithms still depends on the complexity of computational problems, and may face new cracking methods in the future or become unsafe as computing power increases. In addition, the post-quantum cryptographic algorithm standard has not yet been officially announced, and the production and certification of related products also take time, so its large-scale application still requires a long period of time.

[0121] Both post-quantum cryptographic algorithms and quantum key distribution technologies have the ability to resist quantum computing attacks, but each has its limitations. Therefore, providing relatively low-cost and highly secure cryptographic technology that can resist quantum computing attacks has become an urgent problem to be solved.

[0122] Based on the above questions, please refer to Figure 1 The embodiment of the present application provides a method for enhancing the anti-quantum security of the national secret SSL VPN protocol of a communication network, wherein the communication network includes a terminal and a network device, and the method is used for the network device, and the method includes:

[0123] 011: Obtain a first quantum key and a quantum key identifier from a first network node connected to the network device;

[0124] 012: Perform post-quantum cryptography encryption processing on the quantum key identifier, and send the first encryption result after the post-quantum cryptography encryption processing to the terminal;

[0125] 013: decrypting the second encryption result sent by the terminal to obtain a second decryption result, where the second encryption result is obtained based on the first encryption result;

[0126] 014: Obtain a first master key according to the first encryption result and the second decryption result;

[0127] 015: Generate a second master key according to the first master key, the first encryption result, the second decryption result and the first quantum key to encrypt the communication between the network device and the terminal.

[0128] The embodiment of the present application also provides a network device, including a memory and a processor. The method of the embodiment of the present application can be implemented by the network device of the embodiment of the present application. Specifically, a computer program is stored in the memory, and the processor is used to obtain a first quantum key and a quantum key identifier from a first network node connected to the network device, and perform post-quantum cryptographic encryption processing on the quantum key identifier, and send the first encryption result after post-quantum cryptographic encryption processing to the terminal. The processor is also used to decrypt the second encryption result sent by the terminal to obtain a second decryption result, and the second encryption result is obtained based on the first encryption result. The processor is also used to obtain a first master key based on the first encryption result and the second decryption result, and to generate a second master key based on the first master key, the first encryption result, the second decryption result and the first quantum key to encrypt the communication between the network device and the terminal.

[0129] The embodiment of the present application also provides a network device. The method of the embodiment of the present application can be implemented by the network device of the embodiment of the present application. Specifically, the network device includes an acquisition module, an encryption module, a decryption module and a derivation module. The acquisition module is used to obtain a first quantum key and a quantum key identifier from a first network node connected to the network device. The encryption module is used to perform post-quantum cryptographic encryption processing on the quantum key identifier, and send the first encryption result after post-quantum cryptographic encryption processing to the terminal. The decryption module is used to decrypt the second encryption result sent by the terminal to obtain a second decryption result, and the second encryption result is obtained based on the first encryption result. The derivation module is used to obtain a first master key based on the first encryption result and the second decryption result. The derivation module is also used to generate a second master key based on the first master key, the first encryption result, the second decryption result and the first quantum key to encrypt the communication between the network device and the terminal.

[0130] The present application provides a communication system based on the national secret secure socket layer virtual private network protocol, the communication system includes the network equipment, terminal and quantum key distribution network of the above-mentioned implementation mode, and the quantum key distribution network is configured to distribute quantum keys to network equipment or terminals. 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 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.

[0131] See also Figure 2 In some embodiments, the terminal and the network device communicate through an SSL VPN record layer encryption channel, such as performing an SSL VPN handshake protocol. The SSL VPN record layer encryption channel refers to an encrypted communication channel established between the terminal and the network device for transmitting application layer and transport layer data, and the SSL VPN handshake protocol is a key part of the national secret SSL VPN protocol, which is used to establish the initial stage of secure communication between the terminal and the network device. The terminal accesses a service node, which is a transfer station used by the terminal to connect to the network node, and is used to inject keys into the terminal and transfer and store quantum keys. When the terminal sends a quantum key application, the network node sends the quantum key generated by the quantum key distribution network to the service node accessing the terminal, and the service node sends the quantum key to the terminal. First, the network device sends a quantum key application to the network node accessing the network device. Next, the network node accessing the network device confirms the quantum key application sent by the network device and distributes the quantum key to the network device. At the same time, the quantum network link control center synchronizes the network node accessing the service node to generate a quantum key, but the quantum key will not be immediately distributed to the service node accessing the terminal, but will be stored in the network node first. The corresponding relationships among the above terminals, network devices and network nodes are all provided by the management and control platform.

[0132] It should be noted that the implementation method of this application uses FIPS203 Module-Lattice-based Key-Encapsulation Mechanism Standard as the PQC key encapsulation algorithm and FIPS 204 Module-Lattice-Based Digital Signature Standard as the PQC digital signature algorithm for example for explanation. The following descriptions of operations related to the PQC algorithm refer to the above FIPS standards. Of course, in other implementations, other algorithms such as the NewHope algorithm, the Sidh algorithm, the HQC algorithm, etc. can also be used as PQC related algorithms. It should also be noted that the embodiments of this application are for the SSL VPN protocol defined in GM / T 0024 "SSL VPN Technical Specifications" and GB∕T 38636 "Information Security Technology Transport Layer Cryptography Protocol TLCP", hereinafter referred to as the National Secret SSL VPN Protocol.

[0133] Specifically, the network device sends a quantum key application to a first network node connected to the network device, and then obtains a first quantum key and a quantum key identifier from the first network node. The first quantum key and the quantum key identifier can be used to generate a key that is resistant to quantum computing attacks, and the quantum key identifier helps to use and manage the quantum key. After obtaining the first quantum key and the quantum key identifier, the network device performs post-quantum cryptographic encryption processing on the quantum key identifier, and sends the first encryption result of the post-quantum cryptographic encryption processing to the terminal. By performing post-quantum cryptographic encryption processing on the quantum key identifier, the quantum key distribution technology is combined with the post-quantum cryptographic algorithm to improve the complexity of the key, and the encryption result is sent to the terminal for sharing so that the communication data of the network device and the terminal in the communication network are consistent.

[0134] Then, the terminal receives the first encryption result sent by the network device, and decrypts the first encryption result to obtain the first decryption result. The terminal then performs post-quantum cryptographic encryption on the first decryption result to obtain the second encryption result. After obtaining the second encryption result, the terminal sends the second encryption result to the network device so that the network device can also share the terminal information and the generated key. The terminal then obtains the first master key based on the first decryption result and the second encryption result, and generates the second master key based on the first master key, the first decryption result, the second encryption result and the second quantum key to encrypt the communication between the terminal and the network device.

[0135] At the same time, the network device receives the second encryption result sent by the terminal, and decrypts the second encryption result to obtain a second decryption result. The network device then obtains the first master key based on the first encryption result and the second decryption result, and generates the second master key based on the first master key, the first encryption result, the second decryption result and the first quantum key to encrypt the communication between the network device and the terminal.

[0136] The following is an example to illustrate the method of implementing the present application. In the embodiment of the present application, the client is a terminal, which is the user end of SSL VPN. The key set between the client and the server is obtained through the SSL VPN handshake protocol. The key set is used for the SSL VPN record layer protocol to protect the integrity and confidentiality of user data. The SSL VPN gateway is a network device, which is the server end of SSL VPN. The key set between the client and the client is obtained through the SSL VPN handshake protocol. The key set is used for the SSL VPN record layer protocol to protect the integrity and confidentiality of user data. The quantum network node is a network node, which stores and provides the generated quantum key to the SSL VPN gateway through a trusted channel or provides the generated quantum key to the client through a key service node. The cryptographic service node is a service node, which is used to connect to the quantum network node and provide pre-shared key injection and quantum key services for multiple clients. The server message includes a ServerKeyExchange message, which includes a first encryption result. The client message includes a ClientKeyExchange message, which includes a second encryption result. Please refer to Figure 3 , the SSL VPN gateway receives the first quantum key QK_UUID and quantum key identifier UUID_QK sent from the first quantum network node connected to the network device, and the quantum key identifier helps to manage and use the quantum key. After obtaining the first quantum key QK_UUID and quantum key identifier UUID_QK, the SSL VPN gateway performs post-quantum cryptography encryption on the quantum key identifier UUID_QK and sends the ServerKeyExchange message processed by post-quantum cryptography encryption to the network device.

[0137] Then, the client receives the ServerKeyExchange message sent by the SSL VPN gateway, and performs post-quantum cryptographic decryption processing on the ServerKeyExchange message to obtain a first decryption result. The client then performs post-quantum cryptographic encryption processing on the first decryption result to obtain a ClientKeyExchange message. After obtaining the ClientKeyExchange message, the client sends the ClientKeyExchange message to the SSL VPN gateway. Subsequently, the client calculates the first master key master_secret according to the relevant information in the first decryption result and the relevant information in the ClientKeyExchange message in accordance with the national secret SSL VPN protocol. Then, the second master key master_secret2 is generated based on the first master key master_secret, the first decryption result and the client message to encrypt the communication between the client and the SSL VPN gateway and protect the communication data.

[0138] At the same time, the SSL VPN gateway receives the ClientKeyExchange message sent by the client, and performs post-quantum cryptographic decryption on the client message to obtain the second decryption result. Subsequently, the SSL VPN gateway calculates the first master key master_secret according to the relevant information in the ServerKeyExchange message and the second decryption message in accordance with the national secret SSL VPN protocol. The second master key master_secret2 is then generated based on the first master key master_secret, the second decryption result and the ServerKeyExchange message to encrypt the communication between the client and the SSL VPN gateway and protect the communication data. In this way, it is ensured that even in the face of possible threats from quantum computers, the TLS handshake between the client and the secure access gateway can still provide secure data transmission. By using post-quantum cryptography algorithms and quantum key distribution technology, communications can be more secure against possible threats from quantum computers.

[0139] In summary, in the anti-quantum security enhancement method, communication system, terminal and network device of the national secret SSL VPN protocol of the communication network of the implementation mode of the present application, for the communication process between the network device and the terminal, the network device and the terminal apply for a quantum key and a quantum key identifier, and use a post-quantum cryptographic algorithm to encrypt the quantum key to generate an anti-quantum key that can resist quantum computing attacks. The post-quantum cryptographic algorithm is a series of encryption algorithms designed to resist quantum computing attacks. The network device and the terminal exchange the random numbers generated by each of them to generate a master key, and then fuse the master key, anti-quantum key and quantum key for use in the communication between the network device and the terminal. In this way, the anti-quantum attack capability of the network communication between the network device and the terminal is enhanced.

[0140] See also Figure 4 In some embodiments, the method further comprises:

[0141] 016: Access the first network node through a pre-established channel;

[0142] 017: Load the terminal's security certificate or the network device's security certificate.

[0143] 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 a security certificate of the terminal or a security certificate of the network device.

[0144] In some embodiments, the processor is further configured to access the first network node through a pre-established channel, and load a security certificate of the terminal or a security certificate of the network device.

[0145] Specifically, before transmitting data with the terminal, the network device accesses the first network node through a pre-established channel. The pre-established channel can protect data during the data transmission process and reduce the risk of unauthorized access during the transmission process. Then, the network device loads the security certificate of the network device or the security certificate of the terminal. 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.

[0146] Continuing with the above example, please refer again to Figure 3Before the SSL VPN gateway and the client transmit data, the SSL VPN gateway accesses the first quantum network node with the closest physical distance and completed authorization through a trusted channel. The trusted channel refers to a mechanism or protocol that provides a secure communication path between two communication entities. One way to establish it is that the SSL VPN gateway and the first quantum network node are in the same cabinet and directly connected by a shielded network cable. This channel ensures the confidentiality, integrity and availability of data during transmission, and prevents unauthorized access, tampering or eavesdropping. At the same time, through offline import, the SSL VPN gateway and the client 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 the key or certificate will not pass through the Internet or other network paths that may be monitored or attacked, ensuring the security of the transmission process. In this way, the SSL VPN gateway accesses the first quantum network node through a trusted channel and loads the security certificate by offline import, ensuring the confidentiality of network device data and reducing the risk of data leakage.

[0147] See also Figure 5 In some embodiments, step 011 (obtaining a first quantum key and a quantum key identifier from a first network node connected to a network device) includes:

[0148] 0111: Sending a quantum key application to the first network node;

[0149] 0112: Receive a first quantum key and a quantum key identifier distributed by the first network node according to the quantum key application, where the quantum key identifier is obtained by the first network node marking the first quantum key using the identification code of the first network node.

[0150] In some embodiments, the sending module is used to send a quantum key application to the first network node. The receiving module is used to receive a first quantum key and a quantum key identifier distributed by the first network node according to the quantum key application, where the quantum key identifier is obtained by the first network node marking the first quantum key using an identification code of the first network node.

[0151] In some embodiments, the processor is further used to send a quantum key application to the first network node, and 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 node.

[0152] Specifically, the network device sends a quantum key application to the first network node accessing the network device. After the first network node approves the quantum key application, it distributes the first quantum key and quantum key identifier generated from the quantum key distribution network to the network device. The quantum key identifier is obtained by the first network node using the identification code of the first network node to mark the first quantum key. The quantum key identifier helps to manage and use the quantum key. In this way, the first quantum key and quantum key identifier are obtained for key derivation in subsequent processes.

[0153] Continuing with the above example, please refer again to Figure 3 After the SSL VPN gateway receives the client hello message sent by the terminal, it sends a quantum key application to the first quantum network node directly connected to the SSL VPN gateway to obtain the quantum key. The first quantum network node directly connected to the SSLVPN gateway distributes the first quantum key QK_UUID and quantum key identifier UUID_QK of more than 128 bits generated by the quantum key distribution network to the SSL VPN gateway through a trusted channel. The quantum key identifier is obtained by the quantum network node connected to the SSL VPN gateway using the unique universal identification code of the quantum network node connected to the SSL VPN gateway to mark the first quantum key. The quantum key identifier helps to manage and use quantum keys. At the same time, the quantum network link control center generates a matching second quantum key QK_UUID through the quantum key distribution network, and stores it in the second quantum network node directly connected to the cryptographic service node connected to the client, instead of distributing it directly to the client. In this way, the first quantum key QK_UUID and quantum key identifier UUID_QK are obtained for subsequent key derivation.

[0154] See also Figure 6 In some embodiments, step 012 (performing post-quantum cryptography encryption processing on the quantum key identifier and sending the first encryption result after the post-quantum cryptography encryption processing to the terminal) includes:

[0155] 0121: concatenate the quantum key identifier and the randomly generated first random number to obtain a first handshake message;

[0156] 0122: Obtain a second handshake message according to the first handshake message and the first handshake random number in the first encryption result;

[0157] 0123: Perform post-quantum cryptographic derivation processing on the first handshake message to generate a first handshake key;

[0158] 0124: Perform post-quantum cryptographic encryption processing on the first handshake message to generate a first encrypted message in a first encryption result;

[0159] 0125: concatenate the quantum key identifier, the first handshake random number, and the signature parameter corresponding to the public key exchange algorithm used by the network device to obtain a first verification message;

[0160] 0126: Perform post-quantum cryptographic signature processing on the first verification message to generate a first signature message in the first encryption result;

[0161] 0127: Send the first encryption result to the terminal.

[0162] In certain embodiments, the splicing module is used to splice the quantum key identifier and the randomly generated first random number to obtain a first handshake message, and the processing module is used to obtain a second handshake message based on the first handshake message and the first handshake random number in the first encryption result. The derivation module is used to perform post-quantum cryptographic derivation processing on the first handshake message to generate a first handshake key. The encryption module is used to perform post-quantum cryptographic encryption processing on the first handshake message to generate a first encrypted message in the first encryption result. The splicing module is also used to splice the signature parameters corresponding to the quantum key identifier, the first handshake random number and the public key exchange algorithm used by the network device to obtain a first verification message. The signature module is used to perform post-quantum cryptographic signature processing on the first verification message to generate a first signature message in the first encryption result. The sending module is used to send the first encryption result to the terminal.

[0163] In certain embodiments, the processor is further configured to concatenate the quantum key identifier and the randomly generated first random number to obtain a first handshake message, obtain a second handshake message based on the first handshake message and the first handshake random number in the first encryption result, and perform post-quantum cryptographic derivation processing on the first handshake message to generate a first handshake key. The processor is further configured to perform post-quantum cryptographic encryption processing on the first handshake message to generate a first encrypted message in the first encryption result. The processor is further configured to concatenate the quantum key identifier, the first handshake random number, and the signature parameter corresponding to the public key exchange algorithm used by the network device to obtain a first verification message. The processor is further configured to perform post-quantum cryptographic signature processing on the first verification message to generate a first signature message in the first encryption result, and send the first encryption result to the terminal.

[0164] Specifically, the network device concatenates the quantum key identifier and the randomly generated first random number to obtain a first handshake message, which increases the complexity of the quantum key identifier. Then, the network device processes the first handshake message and the first handshake random number in the first encryption result to generate a second handshake message. The network device then performs post-quantum cryptographic derivation processing on the second handshake message to generate a first handshake key, which has the ability to resist quantum computing attacks. Then, the network device performs post-quantum cryptographic encryption processing on the second handshake message to generate a first encrypted message in the first encryption result. The network device then concatenates the signature parameters corresponding to the quantum key identifier, the first handshake random number, and the public key exchange algorithm used by the network device to obtain a first verification message. Finally, the network device performs post-quantum cryptographic signature processing on the first verification message to generate a first signature message in the first encryption result and sends the first encryption result to the network device. The first signature message is used to ensure the integrity of the message and the authenticity of the source. Any unauthorized access and tampering during data transmission will be detected. The confidentiality of the quantum key identifier is increased through the above-mentioned splicing and some other processing methods, and the quantum key identifier and its derivatives are processed using a post-quantum cryptographic algorithm to increase the complexity of the quantum key identifier by combining quantum key distribution technology with post-quantum cryptographic technology.

[0165] Continuing with the above example, the server message includes a ServerKeyExchange message, which contains the first encryption result, and signed_param is the signature parameter. Figure 3 After the SSL VPN gateway obtains the first quantum key QK_UUID and quantum key identifier UUID_QK, it sends the server message of the national secret SSL VPN protocol. When a post-quantum cryptographic certificate is available, the SSL VPN gateway-side PQC signature certificate and PQC encryption certificate are added to the Certificate message in the server message. When a post-quantum cryptographic certificate is not available, the SSL VPN gateway and the client can import each other's PQC signature public key or PQC encryption public key offline. After adding the SSL VPN gateway-side PQC signature certificate and PQC encryption certificate to the Certificate message, the ServerKeyExchange message that can be optionally sent in the server message is sent as mandatory, and the message is improved to add the following content:

[0166] The SSL VPN gateway concatenates the quantum key identifier UUID_QK and the first 128-bit random number r1 randomly generated by the SSL VPN gateway to obtain the first handshake message m1. Then, the SSL VPN gateway performs XOR processing on the first handshake message m1 and the first handshake random number R1 in the server message to obtain the second handshake message m2. Next, the SSL VPN gateway uses the second handshake message m2 as the encrypted message m in the PQC key encapsulation algorithm, and runs the G function of the PQC algorithm to obtain the first handshake key K1. The second handshake message m2 is then PQC encrypted to generate the first encrypted message in the server message. The SSL VPN gateway concatenates the quantum key identifier UUID_QK, the first handshake random number R1 in the server message, and the signed_param corresponding to the public key exchange algorithm defined by the secret SSL VPN in the ServerKeyExchange message to obtain the first verification message (UUID_QK|R1|signed_param), and uses the first verification message as M in the PQC signature algorithm for PQC signature protection to generate the first signed message M1 in the server message. Public key exchange algorithms include but are not limited to the five key exchange algorithms of ECDHE, ECC, IBSDH, IBC, and RSA. The above PQC encryption encapsulation information and PQC signature information are attached as the newly added ServerKeyExchange message to the corresponding signed_param of the public key exchange algorithm defined by the national secret SSL VPN protocol. In this way, the SSL VPN gateway increases the confidentiality of the quantum key identifier by splicing the quantum key identifier UUID_QK with the randomly generated first random number r1, and uses the post-quantum cryptographic algorithm to process the quantum key identifier UUID_QK and its derivatives to increase the complexity of the quantum key identifier by combining quantum key distribution technology with post-quantum cryptographic technology.

[0167] See also Figure 7 In some implementations, step 013 (decrypting the second encryption result sent by the terminal to obtain a second decryption result) includes:

[0168] 0131: receiving a second encryption result sent by the terminal, where the second encryption result is obtained by the terminal performing post-quantum cryptography encryption processing on the first decryption result, and the first decryption result is obtained by the terminal performing decryption processing on the first encryption result;

[0169] 0132: Decrypt the second encryption result to obtain a second decryption result, where the second decryption result includes the second handshake random number, the fourth handshake message and the second signature message.

[0170] In some embodiments, the receiving module is used to receive a second encryption result sent by the terminal, the second encryption result is obtained by the terminal performing post-quantum cryptographic encryption processing on the first decryption result, and the first decryption result is obtained by the terminal performing decryption processing on the first encryption result. The decryption module is used to decrypt the second encryption result to obtain a second decryption result, and the second decryption result includes a second handshake random number, a fourth handshake message, and a second signature message.

[0171] In some embodiments, the processor is further configured to receive a second encryption result sent by the terminal, the second encryption result is obtained by the terminal performing post-quantum cryptographic encryption processing on the first decryption result, and the first decryption result is obtained by the terminal performing decryption processing on the first encryption result. The processor is further configured to perform decryption processing on the second encryption result to obtain a second decryption result, the second decryption result including a second handshake random number, a fourth handshake message, and a second signature message.

[0172] Specifically, the network device receives the second encryption result sent by the terminal, and the second encryption result is obtained by the terminal performing post-quantum cryptographic encryption processing on the first decryption result, and the first decryption result is obtained by the terminal performing decryption processing on the first encryption result. Then, the network device decrypts the second encryption result to obtain a second decryption result, and the second decryption result includes a second handshake random number, a fourth handshake message, and a second signature message. In this way, the network device determines the availability of the channel for communication with the terminal, and obtains the key information of the terminal, which can be combined with the relevant key information of the network device to generate a more secure key.

[0173] Continuing with the above example, see Figure 3 , the SSL VPN gateway receives the ClientKeyExchange message sent by the client. The ClientKeyExchange message is obtained by the client performing PQC encryption processing on the first decryption result, and the first decryption result is obtained by the terminal decrypting the ServerKeyExchange message. Then, the SSLVPN gateway decrypts the ClientKeyExchange message to obtain the second decryption result, which includes the second handshake random number R2, the fourth handshake message m4, and the second signature message M2. In this way, the SSL VPN gateway determines the availability of the channel for communication with the client and obtains the client's key information, which can be combined with the relevant key information of the SSL VPN gateway to generate a more secure key.

[0174] See also Figure 8 In some embodiments, the method further comprises:

[0175] 018: Obtain the second handshake key according to the fourth handshake message;

[0176] 019: Obtain the third handshake message and the quantum key identifier according to the fourth handshake message and the second handshake random number.

[0177] In some embodiments, the derivation module is used to obtain the second handshake key according to the fourth handshake message, and to obtain the third handshake message and the quantum key identifier according to the fourth handshake message and the second handshake random number.

[0178] In some embodiments, the processor is further configured to obtain a second handshake key based on the fourth handshake message, and obtain a third handshake message and a quantum key identifier based on the fourth handshake message and the second handshake random number.

[0179] Specifically, the network device obtains the second handshake key according to the fourth handshake message. Then, the network device obtains the third handshake message and the quantum key identifier according to the fourth handshake message and the second handshake random number. The second handshake key obtained in this way is used for subsequent key derivation to obtain a key with good resistance to quantum computing attacks.

[0180] Continuing with the above example, please refer again to Figure 3 , the SSL VPN gateway obtains the second handshake key K2 according to the fourth handshake message m4. Then, the SSL VPN gateway obtains the third handshake message m3 by XORing the fourth handshake message m4 and the second handshake random number R2, and then uses the third handshake message m3 to obtain the quantum key identifier UUID_QK. In this way, the SSL VPN gateway obtains the second handshake key K2 for subsequent key generation to obtain a key with good resistance to quantum computing attacks.

[0181] See also Fig. 9 In some embodiments, the method further comprises:

[0182] 020: Obtain a second verification message according to the second signature message;

[0183] 021: Perform post-quantum cryptographic signature verification on the second signature message to confirm the correctness of the second verification message. The second verification message is obtained by concatenating the quantum key identifier, the second handshake random number, and the key material information corresponding to the public key exchange algorithm used by the terminal.

[0184] In some embodiments, the derivation module is further used to obtain a second verification message based on the second signature message, and the verification module is used to perform post-quantum cryptographic verification on the second signature message to confirm the correctness of the second verification message. The second verification message is obtained by splicing the key material information corresponding to the quantum key identifier, the second handshake random number, and the public key exchange algorithm used by the terminal.

[0185] In some embodiments, the processor is also used to obtain a second verification message based on the second signature message, and perform post-quantum cryptographic signature verification on the second signature message to confirm the correctness of the second verification message. The second verification message is obtained by splicing the key material information corresponding to the quantum key identifier, the second handshake random number, and the public key exchange algorithm used by the terminal.

[0186] Specifically, the network device obtains the second verification message based on the second signature message, and then performs post-quantum cryptographic signature verification on the second signature message to confirm the correctness of the second verification message, which is obtained by splicing the quantum key identifier, the second handshake random number, and the key material information corresponding to the public key exchange algorithm used by the terminal. By performing signature verification processing, the network device can confirm the identity of the terminal and the integrity of the data, providing security for subsequent data transmission.

[0187] Continuing with the above example, please refer again to Figure 3 , the SSL VPN gateway obtains the second verification message according to the second signature message M2, and then performs post-quantum cryptographic signature verification on the second signature message M2 to confirm the correctness of the second verification message, that is, to confirm that the correct quantum key identifier UUID_QK and the second handshake random number R2 have been received. In this way, the SSL VPN gateway and the client realize secure data exchange and communication, ensuring the confidentiality, integrity and authenticity of the data.

[0188] See also Fig.10 In some implementations, step 015 (generating a second master key according to the first master key, the first encryption result, the second decryption result, and the first quantum key to encrypt communication between the network device and the terminal) includes:

[0189] 0151: XOR the first master key and the concatenation to generate the second master key, where the concatenation is obtained by concatenating the XOR and the first quantum key, and the XOR is obtained by XORing the first handshake key and the second handshake key;

[0190] 0152: Encrypt the communication between the network device and the terminal according to the second master key.

[0191] In some embodiments, the derivation module is further used to perform an XOR process on the first master key and the concatenation to generate a second master key, the concatenation is obtained by concatenating the XOR body and the first quantum key, and the XOR body is obtained by XORing the first handshake key and the second handshake key. The encryption module is also used to encrypt the communication between the network device and the terminal according to the second master key.

[0192] In some embodiments, the processor is also used to perform XOR processing on the first master key and the splicing body to generate a second master key, the splicing body is obtained by splicing the XOR body and the first quantum key, the XOR body is obtained by XOR processing the first handshake key and the second handshake key, and encrypt the communication between the network device and the terminal according to the second master key.

[0193] Specifically, the network device performs an XOR process on the first handshake key and the second handshake key to obtain an XOR body, and then concatenates the XOR body and the quantum key identifier to obtain a concatenation body. Next, the network device performs an XOR process on the concatenation body and the first master key to obtain a second master key. Finally, the network device protects the communication between the network device and the terminal according to the second master 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, and the data transmitted during the communication process is protected.

[0194] Continuing with the above example, the SSL VPN gateway calculates the first master key master_secret according to the national secret SSL VPN protocol. Then, the SSL VPN gateway performs XOR processing on the 32-byte, i.e., 256-bit first handshake key K1 and the 32-byte second handshake key K2 to generate an XOR body (K1⊕K2), and then concatenates the XOR body with the 16-byte quantum key identifier UUID_QK to obtain a concatenation body ((K1⊕K2) | UUID_QK). Next, the SSL VPN gateway performs XOR processing on the concatenation body and the 48-byte first master key master_secret to obtain the second master key master_secret2. Finally, the SSL VPN gateway uses the generated second master key master_secret2 to encrypt the communication between the SSL VPN gateway and the client. In this way, the ability of 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. In the communication process of the national secret SSL VPN protocol, the authentication scope of the CerficateVerify message and Finished message of the SSL VPN gateway and the client covers the newly added PQC related messages, such as the PQC key encapsulation information and PQC signature information in the ServerKeyExchange message, and the PQC key encapsulation information and PQC signature information in the ClientKeyExchange message. After the SSL VPN gateway and the client obtain the second master key master_secret2 respectively, they calculate the working key according to the national secret SSL VPN protocol, including the verification key and encryption key of the client and SSL VPN gateway for application data protection of the record layer protocol.

[0195] See also Fig.11 The embodiment of the present application provides a method for enhancing the anti-quantum security of the national secret SSL VPN protocol of a communication network, wherein the communication network includes a terminal and a network device, and the method is used for the terminal, and the method includes:

[0196] 031: receiving a first encryption result of a post-quantum cryptographic encryption process performed by a network device on a quantum key identifier, where the quantum key identifier is obtained by the network device from a first network node to which the network device is connected;

[0197] 032: Decrypt the first encryption result to obtain a first decryption result;

[0198] 033: Perform post-quantum encryption processing on the first decryption result, and send the second encryption result processed by post-quantum cryptography to the network device;

[0199] 034: Obtain a first master key according to the first decryption result and the second encryption result;

[0200] 035: Generate a second master key based on the first master key, the first decryption result, the second encryption result and the second quantum key to encrypt the communication between the network device and the terminal.

[0201] The embodiment of the present application also provides a terminal, including a memory and a processor. The method of the embodiment of the present application can be implemented by the terminal of the embodiment of the present application. Specifically, a computer program is stored in the memory, and the processor is used to receive a first encryption result of a network device performing post-quantum cryptographic encryption processing on a quantum key identifier, and the quantum key identifier is obtained by the 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 post-quantum encryption processed, and the second encryption result processed by post-quantum cryptography is sent to the network device. The processor is also used to obtain a first master key based on the first decryption result and the second encryption result, and to obtain a second master key based on the first master key, the first decryption result, the second encryption result and the second quantum key generation, so as to encrypt the communication between the network device and the terminal.

[0202] The embodiment of the present application also provides a terminal. The method of the embodiment of the present application can be implemented by the terminal of the embodiment of the present application. Specifically, the terminal includes a receiving module, a decryption module, an encryption module and a derivation module. The receiving module is used to receive a first encryption result of a network device performing post-quantum cryptographic encryption processing on a quantum key identifier, and the quantum key identifier is obtained by the network device from the first network node connected. The decryption module is used to decrypt the first encryption result to obtain a first decryption result. The encryption module is used to perform post-quantum encryption processing on the first decryption result, and send the second encryption result after post-quantum cryptographic encryption processing to the network device. The derivation module is used to obtain a first master key based on the first decryption result and the second encryption result, and to obtain a second master key based on the first master key, the first decryption result, the second encryption result and the second quantum key generation, so as to encrypt the communication between the network device and the terminal.

[0203] Specifically, in the implementation manner of the present application, the network device sends a quantum key application to the first network node connected to the network device, and then obtains the first quantum key and quantum key identifier from the first network node. The first quantum key and quantum key identifier can be used to generate a key that is resistant to quantum computing attacks, and the quantum key identifier helps to use and manage the quantum key. After obtaining the first quantum key and quantum key identifier, the network device performs post-quantum cryptographic encryption processing on the quantum key identifier, and sends the first encryption result of the post-quantum cryptographic encryption processing to the terminal. By performing post-quantum cryptographic encryption processing on the quantum key identifier, the quantum key distribution technology is combined with the post-quantum cryptographic technology to improve the complexity of the key, and the encryption result is sent to the terminal for sharing so that the communication data of the network device and the terminal in the communication network are consistent.

[0204] Then, the terminal receives the first encryption result sent by the network device. The first encryption result is obtained by the network device performing post-quantum cryptographic encryption processing on the quantum key identifier. The quantum key identifier is obtained by the network device from the first network node accessing the network device. Then, the terminal decrypts the first encryption result to obtain the first decryption result, and the first result includes relevant information about the key in the network device. Then, the terminal performs post-quantum cryptographic encryption processing on the first decryption result to obtain the second encryption result. After obtaining the second encryption result, the terminal sends the second encryption result to the network device so that the network device can also share the terminal's information and the generated key. The terminal then obtains the first master key based on the first decryption result and the second encryption result, and generates the second master key based on the first master key, the first decryption result, the second encryption result and the second quantum key to encrypt the communication between the terminal and the network device.

[0205] At the same time, the network device receives the second encryption result sent by the terminal, and decrypts the second encryption result to obtain a second decryption result. The network device then obtains the first master key based on the first encryption result and the second decryption result, and generates the second master key based on the first master key, the first encryption result, the second decryption result and the first quantum key to encrypt the communication between the network device and the terminal.

[0206] Continuing with the above example, see Figure 3 , the SSL VPN gateway receives the first quantum key QK_UUID and quantum key identifier UUID_QK sent from the first quantum network node connected to the network device, and the quantum key identifier helps to manage and use the quantum key. After obtaining the first quantum key QK_UUID and quantum key identifier UUID_QK, the SSL VPN gateway performs post-quantum cryptography encryption on the quantum key identifier UUID_QK and sends the ServerKeyExchange message processed by post-quantum cryptography encryption to the network device.

[0207] Then, the client receives the ServerKeyExchange message sent by the SSL VPN gateway. The ServerKeyExchange message is obtained by the SSL VPN gateway performing post-quantum cryptographic encryption on the quantum key identifier. The quantum key identifier is obtained by the SSL VPN gateway from the first network node connected to the SSL VPN gateway. The client then performs post-quantum cryptographic decryption on the ServerKeyExchange message to obtain a first decryption result. The first decryption result includes relevant information about the key in the SSL VPN gateway. The client then performs post-quantum cryptographic encryption on the first decryption result to obtain a ClientKeyExchange message. After obtaining the ClientKeyExchange message, the client sends the ClientKeyExchange message to the SSL VPN gateway. Subsequently, the client calculates the first master key master_secret according to the relevant information in the first decryption result and the relevant information in the ClientKeyExchange message in accordance with the national secret SSL VPN protocol. Then, the second master key master_secret2 is generated based on the first master key master_secret, the first decryption result and the client message to encrypt the communication between the client and the SSL VPN gateway and protect the communication data.

[0208] At the same time, the SSL VPN gateway receives the ClientKeyExchange message sent by the client, and performs post-quantum cryptographic decryption on the client message to obtain the second decryption result. Subsequently, the SSL VPN gateway calculates the first master key master_secret according to the relevant information in the ServerKeyExchange message and the second decryption message in accordance with the national secret SSL VPN protocol. The second master key master_secret2 is then generated based on the first master key master_secret, the second decryption result and the ServerKeyExchange message to encrypt the communication between the client and the SSL VPN gateway and protect the communication data. In this way, it is ensured that even in the face of possible threats from quantum computers, the TLS handshake between the client and the secure access gateway can still provide secure data transmission. By using post-quantum cryptography algorithms and quantum key distribution technology, communications can be more secure against possible threats from quantum computers.

[0209] In summary, in the anti-quantum security enhancement method, communication system, terminal and network device of the national secret SSL VPN protocol of the communication network of the implementation mode of the present application, for the communication process between the network device and the terminal, the network device and the terminal apply for a quantum key and a quantum key identifier, and use a post-quantum cryptographic algorithm to encrypt the quantum key to generate an anti-quantum key that can resist quantum computing attacks. The post-quantum cryptographic algorithm is a series of encryption algorithms designed to resist quantum computing attacks. The network device and the terminal exchange the random numbers generated by each of them to generate a master key, and then fuse the master key, anti-quantum key and quantum key for use in the communication between the network device and the terminal. In this way, the anti-quantum attack capability of the network communication between the network device and the terminal is enhanced.

[0210] See also Fig.12 In some embodiments, the first decryption result includes a second handshake message and a first handshake random number, and the method further includes:

[0211] 036: Obtain the first handshake message according to the second handshake message and the first handshake random number;

[0212] 037: Obtain a quantum key identifier according to the first handshake message.

[0213] In some embodiments, the derivation module is used to obtain the first handshake message based on the second handshake message and the first handshake random number, and the processing module is used to obtain the quantum key identifier based on the first handshake message.

[0214] In some embodiments, the processor is further configured to obtain a first handshake message based on the second handshake message and the first handshake random number, and to obtain a quantum key identifier based on the first handshake message.

[0215] Specifically, the terminal obtains the first handshake message according to the second handshake message and the first handshake random number, and obtains the quantum key identifier according to the first handshake message. In this way, the quantum key identifier is obtained, and the quantum key identifier can be used to apply for the second quantum key.

[0216] Continuing with the above example, see Figure 3 , the client XORs the second handshake message m2 with the first handshake random number R1 to obtain the first handshake message m1, and then obtains the quantum key identifier UUID_QK according to the first handshake message m1. In this way, the quantum key identifier UUID_QK is obtained, and the quantum key identifier UUID_QK can be used to apply for a quantum key.

[0217] See also Fig.13 In some embodiments, the first decryption result includes a first signed message, and the method further includes:

[0218] 038: Obtain a first verification message according to the first signature message;

[0219] 039: Perform post-quantum cryptographic signature verification on the first signature message to confirm the correctness of the first verification message, where the first verification message is obtained by concatenating the quantum key identifier, the first handshake random number, and the signature parameter corresponding to the public key exchange algorithm used by the network device;

[0220] 040: When the obtained quantum key identifier is correct, a second quantum key is obtained from the service node of the access terminal, and the second quantum key is distributed to the service node by the second network node.

[0221] In some embodiments, the processing module is further used to obtain a first verification message according to the first signature message, and the signature verification module is used to perform post-quantum cryptographic signature verification on the first signature message to confirm the correctness of the first verification message, and the first verification message is obtained by splicing the quantum key identifier, the first handshake random number, and the signature parameter corresponding to the public key exchange algorithm used by the network device. The acquisition module is used to obtain the second quantum key from the service node of the access terminal when the obtained quantum key identifier is correct, and the second quantum key is distributed to the service node by the second network node.

[0222] In some embodiments, the processor is also used to obtain a first verification message based on the first signature message, and perform post-quantum cryptographic signature verification on the first signature message to confirm the correctness of the first verification message, the first verification message is obtained by concatenating the quantum key identifier, the first handshake random number, and the signature parameters corresponding to the public key exchange algorithm used by the network device, and when the obtained quantum key identifier is correct, obtain the second quantum key from the service node of the access terminal, and the second quantum key is distributed to the service node by the second network node.

[0223] Specifically, the terminal obtains a first verification message based on the first signature message. Then, the terminal performs post-quantum cryptographic signature verification on the first signature message to confirm the correctness of the first verification message, which is obtained by splicing the signature parameters corresponding to the quantum key identifier, the first handshake random number, and the public key exchange algorithm used by the network device. Then, if the obtained quantum key identifier is correct, the second quantum key is obtained from the service node of the access terminal, and the second quantum key is distributed to the service node by the second network node. In this way, the source of the received data can be confirmed and the data can be guaranteed not to be unauthorizedly accessed or tampered with during transmission, and it also ensures that the obtained second quantum key matches the first quantum key of the first network device, which is used to generate a more secure key.

[0224] Continuing with the above example, see Figure 3 , the client obtains the first verification message based on the first signature message M1. Then, the client performs post-quantum cryptographic signature verification on the first signature message M1 to confirm that the correct first verification message has been received, that is, to confirm that the correct quantum key identifier UUID_QK and the first handshake random number R1 have been received. When the received first verification message is correct, that is, when the received quantum key identifier UUID_QK is correct, the network device applies to the second quantum network node connected to the secure access gateway for the second quantum key QK_UUID through the quantum key identifier UUID_QK. This ensures that the obtained second quantum key QK_UUID matches the first quantum key of the network device, which is used to generate a more secure key.

[0225] See also Fig.14 In some embodiments, step 040 (obtaining a second quantum key from a service node of the access terminal) includes:

[0226] 0401: Use the service node to inject multiple keys into the terminal's cryptographic module;

[0227] 0402: Send a quantum key application to the service node. The quantum key application is protected by a protection key, which is a random key from multiple keys injected into the cryptographic module.

[0228] 0403: receiving a quantum key encryption result obtained by the service node encrypting the second quantum key according to the protection key, where the second quantum key is generated by the second network node accessing the service node and distributed to the service node;

[0229] 0404: Decrypt the quantum key encryption result to obtain a second quantum key.

[0230] In some embodiments, the charging module uses the service node to charge multiple keys to the cryptographic module of the terminal, and the sending module is also used to send a quantum key application to the service node, and the quantum key application is protected by a protection key, and the protection key is a randomly used one from the multiple keys charged to the cryptographic module. The receiving module is also used to receive the quantum key encryption result obtained by the service node encrypting the second quantum key according to the protection key, and the second quantum key is generated by the second network node connected to the service node and distributed to the service node. The decryption module is used to decrypt the quantum key encryption result to obtain the second quantum key.

[0231] In some embodiments, the processor is further used to use the service node to charge multiple keys to the cryptographic module of the terminal, and send a quantum key application to the service node, the quantum key application is protected by a protection key, and the protection key is a randomly used one of the multiple keys charged to the cryptographic module. The processor is also used to receive a quantum key encryption result obtained by the service node encrypting a second quantum key according to the protection key, the second quantum key is generated by a second network node accessing the service node and distributed to the service node, and decrypt the quantum key encryption result to obtain the second quantum key.

[0232] Specifically, the terminal uses the service node of the access terminal to inject the key into the cryptographic module of the terminal so that the key in the cryptographic module is sufficient for the terminal to use. When the correctness of the quantum key identifier is confirmed, the terminal sends a quantum key application to the service node, and the quantum key application is encrypted and protected by a key randomly extracted from multiple keys in the cryptographic module as a protection key. Then, the terminal receives the quantum key encryption result obtained by the service node by encrypting the second quantum key according to the protection key. The second quantum key is generated by the second network node of the access service node and distributed to the service node. The quantum key encryption result is decrypted to obtain the second quantum key. In this way, the second quantum key is obtained, and the second quantum key can be used to generate a key with the ability to resist quantum computing attacks.

[0233] Continuing with the above example, please refer again to Figure 3, the client uses the cryptographic service node to pre-charge the client's personal cryptographic module with a total of 1M bits of 128-bit keys. The personal cryptographic module includes but is not limited to the smart cryptographic key (HSM) and the virtual security module (VSM). Then, the client sends a quantum key application to the cryptographic service node and randomly uses a key in the smart cryptographic key as the protection key. One protection method is that the client uses the SM3 algorithm to hash the key ID and the application content. After that, the cryptographic service node uses the protection key to calculate HMAC (Hash-based Message Authentication Code) to ensure the integrity and authenticity of the data. HMAC is a method that uses hash functions and keys to provide data integrity and source authentication.

[0234] After the quantum key application is successful, the client receives the quantum key encryption result obtained by the cryptographic service node by encrypting the second quantum key QK_UUID according to the protection key. The second quantum key QK_UUID is generated by the second quantum network node connected to the cryptographic service node and distributed to the cryptographic service node. The client then decrypts the quantum key encryption result according to the protection key to obtain the second quantum key QK_UUID. This ensures the security of the quantum key application process. By using random keys and hash functions, the client can ensure the integrity and authenticity of the application content during the transmission process.

[0235] See also Fig.15 In some embodiments, step 033 (performing post-quantum cryptographic processing on the first decryption result, and sending the second encryption result processed by post-quantum cryptographic processing to the network device) includes:

[0236] 0331: concatenate the quantum key identifier and the randomly generated second random number to obtain a third handshake message;

[0237] 0332: Generate a fourth handshake message according to the third handshake message and the second handshake random number in the second encryption result;

[0238] 0333: Perform post-quantum cryptographic derivation processing on the fourth handshake message to generate the second handshake key;

[0239] 0334: Perform post-quantum cryptography encryption processing on the fourth handshake message to generate a second encrypted message in the second encryption result;

[0240] 0335: concatenate the quantum key identifier, the second handshake random number, and the key material information corresponding to the public key exchange algorithm used by the terminal to obtain a second verification message;

[0241] 0336: Perform post-quantum cryptographic signature processing on the second verification message to generate a second signature message in the second encryption result;

[0242] 0337: Send the second encryption result to the network device.

[0243] In certain embodiments, the splicing module is used to splice the quantum key identifier and the randomly generated second random number to obtain a third handshake message. The processing module is used to process the third handshake message and the second handshake random number in the second encryption result to generate a fourth handshake message. The derivation module is used to perform post-quantum cryptographic derivation processing on the fourth handshake message to generate a second handshake key. The encryption module is used to perform post-quantum cryptographic encryption processing on the fourth handshake message to generate a second encrypted message in the second encryption result. The splicing module is also used to splice the key material information corresponding to the quantum key identifier, the second handshake random number and the public key key exchange algorithm used by the terminal to obtain a second verification message. The signature module is used to perform post-quantum cryptographic signature processing on the second verification message to generate a second signature message in the second encryption result, and the sending module is used to send the second encryption result to the network device.

[0244] In certain embodiments, the processor is further configured to concatenate the quantum key identifier and the randomly generated second random number to obtain a third handshake message, and to process the third handshake message and the second handshake random number in the second encryption result to generate a fourth handshake message, and to perform post-quantum cryptographic derivation processing on the fourth handshake message to generate a second handshake key. The processor is further configured to perform post-quantum cryptographic encryption processing on the fourth handshake message to generate a second encrypted message in the second encryption result, and to concatenate the quantum key identifier, the second handshake random number, and the key material information corresponding to the public key exchange algorithm used by the terminal to obtain a second verification message, and to perform post-quantum cryptographic signature processing on the second verification message to generate a second signature message in the second encryption result and send the second encryption result to the network device.

[0245] Specifically, the terminal performs a splicing process on the quantum key identifier and the randomly generated second random number to obtain a third handshake message. Then, the terminal performs an XOR process on the third handshake message and the second handshake random number in the second encryption result to generate a fourth handshake message in the second encryption result. Next, the terminal performs a post-quantum cryptographic derivation process on the fourth handshake message to generate a second handshake key, and performs a post-quantum cryptographic encryption process on the fourth handshake message to generate a second encrypted message in the second encryption result. The terminal then performs a splicing process on the quantum key identifier, the second handshake random number, and the key material information corresponding to the public key key exchange algorithm used by the terminal to obtain a second verification message. Finally, the terminal performs a post-quantum cryptographic signature process on the second verification message to generate a second signature message in the second encryption result. The terminal sends the second encryption result to the network device. In this way, the confidentiality of the quantum key identifier is increased by splicing the quantum key identifier with the second random number, and the quantum key identifier and its derivative products are encrypted using a post-quantum cryptographic algorithm to increase the complexity of the quantum key identifier by combining quantum key distribution technology with post-quantum cryptographic technology.

[0246] Continuing with the above example, the client message includes a ClientKeyExchange message, which contains the second encryption result, and exchange_keys is the key material information. Figure 3 After obtaining the second quantum key QK_UUID, the client sends subsequent client messages of the national secret SSL VPN protocol. When a post-quantum cryptographic certificate is available, the client PQC signature certificate and PQC encryption certificate are added to the Certificate message in the client message. When a post-quantum cryptographic certificate is not available, the SSL VPN gateway and the client can import each other's PQC signature public key or PQC encryption public key offline. After adding the client PQC signature certificate and PQC encryption certificate to the Certificate message, the ClientKeyExchange message is improved and the following content is added:

[0247] The client concatenates the quantum key identifier UUID_QK and the second random number r2 of 128 bits randomly generated by the client to obtain the third handshake message m3. Then, the client XORs the third handshake message m3 and the second handshake random number R2 in the client message to obtain the fourth handshake message m4. Next, the client uses the fourth handshake message m4 as the encrypted message m in the PQC key encapsulation algorithm, and runs the G function of the PQC algorithm to obtain the second handshake key K2. The fourth handshake message m4 is then PQC encrypted to generate the second encrypted message in the client message. The client concatenates the quantum key identifier UUID_QK, the second handshake random number R2 in the client message, and the exchange_keys corresponding to the public key exchange algorithm defined by the Chinese secret SSLVPN in the ClientKeyExchange message to obtain the first verification message (UUID_QK|R2|exchange_keys), and uses the first verification message as M in the PQC signature algorithm for PQC signature protection to generate the first signature message M1 in the server message. Public key exchange algorithms include but are not limited to the five key exchange algorithms ECDHE, ECC, IBSDH, IBC, and RSA. The above PQC encryption encapsulation information and PQC signature information are attached as the newly added content of the ClientKeyExchange message to the exchange_keys corresponding to the public key exchange algorithm defined by the National Secret SSL VPN Protocol. In this way, the client increases the confidentiality of the quantum key identifier by splicing the quantum key identifier UUID_QK with the randomly generated second random number r2, and uses the post-quantum cryptographic algorithm to process the quantum key identifier UUID_QK and its derivatives to combine quantum key distribution technology with post-quantum cryptographic technology to increase the complexity of the quantum key identifier.

[0248] See also Fig.16 In some embodiments, the first decryption result includes a second handshake message, and step 035 (generating a second master key according to the first master key, the first decryption result, the second encryption result, and the second quantum key to encrypt the communication between the network device and the terminal) includes:

[0249] 0351: Obtain the first handshake key according to the second handshake message;

[0250] 0352: XOR the first master key and the concatenation to generate the second master key, the concatenation is obtained by concatenating the XOR and the second quantum key, and the XOR is obtained by XORing the first handshake key and the second handshake key;

[0251] 0353: Encrypt the communication between the network device and the terminal according to the second master key.

[0252] In some embodiments, the derivation module is further used to obtain the first handshake key according to the second handshake message, and the processing module is further used to perform XOR processing on the first master key and the splice to generate the second master key, the splice is obtained by splicing the XOR body and the second quantum key, and the XOR body is obtained by XOR processing the first handshake key and the second handshake key. The encryption module is also used to encrypt the communication between the network device and the terminal according to the second master key.

[0253] In some embodiments, the processor is further configured to obtain the first handshake key according to the second handshake message, and to generate the second master key by performing an XOR process on the first master key and the concatenation, the concatenation being obtained by performing a concatenation process on the XOR body and the second quantum key, and the XOR body being obtained by performing an XOR process on the first handshake key and the second handshake key. The processor is further configured to encrypt the communication between the network device and the terminal according to the second master key.

[0254] Specifically, the terminal first obtains the first handshake key according to the second handshake message. Then, the terminal performs XOR processing on the first handshake key and the second handshake key to obtain an XOR body. The terminal then splices the XOR body and the first quantum key to obtain a spliced ​​body. Then, the terminal performs XOR processing on the first master key and the spliced ​​body to generate a second master key. Finally, the terminal uses the generated second master key to encrypt the communication between the network device and the terminal, thereby enhancing the ability of the communication between the terminal and the network device to resist quantum computing attacks by using a key generated by combining quantum key distribution technology and post-quantum cryptography technology, and protecting the data transmitted during the communication process.

[0255] Continuing with the above example, see Figure 3, the client first obtains the first handshake key K1 according to the second handshake message m2. The client calculates the first master key master_secret according to the national secret SSL VPN protocol. Then, the client XORs the 32-byte, i.e. 256-bit first handshake key K1 and the 32-byte second handshake key K2 to generate an XOR body (K1⊕K2), and then concatenates the XOR body with the 16-byte quantum key identifier UUID_QK to obtain a concatenation body ((K1⊕K2) | UUID_QK). Next, the client XORs the concatenation body with the 48-byte first master key master_secret to obtain the second master key master_secret2. Finally, the client uses the generated second master key master_secret2 to encrypt the communication between clients. In this way, the ability of 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. In the communication process of the national secret SSL VPN protocol, the authentication scope of the CerficateVerify message and Finished message of the client and SSL VPN gateway covers the newly added PQC related messages, such as the PQC key encapsulation information and PQC signature information in the ServerKeyExchange message, and the PQC key encapsulation information and PQC signature information in the ClientKeyExchange message. After the client and the client obtain the second master key master_secret2 respectively, they calculate the working key according to the national secret SSL VPN protocol, including the verification key and encryption key of the client and SSL VPN gateway for application data protection of the record layer protocol.

[0256] The present application also provides a computer-readable storage medium containing a computer program. When the computer program is executed by one or more processors, the one or more processors execute the voice interaction method of the present application.

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

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

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

[0260] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A method for enhancing the quantum security of a national secret SSL VPN protocol in a communication network, wherein the communication network includes a terminal and a network device, and the method is used for the network device. include: Acquire a first quantum key and a quantum key identifier from a first network node connected to the network device; Performing post-quantum cryptography encryption processing on the quantum key identifier, and sending a first encryption result after the post-quantum cryptography encryption processing to the terminal; decrypting a second encryption result received and sent by the terminal to obtain a second decryption result, where the second encryption result is obtained based on the first encryption result; Obtain a first master key according to the first encryption result and the second decryption result; A second master key is generated according to the first master key, the first encryption result, the second decryption result and the first quantum key to encrypt communication between the network device and the terminal.

2. The method according to claim 1, It is characterized in that The method further comprises: Accessing a first network node through a pre-established channel; Load the security certificate of the terminal or the security certificate of the network device.

3. The method according to claim 1, It is characterized in that The obtaining of a first quantum key and a quantum key identifier from a first network node connected to the network device includes: Sending a quantum key application to the first network node; 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 node.

4. The method according to claim 1, It is characterized in that The performing post-quantum cryptographic encryption processing on the quantum key identifier and sending the first encryption result after the post-quantum cryptographic encryption processing to the terminal includes: Concatenating the quantum key identifier and a randomly generated first random number to obtain a first handshake message; Obtain a second handshake message according to the first handshake message and the first handshake random number in the first encryption result; Performing post-quantum cryptographic derivation processing on the first handshake message to generate a first handshake key; Performing post-quantum cryptographic encryption processing on the first handshake message to generate a first encrypted message in the first encryption result; Concatenate the quantum key identifier, the first handshake random number, and a signature parameter corresponding to a public key exchange algorithm used by the network device to obtain a first verification message; Performing post-quantum cryptographic signature processing on the first verification message to generate a first signature message in the first encryption result; The first encryption result is sent to the terminal.

5. The method according to claim 1, It is characterized in that The decrypting the received second encryption result sent by the terminal to obtain the second decryption result includes: receiving the second encryption result sent by the terminal, where the second encryption result is obtained by the terminal performing post-quantum cryptography encryption processing on the first decryption result, and the first decryption result is obtained by the terminal performing decryption processing on the first encryption result; The second encryption result is decrypted to obtain a second decryption result, where the second decryption result includes a second handshake random number, a fourth handshake message, and a second signature message.

6. The method according to claim 5, It is characterized in that The method further comprises: Obtaining a second handshake key according to the fourth handshake message; A third handshake message and a quantum key identifier are obtained according to the fourth handshake message and the second handshake random number.

7. The method according to claim 5, It is characterized in that The method further comprises: Obtain a second verification message according to the second signature message; Perform post-quantum cryptographic signature verification on the second signature message to confirm the correctness of the second verification message, where the second verification message is obtained by concatenating the quantum key identifier, the second handshake random number, and the key material information corresponding to the public key exchange algorithm used by the terminal.

8. The method according to claim 6, It is characterized in that The first encryption result includes a first handshake key, and the second master key is generated according to the first master key, the first encryption result, the second decryption result and the first quantum key to encrypt communication between the network device and the terminal, including: Performing an XOR process on the first master key and a concatenation, where the concatenation is obtained by concatenating an XOR body and the first quantum key, and the XOR body is obtained by performing an XOR process on the first handshake key and the second handshake key; The communication between the network device and the terminal is encrypted according to the second master key.

9. A method for enhancing the quantum security of a national secret SSL VPN protocol in a communication network, wherein the communication network includes a terminal and a network device, and the method is used for the terminal. include: receiving a first encryption result of post-quantum cryptographic encryption processing performed by the network device on a quantum key identifier, where the quantum key identifier is obtained by the network device from a first network node to which the network device accesses; Decrypting the first encryption result to obtain a first decryption result; Performing post-quantum cryptographic processing on the first decryption result, and sending a second encryption result after the post-quantum cryptographic processing to the network device; Obtain a first master key according to the first decryption result and the second encryption result; A second master key is generated according to the first master key, the first decryption result, the second encryption result and the second quantum key to encrypt the communication between the network device and the terminal.

10. The method according to claim 9, It is characterized in that The first decryption result includes a second handshake message and a first handshake random number, and the method further includes: Obtain a first handshake message according to the second handshake message and the first handshake random number; The quantum key identifier is obtained according to the first handshake message.

11. The method according to claim 9, It is characterized in that The first decryption result includes a first signed message, and the method further includes: Obtain a first verification message according to the first signed message; Performing post-quantum cryptographic signature verification on the first signature message to confirm the correctness of a first verification message, where the first verification message is obtained by concatenating the quantum key identifier, the first handshake random number, and a signature parameter corresponding to a public key exchange algorithm used by the network device; When the obtained quantum key identifier is correct, a second quantum key is obtained from a service node connected to the terminal.

12. The method according to claim 11, It is characterized in that The obtaining of the second quantum key from a service node connected to the terminal includes: Using the service node to inject multiple keys into the cryptographic module of the terminal; Sending a quantum key application to the service node, wherein the quantum key application is protected by a protection key, and the protection key is a randomly used one from a plurality of keys injected into the cryptographic module; receiving a quantum key encryption result obtained by the service node encrypting the second quantum key according to the protection key, where the second quantum key is generated by a second network node connected to the service node and distributed to the service node; The quantum key encryption result is decrypted to obtain the second quantum key.

13. The method according to claim 10, It is characterized in that The performing post-quantum encryption processing on the first decryption result, and sending the second encryption result after the post-quantum cryptographic encryption processing to the network device, comprises: Concatenating the quantum key identifier and the randomly generated second random number to obtain a third handshake message; Generate a fourth handshake message by processing the third handshake message and the second handshake random number in the second encryption result; Performing post-quantum cryptography derivation processing on the fourth handshake message to generate a second handshake key; Performing post-quantum cryptographic encryption processing on the fourth handshake message to generate a second encrypted message in the second encryption result; Concatenate the quantum key identifier, the second handshake random number, and key material information corresponding to the public key exchange algorithm used by the terminal to obtain a second verification message; Performing post-quantum cryptographic signature processing on the second verification message to generate a second signature message in the second encryption result; The second encryption result is sent to the network device.

14. The method according to claim 13, It is characterized in that The first decryption result includes a second handshake message, and the second master key is generated according to the first master key, the first decryption result, the second encryption result and the second quantum key to encrypt the communication between the network device and the terminal, including: Obtaining a first handshake key according to the second handshake message; Performing an XOR process on the first master key and a concatenation to generate the second master key, the concatenation is obtained by concatenating an XOR body and the second quantum key, and the XOR body is obtained by performing an XOR process on the first handshake key and the second handshake key; The communication between the network device and the terminal is encrypted according to the second master key.

Citation Information

Cited By

  • Method and system for fusing quantum key one-time pad in TLS recording layer

    CN121056140A

  • Method and system for integrating quantum key one-time pad in tls record layer

    CN121056140B

  • Data protection method for fusing quantum key in TLS protocol 0-RTT

    CN121056242A

  • Data protection method of fusing quantum key in tls protocol 0-rtt

    CN121056242B

  • Method and system to increase security in VPN services

    EP4761177A1