Quantum-resistant security enhancement method for security assertion labeling protocol

By using post-quantum cryptographic algorithm and quantum key in communication networks to encrypt and sign protection of identity assertions, the problem of insufficient quantum resistance under quantum computing attacks by the existing security assertion marking protocol is solved, and communication data information is realized efficient quantum computing attack capability.

CN118631457BActive Publication Date: 2024-12-03中电信量子信息科技集团有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411122393.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-12-03
Estimated Expiration
2044-08-15

AI Technical Summary

Technical Problem

The existing security assertion marking protocols have the problem of insufficient quantum capability in the face of quantum computing attacks, and cannot effectively resist quantum computing attacks, resulting in the security of communication data information being threatened.

Method used

By introducing post-quantum cryptographic algorithms and quantum keys into the communication network, an identity assertion with quantum resistance is generated, and the identity assertion is encrypted and signed and protected by using the quantum key during the communication process, ensuring the security of resource access rights .

Benefits of technology

The ability to resist quantum computing attacks of communication data information is enhanced, the security of the communication process in which the terminal obtains resource access rights from the second network device is ensured, and the risk of unauthorized access and tampering is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118631457B_ABST
    Figure CN118631457B_ABST
Patent Text Reader

Abstract

The present application discloses a method for enhancing the anti-quantum security of a security assertion labeling protocol of a communication network. The method includes: receiving an authentication request sent by a second network device and forwarded by a terminal; generating an initial identity assertion according to the authentication request; obtaining a first quantum key and a quantum key identifier from a first network node connected to a first network device; performing post-quantum cryptographic signature processing on the initial identity assertion according to the quantum key identifier to obtain an extended identity assertion; encrypting the extended identity assertion according to the first quantum key to obtain a first encrypted message; sending the first encrypted message to the second network device via the terminal, so that the second network device determines the resource access rights of the terminal according to the first encrypted message. The second network device and the first network device encrypt 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 security assertion marking 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 a security assertion marking protocol of a communication network.

[0004] The embodiment of the present application provides a method for enhancing the anti-quantum security of a security assertion marking protocol of a communication network, wherein the communication network includes a first network device, a second network device, and a terminal, and the method is used for the first network device, and the method includes:

[0005] receiving an authentication request sent by the second network device and forwarded by the terminal, wherein the second network device generates the authentication request according to the received resource access request sent by the terminal;

[0006] generating an initial identity assertion according to the authentication request;

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

[0008] Performing post-quantum cryptographic signature processing on the initial identity assertion according to the quantum key identifier to obtain an extended identity assertion;

[0009] Encrypting the extended identity assertion according to the first quantum key to obtain a first encrypted message;

[0010] The first encrypted message is sent to the second network device via the terminal, so that the second network device determines the resource access permission of the terminal according to the first encrypted message.

[0011] In this way, during the communication process in which the terminal uses the first network device to obtain resource access rights from the second network device, the first network device and the second network device encrypt and protect the identity assertion generated during the communication process according to the post-quantum cryptographic algorithm and the quantum key. The post-quantum cryptographic algorithm is a series of encryption algorithms designed to resist quantum computing attacks, and the quantum key has good resistance to quantum computing attacks. In this way, by generating an identity assertion with quantum resistance, the second network device can safely receive the identity assertion sent by the first network device, thereby enhancing the resistance of the communication data information to quantum computing attacks during the communication process in which the terminal uses the first network device to obtain resource access rights from the second network device.

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

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

[0014] Load the security certificate of the second network device or the security certificate of the first network device.

[0015] In this way, before communicating with the second network device, the first network node is accessed through a pre-established channel. The pre-established channel can protect data during the communication process and reduce the risk of unauthorized access during the communication process. Then, the security certificate of the second network device or its own security certificate 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.

[0016] In some embodiments, the authentication request includes a second random number randomly generated by the second network device and a quantum-resistant authentication request, wherein the quantum-resistant authentication request is obtained by the second network device performing post-quantum cryptographic signature processing on an initial authentication request, and the initial authentication request is obtained by the second network device based on a resource access request of the terminal.

[0017] In this way, the second random number is subsequently used to splice with the quantum key identifier, which has the effect of resisting replay attacks and keeping the message fresh. Post-quantum cryptographic signature processing of the authentication request makes the authentication request have good resistance to quantum computing attacks and can detect the situation of unauthorized access to the authentication request during the transmission process.

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

[0019] Sending a quantum key application to a first network node connected to the first network device;

[0020] receiving the first quantum key and the 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 identifying the first quantum key according to an identification code of the first network node.

[0021] In this way, the first network device sends a quantum key application to the first network node. Then, if the quantum key application is approved, the first network node distributes the first quantum key and quantum key identifier according to the quantum key application, and 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, and the first quantum key can be used to subsequently generate a key with the ability to resist quantum computing attacks, and the quantum key identifier helps to use and manage the first quantum key.

[0022] In some embodiments, the authentication request includes a second random number randomly generated by the second network device, and the performing post-quantum cryptographic signature processing on the initial identity assertion according to the quantum key identifier to obtain an extended identity assertion includes:

[0023] The second random number, the first network device identifier of the first network device, the second network device identifier of the second network device, the authorization information of the terminal, the attribute information of the terminal, the quantum key identifier, and the first random number randomly generated by the first network device are concatenated to obtain a first verification message;

[0024] Performing post-quantum cryptographic signature processing on the first verification message to obtain a first signature message;

[0025] The first signature message, the quantum key identifier, the first random number, and the second random number are stored in the initial identity assertion to obtain the extended identity assertion.

[0026] In this way, the first network device concatenates the second random number, the first network device identifier of the first network device, the second network device identifier of the second network device, the authorization information of the terminal, the attribute information of the terminal, the quantum key identifier and the first random number randomly generated by the first network device to obtain a first verification message. Then, the first network device performs post-quantum cryptographic signature processing on the first verification message to obtain a first signature message. Finally, the first network device stores the first signature message, the quantum key identifier, the first random number and the second random number in the initial identity assertion to obtain an extended identity assertion. In this way, the first network device adds random numbers to make the relevant information in the initial identity assertion resistant to replay attacks and keeps the freshness of these messages. In addition, the first network device also adds a quantum key identifier and signs and protects the relevant information in the initial identity assertion according to the post-quantum cryptographic signature algorithm to obtain a first signature message, so that the first signature message has good resistance to quantum computing attacks. The first network device stores the first signature message, the quantum key identifier, the first random number and the second random number in the initial identity assertion to obtain an extended identity assertion, and the quantum key identifier can be used for subsequent application for quantum keys.

