Quantum key synchronization storage method, device, medium and equipment for QKD

By setting up cache, encryption chip and local database on the transmitting and receiving ends of the QKD system, synchronous storage and management of quantum keys are solved, and the problem of real-time synchronous storage of quantum keys is ensured, ensuring the security and symmetry of the keys.

CN119483958BActive Publication Date: 2025-05-23QUDOOR TECH INC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510046708.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-13
Publication Date
2025-05-23
Estimated Expiration
2045-01-13

AI Technical Summary

Technical Problem

In the quantum key distribution (QKD) system, how to realize real-time synchronous storage, acquisition and management of quantum keys to ensure that both parties in communication use completely consistent keys for encryption and decryption, and to resist the risks of key leakage and tampering.

Method used

By setting up cache, encryption chip and local database on the QKD transmitting and receiving end, synchronous storage and management of quantum keys are realized. The specific steps include: generating quantum keys and storing them in the cache, detecting whether the number of keys reaches a predetermined value, sending cache synchronization messages, comparing identification and hash values, and performing synchronous storage and saving operations.

Benefits of technology

Ensure the storage symmetry of quantum keys at both ends, realize the secure and synchronous storage and management of keys, resist potential key leakage and tampering risks, and provide solid security guarantees.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119483958B_ABST
    Figure CN119483958B_ABST
Patent Text Reader

Abstract

The present invention provides a quantum key synchronous storage method, device, medium and equipment for QKD, the method comprising: generating quantum keys through quantum key distribution at both ends of QKD; if the number of quantum keys stored in the cache at both ends of QKD reaches a predetermined value, the identifiers of the quantum keys stored in the cache at both ends of QKD and the hash values ​​generated based on the quantum keys are the same, and the maximum identifier values ​​of the quantum keys and the number of quantum keys in the local databases at both ends of QKD are also the same, then the quantum keys cached at both ends of QKD are stored in the local databases at both ends respectively. The present invention can ensure the symmetry of quantum key storage at both ends during quantum key distribution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of quantum communication technology, and in particular to a quantum key synchronization storage method, device, medium and equipment for QKD. Background Art

[0002] In the Quantum Key Distribution (QKD) system, the transmitter generates quantum states through a quantum bit source (such as photons), encodes the quantum states using the characteristics of quantum mechanics (such as the quantum no-cloning theorem and the uncertainty principle), and transmits them to the receiver. The transmitter and receiver randomly select a measurement basis to measure the quantum state, compare the measurement basis through a classical channel and select consistent bits, and then go through post-processing steps such as key negotiation and private amplification to finally generate a secure quantum key. This process ensures the randomness, uniqueness, and unconditional security of the key.

[0003] Therefore, how to achieve real-time synchronous storage, acquisition and management of quantum keys at both ends of QKD has always been an urgent problem to be solved in the field of confidential communications. This is not only the basis for ensuring that both parties in communication can use completely consistent keys for encryption and decryption operations, but also the core of maintaining the security of the communication process. By synchronously storing, acquiring and managing keys, it is also possible to resist potential risks of key leakage and tampering, ensuring that only legitimate parties in communication can decrypt information, thereby providing solid security protection for encrypted communications today as the threat of quantum computing grows. Summary of the invention

[0004] The object of the present invention is to provide a quantum key synchronous storage method, device, medium and equipment for QKD.

[0005] According to one aspect of the present invention, a quantum key synchronization storage method for a QKD system is provided, the method comprising: a QKD transmitter and a QKD receiver generate a quantum key through quantum key distribution, and store the generated quantum key in a QKD transmitter cache and a QKD receiver cache respectively; the QKD transmitter detects whether the number of quantum keys stored in the QKD transmitter cache reaches a predetermined value, and if the number of quantum keys stored in the QKD transmitter cache reaches a predetermined value, a cache synchronization message is sent to the QKD receiver, the cache synchronization message including an identifier of the quantum key stored in the QKD transmitter cache and a hash value generated based on the quantum key stored in the QKD transmitter cache; the QKD receiver receives a cache synchronization message in response to a request from the QKD transmitter to generate a quantum key; The D transmitter receives the cache synchronization message and detects whether the number of quantum keys stored in the cache of the QKD receiver reaches a predetermined value. If the number of quantum keys stored in the cache of the QKD receiver reaches a predetermined value, the identifier of the quantum key stored in the cache of the QKD receiver and the hash value generated based on the quantum key stored in the cache of the QKD receiver are compared with the identifier of the quantum key stored in the cache of the QKD transmitter and the hash value generated based on the quantum key stored in the cache of the QKD transmitter, respectively. If the identifier of the quantum key and the hash value are the same, a cache synchronization response message is sent to the QKD transmitter. In response to receiving the cache synchronization response message from the QKD receiver, the QKD transmitter sends a cache synchronization response message to the QKD receiver. The QKD receiving end receives a synchronization storage message from the QKD transmitting end, and the synchronization storage message includes the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitting end; the QKD receiving end, in response to receiving the synchronization storage message from the QKD transmitting end, compares the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD receiving end with the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitting end, respectively, and sends a synchronization storage success message to the QKD transmitting end if the maximum identification value and the number are the same; the QKD transmitting end, in response to receiving the synchronization storage success message from the QKD receiving end, sends a synchronization save message to the QKD receiving end; the QKD receiving end, in response to receiving the synchronization save message from the QKD transmitting end, sends a synchronization save message to the QKD receiving end; The QKD transmitting end stores a message, encrypts the quantum key stored in the QKD transmitting end cache by the QKD receiving end encryption chip and stores the encrypted quantum key in the QKD receiving end local database, and sends a save confirmation message to the QKD transmitting end; the QKD transmitting end, in response to receiving the save confirmation message from the QKD receiving end, encrypts the quantum key stored in the QKD transmitting end cache by the QKD transmitting end encryption chip and stores the encrypted quantum key in the QKD transmitting end local database, wherein the QKD transmitting end cache, the QKD transmitting end encryption chip and the QKD transmitting end local database are arranged in the QKD transmitting end, and the QKD receiving end cache, the QKD receiving end encryption chip and the QKD receiving end local database are arranged in the QKD receiving end.

