A method and device for providing multi-type quantum security keys

By introducing multiple types of quantum security key modules into cryptographic devices and using RESTful interfaces to negotiate to generate and manage keys, the problems of complex key negotiation and inconvenient management in the existing technology are solved, and the efficient anti-quantum attack security of the communication system is achieved. performance, simplified key management and enhanced encryption capabilities.

CN118381609BActive Publication Date: 2024-10-08REGULAR QUANTUM (BEIJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410807076.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-10-08
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

In practical applications, existing quantum security key provision solutions have problems such as complex key negotiation processes, inconvenient key management, and difficulty in integrating with existing cryptographic devices, resulting in insufficient security performance of communication systems in the face of quantum computing attacks.

Method used

By introducing multiple types of quantum security key modules into cryptographic devices, using RESTful interfaces to negotiate to generate and manage keys, and providing a variety of keys that support quantum security, simple and efficient management of keys and anti-quantum attack security performance of communication systems are achieved. promote.

Benefits of technology

It simplifies the key agreement process, improves the convenience and security of key management, enables the communication system to more effectively resist quantum computing attacks, and enhances the cryptographic fusion capabilities of symmetric or asymmetric encryption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118381609B_ABST
    Figure CN118381609B_ABST
Patent Text Reader

Abstract

The present application provides a method and device for providing multiple types of quantum security keys, which are applied to a first quantum security key module. The first quantum security key module is used to provide multiple keys that support quantum security for a first cryptographic device. The first quantum security key module maintains a password management table, and the keys in the password management table are obtained through negotiation with a second quantum security key module. The method includes: using a RESTful interface to receive a first key acquisition request from a first cryptographic device; if the digital certificate of the first cryptographic device passes the identity authentication of the password management table, a target type of target quantum key is allocated to the first cryptographic device from the password management table according to a preset strategy; so that the first cryptographic device communicates with the second cryptographic device using the target quantum key. Thus, multiple types of quantum security keys can be provided to cryptographic devices through the quantum security key module, thereby simply and efficiently improving the anti-quantum attack security performance of the communication system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of quantum security technology and, in particular, to a method and device for providing multiple types of quantum security keys. Background Art

[0002] In the current field of cryptography, with the development of quantum computing, traditional cryptographic algorithms face the risk of being cracked by quantum computing attacks. Therefore, researchers have proposed technologies such as post-quantum cryptography (PQC) and quantum key distribution (QKD) to deal with this threat. However, these technologies have some problems in practical applications, such as the complex process of negotiating keys, inconvenient key management, and difficulty in combining with existing cryptographic equipment. Summary of the invention

[0003] In order to solve the above problems, the present application proposes a method, device, and electronic device for providing multiple types of quantum security keys, which can provide multiple types of quantum security keys for existing cryptographic devices, thereby simply and efficiently improving the anti-quantum attack security performance of the communication system.

[0004] In a first aspect, the present application provides a method for providing a multi-type quantum security key, which is applied to a first quantum security key module, the first quantum security key module is used to provide a plurality of quantum security-supporting keys for a first cryptographic device, the first quantum security key module maintains a password management table, the keys in the password management table are obtained by negotiation with a second quantum security key module, and the second quantum security key module is used for a second cryptographic device; the method comprises:

[0005] Receiving a first key acquisition request from a first cryptographic device using a RESTful interface; the first key acquisition request includes a digital certificate of the first cryptographic device and a target type of the requested key;

[0006] If the digital certificate of the first cryptographic device passes the identity authentication of the password management table, a target quantum key of a target type is allocated to the first cryptographic device from the password management table according to a preset policy;

[0007] The key information is returned to the first cryptographic device through a RESTful interface, where the key information includes a target quantum key and its corresponding target quantum key ID, so that the first cryptographic device communicates with the second cryptographic device using the target quantum key.

[0008] Therefore, the present application provides multiple types of quantum security keys for cryptographic devices through quantum security key modules, thereby simply and efficiently improving the anti-quantum attack security performance of the communication system.

[0009] In a second aspect, the present application provides a method for providing a multi-type quantum security key, which is applied to a second quantum security key module, the second quantum security key module is used to provide a plurality of quantum security-supporting keys for a second cryptographic device, the second quantum security key module maintains a password management table, the keys in the password management table are obtained by negotiation with a first quantum security key module, and the first quantum security key module is used for a first cryptographic device; the method comprises:

[0010] A second key acquisition request of a second cryptographic device is received by using a RESTful interface; the second key acquisition request includes a digital certificate of the second cryptographic device and a target quantum key ID; the target quantum key ID is obtained in advance from the first quantum security key module;

[0011] If the digital certificate of the second cryptographic device passes the identity authentication of the password management table, the target quantum key corresponding to the target quantum key ID is allocated to the second cryptographic device from the password management table;

[0012] The target quantum key is returned to the second cryptographic device through the RESTful interface, so that the second cryptographic device communicates with the first cryptographic device using the target quantum key.

[0013] In a third aspect, the present application provides a multi-type quantum security key providing system, the system includes a first cryptographic device, a second cryptographic device, and a first quantum security key module and a second quantum security key module, the first and second quantum security key modules are respectively used to provide a plurality of quantum security-supporting keys for the first and second cryptographic devices, the first and second quantum security key modules maintain a password management table, and the keys in the password management table are obtained through negotiation between the first quantum security key module and the second quantum security key module; the system includes:

[0014] The first cryptographic device sends a first key acquisition request using a RESTful interface provided by the first security key module; the first key acquisition request includes a digital certificate of the first cryptographic device and a target type of the requested key;

[0015] If the digital certificate of the first cryptographic device passes the identity authentication of the password management table, the first quantum security key module allocates a target quantum key of a target type to the first cryptographic device from the password management table according to a preset policy;

[0016] The first quantum security key module returns key information to the first cryptographic device through a RESTful interface provided by the first security key module, where the key information includes a target quantum key and its corresponding target quantum key ID;

[0017] The first cryptographic device sends the target quantum key ID to the second cryptographic device;

[0018] The second cryptographic device sends a second key acquisition request using the RESTful interface provided by the second security key module; the second key acquisition request includes the digital certificate of the second cryptographic device and the target quantum key ID;

[0019] If the digital certificate of the second cryptographic device passes the identity authentication of the password management table, the second security key module allocates a target quantum key corresponding to the target quantum key ID to the second cryptographic device from the password management table;

[0020] The target quantum key is returned to the second cryptographic device through the RESTful interface provided by the second security key module, so that the first cryptographic device and the second cryptographic device communicate using the target quantum key.

[0021] In a fourth aspect, the present application provides a method and device for providing a multi-type quantum security key, which is deployed in a first quantum security key module, the first quantum security key module is used to provide a plurality of quantum security-supporting keys for a first cryptographic device, the first quantum security key module maintains a password management table, the keys in the password management table are obtained by negotiation with a second quantum security key module, and the second quantum security key module is used for a second cryptographic device; the device includes:

[0022] A receiving module, configured to receive a first key acquisition request from a first cryptographic device using a RESTful interface; the first key acquisition request includes a digital certificate of the first cryptographic device and a target type of the requested key;

[0023] an allocation module, for allocating a target quantum key of a target type to the first cryptographic device from the password management table according to a preset policy if the digital certificate of the first cryptographic device passes the identity authentication of the password management table;

[0024] The sending module is used to return key information to the first cryptographic device through a RESTful interface, where the key information includes a target quantum key and its corresponding target quantum key ID, so that the first cryptographic device communicates with the second cryptographic device using the target quantum key.

[0025] In a fifth aspect, the present application provides a method and device for providing a multi-type quantum security key, which is deployed in a second quantum security key module, and the second quantum security key module is used to provide a plurality of quantum security-supporting keys for a second cryptographic device. The second quantum security key module maintains a password management table, and the keys in the password management table are obtained by negotiation with a first quantum security key module, and the first quantum security key module is used for a first cryptographic device; the device includes:

[0026] A receiving module, configured to receive a second key acquisition request from a second cryptographic device using a RESTful interface; the second key acquisition request includes a digital certificate of the second cryptographic device and a target quantum key ID; the target quantum key ID is obtained in advance from the first quantum security key module;

[0027] an allocation module, for allocating a target quantum key corresponding to the target quantum key ID to the second cryptographic device from the password management table if the digital certificate of the second cryptographic device passes the identity authentication of the password management table;

[0028] The sending module is used to return the target quantum key to the second cryptographic device through the RESTful interface, so that the second cryptographic device communicates with the first cryptographic device using the target quantum key.

[0029] In a sixth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed in a computer, the computer is caused to execute the method described in the first aspect or any possible implementation of the first aspect, and the method described in the second aspect or any possible implementation of the second aspect.

[0030] In the seventh aspect, the present application provides an electronic device, comprising: at least one memory for storing programs; and at least one processor for executing the programs stored in the memory; wherein, when the programs stored in the memory are executed, the processor is used to execute the method described in the first aspect or any possible implementation of the first aspect, and execute the method described in the second aspect or any possible implementation of the second aspect.

[0031] It can be understood that the beneficial effects of the second to seventh aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0033] Figure 1 Schematic diagram of a communication system based on quantum secure keys provided in an embodiment of the present application;