[0027] In some embodiments, encrypting the extended identity assertion according to the first quantum key to obtain a first encrypted message includes:

[0028] The content of the extended identity assertion except the quantum key identifier and the second network device identifier is encrypted according to the first quantum key to obtain a first encrypted message.

[0029] In this way, the first network device encrypts the contents of the extended identity assertion except the quantum key identifier and the second network device identifier according to the first quantum key to obtain a first encrypted message. This enables the extended identity assertion to have good resistance to quantum computing attacks during transmission.

[0030] The embodiment of the present application provides a method for enhancing the anti-quantum security of a security assertion marking protocol of a communication network, wherein the communication network includes a first network device, a second network device, and a terminal, and the method is used for the second network device, and the method includes:

[0031] receiving a resource access request sent by the terminal;

[0032] Generate an authentication request according to the resource access request, and send the authentication request to the first network device;

[0033] receiving a first encrypted message obtained by the first network device according to the authentication request, where the first encrypted message is obtained by the first network device according to the authentication request;

[0034] Decrypting the first encrypted message to obtain an extended identity assertion;

[0035] The extended identity assertion is verified according to a post-quantum cryptographic signature algorithm to determine whether the terminal has resource access rights.

[0036] In this way, during the communication process in which the terminal uses the first network device to obtain resource access rights from the second network device, the first network device and the second network device encrypt and protect the identity assertion generated during the communication process according to the post-quantum cryptographic algorithm and the quantum key. The post-quantum cryptographic algorithm is a series of encryption algorithms designed to resist quantum computing attacks, and the quantum key has good resistance to quantum computing attacks. In this way, by generating an identity assertion with quantum resistance, the second network device can safely receive the identity assertion sent by the first network device, thereby enhancing the resistance of the communication data information to quantum computing attacks during the communication process in which the terminal uses the first network device to obtain resource access rights from the second network device.

[0037] In some implementations, the method of generating an authentication request according to the resource access request includes:

[0038] generating an initial authentication request according to the resource access request, wherein the resource access request includes terminal information of the terminal and resource information of a resource corresponding to the resource access request;

[0039] Performing splicing processing according to the randomly generated second random number and the relevant information in the initial authentication request to obtain a spliced ​​message;

[0040] Signing the concatenated message according to a post-quantum cryptographic signature algorithm to obtain a quantum-resistant authentication request;

[0041] The quantum-resistant authentication request and the second random number are stored in the initial authentication request to obtain an authentication request.

[0042] In this way, the second network device generates an initial authentication request based on the resource access request, and the resource access request includes the terminal information of the terminal and the resource information of the resource corresponding to the resource access request. Next, the second network device performs splicing processing based on the randomly generated second random number and the relevant information in the initial authentication request to obtain a spliced ​​message. Then, the second network device signs the spliced ​​message according to the post-quantum cryptographic signature algorithm to obtain an anti-quantum authentication request. Finally, the second network device stores the anti-quantum authentication request and the second random number in the initial authentication request to obtain an authentication request. In this way, the second network device signs and protects the spliced ​​message formed by splicing the second random number and the initial authentication request according to the post-quantum cryptographic signature algorithm to obtain an authentication request, so that the authentication request has the ability to resist quantum computing attacks.

[0043] In some implementations, the receiving a first encrypted message sent by the first network device and forwarded by the terminal to determine the resource access rights of the terminal according to the first encrypted message, the method includes:

[0044] Decrypting the first encrypted message to obtain an extended identity assertion;

[0045] The extended identity assertion is verified according to a post-quantum cryptographic signature algorithm to determine whether the terminal has resource access rights.

[0046] In this way, the second network device decrypts the first encrypted message to obtain an extended identity assertion. Then, the second network device verifies the extended identity assertion according to the post-quantum cryptographic signature algorithm to determine whether the terminal has resource access rights. In this way, the second network device obtains the extended identity assertion and can allow the terminal to access resources corresponding to the resource access rights based on the relevant information of the extended identity assertion.

[0047] In some implementations, the decrypting the first encrypted message to obtain an extended identity assertion comprises:

[0048] Obtaining a quantum key identifier from the first encrypted message;

[0049] Acquire a second quantum key from a second network node connected to the second network device according to the quantum key identifier;

[0050] The first encrypted message is decrypted according to the second quantum key to obtain an extended identity assertion.

[0051] In this way, the second network device obtains the quantum key identifier from the first encrypted message. Then, the second network device obtains the second quantum key from the second network node connected to the second network device according to the quantum key identifier. Finally, the second network device decrypts the first encrypted message according to the second quantum key to obtain an extended identity assertion. In this way, the second network device applies for the second quantum key according to the quantum key identifier, so that the second quantum key corresponds to the first quantum key. And the first encrypted message is obtained according to the second quantum key. The extended identity assertion is enabled to allow the terminal to access the corresponding resources according to the extended identity assertion.

[0052] In some embodiments, the verifying the extended identity assertion according to a post-quantum cryptographic signature algorithm to determine that the terminal has resource access rights includes:

[0053] Performing signature verification processing on the extended identity assertion according to a post-quantum signature algorithm;

[0054] If it is confirmed according to the signature verification process that the quantum key identifier and the extended identity assertion are correct, allowing the terminal to access the resource corresponding to the resource access request;

[0055] When it is confirmed according to the signature verification process that the quantum key identifier and the extended identity assertion are incorrect, denying the terminal access to the resources corresponding to the resource access request.

[0056] In this way, the second network device performs a signature verification process on the extended identity assertion according to the post-quantum signature algorithm. When the quantum key identifier and the extended identity assertion are confirmed to be correct according to the signature verification process, the second network device allows the terminal to access the resources corresponding to the resource access request. When the quantum key identifier and the extended identity assertion are confirmed to be incorrect according to the signature verification process, the second network device denies the terminal access to the resources corresponding to the resource access request. In this way, by verifying the correctness of the extended identity assertion, it is determined whether the terminal can access the resources corresponding to the resource access request.

[0057] 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

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

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

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

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

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

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

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

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

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

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

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

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

[0070] Fig.12 This is the tenth flowchart of the method of the implementation mode of the present application. DETAILED DESCRIPTION

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

[0072] 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 the cracking of classical cryptography. A series of classical algorithms, such as Diffie-Hellman, RSA, and elliptic curve (ECC), face greater security risks because the number theory problems they are based on, such as large prime number decomposition and discrete logarithms, are no longer difficult in the quantum era. Understandably, with the realization of large quantum computers, it will have a certain impact on key negotiation, encryption, signature and other applications in classical cryptography.

