Remote key recharging method and system based on quantum key distribution

By using session keys and signature public keys for encryption and decryption in the quantum key recharging system, remote recharging of quantum keys is achieved, solving the problem of inconvenient offline key recharging and improving key security. and convenience, reducing costs.

CN118802145APending Publication Date: 2024-10-18CHINA TELECOM QUANTUM TECH CO LTD

Patent Information

Application Number
CN202411122779.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The existing quantum key recharging method relies on the offline computer room environment, which makes key recharging inconvenient, increases the cost and difficulty of use, and cannot achieve online recharging.

Method used

By applying for a session key from the quantum cryptography management service system and using the signed public key to encrypt and decrypt the key file, end-to-end message encryption is implemented for remote key renewal, ensuring the full life cycle encrypted transmission and storage of the key.

Benefits of technology

It realizes online key filling, enhances the security of keys, prevents man-in-the-middle attacks and replay attacks, reduces economic costs, and requires less changes to existing logic, making it easy to develop and expand.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802145A_ABST
    Figure CN118802145A_ABST
Patent Text Reader

Abstract

The invention discloses a remote key recharging method and system based on quantum key distribution, and the method comprises the steps: applying for a session key from a quantum cryptography management service system, and encrypting a signature public key A by using the session key, the signature public key being generated according to the hardware information of a security chip; sending the encrypted signature public key to a quantum key charging system, so that the quantum key charging system applies for the session key from the quantum password management service system, and decrypting by using the session key to obtain the signature public key; receiving a ciphertext of a key file encrypted by the session key and the signature public key and sent by the quantum key charging system, wherein the key file carries a charging key Ks; decrypting the ciphertext of the key file by using the session key to obtain the key file and writing the key file into a security chip; according to the invention, remote secure key charging can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of quantum encryption communication technology, and in particular to a key remote recharging method and system based on quantum key distribution. Background Art

[0002] The quantum key system has been widely used in various fields because of its high security. In the existing application process, the quantum key needs to be charged into the secure key storage device through the key charging machine in the charging room offline. However, the quantum key charging is now overly dependent on the offline computer room security environment. The key in the secure key storage device cannot be recharged through secure means after use. The secure key storage device of the terminal needs to be replaced, which is inconvenient when using the quantum key. This invisibly increases the difficulty and cost of using quantum key encryption. A quantum key management method based on a secure chip carrier is proposed in the patent application document with publication number CN113536362A. This scheme is the first charging of the PKI system. In essence, it uses USB for charging instead of online (Internet) charging. Summary of the invention

[0004] The technical problem to be solved by the present invention is how to achieve secure remote recharging of keys.

[0005] The present invention solves the above technical problems by the following technical means:

[0006] In a first aspect, the present invention proposes a remote key recharging method based on quantum key distribution, which is applied to a device terminal. The method comprises:

[0007] Apply for a session key from the quantum cryptography management service system, and use the session key to encrypt a signature public key A, where the signature public key is generated based on the hardware information of the security chip;

[0008] Sending the encrypted signature public key to the quantum key injection system, so that the quantum key injection system applies for the session key from the quantum cryptography management service system, and uses the session key to decrypt and obtain the signature public key;

[0009] Receiving a ciphertext of a key file encrypted by the session key and the signature public key and sent by the quantum key injection system, wherein the key file carries the injection key Ks;

[0010] The ciphertext of the key file is decrypted using the session key to obtain the key file and write it into the security chip.

[0011] Furthermore, the key file includes an encrypted key digital envelope, a filling key Ks encrypted with a symmetric key K1, and a symmetric key K1 encrypted with an encrypted public key;

[0012] Among them, the encryption key digital envelope is obtained by encrypting and protecting the encryption public and private key pair using the signature public key, and the encryption public and private key pair and the symmetric key K1 are generated by the quantum key injection system.

[0013] Furthermore, before applying for a session key from the quantum cryptographic management service system, the method further includes:

[0014] Submit authentication data to the quantum authentication system and obtain authentication credentials;

[0015] Accordingly, a session key is applied for from the quantum cryptographic management service system based on the identity authentication credentials.

[0016] Furthermore, before sending the encrypted signature public key to the quantum key injection system, the method further includes:

[0017] Obtaining key information in the security chip;

[0018] The key information in the security chip is compared with the quantum key injection system to determine whether remote key injection is required.

[0019] Further, the step of applying for a session key from the quantum cryptography management service system includes:

[0020] Sending session key application information to the quantum cryptography management service system;

[0021] Receiving a session key ciphertext returned by the quantum cryptography management service system, where the session key ciphertext is obtained by the quantum cryptography management service system using a symmetric session key encrypted by a quantum key;