[0034] Figure 2 This is a flow chart of a method for providing multiple types of quantum security keys provided in an embodiment of the present application;

[0035] Figure 3This is a flow chart of another method for providing multi-type quantum security keys provided in an embodiment of the present application;

[0036] Figure 4 This is a schematic diagram of a multi-type quantum security key providing device provided in an embodiment of the present application;

[0037] Figure 5 This is a schematic diagram of another multi-type quantum security key providing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0039] In the description of the embodiments of the present application, words such as "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a concrete way.

[0040] In the description of the embodiments of the present application, the term "and / or" is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, B exists alone, and A and B exist at the same time. In addition, unless otherwise specified, the term "multiple" means two or more. For example, multiple systems refers to two or more systems, and multiple screen terminals refers to two or more screen terminals.

[0041] 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 indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprises", "has" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0042] As mentioned above, existing quantum security key provision solutions have problems in practical applications, such as complex key negotiation process, inconvenient key management, and difficulty in combining with existing cryptographic equipment.

[0043] In view of this, this solution uses the first quantum security key module to provide a variety of quantum security-supporting keys for the first cryptographic device, which can simply and efficiently improve the anti-quantum attack security performance of the communication system. In addition, the key management table maintained by the first quantum security key module is used to store and manage the keys pre-negotiated by the first and second quantum security key modules, which can improve the security performance of the key.

[0044] For example, Figure 1 A schematic diagram of a communication system based on quantum secure keys is shown in FIG. Figure 1 As shown, the first cryptographic device and the second cryptographic device are peer-to-peer communication parties with communication capabilities, and they can transmit data to each other based on the existing communication link. The cryptographic devices described in this solution include but are not limited to SSL VPN, IPSecVPN, cryptographic machines, security gateways and other devices.

[0045] The first cryptographic device and the second cryptographic device are also connected to the first quantum security key and the second quantum security key module respectively. The first quantum security key and the second quantum security key module are used to provide the first cryptographic device and the second cryptographic device with a plurality of target quantum keys supporting quantum security respectively. The first cryptographic device and the second cryptographic device can encrypt the transmitted data based on the target quantum key.

[0046] The following will take the first quantum security key as an example to describe in detail the quantum security four-layer structure used in this application. The quantum security four-layer structure is used to achieve the ability to provide multiple quantum keys that support quantum security. It is not difficult to understand that in the second quantum security key module, the same quantum security four-layer structure is also provided to achieve the same ability. Figure 1 As shown, the quantum security four-layer structure used in the first quantum security key specifically includes:

[0047] 1. Basic layer: used to provide basic quantum security capabilities including PQC and QKD for the first cryptographic device to choose under specific application scenarios and security requirements. Among them, the PQC part is mainly composed of algorithm libraries or hardware modules that provide post-quantum cryptographic operations. For example, it contains lattice-based PQC algorithms to achieve key encapsulation and decapsulation, such as Kyber, FrodoKEM, etc. The QKD part is mainly composed of the QKD subsystem and the corresponding API interface. The API interface is used to provide the following protocol layer for calling to control the QKD subsystem. In addition, the QKD subsystems in the first and second quantum security key modules form a complete QKD system to support QKD.

[0048] 2. Protocol layer: used to negotiate with the protocol layer in the second quantum security key module to generate keys. The protocol layer consists of two parts. One part is the post-quantum security protocol implemented to support PQC, which mainly refers to the protocol for negotiating quantum security keys based on the PQC algorithm, such as the post-quantum Noise protocol. The post-quantum Noise protocol PQNoise is a post-quantum variant of the Noise framework. It uses the key encapsulation mechanism (KEMs) instead of the traditional Diffie-Hellman key exchange to negotiate post-quantum keys that support quantum security. Its main function is to obtain a pair of post-quantum keys based on the post-quantum Noise protocol in the first and second quantum security key modules through negotiation, and use it as the target quantum key. In addition to the post-quantum Noise protocol, other post-quantum security protocols can also be used to implement the protocol layer functions in actual deployment. This application does not limit the specific implementation scheme.

[0049] The other part is to call the API interface provided by the QKD subsystem to control the QKD system composed of the QKD subsystems in the first and second quantum security key modules to negotiate and obtain a pair of quantum keys, and use it as the target quantum key.

[0050] In one implementation, the target quantum key can be obtained by fusing the post-quantum key and the quantum key based on PQC and QKD respectively at the protocol layer. The target quantum key can also be obtained by fusing the post-quantum key and the quantum key at the upper layer of the protocol layer, such as the key management layer.

[0051] 3. Key management layer: used to manage and encrypt the target quantum keys generated based on the basic layer and protocol layer. In this layer, on the one hand, the target quantum keys obtained by the protocol layer in the first and second quantum security key modules and the corresponding target quantum key IDs are securely stored and managed. For example, based on the open source project Vault, a key / value pair is created for each quantum key, where the Key is the ID of the quantum key and the Value is the quantum key itself, and a password management table is created based on the key / value pair of each quantum key.

[0052] On this basis, the open source project Vault is used to implement key encryption. In order to ensure the security of quantum keys, a Vault-based authentication and authorization method is used when accessing keys. Take the certificate-based method as an example: using digital certificates for authentication, it is necessary to configure a PKI secret engine in Vault to manage digital certificates. For example, when the application of the first cryptographic device calls the Vault API to access the password management table, it is necessary to provide the digital certificate of the first cryptographic device for Vault authentication. The advantage of this method is that it has high security and can achieve two-way authentication; the disadvantage is that it needs to manage the life cycle of digital certificates to avoid risks such as certificate leakage. In order to further improve security, Vault can also be modified to use certificates based on post-quantum algorithms.

[0053] 4. API interface layer: used to provide an API interface to provide quantum keys that support quantum security for the first cryptographic device. For example, a RESTful API interface can be provided to support access to the first cryptographic device.

[0054] Optionally, in order to ensure the security of the quantum key, the HTTPS protocol can be used in the API interface layer to ensure the security of the key data during transmission between the first cryptographic device and the first quantum security key module. In addition, the authentication and authorization mechanism of the Vault can be implemented in the API interface layer to ensure the security of the first cryptographic device when accessing the password management table.

[0055] In one example, if Figure 1 As shown, when the first cryptographic device needs to obtain a quantum key, it can call the RESTful interface provided by the API interface layer in the first quantum security key module to obtain the target quantum key and its corresponding target quantum key ID. Then, the first cryptographic device can send the target quantum key ID to the second cryptographic device, and the second cryptographic device calls the RESTful interface provided by the API interface layer in the second quantum security key module to obtain the corresponding target quantum key in the password management table. It can be understood that the first quantum security key module and the second quantum security key module jointly maintain the keys stored in the password management table. For example, the first quantum security key module and the second quantum security key module each store a password management table with the same content, and synchronously perform key maintenance operations such as key update and key replacement on the password management table.

[0056] It is understood that in addition to having communication capabilities, the first cryptographic device and the second cryptographic device can also negotiate to provide symmetric or asymmetric encryption passwords according to the needs of data transmission, including but not limited to: session keys, PSK, shared keys calculated based on asymmetric encryption algorithms, etc.

[0057] Optionally, after the first cryptographic device and the second cryptographic device obtain the target quantum key from the API interface layer of the first and second quantum security key modules respectively, they can also each fuse the provided symmetric or asymmetric encryption password with the target quantum key in accordance with an agreed fusion method (such as XOR or key derivation) to obtain a hybrid quantum key, and use the hybrid quantum key to transmit data between them.

[0058] Therefore, by using the first quantum security key and the second quantum security key modules to provide quantum security keys to the first cryptographic device and the second cryptographic device respectively, the anti-quantum attack security performance of the communication system can be simply and efficiently improved.

[0059] In addition, the above communication architecture can also realize the decoupling of the quantum security key generation capability of the first cryptographic device and the second cryptographic device. The first cryptographic device and the second cryptographic device that meet the conditions of this application can be obtained by making minor changes to the existing cryptographic devices, such as developing an application interface for calling the quantum security key module in this application based on the existing cryptographic devices, and developing an identity authentication protocol for the key management layer in the quantum security key module, etc., thereby improving the development efficiency of cryptographic devices that support quantum security.

[0060] Next, based on the above analysis, a multi-type quantum security key providing method provided in an embodiment of the present application is introduced in detail.