[0073] 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 Security Assertion Markup Language (SAML), which provides a powerful framework for authentication, authorization, and secure communication through its security assertions and communication mechanisms, defines three roles: user, identity provider (IdP), and service provider (SP). The user requests a service from the service provider, who then requests the identity provider and obtains an identity assertion from it. The service provider can make resource access control decisions based on this identity assertion, that is, decide whether the user has the right to perform certain services. The Security Assertion Markup Protocol uses digital signatures based on the XML Signature standard for authentication and message integrity verification, and uses the XMLEncryption standard to provide support for encrypted name identifiers, encrypted attributes, and encrypted assertions. However, the digital signature algorithm of the XML Signature standard and the encryption algorithm of the XML Encryption standard both have insufficient quantum resistance. Therefore, the Security Assertion Markup Protocol has a greater security risk when facing quantum computing attacks.

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

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

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

[0077] Based on the above questions, please refer to Figure 1 The embodiment of the present application provides a method for enhancing the anti-quantum security of a security assertion marking protocol of a communication network, wherein the communication network includes a first network device, a second network device, and a terminal, and the method is used for the first network device, and the method includes:

[0078] 011: receiving an authentication request sent by the second network device and forwarded by the terminal;

[0079] 012: Generate an initial identity assertion based on the authentication request;

[0080] 013: Obtaining a first quantum key and a quantum key identifier from a first network node connected to the first network device;

[0081] 014: Perform post-quantum cryptographic signature processing on the initial identity assertion according to the quantum key identifier to obtain an extended identity assertion;

[0082] 015: Encrypting the extended identity assertion according to the first quantum key to obtain a first encrypted message;

[0083] 016: Send the first encrypted message to the second network device via the terminal, so that the second network device determines the resource access permission of the terminal according to the first encrypted message.

[0084] The embodiment of the present application also provides a first network device, including a memory and a processor. The method of the embodiment of the present application can be implemented by the first network device of the embodiment of the present application. Specifically, a computer program is stored in the memory, and the processor is used to receive an authentication request sent by a second network device and forwarded by a terminal. And generate an initial identity assertion according to the authentication request. The processor is also used to obtain a first quantum key and a quantum key identifier from a first network node connected to the first network device. And perform post-quantum cryptographic signature processing on the initial identity assertion according to the quantum key identifier to obtain an extended identity assertion. The processor is also used to encrypt the extended identity assertion according to the first quantum key to obtain a first encrypted message. And send the first encrypted message to the second network device via the terminal, so that the second network device determines the resource access rights of the terminal according to the first encrypted message.

[0085] The embodiment of the present application also provides a first network device security enhancement device. The method of the embodiment of the present application can be implemented by the first network device security enhancement device of the embodiment of the present application. Specifically, the first network device security enhancement device includes a receiving module, a derivation module, an acquisition module, a processing module, an encryption module and a sending module. The receiving module is used to receive an authentication request sent by the second network device and forwarded by the terminal. The derivation module is used to generate an initial identity assertion according to the authentication request. The acquisition module is used to obtain a first quantum key and a quantum key identifier from a first network node connected to the first network device. The processing module is used to perform post-quantum cryptographic signature processing on the initial identity assertion according to the quantum key identifier to obtain an extended identity assertion. The encryption module is used to encrypt the extended identity assertion according to the first quantum key to obtain a first encrypted message. The sending module is used to send the first encrypted message to the second network device via the terminal, so that the second network device determines the resource access rights of the terminal according to the first encrypted message.

[0086] The present application provides a communication system based on a security assertion marking protocol, the communication system comprising a first network device, a second network device, a terminal and a quantum key distribution network of the above-mentioned implementation mode, and the quantum key distribution network is configured to distribute quantum keys to the first network device or the second network device.

[0087] Specifically, the terminal is used to obtain a security assertion for accessing the second network device from the first network device through a security assertion marking protocol.

[0088] The quantum key distribution network includes network nodes and a quantum network link control center. Network nodes are used to store and distribute 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. Quantum key distribution and relay links are used for data transfer and other functions. The quantum key distribution network is used to realize services such as quantum key generation, quantum key relay, and quantum key provision.

[0089] See also Figure 2 In some embodiments, the terminal requests a service from the second network device, and the second network device then sends a request to the first network device and obtains an identity assertion from the first network device. The second network device can use this identity assertion to judge the resource access request, that is, to determine whether the terminal has the authority to access certain services. The first network device and the second network device respectively access a network node through a trusted channel. After the first network device sends a quantum key application to the network node accessing the first network device, the network node sends the quantum key generated by the quantum key distribution network to the access to the first network device. When the first network device obtains the quantum key, the quantum network link control center synchronously enables the second network node accessing the second network device to generate a quantum key, but the quantum key will not be immediately distributed to the access to the second network device, but will be first stored in the network node. The correspondence between the above-mentioned first network device, the second network device, the service node and the network node is provided by the management and control platform.

[0090] It should be noted that the implementation method of the present 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 explanation. The following descriptions of operations related to the PQC algorithm refer to the above FIPS standard. Of course, in other implementations, other algorithms such as the NewHope algorithm, the Sidh algorithm, and the HQC algorithm can also be used as PQC related algorithms. It should also be noted that the method of the present application is for the Security Assertion Markup Language (SAML), hereinafter referred to as the SAML protocol. The method of the present application does not involve the identity authentication process between the user and the identity provider and the service provider, but only involves the security assertion request and response process specified by the SAML protocol. In addition, it should be noted that the identity provider can generate a user identity assertion (Assertion_X) for each service provider X in multiple service providers at a time. The implementation method of the present application takes the identity provider generating a user identity assertion for only one service provider as an example.

[0091] Specifically, the initial identity assertion is an identity assertion generated by the first network device according to the SAML protocol.

[0092] The second network device receives a resource access request from a terminal to certain resources in the second network device. The second network device generates an authentication request based on relevant information of the resource access request and sends the authentication request to the terminal, which then forwards the authentication request to the first network device.

[0093] The first network device receives the authentication request sent by the second network device and forwarded by the terminal. Then, the first network device generates an initial identity assertion according to the authentication request. Then, the first network device obtains the first quantum key and quantum key identifier from the first network node connected to the first network device. The first network device then performs post-quantum cryptographic signature processing on the initial identity assertion according to the quantum key identifier to obtain an extended identity assertion. And the extended identity assertion is encrypted according to the first quantum key to obtain a first encrypted message. Finally, the first network device sends the first encrypted message to the second network device via the terminal, so that the second network device determines the resource access rights of the terminal according to the first encrypted message.