[0006] According to another aspect of the present invention, a quantum key synchronization storage method for a QKD transmitter is provided, the method comprising: generating a quantum key through quantum key distribution with a QKD receiver, and storing the generated quantum key in a cache of the QKD transmitter; detecting whether the number of quantum keys stored in the cache of the QKD transmitter reaches a predetermined value; if the number of quantum keys stored in the cache of the QKD transmitter reaches a predetermined value, sending a cache synchronization message to the QKD receiver, the cache synchronization message comprising an identifier of the quantum key stored in the cache of the QKD transmitter and a hash value generated based on the quantum key stored in the cache of the QKD transmitter, so that the QKD receiver performs the following operations: in response to receiving the cache from the QKD transmitter, A synchronization message is sent to detect whether the number of quantum keys stored in the QKD receiving end cache reaches a predetermined value. If the number of quantum keys stored in the QKD receiving end cache reaches a predetermined value, the identifier of the quantum key stored in the QKD receiving end cache and the hash value generated based on the quantum key stored in the QKD receiving end cache are compared with the identifier of the quantum key stored in the QKD transmitting end cache and the hash value generated based on the quantum key stored in the QKD transmitting end cache. If the identifier of the quantum key and the hash value are the same, a cache synchronization response message is sent to the QKD transmitting end. In response to receiving the cache synchronization response message from the QKD receiving end, a synchronization storage message is sent to the QKD receiving end. The synchronization storage The message includes the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitter, so that the QKD receiver performs the following operations: in response to receiving the synchronization storage message from the QKD transmitter, compare the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD receiver with the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitter, respectively, and if the maximum identification value and the number are the same, send a synchronization storage success message to the QKD transmitter; in response to receiving the synchronization storage success message from the QKD receiver, send a synchronization save message to the QKD receiver, so that the QKD receiver performs the following operations: in response to receiving the synchronization storage success message from the QKD transmitter Synchronously save the message, encrypt the quantum key stored in the QKD receiving end cache by the QKD receiving end encryption chip and store the encrypted quantum key in the QKD receiving end local database, and send a save confirmation message to the QKD transmitting end; in response to receiving the save confirmation message from the QKD receiving end, encrypt the quantum key stored in the QKD transmitting end cache by the QKD transmitting end encryption chip and store the encrypted quantum key in the QKD transmitting end local database, wherein the QKD transmitting end cache, the QKD transmitting end encryption chip and the QKD transmitting end local database are set in the QKD transmitting end, and the QKD receiving end cache, the QKD receiving end encryption chip and the QKD receiving end local database are set in the QKD receiving end.

[0007] According to another aspect of the present invention, a quantum key synchronization storage method for a QKD receiving end is provided, the method comprising: generating a quantum key through quantum key distribution with a QKD transmitting end, and storing the generated quantum key in a cache of the QKD receiving end; in response to receiving a cache synchronization message from the QKD transmitting end, detecting whether the number of quantum keys stored in the cache of the QKD receiving end reaches a predetermined value, the cache synchronization message comprising an identifier of the quantum key stored in the cache of the QKD transmitting end and a hash value generated based on the quantum key stored in the cache of the QKD transmitting end; if the number of quantum keys stored in the cache of the QKD receiving end reaches a predetermined value, storing the quantum keys in the cache of the QKD receiving end The identifier of the quantum key cached by the receiving end and the hash value generated based on the quantum key stored in the cache of the QKD receiving end are compared with the identifier of the quantum key stored in the cache of the QKD transmitting end and the hash value generated based on the quantum key stored in the cache of the QKD transmitting end respectively; if the identifier of the quantum key and the hash value are the same, a cache synchronization response message is sent to the QKD transmitting end, so that the QKD transmitting end performs the following operations: in response to receiving the cache synchronization response message from the QKD receiving end, a synchronization storage message is sent to the QKD receiving end, wherein the synchronization storage message includes the maximum identifier value of the quantum key and the number of quantum keys in the local database of the QKD transmitting end; In response to receiving a synchronization storage message from the QKD transmitting end, the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD receiving end are compared with the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitting end respectively; if the maximum identification value and the number are the same, a synchronization storage success message is sent to the QKD transmitting end, so that the QKD transmitting end performs the following operations: in response to receiving a synchronization storage success message from the QKD transmitting end, a synchronization save message is sent to the QKD receiving end; in response to receiving a synchronization save message from the QKD transmitting end, the encryption chip of the QKD receiving end is used to encrypt and store the information in the cache of the QKD receiving end. The QKD receiving end cache, the QKD receiving end encryption chip and the QKD transmitting end local database are arranged in the QKD transmitting end, and the QKD receiving end cache, the QKD receiving end encryption chip and the QKD receiving end local database are arranged in the QKD transmitting end, and the QKD receiving end cache, the QKD receiving end encryption chip and the QKD receiving end local database are arranged in the QKD receiving end.

[0008] According to another aspect of the present invention, a quantum key synchronization storage device for a QKD transmitter is provided, the device comprising: a quantum key distribution unit, used to generate a quantum key through quantum key distribution with a QKD receiver; a quantum key cache unit, used to store the generated quantum key in a cache of the QKD transmitter; a cache quantity detection unit, used to detect whether the number of quantum keys stored in the cache of the QKD transmitter reaches a predetermined value; a cache synchronization sending unit, if the number of quantum keys stored in the cache of the QKD transmitter reaches a predetermined value, is used to send a cache synchronization message to the QKD receiver, the cache synchronization message including the number of quantum keys stored in the cache of the QKD transmitter. The QKD receiving end performs the following operations: in response to receiving a cache synchronization message from the QKD transmitting end, detecting whether the number of quantum keys stored in the cache of the QKD receiving end reaches a predetermined value; if the number of quantum keys stored in the cache of the QKD receiving end reaches a predetermined value, the identifier of the quantum key stored in the cache of the QKD receiving end and the hash value generated based on the quantum key stored in the cache of the QKD receiving end are respectively compared with the identifier of the quantum key stored in the cache of the QKD transmitting end and the hash value generated based on the quantum key stored in the cache of the QKD transmitting end. The QKD receiving end is configured to compare the identifier of the quantum key and the hash value thereof with each other, and if the identifier of the quantum key and the hash value are the same, send a cache synchronization response message to the QKD transmitting end; a synchronization storage sending unit is configured to send a synchronization storage message to the QKD receiving end in response to receiving the cache synchronization response message from the QKD receiving end, wherein the synchronization storage message includes the maximum identifier value of the quantum key and the number of quantum keys in the local database of the QKD transmitting end, so that the QKD receiving end performs the following operations: in response to receiving the synchronization storage message from the QKD transmitting end, compare the maximum identifier value of the quantum key and the number of quantum keys in the local database of the QKD receiving end with the local database of the QKD transmitting end, respectively The maximum identification value of the quantum key in the library is compared with the number of quantum keys. If the maximum identification value and the number are the same, a synchronization storage success message is sent to the QKD transmitting end; a synchronization storage sending unit is used to send a synchronization storage message to the QKD receiving end in response to receiving the synchronization storage success message from the QKD receiving end, so that the QKD receiving end performs the following operations: in response to receiving the synchronization storage message from the QKD transmitting end, encrypt the quantum key stored in the QKD receiving end cache through the QKD receiving end encryption chip and store the encrypted quantum key in the QKD receiving end local database, and send a storage confirmation message to the QKD transmitting end;A synchronous storage response unit is used to encrypt the quantum key stored in the QKD transmitter cache through the QKD transmitter encryption chip and store the encrypted quantum key in the QKD transmitter local database in response to receiving a save confirmation message from the QKD receiver, wherein the QKD transmitter cache, the QKD transmitter encryption chip and the QKD transmitter local database are set in the QKD transmitter, and the QKD receiver cache, the QKD receiver encryption chip and the QKD receiver local database are set in the QKD receiver. ;