[0061] For example, Figure 2 A flow chart of a method for providing multiple types of quantum security keys provided by an embodiment of the present application is shown. Applied to a first quantum security key module, the first quantum security key module is used to provide a plurality of quantum security-supporting keys for a first cryptographic device, the first quantum security key module maintains a password management table, the keys in the password management table are obtained by negotiation with a second quantum security key module, the second quantum security key module is used for a second cryptographic device, and the method mainly includes the following steps:

[0062] Step S201: receiving a first key acquisition request from a first cryptographic device using a RESTful interface; the first key acquisition request includes a digital certificate of the first cryptographic device and a target type of the requested key.

[0063] In this embodiment, the RESTful interface can be Figure 1 The API interface layer of the first quantum security key module shown is provided. The digital certificate includes an electronic credential for the first cryptographic device to verify the identity, and the target type is one of the multiple types of quantum security keys that the first quantum security key module can provide.

[0064] Exemplarily, an API server is deployed for the first quantum security key module, which provides a RESTful-style API interface at the API interface layer for access by the first cryptographic device. RESTful is a software architecture style for network applications that defines the constraints and principles for interactions between clients and servers, and it is usually used with the HTTP protocol. The API interface can use the HTTPS protocol to ensure the security of data during transmission. In order to further improve security, the HTTPS protocol can be upgraded to a quantum security version, and the specific implementation scheme is not limited in this application.

[0065] When the first cryptographic device needs to obtain a quantum key that supports quantum security, it can use an application to call the RESTful interface provided by the API layer in the first quantum security key module to issue a first key acquisition request to the first quantum security key module.

[0066] Step S202: If the digital certificate of the first cryptographic device passes the identity authentication of the password management table, a target quantum key of a target type is allocated to the first cryptographic device from the password management table according to a preset policy.

[0067] In this embodiment, the keys in the password management table include post-quantum keys, out-of-band quantum keys, or quantum keys obtained by fusing these two keys.

[0068] For example, based on Figure 1 The base layers and protocol layers shown are used to generate quantum-safe keys.

[0069] Optionally, the post-quantum key is generated based on the algorithm library of post-quantum cryptography operations provided by the base layer and the post-quantum security protocol of the protocol layer. Taking the PQNoise post-quantum security protocol as an example, the steps to achieve the first negotiation to obtain the post-quantum key are as follows:

[0070] 1. Before the PQNoise protocol starts, the first quantum security key module and the second quantum security key module have generated their own static public key pairs based on the KEM algorithm (such as Kyber) and exchanged static public keys with each other.

[0071] 2. Alice (first quantum security key module) constructs the first message and sends it to Bob (second quantum security key module):

[0072] Alice generates a dynamic key pair (esk_a, pk_a) using a pairing-based KEM (e.g. Kyber) algorithm.

[0073] Alice uses Bob's static public key pk_b to encrypt the random number r1 and generate the ciphertext ciphertext_a;

[0074] Alice constructs the first message, including her static public key pk_a and dynamic public key pk_a, and ciphertext ciphertext_a;

[0075] Alice uses Bob's dynamic public key pk_b to encrypt the random number r1 and generate the ciphertext ciphertext_a_prime;

[0076] Alice sends the first message to Bob, containing ciphertext_a_prime.

[0077] 3. Bob receives and processes the first message:

[0078] Bob receives Alice's first message, which contains ciphertext_a_prime;

[0079] Bob uses Alice's dynamic public key pk_a to decrypt ciphertext_a_prime and obtains the random number r1;

[0080] Bob hashes r1 using Alice's static public key pk_a to generate hash_a.

[0081] 4. Bob constructs a second message and sends it to Alice:

[0082] Bob generates a dynamic key pair (esk_b, pk_b) using a pairing-based KEM (e.g. Kyber) algorithm.

[0083] Bob uses Alice's static public key pk_a to encrypt the random number r2 and generate the ciphertext ciphertext_b;

[0084] Bob constructs the second message, which includes his static public key pk_b and dynamic public key pk_b, as well as ciphertext ciphertext_b;

[0085] Bob uses Alice's dynamic public key pk_a to encrypt the random number r2 and generate the ciphertext ciphertext_b_prime;

[0086] Bob sends a second message to Alice, containing ciphertext_b_prime.

[0087] 5. Alice receives and processes the second message:

[0088] Alice receives Bob's second message, which contains ciphertext_b_prime;

[0089] Alice uses Bob's dynamic public key pk_b to decrypt ciphertext_b_prime and obtains the random number r2;

[0090] Alice uses Bob's static public key pk_b to hash r2 and generate hash_b;

[0091] Alice receives Bob's static public key pk_b and dynamic public key pk_b;

[0092] Alice confirms that Bob's hash value hash_b is the same as the hash_a she generated;

[0093] Alice uses Bob's dynamic public key pk_b to encrypt the random number r1 and generate the ciphertext ciphertext_a_prime;

[0094] Alice sends the ciphertext ciphertext_a_prime to Bob.

[0095] At this point, the first quantum security key module and the second quantum security key module have the same ciphertext ciphertext_a_prime and ciphertext_b_prime, and then generate the same quantum key based on the same ciphertext using a preset strategy.

[0096] It is understandable that this solution may also adopt other implementation schemes different from the PQNoise post-quantum security protocol, and there is no limitation on this.

[0097] Optionally, an out-of-band quantum key is generated based on the QKD subsystem provided by the base layer and the management function of the protocol layer on the QKD subsystem in the first quantum security key module. The out-of-band quantum key is generated by a communication link different from that between the first cryptographic device and the second cryptographic device, and the out-of-band quantum key can be obtained by a second negotiation based on a quantum key distribution system. The quantum key distribution system is composed of a quantum key distribution subsystem included in the first quantum security key module and a quantum key distribution subsystem included in the second quantum security key module, and the specific process is not repeated here.