[0094] After receiving the first encrypted message obtained by the first network device according to the authentication request, the second network device decrypts the first encrypted message to obtain an extended identity assertion. Then, the second network device verifies the extended identity assertion message according to the post-quantum cryptographic signature algorithm to determine whether the terminal has resource access rights.

[0095] The following is an example to illustrate the method of the implementation method of the present application. In the embodiment of the present application, the first network device is an identity provider (IdP), which provides the user's identity authentication data to the service provider. The second network device is a service provider (SP), which provides network service resources for user access. The terminal is a user of the SAML protocol, and obtains a security assertion for accessing the service provider (SP) from the identity provider (IdP) through the SAML protocol. The quantum network node is a network node, and the quantum network node stores and provides the generated quantum key to the service provider through a trusted channel or provides the generated quantum key to the identity provider through a trusted channel.

[0096] The authentication request is an AuthnRequest message. The initial identity assertion is Assertion-1, the extended identity assertion is Assertion-2, and the first encrypted message is Assertion-3.

[0097] See also Figure 3 The service provider receives a resource access request from a user for certain resources in the service provider. The service provider generates an AuthnRequest message based on the relevant information of the resource access request and sends the AuthnRequest message to the user, who then forwards the AuthnRequest message to the identity provider.

[0098] The identity provider receives the AuthnRequest message sent by the service provider and forwarded by the user. The message content is verified by the service provider's public key using a classical digital signature algorithm (RSA or ECC), and the AuthnRequest message is verified using a PQC signature algorithm to determine the user's identity and its associated service provider. Next, the identity provider generates an initial identity assertion Assertion-1 based on the authentication request AuthnRequest message. Then, the identity provider obtains the first quantum key QK_UUID-1 and the quantum key identifier UUID_QK from the first network node connected to the identity provider. The identity provider then performs post-quantum cryptographic signature processing on Assertion-1 based on the quantum key identifier UUID_QK to obtain Assertion-2. And Assertion-2 is encrypted based on the first quantum key QK_UUID-1 to obtain Assertion-3. Finally, the identity provider sends Assertion-3 to the service provider via the user, so that the service provider determines the user's resource access rights based on Assertion-3.

[0099] After receiving Assertion-3 obtained by the identity provider based on the authentication request, the service provider decrypts Assertion-3 to obtain Assertion-2. Then, the service provider verifies the extended identity assertion message based on the post-quantum cryptographic signature algorithm to determine whether the user has resource access rights.

[0100] In summary, in the anti-quantum security enhancement method, communication system, first network device and second network device of the security assertion marking protocol of the communication network of the implementation mode of the present application, for the communication process in which the terminal uses the first network device to obtain resource access rights from the second network device, the first network device and the second network device encrypt and protect the identity assertion generated in the communication process according to the post-quantum cryptographic algorithm and the quantum key. The post-quantum cryptographic algorithm is a series of encryption algorithms designed to resist quantum computing attacks, and the quantum key has good anti-quantum computing attack capabilities. In this way, by generating an identity assertion with anti-quantum capabilities, so that the second network device can safely receive the identity assertion sent by the first network device, the anti-quantum computing attack capability of the communication data information in the communication process in which the terminal uses the first network device to obtain resource access rights from the second network device is enhanced.

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

[0102] 017: Access the first network node through a pre-established channel;

[0103] 018: Load the security certificate of the second network device or the security certificate of the first network device.

[0104] In some implementations, the access module is used to access the first network node through a pre-established channel, and the loading module is used to load the security certificate of the second network device or the security certificate of the first network device.

[0105] 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 second network device or a security certificate of the first network device.

[0106] Specifically, before data transmission with the second network device, the network device accesses the first network node through a pre-established channel. The pre-established channel can protect data during data transmission and reduce the risk of unauthorized access during transmission. Then, the network device loads the security certificate of the network device or the security certificate of the second network device. After the security certificate is loaded, it will be used to establish and maintain a secure communication channel to enhance the security of data during transmission.

[0107] Continuing with the above example, please refer again to Figure 3 Before the identity provider and the service provider transmit data, the identity provider 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 identity provider 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 identity provider loads the key pair of the post-quantum cryptography algorithm of the service provider, the key pair includes an encryption key pair and a signature key pair, or the certificate of the post-quantum cryptography algorithm of the identity provider issued by the certificate system, the certificate includes an encryption certificate and a signature certificate, and 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 identity provider 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.

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

[0109] 0131: Sending a quantum key application to a first network node connected to a first network device;

[0110] 0132: 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 identifying the first quantum key according to the identification code of the first network node.

[0111] In some embodiments, the sending module is used to send a quantum key application to a first network node connected to the first network device. The receiving module is used to receive a first quantum key and a quantum key identifier distributed by the first network node according to the quantum key application, and the quantum key identifier is obtained by the first network node identifying the first quantum key according to the identification code of the first network node.

[0112] In some embodiments, the processor is further configured to send a quantum key application to a first network node connected to the first network device. The processor is further configured 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 identifying the first quantum key according to an identification code of the first network node.

[0113] Specifically, the first network device sends a quantum key application to the first network node. Then, if the quantum key application is approved, the first network node distributes the first quantum key and quantum key identifier according to the quantum key application, and 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, and the first quantum key can be used to subsequently generate a key with the ability to resist quantum computing attacks, and the quantum key identifier helps to use and manage the first quantum key.

[0114] Continuing with the above example, please refer again to Figure 3 , the identity provider sends a quantum key application to the first quantum network node. Then, if the quantum key application is approved, the first quantum key QK_UUID-1 and quantum key identifier UUID_QK distributed by the first quantum network node according to the quantum key application are received. The quantum key identifier UUID_QK is obtained by the first quantum network node using the first quantum network node's unique universal identification code to annotate the first quantum key QK_UUID-1. In this way, the first quantum key QK_UUID-1 and the quantum key identifier UUID_QK are obtained. The first quantum key QK_UUID-1 can be used to subsequently generate a key with the ability to resist quantum computing attacks. The quantum key identifier UUID_QK helps to use and manage the first quantum key QK_UUID-1.

[0115] In this way, the identity provider obtains the first quantum key QK_UUID-1 and the quantum key identifier UUID_QK, which can be used to subsequently generate keys that are more resistant to quantum computing attacks.

[0116] See also Figure 6 In some embodiments, the authentication request includes a second random number randomly generated by the second network device, and step 014 (performing post-quantum cryptographic signature processing on the initial identity assertion according to the quantum key identifier to obtain an extended identity assertion) includes:

[0117] 0141: concatenate the second random number, the first network device identifier of the first network device, the second network device identifier of the second network device, the authorization information of the terminal, the attribute information of the terminal, the quantum key identifier, and the first random number randomly generated by the first network device to obtain a first verification message;

[0118] 0142: Perform post-quantum cryptographic signature processing on the first verification message to obtain a first signature message;

[0119] 0143: Storing the first signature message, the quantum key identifier, the first random number, and the second random number in the initial identity assertion to obtain an extended identity assertion.

[0120] In some embodiments, the splicing module is used to splice the second random number, the first network device identifier of the first network device, the second network device identifier of the second network device, the authorization information of the terminal, the attribute information of the terminal, the quantum key identifier, and the first random number randomly generated by the first 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 obtain a first signature message. The storage module is used to store the first signature message, the quantum key identifier, the first random number, and the second random number in the initial identity assertion to obtain an extended identity assertion.

[0121] In some embodiments, the processor is further configured to concatenate the second random number, the first network device identifier of the first network device, the second network device identifier of the second network device, the authorization information of the terminal, the attribute information of the terminal, the quantum key identifier, and the first random number randomly generated by the first network device to obtain a first verification message. And perform post-quantum cryptographic signature processing on the first verification message to obtain a first signature message. And store the first signature message, the quantum key identifier, the first random number, and the second random number in the initial identity assertion to obtain an extended identity assertion.

[0122] Specifically, the first network device performs splicing processing on the second random number, the first network device identifier of the first network device, the second network device identifier of the second network device, the authorization information of the terminal, the attribute information of the terminal, the quantum key identifier and the first random number randomly generated by the first network device to obtain a first verification message. Then, the first network device performs post-quantum cryptographic signature processing on the first verification message to obtain a first signature message. Finally, the first network device stores the first signature message, the quantum key identifier, the first random number and the second random number in the initial identity assertion to obtain an extended identity assertion. In this way, the first network device adds random numbers to make the relevant information in the initial identity assertion have the ability to resist replay attacks and keep the freshness of these messages. In addition, the first network device also adds a quantum key identifier and signs and protects the relevant information in the initial identity assertion according to the post-quantum cryptographic signature algorithm to obtain a first signature message, so that the first signature message has good resistance to quantum computing attacks. The first network device stores the first signature message, the quantum key identifier, the first random number and the second random number in the initial identity assertion to obtain an extended identity assertion, and the quantum key identifier can be used for subsequent application for quantum keys.

[0123] Continuing with the above example, the AuthnRequest message includes the service provider's second random number R2. Figure 3, the identity provider generates Assertion-1 according to the SAML protocol, and generates an XML signature for Assertion-1 based on a classic digital signature algorithm, such as the RSA algorithm and the ECC algorithm. The identity provider concatenates the second random number generated by the service provider, the identity provider identifier Issuer, the service provider identifier Recipient, the user's authorization information AuthnStatement, the user's attribute information AttributeStatement, the quantum key identifier UUID_QK, and the randomly generated 128-bit first random number R1 to obtain a first verification message, and the concatenation method is (R2| Issuer| Recipient| AuthnStatement| AttributeStatement| UUID_QK | R1). The identity provider then uses the first verification message as M in the PQC signature algorithm for PQC signature protection to obtain the first signature message M1. The first signature message M1, the quantum key identifier UUID_QK, the first random number R1, and the second random number R2 are put into Assertion-1 as Extension elements to obtain Assertion-2. The identity provider identifier Issuer, the service provider identifier Recipient, the user's authorization information AuthnStatement, and the user's attribute information AttributeStatement are all important elements in the initial identity assertion Assertion-1.

[0124] In this way, the identity provider adds random numbers to make the relevant information in the initial identity assertion Assertion-1 resistant to replay attacks and keep these messages fresh. In addition, the first network device also adds the quantum key identifier UUID_QK and signs the relevant information in the initial identity assertion according to the post-quantum cryptographic signature algorithm to obtain the first signed message M1, so that the first signed message M1 has good resistance to quantum computing attacks. The first network device stores the first signed message M1, the quantum key identifier UUID_QK, the first random number R1 and the second random number R2 in the initial identity assertion Assertion-1 to obtain the extended identity assertion Assertion-2, and the quantum key identifier UUID_QK can be used for subsequent application for quantum keys.

[0125] See also Figure 7 In some embodiments, step 015 (encrypting the extended identity assertion according to the first quantum key to obtain a first encrypted message) includes:

[0126] 0151: Encrypt the contents of the extended identity assertion except the quantum key identifier and the second network device identifier according to the first quantum key to obtain a first encrypted message.

[0127] In some embodiments, the encryption module is used to encrypt the content of the extended identity assertion except the quantum key identifier and the second network device identifier according to the first quantum key to obtain a first encrypted message.

[0128] In some embodiments, the processor is further configured to encrypt the content of the extended identity assertion except the quantum key identifier and the second network device identifier according to the first quantum key to obtain a first encrypted message.

[0129] Specifically, the first network device encrypts the contents of the extended identity assertion except the quantum key identifier and the second network device identifier according to the first quantum key to obtain a first encrypted message. In this way, by encrypting the extended identity assertion with the quantum key, the extended identity assertion has good resistance to quantum computing attacks during transmission.

[0130] Continuing with the above example, see Figure 3 The identity provider uses the first quantum key QK_UUID-1 and the symmetric encryption algorithm to encrypt the contents of the extended identity assertion Assertion-2 except the quantum key identifier UUID_QK and Recipient to obtain the first encrypted message Assertion-3. Then, Assertion-3 and the quantum key identifier form a Response message and send it back to the user and forward it to the service provider.

[0131] In this way, the identity provider encrypts the extended identity assertion Assertion-2 by using the first quantum key QK_UUID-1, so that the extended identity assertion Assertion-2 has good resistance to quantum computing attacks during transmission.

[0132] See also Figure 8 The embodiment of the present application provides a method for enhancing the anti-quantum security of a security assertion marking protocol of a communication network, wherein the communication network includes a first network device, a second network device and a terminal, and the method is used for the second network device, and the method includes:

[0133] 021: receiving a resource access request sent by a terminal;

[0134] 022: Generate an authentication request according to the resource access request, and send the authentication request to the first network device;

[0135] 023: receiving a first encrypted message sent by a first network device and forwarded by the terminal, so as to determine the resource access rights of the terminal according to the first encrypted message, wherein the first network device generates an initial identity assertion according to the authentication request, obtains a first quantum key and a quantum key identifier from a first network node connected to the first network device, performs post-quantum cryptographic signature processing on the initial identity assertion according to the quantum key identifier to obtain an extended identity assertion, and performs encryption processing on the extended identity assertion according to the first quantum key to obtain a first encrypted message;

