Quantum session key negotiation method and quantum security service platform server
Through the quantum session key negotiation method, the problem of key distribution and synchronization in quantum confidential communication is solved, and the security key negotiation between end-to-end and group communication is realized, ensuring the confidentiality and security of data transmission.
Patent Information
- Application Number
- CN202411115287.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-12-03
AI Technical Summary
In quantum confidential communication, how to implement quantum session key negotiation is an urgent technical issue, especially in end-to-end and group communication scenarios, how to safely distribute and synchronize quantum session keys is the key.
A quantum session key negotiation method is proposed. By receiving a negotiation request from a user device, the quantum session key and related parameters or identity identifiers can be returned according to the communication type (end to end or group). The user device can pass or synchronize these secrets. Key, ensures the secure transmission and synchronization of keys. The specific steps include generating a sequence of random numbers, encoding and passing it to the counterpart device for measurement, judging the error rate to determine the eavesdropping situation, and restoring the key by measuring the basis.
Quantum session key negotiation in end-to-end and group communication scenarios is realized, ensuring the secure transmission and synchronization of keys, enhancing communication security, and ensuring the confidentiality of data transmission.
Smart Images

Figure CN119070985A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of quantum communication technology, and in particular to a quantum session key negotiation method and a quantum security service platform server. Background Art
[0002] Quantum secure communication is an encrypted communication application based on quantum key distribution and combined with symmetric cryptography technology. Its principle is to add a quantum key distribution (QKD) layer on the basis of classical communication architecture. The QKD layer distributes security keys by transmitting light quanta in quantum channels, and uses these keys to encrypt user data according to specific strategies to achieve secure communication, solving the most important key security problem in modern cryptography.
[0003] After completing the above quantum key distribution operation, the two parties with data confidentiality communication needs usually need to go through the quantum session key negotiation process to obtain certain specific bits from their respective shared quantum key strings as the quantum session key shared by both parties in order to transmit data confidentially, that is, one party uses the quantum session key to encrypt the data and send it to the other party, and the other party also uses the same quantum session key to perform decryption operations after receiving the data, thereby restoring the original data. Therefore, how to achieve quantum session key negotiation is a technical problem that urgently needs to be solved in quantum confidentiality communication. Summary of the invention
[0004] The technical problem to be solved by the present invention is how to realize quantum session key negotiation.
[0005] The present invention solves the above technical problems by the following technical means:
[0006] The present invention proposes a quantum session key negotiation method, the method comprising:
[0007] Receiving a quantum session key negotiation request sent by a user device;
[0008] When the type of the quantum session key negotiation request is a peer-to-peer communication type, sending a quantum session key and a negotiation parameter to the user equipment, so that the user equipment transmits the negotiation parameter to the peer equipment for the peer equipment to obtain the quantum session key through the negotiation parameter;
[0009] When the type of the quantum session key agreement request is a group communication type, a quantum session key and an identity identifier KeyID of the quantum session key are sent to the user equipment, so that the user equipment transmits the identity identifier KeyID to other user equipments in the group for the other user equipments to apply for the quantum session key based on the identity identifier KeyID.
[0010] Further, receiving a quantum session key negotiation request sent by each user device in the group;
[0011] The quantum session key and the identity identifier KeyID of the quantum session key are sent to each user device in the group, so that each user device in the group synchronizes the quantum session key and the identity identifier KeyID.
[0012] Furthermore, before receiving the quantum session key negotiation request sent by the user equipment, the method further includes:
[0013] A registration request sent by the user equipment is received to achieve connection with the user equipment.
[0014] Further, the negotiation parameter includes a random number sequence encoded by quantum bits, and the random number sequence is generated by randomly inserting decoy data into the quantum session key;
[0015] The peer device obtains the quantum session key through the negotiation parameter, specifically comprising the following steps:
[0016] After receiving the random number sequence, the peer device informs the user device through a classical authentication channel, so that the user device sends the sequence number and preparation basis of the quantum bit of the peer device encoding the decoy data;
[0017] The peer device measures the quantum bit of the serial number by using a measurement basis corresponding to the preparation basis to obtain a measurement result, and sends the measurement result to the user device, so that the user device determines an error rate according to the measurement result and the decoy data. When the error rate is less than or equal to a preset threshold, it is determined that there is no eavesdropper;
[0018] When receiving the no-eavesdropper confirmation information sent by the user device, the opposite-end device removes the quantum bits of the sequence number and measures the remaining quantum bits through the measurement basis to recover the quantum session key.
[0019] In addition, the present invention also proposes a quantum security service platform server, comprising: a quantum enhanced security application and a quantum security service platform application. After receiving a quantum session key negotiation request sent by a user device, the quantum enhanced security application calls the quantum security service application to obtain a quantum session key. When the type of the quantum session key negotiation request is an end-to-end communication type, the quantum session key and negotiation parameters are returned to the user device so that the user device passes the negotiation parameters to the opposite device for the opposite device to obtain the quantum session key through the negotiation parameters, wherein the negotiation parameters refer to a set of rules or data used to negotiate communication parameters in a communication protocol; when the type of the quantum session key negotiation request is a group communication type, the quantum session key and the identity identifier KeyID of the quantum session key are returned to the user device so that the user device passes the identity identifier KeyID to other user devices in the group for other user devices to apply for the quantum session key based on the identity identifier KeyID.
[0020] Furthermore, the quantum security service platform application includes a quantum security application layer, a quantum security service SDK, and a quantum key resource layer, and the quantum security service SDK is located between the quantum security application layer and the quantum key resource layer.
[0021] Furthermore, the quantum security service SDK includes an application API interface module, a basic service module, an application service module, a medium API interface and a driver module;
[0022] The application API interface module is connected to the application service module, so that the application service module provides services to external applications through the application API interface module;
[0023] The basic service module is output to the application service module so that the basic service module provides basic resource services for the application service module;
[0024] The application service module is connected to the medium API interface and the driver module, so that the application service module loads different driver libraries according to the type and / or version of the secure medium to implement the call of the secure medium.
[0025] Furthermore, the application service module includes:
[0026] A media basic management unit, configured to provide at least one of a media initial installation service, a media filling service, a media update service, and a media PIN code management service;
[0027] A quantum session key negotiation unit, configured to provide at least one of a key cache management service, a key plaintext derivation service, and a key ciphertext derivation service;
[0028] A quantum cryptography service unit, configured to provide at least one of a hard encryption and decryption service, a soft encryption and decryption service, a hard authentication code operation service, a soft authentication code operation service, a quantum random number generation service, and a key details viewing service;
[0029] A media adaptation management unit, used to provide media type adaptation management services and / or driver library adaptation management services;
[0030] Configuration maintenance unit, used to provide version information service and / or password management platform information service;
[0031] The system management unit is used to provide at least one of the following services: media connection status detection service, password management platform service monitoring service, abnormal alarm notification service, and log management service.
[0032] Furthermore, the basic service module includes:
[0033] An identity verification unit, used to provide authentication services and / or PIN code verification services;
[0034] Communication protocol processing service, used for secure channel management service and / or long connection management service.
[0035] In addition, the present invention also proposes a computer device, which includes a memory and a processor; wherein the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the method as described above.
[0036] The advantages of the present invention are:
[0037] (1) The quantum session key negotiation method proposed in the present invention is applied to a quantum security service platform server, and receives a quantum session key negotiation request sent by a user device; if the type of the quantum session key negotiation request is an end-to-end type, the quantum session key and negotiation parameters are returned to the user device, so that the user device allows the negotiation parameters to be passed to the peer device; if the type of the quantum session key negotiation request is a group type root, the quantum session key and the identity identifier KeyID of the quantum session key are returned, so that the user device passes the identity identifier KeyID to other user devices in the group for other user devices to apply for the quantum session key based on the identity identifier KeyID; the present invention judges the specific information returned to the user device according to the type of the quantum session key negotiation request, which is conducive to realizing end-to-end quantum session key negotiation, and finally can realize quantum secure communication.
[0038] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a flowchart of a quantum session key negotiation method proposed in one embodiment of the present invention;
[0040] Figure 2 This is a schematic diagram of an end-to-end quantum session key negotiation interaction in one embodiment of the present invention;
[0041] Figure 3 This is a schematic diagram of group quantum session key negotiation interaction in one embodiment of the present invention;
[0042] Figure 4 is a system architecture diagram of a quantum security service application in one embodiment of the present invention;
[0043] Figure 5 This is a system architecture diagram of a quantum security service SDK in one embodiment of the present invention;
[0044] Figure 6 It is a structural schematic diagram of a computer device proposed in one embodiment of the present invention. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in combination with the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] like Figure 1 As shown, the first embodiment of the present invention proposes a quantum session key negotiation method, which is applied to a quantum security service platform server and includes the following steps:
[0047] S10, receiving a quantum session key negotiation request sent by a user device;
[0048] S20, when the type of the quantum session key negotiation request is a peer-to-peer communication type, sending a quantum session key and a negotiation parameter to the user equipment so that the user equipment transmits the negotiation parameter to the peer equipment so that the peer equipment obtains the quantum session key through the negotiation parameter;
[0049] It should be noted that the negotiation parameters refer to a set of rules or data used to negotiate communication parameters in a communication protocol.
[0050] S30. When the type of the quantum session key agreement request is a group communication type, sending a quantum session key and an identity identifier KeyID of the quantum session key to the user equipment, so that the user equipment transmits the identity identifier KeyID to other user equipments in the group for the other user equipments to apply for the quantum session key based on the identity identifier KeyID.
[0051] As a further preferred technical solution, the negotiation parameter includes a random number sequence encoded by quantum bits, and the random number sequence is generated by randomly inserting decoy data into the quantum session key;
[0052] The peer device obtains the quantum session key through the negotiation parameter, specifically comprising the following steps:
[0053] After receiving the random number sequence, the peer device informs the user device through a classical authentication channel, so that the user device sends the sequence number and preparation basis of the quantum bit of the peer device encoding the decoy data;
[0054] The peer device measures the quantum bit of the serial number by using a measurement basis corresponding to the preparation basis to obtain a measurement result, and sends the measurement result to the user device, so that the user device determines an error rate according to the measurement result and the decoy data. When the error rate is less than or equal to a preset threshold, it is determined that there is no eavesdropper;
[0055] When receiving the no-eavesdropper confirmation information sent by the user device, the opposite-end device removes the quantum bits of the sequence number and measures the remaining quantum bits through the measurement basis to recover the quantum session key.
[0056] Furthermore, when the error rate is greater than a preset threshold, it is determined that there is an eavesdropper, and the step of receiving the quantum session key negotiation request sent by the user equipment is re-executed.
[0057] Among them, the prepared basis includes at least two different types of basis, and each type of basis contains at least two quantum states that can be accurately distinguished from each other, which are called mutually orthogonal basis vectors. However, the quantum states belonging to the two types of basis cannot be completely accurately distinguished from each other, which are called non-orthogonal basis vectors. If the quantum bit is a photon, taking the polarization state of the photon as an example, the vertical orthogonal basis composed of {0°, 90°} polarization and the diagonal basis composed of {45°, -45°} polarization are two types of basis that meet such conditions.
[0058] The above random number sequence is obtained by encoding at least two different types of bases, for example, the basis vectors of {0°} and {-45°} are selected to represent 0, and the basis vectors of {90°} and {45°} are selected to represent 1; similarly, the peer device selects one of the two possible bases to measure the received photons, further improving its communication security.
[0059] In this embodiment, Figure 2 An end-to-end quantum session key negotiation interaction diagram is shown, including a quantum security service platform server 10, a user device 20 (near-end device) and a remote device 30; wherein the remote device 30 sends a quantum security communication request to the near-end device 20, and the request carries the ID information of the remote device; after receiving the request, the near-end device 20 sends a quantum session key negotiation request to the quantum security service platform server 10, and the request is used to apply for an end-to-end quantum session key; after receiving the quantum session key negotiation request, the quantum security service platform server 10 returns the quantum session key and negotiation parameters to the near-end device 20; the near-end device 20 passes the negotiation parameters to the remote device 30; and the remote device 30 obtains the quantum session key through the negotiation parameters.
[0060] This embodiment proposes a group quantum session key negotiation method, including a quantum security service platform server 10, a user device 20 (initiator) and other devices 40 (other parties in the group); the user device 20 sends a quantum session key negotiation request to the quantum security service platform server 10, and the request is used to apply for a group quantum session key; after receiving the quantum session key negotiation request, the quantum security service platform server 10 returns the quantum session key and the key identity document (ID) KeyID to the user device; the user device 20 synchronizes the quantum session key and the identity document ID to the other device 40; the other device 40 sends a quantum session key negotiation request to the quantum security service platform server 10, and the request is used to apply for a quantum session key of KeyID; after receiving the quantum session key negotiation request, the quantum security service platform server 10 returns the quantum session key to the other device 40.
[0061] As a further preferred technical solution, the method further comprises the following steps:
[0062] Receiving a quantum session key negotiation request sent by each user device in the group;
[0063] The quantum session key and the identity identifier KeyID of the quantum session key are sent to each user device in the group, so that each user device in the group synchronizes the quantum session key and the identity identifier KeyID.
[0064] Figure 3A group quantum session key negotiation interaction method is shown, where the user device 20 and the other device 40 respectively send a quantum session key negotiation request to the quantum security service platform server 10, where the request is used to apply for a group quantum session key; after receiving the quantum session key negotiation request, the quantum security service platform server 10 returns the quantum session key and the identity document (ID) of the quantum session key to the user device 20 and the other device 40; the user device 20 and the other device 40 synchronize the quantum session key and the identity document ID with each other.
[0065] It should be noted that in Figure 2 and Figure 3 In the illustrated system embodiment, the user device 20, the remote device 30 and other devices 40 include but are not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle terminals, game consoles, e-book readers, multimedia playback devices, wearable devices and other electronic devices. The client of the application program can be installed in the user device 20, the remote device 30 and other devices 40.
[0066] The quantum security service platform server 10 is used to provide background services for the client of the application in the user device 20, the remote device 30 and other devices 40. For example, the quantum security service platform server 10 can be the background server of the above-mentioned application. The quantum security service platform server 10 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network), and big data and artificial intelligence platforms. Optionally, the quantum security service platform server 10 provides background services for applications in multiple terminals at the same time.
[0067] Optionally, the user device 20, the remote device 30 and other devices 40 can communicate with the quantum security service platform server 10 through a network, and can be directly or indirectly connected through wired or wireless communication, which is not limited in this application.
[0068] As a further preferred technical solution, before the user equipment sends the quantum session key negotiation request, the method further includes at least one of the following steps: initializing the environment, detecting the equipment, registering for quantum security service status monitoring, and logging in for authentication.
[0069] Initializing the environment includes calling the initialization function to create and initialize a secure application space, completing the connection and initialization work with the cryptographic device. Before terminating the application, it also includes calling the clear environment function to terminate the connection with the cryptographic device and destroy the created secure application space to prevent security risks caused by memory residues.
[0070] As a further preferred technical solution, the user device performs data encryption and decryption, as well as message authentication code calculation, through the quantum security service platform server. After the calculation is completed, the user device closes the key handle, logs out, and clears the environment.
[0071] The embodiments of the present application have the following advantages:
[0072] Quantum session key agreement provides two quantum session key agreement modes: end-to-end key agreement and group key agreement. Security applications can call the interface to obtain the quantum session key, and then export and load the quantum session key to other cryptographic modules / devices such as cryptographic cards. It no longer relies on the SDK and can perform key calculations according to application requirements. It can also use KeyID as the key index and directly call the cryptographic calculation service provided by the SDK.
[0073] The platform uses KeyID as the session key index. When the initiator applies for the service for the first time, the KeyID is assigned by the quantum security service platform. Different terminals of the same quantum security service application can obtain the same quantum session key with the same KeyID. When the session ends and the quantum key corresponding to the KeyID is no longer needed, either party (recommended by the initiator) can actively apply to destroy the quantum session key corresponding to the KeyID.
[0074] In addition, if Figure 4 As shown, the second embodiment of the present invention further proposes a quantum security service platform server, including: a quantum enhanced security application and a quantum security service platform application. After receiving a quantum session key negotiation request sent by a user device, the quantum enhanced security application calls the quantum security service application to obtain a quantum session key. When the type of the quantum session key negotiation request is an end-to-end communication type, the quantum session key and negotiation parameters are returned to the user device so that the user device passes the negotiation parameters to the opposite device for the opposite device to obtain the quantum session key through the negotiation parameters, and the negotiation parameters refer to a set of rules or data used to negotiate communication parameters in a communication protocol; when the type of the quantum session key negotiation request is a group communication type, the quantum session key and the identity identifier KeyID of the quantum session key are returned to the user device, so that the user device passes the identity identifier KeyID to other user devices in the group for other user devices to apply for the quantum session key based on the identity identifier KeyID.
[0075] As a further preferred technical solution, the quantum security service platform application includes a quantum security application layer, a quantum security service SDK, and a quantum key resource layer, and the quantum security service SDK is located between the quantum security application layer and the quantum key resource layer.
[0076] Among them, the quantum security service SDK is the quantum security service layer. As a quantum key service layer, it is a key system that connects the upper-layer cryptographic applications with the underlying quantum key resources and is the core platform for realizing quantum enhanced security applications. It includes at least the following three functions:
[0077] (1) Obtaining quantum keys: Obtaining highly secure quantum keys through quantum communication networks as local quantum key sources;
[0078] (2) Manage quantum keys: Implement full life cycle management of quantum keys and establish a business key distribution system for symmetric cryptographic systems with the ability to resist quantum computing;
[0079] (3) Application of quantum keys: Support the integrated application of various cryptographic products, ICT products and systems, and realize quantum-enhanced security service capabilities based on the combination of quantum keys and domestic cryptographic algorithms.
[0080] The quantum security service SDK is used to provide a unified API access interface, hide the details of the technical protocol, and facilitate the integrated development of cryptographic application equipment / systems. The user application client accesses the authentication and authorization, key distribution and other quantum security service functions provided by the service center through the standardized API interface provided by the quantum security service SDK, and provides basic cryptographic services and key management function interfaces; the user application client can access the authentication and authorization, key distribution and other quantum security service functions provided by the service center through the standardized API interface provided by the quantum security service SDK in both application modes, that is, single-point application without quantum network and extended application with access to quantum network, and provides basic cryptographic services and key management function interfaces.
[0081] Preferably, the user device exports the quantum session key and loads it into other cryptographic modules or devices such as cryptographic cards, and no longer relies on the quantum security service SDK. Key operations can be performed subsequently according to application requirements; the SDK can also be called directly using KeyID as the key index.
[0082] As a further preferred technical solution, Figure 5 As shown, the quantum security service SDK includes an application API interface module, a basic service module, an application service module, a medium API interface and a driver module;
[0083] The application API interface module is connected to the application service module, so that the application service module provides services to external applications through the application API interface module;
[0084] The basic service module is output to the application service module so that the basic service module provides basic resource services for the application service module;
[0085] The application service module is connected to the medium API interface and the driver module, so that the application service module loads different driver libraries according to the type and / or version of the secure medium to implement the call of the secure medium.
[0086] It should be noted that the security media includes at least one of the following: server cryptographic machine, PCIe cryptographic card, quantum security U shield, quantum security TF card, quantum security chip card, quantum security SIM card, and quantum security soft key.
[0087] As a further preferred technical solution, the application service module includes:
[0088] A media basic management unit, configured to provide at least one of a media initial installation service, a media filling service, a media update service, and a media PIN code management service;
[0089] A quantum session key negotiation unit, configured to provide at least one of a key cache management service, a key plaintext derivation service, and a key ciphertext derivation service;
[0090] A quantum cryptography service unit, configured to provide at least one of a hard encryption and decryption service, a soft encryption and decryption service, a hard authentication code operation service, a soft authentication code operation service, a quantum random number generation service, and a key details viewing service;
[0091] A media adaptation management unit, used to provide media type adaptation management services and / or driver library adaptation management services;
[0092] Configuration maintenance unit, used to provide version information service and / or password management platform information service;
[0093] The system management unit is used to provide at least one of the following services: media connection status detection service, password management platform service monitoring service, abnormal alarm notification service, and log management service.
[0094] As a further preferred technical solution, the basic service module includes:
[0095] An identity verification unit, used to provide authentication services and / or PIN code verification services;
[0096] Communication protocol processing service, used for secure channel management service and / or long connection management service.
[0097] also, Figure 6 A schematic diagram of the structure of a computer device provided in one embodiment of the present application is shown, including a memory and a processor, the memory stores a computer program, and the processor implements the functions of a computer system of the quantum session key agreement method in any of the above-mentioned embodiments when executing the computer program.
[0098] The embodiments of the present application also provide a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a computer, the computer performs the functions of the computer system of the quantum session key negotiation method in any of the above embodiments.
[0099] The embodiments of the present application also provide a computer program product comprising instructions, which, when executed by a computer, enables the computer to perform the functions of a computer system of the quantum session key negotiation method in any of the above embodiments.
[0100] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0101] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0102] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0103] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0104] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A quantum session key negotiation method, characterized in that: The method comprises: Receiving a quantum session key negotiation request sent by a user device; When the type of the quantum session key negotiation request is a peer-to-peer communication type, sending a quantum session key and a negotiation parameter to the user equipment, so that the user equipment transmits the negotiation parameter to the peer equipment for the peer equipment to obtain the quantum session key through the negotiation parameter; When the type of the quantum session key agreement request is a group communication type, a quantum session key and an identity identifier KeyID of the quantum session key are sent to the user equipment, so that the user equipment transmits the identity identifier KeyID to other user equipments in the group for the other user equipments to apply for the quantum session key based on the identity identifier KeyID.
2. The quantum session key negotiation method according to claim 1, characterized in that: The method further comprises: Receiving a quantum session key negotiation request sent by each user device in the group; The quantum session key and the identity identifier KeyID of the quantum session key are sent to each user device in the group, so that each user device in the group synchronizes the quantum session key and the identity identifier KeyID.
3. The quantum session key negotiation method according to claim 1, characterized in that: Before receiving the quantum session key negotiation request sent by the user equipment, the method further includes: A registration request sent by the user equipment is received to achieve connection with the user equipment.
4. The quantum session key negotiation method according to any one of claims 1 to 3, characterized in that: The negotiation parameter includes a random number sequence encoded by quantum bits, and the random number sequence is generated by randomly inserting decoy data into the quantum session key; The peer device obtains the quantum session key through the negotiation parameter, specifically comprising the following steps: After receiving the random number sequence, the peer device informs the user device through a classical authentication channel, so that the user device sends the sequence number and preparation basis of the quantum bit of the peer device encoding the decoy data; The peer device measures the quantum bit of the serial number by using a measurement basis corresponding to the preparation basis to obtain a measurement result, and sends the measurement result to the user device, so that the user device determines an error rate according to the measurement result and the decoy data. When the error rate is less than or equal to a preset threshold, it is determined that there is no eavesdropper; When receiving the no-eavesdropper confirmation information sent by the user device, the opposite-end device removes the quantum bits of the sequence number and measures the remaining quantum bits through the measurement basis to recover the quantum session key.
5. A quantum security service platform server, characterized in that: include: The quantum enhanced security application and the quantum security service platform application, after receiving a quantum session key negotiation request sent by a user device, call the quantum security service application through the quantum enhanced security application to obtain a quantum session key; when the type of the quantum session key negotiation request is an end-to-end communication type, return the quantum session key and the negotiation parameters to the user device so that the user device transmits the negotiation parameters to the opposite device for the opposite device to obtain the quantum session key through the negotiation parameters; when the type of the quantum session key negotiation request is a group communication type, return the quantum session key and the identity identifier KeyID of the quantum session key to the user device so that the user device transmits the identity identifier KeyID to other user devices in the group for other user devices to apply for the quantum session key based on the identity identifier KeyID.
6. The quantum security service platform server according to claim 5, characterized in that: The quantum security service platform application includes a quantum security application layer, a quantum security service SDK, and a quantum key resource layer. The quantum security service SDK is located between the quantum security application layer and the quantum key resource layer.
7. The quantum security service platform server according to claim 6, characterized in that: The quantum security service SDK includes an application API interface module, a basic service module, an application service module, a medium API interface and a driver module; The application API interface module is connected to the application service module, so that the application service module provides services to external applications through the application API interface module; The basic service module is output to the application service module so that the basic service module provides basic resource services for the application service module; The application service module is connected to the medium API interface and the driver module, so that the application service module loads different driver libraries according to the type and / or version of the secure medium to implement the call of the secure medium.
8. The quantum security service platform server according to claim 7, characterized in that: The application service module includes: A media basic management unit, configured to provide at least one of a media initial installation service, a media filling service, a media update service, and a media PIN code management service; A quantum session key negotiation unit, configured to provide at least one of a key cache management service, a key plaintext derivation service, and a key ciphertext derivation service; A quantum cryptography service unit, configured to provide at least one of a hard encryption and decryption service, a soft encryption and decryption service, a hard authentication code operation service, a soft authentication code operation service, a quantum random number generation service, and a key details viewing service; A media adaptation management unit, used to provide media type adaptation management services and / or driver library adaptation management services; Configuration maintenance unit, used to provide version information service and / or password management platform information service; The system management unit is used to provide at least one of the following services: media connection status detection service, password management platform service monitoring service, abnormal alarm notification service, and log management service.
9. The quantum security service platform server according to claim 7, characterized in that: The basic service module includes: An identity verification unit, used to provide authentication services and / or PIN code verification services; Communication protocol processing service, used for secure channel management service and / or long connection management service.
10. A computer device, characterized in that: The device includes a memory and a processor; wherein the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the method according to any one of claims 1 to 4.