[0098] Optionally, after obtaining the out-of-band quantum key through the second negotiation, a third negotiation can be conducted based on the post-quantum key algorithm to obtain the post-quantum key, and the two sets of keys, the post-quantum key and the out-of-band quantum key, can be fused based on the first fusion algorithm determined through the fourth negotiation to generate a fused quantum key. In specific implementation, key fusion can be achieved by means of XOR operation or key derivation function. Multiple key fusion algorithms can be supported, such as HKDF, KDF1, KDF2, etc.

[0099] Further, such as Figure 1 The key management layer shown is responsible for managing the keys used in encryption operations. This layer provides a secure and centralized location (password management table) for storing and managing keys while also enforcing access control policies.

[0100] In some embodiments, Figure 1 The key management layer in the four-layer structure acts as a decoupling layer, which separates key management and encryption operations to facilitate key maintenance and management operations such as key retrieval, key update, and key replacement. For example, based on the open source project Vault, a key / value pair is created for each quantum key, where the Key is the ID of the quantum key and the Value is the quantum key itself, and a password management table is created based on the key / value pair of each quantum key.

[0101] In addition, since it provides a centralized location (such as a password management table) to store quantum keys generated by the protocol layer, it makes it easier to enforce access control policies and monitor key usage. For example, the key management layer can configure the open source project Vault to perform encryption management of quantum keys, including setting up the necessary secret engines, such as the PKI secret engine, for managing digital certificates. The visitor's identity authentication and authorization mechanism is implemented based on the above encryption operations.

[0102] Exemplarily, when the application of the first cryptographic device accesses the password management table by calling the RESTful interface, it needs to provide a digital certificate for identity authentication based on the open source project Vault, which ensures that only authorized device applications can access the information in the password management table. For example, the digital certificate of the first cryptographic device can be used to authenticate the open source project Vault to ensure the security of the application's access to the password management table. In order to further enhance the security of the system, Vault can be modified to superimpose the use of post-quantum certificates. These post-quantum certificates are resistant to attacks by quantum computers and can provide additional security.

[0103] Specifically, Vault's use of digital certificates for authentication can involve the following steps: First, generate a key pair. The first digital device generates a public key and private key pair. The public key will be included in the digital certificate, while the private key needs to be kept confidential. Secondly, create a digital certificate. The first digital device requests Vault's PKI secret engine to create a digital certificate for it based on the generated key pair. This certificate usually contains a public key, identity information (such as organization name, common name, etc.), and a digital signature. In addition to creating a digital certificate for the first data device, Vault's PKI secret engine is also used to provide a built-in method to manage the life cycle of digital certificates, including issuance, revocation, and renewal. Next, authenticate the digital certificate: When the first digital device communicates with Vault, it needs to provide its digital certificate. Vault will verify the validity of the digital certificate, including whether the certificate is signed by a trusted CA and whether the certificate is expired.

[0104] Exemplarily, the authentication and authorization mechanism for the first cryptographic device to connect to Valut can be implemented in the API interface layer of the quantum security key module based on the encryption management mechanism configured in the key management layer.

[0105] Thus, the digital identity information can be used to authenticate the first cryptographic device, ensuring that only authorized device applications can access the password management table, thereby providing a secure and efficient way to manage the quantum keys used in the system.

[0106] Based on the above content, if the digital certificate of the first cryptographic device passes the identity authentication of the password management table, the target quantum key is allocated to the first cryptographic device from the password management table according to the preset strategy. For example, the quantum keys in the password management are sorted according to real-time performance, and the quantum key with the highest real-time performance is allocated to the first cryptographic device as the target quantum key.

[0107] For example, in the first quantum security key module, the generation of post-quantum keys and out-of-band quantum keys can be set as parallel tasks. The protocol layer of the first quantum security key module also monitors the status of parallel tasks. If a task fails or times out, the task is restarted or the administrator is notified. The priority and resource allocation of any task can be dynamically adjusted to adapt to different application scenarios and security requirements.

[0108] Step S203: Return key information to the first cryptographic device through a RESTful interface, where the key information includes a target quantum key and its corresponding target quantum key ID, so that the first cryptographic device communicates with the second cryptographic device using the target quantum key.

[0109] In this embodiment, the key information including the target quantum key and its corresponding target quantum key ID is sent to the first cryptographic device through a RESTful interface so that the first cryptographic device and the first cryptographic device can transmit data.

[0110] Exemplarily, after receiving the target quantum key, the first cryptographic device can further fuse the target quantum key with the symmetric or asymmetric encryption password (non-quantum security key) generated in advance based on the fifth negotiation to generate a hybrid quantum key for data encryption and decryption transmission. It can be understood that the hybrid quantum key is also a quantum key that supports quantum security. The second fusion algorithm used for further fusion is determined by the first cryptographic device and the other communication party based on the sixth negotiation, and the second fusion algorithm can be XOR or key derivation.

[0111] Therefore, by using the quantum security key module to provide the first cryptographic device with a variety of keys that support quantum security, the anti-quantum attack security performance of the communication system can be simply and efficiently improved.

[0112] For example, Figure 3 As shown, the embodiment of the present application provides another multi-type quantum security key providing method, which is applied to a second quantum security key module, the second quantum security key module is used to provide a plurality of quantum security-supporting keys for a second cryptographic device, the second quantum security key module maintains a password management table, the keys in the password management table are obtained by negotiation with a first quantum security key module, the first quantum security key module is used for a first cryptographic device, and mainly includes the following steps:

[0113] Step S301, using a RESTful interface to receive a second key acquisition request from a second cryptographic device; the second key acquisition request includes a digital certificate of the second cryptographic device and a target quantum key ID; the target quantum key ID is obtained in advance from the first quantum security key module.

[0114] In this embodiment, the second cryptographic device receives the target quantum key ID sent in advance by the first cryptographic device, and initiates a second key acquisition request to the second quantum security key module using a RESTful interface.