[0022] The session key ciphertext is decrypted using the original quantum key in the security chip to obtain the session key.

[0023] In a second aspect, the present invention proposes a remote key recharging method based on quantum key distribution, which is applied to a quantum key charging system. The method comprises:

[0024] Receiving a signature public key ciphertext sent by a device terminal, wherein the signature public key ciphertext is obtained by encrypting a signature public key generated according to hardware information of a security chip by the device terminal using a session key;

[0025] Apply for the session key from the quantum cryptography management service system, and use the session key to decrypt the signature public key ciphertext to obtain the signature public key;

[0026] A quantum random number generator is called to generate a set of injection keys Ks, and the key file containing the injection key Ks is encrypted using the session key and the signature public key, and the key of the key file is sent to the device terminal to be decrypted by the device terminal to obtain the key file and write it into the security chip.

[0027] Further, the calling of the quantum random number generator to generate a set of injection keys Ks, and the use of the session key and the signature public key to encrypt the key file containing the injection key Ks, includes:

[0028] Encrypt the charging key Ks using the symmetric key K1 to obtain the charging key ciphertext;

[0029] Use the encryption public key to encrypt the symmetric key K1 to obtain the symmetric key ciphertext;

[0030] Use the signature public key to encrypt and protect the encrypted public and private key pair to generate a digital envelope;

[0031] Generate the key file based on the digital envelope, the filling key ciphertext and the symmetric key ciphertext;

[0032] The key file is encrypted using the session key to generate a ciphertext of the key file.

[0033] Furthermore, before using the symmetric key K1 to encrypt the charging key Ks to obtain the charging key ciphertext, the method further includes:

[0034] According to the middleware terminal application information in the device terminal, an encryption public-private key pair and a symmetric key K1 are generated.

[0035] Furthermore, before receiving the signed public key ciphertext sent by the receiving device terminal, the method further includes:

[0036] Receiving key information of the security chip sent by the device terminal;

[0037] Based on the key information in the security chip, it is determined whether the security chip needs to be remotely charged with a key.

[0038] Furthermore, before applying for the session key from the quantum cryptographic management service system, the method further includes:

[0039] Request identity verification from the quantum identity authentication system, and after the identity verification passes, apply for the session key from the quantum cryptography management service system.

[0040] In a third aspect, the present invention proposes a device terminal, which is connected to a security chip and runs a middleware terminal application for executing the remote key renewal method based on quantum key distribution as described above.

[0041] In a fourth aspect, the present invention provides a quantum key injection device, the device comprising:

[0042] The signature public key ciphertext receiving module is used to receive the signature public key ciphertext sent by the device terminal, wherein the signature public key ciphertext is obtained by encrypting the signature public key generated according to the hardware information of the security chip by the device terminal using the session key;

[0043] A session key application module, used to apply for the session key from the quantum cryptography management service system, and use the session key to decrypt the signature public key ciphertext to obtain the signature public key;

[0044] The key file generation module is used to call the quantum random number generator to generate a set of injection keys Ks, and use the session key and the signature public key to encrypt the key file containing the injection key Ks, and obtain the ciphertext of the key file and send it to the device terminal so that the key file is decrypted by the device terminal and written into the security chip.

[0045] In a fifth aspect, the present invention proposes a remote key recharging system based on quantum key distribution, the system comprising a quantum key charging system, a quantum key management service system and a device terminal, the device terminal is connected to a security chip, the quantum key management service system is connected to the quantum key charging system and the device terminal respectively, and the device terminal is connected to the quantum key charging system wherein:

[0046] The device terminal applies for a session key from the quantum cryptography management service system, and uses the session key to encrypt a signature public key A, where the signature public key is generated according to the hardware information of the security chip;

[0047] The encrypted signature public key is sent to the quantum key filling system, and the quantum key filling system applies for the session key from the quantum cryptography management service system, and uses the session key to decrypt the signature public key ciphertext to obtain the signature public key;

[0048] The quantum key injection system calls a quantum random number generator to generate a set of injection keys Ks, and uses the session key and the signature public key to encrypt the key file containing the injection key Ks, obtains the ciphertext of the key file and sends it to the device terminal;

[0049] The device terminal decrypts the ciphertext of the key file using the session key, obtains the key file and writes it into the security chip.

[0050] Furthermore, the system also includes a quantum identity authentication system, which is connected to the terminal device, the quantum key injection system and the quantum cryptography management service system, and the identity authentication system is used to receive an identity authentication request sent by the terminal device, or receive an identity verification request sent by the quantum key injection system.

