A gateway-based communication key download method, device, and storage medium

By introducing a quantum-safe gateway as an intermediate node in the communication network, the problems of excessive load on the key center and inconsistent terminal keys are solved, realizing an efficient and reliable key download process and improving the stability and security of the system.

CN123122829APending Publication Date: 2026-11-17MATRICTIME DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611510416.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-28
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

The existing direct connection mode between quantum-safe terminals and key centers results in extremely high traffic and management loads for the key centers, and serious inconsistencies in key files between gateways and terminals, affecting communication efficiency.

Method used

By introducing a quantum-safe gateway as an intermediate node, after the terminal establishes a communication pairing relationship with the gateway, it only requests the communication key from the gateway. The gateway uniformly obtains and distributes the key from the key center, avoiding direct interaction between the terminal and the key center, and using the gateway's management logic and channels to download the key.

Benefits of technology

It significantly reduces the traffic and management load of the key center, reduces network signaling transmission, shortens key acquisition latency, ensures timely key distribution and key consistency between terminals, and improves communication stability and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123122829A_ABST
    Figure CN123122829A_ABST
Patent Text Reader

Abstract

This application discloses a gateway-based communication key download method, device, and storage medium. The method includes the following steps: after establishing a communication pairing relationship, a first quantum-secure terminal initiates a first key acquisition request to a quantum-secure gateway; the quantum-secure gateway then initiates a second key acquisition request to a key center; the key center generates and distributes a communication key to the quantum-secure gateway; the quantum-secure gateway distributes the communication key to both the first and second quantum-secure terminals, and then the two terminals transmit the data to be transmitted based on the communication key. This invention uses the quantum-secure gateway as an intermediate node for key distribution, eliminating the need for the key center to directly respond to key requests from a massive number of quantum-secure terminals one by one. Furthermore, the quantum-secure gateway reuses its existing management responsibilities and communication links for its subordinate terminals, uniformly proxying the key acquisition process for each terminal, significantly reducing communication link overhead for the key center and substantially improving overall stability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of key technology, and in particular to a gateway-based communication key download method, device, and storage medium. Background Technology

[0002] In current communication security systems, quantum-secure terminals must obtain session keys from a unified key center before engaging in encrypted communication. In traditional solutions, each terminal independently establishes a dedicated one-to-one secure link with the key center to download the key. However, this centralized direct-connection model has significant technical drawbacks: First, when there are a massive number of quantum-secure terminals in the network (e.g., in large-scale IoT deployment scenarios), the key center needs to maintain a massive number of concurrent connections and handle heavy key negotiation and session management tasks. This leads to a sharp increase in the key center's traffic load, while its management load (including connection state maintenance) also grows linearly or even exponentially, easily making the key center the performance bottleneck of the entire system, resulting in extremely high traffic and management loads.

[0003] Secondly, in a typical network architecture, quantum-safe terminals are often located after quantum-safe gateway devices. In existing technologies, the gateway and the terminal are usually treated as two independent key requesters, each initiating a download request to the key center independently. Due to network latency, processing timing differences, etc., the key file cached locally by the gateway often differs in version or content from the key file actually downloaded and held by the terminal. However, to ensure the correctness of end-to-end encryption, a complex key alignment mechanism (such as hash verification or retransmission requests) must be introduced subsequently. This not only increases additional signaling overhead but also prolongs the service establishment latency, severely impacting the efficiency of key download.

[0004] In summary, given the excessive consumption of key center resources by the direct connection mode and the key consistency issues between the gateway and the terminal, there is an urgent need for an improved key download scheme. This scheme aims to significantly reduce the traffic and management load of the key center, while avoiding file inconsistency issues caused by independent downloads between the gateway and the terminal, thereby achieving an efficient, reliable, and lightweight communication key download process in scenarios with a large number of terminals. Summary of the Invention

[0005] Objective: This invention aims to provide a gateway-based communication key download method, device, and storage medium. It solves the problem of excessive traffic and management load on the key center caused by the direct connection between the existing quantum-safe terminal and the key center. It also addresses the frequent inconsistency in version or content between the key file cached locally by the gateway and the key file actually downloaded and held by the terminal. Because the terminal does not need a direct connection to the key center, it only needs to initiate a simple request to the established upstream gateway to obtain the communication key. This significantly simplifies the traffic and management load on the key center and reduces the resource consumption associated with key download.

