Key distribution method, system and electronic device

By combining the quantum key distribution protocol and post-quantum encryption algorithm between the central key management system and the regional key management system, the quantum cracking risk faced by traditional encryption systems is solved, and the secure synchronous distribution of keys between and within regions is achieved, thereby improving the security and reliability of the keys.

CN119382880BActive Publication Date: 2026-11-20中电信量子信息科技集团有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411532555.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2026-11-20
Estimated Expiration
2044-10-30

AI Technical Summary

Technical Problem

Existing classical encryption systems face the risk of being cracked by quantum algorithms, and traditional cryptography is not secure enough. It is necessary to improve the security of key distribution to resist quantum computing attacks.

Method used

The central key management system and the regional key management system negotiate and distribute key protection keys through a quantum key distribution protocol, generate key data, and encrypt the keys to be distributed using a post-quantum encryption algorithm within the region. Combined with classical channel transmission, this ensures the synchronization and security of keys between and within regions.

Benefits of technology

By employing different encryption methods both between and within regions, key security is improved, quantum computing attacks are resisted, and post-quantum era security is provided, while balancing system construction costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119382880B_ABST
    Figure CN119382880B_ABST
Patent Text Reader

Abstract

The application provides a key distribution method, system and electronic equipment, and relates to the technical field of quantum communication. The method comprises the following steps: a central key management system generates a to-be-distributed key with a random length; a plurality of distribution key protection keys corresponding to a plurality of regional key management systems are acquired, and the plurality of distribution key protection keys have the same length as the to-be-distributed key; a plurality of key data are generated according to the to-be-distributed key and the plurality of distribution key protection keys; and the corresponding key data are sent to the plurality of regional key management systems, so that each regional management system decrypts the corresponding key data according to the distribution key protection key, obtains the to-be-distributed key, and encrypts the to-be-distributed key by using a post-quantum encryption algorithm and then sends the to-be-distributed key to a plurality of key receiving systems in each region. The application can use different key distribution methods in the domain and between domains, and improves the security of the key.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of quantum communication technology, and more specifically, to a key distribution method, system, and electronic device. Background Technology

[0002] With the advancement of computing power, classical encryption systems that rely on computational complexity have been greatly threatened. Quantum algorithms such as Shor's algorithm can solve difficult problems such as integer factorization and discrete logarithms, posing a significant risk to traditional asymmetric cryptographic mechanisms such as RSA, ECC, and SM2.

[0003] Quantum cryptography, based on the quantum key distribution (QKD) protocol, is one of the most important practical applications of quantum communication at present. Traditional cryptography is a mathematically based cryptographic system, while quantum cryptography is based on quantum mechanics. Its security is built on physical properties such as the uncertainty principle, the no-cloning principle of quantum mechanics, and quantum coherence, and has been proven to be absolutely secure. Therefore, quantum cryptography has attracted great attention from the academic community. Summary of the Invention

[0004] The purpose of this application is to address the shortcomings of the prior art by providing a key distribution method, system, and electronic device, so as to improve key security by using different key distribution methods within and between domains.

[0005] To achieve the above objectives, the technical solutions adopted in the embodiments of this application are as follows:

[0006] In a first aspect, embodiments of this application provide a key distribution method applied to a central key management system, wherein the central key management system communicates with key management systems in multiple regions, and each region's key management system communicates with key receiving systems of multiple devices within that region. The method includes:

[0007] Generate a key of random length to be distributed;

[0008] Obtain multiple distribution key protection keys corresponding to the key management systems of the multiple regions, wherein the multiple distribution key protection keys have the same length as the key to be distributed;

[0009] Based on the key to be distributed and the multiple distribution key protection keys, generate multiple key data;

[0010] The corresponding key data is sent to the key management systems of the multiple regions respectively, so that the management system of each region decrypts the corresponding key data according to the distribution key protection key to obtain the key to be distributed, and then encrypts the key to be distributed using a post-quantum encryption algorithm before sending it to the key receiving system of multiple devices in each region.

[0011] Optionally, generating multiple key data based on the key to be distributed and the multiple distribution key protection keys includes:

[0012] The key to be distributed and the multiple distribution key protection keys are XORed to generate the multiple key data.

[0013] Optionally, the central key management system includes: a key distribution module and a first quantum key distribution module, wherein obtaining multiple distribution key protection keys corresponding to the key management systems of the multiple regions respectively includes:

[0014] According to the quantum key distribution protocol, the first quantum key distribution module negotiates with the second quantum key distribution module of the key management system of the multiple regions to determine a distribution key protection key with the same length as the key to be distributed;

[0015] The distribution key protection key is sent to the key distribution module through the first quantum key distribution module;

[0016] The step of generating multiple key data based on the key to be distributed and the multiple distribution key protection keys includes:

[0017] The key distribution module generates the multiple key data based on the key to be distributed and the multiple distribution key protection keys;

[0018] Sending the corresponding key data to the key management systems of the multiple regions respectively includes:

[0019] The key distribution module sends the corresponding key data to the key forwarding module of the key management system in each of the multiple regions.

[0020] Secondly, embodiments of this application also provide a key distribution method applied to a key management system in any region, wherein the key management system in any region communicates with a central key management system, and the key management system in any region also communicates with key receiving systems of multiple devices within the any region, the method comprising:

[0021] The system receives key data sent by the central key management system. The key data is generated by the central key management system based on the key to be distributed and the distribution key protection key of the key management system in any region. The distribution key protection key has the same length as the key to be distributed.

[0022] The key data is decrypted using the distribution key protection key to obtain the key to be distributed;

[0023] The key to be distributed is encrypted using a preset post-quantum encryption algorithm to obtain encrypted ciphertext;

[0024] The encrypted ciphertext is sent to each of the multiple devices, so that each of the multiple devices can decrypt the encrypted ciphertext to obtain the key to be distributed.

[0025] Optionally, the step of encrypting the key to be distributed using a preset post-quantum encryption algorithm to obtain encrypted ciphertext includes:

[0026] Obtain the post-quantum public key from the multiple devices;

[0027] The key to be distributed is encrypted using the post-quantum public keys of the multiple devices to obtain multiple encrypted ciphertexts. Each device decrypts the encrypted ciphertexts using the post-quantum private key corresponding to the post-quantum public key to obtain the key to be distributed.

[0028] Optionally, the step of encrypting the key to be distributed based on the post-quantum public keys of the multiple devices to obtain multiple encrypted ciphertexts, including:

[0029] The symmetric key ciphertext is generated based on the post-quantum public key of each device;

[0030] The key to be distributed is encrypted using the symmetric key of each device to obtain the encrypted ciphertext;

[0031] Sending the corresponding encrypted ciphertext to the plurality of devices respectively includes:

[0032] The encrypted ciphertext and the symmetric key ciphertext are sent to the plurality of devices respectively, so that each device decrypts the symmetric key ciphertext according to the post-quantum private key to obtain the symmetric key, and then decrypts the encrypted ciphertext according to the symmetric key to obtain the key to be distributed.

[0033] Optionally, the key management system for each region includes: a key forwarding module and a second quantum key distribution module. Before receiving key data sent by the central key management system, the method further includes:

[0034] According to the quantum key distribution protocol, the second quantum key distribution module negotiates with the first quantum key distribution module of the central key management system to determine a distribution key protection key with the same length as the key to be distributed;

[0035] The distribution key protection key is sent to the key forwarding module through the second quantum key distribution module.

[0036] Thirdly, embodiments of this application also provide a key distribution system, which includes: a central key management system, multiple regional key management systems, and a key receiving system for multiple devices in each region;

[0037] The central key management system communicates with the key management systems of the multiple regions respectively to execute the key distribution method described in any of the first aspects above, and distributes keys to the key management systems of the multiple regions;

[0038] The key management system of each region communicates with the key receiving system of multiple devices in each region to execute the key distribution method described in any of the second aspects above and distribute keys to the multiple devices.

[0039] Optionally, the central key management system includes a key distribution module and a first quantum key distribution module, the key management system of each region includes a key forwarding module and a second quantum key distribution module, and the key receiving system of each device includes a key receiving and storage module;

[0040] The first quantum key distribution module and the second quantum key distribution module negotiate and distribute the key protection key through a quantum channel;

[0041] The key distribution module sends the key data of the key to be distributed to the key forwarding module through a classic channel;

[0042] The key forwarding module decrypts the key data to obtain the key to be distributed, and sends the encrypted ciphertext corresponding to the key to be distributed to the key receiving and storage module.

[0043] The key receiving and storage module decrypts the encrypted ciphertext to obtain the key to be distributed and stores it persistently.

[0044] Fourthly, embodiments of this application also provide a key distribution device applied to a central key management system, wherein the central key management system communicates with key management systems in multiple regions, and each region's key management system communicates with key receiving systems of multiple devices within each region. The device includes:

[0045] The generation module is used to generate keys of random length to be distributed;

[0046] The acquisition module is used to acquire multiple distribution key protection keys corresponding to the key management systems of the multiple regions, wherein the multiple distribution key protection keys have the same length as the key to be distributed;

[0047] The generation module is also used to generate multiple key data based on the key to be distributed and the multiple distribution key protection keys;

[0048] The first sending module is used to send corresponding key data to the key management systems of the multiple regions respectively, so that the management system of each region decrypts the corresponding key data according to the distribution key protection key to obtain the key to be distributed, and encrypts the key to be distributed using a post-quantum encryption algorithm before sending it to the key receiving system of multiple devices in each region.

[0049] Optionally, the generation module is specifically used to perform XOR operations on the key to be distributed and the plurality of distribution key protection keys respectively to generate the plurality of key data.

[0050] Optionally, the central key management system includes: a key distribution module and a first quantum key distribution module. The acquisition module is used to negotiate with the second quantum key distribution modules of the key management systems of the multiple regions respectively through the first quantum key distribution module according to the quantum key distribution protocol to determine a distribution key protection key with the same length as the key to be distributed; and to send the distribution key protection key to the key distribution module through the first quantum key distribution module.

[0051] The generation module is specifically used to generate the multiple key data by means of the key distribution module based on the key to be distributed and the multiple distribution key protection keys;

[0052] The first sending module is specifically used to send corresponding key data to the key forwarding modules of the key management systems of the multiple regions through the key distribution module.

[0053] Fifthly, embodiments of this application also provide a key distribution device applied to a key management system in any region, wherein the key management system in any region communicates with a central key management system, and the key management system in any region also communicates with key receiving systems of multiple devices within the any region, the device comprising:

[0054] The receiving module is used to receive key data sent by the central key management system. The key data is generated by the central key management system based on the key to be distributed and the distribution key protection key of the key management system in any region. The distribution key protection key has the same length as the key to be distributed.

[0055] The decryption module is used to decrypt the key data according to the distribution key protection key to obtain the key to be distributed;

[0056] The encryption module is used to encrypt the key to be distributed using a preset post-quantum encryption algorithm to obtain encrypted ciphertext;

[0057] The second sending module is used to send the encrypted ciphertext to the plurality of devices respectively, so that the plurality of devices can decrypt the encrypted ciphertext to obtain the key to be distributed.

[0058] Optionally, the encryption module is specifically used to obtain the post-quantum public keys of the multiple devices; encrypt the key to be distributed according to the post-quantum public keys of the multiple devices to obtain multiple encrypted ciphertexts; and each device decrypts the encrypted ciphertexts according to the post-quantum private key corresponding to the post-quantum public key to obtain the key to be distributed.

[0059] Optionally, the encryption module is specifically configured to generate symmetric key ciphertext of a symmetric key based on the post-quantum public key of each device; and to encrypt the key to be distributed based on the symmetric key of each device to obtain the encrypted ciphertext.

[0060] The second sending module is specifically used to send the encrypted ciphertext and the symmetric key ciphertext to the plurality of devices respectively, so that each device decrypts the symmetric key ciphertext according to the post-quantum private key to obtain the symmetric key, and then decrypts the encrypted ciphertext according to the symmetric key to obtain the key to be distributed.

[0061] Optionally, the key management system for each region includes: a key forwarding module and a second quantum key distribution module, and the device further includes:

[0062] The negotiation module is used to negotiate with the first quantum key distribution module of the central key management system through the second quantum key distribution module according to the quantum key distribution protocol to determine a distribution key protection key with the same length as the key to be distributed; and to send the distribution key protection key to the key forwarding module through the second quantum key distribution module.

[0063] Sixthly, embodiments of this application also provide an electronic device, including: a processor, a storage medium, and a bus, wherein the storage medium stores program instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the program instructions to perform the steps of the key distribution method as described in any of the first aspects, or to perform the steps of the key distribution method as described in any of the second aspects.

[0064] In a seventh aspect, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the key distribution method as described in any of the first aspects, or performs the steps of the key distribution method as described in any of the second aspects.

[0065] The beneficial effects of this application are:

[0066] The key distribution method, system, and electronic device provided in this application use the distribution key protection key of each region to encrypt the key to be distributed before sending it to the key management system of each region. The key management system in each region uses a post-quantum encryption algorithm to encrypt the key to be distributed before sending it to multiple devices in each region. Different methods are used to encrypt and distribute the key to be distributed between regions and within regions, thereby improving the security of the key to be distributed while ensuring the synchronization of the key to be distributed between regions and within regions. Attached Figure Description

[0067] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0068] Figure 1 A schematic diagram of a key distribution system provided in an embodiment of this application;

[0069] Figure 2 Flowchart of the key distribution method provided in the embodiments of this application Figure 1 ;

[0070] Figure 3 Flowchart of the key distribution method provided in the embodiments of this application Figure 2 ;

[0071] Figure 4 This is a key distribution interaction diagram provided for an embodiment of this application;

[0072] Figure 5Flowchart of the key distribution method provided in the embodiments of this application Figure 3 ;

[0073] Figure 6 Flowchart of the key distribution method provided in the embodiments of this application Figure 4 ;

[0074] Figure 7 Flowchart of the key distribution method provided in the embodiments of this application Figure 5 ;

[0075] Figure 8 Schematic diagram of the key distribution device provided in the embodiments of this application Figure 1 ;

[0076] Figure 9 Schematic diagram of the key distribution device provided in the embodiments of this application Figure 2 ;

[0077] Figure 10 A schematic diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0078] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some embodiments of this application, but not all embodiments.

[0079] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0080] Furthermore, the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Additionally, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0081] It should be noted that, where there is no conflict, the features in the embodiments of this application can be combined with each other.

[0082] Before introducing the specific implementation of the key distribution method provided in this application, the key distribution system used in this application will be explained in order to facilitate understanding of the scheme.

[0083] Figure 1 A schematic diagram of the key distribution system provided in the embodiments of this application, as shown below. Figure 1 As shown, the key distribution system includes: a central key management system, key management systems in multiple regions, and key receiving systems for multiple devices in each region.

[0084] The central key management system communicates with key management systems in multiple regions to distribute keys to these systems; each region's key management system communicates with key receiving systems in multiple devices within that region to distribute keys to these devices.

[0085] Specifically, the central key management system initiates inter-regional synchronization key distribution, distributing keys to some or all of the key management systems in the multiple regions it manages. Each region includes multiple devices, and after receiving the key, the key management system in each region distributes the key to the multiple devices in its region, thereby achieving key synchronization from between regions to within regions.

[0086] The central key management system generates a key of random length to be distributed and negotiates a distribution key protection key separately with the key management system of each region. The distribution key protection key is used to encrypt the key to be distributed to obtain key data, which is then sent to the key management system of each region.