[0051] The advantages of the present invention are:

[0052] (1) The present invention realizes online (Internet) key charging. During the entire process of remote key charging, the entire life cycle of the key is transmitted in key ciphertext, including the key network transmission process, the key distribution process to the terminal device process and the key charging process to the security chip, which are all encrypted and stored. An end-to-end message encryption method is used to protect the distribution of the charging key, and a one-time symmetric encryption method is used to achieve symmetric encryption-based recharging, thereby protecting the security of remotely charged quantum keys.

[0053] (2) The use of quantum identity authentication and quantum key encryption can effectively prevent man-in-the-middle attacks and replay attacks, while ensuring user convenience and strong network security.

[0054] (3) The present invention makes fewer changes to access applications, is less invasive to existing charging logic, has better scalability, and has no complex logic, making development easy to implement.

[0055] 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

[0056] Figure 1 1 is a flow chart of a key remote recharging method based on quantum key distribution proposed in the first embodiment of the present invention;

[0057] Figure 2 1 is a flow chart of a method for remote key recharging based on quantum key distribution proposed in the second embodiment of the present invention;

[0058] Figure 3 is a schematic structural diagram of a quantum key injection device proposed in the fourth embodiment of the present invention;

[0059] Figure 4 It is a structural diagram of a key remote recharging system based on quantum key distribution proposed in the fifth embodiment of the present invention. DETAILED DESCRIPTION

[0060] 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 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.

[0061] Example 1

[0062] like Figure 1 As shown, the first embodiment of the present invention discloses a remote key recharging method based on quantum key distribution, which is applied to a device terminal. The method includes the following steps:

[0063] S101, applying for a session key from the quantum cryptography management service system, and using the session key to encrypt a signature public key A, where the signature public key is generated according to the hardware information of the security chip;

[0064] In this embodiment, the device terminal applies to the quantum cryptography management service system for a session key, which is used to protect the secure charging process of the recharge key.

[0065] S102, sending the encrypted signature public key to the quantum key injection system, so that the quantum key injection system applies for the session key from the quantum cryptography management service system, and uses the session key to decrypt and obtain the signature public key;

[0066] S103, receiving a ciphertext of a key file encrypted by the session key and the signature public key and sent by the quantum key injection system, wherein the key file carries the injection key Ks;

[0067] S104: Decrypt the ciphertext of the key file using the session key to obtain the key file and write it into the security chip.

[0068] In this embodiment, the device terminal will send the signed public key encrypted with the session key to the quantum key charging system. The quantum key charging system will also apply for the session key and decrypt it to obtain the signed public key. The session key and the signed public key are used to protect the remote issuance process of the charging key. During the entire remote key charging process, the entire life cycle of the key is transmitted in key ciphertext, including the key network transmission process, the key issuance process to the terminal device process, and the key injection process to the security chip, which are all encrypted and stored. An end-to-end message encryption method is used to protect the issuance of the charging key, and a one-time symmetric encryption method is used to protect the security of the remotely charged quantum key.

[0069] In one embodiment, the key file includes an encrypted key digital envelope, a prime key Ks encrypted with a symmetric key K1, and a symmetric key K1 encrypted with an encrypted public key;

[0070] Among them, the encryption key digital envelope is obtained by encrypting and protecting the encryption public and private key pair using the signature public key, and the encryption public and private key pair and the symmetric key K1 are generated by the quantum key injection system.

[0071] In one embodiment, in step S101, before applying for a session key from the quantum cryptography management service system, the method further includes:

[0072] Submit authentication data to the quantum authentication system and obtain authentication credentials;

[0073] Accordingly, a session key is applied for from the quantum cryptographic management service system based on the identity authentication credentials.

[0074] It should be noted that, in this embodiment, when the device terminal performs identity authentication with the quantum identity authentication system, it first performs key negotiation with the quantum cryptography management service system to obtain the quantum key, and then performs quantum identity authentication and quantum key encryption, which can effectively prevent man-in-the-middle attacks and replay attacks, and has strong network security while ensuring user convenience.

[0075] In one embodiment, before the step S102: sending the encrypted signature public key to the quantum key injection system, the method further includes:

[0076] Obtaining key information in the security chip;

[0077] The key information in the security chip is compared with the quantum key injection system to determine whether remote key injection is required.

[0078] It should be noted that this embodiment compares the remaining key amount. Generally, when the remaining key amount is less than 10%, it is determined that the recharge threshold is reached, that is, remote key charging is performed. It should be understood that the judgment of the remaining key amount is whether there is a problem. For different business operations, the value of the remaining key amount set for judging whether to perform remote key charging is also different.