[0136] The embodiment of the present application also provides a second network device, including a memory and a processor. The method of the embodiment of the present application can be implemented by the second network device of the embodiment of the present application. Specifically, a computer program is stored in the memory, and the processor is used to receive a resource access request sent by a terminal. And generate an authentication request based on the resource access request, and send the authentication request to the first network device. The processor is also used to receive a first encrypted message sent by the first network device and forwarded by the terminal to determine the resource access rights of the terminal based on the first encrypted message, wherein the first network device generates an initial identity assertion based on the authentication request, obtains a first quantum key and a quantum key identifier from a first network node connected to the first network device, performs post-quantum cryptographic signature processing on the initial identity assertion based on the quantum key identifier to obtain an extended identity assertion, and encrypts the extended identity assertion based on the first quantum key to obtain a first encrypted message.

[0137] The embodiment of the present application also provides a second network device security enhancement device. The method of the embodiment of the present application can be implemented by the second network device security enhancement device of the embodiment of the present application. Specifically, the second network device security enhancement device includes a receiving module, a generating module, a receiving module, a decryption module and a verification module. The receiving module is used to receive a resource access request sent by a terminal. The generating module is used to generate an authentication request according to the resource access request, and send the authentication request to the first network device. The receiving module is used to receive a first encrypted message sent by the first network device and forwarded by the terminal to determine the resource access rights of the terminal according to the first encrypted message, wherein the first network device generates an initial identity assertion according to the authentication request, obtains a first quantum key and a quantum key identifier from a first network node connected to the first network device, performs post-quantum cryptographic signature processing on the initial identity assertion according to the quantum key identifier to obtain an extended identity assertion, and encrypts the extended identity assertion according to the first quantum key to obtain a first encrypted message.

[0138] The present application provides a communication system based on a security assertion marking protocol, the communication system includes a second network device of the above-mentioned implementation mode, a first network device, a terminal and a quantum key distribution network, and the quantum key distribution network is configured to distribute quantum keys to the first network device or the second network device.

[0139] Specifically, the anti-quantum security enhancement method of this embodiment is basically the same as the anti-quantum security enhancement method of the aforementioned embodiment with the first network device as the execution object. For details, please refer to the explanation of the corresponding part. The difference is that this embodiment takes the second network device as the execution object, which will not be repeated here.

[0140] In summary, in the anti-quantum security enhancement method, communication system, first network device and second network device of the security assertion marking protocol of the communication network of the implementation mode of the present application, for the communication process in which the terminal uses the first network device to obtain resource access rights from the second network device, the first network device and the second network device encrypt and protect the identity assertion generated in the communication process according to the post-quantum cryptographic algorithm and the quantum key. The post-quantum cryptographic algorithm is a series of encryption algorithms designed to resist quantum computing attacks, and the quantum key has good anti-quantum computing attack capabilities. In this way, by generating an identity assertion with anti-quantum capabilities, so that the second network device can safely receive the identity assertion sent by the first network device, the anti-quantum computing attack capability of the communication data information in the communication process in which the terminal uses the first network device to obtain resource access rights from the second network device is enhanced.

[0141] See also Fig. 9 In some implementations, step 022 (generating an authentication request based on a resource access request) includes:

[0142] 0221: Generate an initial authentication request according to a resource access request, where the resource access request includes terminal information of the terminal and resource information of a resource corresponding to the resource access request;

[0143] 0222: concatenate the randomly generated second random number and the relevant information in the initial authentication request to obtain a concatenated message;

[0144] 0223: Sign the concatenated message according to the post-quantum cryptographic signature algorithm to obtain a quantum-resistant authentication request;

[0145] 0224: Storing the quantum-resistant authentication request and the second random number in the initial authentication request to obtain an authentication request.

[0146] In some embodiments, the derivation module is used to generate an initial authentication request according to a resource access request, and the resource access request includes terminal information of the terminal and resource information of the resource corresponding to the resource access request. The splicing module is used to perform splicing processing according to the randomly generated second random number and the relevant information in the initial authentication request to obtain a spliced ​​message. The signature module is used to sign the spliced ​​message according to the post-quantum cryptographic signature algorithm to obtain a quantum-resistant authentication request. The storage module is used to store the quantum-resistant authentication request and the second random number in the initial authentication request to obtain an authentication request.

[0147] In some embodiments, the processor is further configured to generate an initial authentication request according to a resource access request, the resource access request including terminal information of the terminal and resource information of the resource corresponding to the resource access request. And splicing is performed according to the randomly generated second random number and the relevant information in the initial authentication request to obtain a spliced ​​message. The processor is also configured to sign the spliced ​​message according to a post-quantum cryptographic signature algorithm to obtain a quantum-resistant authentication request, and store the quantum-resistant authentication request and the second random number in the quantum-resistant authentication request to obtain an authentication request.

[0148] Specifically, the second network device generates an initial authentication request based on the resource access request, and the resource access request includes the terminal information of the terminal and the resource information of the resource corresponding to the resource access request. Next, the second network device performs splicing processing based on the randomly generated second random number and the relevant information in the initial authentication request to obtain a spliced ​​message. Then, the second network device signs the spliced ​​message according to the post-quantum cryptographic signature algorithm to obtain an anti-quantum authentication request. Finally, the second network device stores the anti-quantum authentication request and the second random number in the initial authentication request to obtain an authentication request. In this way, the second network device signs and protects the spliced ​​message formed by splicing the second random number and the initial authentication request according to the post-quantum cryptographic signature algorithm to obtain an authentication request, so that the authentication request has the ability to resist quantum computing attacks.

[0149] Continuing with the above example, the initial authentication request is the AuthnRequest-1 message, the quantum-resistant authentication request is the AuthnRequest-2 message, and the authentication request is the AuthnRequest-3 message.

[0150] Please refer to Figure 3After the service provider receives the resource access request sent by the user, the service provider generates an initial authentication request AuthnRequest-1 message according to the resource access request in accordance with the provisions of the SAML protocol. The resource access request includes user information and resource information of the resource corresponding to the resource access request. And the service provider performs an XML signature based on the classic digital signature algorithm (RSA or ECC) on the content in the message in accordance with the provisions of the SAML protocol. Next, the service provider performs splicing processing based on the randomly generated second random number R2 and the Subject, SingleSignOnService, AssertionConsumerServiceURL (or AssertionConsumerServiceIndex), and KeyDescriptor in the AuthnRequest-1 message to obtain a spliced ​​message. Then, the service provider uses the post-quantum cryptographic signature algorithm to perform PQC signature protection on the spliced ​​message as M in the PQC signature algorithm to obtain a quantum-resistant authentication request AuthnRequest-2 message. Finally, the service provider stores the AuthnRequest-2 message and the second random number R2 in the AuthnRequest-1 message to obtain an authentication request AuthnRequest-3 message.