[0087] After receiving the key data, the key management system in each region decrypts the key data using the negotiated distribution key and protection key to obtain the key to be distributed. Then, it encrypts the key to be distributed using a post-quantum encryption algorithm and sends the encrypted ciphertext to the key receiving system of multiple devices in each region. The key receiving system of multiple devices decrypts the encrypted ciphertext to obtain the key to be distributed.

[0088] In one possible implementation, such as Figure 1 As shown, the central key management system includes a key distribution module and a first quantum key distribution module. The key management system of each region includes a key forwarding module and a second quantum key distribution module. The key receiving system of each device includes a key receiving and storage module.

[0089] The first quantum key distribution module and the second quantum key distribution module negotiate and distribute the key protection key through a quantum channel; the key distribution module sends the key data of the key to be distributed to the key forwarding module through a classical channel; the key forwarding module decrypts the key data to obtain the key to be distributed, and sends the encrypted ciphertext corresponding to the key to be distributed to the key receiving and storage module; the key receiving and storage module decrypts the encrypted ciphertext to obtain the key to be distributed and persistently stores it.

[0090] Specifically, the key distribution module of the central key management system and the key forwarding module of each regional key management system communicate through a classical channel built by a classical communication network such as Ethernet. The key distribution module can be a key distribution program in a classical communication terminal, and the key forwarding module can be a key forwarding program in a classical communication terminal. The first quantum key distribution module and the second quantum key distribution module communicate through a quantum channel built by a quantum communication network. The first quantum key distribution module and the second quantum key distribution module can be QKD devices.

[0091] The first quantum key distribution module and the second quantum key distribution module negotiate a distribution key protection key. The first quantum key distribution module sends the negotiated distribution key protection key to the key distribution module, which generates a random-length key to be distributed and encrypts it using the distribution key protection key. The encrypted key data is then sent to the key forwarding module of the key management system in each region.

[0092] The second quantum key distribution module sends the negotiated distribution key protection key to the key forwarding module. After receiving the key data sent by the key distribution module of the central key management system, the key forwarding module decrypts the key data using the distribution key protection key to obtain the key to be distributed.

[0093] Then, the key forwarding module uses the Post-quantum Cryptography (PQC) algorithm to encrypt the key to be distributed and sends the encrypted ciphertext to the key receiving and storage modules of multiple devices in the area. The key receiving and storage modules decrypt the encrypted ciphertext and obtain the key to be distributed for persistent storage.

[0094] Based on the above key distribution system, the following describes the key distribution method of the central key management system applied to the above key distribution system in conjunction with the embodiments.

[0095] Figure 2 Flowchart of the key distribution method provided in the embodiments of this application Figure 1 ,like Figure 2 As shown, the method may include:

[0096] S101. Generate a key of random length to be distributed.

[0097] In this embodiment, the central key management system uses a quantum random algorithm to generate a quantum random number block, which is then used as the key to be distributed. The length of the quantum random number block is k.

[0098] S102. Obtain multiple distribution key protection keys corresponding to the key management systems of multiple regions, wherein the length of the multiple distribution key protection keys is the same as that of the key to be distributed.

[0099] In this embodiment, the central key management system can select the regions that need to distribute keys across domains and communicate with the key management systems of the selected regions through a quantum channel constructed by a quantum communication network. Based on the quantum key distribution protocol, it obtains the distribution key protection keys ks1, ..., ks for each region. n Distribute the key and protect the key ks1, ..., ks n The length is the same as the length of the key to be distributed.

[0100] S103. Generate multiple key data based on the key to be distributed and multiple distribution key protection keys.

[0101] In this embodiment, the central key management system uses distribution keys for each region to protect keys ks1, ..., ks n The keys to be distributed are encrypted separately to generate key data corresponding to each region.

[0102] In some embodiments, the process of generating multiple key data based on the key to be distributed and multiple distribution key protection keys in step S103 may include:

[0103] Perform an XOR operation on the key to be distributed and the protection keys of multiple distribution keys to generate multiple key data.

[0104] In this embodiment, the central key management system distributes protection keys ks1, ..., ks to each region. n Each region's key data is obtained by performing an XOR operation with the key to be distributed.

[0105] S104. Send the corresponding key data to the key management systems of multiple regions respectively, so that the management system of each region can decrypt the corresponding key data according to the distribution key protection key to obtain the key to be distributed, and encrypt the key to be distributed using the post-quantum encryption algorithm before sending it to the key receiving system of multiple devices in each region.

[0106] In this embodiment, after the distribution key protection key is used to encrypt the key to be distributed, it is no longer necessary to use the quantum key distribution protocol to generate the key. Therefore, it is no longer necessary to generate the encrypted key data through quantum signals. The central key management system communicates with the key management system of the selected region through a classical channel built by a classical communication network such as Ethernet, and sends the key data encrypted with the distribution key protection key of each region to the key management system of the corresponding region.

[0107] Upon receiving the encrypted key data, the key management system uses its own distribution key and protection key to decrypt the key data, obtaining the key to be distributed.

[0108] The key management system in each region uses the PQC algorithm to encrypt the key to be distributed and sends the encrypted ciphertext to the key receiving system of multiple devices in each region. After receiving the encrypted ciphertext, the key receiving system of multiple devices decrypts the encrypted ciphertext to obtain the key to be distributed.