[0079] In one embodiment, in step S101, applying for a session key from a quantum cryptographic management service system includes the following steps:

[0080] Sending session key application information to the quantum cryptography management service system;

[0081] Receiving a session key ciphertext returned by the quantum cryptography management service system, where the session key ciphertext is obtained by the quantum cryptography management service system using a symmetric session key encrypted by a quantum key;

[0082] The session key ciphertext is decrypted using the original quantum key in the security chip to obtain the session key.

[0083] By adopting the remote key recharge method based on quantum key distribution proposed in this embodiment, the user's local security key storage device does not need to be replaced when the key is about to be used up, nor does it need to be recharged in the computer room. Remote security key recharge can be performed, reducing economic costs.

[0084] Example 2

[0085] like Figure 2 As shown, the second embodiment of the present invention discloses a remote key charging method based on quantum key distribution, which is applied to a quantum key charging system. The method includes the following steps:

[0086] S201, receiving a signature public key ciphertext sent by a device terminal, where the signature public key ciphertext is obtained by encrypting a signature public key generated according to hardware information of a security chip by the device terminal using a session key;

[0087] S202, applying for the session key from the quantum cryptography management service system, and using the session key to decrypt the signature public key ciphertext to obtain the signature public key;

[0088] S203, calling a quantum random number generator to generate a set of injection keys Ks, and using the session key and the signature public key to encrypt a key file containing the injection key Ks, and sending the key of the key file to the device terminal so that the key file is decrypted by the device terminal to obtain the key file and write it into the security chip.

[0089] In this embodiment, after receiving the signature public key encrypted with the session key, the quantum key injection system also applies for the session key and decrypts it to obtain the signature public key, and uses the session key and the signature public key to protect the remote issuance process of the injection key; during the entire key remote injection process, the entire life cycle of the key is transmitted in key ciphertext, including the key network transmission process, the key issuance process to the terminal device process and the key injection process to the security chip, which are all encrypted and stored. An end-to-end message encryption method is used to protect the issuance of the injection key, and a one-time one-key symmetric encryption method is used to protect the security of the remotely injected quantum key.

[0090] In one embodiment, in step S203, calling a quantum random number generator to generate a set of injection keys Ks, and using the session key and the signature public key to encrypt a key file containing the injection key Ks includes the following steps:

[0091] Encrypt the charging key Ks using the symmetric key K1 to obtain the charging key ciphertext;

[0092] Use the encryption public key to encrypt the symmetric key K1 to obtain the symmetric key ciphertext;

[0093] Use the signature public key to encrypt and protect the encrypted public and private key pair to generate a digital envelope;

[0094] Generate the key file based on the digital envelope, the filling key ciphertext and the symmetric key ciphertext;

[0095] The key file is encrypted using the session key to generate a ciphertext of the key file.

[0096] This embodiment uses random quantum keys to protect the remote recharging and issuing of the charging key file.

[0097] In one embodiment, before encrypting the charging key Ks using the symmetric key K1 to obtain the charging key ciphertext, the method further includes:

[0098] According to the middleware terminal application information in the device terminal, an encryption public-private key pair and a symmetric key K1 are generated.

[0099] It should be noted that the public-private key pair B is generated by the quantum key injection system based on the secure medium information (SIM) and time. B's public key encrypts the symmetric key K1. K1 is a symmetric key generated based on the quantum random entropy source. There is no special generation matter, it is only used for encryption. The generation process of the public-private key pair and the symmetric key is:

[0100] S1', the middleware terminal application submits authentication data to the identity authentication system to obtain the identity authentication credentials.

[0101] S2', the middleware terminal application obtains the key information in the secure key storage device, and compares it with the quantum key injection system to determine whether remote key injection is required.

[0102] S3', the middleware terminal application calls the security chip in the security key storage device to generate a signature public and private key pair A according to the hardware information.

[0103] S4', the middleware terminal application applies to the quantum cryptography management service system for a session key, which is used to protect the security charging process of the recharging key.

[0104] S5', the quantum cryptography management service system generates the corresponding symmetric session key according to the application information submitted by the middleware terminal application, and encrypts and sends it to the middleware terminal application.

[0105] S6', the middleware terminal application uses the injection key in the secure key storage device to decrypt the issued session key, which is used to encrypt the signature public key A.

[0106] S7', the middleware terminal application submits the encrypted signature public key A to the quantum key injection system.

[0107] S8', after verifying the requesting identity, the quantum key charging system applies for the session key from the quantum cryptography management service system.

[0108] S9', the quantum key injection system uses the applied session key to decrypt the encrypted signature public key A submitted by the middleware terminal application.