[0151] In this way, the service provider signs and protects the concatenated message formed by concatenating the second random number R2 and the AuthnRequest-1 message according to the post-quantum cryptographic signature algorithm to obtain the AuthnRequest-2 message, so that the AuthnRequest-1 message has the ability to resist quantum computing attacks.

[0152] See also Fig.10 In some embodiments, step 023 (receiving a first encrypted message sent by a first network device and forwarded by a terminal, to determine resource access rights of the terminal according to the first encrypted message), the method includes:

[0153] 0231: decrypt the first encrypted message to obtain an extended identity assertion;

[0154] 0232: Verify the extended identity assertion based on the post-quantum cryptographic signature algorithm to determine whether the terminal has resource access rights.

[0155] In some embodiments, the decryption module is used to decrypt the first encrypted message to obtain an extended identity assertion. The verification module is used to verify the extended identity assertion according to a post-quantum cryptographic signature algorithm to determine whether the terminal has resource access rights.

[0156] In some embodiments, the processor is further configured to decrypt the first encrypted message to obtain an extended identity assertion, and verify the extended identity assertion according to a post-quantum cryptographic signature algorithm to determine whether the terminal has resource access rights.

[0157] Specifically, the second network device decrypts the first encrypted message to obtain an extended identity assertion. Then, the second network device verifies the extended identity assertion according to the post-quantum cryptographic signature algorithm to determine whether the terminal has resource access rights. In this way, the second network device obtains the extended identity assertion and can allow the terminal to access resources corresponding to the resource access rights based on the relevant information of the extended identity assertion.

[0158] Continuing with the above example, see Figure 3 The service provider decrypts the first encrypted message Assertion-3 to obtain the extended identity assertion Assertion-2. Then, the service provider verifies the extended identity assertion Assertion-2 according to the post-quantum cryptographic signature algorithm to determine whether the user has resource access rights.

[0159] In this way, the service provider obtains the extended identity assertion Assertion-2, and can allow the user to access resources corresponding to the resource access rights according to the relevant information of the extended identity assertion Assertion-2.

[0160] See also Fig.11 In some implementations, step 0231 (decrypting the first encrypted message to obtain an extended identity assertion) includes:

[0161] 02311: Obtain a quantum key identifier from a first encrypted message;

[0162] 02312: Obtain a second quantum key from a second network node connected to the second network device according to the quantum key identifier;

[0163] 02313: Decrypt the first encrypted message according to the second quantum key to obtain an extended identity assertion.

[0164] In some embodiments, the acquisition module is further configured to acquire a quantum key identifier from the first encrypted message. The acquisition module is further configured to acquire a second quantum key from a second network node connected to the second network device according to the quantum key identifier. The decryption module is configured to decrypt the first encrypted message according to the second quantum key to obtain an extended identity assertion.

[0165] In some embodiments, the processor is further used to obtain a quantum key identifier from the first encrypted message, obtain a second quantum key from a second network node connected to a second network device based on the quantum key identifier, and decrypt the first encrypted message based on the second quantum key to obtain an extended identity assertion.

[0166] Specifically, the second network device obtains a quantum key identifier from the first encrypted message. Then, the second network device obtains a second quantum key from a second network node connected to the second network device according to the quantum key identifier. Finally, the second network device decrypts the first encrypted message according to the second quantum key to obtain an extended identity assertion. In this way, the second network device applies for a second quantum key according to the quantum key identifier, so that the second quantum key corresponds to the first quantum key. And the first encrypted message is obtained according to the second quantum key to obtain an extended identity assertion, so that the second network device can allow the terminal to access the corresponding resources according to the extended identity assertion.

[0167] Continuing with the above example, see Figure 3 , the service provider receives the Response message sent by the identity provider and extracts the quantum key identifier UUID_QK from the identity assertion. The service provider then obtains the second quantum key QK_UUID-2 from the second quantum network node connected to the service provider based on the obtained quantum key identifier UUID_QK. Then, the service provider decrypts the first encrypted message Assertion-3 in the Response message based on the second quantum key QK_UUID-2 to obtain the extended identity assertion Assertion-2.

[0168] In this way, the service provider applies for the second quantum key QK_UUID-2 according to the quantum key identifier UUID_QK, so that the second quantum key QK_UUID-2 corresponds to the first quantum key QK_UUID-1. And according to the second quantum key QK_UUID-2, the first encrypted message Assertion-3 is used to obtain the extended identity assertion Assertion-2, so that the service provider can allow the terminal to access the corresponding resources according to the extended identity assertion Assertion-2.

[0169] See also Fig.12 In some embodiments, step 0232 (verifying the extended identity assertion according to the post-quantum cryptographic signature algorithm to determine that the terminal has resource access rights) includes:

[0170] 02321: Verify the extended identity assertion based on the post-quantum signature algorithm;

[0171] 02322: If the quantum key identifier and the extended identity assertion are confirmed to be correct according to the signature verification process, the terminal is allowed to access the resources corresponding to the resource access request;

[0172] 02323: When the quantum key identifier and the extended identity assertion are confirmed to be incorrect according to the signature verification process, the terminal is denied access to the resources corresponding to the resource access request.

[0173] In some embodiments, the signature verification module is used to perform signature verification processing on the extended identity assertion according to the post-quantum signature algorithm. The access module is used to allow the terminal to access the resources corresponding to the resource access request when the quantum key identifier and the extended identity assertion are confirmed to be correct according to the signature verification processing. The access module is also used to deny the terminal access to the resources corresponding to the resource access request when the quantum key identifier and the extended identity assertion are confirmed to be incorrect according to the signature verification processing.

[0174] In some embodiments, the processor is further configured to perform a signature verification process on the extended identity assertion according to a post-quantum signature algorithm. If the quantum key identifier and the extended identity assertion are confirmed to be correct according to the signature verification process, the terminal is allowed to access the resources corresponding to the resource access request. If the quantum key identifier and the extended identity assertion are confirmed to be incorrect according to the signature verification process, the terminal is denied access to the resources corresponding to the resource access request.