[0115] Step S302: If the digital certificate of the second cryptographic device passes the identity authentication of the password management table, a target quantum key corresponding to the target quantum key ID is allocated to the second cryptographic device from the password management table.

[0116] In this embodiment, if the digital certificate of the second cryptographic device passes the identity authentication of the password management table, the target quantum key corresponding to the target quantum key ID is allocated to the second cryptographic device from the password management table.

[0117] Step S303: Return the target quantum key to the second cryptographic device through the RESTful interface, so that the second cryptographic device communicates with the first cryptographic device using the target quantum key.

[0118] In this embodiment, the second quantum security key module returns the allocated target quantum key to the second cryptographic device through the RESTful interface, so that the first cryptographic device encrypts and decrypts data with the second cryptographic device based on the target quantum key, thereby improving the security performance of the communication system against quantum attacks.

[0119] Exemplarily, an embodiment of the present application further provides a communication system based on quantum security keys, the system includes a first cryptographic device, a second cryptographic device, and a first quantum security key module and a second quantum security key module, the first and second quantum security key modules are respectively used to provide a plurality of quantum security-supporting keys for the first and second cryptographic devices, the first and second quantum security key modules maintain a password management table, and the keys in the password management table are obtained through negotiation between the first quantum security key module and the second quantum security key module; wherein,

[0120] The first cryptographic device sends a first key acquisition request using the RESTful interface provided by the first security key module; the first key acquisition request includes the digital certificate of the first cryptographic device and the target type of the requested key;

[0121] If the digital certificate of the first cryptographic device passes the identity authentication of the password management table, the first quantum security key module allocates a target quantum key of a target type to the first cryptographic device from the password management table according to a preset policy;

[0122] The first quantum security key module returns key information to the first cryptographic device through a RESTful interface provided by the first security key module, where the key information includes a target quantum key and its corresponding target quantum key ID;

[0123] The first cryptographic device sends the target quantum key ID to the second cryptographic device;

[0124] The second cryptographic device sends a second key acquisition request using the RESTful interface provided by the second security key module; the second key acquisition request includes the digital certificate of the second cryptographic device and the target quantum key ID;

[0125] If the digital certificate of the second cryptographic device passes the identity authentication of the password management table, the second security key module allocates a target quantum key corresponding to the target quantum key ID to the second cryptographic device from the password management table;

[0126] The target quantum key is returned to the second cryptographic device through the RESTful interface provided by the second security key module, so that the first cryptographic device and the second cryptographic device communicate using the target quantum key.

[0127] Optionally, the first and second cryptographic devices perform a fifth negotiation to generate a non-quantum security key; the first and second cryptographic devices perform a sixth negotiation to determine a second fusion algorithm; the first and second cryptographic devices respectively fuse the non-quantum security key and the target quantum security key based on the second fusion algorithm to obtain a hybrid quantum key, so that the first cryptographic device and the second cryptographic device communicate using the hybrid quantum key.

[0128] The execution process of each part in the above system is similar to that described in steps S201-S203 and steps S301-S303, and will not be described in detail.

[0129] For example, Figure 4 As shown, an embodiment of the present application provides a multi-type quantum security key providing device. The device is deployed in a first quantum security key module, the first quantum security key module is used to provide a plurality of quantum security-supporting keys for a first cryptographic device, the first quantum security key module maintains a password management table, the keys in the password management table are obtained by negotiation with a second quantum security key module, the second quantum security key module is used for a second cryptographic device, the device 400 includes:

[0130] The receiving module 410 is used to receive a first key acquisition request from the first cryptographic device by using a RESTful interface; the first key acquisition request includes a digital certificate of the first cryptographic device and a target type of the requested key.

[0131] The allocation module 420 is used to allocate the target quantum key of the target type to the first cryptographic device from the password management table according to a preset policy if the digital certificate of the first cryptographic device passes the identity authentication of the password management table.

[0132] The sending module 430 is used to return key information to the first cryptographic device through the RESTful interface, where the key information includes the target quantum key and its corresponding target quantum key ID, so that the first cryptographic device communicates with the second cryptographic device using the target quantum key.

[0133] For example, Figure 5As shown, an embodiment of the present application provides another multi-type quantum security key providing device. The device is deployed in a second quantum security key module, the second quantum security key module is used to provide a plurality of quantum security-supporting keys for a second cryptographic device, the second quantum security key module maintains a password management table, the keys in the password management table are obtained by negotiation with a first quantum security key module, the first quantum security key module is used for a first cryptographic device, and the device 500 includes:

[0134] The receiving module 510 is used to receive a second key acquisition request from the second cryptographic device using a RESTful interface; the second key acquisition request includes a digital certificate and a target quantum key ID of the second cryptographic device; the target quantum key ID is obtained in advance from the first quantum security key module.

[0135] The allocation module 520 is used to allocate the target quantum key corresponding to the target quantum key ID to the second cryptographic device from the password management table if the digital certificate of the second cryptographic device passes the identity authentication of the password management table.

[0136] The sending module 530 is used to return the target quantum key to the second cryptographic device through the RESTful interface, so that the second cryptographic device communicates with the first cryptographic device using the target quantum key.

[0137] Based on the method in the above embodiment, an embodiment of the present application provides an electronic device. The electronic device may include: at least one memory for storing a program; at least one processor for executing the program stored in the memory. Wherein, when the program stored in the memory is executed, the processor is used to execute the method described in the above embodiment. Exemplarily, the electronic device may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, a server, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, and a cellular phone, a personal digital assistant (personal digital assistant, PDA), an augmented reality (augmented reality, AR) device, a virtual reality (virtual reality, VR) device, an artificial intelligence (artificial intelligence, AI) device, a wearable device, a vehicle-mounted device, a smart home device and / or a smart city device. The embodiment of the present application does not impose any special restrictions on the specific type of the electronic device.

[0138] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.