[0109] S10', the quantum key injection system generates an encrypted public-private key pair B according to the middleware terminal application information.

[0110] S11', the quantum key injection system generates the corresponding encryption symmetric key K1 according to the middleware terminal application information

[0111] S12', the quantum key injection system calls the quantum random number generator to generate a set of injection keys Ks according to the request of the middleware terminal application.

[0112] S13', the quantum key filling system uses the encrypted symmetric key K1 to encrypt the filling key Ks.

[0113] S14', the quantum key injection system uses the encryption key B public key to encrypt the symmetric key K1.

[0114] S15', the quantum key filling system uses the signature key A public key to encrypt and protect the encrypted public and private key pair B to generate a digital envelope.

[0115] S16', the quantum key filling system combines the encrypted key digital envelope, the encrypted filling key Ks and the encrypted symmetric key K1 into a key file, uses the session key to encrypt the key file, and sends it to the middleware terminal application.

[0116] S17', after the middleware terminal application obtains the encrypted key file, it calls the session key for decryption, and after decryption, combines the encrypted key digital envelope, the encrypted filling key Ks and the encrypted symmetric key K1 into a key file and writes it into the security chip in the security key storage device.

[0117] In one embodiment, before the step S201: receiving the signature public key ciphertext sent by the device terminal, the method further includes:

[0118] Receiving key information of the security chip sent by the device terminal;

[0119] Based on the key information in the security chip, it is determined whether the security chip needs to be remotely charged with a key.

[0120] In one embodiment, before the step S202: applying for the session key from the quantum cryptography management service system, the method further includes:

[0121] Request identity verification from the quantum identity authentication system, and after the identity verification passes, apply for the session key from the quantum cryptography management service system.

[0122] Specifically, the identity verification process includes: the terminal initiates an authentication application to the server and sends the byte identity; the server generates a random number B; the terminal generates a random number A, concatenates AB, calculates macAB using the authentication injection key, and sends A, B and macAB to the server; after receiving it, the server also calculates macAB to verify whether it is the same as the one sent by the terminal, and also calculates macBA and sends it to the terminal; after receiving it, the terminal also calculates macBA to verify whether it is the same as the one sent by the server. This achieves two-way authentication.

[0123] Example 3

[0124] In addition, the third embodiment of the present invention discloses a device terminal, which is connected to a security chip and runs a middleware terminal application for executing the remote key renewal method based on quantum key distribution as described in the above embodiment 1.

[0125] It should be noted that other embodiments of the device terminal of the present invention or implementation methods thereof may refer to the above-mentioned method embodiments, which will not be repeated here.

[0126] Example 4

[0127] like Figure 3 As shown, the fourth embodiment of the present invention discloses a quantum key injection device, the device comprising:

[0128] The signature public key ciphertext receiving module 10 is used to receive the signature public key ciphertext sent by the device terminal, wherein the signature public key ciphertext is obtained by encrypting the signature public key generated according to the hardware information of the security chip by the device terminal using the session key;

[0129] The session key application module 20 is used to apply for the session key from the quantum cryptography management service system, and use the session key to decrypt the signature public key ciphertext to obtain the signature public key;

[0130] The key file generation module 30 is used to call the quantum random number generator to generate a set of injection keys Ks, and use the session key and the signature public key to encrypt the key file containing the injection key Ks, and obtain the ciphertext of the key file and send it to the device terminal so that the key file is decrypted by the device terminal to obtain the key file and write it into the security chip.

[0131] In this embodiment, after receiving the signature public key encrypted with the session key, the quantum key injection system also applies for the session key and decrypts it to obtain the signature public key, and uses the session key and the signature public key to protect the remote issuance process of the injection key; during the entire key remote injection process, the entire life cycle of the key is transmitted in key ciphertext, including the key network transmission process, the key issuance process to the terminal device process and the key injection process to the security chip, which are all encrypted and stored. An end-to-end message encryption method is used to protect the issuance of the injection key, and a one-time one-key symmetric encryption method is used to protect the security of the remotely injected quantum key.

[0132] In one embodiment, the key file generation module 30 specifically includes:

[0133] A first encryption unit, used to encrypt the charging key Ks using the symmetric key K1 to obtain a charging key ciphertext;

[0134] A second encryption unit, used to encrypt the symmetric key K1 using the encryption public key to obtain a symmetric key ciphertext;

[0135] A third encryption unit, used to encrypt and protect the encrypted public and private key pair using the signature public key to generate a digital envelope;

[0136] A key file generating unit, configured to generate the key file based on the digital envelope, the filling key ciphertext and the symmetric key ciphertext;