[0006] Technical solution: This invention provides a gateway-based communication key download method, which includes the following steps:

[0007] (1) After the first quantum secure terminal and the second quantum secure terminal establish a communication pairing relationship, the first quantum secure terminal initiates a first key acquisition request to the interconnected upper-level quantum secure gateway to obtain the communication key; the first key acquisition request includes the number of communication keys and the communication pairing relationship;

[0008] (2) In response to the first key acquisition request, the quantum security gateway initiates a second key acquisition request to the interconnected key centers. The key centers respond to the second key acquisition request, generate and distribute communication keys to the quantum security gateway.

[0009] (3) The quantum security gateway distributes the communication key to the first quantum security terminal and the second quantum security terminal according to the communication pairing relationship;

[0010] (4) The first quantum secure terminal and the second quantum secure terminal transmit the data to be transmitted based on the communication key.

[0011] Furthermore, the second key acquisition request includes the number of communication keys and basic information about the quantum secure gateway, but does not involve the basic information about the first quantum secure terminal, the basic information about the second quantum secure terminal, or their communication pairing relationship.

[0012] Furthermore, prior to step (4), the method further includes: verifying the consistency of the communication key issued between the first quantum secure terminal, the second quantum secure terminal, and the quantum secure gateway.

[0013] Furthermore, the specific process of step (3) is as follows:

[0014] The quantum security gateway first checks the number of copies of the communication key. If there is one copy, it is recorded as key1. The quantum security gateway then sends the communication key key1 to the first quantum security terminal and the second quantum security terminal according to the communication pairing relationship. If there are two copies of the communication key, they are recorded as key1 and key2. The quantum security gateway then sends the communication key key1 to the first quantum security terminal and the communication key key2 to the second quantum security terminal according to the communication pairing relationship. At the same time, the quantum security gateway establishes a first correspondence between the communication key key1 and the first quantum security terminal, and establishes a second correspondence between the communication key key2 and the second quantum security terminal.

[0015] Furthermore, the specific process of step (4) is as follows:

[0016] 1) The first quantum secure terminal obtains the encryption key k1 from the local communication key key1 and records the key index idx1 of the encryption key k1; then, it uses the encryption key k1 to encrypt the data to be transmitted data1 to obtain the ciphertext DATA1, and sends the ciphertext DATA1 and the key index idx1 to the quantum secure gateway.

[0017] 2) The quantum security gateway checks whether the communication key sent to the second quantum security terminal is key1 according to the communication pairing relationship. If it is, the quantum security gateway, based on the sender of ciphertext DATA1 being the first quantum security terminal, forwards ciphertext DATA1 and key index idx1 to the second quantum security terminal according to the communication pairing relationship. The second quantum security terminal obtains the decryption key k1' from the local communication key key1 based on the key index idx1, and uses the decryption key k1' to decrypt ciphertext DATA1 to obtain the data to be transmitted, data1. If not, the quantum security gateway, based on the sender of ciphertext DATA1 being the first quantum security terminal, searches for the first correspondence relationship and finds the corresponding key. The corresponding communication key key1 is used to obtain the decryption key k1' from the communication key key1 according to the key index idx1. The decryption key k1' is used to decrypt the ciphertext DATA1 to obtain the data to be transmitted data1. The quantum security gateway then determines that the data receiver is the second quantum security terminal according to the communication pairing relationship. It finds the corresponding communication key key2 through the second correspondence relationship, obtains the encryption key k2 from the communication key key2, and records the key index idx2 of the encryption key k2. Then, the encryption key k2 is used to encrypt the data to be transmitted data1 to obtain the ciphertext DATA2. The ciphertext DATA2 and the key index idx2 are sent to the second quantum security terminal.

[0018] The second quantum secure terminal obtains the decryption key k2' from the local communication key key2 based on the key index idx2, and uses the decryption key k2' to decrypt the ciphertext DATA2 to obtain the data to be transmitted, data1.

[0019] Furthermore, step (2) may be:

[0020] In response to the first key acquisition request, the quantum-safe gateway selects a communication key to be distributed from its local storage based on the number of communication keys and the communication pairing relationship in the first key acquisition request.

[0021] Furthermore, the method also includes:

[0022] When the quantum-safe gateway is idle or periodically checks its own communication key storage space, if the remaining space is lower than the storage threshold, the quantum-safe gateway requests the key center to download additional communication keys. The key center responds to the request by generating and distributing communication keys to the quantum-safe gateway.

[0023] The present invention also includes a computer device comprising at least a processor and a memory, the processor being configured to implement the gateway-based communication key download method as described above when executing a computer program stored in the memory.

[0024] The present invention also includes a computer-readable storage medium storing a computer program that, when executed by a processor, implements the gateway-based communication key download method as described above.

[0025] The beneficial effects of this invention are:

[0026] (1) This invention uses a quantum-safe gateway as an intermediate node for key distribution, so that the key center no longer needs to directly respond to key requests and manage connections one by one with a massive number of quantum-safe terminals, but only needs to interact with a gateway with a much smaller number of terminals. The quantum-safe gateway reuses its existing management responsibilities and communication links for its subordinate terminals, and uniformly proxies the terminals to complete the key acquisition process, thereby significantly reducing the communication link overhead and concurrent processing pressure for the key center, effectively avoiding the key center becoming a performance bottleneck of the communication network, and significantly improving the overall stability.

[0027] (2) Since the quantum security gateway itself undertakes the functions of access authentication, policy control and status management of subordinate terminals in the communication network, the present invention only reuses this existing management logic and channel to carry the key download process, without introducing additional management rules or complex control logic to the gateway. Therefore, while realizing key distribution, it does not increase the management complexity and maintenance burden of the gateway, thus ensuring the simplicity and efficiency of the architecture.

[0028] (3) After the key center of the present invention returns the generated communication key to the gateway, the gateway distributes it to the paired terminals in parallel or in batches according to the pre-established communication pairing relationship. This process avoids each terminal interacting with the key center multiple times individually, reduces signaling transmission in the network, shortens the overall delay of key acquisition, and enables the communication key to reach the terminal more quickly and timely, providing efficient protection for subsequent secure data transmission.

[0029] (4) In this invention, the generation of the communication key is uniformly handled by the key center, ensuring the quantum randomness and high security of the key; the key distribution path passes through a trusted quantum security gateway, and the gateway strictly distributes the key to the correct paired terminal according to the communication pairing relationship, eliminating the risk of key mis-distribution or illegal interception. The first quantum security terminal and the second quantum security terminal encrypt and decrypt the transmitted data based on the same key, which can effectively resist eavesdropping, replay and man-in-the-middle attacks, and ensure the confidentiality and integrity of the communication data. Attached Figure Description

[0030] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0031] Figure 1 This is a schematic diagram showing the connections between the participants in the method of the present invention;

[0032] Figure 2 This is a schematic flowchart of the method of the present invention;

[0033] Figure 3 This is a schematic diagram illustrating the transmission of data to be transmitted based on a communication key according to the present invention. Detailed Implementation

[0034] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0035] In the current communication security system, each terminal needs to independently establish a one-to-one dedicated link with the key center to complete the key download. This centralized direct connection model has significant technical drawbacks: First, when there are a massive number of quantum-secure terminals in the network, the key center needs to maintain a massive number of concurrent connections simultaneously. This leads to a sharp increase in the traffic load of the key center, and its management load also grows linearly or even exponentially, resulting in extremely high traffic and management loads. Second, due to network latency, processing timing differences, etc., the key file downloaded and cached locally by the gateway often differs from the version or content of the key file actually downloaded and held by the terminal. However, to ensure the correctness of end-to-end encryption, a complex key alignment mechanism must be introduced subsequently, which prolongs the service establishment latency and seriously affects the efficiency of key download. Therefore, there is an urgent need for an improved key download scheme that aims to significantly reduce the traffic and management load of the key center while avoiding the file inconsistency problem caused by independent downloads between the gateway and the terminal.

[0036] Example 1

[0037] In view of this, this embodiment proposes a gateway-based communication key download method, such as... Figure 1 As shown, the participants in this method include a key center, a quantum-secure gateway, a first quantum-secure terminal, and a second quantum-secure terminal. The key center is connected to the quantum-secure gateway, which is connected to both the first and second quantum-secure terminals. The key center generates and distributes keys, and the quantum-secure terminals communicate with the outside world through the quantum-secure gateway. For example, the first quantum-secure terminal communicates with the second quantum-secure terminal through the quantum-secure gateway, and the communication path is shown in the figure.