[0109] The key distribution method provided in the above embodiments involves the central key management system encrypting the key to be distributed using the distribution key protection key of each region and sending it to the key management system of each region. The key management system in each region encrypts the key to be distributed using a post-quantum encryption algorithm and sends it to multiple devices in each region. Different methods are used to encrypt and distribute the key to be distributed between regions and within regions, thereby improving the security of the key to be distributed while ensuring synchronization of the key to be distributed between regions and within regions.

[0110] In one possible implementation, Figure 3 A flowchart illustrating the key distribution method provided in this application embodiment. Figure 2 ,like Figure 3 As shown, the process of obtaining multiple distribution key protection keys corresponding to the key management systems of multiple regions through the quantum communication network in S102 above may include:

[0111] S121. According to the quantum key distribution protocol, the first quantum key distribution module negotiates with the second quantum key distribution module of the key management system in multiple regions to determine the distribution key protection key with the same length as the key to be distributed.

[0112] S122. Send the distribution key protection key to the key distribution module through the first quantum key distribution module.

[0113] The process of generating multiple key data based on the key to be distributed and multiple distribution key protection keys in S103 above may include:

[0114] S131. The key distribution module generates multiple key data based on the key to be distributed and multiple distribution key protection keys.

[0115] The process described in S104, which involves sending corresponding key data to key management systems in multiple regions, may include:

[0116] S141. The key distribution module sends the corresponding key data to the key forwarding module of the key management system in multiple regions.

[0117] Example, Figure 4 The key distribution interaction diagram provided in the embodiments of this application is as follows: Figure 4 As shown, the first quantum key distribution module (QKD) in the central key management system and the second quantum key distribution modules (QKD) in the key management systems of each region negotiate a distribution key and a protection key of length k, ks1, ..., ks1, with quantum key distribution protocol on quantum signals. n .

[0118] The negotiation process is as follows: the first quantum key distribution module selects a preparation basis to adjust the randomly generated qubit sequence to obtain a quantum and sends it to the second quantum key distribution module. The second quantum key distribution module randomly selects a measurement basis to measure the quantum and obtains the measurement result. The demodulation results are then used to obtain the qubit sequence. After that, the first quantum key distribution module and the second quantum key distribution module compare the basis vector consistency and retain the qubit data with the same basis vector as the distribution key and protection key.

[0119] After the negotiation is completed, the first quantum key distribution module will negotiate the distribution key and protection key ks1, ..., ks with the second quantum key distribution modules in each region. n The keys are sent separately to the key distribution module, which uses the distribution keys for each region to protect the keys ks1, ..., ks1. n The generated keys to be distributed are XORed to obtain the key data corresponding to each region. The key data of each region is then sent to the key forwarding module in the key management system of each region through the classic channel.

[0120] The second quantum key distribution module in each region will also protect the negotiated distribution key with the keys ks1, ..., ks1. n The key data is sent to the corresponding key forwarding module. After receiving the key data, the key forwarding module decrypts the key data using its own distribution key and protection key to obtain the key to be distributed.

[0121] The key distribution method provided in the above embodiments employs the QKD algorithm for key encryption and distribution between the central key management system and the key management systems in each region, ensuring the use of more secure quantum communication for long-distance cross-regional transmission. The PQC algorithm is used for key encryption and distribution between the key management systems in each region and the devices within that region, effectively resisting quantum computing attacks and providing security capabilities for the post-quantum era. The combination of these two algorithms significantly improves key security. Furthermore, since QKD devices and quantum networks are costly to build, using a quantum communication network for long-distance cross-regional transmission and a classical network within each region balances security while reducing system construction costs.

[0122] The following describes, with reference to embodiments, a key distribution method for a key management system applied to any region of the above-described key distribution system.

[0123] Figure 5 Flowchart of the key distribution method provided in the embodiments of this application Figure 3 ,like Figure 5 As shown, the method may include:

[0124] S201. Receive key data sent by the central key management system. The key data is generated by the central key management system based on the key to be distributed and the distribution key protection key of any regional key management system. The distribution key protection key has the same length as the key to be distributed.

[0125] S202. Decrypt the key data according to the distribution key protection key to obtain the key to be distributed.

[0126] S203. The key to be distributed is encrypted using a preset post-quantum encryption algorithm to obtain encrypted ciphertext.

[0127] S204. Send encrypted ciphertext to multiple devices respectively, so that each device can decrypt the encrypted ciphertext to obtain the key to be distributed.

[0128] In this embodiment, the key management system, which is the area selected by the central key management system, negotiates with the central key management system to determine its own distribution key protection key, and then receives the key data encrypted by the central key management system using the distribution key protection key. The key distribution process of the central key management system is as described in S101-S104 above, and will not be repeated in this embodiment.

[0129] Based on the distribution key protection key determined through negotiation with the central key management system, the key data is decrypted to obtain the key to be distributed. The key to be distributed is then encrypted using the PQC encryption algorithm, and the encrypted ciphertext is sent to the key receiving system of multiple devices in each area. After receiving the encrypted ciphertext, the key receiving system of multiple devices decrypts it to obtain the key to be distributed.