[0137] The key file encryption unit is used to encrypt the key file using the session key to generate a ciphertext of the key file.

[0138] In one embodiment, the quantum key injection device further includes:

[0139] The key generation module is used to generate an encrypted public-private key pair and a symmetric key K1 according to the middleware terminal application information in the device terminal.

[0140] In one embodiment, the quantum key injection device further includes an injection judgment module, which is used to:

[0141] Receiving key information of the security chip sent by the device terminal;

[0142] Based on the key information in the security chip, it is determined whether the security chip needs to be remotely charged with a key.

[0143] In one embodiment, the quantum key charging device further includes an identity verification module, which is specifically used to: request identity verification from the quantum authentication system, and after the identity verification passes, apply for the session key from the quantum cryptography management service system.

[0144] It should be noted that other embodiments of the quantum key injection device of the present invention or implementation methods can refer to the above-mentioned method embodiment 2, which will not be repeated here.

[0145] Embodiment 5

[0146] like Figure 4 As shown, the fifth embodiment of the present invention discloses a key remote recharging system based on quantum key distribution, the system includes a quantum key charging system, a quantum key management service system and a device terminal, the device terminal is connected to a security chip, the quantum key management service system is connected to the quantum key charging system and the device terminal respectively, and the device terminal is connected to the quantum key charging system wherein:

[0147] The device terminal applies for a session key from the quantum cryptography management service system, and uses the session key to encrypt a signature public key, where the signature public key is generated according to the hardware information of the security chip;

[0148] The encrypted signature public key is sent to the quantum key filling system, and the quantum key filling system applies for the session key from the quantum cryptography management service system, and uses the session key to decrypt the signature public key ciphertext to obtain the signature public key;

[0149] The quantum key injection system calls a quantum random number generator to generate a set of injection keys Ks, and uses the session key and the signature public key to encrypt the key file containing the injection key Ks, obtains the ciphertext of the key file and sends it to the device terminal;

[0150] The device terminal decrypts the ciphertext of the key file using the session key, obtains the key file and writes it into the security chip.

[0151] Specifically, a middleware terminal program runs in the device terminal, which is used to call the application program of all functions of the terminal security key storage device to manage and control quantum keys and all quantum key applications, and to connect to the identity authentication system for terminal identity authentication.

[0152] The identity authentication system is used to provide identity authentication function; the quantum random number generator is used to generate quantum keys; the quantum exchange cryptographic machine receives the quantum keys issued by the quantum random number generator and is used to provide key services. The quantum exchange cryptographic machine has a key pre-stored in it. The key is a key pre-generated by the quantum random number generator and stored in the quantum exchange cryptographic machine. It is a symmetric key with the key in the security chip.

[0153] The quantum key injection system is used to connect to the output end of the quantum exchange cipher machine and cooperate with the terminal to remotely inject quantum keys.

[0154] The quantum cryptography management service system realizes data interaction with the instant messaging system and security chip through the network. The quantum cryptography management service system is directly connected to the quantum cryptography switch to provide encryption keys and identity authentication functions.

[0155] The security chip stores quantum security keys and media information. The keys stored in each security chip and the keys pre-stored in the quantum exchange cipher machine are symmetric keys. The security keys in the security chip are symmetricly authenticated through the network and the quantum cryptography management service system.

[0156] In one embodiment, the system further includes a quantum identity authentication system, which is connected to the terminal device, the quantum key injection system and the quantum cryptography management service system, and the identity authentication system is used to receive an identity authentication request sent by the terminal device, or receive an identity verification request sent by the quantum key injection system.

[0157] Specifically, taking the middleware terminal application based on the SIM card security storage chip to implement remote key charging as an example, the charging steps include:

[0158] S1: The middleware terminal application of an encryption terminal submits authentication data to the identity authentication system to obtain the identity authentication credentials.

[0159] S2: The middleware terminal application obtains the key information in the Sim / U shield and compares it with the quantum key injection system to determine whether remote key injection is required.

[0160] S3: The middleware terminal application enters the key charging interface and starts key charging.

[0161] S4: The middleware terminal application calls the security chip in the Sim / U shield and generates a signature public-private key pair A based on the hardware information.

[0162] S5: The middleware terminal application applies to the quantum cryptography management service system for a session key to protect the secure charging process of the recharging key.

[0163] S6: The quantum cryptography management service system generates the corresponding symmetric session key based on the application information submitted by the middleware terminal application, and encrypts it and sends it to the middleware terminal application.

[0164] S7: The middleware terminal application uses the injection key in the Sim / U shield to decrypt the issued session key, which is used to encrypt the signature public key A.