[0139] It is understood that the various numerical numbers involved in the embodiments of the present application are only for the convenience of description and are not used to limit the scope of the embodiments of the present application. It should be understood that in the embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0140] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present application. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present application should be included in the scope of protection of the present application.

Claims

1. A method for providing multi-type quantum secure keys, It is characterized in that Applied to a first quantum security key module, the first quantum security key module includes a base layer, a protocol layer, a key management layer and an API interface layer, the base layer includes a post-quantum cryptography PQC part and a quantum key distribution QKD part, the PQC part includes an algorithm library for post-quantum cryptography operations, and the QKD part consists of a QKD subsystem and a corresponding API interface; the protocol layer is used to negotiate with the protocol layer in the second quantum security key module to generate a quantum key; the key management layer maintains a password management table, and the keys in the password management table include post-quantum keys generated based on the algorithm library for post-quantum cryptography operations provided by the base layer and the post-quantum security protocol of the protocol layer, out-of-band quantum keys generated based on the QKD subsystem provided by the base layer and the management function of the protocol layer on the QKD subsystem, and the above-mentioned two groups of post-quantum keys and out-of-band quantum keys are fused to generate a fused quantum key; The API interface layer provides a RESTful interface to support access to a first cryptographic device, and the second quantum security key module is used for a second cryptographic device; the method includes: Receiving a first key acquisition request from the first cryptographic device using the RESTful interface; the first key acquisition request includes a digital certificate of the first cryptographic device and a target type of the requested key; the target type indicates a post-quantum key, an out-of-band quantum key, or one of a fused quantum key; Based on the encryption management mechanism configured in the key management layer, an identity authentication and authorization mechanism for the first cryptographic device is implemented in the API interface layer, wherein if the digital certificate of the first cryptographic device passes the identity authentication of the password management table, a target quantum key of the target type is allocated to the first cryptographic device from the password management table according to a preset policy; Return key information to the first cryptographic device through the RESTful interface, where the key information includes the target quantum key and its corresponding target quantum key ID, so that the first cryptographic device communicates with the second cryptographic device using the target quantum key.

2. The method according to claim 1, It is characterized in that The post-quantum key is generated in the following way: A first negotiation is performed based on a post-quantum key algorithm to obtain the post-quantum key.

3. The method according to claim 1, It is characterized in that The out-of-band quantum key is generated in the following way: The out-of-band quantum key is obtained by a second negotiation based on a quantum key distribution system; the out-of-band quantum key is generated by a communication link different from the first cryptographic device and the second cryptographic device; the quantum key distribution system is composed of a QKD subsystem included in the first quantum security key module and a QKD subsystem included in the second quantum security key module.

4. The method according to claim 3, It is characterized in that The negotiation to generate the quantum key also includes: Performing a third negotiation based on a post-quantum key algorithm to obtain the post-quantum key; Performing a fourth negotiation to determine the first fusion algorithm; The fusion is performed based on the first fusion algorithm to obtain the quantum key.

5. The method according to claim 1, It is characterized in that The password management table is stored and managed by the open source password storage engine Vault.

6. A method for providing multi-type quantum secure keys, It is characterized in that Applied to a second quantum security key module, the second quantum security key module includes a base layer, a protocol layer, a key management layer and an API interface layer, the base layer includes a post-quantum cryptography PQC part and a quantum key distribution QKD part, the PQC part includes an algorithm library for post-quantum cryptography operations, and the QKD part consists of a QKD subsystem and a corresponding API interface; the protocol layer is used to negotiate with the protocol layer in the first quantum security key module to generate a quantum key; the key management layer maintains a password management table, and the keys in the password management table include post-quantum keys generated based on the algorithm library for post-quantum cryptography operations provided by the base layer and the post-quantum security protocol of the protocol layer, out-of-band quantum keys generated based on the QKD subsystem provided by the base layer and the management function of the protocol layer on the QKD subsystem, and the above-mentioned two groups of post-quantum keys and out-of-band quantum keys are fused to generate a fused quantum key; The API interface layer provides a RESTful interface to support access to a second cryptographic device, and the first quantum security key module is used for the first cryptographic device; the method includes: Receiving a second key acquisition request from the second cryptographic device using the RESTful interface; the second key acquisition request includes a digital certificate and a target quantum key ID of the second cryptographic device; the target quantum key ID is obtained in advance from the first quantum security key module; Based on the encryption management mechanism configured by the key management layer, an identity authentication and authorization mechanism for a second cryptographic device is implemented in the API interface layer, wherein if the digital certificate of the second cryptographic device passes the identity authentication of the password management table, a target quantum key corresponding to the target quantum key ID is allocated to the second cryptographic device from the password management table; The target quantum key is returned to the second cryptographic device through the RESTful interface, so that the second cryptographic device communicates with the first cryptographic device using the target quantum key.