[0130] In one possible implementation, Figure 6 Flowchart of the key distribution method provided in the embodiments of this application Figure 4 ,like Figure 6 As shown, the process of encrypting the key to be distributed using a preset post-quantum encryption algorithm in step S203 to obtain encrypted ciphertext may include:

[0131] S301, Obtain the post-quantum public key from multiple devices.

[0132] S302. The key to be distributed is encrypted using the post-quantum public keys of multiple devices to obtain multiple encrypted ciphertexts. Each device decrypts the encrypted ciphertexts using the post-quantum private key corresponding to the post-quantum public key to obtain the key to be distributed.

[0133] In this embodiment, as Figure 4 As shown, taking region 1 as an example, region 1 includes multiple HSM devices. 1,1 HSM 1,n Multiple devices HSM 1,1 HSM 1,n Each device generates its own PQC public / private key pair using the PQC algorithm. The key management system KSM1 in area 1 obtains multiple device HSMs. 1,1 HSM 1,n PQC public keys pk1, ..., pk n The key management system KSM1 in Zone 1 uses multiple devices HSM. 1,1 HSM 1,n PQC public keys pk1, ..., pk n The distribution key is encrypted separately to obtain multiple device HSMs. 1,1 HSM 1,n The corresponding encrypted ciphertexts are used to store HSMs from multiple devices. 1,1 HSM 1,n The corresponding encrypted ciphertext is sent to the corresponding device, and multiple devices use HSM. 1,1 HSM 1,n The received encrypted ciphertext is decrypted using the user's own PQC private key to obtain the key to be distributed.

[0134] Furthermore, Figure 7 Flowchart of the key distribution method provided in the embodiments of this application Figure 5 ,like Figure 7 As shown, the process of S302 above, which encrypts the key to be distributed based on the post-quantum public keys of multiple devices to obtain multiple encrypted ciphertexts, may include:

[0135] S401. Generate a symmetric key ciphertext for the symmetric key based on the post-quantum public key of each device.

[0136] S402. Encrypt the key to be distributed according to the symmetric key of each device to obtain the encrypted ciphertext.

[0137] The process of sending encrypted ciphertext to multiple devices in S204 above may include:

[0138] S403. Send encrypted ciphertext and symmetric key ciphertext to multiple devices respectively, so that each device can decrypt the symmetric key ciphertext according to the post-quantum private key to obtain the symmetric key, and then decrypt the encrypted ciphertext according to the symmetric key to obtain the key to be distributed.

[0139] In this embodiment, the symmetric key generated using a symmetric key algorithm is encrypted using each device's PQC public key to obtain the symmetric key ciphertext for each device. This symmetric key ciphertext is then used to encrypt the key to be distributed, resulting in encrypted ciphertext. Both the symmetric key ciphertext and the encrypted ciphertext are sent to each device. Each device decrypts the symmetric key ciphertext using its own PQC private key to obtain the symmetric key. This symmetric key is then used to decrypt the encrypted ciphertext, yielding the key to be distributed. After obtaining the key, each device persistently stores it.

[0140] The key distribution method provided in the above embodiments involves the central key management system encrypting the key to be distributed using the distribution key protection key of each region and sending it to the key management system of each region. The key management system in each region encrypts the key to be distributed using a post-quantum encryption algorithm and sends it to multiple devices in each region. Different methods are used to encrypt and distribute the key to be distributed between regions and within regions, thereby improving the security of the key to be distributed while ensuring synchronization of the key to be distributed between regions and within regions.

[0141] In one possible implementation, before receiving the key data from the central key management system in step S201 above, the method may further include:

[0142] According to the quantum key distribution protocol, the second quantum key distribution module negotiates with the first quantum key distribution module of the central key management system to determine a distribution key protection key with the same length as the key to be distributed; the second quantum key distribution module then sends the distribution key protection key to the key forwarding module.

[0143] In this embodiment, the process of the central key management system and the key management system of each region negotiating and distributing the key protection key is as described in S121-S122, S131, and S141 above, and will not be repeated here.

[0144] After receiving the key data sent by the key sending module, the key forwarding module decrypts the key data according to the distribution key protection key to obtain the key to be distributed, and encrypts the key to be distributed according to the PQC public key of the device in the area, and sends the encrypted ciphertext to the key receiving and storage module of the device.

[0145] The key distribution method provided in the above embodiments employs the QKD algorithm for key encryption and distribution between the central key management system and the key management systems in each region, ensuring the use of more secure quantum communication for long-distance cross-regional transmission. The PQC algorithm is used for key encryption and distribution between the key management systems in each region and the devices within that region, effectively resisting quantum computing attacks and providing security capabilities for the post-quantum era. The combination of these two algorithms significantly improves key security. Furthermore, since QKD devices and quantum networks are costly to build, using a quantum communication network for long-distance cross-regional transmission and a classical network within each region balances security while reducing system construction costs.

[0146] Based on the above method embodiments, this application also provides a key distribution device applied to a central key management system, wherein the central key management system communicates with key management systems in multiple regions, and each region's key management system communicates with key receiving systems of multiple devices in each region. Figure 8 Schematic diagram of the key distribution device provided in the embodiments of this application Figure 1 ,like Figure 8 As shown, the device may include:

[0147] The generation module 501 is used to generate a key of random length to be distributed;