[0165] S8: A middleware terminal application submits the encrypted signature public key A to the quantum key injection system.

[0166] S9: After verifying the identity of the requester, the quantum key injection system applies for a session key from the quantum cryptography management service system.

[0167] S10: The quantum key injection system uses the applied session key to decrypt the encrypted signature public key A submitted by a certain encryption middleware terminal application.

[0168] S11: The quantum key injection system generates an encrypted public-private key pair B based on the middleware terminal application information.

[0169] S12: The quantum key injection system generates the corresponding encryption symmetric key K1 based on the middleware terminal application information

[0170] S13: The quantum key injection system calls the quantum random number generator to generate a set of injection keys Ks according to the request of the middleware terminal application.

[0171] S14: The quantum key injection system uses the encrypted symmetric key K1 to encrypt the injection key Ks.

[0172] S15: The quantum key injection system uses the encryption key B public key to encrypt the symmetric key K1.

[0173] S16: The quantum key filling system uses the signature key A to encrypt the public-private key pair B and generate a digital envelope.

[0174] S17: The quantum key filling system combines the encrypted key digital envelope, the encrypted filling key Ks and the encrypted symmetric key K1 into a key file, encrypts the key file with the session key, and sends it to the middleware terminal application.

[0175] S18: After the middleware terminal application obtains the encrypted key file, it calls the session key for decryption. After decryption, it combines the encrypted key digital envelope, the encrypted charging key Ks and the encrypted symmetric key K1 into a key file and writes it into the security chip in the Sim / U shield.

[0176] S19: The middleware terminal application completes key recharging and exits the key charging interface.

[0177] In this embodiment, the middleware terminal program obtains identity authentication credentials from the identity authentication system, obtains the quantum injection key from the quantum key injection system through the identity authentication credentials, uses the terminal security key storage device security chip to generate a pair of signature public and private key pairs, obtains the session key based on the original quantum key in the terminal security key storage device, uses the quantum key one-time pad for identity authentication, uses the quantum key one-time pad to protect the signature public key upload, uses the quantum key one-time pad to protect the injection key distribution, uses the quantum key one-time pad to protect the encrypted public and private keys distribution, and uses the quantum key one-time pad to protect the injection key encryption key distribution.

[0178] 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.

[0179] 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.

[0180] 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 remote key recharging method based on quantum key distribution, characterized in that: Applied to a device terminal, the method comprises: Apply for a session key from the quantum cryptography management service system, and use the session key to encrypt a signature public key A, where the signature public key is generated based on the hardware information of the security chip; Sending the encrypted signature public key to the quantum key injection system, so that the quantum key injection system applies for the session key from the quantum cryptography management service system, and uses the session key to decrypt and obtain the signature public key; Receiving a ciphertext of a key file encrypted by the session key and the signature public key and sent by the quantum key injection system, wherein the key file carries the injection key Ks; The ciphertext of the key file is decrypted using the session key to obtain the key file and write it into the security chip.

2. The key remote recharging method based on quantum key distribution as claimed in claim 1, characterized in that: The key file includes an encrypted key digital envelope, a filling key Ks encrypted with a symmetric key K1, and a symmetric key K1 encrypted with an encrypted public key; Among them, the encryption key digital envelope is obtained by encrypting and protecting the encryption public and private key pair using the signature public key, and the encryption public and private key pair and the symmetric key K1 are generated by the quantum key injection system.

3. The remote key recharging method based on quantum key distribution according to claim 1, characterized in that: Before applying for a session key from the quantum cryptographic management service system, the method further includes: Submit authentication data to the identity authentication system to obtain identity authentication credentials; Accordingly, a session key is applied for from the quantum cryptographic management service system based on the identity authentication credentials.

4. The key remote recharging method based on quantum key distribution according to claim 1, characterized in that: Before sending the encrypted signature public key to the quantum key injection system, the method further includes: Obtaining key information in the security chip; The key information in the security chip is compared with the quantum key injection system to determine whether remote key injection is required.

5. The remote key recharging method based on quantum key distribution according to claim 1, characterized in that: The step of applying for a session key from the quantum cryptography management service system includes: Sending session key application information to the quantum cryptography management service system; Receiving a session key ciphertext returned by the quantum cryptography management service system, where the session key ciphertext is obtained by the quantum cryptography management service system using a symmetric session key encrypted by a quantum key; The session key ciphertext is decrypted using the original quantum key in the security chip to obtain the session key.