7. A communication system based on quantum secure keys, It is characterized in that The system includes a first cryptographic device, a second cryptographic device, a first quantum security key module, and a second quantum security key module. The first and second quantum security key modules respectively include a base layer, a protocol layer, a key management layer, and an API interface layer. The base layer includes a post-quantum cryptography PQC part and a quantum key distribution QKD part. The PQC part includes an algorithm library for post-quantum cryptography operations, and the QKD part is composed of a QKD subsystem and a corresponding API interface. The protocol layer of the first quantum security key module is used to negotiate with the protocol layer in the second quantum security key module to generate a quantum key. The protocol layer of the second quantum security key module is used to negotiate with the protocol layer in the second quantum security key module to generate a quantum key. The layer is used to negotiate with the protocol layer in the first quantum security key module to generate a quantum key; the key management layer maintains a password management table, and the keys in the password management table include a post-quantum key generated based on the algorithm library of post-quantum cryptography operations provided by the base layer and the post-quantum security protocol of the protocol layer, an out-of-band quantum key generated based on the QKD subsystem provided by the base layer and the management function of the QKD subsystem by the protocol layer, and a fused quantum key generated by fusing the above-mentioned post-quantum key and the out-of-band quantum key; the API interface layer provides a RESTful interface to support access to the first cryptographic device or the second cryptographic device; the system is used to: The first cryptographic device sends a first key acquisition request using a RESTful interface provided by the first quantum secure key module; the first key acquisition request includes a digital certificate of the first cryptographic device and a target type of the requested key; the target type indicates a post-quantum key, an out-of-band quantum key, or one of a fused quantum key; The first quantum security key module implements the identity authentication and authorization mechanism of the first cryptographic device in the API interface layer based on the encryption management mechanism configured by the key management layer, wherein if the digital certificate of the first cryptographic device passes the identity authentication of the password management table, the first quantum security key module allocates the target quantum key of the target type to the first cryptographic device from the password management table according to a preset policy; The first quantum secure key module returns key information to the first cryptographic device through a RESTful interface provided by the first quantum secure key module, wherein the key information includes the target quantum key and its corresponding target quantum key ID; The first cryptographic device sends the target quantum key ID to the second cryptographic device; The second cryptographic device sends a second key acquisition request using a RESTful interface provided by the second quantum secure key module; the second key acquisition request includes a digital certificate of the second cryptographic device and the target quantum key ID; The second quantum security key module implements the identity authentication and authorization mechanism of the second cryptographic device in the API interface layer based on the encryption management mechanism configured by the key management layer, wherein if the digital certificate of the second cryptographic device passes the identity authentication of the password management table, the second quantum security key module allocates the target quantum key corresponding to the target quantum key ID to the second cryptographic device from the password management table; The target quantum key is returned to the second cryptographic device through a RESTful interface provided by the second quantum security key module, so that the first cryptographic device and the second cryptographic device communicate using the target quantum key.

8. The system according to claim 7, It is characterized in that The system is also used to: The first and second cryptographic devices perform a fifth negotiation to generate a non-quantum secure key; The first and second cryptographic devices perform a sixth negotiation to determine a second fusion algorithm; The first and second cryptographic devices respectively fuse the non-quantum security key and the target quantum key based on the second fusion algorithm to obtain a hybrid quantum key, so that the first cryptographic device and the second cryptographic device communicate using the hybrid quantum key.

9. A multi-type quantum security key providing device, It is characterized in that Deployed in a first quantum security key module, the first quantum security key module includes a base layer, a protocol layer, a key management layer and an API interface layer, the base layer includes a post-quantum cryptography PQC part and a quantum key distribution QKD part, the PQC part includes an algorithm library for post-quantum cryptography operations, and the QKD part consists of a QKD subsystem and a corresponding API interface; the protocol layer is used to negotiate with the protocol layer in the second quantum security key module to generate a quantum key; the key management layer maintains a password management table, and the keys in the password management table include post-quantum keys generated based on the algorithm library for post-quantum cryptography operations provided by the base layer and the post-quantum security protocol of the protocol layer, out-of-band quantum keys generated based on the QKD subsystem provided by the base layer and the management function of the protocol layer on the QKD subsystem, and the above-mentioned two groups of post-quantum keys and out-of-band quantum keys are merged to generate a fused quantum key; The API interface layer provides a RESTful interface to support access to a first cryptographic device, and the second quantum security key module is used for a second cryptographic device; the apparatus comprises: A receiving module, configured to receive a first key acquisition request from the first cryptographic device using the RESTful interface; the first key acquisition request includes a digital certificate of the first cryptographic device and a target type of the requested key; the target type indicates a post-quantum key, an out-of-band quantum key, or one of a fused quantum key; An allocation module, based on the encryption management mechanism configured by the key management layer, implements the identity authentication and authorization mechanism of the first cryptographic device in the API interface layer, wherein if the digital certificate of the first cryptographic device passes the identity authentication of the password management table, the allocation module is used to allocate the target quantum key of the target type to the first cryptographic device from the password management table according to a preset policy; A sending module is used to return key information to the first cryptographic device through the RESTful interface, where the key information includes the target quantum key and its corresponding target quantum key ID, so that the first cryptographic device communicates with the second cryptographic device using the target quantum key.

10. A multi-type quantum security key providing device, It is characterized in that Deployed in the second quantum security key module, the second quantum security key module includes a base layer, a protocol layer, a key management layer and an API interface layer, the base layer includes a post-quantum cryptography PQC part and a quantum key distribution QKD part, the PQC part includes an algorithm library for post-quantum cryptography operations, and the QKD part consists of a QKD subsystem and a corresponding API interface; the protocol layer is used to negotiate with the protocol layer in the first quantum security key module to generate a quantum key; the key management layer maintains a password management table, and the keys in the password management table include post-quantum keys generated based on the algorithm library for post-quantum cryptography operations provided by the base layer and the post-quantum security protocol of the protocol layer, out-of-band quantum keys generated based on the QKD subsystem provided by the base layer and the management function of the protocol layer on the QKD subsystem, and the above-mentioned two groups of post-quantum keys and out-of-band quantum keys are merged to generate a fused quantum key; The API interface layer provides a RESTful interface to support access to a second cryptographic device, and the first quantum security key module is used for the first cryptographic device; the apparatus comprises: A receiving module, configured to receive a second key acquisition request from the second cryptographic device using the RESTful interface; the second key acquisition request includes a digital certificate and a target quantum key ID of the second cryptographic device; the target quantum key ID is obtained in advance from the first quantum security key module; An allocation module, based on the encryption management mechanism configured by the key management layer, implements the identity authentication and authorization mechanism of the second cryptographic device in the API interface layer, wherein if the digital certificate of the second cryptographic device passes the identity authentication of the password management table, the allocation module is used to allocate the target quantum key corresponding to the target quantum key ID to the second cryptographic device from the password management table; A sending module is used to return the target quantum key to the second cryptographic device through the RESTful interface, so that the second cryptographic device communicates with the first cryptographic device using the target quantum key.