[0148] The acquisition module 502 is used to acquire multiple distribution key protection keys corresponding to the key management systems of multiple regions, and the length of the multiple distribution key protection keys is the same as that of the key to be distributed;

[0149] The generation module 501 is also used to generate multiple key data based on the key to be distributed and multiple distribution key protection keys;

[0150] The first sending module 503 is used to send corresponding key data to the key management systems of multiple regions respectively, so that the management system of each region decrypts the corresponding key data according to the distribution key protection key to obtain the key to be distributed, and then encrypts the key to be distributed using a post-quantum encryption algorithm before sending it to the key receiving system of multiple devices in each region.

[0151] Optionally, the generation module 501 is specifically used to perform XOR operations on the key to be distributed and the multiple distribution key protection keys respectively to generate multiple key data.

[0152] Optionally, the central key management system includes: a key distribution module and a first quantum key distribution module. The acquisition module 502 is used to negotiate with the second quantum key distribution modules of the key management systems of multiple regions respectively through the first quantum key distribution module according to the quantum key distribution protocol to determine a distribution key protection key with the same length as the key to be distributed; and to send the distribution key protection key to the key distribution module through the first quantum key distribution module.

[0153] The generation module 501 is specifically used to generate multiple key data based on the key to be distributed and multiple distribution key protection keys through the key distribution module;

[0154] The first sending module 503 is specifically used to send corresponding key data to the key forwarding modules of the key management systems in multiple regions through the key distribution module.

[0155] Based on the above method embodiments, this application also provides a key distribution device, which is applied to a key management system in any region. The key management system in any region communicates with a central key management system, and the key management system in any region also communicates with key receiving systems of multiple devices in any region. Figure 9 Schematic diagram of the key distribution device provided in the embodiments of this application Figure 2 ,like Figure 9 As shown, the device may include:

[0156] The receiving module 601 is used to receive key data sent by the central key management system. The key data is generated by the central key management system based on the key to be distributed and the distribution key protection key of the key management system in any region. The distribution key protection key has the same length as the key to be distributed.

[0157] The decryption module 602 is used to decrypt the key data according to the distribution key and the protection key to obtain the key to be distributed;

[0158] The encryption module 603 is used to encrypt the key to be distributed using a preset post-quantum encryption algorithm to obtain encrypted ciphertext.

[0159] The second sending module 604 is used to send encrypted ciphertext to multiple devices respectively, so that the multiple devices can decrypt the encrypted ciphertext to obtain the key to be distributed.

[0160] Optionally, the encryption module 603 is specifically used to obtain the post-quantum public keys of multiple devices; to encrypt the key to be distributed according to the post-quantum public keys of multiple devices to obtain multiple encrypted ciphertexts; and each device decrypts the encrypted ciphertexts according to the post-quantum private key corresponding to the post-quantum public key to obtain the key to be distributed.

[0161] Optionally, the encryption module 603 is specifically used to generate symmetric key ciphertext of the symmetric key based on the post-quantum public key of each device; and to encrypt the key to be distributed based on the symmetric key of each device to obtain encrypted ciphertext.

[0162] The second sending module 604 is specifically used to send encrypted ciphertext and symmetric key ciphertext to multiple devices respectively, so that each device can decrypt the symmetric key ciphertext according to the post-quantum private key to obtain the symmetric key, and then decrypt the encrypted ciphertext according to the symmetric key to obtain the key to be distributed.

[0163] Optionally, the key management system for each region includes: a key forwarding module and a second quantum key distribution module, and the device may further include:

[0164] The negotiation module is used to negotiate with the first quantum key distribution module of the central key management system through the second quantum key distribution module according to the quantum key distribution protocol to determine the distribution key protection key with the same length as the key to be distributed; and to send the distribution key protection key to the key forwarding module through the second quantum key distribution module.

[0165] The above-described device is used to execute the method provided in the foregoing embodiments, and its implementation principle and technical effect are similar, so they will not be described again here.

[0166] These modules can be one or more integrated circuits configured to implement the above methods, such as one or more Application Specific Integrated Circuits (ASICs), one or more microprocessors, or one or more Field Programmable Gate Arrays (FPGAs). Alternatively, when a module is implemented using processing element scheduler code, the processing element can be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. Furthermore, these modules can be integrated together as a system-on-a-chip (SOC).

[0167] Figure 10 A schematic diagram of the electronic device provided in the embodiments of this application, such as... Figure 10 As shown, the electronic device 700 includes a processor 701, a storage medium 702, and a bus. The storage medium 702 stores program instructions executable by the processor 701. When the electronic device 700 is running, the processor 701 communicates with the storage medium 702 via the bus, and the processor 701 executes the program instructions to perform the above-described method embodiment. The specific implementation and technical effects are similar and will not be described in detail here.

[0168] Optionally, this application also provides a computer-readable storage medium storing a computer program, which is executed by a processor to perform the above-described method embodiments.

[0169] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0170] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0171] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in a combination of hardware and software functional units.