6. A remote key recharging method based on quantum key distribution, characterized in that: Applied to a quantum key injection system, the method comprises: Receiving a signature public key ciphertext sent by a device terminal, wherein the signature public key ciphertext is obtained by encrypting a signature public key generated according to hardware information of a security chip by the device terminal using a session key; Apply for the session key from the quantum cryptography management service system, and use the session key to decrypt the signature public key ciphertext to obtain the signature public key; A quantum random number generator is called to generate a set of injection keys Ks, and the key file containing the injection key Ks is encrypted using the session key and the signature public key, and the key of the key file is sent to the device terminal to be decrypted by the device terminal to obtain the key file and write it into the security chip.

7. The remote key recharging method based on quantum key distribution according to claim 6, characterized in that: The calling of the quantum random number generator to generate a set of injection keys Ks, and using the session key and the signature public key to encrypt a key file containing the injection key Ks, includes: Encrypt the charging key Ks using the symmetric key K1 to obtain the charging key ciphertext; Use the encryption public key to encrypt the symmetric key K1 to obtain the symmetric key ciphertext; Use the signature public key to encrypt and protect the encrypted public and private key pair to generate a digital envelope; Generate the key file based on the digital envelope, the filling key ciphertext and the symmetric key ciphertext; The key file is encrypted using the session key to generate a ciphertext of the key file.

8. The remote key recharging method based on quantum key distribution as claimed in claim 7, characterized in that: Before using the symmetric key K1 to encrypt the charging key Ks to obtain the charging key ciphertext, the method further includes: According to the middleware terminal application information in the device terminal, an encryption public-private key pair and a symmetric key K1 are generated.

9. The remote key recharging method based on quantum key distribution according to claim 6, characterized in that: Before the receiving device terminal sends the signed public key ciphertext, the method further includes: Receiving key information of the security chip sent by the device terminal; Based on the key information in the security chip, it is determined whether the security chip needs to be remotely charged with a key.

10. The remote key recharging method based on quantum key distribution according to claim 6, characterized in that: Before applying for the session key from the quantum cryptographic management service system, the method further includes: Request identity verification from the quantum identity authentication system, and after the identity verification passes, apply for the session key from the quantum cryptography management service system.

11. A device terminal, characterized in that: The device terminal is connected to a security chip, and the device terminal runs a middleware terminal application for executing the key remote renewal method based on quantum key distribution as described in any one of claims 1 to 5.

12. A quantum key injection device, characterized in that: The device comprises: The signature public key ciphertext receiving module is used to receive the signature public key ciphertext sent by the device terminal, wherein the signature public key ciphertext is obtained by encrypting the signature public key generated according to the hardware information of the security chip by the device terminal using the session key; A session key application module, used to apply for the session key from the quantum cryptography management service system, and use the session key to decrypt the signature public key ciphertext to obtain the signature public key; The key file generation module is used to call the quantum random number generator to generate a set of injection keys Ks, and use the session key and the signature public key to encrypt the key file containing the injection key Ks, and obtain the ciphertext of the key file and send it to the device terminal so that the key file is decrypted by the device terminal and written into the security chip.

13. A remote key recharging system based on quantum key distribution, characterized in that: The system includes a quantum key charging system, a quantum key management service system and a device terminal, wherein the device terminal is connected to a security chip, the quantum key management service system is connected to the quantum key charging system and the device terminal respectively, and the device terminal is connected to the quantum key charging system wherein: The device terminal applies for a session key from the quantum cryptography management service system, and uses the session key to encrypt a signature public key, where the signature public key is generated according to the hardware information of the security chip; The encrypted signature public key is sent to the quantum key filling system, and the quantum key filling system applies for the session key from the quantum cryptography management service system, and uses the session key to decrypt the signature public key ciphertext to obtain the signature public key; The quantum key injection system calls a quantum random number generator to generate a set of injection keys Ks, and uses the session key and the signature public key to encrypt the key file containing the injection key Ks, obtains the ciphertext of the key file and sends it to the device terminal; The device terminal decrypts the ciphertext of the key file using the session key, obtains the key file and writes it into the security chip.

14. The key remote recharging system based on quantum key distribution as claimed in claim 13, characterized in that: The system also includes a quantum identity authentication system, which is connected to the terminal device, the quantum key injection system and the quantum cryptography management service system. The identity authentication system is used to receive an identity authentication request sent by the terminal device, or receive an identity verification request sent by the quantum key injection system.

Citation Information

Patent Citations

  • Quantum key charging method, system and component based on quantum cryptography service platform

    CN116418485A

Cited By

  • Network-free encryption communication method and related device

    CN119766424A

  • File segmentation encryption processing method based on quantum key distribution

    CN119766549A