[0175] Specifically, the second network device performs a signature verification process on the extended identity assertion according to the post-quantum signature algorithm. When the quantum key identifier and the extended identity assertion are confirmed to be correct according to the signature verification process, the second network device allows the terminal to access the resources corresponding to the resource access request. When the quantum key identifier and the extended identity assertion are confirmed to be incorrect according to the signature verification process, the second network device denies the terminal access to the resources corresponding to the resource access request. In this way, by verifying the correctness of the extended identity assertion, it is determined whether the terminal can access the resources corresponding to the resource access request.

[0176] Continuing with the above example, please refer again to Figure 3 The service provider uses the public key of the identity provider to verify the content of the extended identity assertion Assertion-2 using a classic digital signature algorithm, such as the RSA algorithm or the ECC algorithm. The content in the extended identity assertion Assertion-2 is verified using the PQC signature algorithm. After confirming that the correct quantum key identifier UUID_QK and extended identity assertion are received, the service provider allows the user to access the corresponding resources based on the relevant identity information and authorization information of the extended identity assertion. If it is confirmed that the received quantum key identifier UUID_QK and extended identity assertion are incorrect, the user is denied access to the corresponding resources.

[0177] In addition, the user caches the Response message. When the user needs to access the service provider corresponding to the extended identity assertion Assertion-2 again, the user can directly submit the Response message or the extended identity assertion Assertion-2 corresponding to the service provider to the service provider, and the service provider re-authenticates according to the above verification process.

[0178] In this way, by verifying the correctness of the extended identity assertion Assertion-2, it is determined whether the user can access the resource corresponding to the resource access request.

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

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

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

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

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

Claims

1. A method for enhancing quantum security of a security assertion labeling protocol of a communication network, characterized in that: The communication network includes a first network device, a second network device and a terminal, and the method is used for the first network device, and the method includes: receiving an authentication request sent by the second network device and forwarded by the terminal, wherein the second network device generates the authentication request according to the received resource access request sent by the terminal; generating an initial identity assertion according to the authentication request; Acquire a first quantum key and a quantum key identifier from a first network node connected to the first network device; Performing post-quantum cryptographic signature processing on the initial identity assertion according to the quantum key identifier to obtain an extended identity assertion; Encrypting the extended identity assertion according to the first quantum key to obtain a first encrypted message; The first encrypted message is sent to the second network device via the terminal, so that the second network device determines the resource access permission of the terminal according to the first encrypted message.

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

3. The method according to claim 1, characterized in that The authentication request includes a second random number randomly generated by the second network device and a quantum-resistant authentication request, wherein the quantum-resistant authentication request is obtained by the second network device performing post-quantum cryptographic signature processing on an initial authentication request, and the initial authentication request is obtained by the second network device according to a resource access request of the terminal.

4. The method according to claim 1, characterized in that: The first network node connected to the first network device obtains a first quantum key and a quantum key identifier, including: Sending a quantum key application to a first network node connected to the first network device; receiving the first quantum key and the 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 identifying the first quantum key according to an identification code of the first network node.

5. The method according to claim 1, characterized in that: The authentication request includes a second random number randomly generated by the second network device, and the post-quantum cryptographic signature processing of the initial identity assertion according to the quantum key identifier to obtain an extended identity assertion includes: The second random number, the first network device identifier of the first network device, the second network device identifier of the second network device, the authorization information of the terminal, the attribute information of the terminal, the quantum key identifier, and the first random number randomly generated by the first network device are concatenated to obtain a first verification message; Performing post-quantum cryptographic signature processing on the first verification message to obtain a first signature message; The first signature message, the quantum key identifier, the first random number, and the second random number are stored in the initial identity assertion to obtain the extended identity assertion.

6. The method according to claim 5, characterized in that The encrypting the extended identity assertion according to the first quantum key to obtain a first encrypted message includes: The content of the extended identity assertion except the quantum key identifier and the second network device identifier is encrypted according to the first quantum key to obtain a first encrypted message.

7. A method for enhancing quantum security of a security assertion labeling protocol of a communication network, characterized in that: The communication network includes a first network device, a second network device and a terminal, the method is used for the second network device, and the method includes: receiving a resource access request sent by the terminal; Generate an authentication request according to the resource access request, and send the authentication request to the first network device; Receive a first encrypted message sent by the first network device and forwarded by the terminal, so as to determine the resource access rights of the terminal according to the first encrypted message, wherein the first network device generates an initial identity assertion according to the authentication request, obtains a first quantum key and a quantum key identifier from a first network node connected to the first network device, performs post-quantum cryptographic signature processing on the initial identity assertion according to the quantum key identifier to obtain an extended identity assertion, and encrypts the extended identity assertion according to the first quantum key to obtain a first encrypted message.

8. The method according to claim 7, characterized in that The method of generating an authentication request according to the resource access request comprises: generating an initial authentication request according to the resource access request, wherein the resource access request includes terminal information of the terminal and resource information of a resource corresponding to the resource access request; Performing splicing processing according to the randomly generated second random number and the relevant information in the initial authentication request to obtain a spliced ​​message; Signing the concatenated message according to a post-quantum cryptographic signature algorithm to obtain a quantum-resistant authentication request; The quantum-resistant authentication request and the second random number are stored in the initial authentication request to obtain an authentication request.

9. The method according to claim 7, characterized in that: The receiving a first encrypted message sent by the first network device and forwarded by the terminal to determine the resource access permission of the terminal according to the first encrypted message, the method comprising: Decrypting the first encrypted message to obtain an extended identity assertion; The extended identity assertion is verified according to a post-quantum cryptographic signature algorithm to determine whether the terminal has resource access rights.

10. The method according to claim 9, characterized in that The method of decrypting the first encrypted message to obtain an extended identity assertion comprises: Obtaining a quantum key identifier from the first encrypted message; Acquire a second quantum key from a second network node connected to the second network device according to the quantum key identifier; The first encrypted message is decrypted according to the second quantum key to obtain an extended identity assertion.

11. The method according to claim 10, characterized in that The verifying the extended identity assertion according to the post-quantum cryptographic signature algorithm to determine that the terminal has resource access rights includes: Performing signature verification processing on the extended identity assertion according to a post-quantum signature algorithm; If it is confirmed according to the signature verification process that the quantum key identifier and the extended identity assertion are correct, allowing the terminal to access the resource corresponding to the resource access request; When it is confirmed according to the signature verification process that the quantum key identifier and the extended identity assertion are incorrect, denying the terminal access to the resources corresponding to the resource access request.

Citation Information

Patent Citations

  • Quantum data key negotiation system and quantum data key negotiation method

    CN107959566A

  • Method and system for realizing zero-trust access by adopting quantum key distribution

    CN115567210A