[0038] like Figure 2 As shown, the communication key download method specifically includes the following steps:

[0039] (1) The first quantum secure terminal initiates a key download request to the quantum secure gateway: After the first quantum secure terminal establishes a communication pairing relationship with the second quantum secure terminal, the first quantum secure terminal initiates a first key acquisition request to the interconnected upper-level quantum secure gateway to obtain the communication key; wherein, the first key acquisition request includes the number of communication keys and the communication pairing relationship; of course, the first key acquisition request may also include the amount of data M of this communication, and accordingly, the quantum secure gateway's request to the key center includes the key length corresponding to the amount of data M, that is, the length of the communication key is M, or slightly larger than M (for example, redundant n bytes, where n is an integer greater than or equal to 1, etc.).

[0040] (2) The quantum security gateway initiates a key download request to the key center: In response to the first key acquisition request, the quantum security gateway initiates a second key acquisition request to the interconnected key center. The key center responds to the second key acquisition request, generates and distributes a communication key to the quantum security gateway. The second key acquisition request includes the number of communication keys and the basic information of the quantum security gateway, but does not involve the basic information of the first quantum security terminal (e.g., device information), the basic information of the second quantum security terminal, or the communication pairing relationship between the two, thus realizing the disconnection between the quantum security terminal and the key center.

[0041] Since the quantum security gateway itself undertakes functions such as access authentication, policy control, and state management for subordinate terminals in the communication network, this invention only reuses this existing management logic and channel to carry out the key download process, without introducing additional management rules or complex control logic to the gateway. Therefore, while realizing key distribution, it does not increase the management complexity and maintenance burden of the gateway, ensuring the simplicity and efficiency of the architecture.

[0042] (3) The quantum security gateway issues symmetric communication keys to the first quantum security terminal and the second quantum security terminal: The quantum security gateway issues communication keys to the first quantum security terminal and the second quantum security terminal according to the communication pairing relationship. The specific process is as follows:

[0043] The quantum security gateway first checks the number of copies of the communication key. If there is only one copy, it records the communication key as key1. The quantum security gateway then distributes the communication key key1 to the first quantum security terminal and the second quantum security terminal according to the communication pairing relationship. After distributing the key, the quantum security gateway can delete the communication key key1 locally to save local storage space and provide services for other communication terminals. If there are two copies of the communication key, it records the communication key as key1 and key2. The quantum security gateway then distributes the communication key key1 to the first quantum security terminal and the communication key key2 to the second quantum security terminal according to the communication pairing relationship, and stores the communication key key1 and communication key key2 on the local disk. At the same time, the quantum security gateway establishes a first correspondence between the communication key key1 and the first quantum security terminal, and a second correspondence between the communication key key2 and the second quantum security terminal.

[0044] At this point, the quantum secure gateway has already distributed the communication key to the first quantum secure terminal and the second quantum secure terminal. Based on this, the first quantum secure terminal, the second quantum secure terminal, and the quantum secure gateway can verify the consistency of the distributed communication key. For example, the first quantum secure terminal and the second quantum secure terminal can establish a temporary link and use hash calculation, checksum, and other methods to verify the consistency of the distributed communication key.

[0045] The key center of this invention returns the generated communication keys to the gateway, which then distributes them to the paired terminals in parallel or in batches according to the pre-established communication pairing relationship. This process avoids multiple interactions between each terminal and the key center, reduces signaling transmission in the network, shortens the overall latency of key acquisition, and enables the communication keys to reach the terminals more quickly and timely, providing efficient protection for subsequent secure data transmission.

[0046] (4) such as Figure 3 As shown, the first quantum-secure terminal and the second quantum-secure terminal transmit the data to be transmitted based on a communication key. The specific process is as follows:

[0047] 1) The first quantum secure terminal obtains the encryption key k1 from the local communication key key1 and records the key index idx1 of the encryption key k1; then, it uses the encryption key k1 to encrypt the data to be transmitted data1 to obtain the ciphertext DATA1, and sends the ciphertext DATA1 and the key index idx1 to the quantum secure gateway.