[0009] According to another aspect of the present invention, a quantum key synchronization storage device for a QKD receiving end is provided, the device comprising: a quantum key distribution unit, used to generate a quantum key through quantum key distribution with a QKD transmitting end; a quantum key cache unit, used to store the generated quantum key in a cache of the QKD receiving end; a cache quantity detection unit, used to detect whether the number of quantum keys stored in the cache of the QKD receiving end reaches a predetermined value in response to receiving a cache synchronization message from the QKD transmitting end, the cache synchronization message comprising an identifier of the quantum key stored in the cache of the QKD transmitting end and a hash value generated based on the quantum key stored in the cache of the QKD transmitting end; a cache key comparison unit, used to detect whether the number of quantum keys stored in the cache of the QKD receiving end reaches a predetermined value in response to receiving a cache synchronization message from the QKD transmitting end, the cache synchronization message comprising an identifier of the quantum key stored in the cache of the QKD transmitting end and a hash value generated based on the quantum key stored in the cache of the QKD transmitting end; and a cache key comparison unit, used to detect whether the number of quantum keys stored in the cache of the QKD receiving end reaches a predetermined value in response to receiving a cache synchronization message from the QKD transmitting end. When the number of keys reaches a predetermined value, the identifier of the quantum key stored in the QKD receiving end cache and the hash value generated based on the quantum key stored in the QKD receiving end cache are compared with the identifier of the quantum key stored in the QKD transmitting end cache and the hash value generated based on the quantum key stored in the QKD transmitting end cache respectively; a cache synchronization response unit, if the identifier of the quantum key and the hash value are the same, is used to send a cache synchronization response message to the QKD transmitting end, so that the QKD transmitting end performs the following operations: in response to receiving the cache synchronization response message from the QKD receiving end, sending a synchronization storage message to the QKD receiving end, wherein the synchronization storage message includes the maximum identifier of the quantum key in the local database of the QKD transmitting end value and the number of quantum keys; a key storage comparison unit, used to respond to receiving a synchronization storage message from the QKD transmitter, compare the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD receiver with the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitter, respectively; a synchronization storage feedback unit, used to send a synchronization storage success message to the QKD transmitter if the maximum identification value and the number are the same, so that the QKD transmitter performs the following operations: in response to receiving the synchronization storage success message from the QKD transmitter, send a synchronization storage message to the QKD receiver; a synchronization storage response unit, used to respond to receiving the synchronization storage message from the QKD transmitter, through the QKD The D receiving end encryption chip encrypts the quantum key stored in the QKD receiving end cache and stores the encrypted quantum key in the QKD receiving end local database, and sends a save confirmation message to the QKD transmitting end, so that the QKD transmitting end performs the following operations: in response to receiving the save confirmation message from the QKD receiving end, encrypts the quantum key stored in the QKD transmitting end cache by the QKD transmitting end encryption chip and stores the encrypted quantum key in the QKD transmitting end local database, wherein the QKD transmitting end cache, the QKD transmitting end encryption chip and the QKD transmitting end local database are set in the QKD transmitting end, and the QKD receiving end cache, the QKD receiving end encryption chip and the QKD receiving end local database are set in the QKD receiving end.

[0010] According to another aspect of the present invention, a computer-readable storage medium storing a computer program is also provided. When the computer program is executed by a processor, the quantum key synchronization storage method as described above is implemented.

[0011] According to another aspect of the present invention, a computer device is also provided, comprising: a processor; and a memory storing a computer program, wherein when the computer program is executed by the processor, the quantum key synchronization storage method as described above is implemented.

[0012] The quantum key synchronous storage method, device, medium and equipment for QKD provided by the present invention can ensure the symmetry of quantum key storage at both ends during quantum key distribution. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The above objects and features of the present invention will become more apparent from the following description in conjunction with the accompanying drawings.

[0014] Figure 1 The data interaction process for quantum key synchronous storage in a QKD system according to an exemplary embodiment of the present invention is schematically illustrated.

[0015] Figure 2 A schematic structural diagram of a quantum key synchronization storage device for a QKD system according to an exemplary embodiment of the present invention is schematically shown. DETAILED DESCRIPTION

[0016] In an exemplary embodiment of the present invention, a quantum key synchronous storage method for a quantum key distribution (QKD) system may include at least the following steps.

[0017] First, the QKD transmitter and the QKD receiver generate quantum keys through quantum key distribution, and store the generated quantum keys in the QKD transmitter cache and the QKD receiver cache respectively.

[0018] Next, the QKD transmitter detects whether the number of quantum keys stored in the QKD transmitter cache reaches a predetermined value. If the number of quantum keys stored in the QKD transmitter cache reaches a predetermined value, the QKD transmitter sends a cache synchronization message to the QKD receiver. The cache synchronization message includes the identifier of the quantum key stored in the QKD transmitter cache and a hash value generated based on the quantum key stored in the QKD transmitter cache.

