A quantum key management method, device and system
By protecting the quantum keys and updating them when receiving the encrypted communication request, the problem of easy stolen during quantum key storage is solved, ensuring the security of encrypted communication and the effectiveness of the keys.
Patent Information
- Application Number
- CN202011576175.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-28
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2040-12-28
AI Technical Summary
Existing quantum keys are easily stolen by attackers during node storage, resulting in the problem of cracking of encrypted communication information.
The quantum key management method with dual encryption protection is adopted. By pre-allocating the master key and communication key on the encryption party and the decryption party node, the quantum key is encrypted and grouped, and the quantum key is decrypted only when an encrypted communication request is received, and based on Random numbers update shared quantum keys to avoid security risks caused by long-term storage.
It effectively prevents malicious third parties from stealing quantum keys, ensures the security of encrypted communications, and updates before the key is used, avoiding the risk of the key being stolen and cracking the encrypted communication information.
Smart Images

Figure CN114760047B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of quantum communication technology, and in particular to a quantum key management method, device and system. Background Art
[0002] Due to the limitations of generation speed or generation lines, quantum keys cannot be generated in real time to meet the needs of encrypted communication. Quantum keys need to be pre-set between nodes in the quantum cryptography network. Sometimes, considering the maximum encryption requirements of the line, a large number of quantum keys need to be pre-set.
[0003] The quantum key needs to be stored in the node for a period of time from generation to use. This provides an opportunity for attackers to steal the quantum key of the node and monitor the quantum key encrypted communication information between nodes. The attacker may attack the node system during the storage period of the quantum key in the node, steal the quantum key, and use the stolen quantum key to crack the encrypted communication information between nodes. Summary of the invention
[0004] In view of this, the present invention provides a quantum key management method, device and system, which is used to solve the problem in the prior art that attackers may attack the node system during the storage period of the quantum key in the node, steal the quantum key, and use the stolen quantum key to crack the encrypted communication information between nodes. The specific scheme is as follows:
[0005] A quantum key management method is applied to an encryption node, pre-assigning a first master key and a first communication key encryption key to the encryption node, grouping the shared quantum keys of the encryption node, selecting a first communication key in each group to obtain each first communication key, encrypting each first communication key based on the first communication key encryption key to obtain each first communication key ciphertext, encrypting the first communication key encryption key based on the first master key to obtain a first communication key encryption key ciphertext, and after encryption, deleting each first communication key and the first communication key encryption key in the corresponding group, the method comprising:
[0006] Upon receiving an encrypted communication request, decrypting the first communication key encryption key ciphertext based on the first master key to obtain a first communication key encryption key;
[0007] Selecting a target first communication key ciphertext from each of the first communication key ciphertexts, and decrypting the target first communication key ciphertext based on the first communication key encryption key to obtain a target first communication key;
[0008] generating verification information based on the target first communication key;
[0009] Sending the verification information to the decryption node to enable the decryption node to perform verification, and obtaining a random number generated by the decryption node if the verification passes;
[0010] An updated shared quantum key is generated based on the remaining shared quantum keys in the group corresponding to the target first communication key and the random number.
[0011] The above method, optionally, generates verification information based on the target first communication key, including:
[0012] Obtaining a first identifier of the target first communication key ciphertext;
[0013] Obtain a second identifier of a group corresponding to the target first communication key;
[0014] Generate a first authentication code based on the first identifier, the second identifier and the target first communication key;
[0015] The verification information includes: the first identifier, the second identifier and the first authentication code.
[0016] The above method may optionally include obtaining a random number generated by the decryption node, including:
[0017] Receiving the random number ciphertext sent by the decryption node;
[0018] The majority of random number ciphertexts are decrypted based on the target first communication key to obtain the random number.
[0019] The above method may optionally further include:
[0020] When a deletion instruction is received, the updated shared quantum key is deleted.
[0021] A quantum key management method is applied to a decryption node, pre-allocating a second master key and a second communication key encryption key to the decryption node, grouping the shared quantum keys of the decryption node, selecting a second communication key in each group to obtain each second communication key, encrypting each second communication key based on the second communication key encryption key to obtain each second communication key ciphertext, encrypting the second communication key encryption key based on the second master key to obtain a second communication key encryption key ciphertext, and after encryption, deleting each second communication key and the second communication key encryption key in the corresponding group, the method comprising:
[0022] Receiving verification information, wherein the verification information includes: a first identifier, a second identifier, and a first authentication code;
[0023] Decrypting the second communication key encryption key ciphertext based on the second master key to obtain a second communication key encryption key;
[0024] determining a target second communication key based on the second communication key encryption key and the first identifier;
[0025] Generate a second authentication code based on the first identifier, the second identifier and the target second communication key;
[0026] When the second authentication code is the same as the first authentication code, generating a random number ciphertext and sending it to the encryption node, so that the encryption node obtains a random number;
[0027] An updated shared quantum key is generated based on the random number and the shared quantum key in the group corresponding to the target second communication key.
[0028] The above method, optionally, determines the target second communication key based on the second communication key encryption key and the first identifier, including:
[0029] Selecting a target second communication key ciphertext based on the first identifier;
[0030] The target second communication key ciphertext is decrypted based on the second communication key encryption key to obtain the target second communication key.
[0031] The above method may optionally further include:
[0032] If the decryption node does not receive the decryption request within a preset time interval, deleting the updated shared quantum key;
[0033] Send a deletion instruction to the encryption node to instruct the encryption node to delete the corresponding updated shared quantum key.
[0034] A quantum key management device is applied to an encryption node, pre-assigns a first master key and a first communication key encryption key to the encryption node, groups the shared quantum keys of the encryption node, selects a first communication key in each group to obtain each first communication key, encrypts each first communication key based on the first communication key encryption key to obtain each first communication key ciphertext, encrypts the first communication key encryption key based on the first master key to obtain a first communication key encryption key ciphertext, and after encryption is completed, deletes each first communication key and the first communication key encryption key in the corresponding group, wherein the device comprises:
[0035] A first decryption module, configured to decrypt the first communication key encryption key ciphertext based on the first master key to obtain a first communication key encryption key upon receiving an encrypted communication request;
[0036] A selection and decryption module, configured to select a target first communication key ciphertext from each of the first communication key ciphertexts, decrypt the target first communication key ciphertext based on the first communication key encryption key, and obtain a target first communication key;
[0037] A verification information generation module, used to generate verification information based on the target first communication key;
[0038] A sending module, used to send the verification information to a decryption node, so that the decryption node can perform verification, and if the verification is successful, obtain a random number generated by the decryption node;
[0039] The first key generation module is used to generate an updated shared quantum key based on the shared quantum key in the group corresponding to the target first communication key and the random number.
[0040] A quantum key management device is applied to a decryption node, pre-allocates a second master key and a second communication key encryption key to the decryption node, groups the shared quantum keys of the decryption node, selects a second communication key in each group to obtain each second communication key, encrypts each second communication key based on the second communication key encryption key to obtain each second communication key ciphertext, encrypts the second communication key encryption key based on the second master key to obtain a second communication key encryption key ciphertext, and after encryption is completed, deletes each second communication key and the second communication key encryption key in the corresponding group, the device comprising:
[0041] A receiving module, configured to receive verification information, wherein the verification information includes: a first identifier, a second identifier, and a first authentication code;
[0042] A second decryption module, used to decrypt the second communication key encryption key ciphertext based on the second master key to obtain a second communication key encryption key;
[0043] A determination module, configured to determine a target second communication key based on the second communication key encryption key and the first identifier;
[0044] An authentication code generation module, configured to generate a second authentication code based on the first identifier, the second identifier and the target second communication key;
[0045] A random number generation module, configured to generate a random number ciphertext and send it to an encryption node when the second authentication code is the same as the first authentication code, so that the encryption node obtains a random number;
[0046] The second key generation module is used to generate an updated shared quantum key based on the random number and the shared quantum key in the group corresponding to the target second communication key.
[0047] A quantum key management system, characterized in that it comprises: an encryption node and a decryption node, wherein:
[0048] The encryption node is used to execute the above-mentioned quantum key management method applied to the encryption node;
[0049] The decryption node is used to execute the above-mentioned quantum key management method applied to the decryption node.
[0050] Compared with the prior art, the present invention has the following advantages:
[0051] The present invention discloses a quantum key management method, including: upon receiving an encrypted communication request, decrypting a first communication key encryption key ciphertext based on a first master key to obtain a first communication key encryption key; selecting a target first communication key ciphertext from each first communication key ciphertext, decrypting the target first communication key ciphertext based on the first communication key encryption key, and generating verification information based on the obtained target first communication key; sending the verification information to a decryption node to enable the decryption node to verify, and obtaining a random number generated by the decryption node if the verification is passed; generating an updated shared quantum key based on the shared quantum key and the random number in the corresponding group of the target first communication key. In the above process, the shared quantum key is updated based on the random number before it is used, and encryption and decryption are not performed directly based on the shared quantum key. Since a malicious third party cannot obtain the random number, it is impossible to perform a corresponding key transformation on the quantum key it has stolen, thereby avoiding the problem that the key stored for a long time can be stolen to crack the encrypted communication information between nodes.
[0052] In addition, in order to prevent a malicious third party from obtaining the random number used in key transformation, the present invention uses the communication key to encrypt the random number for communication protection, and performs double encryption protection of the communication key by the master key and the communication key encryption key. Due to the particularity of the storage location of the master key in the node system, the malicious third party cannot obtain the master key, nor can it obtain the communication key encryption key encrypted and protected by the master key, so it cannot obtain the communication key, which ensures the security of the communication key, thereby ensuring the security of the random number used for key transformation. In addition, if encrypted communication is not performed immediately, the newly generated key is deleted, which prevents the newly generated key from being stored for too long and being stolen again by a malicious third party. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0054] Figure 1 A flow chart of a quantum key management method disclosed in an embodiment of the present application;
[0055] Figure 2 This is another flow chart of a quantum key management method disclosed in an embodiment of the present application;
[0056] Figure 3 This is a structural block diagram of a quantum key management device disclosed in an embodiment of the present application;
[0057] Figure 4 This is another structural block diagram of a quantum key management device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0058] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0059] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0060] The present invention discloses a quantum key management method, device and system, which are applied to the management process of quantum keys. Quantum cryptography technology based on quantum key distribution (QKD) protocol is one of the most important practical applications of quantum communication at this stage. Traditional cryptography is a cryptographic system based on mathematics, while quantum cryptography is based on quantum mechanics. Its security is based on physical properties such as uncertainty principle, quantum non-cloning and quantum coherence, and has been proven to be unconditionally secure.
[0061] A quantum cryptography network is a secure communication network that uses quantum cryptography. The quantum cryptography network is constructed by a classical communication network and a QKD network. The QKD network is mainly composed of QKD terminal devices and quantum links, which are used for quantum key distribution. The classical communication network uses quantum keys to encrypt and decrypt data and transmit encrypted data. A quantum cryptography network node is generally composed of a classical communication terminal connected to a classical communication network and a QKD terminal device connected to a QKD network. A classical communication terminal is generally bound to a QKD terminal device, and the quantum key distribution behavior of the QKD terminal device is initiated by the classical communication terminal according to encryption requirements.
[0062] One of the shortcomings of existing quantum cryptographic networks is that due to the limitation of quantum key generation speed or generation line, quantum keys cannot be generated in real time to meet the needs of encrypted communication. Quantum keys need to be pre-set between nodes of quantum cryptographic networks. Sometimes, considering the maximum encryption requirements of the line, a large number of quantum keys need to be pre-set. Quantum keys need to be stored in nodes for a period of time from generation to use. This provides an opportunity for attackers to steal node quantum keys and monitor quantum key encrypted communication information between nodes. Attackers may attack the node system during the storage period of quantum keys in the node, steal quantum keys, and use the stolen quantum keys to crack the encrypted communication information between nodes. Based on the above problems, a quantum key management method is provided in an embodiment of the present invention. The management method is applied to an encryption party node, and the encryption party node may be a terminal or a processor, etc. A first master key and a first communication key encryption key are pre-assigned to the encryption party node, and the shared quantum key of the encryption party node is key divided and grouped. Preferably, the shared quantum key can be divided based on the key length (number of bits) of the shared quantum key, and a certain number of shared quantum keys are divided into a group, and a second identifier is assigned to each group, and the second identifier is used to distinguish each group. Preferably, the second identifier may be a group number, and a shared quantum key is extracted from each group of shared quantum keys as the first communication key to obtain each first communication key, and the first communication key in each group of shared quantum keys is deleted, and the remaining shared quantum keys in each group of shared quantum keys are numbered, and each shared quantum key has its own serial number.
[0063] The first communication keys are encrypted based on the first communication key encryption key to obtain the first communication key ciphertexts. Preferably, a first identifier is assigned to each first communication key ciphertext, and the first identifier is used to distinguish the first communication key ciphertexts. The first identifier can be a number, and the first communication key ciphertexts are numbered in sequence. The first communication key encryption key is encrypted based on the first master key to obtain the first communication key encryption key ciphertext, and the first communication keys and the first communication key encryption key in the corresponding group are deleted at the same time. The execution process of the management method is as follows: Figure 1 As shown, the steps include:
[0064] S101. upon receiving an encrypted communication request, decrypting the first communication key encryption key ciphertext based on the first master key to obtain a first communication key encryption key;
[0065] S102, selecting a target first communication key ciphertext from the first communication key ciphertexts, and decrypting the target first communication key ciphertext based on the first communication key encryption key to obtain a target first communication key;
[0066] In the embodiment of the present invention, an unused first communication key ciphertext numbered N (first identifier) is selected as the target first communication key ciphertext, and the target first communication key ciphertext is decrypted based on the first communication key encryption key to obtain the target first communication key C A ;
[0067] S103, generating verification information based on the target first communication key;
[0068] In the embodiment of the present invention, it is assumed that the group number is M ID (Second identification) in the corresponding group of the shared quantum key to encrypt the communication, in the embodiment of the present invention, based on M ID , N and the target first communication key C A Determine the first authentication code HMAC (M ID ||N;C A ), wherein the first authentication code HMAC(M ID ||N;C A ) is the data M ID ||N about C A The hash operation message authentication code related to the key, || is the data connection operator. Wherein, the verification information includes: M ID , N and HMAC(M ID ||N;C A ).
[0069] S104, sending the verification information to the decryption node to enable the decryption node to perform verification, and if the verification passes, obtaining a random number generated by the decryption node;
[0070] In an embodiment of the present invention, the verification information is sent to a decryption node, wherein the decryption node and the encryption node have the same shared quantum key and use the same grouping method, the decryption node first allocates a second master key and a second communication key encryption key to the decryption node, and based on the second master key and the second communication key encryption key, the same preprocessing method as the encryption node is used to make the decryption node perform verification based on the verification information. If the verification passes, the decryption node sends a random number ciphertext to the encryption node, the encryption node receives the random number ciphertext sent by the decryption node, and decrypts the random number ciphertext based on the target first communication key to obtain the random number.
[0071] S105. Generate an updated shared quantum key based on the shared quantum key in the group corresponding to the target first communication key and the random number.
[0072] In an embodiment of the present invention, an updated shared quantum key is generated based on the target first communication key and the random number. In order to prevent the updated shared quantum key from being stolen, preferably, upon receiving a deletion instruction sent by the decryption node, the updated shared quantum key is deleted, wherein the sending of the deletion instruction is related to the deletion rule set by the decryption node.
[0073] The present invention discloses a quantum key management method, including: upon receiving an encrypted communication request, decrypting a first communication key encryption key ciphertext based on a first master key to obtain a first communication key encryption key; selecting a target first communication key ciphertext from each first communication key ciphertext, decrypting the target first communication key ciphertext based on the first communication key encryption key, and generating verification information based on the obtained target first communication key; sending the verification information to a decryption node to enable the decryption node to verify, and obtaining a random number generated by the decryption node if the verification passes; generating an updated shared quantum key based on the shared quantum key and the random number in the corresponding group of the target first communication key. In the above process, the shared quantum key is updated based on a random number before it is used, and encryption and decryption are not performed directly based on the shared quantum key, thereby avoiding the problem that the encrypted communication information between nodes can be cracked by the stolen key.
[0074] In an embodiment of the present invention, based on the above-mentioned quantum key management method applied to the encryption node, an embodiment of the present invention further provides a quantum key management method applied to the decryption node, and the decryption node can be a terminal or a processor, etc., wherein a second master key and a second communication key encryption key are pre-assigned to the decryption node, and the shared quantum keys of the decryption node are grouped to obtain each second communication key, wherein the grouping process is the same as the processing process of the encryption node, which will not be repeated here, and the each second communication key is encrypted based on the second communication key encryption key to obtain each second communication key ciphertext, and the processing of each second communication key ciphertext is the same as the processing process of each first communication key ciphertext, which will not be repeated here. The second communication key encryption key is encrypted based on the second master key to obtain a second communication key encryption key ciphertext. After the encryption is completed, the each second communication key and the second communication key encryption key in the corresponding group are deleted,
[0075] The execution flow of the method is as follows: Figure 2 As shown, the steps include:
[0076] S201, receiving verification information, wherein the verification information includes: a first identifier, a second identifier and a first authentication code;
[0077] In the embodiment of the present invention, a verification message sent by the encryption node is received, wherein the verification message includes: a first identifier N, a second identifier M ID and the first authentication code HMAC(M ID ||N;C A ).
[0078] S202. Decrypt the second communication key encryption key ciphertext based on the second master key to obtain a second communication key encryption key;
[0079] S203, determining a target second communication key based on the second communication key encryption key and the first identifier;
[0080] In the embodiment of the present invention, a target second communication key ciphertext is selected based on the first identifier N; the target second communication key ciphertext is decrypted based on the second communication key encryption key to obtain the target second communication key C B .
[0081] S204, generating a second authentication code based on the first identifier, the second identifier and the target second communication key;
[0082] In the embodiment of the present invention, based on the first identifier N and the second identifier M ID and the target second communication key to generate a second authentication code HMAC (MID ||N;C B ).
[0083] S205. When the second authentication code is the same as the first authentication code, generate a random number ciphertext and send it to the encryption node, so that the encryption node obtains a random number;
[0084] In the embodiment of the present invention, the HMAC (M ID ||N;C B ) is consistent with HMAC(M ID ||N;C A ) are equal, if they are equal, the decryption node generates a true random number R, using the target second communication key C B Encrypt R to obtain random number ciphertext, send the random number ciphertext to the encryption node, and the encryption node uses the target first communication key C A (C A =C B ) decrypt the random number ciphertext to obtain a random number R.
[0085] S206. Generate an updated shared quantum key based on the random number and the shared quantum key in the group corresponding to the target second communication key.
[0086] In an embodiment of the present invention, an updated shared quantum key is generated based on the shared quantum key in the group corresponding to the random number and the target second communication key. If the decryption node does not receive a decryption request within a preset time interval, the updated shared quantum key is deleted, and a deletion instruction is sent to the encryption node to cause the encryption node to delete the corresponding updated shared quantum key. The preset time can be set based on experience or specific circumstances, and is not specifically limited in the embodiment of the present invention. Preferably, in order to prevent the updated shared quantum key from being stolen, the preset time can be set to 10ms.
[0087] The present invention discloses a quantum key management method, which is applied to a decryption node, including: receiving verification information, wherein the verification information includes: a first identifier, a second identifier and a first authentication code; decrypting the second communication key encryption key ciphertext based on the second master key to obtain a second communication key encryption key; determining a target second communication key based on the second communication key encryption key and the first identifier; generating a second authentication code based on the first identifier, the second identifier and the target second communication key; generating a random number ciphertext and sending it to the encryption node when the second authentication code is the same as the first authentication code, so that the encryption node obtains a random number; generating an updated shared quantum key based on the shared quantum key in the group corresponding to the random number and the target second communication key. The shared quantum key is updated based on the random number before it is used, and encryption and decryption are not performed directly based on the shared quantum key, thereby avoiding the problem that the encrypted communication information between nodes can be cracked by the stolen key.
[0088] Based on the above quantum key management method, an embodiment of the present invention further provides a quantum key management system, the management system comprising: an encryption node and a decryption node, wherein the encryption node and the decryption node share a quantum key, and the shared quantum key is preprocessed, and the preprocessing process is as follows:
[0089] The encryption node A and the decryption node B, which can obtain the shared quantum key through quantum key distribution, respectively create the first master key M A and a second master key MB;
[0090] After each quantum key distribution, the encryption node A and the decryption node B respectively create a first communication key encryption key E A and the second communication key encryption key E B ;
[0091] Dividing and grouping the distributed shared quantum keys, wherein each group of shared quantum keys corresponding to the encryption node A and the decryption node B has the same group number, numbering each group of keys, extracting a communication key from each group of keys, and sequentially numbering the remaining keys, wherein the remaining keys in each group of keys corresponding to the encryption node A and the decryption node B have the same serial number;
[0092] Encrypt the communication key using the corresponding communication key encryption key, retain the ciphertext, and number the ciphertext sequence; encrypt the communication key encryption key using the corresponding master key, retain the ciphertext; delete the corresponding communication key and communication key encryption key.
[0093] The storage of the master key must be highly secure, physically secure, and logically secure, and is usually stored in a dedicated cryptographic device of the node.
[0094] When the encryption node A and the decryption node B are to use quantum keys for encrypted communication, the encryption node A uses the first master key M A Decrypt the first communication key encryption key ciphertext to obtain the first communication key encryption key E A , select the target first communication key ciphertext numbered N that has not been used, and use the first communication key to encrypt the key E A Decrypt to obtain the target first communication key C A . Assume that you want to use group number M ID The encryption node A sends an encryption communication request to the decryption node B, and M ID , N and HMAC(M ID ||N;C A ) is sent to the decryption node B, where HMAC(M ID ||N;C A ) is the data M ID ||N's first communication key C for the target A The key-related hash operation message authentication code, || is the data concatenation operator.
[0095] The decryption node B verifies the identity of the encryption node A, generates a random number R, encrypts it and sends it to the encryption node A.
[0096] The decryption node B receives the encrypted communication request and the verification data M ID , N and HMAC(M ID ||N;C A ), using the second master key M B Decrypt the second communication key encryption key ciphertext to obtain the second communication key encryption key E B , select the target second communication key ciphertext numbered N, and use the second communication key to encrypt the key E B Decrypt to obtain the target second communication key C B , verify HMAC(M ID ||N;C B ) is consistent with HMAC(M ID ||N;C A ) are equal, if they are equal, the decryption node B generates a true random number R, using the target second communication key C B Encrypt R, send the ciphertext to the encryption node A, and let the encryption node A use the target first communication key C A (CA =C B )Decrypt the ciphertext and obtain the random number R.
[0097] The two parties in encrypted communication simultaneously transform the key and use the transformed key for encrypted communication.
[0098] The encryption node A and the decryption node B use a random number R and a quantum key K with a serial number ID. ID Perform numerical transformation to generate the updated quantum key K NEW ID =f(K ID , R), f(K ID , R) is K ID and R as parameters of the numerical transformation function, generating ID The updated quantum key K of equal length NEW ID , K NEW ID After generation, the corresponding quantum key K of this group of keys is deleted ID , replace it with K NEW ID , the key serial number ID remains unchanged.
[0099] For example, assuming that the length of each key is mbit, the result value of the hash operation H is kbit, and the key K ID Divide into n = [m / k] ([m / k] represents the smallest integer not less than m / k) groups of data, each group contains [m / n] bits of binary data, if the data is insufficient, 0 is added, and n groups of data are represented by K i ID (i=1,2,…,n), calculate K respectively i =H(K i ID , R)(i=1,2,…,n), let K=K 1 ||K 2 ||…||K n , that is, K is 1 To K n The concatenation operation result of K is taken as the new quantum key K NEW ID .
[0100] If no encrypted communication is taking place immediately, the generated new key is deleted.
[0101] The updated shared quantum key generated by the decryption party node B needs to be used immediately. If the ciphertext to be decrypted by the new key to be generated is not received, the decryption party node B deletes the updated shared quantum key generated by this group and notifies the encryption party node A of the deletion information. The encryption party node A also deletes the corresponding updated shared quantum key.
[0102] Based on the above-mentioned quantum key management method, in an embodiment of the present invention, a quantum key management device is provided, which is applied to an encryption party node. The management device pre-assigns a first master key and a first communication key encryption key to the encryption party node, groups the shared quantum keys of the encryption party node, selects a first communication key in each group to obtain each first communication key, encrypts each first communication key based on the first communication key encryption key to obtain each first communication key ciphertext, encrypts the first communication key encryption key based on the first master key to obtain a first communication key encryption key ciphertext, and after the encryption is completed, deletes each first communication key and the first communication key encryption key in the corresponding group. The structural block diagram of the device is shown as follows: Figure 3 As shown, including:
[0103] A first decryption module 301 , a selection and decryption module 302 , a verification information generation module 303 , a sending module 304 and a first key generation module 305 .
[0104] in,
[0105] The first decryption module 301 is used to decrypt the first communication key encryption key ciphertext based on the first master key to obtain the first communication key encryption key when receiving the encrypted communication request;
[0106] The selection and decryption module 302 is used to select a target first communication key ciphertext from each of the first communication key ciphertexts, decrypt the target first communication key ciphertext based on the first communication key encryption key, and obtain a target first communication key;
[0107] The verification information generation module 303 is used to generate verification information based on the target first communication key;
[0108] The sending module 304 is used to send the verification information to the decryption node so that the decryption node can perform verification, and if the verification is successful, obtain the random number generated by the decryption node;
[0109] The first key generation module 305 is used to generate an updated shared quantum key based on the shared quantum key in the group corresponding to the target first communication key and the random number.
[0110] The present invention discloses a quantum key management device, comprising: upon receiving an encrypted communication request, decrypting a first communication key encryption key ciphertext based on a first master key to obtain a first communication key encryption key; selecting a target first communication key ciphertext from each first communication key ciphertext, decrypting the target first communication key ciphertext based on the first communication key encryption key, and generating verification information based on the obtained target first communication key; sending the verification information to a decryption node to enable the decryption node to verify, and obtaining a random number generated by the decryption node if the verification passes; and generating an updated shared quantum key based on the shared quantum key and the random number in the corresponding group of the target first communication key. In the above process, the shared quantum key is updated based on a random number before it is used, and encryption and decryption are not performed directly based on the shared quantum key, thereby avoiding the problem that the encrypted communication information between nodes can be cracked by the stolen key.
[0111] Based on the above-mentioned quantum key management method, in an embodiment of the present invention, a quantum key management device is provided, which is applied to a decryption node. The management device pre-assigns a second master key and a second communication key encryption key to the decryption node, groups the shared quantum key of the decryption node, selects a second communication key in each group, obtains each second communication key, encrypts each second communication key based on the second communication key encryption key to obtain each second communication key ciphertext, encrypts the second communication key encryption key based on the second master key to obtain a second communication key encryption key ciphertext, and after the encryption is completed, deletes each second communication key and the second communication key encryption key in the corresponding group. The structural block diagram of the device is as follows Figure 4 As shown, including:
[0112] Receiving module 401 , second decryption module 402 , determination module 403 , authentication code generation module 404 , random number generation module 405 and second key generation module 406 .
[0113] in,
[0114] The receiving module 401 is used to receive verification information, wherein the verification information includes: a first identifier, a second identifier and a first authentication code;
[0115] The second decryption module 402 is used to decrypt the second communication key encryption key ciphertext based on the second master key to obtain a second communication key encryption key;
[0116] The determination module 403 is used to determine a target second communication key based on the second communication key encryption key and the first identifier;
[0117] The authentication code generation module 404 is used to generate a second authentication code based on the first identifier, the second identifier and the target second communication key;
[0118] The random number generation module 405 is used to generate a random number ciphertext and send it to the encryption node when the second authentication code is the same as the first authentication code, so that the encryption node obtains a random number;
[0119] The second key generation module 406 is used to generate an updated shared quantum key based on the random number and the shared quantum key in the group corresponding to the target second communication key.
[0120] The present invention discloses a quantum key management device, which is applied to a decryption node, including: receiving verification information, wherein the verification information includes: a first identifier, a second identifier and a first authentication code; decrypting the second communication key encryption key ciphertext based on the second master key to obtain a second communication key encryption key; determining a target second communication key based on the second communication key encryption key and the first identifier; generating a second authentication code based on the first identifier, the second identifier and the target second communication key; generating a random number ciphertext and sending it to the encryption node when the second authentication code is the same as the first authentication code, so that the encryption node obtains a random number; generating an updated shared quantum key based on the shared quantum key in the group corresponding to the random number and the target second communication key. The shared quantum key is updated based on the random number before it is used, and encryption and decryption are not performed directly based on the shared quantum key, thereby avoiding the problem that the encrypted communication information between nodes can be cracked if the key is stolen.
[0121] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0122] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0123] For the convenience of description, the above device is described as being divided into various units according to their functions. Of course, when implementing the present invention, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0124] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention or certain parts of the embodiments.
[0125] The above is a detailed introduction to a quantum key management method, device and system provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A quantum key management method, characterized in that: The method is applied to an encryption node, pre-allocating a first master key and a first communication key encryption key to the encryption node, grouping the shared quantum key of the encryption node, selecting a first communication key in each group to obtain each first communication key, encrypting each first communication key based on the first communication key encryption key to obtain each first communication key ciphertext, encrypting the first communication key encryption key based on the first master key to obtain a first communication key encryption key ciphertext, and after encryption, deleting each first communication key and the first communication key encryption key in the corresponding group. The method includes: Upon receiving an encrypted communication request, decrypting the first communication key encryption key ciphertext based on the first master key to obtain a first communication key encryption key; Selecting a target first communication key ciphertext from each of the first communication key ciphertexts, and decrypting the target first communication key ciphertext based on the first communication key encryption key to obtain a target first communication key; generating verification information based on the target first communication key; Sending the verification information to the decryption node to enable the decryption node to perform verification, and obtaining a random number generated by the decryption node if the verification passes; An updated shared quantum key is generated based on the shared quantum key in the group corresponding to the target first communication key and the random number.
2. The method according to claim 1, characterized in that: Generating verification information based on the target first communication key includes: Obtaining a first identifier of the target first communication key ciphertext; Obtain a second identifier of a group corresponding to the target first communication key; Generate a first authentication code based on the first identifier, the second identifier and the target first communication key; The verification information includes: the first identifier, the second identifier and the first authentication code.
3. The method according to claim 1, characterized in that Obtaining a random number generated by the decryption node includes: Receiving the random number ciphertext sent by the decryption node; The random number ciphertext is decrypted based on the target first communication key to obtain the random number.
4. The method according to claim 1, characterized in that: Also includes: When a deletion instruction is received, the updated shared quantum key is deleted.
5. A quantum key management method, characterized in that: Applied to a decryption node, pre-allocating a second master key and a second communication key encryption key to the decryption node, grouping the shared quantum key of the decryption node, selecting a second communication key in each group to obtain each second communication key, encrypting each second communication key based on the second communication key encryption key to obtain each second communication key ciphertext, encrypting the second communication key encryption key based on the second master key to obtain a second communication key encryption key ciphertext, and after encryption, deleting each second communication key and the second communication key encryption key in the corresponding group, the method comprising: Receive verification information, wherein the verification information includes: a first identifier, a second identifier and a first authentication code; the verification information generation process includes: the encryption party node obtains the first identifier of the target first communication key ciphertext; obtains the second identifier of the group corresponding to the target first communication key; generates the first authentication code based on the first identifier, the second identifier and the target first communication key; Decrypting the second communication key encryption key ciphertext based on the second master key to obtain a second communication key encryption key; determining a target second communication key based on the second communication key encryption key and the first identifier; Generate a second authentication code based on the first identifier, the second identifier and the target second communication key; When the second authentication code is the same as the first authentication code, generating a random number ciphertext and sending it to the encryption node, so that the encryption node obtains a random number; An updated shared quantum key is generated based on the random number and the shared quantum key in the group corresponding to the target second communication key.
6. The method according to claim 5, characterized in that Determining a target second communication key based on the second communication key encryption key and the first identifier includes: Selecting a target second communication key ciphertext based on the first identifier; The target second communication key ciphertext is decrypted based on the second communication key encryption key to obtain the target second communication key.
7. The method according to claim 5, characterized in that Also includes: If the decryption node does not receive the decryption request within a preset time interval, deleting the updated shared quantum key; Send a deletion instruction to the encryption node to instruct the encryption node to delete the corresponding updated shared quantum key.
8. A quantum key management device, characterized in that: The invention is applied to an encryption node, pre-allocating a first master key and a first communication key encryption key to the encryption node, grouping the shared quantum key of the encryption node, selecting a first communication key in each group to obtain each first communication key, encrypting each first communication key based on the first communication key encryption key to obtain each first communication key ciphertext, encrypting the first communication key encryption key based on the first master key to obtain a first communication key encryption key ciphertext, and deleting each first communication key and the first communication key encryption key in the corresponding group after encryption is completed. The device comprises: A first decryption module, configured to decrypt the first communication key encryption key ciphertext based on the first master key to obtain a first communication key encryption key upon receiving an encrypted communication request; A selection and decryption module, configured to select a target first communication key ciphertext from each of the first communication key ciphertexts, decrypt the target first communication key ciphertext based on the first communication key encryption key, and obtain a target first communication key; A verification information generation module, used to generate verification information based on the target first communication key; A sending module, used to send the verification information to a decryption node, so that the decryption node can perform verification, and if the verification is successful, obtain a random number generated by the decryption node; The first key generation module is used to generate an updated shared quantum key based on the shared quantum key in the group corresponding to the target first communication key and the random number.
9. A quantum key management device, characterized in that: Applied to a decryption node, pre-allocating a second master key and a second communication key encryption key to the decryption node, grouping the shared quantum key of the decryption node, selecting a second communication key in each group to obtain each second communication key, encrypting each second communication key based on the second communication key encryption key to obtain each second communication key ciphertext, encrypting the second communication key encryption key based on the second master key to obtain a second communication key encryption key ciphertext, and after encryption, deleting each second communication key and the second communication key encryption key in the corresponding group, the device comprising: A receiving module, configured to receive verification information, wherein the verification information includes: a first identifier, a second identifier, and a first authentication code; the verification information generation process includes: the encryption party node obtains the first identifier of the target first communication key ciphertext; obtains the second identifier of the group corresponding to the target first communication key; generates the first authentication code based on the first identifier, the second identifier, and the target first communication key; A second decryption module, used to decrypt the second communication key encryption key ciphertext based on the second master key to obtain a second communication key encryption key; A determination module, configured to determine a target second communication key based on the second communication key encryption key and the first identifier; An authentication code generation module, configured to generate a second authentication code based on the first identifier, the second identifier and the target second communication key; A random number generation module, configured to generate a random number ciphertext and send it to an encryption node when the second authentication code is the same as the first authentication code, so that the encryption node obtains a random number; The second key generation module is used to generate an updated shared quantum key based on the random number and the shared quantum key in the group corresponding to the target second communication key.
10. A quantum key management system, characterized in that: include: The encryption node and the decryption node, where: The encryption node is used to execute the quantum key management method according to any one of claims 1 to 4; The decryption node is used to execute the quantum key management method as described in any one of claims 5 to 7.
Citation Information
Patent Citations
Method and system for dynamically updating identity authentication and secret key agreement of secret key
CN101784048A
An encrypted communication method based on random selection of a shared key
CN109040132A
An anti-quantum computing point-to-point message transmission method and system based on a symmetric key pool
CN109818749A
Encryption key sharing scheme for automatically updating shared key
US20050235152A1
Methods and apparatus for direct communication key establishment
WO2016116191A1
