Quantum Key Synchronous Acquisition Method, Device, Medium and Equipment for QKD
By setting up a local database at the transmitting and receiving ends of the QKD system, the comparison and synchronization of quantum keys are achieved, and the problem of real-time synchronous storage, acquisition and management of quantum keys is solved, ensuring safe data transmission and resisting the risk of key leakage.
Patent Information
- Application Number
- CN202510046709.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-13
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2045-01-13
AI Technical Summary
In the quantum key distribution (QKD) system, how to realize real-time synchronous storage, acquisition and management of quantum keys, ensure that both parties in the communication can use completely consistent keys for encryption and decryption operations, and resist potential key leakage and tampering risks.
By setting up local databases on the transmitting and receiving ends of QKD, the alignment and synchronization of quantum keys are realized. The specific steps include: the application terminal sends a acquisition message to the QKD transmitter, the transmitter obtains the minimum quantum key identification from the local database and sends a comparison message to the receiving terminal, the receiving terminal compares and responds to determine the minimum quantum key identification, and the transmitter obtains and sends the corresponding quantum key to the application terminal.
Ensure that terminal applications connected to the QKD transmitter and receiver synchronously obtain symmetric quantum keys, providing guarantees for secure data transmission, and protecting against key leakage and tampering risks.
Smart Images