[0019] Next, the QKD receiving end detects whether the number of quantum keys stored in the QKD receiving end cache reaches a predetermined value in response to receiving the cache synchronization message from the QKD transmitting end. If the number of quantum keys stored in the QKD receiving end cache reaches the predetermined value, the QKD receiving end compares the identifier of the quantum key stored in the QKD receiving end cache and the hash value generated based on the quantum key stored in the QKD receiving end cache with the identifier of the quantum key stored in the QKD transmitting end cache and the hash value generated based on the quantum key stored in the QKD transmitting end cache. If the identifiers and hash values ​​of the quantum keys of the two are the same, the QKD receiving end sends a cache synchronization response message to the QKD transmitting end.

[0020] Next, the QKD transmitter sends a synchronization storage message to the QKD receiver in response to receiving a cache synchronization response message from the QKD receiver, where the synchronization storage message includes the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitter.

[0021] Next, in response to receiving the synchronization storage message from the QKD transmitter, the QKD receiver compares the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD receiver with the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitter, respectively. If the maximum identification value and number of the two are the same, the QKD receiver sends a synchronization storage success message to the QKD transmitter.

[0022] Next, the QKD transmitter sends a synchronization save message to the QKD receiver in response to receiving a synchronization storage success message from the QKD transmitter.

[0023] Next, in response to receiving a synchronization save message from the QKD transmitter, the QKD receiver encrypts the quantum key stored in the QKD receiver cache through the QKD receiver encryption chip and stores the encrypted quantum key in the QKD receiver local database, and sends a save confirmation message to the QKD transmitter.

[0024] Next, in response to receiving a save confirmation message from the QKD receiver, the QKD transmitter encrypts the quantum key stored in the QKD transmitter cache through the QKD transmitter encryption chip and stores the encrypted quantum key in the QKD transmitter local database.

[0025] In an exemplary embodiment of the present invention, a QKD transmitter cache, a QKD transmitter encryption chip and a QKD transmitter local database may be set in the QKD transmitter, and a QKD receiver cache, a QKD receiver encryption chip and a QKD receiver local database may be set in the QKD receiver.

[0026] In addition, in an exemplary embodiment of the present invention, if the number of quantum keys stored in the QKD receiving end cache does not reach a predetermined value, the QKD receiving end sends a message to the QKD transmitting end that the number of quantum keys stored in the QKD receiving end cache does not reach a predetermined value; the QKD transmitting end, in response to receiving a message from the QKD receiving end that the number of quantum keys stored in the QKD receiving end cache does not reach a predetermined value, sends a cache synchronization message to the QKD receiving end again after waiting for a predetermined time period; the QKD receiving end, in response to receiving a cache synchronization message from the QKD transmitting end again, performs the detection step again, and repeats this process until the number of quantum keys stored in the QKD receiving end cache reaches a predetermined value.

[0027] In addition, in an exemplary embodiment of the present invention, if the identifier of the quantum key stored in the QKD receiving end cache and the hash value generated based on the quantum key stored in the QKD receiving end cache are different from the identifier of the quantum key stored in the QKD transmitting end cache and the hash value generated based on the quantum key stored in the QKD transmitting end cache, the QKD receiving end sends a message to the QKD transmitting end that the identifiers and hash values ​​of the quantum keys of the two are different; the QKD transmitting end, in response to receiving a message from the QKD that the identifiers and hash values ​​of the quantum keys of the two are different, discards the quantum key stored in the QKD transmitting end cache.

[0028] In addition, in an exemplary embodiment of the present invention, if the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD receiving end are different from the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitting end, the QKD receiving end clears the local database of the QKD receiving end and sends a message of synchronization storage failure to the QKD transmitting end; in response to receiving the message of synchronization storage failure from the QKD receiving end, the QKD transmitting end clears the local database of the QKD transmitting end.

[0029] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

[0030] Figure 1 The data interaction process for quantum key synchronous storage in a QKD system according to an exemplary embodiment of the present invention is schematically illustrated.

[0031] Reference Figure 1 The QKD system for quantum key distribution includes a QKD transmitter and a QKD receiver, wherein the QKD transmitter is provided with a QKD transmitter cache, a QKD transmitter encryption chip and a QKD transmitter local database, and the QKD receiver is provided with a QKD receiver cache, a QKD receiver encryption chip and a QKD receiver local database.

[0032] exist Figure 1 In the QKD system shown, the QKD transmitter performs the following data processing process.

[0033] First, in S101, the QKD transmitter and the QKD receiver generate a quantum key through quantum key distribution, and store the generated quantum key in the QKD transmitter cache.

[0034] Next, in S102, the QKD transmitter detects whether the number of quantum keys stored in the QKD transmitter cache reaches a predetermined value.

[0035] Then, in S103, if the number of quantum keys stored in the QKD transmitter cache reaches a predetermined value, the QKD transmitter sends a cache synchronization message to the QKD receiver, where the cache synchronization message includes an identifier of the quantum key stored in the QKD transmitter cache and a hash value generated based on the quantum key stored in the QKD transmitter cache, so that the QKD receiver performs the following operations: in response to receiving the cache synchronization message from the QKD transmitter, detecting whether the number of quantum keys stored in the QKD receiver cache reaches a predetermined value; if the number of quantum keys stored in the QKD receiver cache reaches a predetermined value, comparing the identifier of the quantum key stored in the QKD receiver cache and the hash value generated based on the quantum key stored in the QKD receiver cache with the identifier of the quantum key stored in the QKD transmitter cache and the hash value generated based on the quantum key stored in the QKD transmitter cache, respectively; if the identifier and the hash value of the quantum key are the same, sending a cache synchronization response message to the QKD transmitter.

[0036] Then, in S104, the QKD transmitter sends a synchronization storage message to the QKD receiver in response to receiving a cache synchronization response message from the QKD receiver, where the synchronization storage message includes the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitter, so that the QKD receiver performs the following operations: in response to receiving the synchronization storage message from the QKD transmitter, compare the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD receiver with the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitter, respectively; if the maximum identification value and the number are the same, send a synchronization storage success message to the QKD transmitter.