[0048] 2) The quantum security gateway checks whether the communication key sent to the second quantum security terminal is key1 according to the communication pairing relationship. If it is key1, the quantum security gateway does not perform any operation. Based on the fact that the sender of ciphertext DATA1 is the first quantum security terminal, the gateway forwards ciphertext DATA1 and key index idx1 to the second quantum security terminal according to the communication pairing relationship. The second quantum security terminal obtains the decryption key k1' from the local communication key key1 based on the key index idx1, and uses the decryption key k1' to decrypt ciphertext DATA1 to obtain the data to be transmitted, data1. If not, the quantum security gateway checks whether the sender of ciphertext DATA1 is the first quantum security terminal, and finds the first quantum security terminal based on the data source through the first correspondence relationship. The communication key key1 corresponding to the correspondence is used to obtain the decryption key k1' from the communication key key1 according to the key index idx1. The decryption key k1' is used to decrypt the ciphertext DATA1 to obtain the data to be transmitted data1. The quantum security gateway then determines that the data receiver is the second quantum security terminal according to the communication pairing relationship. Thus, it finds the communication key key2 corresponding to the second correspondence relationship, obtains the encryption key k2 from the communication key key2, and records the key index idx2 of the encryption key k2. Then, the encryption key k2 is used to encrypt the data to be transmitted data1 to obtain the ciphertext DATA2. The ciphertext DATA2 and the key index idx2 are sent to the second quantum security terminal.

[0049] The second quantum secure terminal obtains the decryption key k2' from the local communication key key2 based on the key index idx2, and uses the decryption key k2' to decrypt the ciphertext DATA2 to obtain the data to be transmitted, data1.

[0050] In this invention, the generation of the communication key is centrally managed by a key center, ensuring the key's quantum randomness and high security. The key distribution path passes through a trusted quantum-secure gateway, which strictly distributes the key to the correct paired terminal according to the communication pairing relationship, eliminating the risk of mis-distribution or illegal interception of the key. The first and second quantum-secure terminals encrypt and decrypt transmitted data based on the same key, effectively resisting eavesdropping, replay attacks, and man-in-the-middle attacks, ensuring the confidentiality and integrity of the communication data.

[0051] In summary, this invention uses a quantum-safe gateway as an intermediate node for key distribution. This eliminates the need for the key center to directly handle key requests and connections from a massive number of quantum-safe terminals individually. Instead, it only needs to interact with a far smaller number of gateways. The quantum-safe gateway reuses its existing management responsibilities and communication links for its subordinate terminals, uniformly proxying the key acquisition process for each terminal. This significantly reduces communication link overhead and concurrent processing pressure for the key center, effectively preventing the key center from becoming a performance bottleneck in the communication network and significantly improving overall stability.

[0052] Example 2

[0053] This embodiment is basically the same as embodiment 1, except that step (2) of the method is as follows: In response to the first key acquisition request, the quantum security gateway selects a communication key to be issued from its local storage according to the number of communication keys and the communication pairing relationship in the first key acquisition request. In this embodiment, the quantum security gateway itself has the ability to store communication keys, and also stores a large number of communication keys previously issued by the key center locally. When the terminal initiates a key acquisition request, it can select a communication key to be issued from its own storage space.

[0054] At this point, the method further includes: when the quantum secure gateway is idle or periodically checks its own communication key storage space balance; when the balance falls below a storage threshold, the quantum secure gateway requests a supplementary communication key download from the key center; the key center responds to the request by generating and distributing a communication key to the quantum secure gateway. Through this step, the communication key storage space in the quantum secure gateway can always be kept relatively saturated.

[0055] This invention also provides a computer device, which includes at least a processor and a memory. The memory stores a computer program, and the processor executes the computer program stored in the memory to implement the steps in the gateway-based communication key download method of this invention.

[0056] This invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the gateway-based communication key download method of this invention.

Claims

1. A gateway-based communication key download method, characterized in that, The method includes the following steps: (1) After the first quantum secure terminal and the second quantum secure terminal establish a communication pairing relationship, the first quantum secure terminal initiates a first key acquisition request to the interconnected upper-level quantum secure gateway to obtain the communication key; the first key acquisition request includes the number of communication keys and the communication pairing relationship; (2) In response to the first key acquisition request, the quantum security gateway initiates a second key acquisition request to the interconnected key centers. The key centers respond to the second key acquisition request, generate and distribute communication keys to the quantum security gateway. (3) The quantum security gateway distributes the communication key to the first quantum security terminal and the second quantum security terminal according to the communication pairing relationship; (4) The first quantum secure terminal and the second quantum secure terminal transmit the data to be transmitted based on the communication key.

