A quantum key distribution method and device
By splitting and distributing quantum key data on the firewall device, the problem of multiple SSL VPN gateways occupying memory resources is solved and communication security is improved.
Patent Information
- Application Number
- CN202210262049.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-17
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-03-17
AI Technical Summary
When configuring multiple SSL VPN gateways using quantum keys on a firewall device, it takes up a lot of memory resources and lacks effective resource management, affecting communication security.
By applying for quantum key data of a set size from the quantum exchange cryptographic machine, and splitting it into M pieces of quantum key data of the same size, they are distributed to each SSL VPN gateway respectively, and when a client message is received, Select appropriate quantum key data for negotiation based on splitting rules, reducing memory usage and improving security.
It effectively saves the memory resources of the firewall device, and participates in the gateway identification in the negotiation of symmetric encryption keys, improving communication security.
Smart Images

Figure CN114866227B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a quantum key distribution method and device. Background Art
[0002] SSL VPN is a new type of virtual private network (VPN) technology that uses the Secure Socket Layer (SSL) protocol to achieve remote access. It is based on the Secure Hyper Text Transfer Protocol (HTTPS, i.e. the HTTP protocol running SSL) and uses the certificate-based authentication, data encryption and message integrity verification mechanism provided by the SSL protocol to achieve remote access to intranet resources.
[0003] At present, quantum keys are usually used to negotiate symmetric encryption keys between SSL VPN clients and SSL VPN gateways configured in firewall devices to improve the security of the SSL connection established between the two. The quantum keys used by the two are usually obtained by the firewall device from a quantum key exchange machine after the SSL VPN gateway is configured. In this way, when multiple SSL VPN gateways using quantum keys are configured on the firewall device, more memory resources of the firewall device are occupied. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present application provides a quantum key method and device.
[0005] According to a first aspect of an embodiment of the present application, a quantum key distribution method is provided, the method being applied to a firewall device, the method comprising:
[0006] After configuring multiple SSL VPN gateways using quantum keys on itself, request quantum key data of a set size from the quantum exchange cipher machine;
[0007] Splitting the quantum key data into M pieces of quantum key data, and uniquely assigning each piece of the M pieces of quantum key data to an SSL VPN gateway using a quantum key, wherein each piece of the M pieces of quantum key data has the same size, and the value of M is the total number of all SSL VPN gateways using quantum keys;
[0008] According to the splitting rule set for each SSL VPN gateway using quantum key, the quantum key data assigned to each SSL VPN gateway using quantum key is continuously split, and each split quantum key data corresponding to each SSL VPN gateway using quantum key is stored in the kernel, so that when each SSL VPN gateway using quantum key receives a client hello (ClinetHello) message carrying a quantum key identification field sent by any SSL VPN client, it selects the quantum key data that the SSL VPN client needs to use from the unused split quantum key data corresponding to the SSL VPN gateway using quantum key in the kernel, generates a server hello (Server Hello) message carrying the gateway identification of the SSL VPN gateway using quantum key and the content of the carried quantum key identification field is the quantum key identification corresponding to the selected quantum key data, and sends the Server Hello message to the SSL VPN client, so that the SSL VPN client negotiates a symmetric encryption key with the SSL VPN gateway using quantum key according to the quantum key data corresponding to the quantum key identification carried in the Server Hello message and the gateway identification obtained.
[0009] According to a second aspect of an embodiment of the present application, a quantum key distribution device is provided, the device being applied to a firewall device, the device comprising:
[0010] An application module is used to apply for quantum key data of a set size from a quantum exchange cryptographic machine after configuring multiple SSL VPN gateways using quantum keys on itself;
[0011] A distribution module, used for splitting the quantum key data into M pieces of quantum key data, and uniquely distributing each piece of the M pieces of quantum key data to an SSL VPN gateway using a quantum key, wherein the size of each piece of the M pieces of quantum key data is the same, and the value of M is the total number of all SSLVPN gateways using quantum keys;
[0012] The storage module is used to continue to split the quantum key data assigned to each SSL VPN gateway using quantum key according to the splitting rule set for each SSL VPN gateway using quantum key, and store each split quantum key data corresponding to each SSL VPN gateway using quantum key in the kernel, so that when each SSL VPN gateway using quantum key receives a Client Hello message carrying a quantum key identification field sent by any SSL VPN client, it selects the quantum key data that the SSL VPN client needs to use from the unused split quantum key data corresponding to the SSL VPN gateway using quantum key in the kernel, generates a Server Hello message carrying the gateway identification of the SSL VPN gateway using quantum key and the content of the quantum key identification field carried is the quantum key identification corresponding to the selected quantum key data, and sends the Server Hello message to the SSL VPN client, so that the SSL VPN client negotiates a symmetric encryption key with the SSL VPN gateway using quantum key according to the quantum key data corresponding to the quantum key identification carried in the Server Hello message and the gateway identification obtained.
[0013] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0014] In the embodiment of the present application, after the firewall device has configured multiple SSL VPN gateways using quantum keys on itself, it will first apply for quantum key data of a set size from the quantum exchange cipher machine at one time; then, the firewall device splits the quantum key data into M quantum key data, and uniquely allocates each quantum key data in the M quantum key data to an SSL VPN gateway using quantum keys, wherein the size of each quantum key data in the M quantum key data is the same, and the value of M is the total number of all SSL VPN gateways using quantum keys; finally, the firewall device continues to split the quantum key data allocated to each SSL VPN gateway using quantum keys according to the splitting rule set for each SSL VPN gateway using quantum keys, and stores each split quantum key data corresponding to each SSL VPN gateway using quantum keys in the kernel, so that when each SSL VPN gateway using quantum keys receives a Client Hello message carrying a quantum key identification field sent by any SSL VPN client, it selects the quantum key data that the SSL VPN client needs to use from the unused quantum key data corresponding to the SSL VPN gateway using quantum keys in the kernel, and generates an SSL VPN gateway using quantum keys carrying the quantum key identification field. The VPN gateway's gateway identifier and the content of the quantum key identifier field carried are Server Hello messages with the quantum key identifier corresponding to the selected quantum key data, and the Server Hello message is sent to the SSL VPN client, so that the SSL VPN client negotiates a symmetric encryption key with the SSL VPN gateway using the quantum key based on the quantum key data and the gateway identifier corresponding to the quantum key identifier carried in the acquired Server Hello message.
[0015] In this way, through the above-mentioned quantum key distribution process, not only can the memory resources of the firewall device be saved, but the gateway identifier of the SSL VPN gateway configured on the firewall device will also be involved in the negotiation of relevant symmetric encryption keys, further improving communication security.
[0016] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in the specification and constitute a part of this application, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.
[0018] Figure 1 A schematic diagram of a flow chart of a quantum key distribution method provided in an embodiment of the present application;
[0019] Figure 2 A schematic diagram of splitting quantum key data provided in an embodiment of the present application;
[0020] Figure 3 A schematic diagram of the structure of a quantum key distribution device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0022] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0023] It should be understood that, although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" or "if" as used herein may be interpreted as "at the time of" or "when...".
[0024] Next, the embodiments of the present application are described in detail.
[0025] The present application embodiment provides a quantum key distribution method, which is applied to a firewall device, such as Figure 1 As shown, the method may include the following steps:
[0026] S11. After configuring multiple SSL VPN gateways using quantum keys on itself, apply for quantum key data of a set size from the quantum exchange cipher machine.
[0027] S12. Split the quantum key data into M pieces of quantum key data, and uniquely assign each of the M pieces of quantum key data to an SSL VPN gateway that uses a quantum key.
[0028] In this step, the size of each of the M pieces of quantum key data is the same, and the value of M is the total number of all SSL VPN gateways using quantum keys.
[0029] S13. According to the splitting rule set for each SSL VPN gateway using quantum key, the quantum key data allocated to each SSL VPN gateway using quantum key is continued to be split, and each split quantum key data corresponding to each SSL VPN gateway using quantum key is stored in the kernel, so that when each SSL VPN gateway using quantum key receives a Client Hello message carrying a quantum key identification field sent by any SSL VPN client, it selects the quantum key data that the SSL VPN client needs to use from the unused split quantum key data corresponding to the SSL VPN gateway using quantum key in the kernel, generates a Server Hello message carrying the gateway identification of the SSL VPN gateway using quantum key and the quantum key identification field carried is the quantum key identification corresponding to the selected quantum key data, and sends the Server Hello message to the SSL VPN client, so that the SSL VPN client negotiates a symmetric encryption key with the SSL VPN gateway using quantum key according to the quantum key data corresponding to the quantum key identification carried in the obtained Server Hello message and the gateway identification.
[0030] It should be noted that in the embodiment of the present application, for the firewall device, when a gateway that does not require the use of quantum keys is configured on itself, the existing operations are still performed, which will not be described in detail here.
[0031] Specifically, in the above step S11, the above set size can be set according to the actual needs of the network where the firewall device is located, for example, the set size is 5M and so on.
[0032] In the above step S12, the firewall device may mark the quantum key data allocated to each SSL VPN gateway using quantum keys with the respective gateway identification (eg, gateway ID).
[0033] For example, suppose the firewall device is configured with 5 SSL VPN gateways that use quantum keys. After configuring these 5 SSL VPN gateways that use quantum keys, the firewall device applies for 5M of quantum key data from the quantum exchange cipher machine. Afterwards, the firewall device splits the 5M of quantum key data into 5 portions of 1M of quantum key data, and allocates a unique portion of 1M of quantum key data to each of the 5 SSL VPN gateways that use quantum keys, and marks the corresponding quantum key data with the gateway IDs of these SSL VPN gateways that use quantum keys, such as Figure 2 shown.
[0034] In the above step S13, the splitting rules set for each SSL VPN gateway using quantum keys can be completely the same, partially the same, or completely different.
[0035] In one example, the firewall device may proceed to split the quantum key data distributed to each SSL VPN gateway using quantum keys in the following manner:
[0036] According to the set data length, the quantum key data assigned to each SSL VPN gateway using the quantum key continues to be split.
[0037] Here, the above-mentioned set data length can also be set according to the actual needs of the network where the firewall device is located.
[0038] In addition, for any SSL VPN gateway using quantum key configured in the firewall device, upon receiving a Client Hello message carrying a quantum key identification field sent by any SSL VPN client, the size of the quantum key data that the selected SSL VPN client needs to use is determined by the firewall device based on the SSL certificate of the above-mentioned SSL VPN client. The specific determination process is existing technology and will not be described in detail here.
[0039] The SSL VPN gateway using quantum key can carry its own gateway identifier and the quantum key identifier corresponding to the selected quantum key data in the last two extension fields of the Server Hello message. Here, the SSL VPN gateway and the relevant SSL VPN client still negotiate the symmetric encryption key according to the existing negotiation algorithm, which will not be described in detail here.
[0040] Furthermore, in the embodiment of the present application, the firewall device may also perform the following operations:
[0041] After the split quantum key data corresponding to each SSL VPN gateway using quantum key is stored in the kernel, if it is detected that only the last piece of split quantum key data corresponding to any SSL VPN gateway using quantum key is left or a new SSL VPN gateway using quantum key is configured, quantum key data of a set size is requested from the quantum exchange cipher machine again, and the step of splitting the quantum key data into M pieces of quantum key data is executed.
[0042] Furthermore, in order to improve the reasonable utilization rate of quantum key data, in the embodiment of the present application, after the firewall device re-applies for quantum key data of a set size from the quantum exchange cipher machine and before executing the step of splitting the quantum key data into M portions of quantum key data, it can also perform the following operations:
[0043] Determine whether the activity of each SSL VPN gateway using quantum keys is recorded locally;
[0044] When the judgment result is no, executing the step of splitting the quantum key data into M pieces of quantum key data;
[0045] When the result of the judgment is yes, the re-applied quantum key data is split into N pieces of quantum key data according to the activity of each SSL VPN gateway using quantum key recorded locally, each piece of quantum key data in the N pieces of quantum key data is uniquely assigned to an SSL VPN gateway using quantum key, and the step of continuing to split the quantum key data assigned to each SSL VPN gateway using quantum key is executed according to the splitting rule set for each SSL VPN gateway using quantum key;
[0046] Here, the value of N is the same as the value of M, and, among N pieces of quantum key data, the more active the gateway is, the larger the corresponding quantum key data is, and the less active the gateway is, the smaller the corresponding quantum key data is.
[0047] The locally recorded activity of each SSL VPN gateway using quantum keys is calculated and updated at set intervals after the firewall device stores the split quantum key data corresponding to each SSL VPN gateway using quantum keys in the kernel.
[0048] It should be noted that in this operation process, if the judgment result is no, it means that the first set period has not yet been reached, and the firewall device has not yet calculated the activity of each SSL VPN gateway using quantum keys. Therefore, at this time, the firewall device does not have relevant records of the activity of each SSL VPN gateway using quantum keys.
[0049] If the judgment result is yes, it means that the firewall device has calculated the activity of each SSL VPN gateway using quantum keys during the most recent set period, that is, the firewall device side has recorded the latest calculated activity of each SSL VPN gateway using quantum keys.
[0050] Specifically, in this operation process, the firewall device can calculate the activity of each SSL VPN gateway using quantum keys in the following way:
[0051] For each SSL VPN gateway using quantum keys, the number of times the SSL VPN gateway using quantum keys uses the corresponding gateway identifier to negotiate symmetric encryption keys within a set period is counted, and the counted number of times is determined as the activity of the SSL VPN gateway using quantum keys.
[0052] It can be seen from the above technical solution that in the embodiment of the present application, after the firewall device configures multiple SSL VPN gateways using quantum keys on itself, it will first apply for quantum key data of a set size from the quantum exchange cipher machine at one time; then, the firewall device splits the quantum key data into M quantum key data, and uniquely allocates each quantum key data in the M quantum key data to an SSL VPN gateway using quantum key, wherein the size of each quantum key data in the M quantum key data is the same, and the value of M is the total number of all SSL VPN gateways using quantum keys; finally, the firewall device continues to split the quantum key data allocated to each SSL VPN gateway using quantum key according to the splitting rule set for each SSL VPN gateway using quantum key, and stores each split quantum key data corresponding to each SSL VPN gateway using quantum key in the kernel, so that each SSL VPN gateway using quantum key, when receiving a Client Hello message carrying a quantum key identification field sent by any SSL VPN client, selects the SSL VPN gateway using quantum key from the unused quantum key data corresponding to the split quantum key in the kernel. The VPN client needs to use quantum key data, generates a Server Hello message carrying the gateway identifier of the SSL VPN gateway using quantum key and the quantum key identifier field carried, the content of which is the quantum key identifier corresponding to the selected quantum key data, and sends the Server Hello message to the SSL VPN client, so that the SSL VPN client negotiates a symmetric encryption key with the SSL VPN gateway using quantum key according to the quantum key data corresponding to the quantum key identifier carried in the acquired Server Hello message and the gateway identifier.
[0053] In this way, through the above-mentioned quantum key distribution process, not only can the memory resources of the firewall device be saved, but the gateway identifier of the SSL VPN gateway configured on the firewall device will also be involved in the negotiation of relevant symmetric encryption keys, further improving communication security.
[0054] Based on the same inventive concept, the present application also provides a quantum key distribution device, which is applied to a firewall device, and its structural diagram is as follows: Figure 3 As shown, specifically including:
[0055] An application module 31 is used to apply for quantum key data of a set size from a quantum exchange cryptographic machine after configuring multiple SSL VPN gateways using quantum keys on itself;
[0056] The allocation module 32 is used to split the quantum key data into M pieces of quantum key data, and uniquely allocate each piece of quantum key data in the M pieces of quantum key data to an SSL VPN gateway using a quantum key, wherein the size of each piece of quantum key data in the M pieces of quantum key data is the same, and the value of M is the total number of all SSLVPN gateways using quantum keys;
[0057] The storage module 33 is used to continue to split the quantum key data allocated to each SSL VPN gateway using quantum key according to the splitting rule set for each SSL VPN gateway using quantum key, and store each split quantum key data corresponding to each SSL VPN gateway using quantum key in the kernel, so that when each SSL VPN gateway using quantum key receives a Client Hello message carrying a quantum key identification field sent by any SSL VPN client, it selects the quantum key data that the SSL VPN client needs to use from the unused split quantum key data corresponding to the SSL VPN gateway using quantum key in the kernel, generates a Server Hello message carrying the gateway identification of the SSL VPN gateway using quantum key and the content of the carried quantum key identification field is the quantum key identification corresponding to the selected quantum key data, and sends the Server Hello message to the SSL VPN client, so that the SSL VPN client negotiates a symmetric encryption key with the SSL VPN gateway using quantum key according to the quantum key data corresponding to the quantum key identification carried in the Server Hello message and the gateway identification.
[0058] Preferably, the application module 31 is also used for:
[0059] After the storage module 33 stores the split quantum key data corresponding to each SSL VPN gateway using quantum key in the kernel, if it is detected that there is only the last piece of split quantum key data corresponding to any SSL VPN gateway using quantum key left or a new SSL VPN gateway using quantum key is configured, the quantum key data of the set size is requested from the quantum exchange cipher machine again, and the distribution module 32 is triggered to execute the step of splitting the quantum key data into M pieces of quantum key data.
[0060] Preferably, the storage module 33 is specifically used for:
[0061] According to the set data length, the quantum key data assigned to each SSL VPN gateway using the quantum key continues to be split.
[0062] Preferably, the application module is also used for:
[0063] After re-applying for the quantum key data of the set size from the quantum exchange cryptographic machine and before triggering the allocation module 32 to execute the step of splitting the quantum key data into M portions of quantum key data, it is also determined whether the firewall device locally records the activity of each SSL VPN gateway using the quantum key;
[0064] When the judgment result is no, triggering the distribution module 32 to execute the step of splitting the quantum key data into M pieces of quantum key data;
[0065] When the result of the judgment is yes, the re-applied quantum key data is split into N quantum key data according to the activity of each SSL VPN gateway using quantum key recorded locally, each quantum key data in the N quantum key data is uniquely assigned to an SSL VPN gateway using quantum key, and the storage module 33 is triggered to execute the step of continuing to split the quantum key data assigned to each SSL VPN gateway using quantum key according to the splitting rule set for each SSL VPN gateway using quantum key;
[0066] The value of N is the same as the value of M, and, among the N quantum key data, the more active the gateway is, the larger the corresponding quantum key data is, and the less active the gateway is, the smaller the corresponding quantum key data is;
[0067] The locally recorded activity of each SSL VPN gateway using quantum keys is calculated and updated at set intervals after the firewall device stores the split quantum key data corresponding to each SSL VPN gateway using quantum keys in the kernel.
[0068] Preferably, the device further comprises:
[0069] Computational Module( Figure 3 ), which is used to calculate the activity of each SSL VPN gateway using quantum keys in the following way:
[0070] For each SSL VPN gateway using quantum keys, the number of times the SSL VPN gateway using quantum keys uses the corresponding gateway identifier to negotiate symmetric encryption keys within the set period is counted, and the counted number of times is determined as the activity of the SSL VPN gateway using quantum keys.
[0071] It can be seen from the above technical solution that in the embodiment of the present application, after the firewall device configures multiple SSL VPN gateways using quantum keys on itself, it will first apply for quantum key data of a set size from the quantum exchange cipher machine at one time; then, the firewall device splits the quantum key data into M quantum key data, and uniquely allocates each quantum key data in the M quantum key data to an SSL VPN gateway using quantum key, wherein the size of each quantum key data in the M quantum key data is the same, and the value of M is the total number of all SSL VPN gateways using quantum keys; finally, the firewall device continues to split the quantum key data allocated to each SSL VPN gateway using quantum key according to the splitting rule set for each SSL VPN gateway using quantum key, and stores each split quantum key data corresponding to each SSL VPN gateway using quantum key in the kernel, so that each SSL VPN gateway using quantum key, when receiving a Client Hello message carrying a quantum key identification field sent by any SSL VPN client, selects the SSL VPN gateway using quantum key from the unused quantum key data corresponding to the split quantum key in the kernel. The VPN client needs to use quantum key data, generates a Server Hello message carrying the gateway identifier of the SSL VPN gateway using quantum key and the quantum key identifier field carried, the content of which is the quantum key identifier corresponding to the selected quantum key data, and sends the Server Hello message to the SSL VPN client, so that the SSL VPN client negotiates a symmetric encryption key with the SSL VPN gateway using quantum key according to the quantum key data corresponding to the quantum key identifier carried in the acquired Server Hello message and the gateway identifier.
[0072] In this way, through the above-mentioned quantum key distribution process, not only can the memory resources of the firewall device be saved, but the gateway identifier of the SSL VPN gateway configured on the firewall device will also be involved in the negotiation of relevant symmetric encryption keys, further improving communication security.
[0073] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A quantum key distribution method, It is characterized in that The method is applied to a firewall device, and the method comprises: After configuring multiple SSL VPN gateways using quantum keys on itself, request quantum key data of a set size from the quantum exchange cipher machine; Splitting the quantum key data into M pieces of quantum key data, and uniquely assigning each piece of the M pieces of quantum key data to an SSL VPN gateway using a quantum key, wherein each piece of the M pieces of quantum key data has the same size, and the value of M is the total number of all SSL VPN gateways using quantum keys; According to the splitting rule set for each SSL VPN gateway using quantum key, the quantum key data allocated to each SSL VPN gateway using quantum key is continued to be split, and each split quantum key data corresponding to each SSL VPN gateway using quantum key is stored in the kernel, so that when each SSL VPN gateway using quantum key receives a Client Hello message carrying a quantum key identification field sent by any SSL VPN client, it selects the quantum key data that the SSL VPN client needs to use from the unused split quantum key data corresponding to the SSL VPN gateway using quantum key in the kernel, generates a Server Hello message carrying the gateway identification of the SSL VPN gateway using quantum key and the content of the carried quantum key identification field is the quantum key identification corresponding to the selected quantum key data, and sends the Server Hello message to the SSL VPN client, so that the SSL VPN client negotiates a symmetric encryption key with the SSL VPN gateway using quantum key according to the quantum key data corresponding to the quantum key identification carried in the Server Hello message and the gateway identification obtained.
2. The method according to claim 1, It is characterized in that According to the splitting rules set for each SSL VPN gateway using quantum keys, the quantum key data assigned to each SSL VPN gateway using quantum keys continues to be split, including: According to the set data length, the quantum key data assigned to each SSL VPN gateway using the quantum key continues to be split.
3. The method according to claim 1, It is characterized in that The method further comprises: After the split quantum key data corresponding to each SSL VPN gateway using quantum key is stored in the kernel, if it is monitored that only the last piece of split quantum key data corresponding to any SSL VPN gateway using quantum key is left or a new SSL VPN gateway using quantum key is configured, the quantum key data of the set size is requested from the quantum exchange cipher machine again, and the step of splitting the quantum key data into M pieces of quantum key data is executed.
4. The method according to claim 3, It is characterized in that After reapplying for the quantum key data of the set size from the quantum exchange cryptographic machine and before executing the step of splitting the quantum key data into M pieces of quantum key data, the method further includes: Determine whether the activity of each SSL VPN gateway using quantum keys is recorded locally; When the judgment result is no, executing the step of splitting the quantum key data into M pieces of quantum key data; When the result of the judgment is yes, the re-applied quantum key data is split into N pieces of quantum key data according to the activity of each SSL VPN gateway using quantum key recorded locally, each piece of quantum key data in the N pieces of quantum key data is uniquely assigned to an SSL VPN gateway using quantum key, and the step of continuing to split the quantum key data assigned to each SSL VPN gateway using quantum key is executed according to the splitting rule set for each SSL VPN gateway using quantum key; The value of N is the same as the value of M, and, among the N quantum key data, the more active the gateway is, the larger the corresponding quantum key data is, and the less active the gateway is, the smaller the corresponding quantum key data is; The locally recorded activity of each SSL VPN gateway using quantum keys is calculated and updated at set intervals after the firewall device stores the split quantum key data corresponding to each SSL VPN gateway using quantum keys in the kernel.
5. The method according to claim 4, It is characterized in that The liveness of each SSL VPN gateway using quantum keys is calculated as follows: For each SSL VPN gateway using quantum keys, the number of times the SSL VPN gateway using quantum keys uses the corresponding gateway identifier to negotiate symmetric encryption keys within the set period is counted, and the counted number of times is determined as the activity of the SSL VPN gateway using quantum keys.
6. A quantum key distribution device, It is characterized in that The device is applied to a firewall device, and the device comprises: An application module is used to apply for quantum key data of a set size from a quantum exchange cryptographic machine after configuring multiple SSL VPN gateways using quantum keys on itself; A distribution module, used to split the quantum key data into M pieces of quantum key data, and uniquely distribute each piece of the M pieces of quantum key data to an SSL VPN gateway using a quantum key, wherein the size of each piece of the M pieces of quantum key data is the same, and the value of M is the total number of all SSL VPN gateways using quantum keys; The storage module is used to continue to split the quantum key data assigned to each SSL VPN gateway using quantum key according to the splitting rule set for each SSL VPN gateway using quantum key, and store each split quantum key data corresponding to each SSL VPN gateway using quantum key in the kernel, so that when each SSL VPN gateway using quantum key receives a ClientHello message carrying a quantum key identification field sent by any SSL VPN client, it selects the quantum key data that the SSL VPN client needs to use from the unused split quantum key data corresponding to the SSL VPN gateway using quantum key in the kernel, generates a Server Hello message carrying the gateway identification of the SSL VPN gateway using quantum key and the content of the quantum key identification field carried is the quantum key identification corresponding to the selected quantum key data, and sends the Server Hello message to the SSLVPN client, so that the SSLVPN client negotiates a symmetric encryption key with the SSL VPN gateway using quantum key according to the quantum key data corresponding to the quantum key identification carried in the Server Hello message and the gateway identification obtained.
7. The device according to claim 6, It is characterized in that The storage module is specifically used for: According to the set data length, the quantum key data assigned to each SSL VPN gateway using the quantum key continues to be split.
8. The device according to claim 6, It is characterized in that The application module is also used for: After the storage module stores the split quantum key data corresponding to each SSL VPN gateway using quantum key in the kernel, if it is detected that only the last piece of split quantum key data corresponding to any SSL VPN gateway using quantum key is left or a new SSL VPN gateway using quantum key is configured, the quantum key data of the set size is requested from the quantum exchange cipher machine again, and the distribution module is triggered to execute the step of splitting the quantum key data into M pieces of quantum key data.
9. The device according to claim 8, It is characterized in that The application module is also used for: After re-applying for the quantum key data of the set size from the quantum exchange cryptographic machine and before triggering the distribution module to execute the step of splitting the quantum key data into M portions of quantum key data, it is also determined whether the firewall device locally records the activity of each SSL VPN gateway using the quantum key; When the judgment result is no, triggering the distribution module to execute the step of splitting the quantum key data into M pieces of quantum key data; When the result of the judgment is yes, the re-applied quantum key data is split into N pieces of quantum key data according to the activity of each SSL VPN gateway using quantum key recorded locally, each piece of quantum key data in the N pieces of quantum key data is uniquely assigned to an SSL VPN gateway using quantum key, and the storage module is triggered to execute the step of continuing to split the quantum key data assigned to each SSL VPN gateway using quantum key according to the splitting rule set for each SSL VPN gateway using quantum key; Among them, the value of N is the same as the value of M, and the more active the gateway is, the larger the corresponding quantum key data is, and the less active the gateway is, the smaller the corresponding quantum key data is; The locally recorded activity of each SSL VPN gateway using quantum keys is calculated and updated at set intervals after the firewall device stores the split quantum key data corresponding to each SSL VPN gateway using quantum keys in the kernel.
10. The device according to claim 9, It is characterized in that The device also includes: A calculation module is used to calculate the liveness of each SSL VPN gateway using quantum keys by: For each SSL VPN gateway using quantum keys, the number of times the SSL VPN gateway using quantum keys uses the corresponding gateway identifier to negotiate symmetric encryption keys within the set period is counted, and the counted number of times is determined as the activity of the SSL VPN gateway using quantum keys.