[0037] Then, in S105, the QKD transmitter sends a synchronization save message to the QKD receiver in response to receiving a synchronization storage success message from the QKD receiver, so that the QKD receiver performs the following operations: in response to receiving the synchronization save message from the QKD transmitter, encrypt the quantum key stored in the QKD receiver's cache through the QKD receiver's encryption chip and store the encrypted quantum key in the QKD receiver's local database, and send a save confirmation message to the QKD transmitter.

[0038] Next, in S106, in response to receiving a save confirmation message from the QKD receiver, the QKD transmitter encrypts the quantum key stored in the QKD transmitter cache through the QKD transmitter encryption chip and stores the encrypted quantum key in the QKD transmitter local database.

[0039] exist Figure 1 In the QKD system shown, the QKD receiving end performs the following data processing process.

[0040] First, in S201, the QKD receiver and the QKD transmitter generate a quantum key through quantum key distribution, and store the generated quantum key in the QKD receiver cache.

[0041] Next, in S202, the QKD receiving end detects whether the number of quantum keys stored in the QKD receiving end cache reaches a predetermined value in response to receiving a cache synchronization message from the QKD transmitting end. The cache synchronization message includes an identifier of the quantum key stored in the QKD transmitting end cache and a hash value generated based on the quantum key stored in the QKD transmitting end cache.

[0042] If the number of quantum keys stored in the QKD receiving end cache reaches a predetermined value, then in S203, the QKD receiving end will compare the identifier of the quantum key stored in the QKD receiving end cache and the hash value generated based on the quantum key stored in the QKD receiving end cache with the identifier of the quantum key stored in the QKD transmitting end cache and the hash value generated based on the quantum key stored in the QKD transmitting end cache, respectively.

[0043] If the identification and hash value of the quantum keys of the two are the same, then in S204, the QKD receiving end sends a cache synchronization response message to the QKD transmitting end, so that the QKD transmitting end performs the following operations: in response to receiving the cache synchronization response message from the QKD receiving end, sending a synchronization storage message to the QKD receiving end, the synchronization storage message including the maximum identification value of the quantum keys and the number of quantum keys in the local database of the QKD transmitting end.

[0044] Next, in S205, in response to receiving the synchronization storage message from the QKD transmitter, the QKD receiver compares the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD receiver with the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitter, respectively.

[0045] If the maximum identification values ​​and quantities of the two are the same, then in S206, the QKD receiving end sends a synchronization storage success message to the QKD transmitting end, so that the QKD transmitting end performs the following operations: in response to receiving the synchronization storage success message from the QKD transmitting end, sending a synchronization save message to the QKD receiving end.

[0046] Then, in S207, in response to receiving a synchronization save message from the QKD transmitter, the QKD receiver encrypts the quantum key stored in the QKD receiver's cache through the QKD receiver's encryption chip and stores the encrypted quantum key in the QKD receiver's local database, and sends a save confirmation message to the QKD transmitter, so that the QKD transmitter performs the following operations: In response to receiving a save confirmation message from the QKD receiver, encrypts the quantum key stored in the QKD transmitter's cache through the QKD transmitter's encryption chip and stores the encrypted quantum key in the QKD transmitter's local database.

[0047] Figure 2 A schematic structural diagram of a quantum key synchronization storage device for a QKD system according to an exemplary embodiment of the present invention is schematically shown.

[0048] Reference Figure 2 , Figure 2 The quantum key synchronization storage device shown can be deployed at the QKD transmitter and the QKD receiver respectively, wherein the QKD transmitter is provided with a QKD transmitter cache, a QKD transmitter encryption chip and a QKD transmitter local database, and the QKD receiver is provided with a QKD receiver cache, a QKD receiver encryption chip and a QKD receiver local database.

[0049] exist Figure 2 In the transmitting end shown, the quantum key synchronous storage device for QKD may include a quantum key distribution unit, a quantum key cache unit, a cache quantity detection unit, a cache synchronous sending unit, a synchronous storage sending unit, a synchronous preservation sending unit and a synchronous storage response unit.

[0050] Among them, the quantum key distribution unit is used to generate a quantum key through quantum key distribution with the QKD receiving end; the quantum key cache unit is used to store the generated quantum key in the QKD transmitting end cache; the cache quantity detection unit is used to detect whether the number of quantum keys stored in the QKD transmitting end cache reaches a predetermined value; if the number of quantum keys stored in the QKD transmitting end cache reaches a predetermined value, the cache synchronization sending unit is used to send a cache synchronization message to the QKD receiving end, and the cache synchronization message includes an identifier of the quantum key stored in the QKD transmitting end cache and a hash value generated based on the quantum key stored in the QKD transmitting end cache, so that the QKD receiving end performs the following operations :In response to receiving a cache synchronization message from the QKD transmitting end, detecting whether the number of quantum keys stored in the cache of the QKD receiving end reaches a predetermined value, if the number of quantum keys stored in the cache of the QKD receiving end reaches the predetermined value, then comparing the identifier of the quantum key stored in the cache of the QKD receiving end and the hash value generated based on the quantum key stored in the cache of the QKD receiving end with the identifier of the quantum key stored in the cache of the QKD transmitting end and the hash value generated based on the quantum key stored in the cache of the QKD transmitting end, respectively, if the identifiers and hash values ​​of the quantum keys of the two are the same, then sending a cache synchronization response message to the QKD transmitting end; a synchronous storage sending unit, used to respond to the received cache synchronization message from The QKD receiving end receives the cache synchronization response message and sends a synchronization storage message to the QKD receiving end, wherein the synchronization storage message includes the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitting end, so that the QKD receiving end performs the following operations: in response to receiving the synchronization storage message from the QKD transmitting end, the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD receiving end are compared with the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitting end, respectively, and if the maximum identification value and the number of quantum keys of the two are the same, a synchronization storage success message is sent to the QKD transmitting end; a synchronization storage sending unit is used to respond to the synchronization storage message received from the QKD transmitting end. The QKD receiving end receives a synchronization storage success message and sends a synchronization save message to the QKD receiving end, so that the QKD receiving end performs the following operations: in response to receiving the synchronization save message from the QKD transmitting end, encrypting the quantum key stored in the QKD receiving end cache through the QKD receiving end encryption chip and storing the encrypted quantum key in the QKD receiving end local database, and sending a save confirmation message to the QKD transmitting end; a synchronization storage response unit is used to respond to receiving the save confirmation message from the QKD receiving end, encrypting the quantum key stored in the QKD transmitting end cache through the QKD transmitting end encryption chip and storing the encrypted quantum key in the QKD transmitting end local database.