[0172] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0173] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A key distribution method, characterized in that, An application is made in a central key management system, which communicates with key management systems in multiple regions. Each region's key management system communicates with key receiving systems of multiple devices within that region. The central key management system includes a key distribution module and a first quantum key distribution module. The method includes: Generate a key of random length to be distributed; Obtain multiple distribution key protection keys corresponding to the key management systems of the multiple regions, wherein the multiple distribution key protection keys have the same length as the key to be distributed; Based on the key to be distributed and the multiple distribution key protection keys, generate multiple key data; The corresponding key data is sent to the key management system of the multiple regions respectively, so that the management system of each region decrypts the corresponding key data according to the distribution key protection key to obtain the key to be distributed, and then encrypts the key to be distributed using a post-quantum encryption algorithm before sending it to the key receiving system of multiple devices in each region. The step of obtaining multiple distribution key protection keys corresponding to the key management systems of the multiple regions includes: According to the quantum key distribution protocol, the first quantum key distribution module negotiates with the second quantum key distribution module of the key management system of the multiple regions to determine a distribution key protection key with the same length as the key to be distributed; The distribution key protection key is sent to the key distribution module through the first quantum key distribution module; The step of generating multiple key data based on the key to be distributed and the multiple distribution key protection keys includes: The key distribution module generates the multiple key data based on the key to be distributed and the multiple distribution key protection keys; Sending the corresponding key data to the key management systems of the multiple regions respectively includes: The key distribution module sends the corresponding key data to the key forwarding module of the key management system in each of the multiple regions.

2. The method as described in claim 1, characterized in that, The step of generating multiple key data based on the key to be distributed and the multiple distribution key protection keys includes: The key to be distributed and the multiple distribution key protection keys are XORed to generate the multiple key data.

3. A key distribution method, characterized in that, A key management system applied to any region, wherein the key management system of any region communicates with a central key management system, and the key management system of any region also communicates with key receiving systems of multiple devices within that region, the method comprising: The system receives key data sent by the central key management system. The key data is generated by the central key management system based on the key to be distributed and the distribution key protection key of the key management system in any region. The distribution key protection key has the same length as the key to be distributed. The key data is decrypted using the distribution key protection key to obtain the key to be distributed; The key to be distributed is encrypted using a preset post-quantum encryption algorithm to obtain encrypted ciphertext; The encrypted ciphertext is sent to the plurality of devices respectively, so that the plurality of devices decrypt the encrypted ciphertext to obtain the key to be distributed; The key management system in any region includes: a key forwarding module and a second quantum key distribution module. Before receiving key data sent by the central key management system, the method further includes: According to the quantum key distribution protocol, the second quantum key distribution module negotiates with the first quantum key distribution module of the central key management system to determine a distribution key protection key with the same length as the key to be distributed; The distribution key protection key is sent to the key forwarding module through the second quantum key distribution module.

4. The method as described in claim 3, characterized in that, The step of encrypting the key to be distributed using a preset post-quantum encryption algorithm to obtain encrypted ciphertext includes: Obtain the post-quantum public key from the multiple devices; The key to be distributed is encrypted using the post-quantum public keys of the multiple devices to obtain multiple encrypted ciphertexts. Each device decrypts the encrypted ciphertexts using the post-quantum private key corresponding to the post-quantum public key to obtain the key to be distributed.

5. The method as described in claim 4, characterized in that, The step involves encrypting the key to be distributed using the post-quantum public keys of the multiple devices, resulting in multiple encrypted ciphertexts, including: The symmetric key ciphertext is generated based on the post-quantum public key of each device; The key to be distributed is encrypted using the symmetric key of each device to obtain the encrypted ciphertext; Sending the corresponding encrypted ciphertext to the plurality of devices respectively includes: The encrypted ciphertext and the symmetric key ciphertext are sent to the plurality of devices respectively, so that each device decrypts the symmetric key ciphertext according to the post-quantum private key to obtain the symmetric key, and then decrypts the encrypted ciphertext according to the symmetric key to obtain the key to be distributed.

6. A key distribution system, characterized in that, The key distribution system includes: a central key management system, multiple regional key management systems, and a key receiving system for multiple devices in each region; The central key management system communicates with the key management systems of the multiple regions respectively to execute the key distribution method according to any one of claims 1 to 2, and distribute keys to the key management systems of the multiple regions; The key management system of each region communicates with the key receiving system of multiple devices in each region to execute the key distribution method according to any one of claims 3 to 5 and distribute keys to the multiple devices.

7. The key distribution system as described in claim 6, characterized in that, The central key management system includes a key distribution module and a first quantum key distribution module; the key management system of each region includes a key forwarding module and a second quantum key distribution module; and the key receiving system of each device includes a key receiving and storage module. The first quantum key distribution module and the second quantum key distribution module negotiate and distribute the key protection key through a quantum channel; The key distribution module sends the key data of the key to be distributed to the key forwarding module through a classic channel; The key forwarding module decrypts the key data to obtain the key to be distributed, and sends the encrypted ciphertext corresponding to the key to be distributed to the key receiving and storage module. The key receiving and storage module decrypts the encrypted ciphertext to obtain the key to be distributed and stores it persistently.

8. An electronic device, characterized in that, include: The device includes a processor, a storage medium, and a bus, wherein the storage medium stores program instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the program instructions to perform the steps of the key distribution method as described in any one of claims 1 to 2, or to perform the steps of the key distribution method as described in any one of claims 3 to 5.

Citation Information

Patent Citations

  • Cipher key distribution system, cipher key distribution method, and cipher key distribution device

    CN108337084A

  • Systems and methods for implementing quantum secure wireless networks

    CN118435203A