Figure CN119483959B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of quantum communication technology, and particularly to a method, apparatus, medium, and device for obtaining quantum keys for QKD. Background Art
[0002] In a Quantum Key Distribution (QKD) system, a transmitter generates a quantum state through a quantum bit source (such as a photon), encodes the quantum state using the properties of quantum mechanics (such as the quantum no-cloning theorem and the uncertainty principle), and transmits it to the receiver. The transmitter and the receiver randomly select measurement bases to measure the quantum state, compare the measurement bases through a classical channel, and filter out the consistent bits. After post-processing steps such as key negotiation and privacy amplification, a secure quantum key is finally generated. 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 secure communication. This is not only the basis for ensuring that both communication parties can use exactly the same key for encryption and decryption operations, but also the core for maintaining the security of the communication process. By synchronously storing, acquiring, and managing the key, the risk of potential key leakage and tampering can also be resisted, ensuring that only legitimate communication parties can decrypt the information, thus providing a solid security guarantee for encrypted communication in the face of the growing threat of quantum computing today. Summary of the Invention
[0004] The purpose of the present invention is to provide a method, apparatus, medium, and device for synchronously obtaining quantum keys for QKD.
[0005] According to one aspect of the present invention, there is provided a method for obtaining quantum key synchronization for a QKD system, the method comprising: a first application terminal sending a first quantum key acquisition message to a QKD transmitter; the QKD transmitter, in response to receiving the first quantum key acquisition message from the first application terminal, obtaining the minimum quantum key identifier from the local database of the QKD transmitter and sending a quantum key comparison message to the QKD receiver, the quantum key comparison message including the obtained minimum quantum key identifier; the QKD receiver, in response to receiving the quantum key comparison message from the QKD transmitter, comparing the minimum quantum key identifier of the local database of the QKD transmitter with the minimum quantum key identifier of the local database of the QKD receiver, and determining the maximum minimum quantum key identifier among the minimum quantum key identifier of the local database of the QKD transmitter and the minimum quantum key identifier of the local database of the QKD receiver as the minimum quantum key identifier of the QKD transmitter and the QKD receiver, and sending a quantum key comparison synchronization response message to the QKD transmitter, the quantum key comparison synchronization response message including the determined minimum quantum key identifier; the QKD transmitter, in response to receiving the quantum key comparison synchronization response message from the QKD receiver, obtaining the quantum key corresponding to the determined minimum quantum key identifier from the local database of the QKD transmitter and sending the obtained quantum key to the first application terminal; the first application terminal, in response to obtaining the quantum key from the QKD transmitter, sending the quantum key identifier corresponding to the obtained quantum key to the second application terminal; the second application terminal, in response to obtaining the quantum key identifier from the first application terminal, sending a second quantum key acquisition message to the QKD receiver, the second quantum key acquisition message including the quantum key identifier obtained from the first application terminal; the QKD receiver, in response to receiving the second quantum key acquisition message from the second application terminal, obtaining the quantum key corresponding to the quantum key identifier in the second quantum key acquisition message from the local database of the QKD receiver and sending the obtained quantum key to the second application terminal, wherein the QKD transmitter is connected to the first application terminal, the QKD receiver is connected to the second application terminal, the local database of the QKD transmitter is provided in the QKD transmitter, and the local database of the QKD receiver is provided in the QKD receiver.
[0006] According to another aspect of the present invention, there is provided a method for obtaining quantum key synchronization for a QKD transmitter, the method comprising: receiving a first quantum key acquisition message from a first application terminal; in response to receiving the first quantum key acquisition message from the first application terminal, obtaining the minimum quantum key identifier from the local database of the QKD transmitter; sending a quantum key comparison message to the QKD receiver, the quantum key comparison message including the obtained minimum quantum key identifier, such that the QKD receiver, in response to receiving the quantum key comparison message from the QKD transmitter, compares the minimum quantum key identifier of the local database of the QKD transmitter with the minimum quantum key identifier of the local database of the QKD receiver, and determines the maximum minimum quantum key identifier among the minimum quantum key identifier of the local database of the QKD transmitter and the minimum quantum key identifier of the local database of the QKD receiver as the minimum quantum key identifier of the QKD transmitter and the QKD receiver, and sends a quantum key comparison synchronization response message to the QKD transmitter, the quantum key comparison synchronization response message including the determined minimum quantum key identifier; receiving the quantum key comparison synchronization response message from the QKD receiver; in response to receiving the quantum key comparison synchronization response message from the QKD receiver, obtaining the quantum key corresponding to the determined minimum quantum key identifier from the local database of the QKD transmitter; sending the obtained quantum key to the first application terminal, such that the first application terminal, in response to obtaining the quantum key from the QKD transmitter, sends the quantum key identifier corresponding to the obtained quantum key to the second application terminal; the second application terminal, in response to obtaining the quantum key identifier from the first application terminal, sends a second quantum key acquisition message to the QKD receiver, the second quantum key acquisition message including the quantum key identifier obtained from the first application terminal; the QKD receiver, in response to obtaining the second quantum key acquisition message from the second application terminal, obtains the quantum key corresponding to the quantum key identifier in the second quantum key acquisition message from the local database of the QKD receiver, and sends the obtained quantum key to the second application terminal, wherein the QKD transmitter is connected to the first application terminal, the QKD receiver is connected to the second application terminal, the local database of the QKD transmitter is provided in the QKD transmitter, and the local database of the QKD receiver is provided in the QKD receiver.
[0007] According to another aspect of the present invention, there is provided a method for obtaining quantum key synchronization for a QKD receiving end, the method comprising: receiving a quantum key comparison message from a QKD transmitting end, the quantum key comparison message including the minimum quantum key identifier obtained by the QKD transmitting end from the local database of the QKD transmitting end in response to receiving a first quantum key obtaining message from a first application terminal; in response to receiving the quantum key comparison message from the QKD transmitting end, comparing the minimum quantum key identifier of the local database of the QKD transmitting end with the minimum quantum key identifier of the local database of the QKD receiving end, and determining the maximum minimum quantum key identifier among the minimum quantum key identifier of the local database of the QKD transmitting end and the minimum quantum key identifier of the local database of the QKD receiving end as the minimum quantum key identifier of the QKD transmitting end and the QKD receiving end according to the comparison result; sending a quantum key comparison synchronization response message to the QKD transmitting end, the quantum key comparison synchronization response message including the determined minimum quantum key identifier, so that the QKD transmitting end, in response to receiving the quantum key comparison synchronization response message from the QKD receiving end, obtains the quantum key corresponding to the determined minimum quantum key identifier from the local database of the QKD transmitting end and sends the obtained quantum key to the first application terminal; the first application terminal, in response to obtaining the quantum key from the QKD transmitting end, sends the quantum key identifier corresponding to the obtained quantum key to the second application terminal; the second application terminal, in response to obtaining the quantum key identifier from the first application terminal, sends a second quantum key obtaining message to the QKD receiving end, the second quantum key obtaining message including the quantum key identifier obtained from the first application terminal; receiving the second quantum key obtaining message from the second application terminal; in response to obtaining the second quantum key obtaining message from the second application terminal, obtaining the quantum key corresponding to the quantum key identifier in the second quantum key obtaining message from the local database of the QKD receiving end; and sending the obtained quantum key to the second application terminal, wherein the QKD transmitting end is connected to the first application terminal, the QKD receiving end is connected to the second application terminal, the local database of the QKD transmitting end is set in the QKD transmitting end, and the local database of the QKD receiving end is set in the QKD receiving end.
[0008] According to another aspect of the present invention, there is provided a quantum key synchronization acquisition device for a QKD transmitter, the device comprising: a terminal message receiving unit for receiving a first quantum key acquisition message from a first application terminal; a minimum identifier acquisition unit for, in response to receiving the first quantum key acquisition message from the first application terminal, acquiring the minimum quantum key identifier from the local database of the QKD transmitter; a peer message sending unit for sending a quantum key comparison message to the QKD receiver, the quantum key comparison message including the acquired minimum quantum key identifier, such that the QKD receiver, in response to receiving the quantum key comparison message from the QKD transmitter, compares the minimum quantum key identifier of the local database of the QKD transmitter with the minimum quantum key identifier of the local database of the QKD receiver, and determines the maximum minimum quantum key identifier among the minimum quantum key identifier of the local database of the QKD transmitter and the minimum quantum key identifier of the local database of the QKD receiver as the minimum quantum key identifier of the QKD transmitter and the QKD receiver, and sends a quantum key comparison synchronization response message to the QKD transmitter, the quantum key comparison synchronization response message including the determined minimum quantum key identifier; a peer message receiving unit for receiving the quantum key comparison synchronization response message from the QKD receiver; a quantum key acquisition unit for, in response to receiving the quantum key comparison synchronization response message from the QKD receiver, acquiring the quantum key corresponding to the determined minimum quantum key identifier from the local database of the QKD transmitter; a quantum key sending unit for sending the acquired quantum key to the first application terminal, such that the first application terminal, in response to acquiring the quantum key from the QKD transmitter, sends the quantum key identifier corresponding to the acquired quantum key to the second application terminal; the second application terminal, in response to acquiring the quantum key identifier from the first application terminal, sends a second quantum key acquisition message to the QKD receiver, the second quantum key acquisition message including the quantum key identifier acquired from the first application terminal; the QKD receiver, in response to acquiring the second quantum key acquisition message from the second application terminal, acquires the quantum key corresponding to the quantum key identifier in the second quantum key acquisition message from the local database of the QKD receiver, and sends the acquired quantum key to the second application terminal, wherein the QKD transmitter is connected to the first application terminal, the QKD receiver is connected to the second application terminal, the local database of the QKD transmitter is provided in the QKD transmitter, and the local database of the QKD receiver is provided in the QKD receiver.
[0009] According to another aspect of the present invention, there is provided a quantum key synchronization acquisition device for a QKD receiving end, the device comprising: a peer message receiving unit, configured to receive a quantum key comparison message from a QKD transmitting end, the quantum key comparison message including the minimum quantum key identifier obtained by the QKD transmitting end from its local database in response to receiving a first quantum key acquisition message from a first application terminal; a minimum identifier comparison unit, configured to, in response to receiving the quantum key comparison message from the QKD transmitting end, compare the minimum quantum key identifier in the local database of the QKD transmitting end with the minimum quantum key identifier in the local database of the QKD receiving end, and determine the maximum minimum quantum key identifier among the minimum quantum key identifier in the local database of the QKD transmitting end and the minimum quantum key identifier in the local database of the QKD receiving end as the minimum quantum key identifier of the QKD transmitting end and the QKD receiving end; a peer message sending unit, configured to send a quantum key comparison synchronization response message to the QKD transmitting end, the quantum key comparison synchronization response message including the determined minimum quantum key identifier, such that the QKD transmitting end, in response to receiving the quantum key comparison synchronization response message from the QKD receiving end, obtains the quantum key corresponding to the determined minimum quantum key identifier from its local database and sends the obtained quantum key to the first application terminal; the first application terminal, in response to obtaining the quantum key from the QKD transmitting end, sends the quantum key identifier corresponding to the obtained quantum key to the second application terminal; the second application terminal, in response to obtaining the quantum key identifier from the first application terminal, sends a second quantum key acquisition message to the QKD receiving end, the second quantum key acquisition message including the quantum key identifier obtained from the first application terminal; a terminal message receiving unit, configured to receive the second quantum key acquisition message from the second application terminal; a quantum key acquisition unit, configured to, in response to obtaining the second quantum key acquisition message from the second application terminal, obtain the quantum key corresponding to the quantum key identifier in the second quantum key acquisition message from the local database of the QKD receiving end; a quantum key sending unit, configured to send the obtained quantum key to the second application terminal, wherein the QKD transmitting end is connected to the first application terminal, the QKD receiving end is connected to the second application terminal, the local database of the QKD transmitting end is provided in the QKD transmitting end, and the local database of the QKD receiving end is provided in the QKD receiving end.
[0010] According to another aspect of the present invention, there is also provided a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the quantum key synchronization acquisition method as described above.
[0011] According to another aspect of the present invention, there is also provided a computer device, which includes: a processor; a memory storing a computer program, and when the computer program is executed by the processor, the quantum key synchronization acquisition method as described above is implemented.
[0012] The quantum key synchronization acquisition method, device, medium and equipment for QKD provided by the present invention can ensure that the terminal applications connected to the QKD transmitter and the terminal applications connected to the QKD receiver synchronously acquire symmetric quantum keys, providing guarantee for the secure data transmission between terminal applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Through the following description with reference to the drawings, the above objects and features of the present invention will become clearer.
[0014] Figure 1 Schematically shows the data interaction process for quantum key synchronization acquisition in a QKD system according to an exemplary embodiment of the present invention.
[0015] Figure 2 Schematically shows the structural diagram of a quantum key synchronization acquisition device for a QKD system according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0016] In an exemplary embodiment of the present invention, the method for quantum key synchronization acquisition for a quantum key distribution (QKD) device may at least include the following steps.
[0017] First, a first application terminal sends a first quantum key acquisition message to the QKD transmitter.
[0018] Next, in response to receiving the first quantum key acquisition message from the first application terminal, the QKD transmitter obtains the minimum quantum key identifier from the local database of the QKD transmitter, and sends a quantum key comparison message to the QKD receiver, where the quantum key comparison message includes the obtained minimum quantum key identifier.
[0019] Next, in response to receiving the quantum key comparison message from the QKD transmitter, the QKD receiver compares the minimum quantum key identifier in the local database of the QKD transmitter with the minimum quantum key identifier in the local database of the QKD receiver, and determines the maximum minimum quantum key identifier among the minimum quantum key identifier in the local database of the QKD transmitter and the minimum quantum key identifier in the local database of the QKD receiver as the minimum quantum key identifier of the QKD transmitter and the QKD receiver according to the comparison result, and sends a quantum key comparison synchronization response message to the QKD transmitter, where the quantum key comparison synchronization response message includes the determined minimum quantum key identifier.
[0020] Next, in response to receiving the quantum key comparison synchronization response message from the QKD receiving end, the QKD transmitting end obtains the quantum key corresponding to the determined minimum quantum key identifier from the local database of the QKD transmitting end, and sends the obtained quantum key to the first application terminal.
[0021] Next, in response to obtaining the quantum key from the QKD transmitting end, the first application terminal sends the quantum key identifier corresponding to the obtained quantum key to the second application terminal.
[0022] Next, in response to obtaining the quantum key identifier from the first application terminal, the second application terminal sends a second quantum key acquisition message to the QKD receiving end, and the second quantum key acquisition message includes the quantum key identifier obtained from the first application terminal;
[0023] Next, in response to obtaining the second quantum key acquisition message from the second application terminal, the QKD receiving end obtains the quantum key corresponding to the quantum key identifier in the second quantum key acquisition message from the local database of the QKD receiving end, and sends the obtained quantum key to the second application terminal.
[0024] In an exemplary embodiment of the present invention, the QKD transmitting end is connected to the first application terminal, the QKD receiving end is connected to the second application terminal, the local database of the QKD transmitting end is set in the QKD transmitting end, and the local database of the QKD receiving end is set in the QKD receiving end.
[0025] In addition, in an exemplary embodiment of the present invention, if the minimum quantum key identifier of the local database of the QKD transmitting end is greater than the minimum quantum key identifier of the local database of the QKD receiving end, the QKD receiving end determines the minimum quantum key identifier of the local database of the QKD transmitting end as the minimum quantum key identifier of the QKD transmitting end and the QKD receiving end. If the minimum quantum key identifier of the local database of the QKD transmitting end is less than the minimum quantum key identifier of the local database of the QKD receiving end, the QKD receiving end sends a quantum key comparison failure message to the QKD transmitting end.
[0026] In addition, in an exemplary embodiment of the present invention, the QKD transmitting end also responds to receiving the quantum key comparison failure message from the QKD receiving end and sends a quantum key acquisition failure message to the first application terminal.
[0027] In addition, in an exemplary embodiment of the present invention, the QKD transmitter also responds to obtaining a quantum key corresponding to the determined minimum quantum key identifier from the local database of the QKD transmitter, marks the obtained quantum key as used, and responds to the expiration of the storage period of the obtained quantum key, and clears the expired quantum key from the local database of the QKD transmitter. Correspondingly, the QKD receiver also responds to obtaining a quantum key corresponding to the quantum key identifier in the second quantum key acquisition message from the local database of the QKD receiver (i.e., obtaining a quantum key corresponding to the determined minimum quantum key identifier), marks the obtained quantum key as used, and responds to the expiration of the storage period of the obtained quantum key, and clears the expired quantum key from the local database of the QKD receiver.
[0028] Next, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
[0029] Figure 1 Schematically shows a data interaction process for quantum key synchronous acquisition for a QKD system according to an exemplary embodiment of the present invention.
[0030] Refer to Figure 1 , a QKD system for quantum key distribution includes a QKD transmitter and a QKD receiver, wherein the QKD transmitter is connected to a first application terminal (not shown), the QKD receiver is connected to a second application terminal (not shown), a local database of the QKD transmitter is provided in the QKD transmitter, and a local database of the QKD receiver is provided in the QKD receiver. In addition, caches and encryption chips for synchronously storing quantum keys are respectively provided in the QKD transmitter and the QKD receiver, which will not be elaborated here.
[0031] In Figure 1 the QKD system shown, the QKD transmitter performs the following data processing procedures.
[0032] First, in S101, the QKD transmitter receives a first quantum key acquisition message from the first application terminal.
[0033] Next, in S102, in response to receiving the first quantum key acquisition message from the first application terminal, the QKD transmitter obtains the minimum quantum key identifier from the local database of the QKD transmitter.
[0034] Next, in S103, the QKD transmitter sends a quantum key comparison message to the QKD receiver. The quantum key comparison message includes the obtained minimum quantum key identifier, such that the QKD receiver, in response to receiving the quantum key comparison message from the QKD transmitter, compares the minimum quantum key identifier in the local database of the QKD transmitter with the minimum quantum key identifier in the local database of the QKD receiver, and determines the maximum minimum quantum key identifier among the minimum quantum key identifier in the local database of the QKD transmitter and the minimum quantum key identifier in the local database of the QKD receiver as the minimum quantum key identifier of the QKD transmitter and the QKD receiver, and sends a quantum key comparison synchronization response message to the QKD transmitter. The quantum key comparison synchronization response message includes the determined minimum quantum key identifier.
[0035] Next, in S104, the QKD transmitter receives the quantum key comparison synchronization response message from the QKD receiver.
[0036] Next, in S105, in response to receiving the quantum key comparison synchronization response message from the QKD receiver, the QKD transmitter obtains the quantum key corresponding to the determined minimum quantum key identifier from the local database of the QKD transmitter.
[0037] Next, in S106, the QKD transmitter sends the obtained quantum key to the first application terminal, such that the first application terminal, in response to obtaining the quantum key from the QKD transmitter, sends the quantum key identifier corresponding to the obtained quantum key to the second application terminal; the second application terminal, in response to obtaining the quantum key identifier from the first application terminal, sends a second quantum key acquisition message to the QKD receiver. The second quantum key acquisition message includes the quantum key identifier obtained from the first application terminal; the QKD receiver, in response to obtaining the second quantum key acquisition message from the second application terminal, obtains the quantum key corresponding to the quantum key identifier in the second quantum key acquisition message from the local database of the QKD receiver, and sends the obtained quantum key (i.e., the quantum key corresponding to the determined minimum quantum key identifier) to the second application terminal.
[0038] In Figure 1 the QKD system shown, the QKD receiver performs the following data processing procedure.
[0039] First, in S201, the QKD receiver receives the quantum key comparison message from the QKD transmitter. The quantum key comparison message includes the minimum quantum key identifier obtained by the QKD transmitter from the local database of the QKD transmitter in response to receiving the first quantum key acquisition message from the first application terminal.
[0040] Next, in S202, in response to receiving the quantum key comparison message from the QKD transmitter, the QKD receiver compares the minimum quantum key identifier in the local database of the QKD transmitter with the minimum quantum key identifier in the local database of the QKD receiver, and determines the maximum minimum quantum key identifier among the minimum quantum key identifier in the local database of the QKD transmitter and the minimum quantum key identifier in the local database of the QKD receiver as the minimum quantum key identifier of the QKD transmitter and the QKD receiver according to the comparison result.
[0041] Next, in S203, the QKD receiver sends a quantum key comparison synchronization response message to the QKD transmitter. The quantum key comparison synchronization response message includes the determined minimum quantum key identifier, so that in response to receiving the quantum key comparison synchronization response message from the QKD receiver, the QKD transmitter obtains the quantum key corresponding to the determined minimum quantum key identifier from the local database of the QKD transmitter and sends the obtained quantum key to the first application terminal; in response to obtaining the quantum key from the QKD transmitter, the first application terminal sends the quantum key identifier corresponding to the obtained quantum key to the second application terminal; in response to obtaining the quantum key identifier from the first application terminal, the second application terminal sends a second quantum key acquisition message to the QKD receiver, and the second quantum key acquisition message includes the quantum key identifier obtained from the first application terminal.
[0042] Next, in S204, the QKD receiver receives the second quantum key acquisition message from the second application terminal.
[0043] Next, in S205, in response to obtaining the second quantum key acquisition message from the second application terminal, the QKD receiver obtains the quantum key corresponding to the quantum key identifier in the second quantum key acquisition message from the local database of the QKD receiver.
[0044] Next, in S206, the QKD receiver sends the obtained quantum key to the second application terminal.
[0045] Figure 2 Schematically shows a structural diagram of a quantum key synchronous acquisition device for a QKD system according to an exemplary embodiment of the present invention.
[0046] Refer to Figure 2 , Figure 2 The shown quantum key synchronous acquisition device can be respectively deployed at the QKD transmitter and the QKD receiver. Among them, the QKD transmitter is connected to a first application terminal (not shown), the QKD receiver is connected to a second application terminal (not shown), a local database of the QKD transmitter is provided in the QKD transmitter, and a local database of the QKD receiver is provided in the QKD receiver.
[0047] InFigure 2 In the illustrated transmitting end, the quantum key synchronization acquisition device for QKD may include a terminal message receiving unit, a minimum identifier acquisition unit, a peer message sending unit, a peer message receiving unit, a quantum key acquisition unit, and a quantum key sending unit.
[0048] Among them, the terminal message receiving unit is used to receive a first quantum key acquisition message from a first application terminal; the minimum identifier acquisition unit is used to, in response to receiving the first quantum key acquisition message from the first application terminal, acquire the minimum quantum key identifier from the local database of the QKD transmitting end; the peer message sending unit is used to send a quantum key comparison message to the QKD receiving end, and the quantum key comparison message includes the acquired minimum quantum key identifier, so that the QKD receiving end, in response to receiving the quantum key comparison message from the QKD transmitting end, compares the minimum quantum key identifier of the local database of the QKD transmitting end with the minimum quantum key identifier of the local database of the QKD receiving end, and determines the maximum minimum quantum key identifier among the minimum quantum key identifier of the local database of the QKD transmitting end and the minimum quantum key identifier of the local database of the QKD receiving end as the minimum quantum key identifier of the QKD transmitting end and the QKD receiving end, and sends a quantum key comparison synchronization response message to the QKD transmitting end, and the quantum key comparison synchronization response message includes the determined minimum quantum key identifier; the peer message receiving unit is used to receive the quantum key comparison synchronization response message from the QKD receiving end; the quantum key acquisition unit is used to, in response to receiving the quantum key comparison synchronization response message from the QKD receiving end, acquire the quantum key corresponding to the determined minimum quantum key identifier from the local database of the QKD transmitting end; the quantum key sending unit is used to send the acquired quantum key to the first application terminal, so that the first application terminal, in response to acquiring the quantum key from the QKD transmitting end, sends the quantum key identifier corresponding to the acquired quantum key to the second application terminal; the second application terminal, in response to acquiring the quantum key identifier from the first application terminal, sends a second quantum key acquisition message to the QKD receiving end, and the second quantum key acquisition message includes the quantum key identifier acquired from the first application terminal; the QKD receiving end, in response to acquiring the second quantum key acquisition message from the second application terminal, acquires the quantum key corresponding to the quantum key identifier in the second quantum key acquisition message from the local database of the QKD receiving end, and sends the acquired quantum key (i.e., acquires the quantum key corresponding to the determined minimum quantum key identifier) to the second application terminal.
[0049] In Figure 2 In the illustrated QKD receiving end, the quantum key synchronization acquisition device for QKD may include a peer message receiving unit, a minimum identifier comparison unit, a peer message sending unit, a terminal message receiving unit, a quantum key acquisition unit, and a quantum key sending unit.
[0050] Among them, the peer message receiving unit is used to receive a quantum key comparison message from the QKD transmitter. The quantum key comparison message includes the minimum quantum key identifier obtained by the QKD transmitter from its local database in response to receiving a first quantum key acquisition message from the first application terminal. The minimum identifier comparison unit is used to, in response to receiving the quantum key comparison message from the QKD transmitter, compare the minimum quantum key identifier in the local database of the QKD transmitter with the minimum quantum key identifier in the local database of the QKD receiver, and determine the maximum minimum quantum key identifier among the minimum quantum key identifier in the local database of the QKD transmitter and the minimum quantum key identifier in the local database of the QKD receiver as the minimum quantum key identifier of the QKD transmitter and the QKD receiver according to the comparison result. The peer message sending unit is used to send a quantum key comparison synchronization response message to the QKD transmitter. The quantum key comparison synchronization response message includes the determined minimum quantum key identifier, so that the QKD transmitter, in response to receiving the quantum key comparison synchronization response message from the QKD receiver, obtains the quantum key corresponding to the determined minimum quantum key identifier from its local database of the QKD transmitter and sends the obtained quantum key to the first application terminal. The first application terminal, in response to obtaining the quantum key from the QKD transmitter, sends the quantum key identifier corresponding to the obtained quantum key to the second application terminal. The second application terminal, in response to obtaining the quantum key identifier from the first application terminal, sends a second quantum key acquisition message to the QKD receiver. The second quantum key acquisition message includes the quantum key identifier obtained from the first application terminal. The terminal message receiving unit is used to receive the second quantum key acquisition message from the second application terminal. The quantum key acquisition unit is used to, in response to obtaining the second quantum key acquisition message from the second application terminal, obtain the quantum key corresponding to the quantum key identifier in the second quantum key acquisition message from the local database of the QKD receiver. The quantum key sending unit is used to send the obtained quantum key (i.e., obtain the quantum key corresponding to the determined minimum quantum key identifier) to the second application terminal.
[0051] It can be seen that the method and device for quantum key synchronous acquisition for QKD according to the exemplary embodiments of the present invention can ensure that the terminal applications connected to the QKD transmitter and the terminal applications connected to the QKD receiver synchronously obtain symmetric quantum keys, providing guarantee for the secure data transmission between the terminal applications.
[0052] 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 execute the quantum key synchronization acquisition method for QKD according to the present invention. The computer-readable recording medium is any data storage device that can store data read by a computer system. Examples of the computer-readable recording medium include: read-only memory, random access memory, compact disc read-only memory, magnetic tape, floppy disk, optical data storage device, and carrier waves (such as data transmission through the Internet via wired or wireless transmission paths).
[0053] 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, when executed by the processor, causes the processor to execute the computer program of the quantum key synchronization acquisition method for QKD according to the present invention.
[0054] Although the present application has been shown and described with reference to the preferred embodiments, those skilled in the art should understand that various modifications and changes can be made to these embodiments without departing from the spirit and scope of the present application defined by the claims.
Claims
1. A quantum key synchronization acquisition method for a QKD system, characterized in that: include: The first application terminal sends a first quantum key acquisition message to the QKD transmitting end; In response to receiving the first quantum key acquisition message from the first application terminal, the QKD transmitting end obtains the minimum quantum key identifier from the local database of the QKD transmitting end, and sends a quantum key comparison message to the QKD receiving end, wherein the quantum key comparison message includes the obtained minimum quantum key identifier; In response to receiving the quantum key comparison message from the QKD transmitter, the QKD receiver compares the minimum quantum key identifier of the local database of the QKD transmitter with the minimum quantum key identifier of the local database of the QKD receiver, determines the largest minimum quantum key identifier of the minimum quantum key identifier of the local database of the QKD transmitter and the minimum quantum key identifier of the local database of the QKD receiver as the minimum quantum key identifier of the QKD transmitter and the QKD receiver according to the comparison result, and sends a quantum key comparison synchronization response message to the QKD transmitter, wherein the quantum key comparison synchronization response message includes the determined minimum quantum key identifier; The QKD transmitting end, in response to receiving the quantum key comparison synchronization response message from the QKD receiving end, obtains the quantum key corresponding to the determined minimum quantum key identifier from the local database of the QKD transmitting end, and sends the obtained quantum key to the first application terminal; The first application terminal, in response to obtaining the quantum key from the QKD transmitting terminal, sends a quantum key identifier corresponding to the obtained quantum key to the second application terminal; The second application terminal sends a second quantum key acquisition message to the QKD receiving end in response to obtaining the quantum key identifier from the first application terminal, wherein the second quantum key acquisition message includes the quantum key identifier obtained from the first application terminal; In response to receiving the second quantum key acquisition message from the second application terminal, the QKD receiving end obtains the quantum key corresponding to the quantum key identifier in the second quantum key acquisition message from the local database of the QKD receiving end, and sends the obtained quantum key to the second application terminal. Among them, the QKD transmitter is connected to the first application terminal, the QKD receiver is connected to the second application terminal, the QKD transmitter local database is set in the QKD transmitter, and the QKD receiver local database is set in the QKD receiver.
2. The method according to claim 1, characterized in that The QKD receiving end determines the largest minimum quantum key identifier among the minimum quantum key identifier of the local database of the QKD transmitting end and the minimum quantum key identifier of the local database of the QKD receiving end as the minimum quantum key identifier of the QKD transmitting end and the QKD receiving end according to the comparison result, including: If the minimum quantum key identifier of the local database of the QKD transmitter is greater than the minimum quantum key identifier of the local database of the QKD receiver, the QKD receiver determines the minimum quantum key identifier of the local database of the QKD transmitter as the minimum quantum key identifier of the QKD transmitter and the QKD receiver. If the minimum quantum key identifier of the local database of the QKD transmitter is less than the minimum quantum key identifier of the local database of the QKD receiver, the QKD receiver sends a quantum key comparison failure message to the QKD transmitter.
3. The method according to claim 2, characterized in that Also includes: In response to receiving a quantum key comparison failure message from the QKD receiving end, the QKD transmitting end sends a quantum key acquisition failure message to the first application terminal.
4. The method according to claim 1, characterized in that: Also includes: The QKD transmitter, in response to obtaining a quantum key corresponding to the determined minimum quantum key identifier from a local database of the QKD transmitter, marks the obtained quantum key as being in a used state, and in response to the expiration of a storage period of the obtained quantum key, removes the expired quantum key from the local database of the QKD transmitter; and / or, In response to obtaining a quantum key corresponding to the quantum key identifier in the second quantum key acquisition message from a local database of the QKD receiving end, the QKD receiving end marks the obtained quantum key as being in use, and in response to the expiration of the shelf life of the obtained quantum key, clears the expired quantum key from the local database of the QKD receiving end.
5. A method for synchronously acquiring a quantum key for a QKD transmitter, characterized in that: include: Receiving a first quantum key acquisition message from a first application terminal; In response to receiving a first quantum key acquisition message from the first application terminal, acquiring a minimum quantum key identifier from a local database of the QKD transmitter; Sending a quantum key comparison message to the QKD receiving end, the quantum key comparison message including the acquired minimum quantum key identifier, so that the QKD receiving end, in response to receiving the quantum key comparison message from the QKD transmitting end, compares the minimum quantum key identifier of the local database of the QKD transmitting end with the minimum quantum key identifier of the local database of the QKD receiving end, and determines the largest minimum quantum key identifier of the minimum quantum key identifier of the local database of the QKD transmitting end and the minimum quantum key identifier of the local database of the QKD receiving end as the minimum quantum key identifier of the QKD transmitting end and the QKD receiving end according to the comparison result, and sending a quantum key comparison synchronization response message to the QKD transmitting end, the quantum key comparison synchronization response message including the determined minimum quantum key identifier; Receive a quantum key comparison synchronization response message from a QKD receiving end; In response to receiving a quantum key comparison synchronization response message from the QKD receiving end, obtaining a quantum key corresponding to the determined minimum quantum key identifier from a local database of the QKD transmitting end; The acquired quantum key is sent to the first application terminal, so that the first application terminal, in response to acquiring the quantum key from the QKD transmitting terminal, sends a quantum key identifier corresponding to the acquired quantum key to the second application terminal; the second application terminal, in response to acquiring the quantum key identifier from the first application terminal, sends a second quantum key acquisition message to the QKD receiving terminal, wherein the second quantum key acquisition message includes the quantum key identifier acquired from the first application terminal; the QKD receiving terminal, in response to acquiring the second quantum key acquisition message from the second application terminal, acquires the quantum key corresponding to the quantum key identifier in the second quantum key acquisition message from the local database of the QKD receiving terminal, and sends the acquired quantum key to the second application terminal, Among them, the QKD transmitter is connected to the first application terminal, the QKD receiver is connected to the second application terminal, the QKD transmitter local database is set in the QKD transmitter, and the QKD receiver local database is set in the QKD receiver.
6. A quantum key synchronization acquisition method for a QKD receiving end, characterized in that: include: Receiving a quantum key comparison message from a QKD transmitter, wherein the quantum key comparison message includes a minimum quantum key identifier obtained by the QKD transmitter from a local database of the QKD transmitter in response to receiving a first quantum key acquisition message from the first application terminal; In response to receiving a quantum key comparison message from the QKD transmitter, the minimum quantum key identifier of the local database of the QKD transmitter is compared with the minimum quantum key identifier of the local database of the QKD receiver, and according to the comparison result, the largest minimum quantum key identifier of the minimum quantum key identifier of the local database of the QKD transmitter and the minimum quantum key identifier of the local database of the QKD receiver is determined as the minimum quantum key identifier of the QKD transmitter and the QKD receiver; Sending a quantum key comparison synchronization response message to the QKD transmitting end, wherein the quantum key comparison synchronization response message includes the determined minimum quantum key identifier, so that the QKD transmitting end, in response to receiving the quantum key comparison synchronization response message from the QKD receiving end, obtains the quantum key corresponding to the determined minimum quantum key identifier from the local database of the QKD transmitting end, and sends the obtained quantum key to the first application terminal; the first application terminal, in response to obtaining the quantum key from the QKD transmitting end, sends the quantum key identifier corresponding to the obtained quantum key to the second application terminal; the second application terminal, in response to obtaining the quantum key identifier from the first application terminal, sends a second quantum key acquisition message to the QKD receiving end, wherein the second quantum key acquisition message includes the quantum key identifier obtained from the first application terminal; Receiving a second quantum key acquisition message from a second application terminal; In response to obtaining a second quantum key acquisition message from the second application terminal, obtaining a quantum key corresponding to the quantum key identifier in the second quantum key acquisition message from a local database of the QKD receiving end; Send the acquired quantum key to the second application terminal, Among them, the QKD transmitter is connected to the first application terminal, the QKD receiver is connected to the second application terminal, the QKD transmitter local database is set in the QKD transmitter, and the QKD receiver local database is set in the QKD receiver.
7. A quantum key synchronization acquisition device for a QKD transmitter, characterized in that: include: A terminal message receiving unit, configured to receive a first quantum key acquisition message from a first application terminal; A minimum identifier acquisition unit, configured to acquire a minimum quantum key identifier from a local database of a QKD transmitting end in response to receiving a first quantum key acquisition message from a first application terminal; A peer message sending unit, configured to send a quantum key comparison message to a QKD receiving end, wherein the quantum key comparison message includes the acquired minimum quantum key identifier, so that the QKD receiving end, in response to receiving the quantum key comparison message from the QKD transmitting end, compares the minimum quantum key identifier of the local database of the QKD transmitting end with the minimum quantum key identifier of the local database of the QKD receiving end, and determines the largest minimum quantum key identifier of the minimum quantum key identifier of the local database of the QKD transmitting end and the minimum quantum key identifier of the local database of the QKD receiving end as the minimum quantum key identifier of the QKD transmitting end and the QKD receiving end according to the comparison result, and sends a quantum key comparison synchronization response message to the QKD transmitting end, wherein the quantum key comparison synchronization response message includes the determined minimum quantum key identifier; A peer message receiving unit, used to receive a quantum key comparison synchronization response message from a QKD receiving end; A quantum key acquisition unit, configured to, in response to receiving a quantum key comparison synchronization response message from a QKD receiving end, acquire a quantum key corresponding to a determined minimum quantum key identifier from a local database of a QKD transmitting end; A quantum key sending unit is used to send the acquired quantum key to the first application terminal, so that the first application terminal responds to the quantum key acquired from the QKD transmitting terminal and sends the quantum key identifier corresponding to the acquired quantum key to the second application terminal; the second application terminal responds to the quantum key identifier acquired from the first application terminal and sends a second quantum key acquisition message to the QKD receiving terminal, wherein the second quantum key acquisition message includes the quantum key identifier acquired from the first application terminal; the QKD receiving terminal responds to the second quantum key acquisition message acquired from the second application terminal and acquires the quantum key corresponding to the quantum key identifier in the second quantum key acquisition message from the local database of the QKD receiving terminal, and sends the acquired quantum key to the second application terminal, Among them, the QKD transmitter is connected to the first application terminal, the QKD receiver is connected to the second application terminal, the QKD transmitter local database is set in the QKD transmitter, and the QKD receiver local database is set in the QKD receiver.
8. A quantum key synchronization acquisition device for a QKD receiving end, characterized in that: include: A peer message receiving unit, configured to receive a quantum key comparison message from a QKD transmitter, wherein the quantum key comparison message includes a minimum quantum key identifier obtained by the QKD transmitter from a local database of the QKD transmitter in response to receiving a first quantum key acquisition message from the first application terminal; A minimum identifier comparison unit is used to, in response to receiving a quantum key comparison message from a QKD transmitter, compare the minimum quantum key identifier of a local database of the QKD transmitter with the minimum quantum key identifier of a local database of the QKD receiver, and determine the largest minimum quantum key identifier of the minimum quantum key identifier of the local database of the QKD transmitter and the minimum quantum key identifier of the local database of the QKD receiver as the minimum quantum key identifier of the QKD transmitter and the QKD receiver according to the comparison result; A peer message sending unit, configured to send a quantum key comparison synchronization response message to a QKD transmitting end, wherein the quantum key comparison synchronization response message includes a determined minimum quantum key identifier, so that the QKD transmitting end, in response to receiving the quantum key comparison synchronization response message from the QKD receiving end, obtains a quantum key corresponding to the determined minimum quantum key identifier from a local database of the QKD transmitting end, and sends the obtained quantum key to the first application terminal; the first application terminal, in response to obtaining the quantum key from the QKD transmitting end, sends the quantum key identifier corresponding to the obtained quantum key to the second application terminal; the second application terminal, in response to obtaining the quantum key identifier from the first application terminal, sends a second quantum key acquisition message to the QKD receiving end, wherein the second quantum key acquisition message includes the quantum key identifier obtained from the first application terminal; A terminal message receiving unit, used to receive a second quantum key acquisition message from a second application terminal; A quantum key acquisition unit, configured to, in response to obtaining a second quantum key acquisition message from a second application terminal, acquire a quantum key corresponding to the quantum key identifier in the second quantum key acquisition message from a local database of a QKD receiving end; A quantum key sending unit, used to send the acquired quantum key to the second application terminal, Among them, the QKD transmitter is connected to the first application terminal, the QKD receiver is connected to the second application terminal, the QKD transmitter local database is set in the QKD transmitter, and the QKD receiver local database is 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 acquisition 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 acquisition method described in any one of claims 1 to 6.
Citation Information
Patent Citations
Quantum key transmission control method and system
CN104660602A
Network architecture of quantum secret communication network and secret key storage method
CN114401085A