[0051] exist Figure 2In the QKD receiving end shown, the quantum key synchronous storage device for QKD may include a quantum key distribution unit, a quantum key cache unit, a cache quantity detection unit, a cache key comparison unit, a cache synchronization response unit, a key storage comparison unit, a synchronous storage feedback unit and a synchronous storage response unit.

[0052] Among them, the quantum key distribution unit is used to generate a quantum key through quantum key distribution with the QKD transmitter; the quantum key cache unit is used to store the generated quantum key in the QKD receiver cache; the cache quantity detection unit is used to detect whether the number of quantum keys stored in the QKD receiver cache reaches a predetermined value in response to receiving a cache synchronization message from the QKD transmitter, and the cache synchronization message includes the identifier of the quantum key stored in the QKD transmitter cache and a hash value generated based on the quantum key stored in the QKD transmitter cache; if the number of quantum keys stored in the QKD receiver cache reaches a predetermined value, the cache key is The comparison unit is used to compare the identifier of the quantum key stored in the QKD receiving end cache and the hash value generated based on the quantum key stored in the QKD receiving end cache with the identifier of the quantum key stored in the QKD transmitting end cache and the hash value generated based on the quantum key stored in the QKD transmitting end cache respectively; if the identifier and hash value of the quantum key of the two are the same, the cache synchronization response unit is used to send a cache synchronization response message to the QKD transmitting end, so that the QKD transmitting end performs the following operations: in response to receiving the cache synchronization response message from the QKD receiving end, send a synchronization storage message to the QKD receiving end, and the synchronization storage message includes The maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitting end; a key storage comparison unit is used to, in response to receiving a synchronization storage message from the QKD transmitting end, compare the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD receiving end with the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitting end respectively; if the maximum identification value and the number of quantum keys of the two are the same, the synchronization storage feedback unit is used to send a synchronization storage success message to the QKD transmitting end, so that the QKD transmitting end performs the following operations: in response to receiving the synchronization storage success message from the QKD transmitting end A synchronous storage response unit is used to, in response to receiving a synchronous storage message from the QKD transmitting end, encrypt the quantum key stored in the QKD receiving end cache through the QKD receiving end encryption chip and store the encrypted quantum key in the QKD receiving end local database, and send a storage confirmation message to the QKD transmitting end, so that the QKD transmitting end performs the following operations: in response to receiving a storage confirmation message from the QKD receiving end, encrypt the quantum key stored in the QKD transmitting end cache through the QKD transmitting end encryption chip and store the encrypted quantum key in the QKD transmitting end local database.

[0053] It can be seen that the quantum key synchronous storage method and device for QKD according to the exemplary embodiments of the present invention can ensure the symmetry of quantum key storage at both ends during quantum key distribution.

[0054] According to an exemplary embodiment of the present invention, a computer-readable storage medium storing a computer program may also be provided. The computer-readable storage medium stores a computer program that, when executed by a processor, causes the processor to perform a quantum key synchronization storage method for QKD according to the present invention. The computer-readable recording medium is any data storage device that can store data read out by a computer system. Examples of computer-readable recording media include: read-only memory, random access memory, read-only optical disk, magnetic tape, floppy disk, optical data storage device, and carrier wave (such as data transmission through the Internet via a wired or wireless transmission path).

[0055] According to an exemplary embodiment of the present invention, a computer device may also be provided. The computer device includes a processor and a memory. The memory is used to store a computer program. The computer program is executed by the processor so that the processor executes the computer program of the quantum key synchronization storage method for QKD according to the present invention.

[0056] While the present application has been shown and described with reference to preferred embodiments, it will be understood by those skilled in the art that various modifications and variations may be made to these embodiments without departing from the spirit and scope of the present application as defined by the appended claims.

Claims

1. A quantum key synchronization storage method for a QKD system, characterized in that: include: The QKD transmitter and the QKD receiver generate quantum keys through quantum key distribution, and store the generated quantum keys in the QKD transmitter cache and the QKD receiver cache respectively; The QKD transmitter detects whether the number of quantum keys stored in the QKD transmitter cache reaches a predetermined value. If the number of quantum keys stored in the QKD transmitter cache reaches a predetermined value, a cache synchronization message is sent to the QKD receiver, where the cache synchronization message includes an identifier of the quantum key stored in the QKD transmitter cache and a hash value generated based on the quantum key stored in the QKD transmitter cache. In response to receiving a cache synchronization message from the QKD transmitter, the QKD receiver detects whether the number of quantum keys stored in the cache of the QKD receiver reaches a predetermined value. If the number of quantum keys stored in the cache of the QKD receiver reaches the predetermined value, the identifier of the quantum key stored in the cache of the QKD receiver and the hash value generated based on the quantum key stored in the cache of the QKD receiver are compared with the identifier of the quantum key stored in the cache of the QKD transmitter and the hash value generated based on the quantum key stored in the cache of the QKD transmitter, respectively. If the identifier of the quantum key and the hash value are the same, a cache synchronization response message is sent to the QKD transmitter; In response to receiving the cache synchronization response message from the QKD receiving end, the QKD transmitting end sends a synchronization storage message to the QKD receiving end, wherein the synchronization storage message includes a maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitting end; In response to receiving the synchronization storage message from the QKD transmitter, the QKD receiver compares the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD receiver with the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitter, respectively, and sends a synchronization storage success message to the QKD transmitter if the maximum identification value and the number are the same; In response to receiving a synchronization storage success message from the QKD receiving end, the QKD transmitting end sends a synchronization saving message to the QKD receiving end; In response to receiving the synchronization save message from the QKD transmitter, the QKD receiver encrypts the quantum key stored in the QKD receiver cache through the QKD receiver encryption chip and stores the encrypted quantum key in the QKD receiver local database, and sends a save confirmation message to the QKD transmitter; In response to receiving the save confirmation message from the QKD receiver, the QKD transmitter encrypts the quantum key stored in the QKD transmitter cache through the QKD transmitter encryption chip and stores the encrypted quantum key in the QKD transmitter local database. Among them, the QKD transmitter cache, the QKD transmitter encryption chip and the QKD transmitter local database are set in the QKD transmitter, and the QKD receiver cache, the QKD receiver encryption chip and the QKD receiver local database are set in the QKD receiver.