2. The gateway-based communication key download method according to claim 1, characterized in that: The second key acquisition request includes the number of communication keys and basic information about the quantum security gateway, but does not involve the basic information about the first quantum security terminal, the basic information about the second quantum security terminal, or their communication pairing relationship.

3. The gateway-based communication key download method according to claim 1, characterized in that: Before step (4), the method further includes: verifying the consistency of the communication key issued between the first quantum secure terminal, the second quantum secure terminal and the quantum secure gateway.

4. The gateway-based communication key download method according to claim 1, characterized in that: The specific process of step (3) is as follows: The quantum security gateway first checks the number of copies of the communication key. If there is one copy, it is recorded as key1. The quantum security gateway then sends the communication key key1 to the first quantum security terminal and the second quantum security terminal according to the communication pairing relationship. If there are two copies of the communication key, they are recorded as key1 and key2. The quantum security gateway then sends the communication key key1 to the first quantum security terminal and the communication key key2 to the second quantum security terminal according to the communication pairing relationship. At the same time, the quantum security gateway establishes a first correspondence between the communication key key1 and the first quantum security terminal, and establishes a second correspondence between the communication key key2 and the second quantum security terminal.

5. The gateway-based communication key download method according to claim 4, characterized in that: The specific process of step (4) is as follows: 1) The first quantum secure terminal obtains the encryption key k1 from the local communication key key1 and records the key index idx1 of the encryption key k1; then, it uses the encryption key k1 to encrypt the data to be transmitted data1 to obtain the ciphertext DATA1, and sends the ciphertext DATA1 and the key index idx1 to the quantum secure gateway. 2) The quantum security gateway checks whether the communication key sent to the second quantum security terminal is key1 according to the communication pairing relationship. If it is, the quantum security gateway forwards the ciphertext DATA1 and key index idx1 to the second quantum security terminal based on the communication pairing relationship. The second quantum security terminal obtains the decryption key k1' from the local communication key key1 according to the key index idx1, and uses the decryption key k1' to decrypt the ciphertext DATA1 to obtain the data to be transmitted, data1. If not, the quantum security gateway finds the corresponding communication key key1 through the first correspondence relationship, obtains the decryption key k1' from the communication key key1 according to the key index idx1, and uses the decryption key k1' to decrypt the ciphertext DATA1 to obtain the data to be transmitted, data1. The quantum security gateway then determines the data receiver as the second quantum security terminal based on the communication pairing relationship. It finds the communication key key2 corresponding to the second correspondence relationship, obtains the encryption key k2 from the communication key key2, and records the key index idx2 of the encryption key k2. Then, it uses the encryption key k2 to encrypt the data to be transmitted data1 to obtain the ciphertext DATA2, and sends the ciphertext DATA2 and the key index idx2 to the second quantum security terminal. The second quantum secure terminal obtains the decryption key k2' from the local communication key key2 based on the key index idx2, and uses the decryption key k2' to decrypt the ciphertext DATA2 to obtain the data to be transmitted, data1.

6. The gateway-based communication key download method according to claim 1, characterized in that: Step (2) may be: In response to the first key acquisition request, the quantum-safe gateway selects a communication key to be distributed from its local storage based on the number of communication keys and the communication pairing relationship in the first key acquisition request.

7. The gateway-based communication key download method according to claim 6, characterized in that: The method further includes: When the quantum-safe gateway is idle or periodically checks its own communication key storage space, if the remaining space is lower than the storage threshold, the quantum-safe gateway requests the key center to download additional communication keys. The key center responds to the request by generating and distributing communication keys to the quantum-safe gateway.

8. A computer device, characterized in that: The computer device includes at least a processor and a memory, wherein the processor is used to implement the gateway-based communication key download method as described in any one of claims 1-7 when executing a computer program stored in the memory.

9. A computer-readable storage medium, characterized in that: It stores a computer program that, when executed by a processor, implements the gateway-based communication key download method as described in any one of claims 1-7.