2. The method according to claim 1, characterized in that Also includes: If the number of quantum keys stored in the QKD receiving end cache does not reach a predetermined value, the QKD receiving end sends a message to the QKD transmitting end that the number of quantum keys stored in the QKD receiving end cache does not reach a predetermined value; In response to receiving a message from the QKD receiving end that the number of quantum keys stored in the cache of the QKD receiving end does not reach a predetermined value, the QKD transmitting end again sends a cache synchronization message to the QKD receiving end after waiting for a predetermined period of time; In response to receiving the cache synchronization message from the QKD transmitter again, the QKD receiver performs the detection step again, and repeats this process until the number of quantum keys stored in the QKD receiver cache reaches a predetermined value.

3. The method according to claim 1, characterized in that Also includes: If the identifier of the quantum key stored in the QKD receiving end cache and the hash value generated based on the quantum key stored in the QKD receiving end cache are different from the identifier of the quantum key stored in the QKD transmitting end cache and the hash value generated based on the quantum key stored in the QKD transmitting end cache, the QKD receiving end sends a message to the QKD transmitting end that the identifier of the quantum key and the hash value are different; In response to receiving a message from the QKD indicating that the identifier of the quantum key and the hash value are different, the QKD transmitter discards the quantum key stored in the QKD transmitter cache.

4. The method according to claim 1, characterized in that: Also includes: If the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD receiving end are different from the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitting end, the QKD receiving end clears the local database of the QKD receiving end and sends a message of synchronization storage failure to the QKD transmitting end; In response to receiving a message of synchronization storage failure from the QKD receiving end, the QKD transmitting end clears the local database of the QKD transmitting end.

5. A quantum key synchronization storage method for a QKD transmitter, characterized in that: include: Generate quantum keys through quantum key distribution with the QKD receiver, and store the generated quantum keys in the QKD transmitter cache; Detecting whether the number of quantum keys stored in the QKD transmitter cache reaches a predetermined value; If the number of quantum keys stored in the cache of the QKD transmitter reaches a predetermined value, a cache synchronization message is sent to the QKD receiver, wherein the cache synchronization message includes an identifier of the quantum key stored in the cache of the QKD transmitter and a hash value generated based on the quantum key stored in the cache of the QKD transmitter, so that the QKD receiver performs the following operations: in response to receiving the cache synchronization message from the QKD transmitter, detecting whether the number of quantum keys stored in the cache of the QKD receiver reaches a predetermined value; if the number of quantum keys stored in the cache of the QKD receiver reaches a predetermined value, comparing the identifier of the quantum key stored in the cache of the QKD receiver and the hash value generated based on the quantum key stored in the cache of the QKD receiver with the identifier of the quantum key stored in the cache of the QKD transmitter and the hash value generated based on the quantum key stored in the cache of the QKD transmitter, respectively; if the identifier of the quantum key and the hash value are the same, sending a cache synchronization response message to the QKD transmitter; In response to receiving a cache synchronization response message from the QKD receiving end, sending a synchronization storage message to the QKD receiving end, wherein the synchronization storage message includes a maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitting end, so that the QKD receiving end performs the following operations: in response to receiving the synchronization storage message from the QKD transmitting end, comparing the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD receiving end with the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitting end, respectively, and if the maximum identification value and the number are the same, sending a synchronization storage success message to the QKD transmitting end; In response to receiving a synchronization storage success message from the QKD receiving end, sending a synchronization saving message to the QKD receiving end, so that the QKD receiving end performs the following operations: in response to receiving the synchronization saving message from the QKD transmitting end, encrypting the quantum key stored in the QKD receiving end cache by the QKD receiving end encryption chip and storing the encrypted quantum key in the QKD receiving end local database, and sending a saving confirmation message to the QKD transmitting end; In response to receiving a save confirmation message from the QKD receiving end, the quantum key stored in the QKD transmitting end cache is encrypted by the QKD transmitting end encryption chip and the encrypted quantum key is stored in the QKD transmitting end local database. Among them, the QKD transmitter cache, the QKD transmitter encryption chip and the QKD transmitter local database are set in the QKD transmitter, and the QKD receiver cache, the QKD receiver encryption chip and the QKD receiver local database are set in the QKD receiver.

6. A quantum key synchronization storage method for a QKD receiving end, characterized in that: include: Generate quantum keys through quantum key distribution with the QKD transmitter, and store the generated quantum keys in the QKD receiver cache; In response to receiving a cache synchronization message from the QKD transmitter, detecting whether the number of quantum keys stored in the cache of the QKD receiver reaches a predetermined value, wherein the cache synchronization message includes an identifier of the quantum key stored in the cache of the QKD transmitter and a hash value generated based on the quantum key stored in the cache of the QKD transmitter; If the number of quantum keys stored in the QKD receiving end cache reaches a predetermined value, the identifier of the quantum key stored in the QKD receiving end cache and the hash value generated based on the quantum key stored in the QKD receiving end cache are compared with the identifier of the quantum key stored in the QKD transmitting end cache and the hash value generated based on the quantum key stored in the QKD transmitting end cache respectively; If the identifier of the quantum key and the hash value are the same, a cache synchronization response message is sent to the QKD transmitter, so that the QKD transmitter performs the following operations: in response to receiving the cache synchronization response message from the QKD receiver, a synchronization storage message is sent to the QKD receiver, wherein the synchronization storage message includes the maximum identifier value of the quantum key and the number of quantum keys in the local database of the QKD transmitter; In response to receiving a synchronization storage message from the QKD transmitter, comparing the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD receiver with the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitter, respectively; If the maximum identification value and the quantity are the same, sending a synchronization storage success message to the QKD transmitting end, so that the QKD transmitting end performs the following operations: in response to receiving the synchronization storage success message from the QKD transmitting end, sending a synchronization save message to the QKD receiving end; In response to receiving a synchronization save message from the QKD transmitter, the quantum key stored in the QKD receiver cache is encrypted by the QKD receiver encryption chip and the encrypted quantum key is stored in the QKD receiver local database, and a save confirmation message is sent to the QKD transmitter, so that the QKD transmitter performs the following operations: In response to receiving a save confirmation message from the QKD receiver, the quantum key stored in the QKD transmitter cache is encrypted by the QKD transmitter encryption chip and the encrypted quantum key is stored in the QKD transmitter local database, Among them, the QKD transmitter cache, the QKD transmitter encryption chip and the QKD transmitter local database are set in the QKD transmitter, and the QKD receiver cache, the QKD receiver encryption chip and the QKD receiver local database are set in the QKD receiver.

7. A quantum key synchronization storage device for a QKD transmitter, characterized in that: include: A quantum key distribution unit, used to generate a quantum key through quantum key distribution with a QKD receiving end; A quantum key cache unit, used to store the generated quantum key in the QKD transmitter cache; A cache quantity detection unit, used to detect whether the quantity of quantum keys stored in the cache of the QKD transmitter reaches a predetermined value; A cache synchronization sending unit, if the number of quantum keys stored in the cache of the QKD transmitting end reaches a predetermined value, is used to send a cache synchronization message to the QKD receiving end, the cache synchronization message including an identifier of the quantum key stored in the cache of the QKD transmitting end and a hash value generated based on the quantum key stored in the cache of the QKD transmitting end, so that the QKD receiving end performs the following operations: in response to receiving the cache synchronization message from the QKD transmitting end, detecting whether the number of quantum keys stored in the cache of the QKD receiving end reaches a predetermined value, if the number of quantum keys stored in the cache of the QKD receiving end reaches a predetermined value, comparing the identifier of the quantum key stored in the cache of the QKD receiving end and the hash value generated based on the quantum key stored in the cache of the QKD receiving end with the identifier of the quantum key stored in the cache of the QKD transmitting end and the hash value generated based on the quantum key stored in the cache of the QKD transmitting end, respectively, and if the identifier of the quantum key and the hash value are the same, sending a cache synchronization response message to the QKD transmitting end; A synchronous storage sending unit is used to send a synchronous storage message to the QKD receiving end in response to receiving a cache synchronization response message from the QKD receiving end, wherein the synchronous storage message includes a maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitting end, so that the QKD receiving end performs the following operations: in response to receiving the synchronous storage message from the QKD transmitting end, compare the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD receiving end with the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitting end, respectively, and if the maximum identification value and the number are the same, send a synchronous storage success message to the QKD transmitting end; A synchronous storage sending unit is used to send a synchronous storage message to the QKD receiving end in response to receiving a synchronous storage success message from the QKD receiving end, so that the QKD receiving end performs the following operations: in response to receiving the synchronous storage message from the QKD transmitting end, encrypt the quantum key stored in the QKD receiving end cache through the QKD receiving end encryption chip and store the encrypted quantum key in the QKD receiving end local database, and send a storage confirmation message to the QKD transmitting end; The synchronous storage response unit is used to encrypt the quantum key stored in the QKD transmitter cache through the QKD transmitter encryption chip in response to receiving the save confirmation message from the QKD receiver and store the encrypted quantum key in the QKD transmitter local database. Among them, the QKD transmitter cache, the QKD transmitter encryption chip and the QKD transmitter local database are set in the QKD transmitter, and the QKD receiver cache, the QKD receiver encryption chip and the QKD receiver local database are set in the QKD receiver.

8. A quantum key synchronization storage device for a QKD receiving end, characterized in that: include: A quantum key distribution unit, used to generate a quantum key through quantum key distribution with a QKD transmitter; A quantum key cache unit, used to store the generated quantum key in a QKD receiving end cache; A cache quantity detection unit, configured to detect whether the quantity of quantum keys stored in the cache of the QKD receiving end reaches a predetermined value in response to receiving a cache synchronization message from the QKD transmitting end, wherein the cache synchronization message includes an identifier of the quantum key stored in the cache of the QKD transmitting end and a hash value generated based on the quantum key stored in the cache of the QKD transmitting end; a cache key comparison unit, for comparing the identifier of the quantum key stored in the QKD receiving end cache and the hash value generated based on the quantum key stored in the QKD receiving end cache with the identifier of the quantum key stored in the QKD transmitting end cache and the hash value generated based on the quantum key stored in the QKD transmitting end cache, respectively, if the number of quantum keys stored in the QKD receiving end cache reaches a predetermined value; a cache synchronization response unit, configured to send a cache synchronization response message to the QKD transmitter if the identifier of the quantum key and the hash value are the same, so that the QKD transmitter performs the following operations: in response to receiving the cache synchronization response message from the QKD receiver, send a synchronization storage message to the QKD receiver, wherein the synchronization storage message includes a maximum identifier value of the quantum key and the number of quantum keys in a local database of the QKD transmitter; a key storage comparison unit, configured to, in response to receiving a synchronization storage message from the QKD transmitter, compare the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD receiver with the maximum identification value of the quantum key and the number of quantum keys in the local database of the QKD transmitter, respectively; a synchronous storage feedback unit, for sending a synchronous storage success message to the QKD transmitting end if the maximum identification value and the quantity are the same, so that the QKD transmitting end performs the following operations: in response to receiving the synchronous storage success message from the QKD transmitting end, sending a synchronous saving message to the QKD receiving end; The synchronous storage response unit is used to, in response to receiving a synchronous storage message from the QKD transmitter, encrypt the quantum key stored in the QKD receiver cache through the QKD receiver encryption chip and store the encrypted quantum key in the QKD receiver local database, and send a storage confirmation message to the QKD transmitter, so that the QKD transmitter performs the following operations: in response to receiving a storage confirmation message from the QKD receiver, encrypt the quantum key stored in the QKD transmitter cache through the QKD transmitter encryption chip and store the encrypted quantum key in the QKD transmitter local database, Among them, the QKD transmitter cache, the QKD transmitter encryption chip and the QKD transmitter local database are set in the QKD transmitter, and the QKD receiver cache, the QKD receiver encryption chip and the QKD receiver local database are set in the QKD receiver.

9. A computer-readable storage medium storing a computer program, wherein: When the computer program is executed by a processor, the quantum key synchronization storage method described in any one of claims 1 to 6 is implemented.

10. A computing device comprising: processor; A memory storing a computer program, which, when executed by a processor, implements the quantum key synchronization storage method described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Quantum key management method, comparison method, output method, device and system

    CN113676314A