Quantum key charging method and device, electronic equipment and storage medium

Through the collaborative work of SIM cards and SMS gateways, online charging of quantum keys is realized, solving the problems of low efficiency, low security and insufficient flexibility in the existing technology, improving the efficiency and security of charging and improving the user experience.

CN119583057APending Publication Date: 2025-03-07CHINA MOBILE INTERNET CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411710599.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

The existing quantum key charging technology has problems such as low efficiency, low security and insufficient flexibility.

Method used

The card application of the SIM card receives the terminal device's quantum key application request, generates a SMS, and communicates with the quantum security service platform through the SMS gateway, charges the quantum key online, and avoids manual intervention.

Benefits of technology

It improves the efficiency and security of quantum key charging, reduces the risks of keys during the circulation process, expands the key acquisition channel, improves the user experience, and solves the problem of insufficient flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119583057A_ABST
    Figure CN119583057A_ABST
Patent Text Reader

Abstract

The invention discloses a quantum key charging method and device, electronic equipment and a storage medium, which are used for solving the problems of low efficiency, low safety and insufficient flexibility of a related quantum key charging technology. The method comprises the following steps: receiving a quantum key application request sent by terminal equipment, and generating a first short message based on the quantum key application request; sending the first short message to a short message gateway to enable the short message gateway to generate a second short message based on the received first short message and the first mobile phone number information, and sending the second short message to a quantum security service platform; wherein the first mobile phone number information is mobile phone number information corresponding to sending of the first short message; receiving a third short message which is sent by the short message gateway and comprises quantum key information, and extracting the quantum key from the quantum key information of the third short message so as to charge the terminal equipment with the quantum key; wherein the quantum key is generated by the quantum security service platform based on the second short message and is sent to the short message gateway.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of quantum communication technology, and specifically relates to a quantum key injection method, device, electronic device and storage medium. Background Art

[0002] As quantum communication technology continues to mature and is widely used, the quantum keys it provides have become popular in the field of communication security due to their unparalleled security and efficiency.

[0003] The relevant quantum key charging method usually adopts offline charging, which generates a certain number of quantum keys in advance, and stores these keys on terminal security media such as hardware or software keys through secure channels, and then distributes the terminal security media storing quantum keys to users offline. Among them, human intervention is required to complete the physical transfer process of keys from the quantum key management center to each terminal device.

[0004] Although the relevant quantum key filling method ensures the security of quantum keys to a certain extent, it requires manual operation, which may lead to cumbersome and inefficient processes. It also increases the risk of unauthorized access, tampering, loss or theft of quantum keys during circulation, resulting in the inability to guarantee the security of data transmission. Moreover, this static filling method is limited by time and place, lacks flexibility, and is difficult to meet the dynamic and real-time key update needs of modern communication systems. It is also not conducive to flexible deployment and expansion in large-scale network environments.

[0005] In other words, the relevant quantum key injection technology has the problems of low efficiency, low security and insufficient flexibility. Summary of the invention

[0006] The embodiments of the present application provide a quantum key injection method, device, electronic device and storage medium, which can solve the problems of low efficiency, low security and insufficient flexibility in related quantum key injection technologies.

[0007] In a first aspect, an embodiment of the present application provides a quantum key injection method, which is applied to a card application of a subscriber identity module (SIM) card, the method comprising: receiving a quantum key application request sent by a terminal device, and generating a first text message based on the quantum key application request; sending the first text message to a text message gateway, so that the text message gateway generates a second text message based on the received first text message and first mobile phone number information, and sends the second text message to a quantum security service platform; wherein the first mobile phone number information is the mobile phone number information corresponding to the sending of the first text message; receiving a third text message including quantum key information sent by the text message gateway, and extracting a quantum key from the quantum key information in the third text message, so as to inject the quantum key into the terminal device; wherein the quantum key is generated by the quantum security service platform based on the second text message and sent to the text message gateway.

[0008] In a second aspect, an embodiment of the present application provides a quantum key injection method, which is applied to a quantum security service platform, and the method includes: receiving a second text message sent by a text message gateway; wherein the second text message is generated by the text message gateway based on a received first text message and a first mobile phone number information; the first text message is generated by a card application of a SIM card based on a quantum key application request sent by a received terminal device; the first mobile phone number information is the mobile phone number information corresponding to the sending of the first text message; based on the second text message, a quantum key is generated; based on the quantum key, a fourth text message including the quantum key is generated, and the fourth text message is sent to the text message gateway, so that the text message gateway generates a third text message including quantum key information based on the fourth text message, and sends the third text message to the SIM card; wherein the third text message is used by the card application of the SIM card to extract the quantum key from the quantum key information of the third text message to inject the quantum key into the terminal device.

[0009] In the third aspect, an embodiment of the present application provides a quantum key charging device, which is applied to a card application of a SIM card, and the device includes: a first generating module, which is used to receive a quantum key application request sent by a terminal device, and generate a first text message based on the quantum key application request; a first sending module, which is used to send the first text message to a text message gateway, so that the text message gateway generates a second text message based on the received first text message and the first mobile phone number information, and sends the second text message to a quantum security service platform; wherein the first mobile phone number information is the mobile phone number information corresponding to the sending of the first text message; a charging module, which is used to receive a third text message including quantum key information sent by the text message gateway, and extract the quantum key from the quantum key information in the third text message, so as to charge the terminal device with the quantum key; wherein the quantum key is generated by the quantum security service platform based on the second text message and sent to the text message gateway.

[0010] In a fourth aspect, an embodiment of the present application provides a quantum key injection device, which is applied to a quantum security service platform, and the device includes: a receiving module, used to receive a second text message sent by a text message gateway; wherein the second text message is generated by the text message gateway based on the received first text message and the first mobile phone number information; the first text message is generated by the card application of the SIM card based on the quantum key application request sent by the terminal device; the first mobile phone number information is the mobile phone number information corresponding to the sending of the first text message; a second generating module, used to generate a quantum key based on the second text message; a second sending module, used to generate a fourth text message including the quantum key based on the quantum key, and send the fourth text message to the text message gateway, so that the text message gateway generates a third text message including the quantum key information based on the fourth text message, and sends the third text message to the SIM card; wherein the third text message is used by the card application of the SIM card to extract the quantum key from the quantum key information of the third text message to inject the quantum key into the terminal device.

[0011] In a fifth aspect, an embodiment of the present application provides a quantum key injection device, comprising: a processor; and a memory arranged to store computer executable instructions, wherein the executable instructions are configured to be executed by the processor, and the executable instructions include instructions for executing the quantum key injection method as described in the first aspect, or executing the quantum key injection method as described in the second aspect.

[0012] In a sixth aspect, an embodiment of the present application provides a storage medium, wherein the storage medium is used to store computer-executable instructions, wherein the computer-executable instructions enable a computer to execute the quantum key injection method as described in the first aspect, or to execute the quantum key injection method as described in the second aspect.

[0013] In the seventh aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the quantum key injection method as described in the first aspect, or to execute the quantum key injection method as described in the second aspect.

[0014] In an eighth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the quantum key injection method as described in the first aspect, or executes the quantum key injection method as described in the second aspect.

[0015] In an embodiment of the present application, a quantum key application request sent by a terminal device is received through the card application of the SIM card, and a first text message is generated based on the quantum key application request; thereafter, the first text message is sent to the text message gateway, so that the text message gateway generates a second text message based on the received first text message and the first mobile phone number information, and sends the second text message to the quantum security service platform; wherein the first mobile phone number information is the mobile phone number information corresponding to the sending of the first text message; then a third text message including quantum key information sent by the text message gateway is received, and the quantum key is extracted from the quantum key information of the third text message to charge the terminal device with the quantum key; wherein the quantum key is generated by the quantum security service platform based on the second text message and sent to the text message gateway. Compared with related quantum key charging technologies, this solution is based on SIM cards and SMS gateways, and performs online charging of quantum keys in the form of SMS. It does not require human intervention to complete the physical transfer of keys from the quantum key management center to each terminal device, which is more efficient and low-cost. At the same time, it reduces the risk of unauthorized access, tampering, loss or theft of quantum keys during circulation, and improves security. In addition, this charging method expands the channels for obtaining quantum keys. Users do not need to go to specific locations in person or go through complicated processes. Users only need to complete key charging through simple SMS operations, which improves user experience and solves the problem of insufficient flexibility of related quantum key charging technologies due to time and location limitations. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a flowchart of a quantum key injection method applied to a card application provided in an embodiment of the present application; Figure 2 is a schematic block diagram of a quantum key injection system provided in an embodiment of the present application; FIG3 (a) is a schematic diagram of the structure of a third short message provided in an embodiment of the present application; FIG3( b ) is a schematic diagram of the structure of an application command message of a third short message provided in an embodiment of the present application; FIG4 (a) is a schematic diagram of the structure of a first text message provided in an embodiment of the present application; FIG4( b ) is a schematic diagram of the structure of a response data packet of a first short message provided in an embodiment of the present application; Figure 5 A schematic diagram of a flow chart of a quantum key injection method applied to a quantum security service platform provided in an embodiment of the present application; Figure 6 It is a flowchart of another quantum key injection method provided in an embodiment of the present application; Figure 7 It is a schematic diagram of the structure of a quantum key injection device applied to a card application provided in an embodiment of the present application; Figure 8 It is a schematic diagram of the structure of a quantum key injection device applied to a quantum security service platform provided in an embodiment of the present application; Fig. 9 It is a structural schematic diagram of a quantum key injection device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0017] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0018] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0019] The following, in conjunction with the accompanying drawings, describes in detail the quantum key injection method, device, electronic device and storage medium provided in the embodiments of the present application through specific embodiments and their application scenarios.

[0020] Figure 1A quantum key injection method provided by an embodiment of the present invention is shown, and the method is applied to a card application that can be executed by a SIM card of an electronic device, and the electronic device may include: a server and / or a terminal device, wherein the terminal device may be, for example, a vehicle-mounted terminal or a mobile phone terminal. The method includes the following steps: S102: Receive a quantum key application request sent by a terminal device, and generate a first text message based on the quantum key application request.

[0021] In actual applications, when a terminal device needs to obtain a new quantum key, it will actively send a quantum key application request to the card application of the SIM card to obtain the quantum key it needs.

[0022] Specifically, the SIM card may be a smart card that supports the ISO / IEC 7816-4 specification and the 3GPP TS 31.111 specification, and specifically supports the Application Protocol Data Unit (APDU) instruction and the connection-oriented Bearer Independent Protocol (BIP).

[0023] S104: Send a first SMS message to a SMS gateway, so that the SMS gateway generates a second SMS message based on the received first SMS message and the first mobile phone number information, and sends the second SMS message to the quantum security service platform.

[0024] Among them, the first mobile phone number information is the mobile phone number information corresponding to sending the first text message.

[0025] In actual applications, when the SMS gateway receives the first SMS, it will also receive the mobile phone number (first mobile phone number information) of the SIM card that sent the SMS by default. It should be noted that, compared with the second mobile phone number information in the application data packet of the first SMS, the first mobile phone number information can be outside the application data packet.

[0026] S106: Receive a third SMS message including quantum key information sent by the SMS gateway, and extract the quantum key from the quantum key information in the third SMS message to inject the quantum key into the terminal device.

[0027] Among them, the quantum key is generated by the quantum security service platform based on the second SMS and sent to the SMS gateway.

[0028] Specifically, the quantum key information is information obtained by encrypting the quantum key in ciphertext form. The quantum key may include one or more of a quantum key user key, a quantum key user key detail, a quantum key device key, a quantum key device key detail, a quantum key application key, a quantum key application key detail, a quantum key session key, and a quantum key session key detail. Accordingly, the card application may parse the third SMS to obtain the quantum key information, and decrypt the quantum key information using the decryption algorithm built into the SIM card, thereby extracting the quantum key.

[0029] like Figure 2 As shown, the quantum key filling system of this embodiment may include a quantum security service platform, a short message gateway and a terminal device, wherein the terminal device includes a SIM card, and the SIM card includes the above-mentioned card application. Specifically, the quantum security service platform generates a quantum key based on the second short message, and can distribute the quantum key to the short message gateway through the quantum key distribution protocol. The short message gateway receives the short message request (first short message) from the terminal device, and can send the information (third short message) responded by the quantum security service platform to the terminal device. The terminal device can interact with the short message gateway and the SIM card, and is a data "transfer station" between the short message gateway and the SIM card.

[0030] In practical applications, the quantum key can be loaded into the terminal device, or it can be loaded into the SIM card of the terminal device, so that the user can subsequently use the quantum key for encrypted communication or authentication.

[0031] The quantum key charging method provided by the embodiment of the present invention receives a quantum key application request sent by a terminal device through a card application of a SIM card, and generates a first text message based on the quantum key application request; then, sends the first text message to a text message gateway, so that the text message gateway generates a second text message based on the received first text message and the first mobile phone number information, and sends the second text message to a quantum security service platform; wherein the first mobile phone number information is the mobile phone number information corresponding to the sending of the first text message; then receives a third text message including quantum key information sent by the text message gateway, and extracts the quantum key from the quantum key information of the third text message, so as to charge the quantum key to the terminal device; wherein the quantum key is generated by the quantum security service platform based on the second text message and sent to the text message gateway. Compared with related quantum key charging technologies, this solution is based on SIM cards and SMS gateways, and performs online charging of quantum keys in the form of SMS. It does not require human intervention to complete the physical transfer of keys from the quantum key management center to each terminal device, which is more efficient and low-cost. At the same time, it reduces the risk of unauthorized access, tampering, loss or theft of quantum keys during circulation, and improves security. In addition, this charging method expands the channels for obtaining quantum keys. Users do not need to go to specific locations in person or go through complicated processes. Users only need to complete key charging through simple SMS operations, which improves user experience and solves the problem of insufficient flexibility of related quantum key charging technologies due to time and location limitations.

[0032] In one implementation, based on the quantum key application request, generating a first text message (i.e., S102) can be specifically performed as follows: Steps A1 to A2: Step A1, generate first quantum key application information according to the quantum key application request, and obtain first card information.

[0033] The first card information includes the second mobile phone number information.

[0034] Step A2, generating a first text message according to the first quantum key application information and the first card information.

[0035] Among them, the second mobile phone number information is used for the quantum security service platform to receive the second text message, perform a first verification on the second text message based on the first mobile phone number information and the second mobile phone number information in the second text message, and generate a quantum key based on the second text message if the first verification passes; the first verification includes verifying whether the first mobile phone number information and the second mobile phone number information in the second text message are consistent.

[0036] In this embodiment, a first verification is performed on the second text message through the quantum security service platform to determine whether the second text message is credible. If the second text message passes the first verification, the second text message is considered to be credible, and a corresponding quantum key is generated, thereby ensuring the security of the quantum key.

[0037] In one implementation, the third text message also includes the second card information; the first quantum key application information includes the quantum key type information. Before extracting the quantum key from the quantum key information of the third text message (ie, S106), the following step B1 may be performed to determine whether the third text message is credible: Step B1: Based on the first text message, perform a second verification on the third text message.

[0038] The second check includes one or more of the following: Verify whether the quantum key type information corresponding to the quantum key information in the third short message is consistent with the quantum key type information in the first short message; Verify whether the second card information in the third text message is consistent with the first card information in the first text message.

[0039] Exemplarily, as shown in FIG3 (a), the structure of the third SMS may include an SMS message header, an application command security field, and an application command message; as shown in FIG3 (b), the application command message may include a message authentication code (MAC), a card application main version number MAIN-VER, an encryption identifier Flag, and application data; wherein the application data may include tag information, quantum key total space information, the above quantum key information, and second card information; wherein the field definitions of the tag information and the above quantum key information may be as shown in Table 1 below: Table 1

[0040] Exemplarily, the quantum key application request sent by the terminal device is a request for a quantum key session key, and the card application generates a corresponding first SMS based on the quantum key application request; correspondingly, when receiving the third SMS, the card application verifies whether the quantum key type information corresponding to the second quantum key information in the third SMS is the quantum key session key type (the quantum key type information in the first SMS). Of course, the application data may also include the second quantum key application information, and the second verification may also include verifying whether the second quantum key application information in the third SMS is consistent with the first quantum key application information in the first SMS.

[0041] Correspondingly, extracting the quantum key from the quantum key information of the third short message (ie, S106) can be specifically performed as follows: step B2: Step B2, when the second verification is passed, extract the quantum key from the quantum key information of the third SMS and store the quantum key in the SIM card.

[0042] Specifically, the SIM card may be a common SIM card or a super SIM card.

[0043] In this embodiment, the card application performs a second verification on the received response information (third SMS) to verify whether it is the response information corresponding to the SMS application (first SMS) sent by the card application, thereby ensuring that the received quantum key is safe and reliable, and further, the received quantum key is stored in the SIM card to reduce the possibility of tampering and theft of the quantum key, thereby increasing the security of the quantum key.

[0044] In one implementation, the above-mentioned first card information also includes first SIM card identification information; the first SIM card identification information is used by the quantum security service platform to determine whether there is target binding information representing the binding of the first mobile phone number information and the first SIM card identification information in the binding information stored by the quantum security service platform, and if there is no target binding information, a binding relationship is established between the first mobile phone number information and the first SIM card identification information.

[0045] In actual applications, when there is no target binding information, the quantum security service platform can establish a binding relationship between the first mobile phone number information and the first SIM card identification information, and then the quantum security service platform generates a quantum key to be used in the background to associate the binding information with the quantum key; when there is target binding information, the quantum security service platform can generate a quantum key. Specifically, when there is no target binding information, it can be determined whether there is binding information corresponding to the first mobile phone number information or binding information corresponding to the first SIM card identification information in the binding information; when the binding information corresponding to the first mobile phone number information does not exist and the binding information corresponding to the first SIM card identification information does not exist, the first mobile phone number information is established with the first SIM card identification information; then, the quantum security service platform generates a quantum key, so that when the second SMS (at least including the first quantum key application information, the first SIM card identification information, the first mobile phone number information and the second mobile phone number information) is credible, the quantum key is generated to send the quantum key to the SMS gateway (in the form of SMS) that sends the second SMS, thereby ensuring the security of the quantum key.

[0046] In this embodiment, the structure of the second SMS is designed to include the information required for binding (the first mobile phone number information and the first SIM card identification information), so that binding can be performed quickly and conveniently.

[0047] In one implementation, the first SMS includes a message authentication code (MAC) and an application data packet. According to the first quantum key application information and the first card information, the first SMS is generated (i.e., step A2), which can be specifically performed as follows: steps C1 to C3: Step C1, generating an application data packet based on the first quantum key application information and the first card information.

[0048] Step C2, generating a MAC based on a preset symmetric encryption algorithm and an application data packet.

[0049] Step C3, generating a first SMS based on the MAC and application data packet.

[0050] Among them, MAC is used by the SMS gateway to perform security verification on the received first SMS based on a preset symmetric encryption algorithm.

[0051] Specifically, the preset symmetric encryption algorithm may be an SM4 CBC algorithm, that is, a method of constructing a MAC based on the SM4 algorithm using a Cipher Block Chaining (CBC) mode. Each plaintext block is XORed with the previous ciphertext block before encryption. This method can effectively hide plaintext data.

[0052] Exemplarily, as shown in FIG4(a), the structure of the first SMS may include an uplink message header, an SMS security field, and a response data packet; the response data packet includes at least a MAC and the above-mentioned application data packet, specifically, as shown in FIG4(b), the corresponding field definition of the response data packet may be as shown in Table 2 below: Table 2

[0053] The first card information and the second card information may further include one or more of the second mobile phone number length and the SIM card identification information length; the first quantum key application information may further include quantum key storage space information. The SIM card identification information may include, for example, a security element identifier (SEID).

[0054] In this embodiment, the received first SMS is securely verified and forwarded through the SMS gateway, so that the quantum key application information can be securely and reliably transmitted to the quantum security service platform, providing necessary support for the subsequent quantum key generation and distribution process.

[0055] Corresponding to the above Figure 1Based on the same technical concept as the quantum key injection method for the card application of the SIM card described in FIG. 4 , the embodiment of the present application also provides a quantum key injection method for the quantum security service platform. Figure 5 A flowchart of a quantum key injection method provided in an embodiment of the present application is provided. The method can be executed by a quantum security service platform, wherein the quantum security service platform may include: a server and / or a terminal device, wherein the terminal device may be, for example, a vehicle-mounted terminal or a mobile phone terminal. In other words, the method can be executed by software or hardware installed on the quantum security service platform, and the method includes the following steps: S502: Receive a second SMS sent by the SMS gateway.

[0056] Among them, the second SMS is generated by the SMS gateway based on the received first SMS and the first mobile phone number information; the first SMS is generated by the SIM card application based on the quantum key application request sent by the terminal device; the first mobile phone number information is the mobile phone number information corresponding to the sending of the first SMS.

[0057] S504: Generate a quantum key based on the second SMS.

[0058] S506: Based on the quantum key, generate a fourth SMS including the quantum key, and send the fourth SMS to the SMS gateway, so that the SMS gateway generates a third SMS including the quantum key information based on the fourth SMS, and sends the third SMS to the SIM card.

[0059] Among them, the third SMS is used for the card application of the SIM card to extract the quantum key from the quantum key information of the third SMS to inject the quantum key into the terminal device.

[0060] Specifically, a fourth text message is generated according to the quantum key and the first mobile phone number information, and the fourth text message is sent to the text message gateway; the text message gateway generates a third text message including the quantum key information based on the fourth text message, and sends the third text message to the SIM card according to the first mobile phone number information in the fourth text message.

[0061] It should be noted that the process of the quantum key injection method from S502 to S506 can refer to the specific implementation process of the above embodiment, which will not be repeated here.

[0062] The quantum key charging method provided in the embodiment of the present application is through receiving a second SMS sent by an SMS gateway; wherein the second SMS is generated by the SMS gateway based on the received first SMS and the first mobile phone number information; the first SMS is generated by the card application of the SIM card based on the quantum key application request sent by the terminal device; the first mobile phone number information is the mobile phone number information corresponding to the sending of the first SMS; then, based on the second SMS, a quantum key is generated; based on the quantum key, a fourth SMS including the quantum key is generated, and the fourth SMS is sent to the SMS gateway, so that the SMS gateway generates a third SMS including the quantum key information based on the fourth SMS, and sends the third SMS to the SIM card; wherein the third SMS is used for the card application of the SIM card to extract the quantum key from the quantum key information of the third SMS to charge the terminal device with the quantum key. Compared with related quantum key charging technologies, this solution is based on SIM cards and SMS gateways, and performs online charging of quantum keys in the form of SMS. It does not require human intervention to complete the physical transfer of keys from the quantum key management center to each terminal device, which is more efficient and low-cost. At the same time, it reduces the risk of unauthorized access, tampering, loss or theft of quantum keys during circulation, and improves security. In addition, this charging method expands the channels for obtaining quantum keys. Users do not need to go to specific locations in person or go through complicated processes. Users only need to complete key charging through simple SMS operations, which improves user experience and solves the problem of insufficient flexibility of related quantum key charging technologies due to time and location limitations.

[0063] In one implementation, based on the second short message, generating a quantum key (i.e., S504) can be specifically performed as follows: Steps D1 to D2: Step D1, performing a first verification on the second text message based on the first mobile phone number information and the second mobile phone number information in the second text message.

[0064] Among them, the first card information includes the second mobile phone number information; the first card information is obtained by the card application and is used to generate a first text message based on the first quantum key application information and the first card information; the first quantum key application information is generated by the card application based on the quantum key application request.

[0065] Step D2, if the first verification passes, generating a quantum key based on the second SMS; The first verification includes verifying whether the first mobile phone number information and the second mobile phone number information in the second text message are consistent.

[0066] In one implementation, the third SMS also includes second card information; the first quantum key application information includes quantum key type information; the third SMS is used for the card application to perform a second verification on the third SMS based on the first SMS, and extract the quantum key from the quantum key information of the third SMS if the second verification is passed; the quantum key is stored in the SIM card; The second check includes one or more of the following: Verify whether the quantum key type information corresponding to the quantum key information in the third short message is consistent with the quantum key type information in the first short message; Verify whether the second card information in the third text message is consistent with the first card information in the first text message.

[0067] In one implementation, the first card information also includes the first SIM card identification information. Before generating the quantum key (ie, S504), the following steps E1 to E2 may also be performed: Step E1, determining whether there is target binding information representing the binding of the first mobile phone number information and the first SIM card identification information in the binding information stored in the quantum security service platform.

[0068] Step E2: if the target binding information does not exist, a binding relationship is established between the first mobile phone number information and the first SIM card identification information.

[0069] In one implementation, the first text message includes a MAC and an application data packet; the application data packet is generated by the card application based on the first quantum key application information and the first card information; the MAC is generated by the card application based on a preset symmetric encryption algorithm and the application data packet, and is used by the text message gateway to perform security verification on the received first text message based on the preset symmetric encryption algorithm.

[0070] The process of the above-mentioned quantum key injection method applied to the quantum security service platform can refer to the specific implementation process of the quantum key injection method embodiment applied to the card application of the SIM card, which will not be repeated here.

[0071] Figure 6 Another quantum key injection method provided by an embodiment of the present invention is shown, and the method includes the following steps 602 to 618: Step 602: The card application of the SIM card receives the quantum key application request sent by the terminal device, generates first quantum key application information according to the quantum key application request, and obtains first card information.

[0072] The first card information includes the second mobile phone number information.

[0073] Step 604: The card application generates a first SMS message based on the first quantum key application information and the first card information, and sends the first SMS message to the SMS gateway.

[0074] Step 606: The SMS gateway generates a second SMS based on the received first SMS and the first mobile phone number information, and sends the second SMS to the quantum security service platform.

[0075] Among them, the first mobile phone number information is the mobile phone number information corresponding to sending the first text message.

[0076] In step 608, the quantum security service platform receives the second text message, performs a first verification on the second text message based on the first mobile phone number information and the second mobile phone number information in the second text message, and if the first verification passes, determines whether there is target binding information representing the binding of the first mobile phone number information with the first SIM card identification information in the stored binding information.

[0077] The first verification includes verifying whether the first mobile phone number information and the second mobile phone number information in the second text message are consistent.

[0078] Step 610: In the absence of target binding information, the quantum security service platform establishes a binding relationship between the first mobile phone number information and the first SIM card identification information, and generates a quantum key based on the second SMS.

[0079] The first card information also includes first SIM card identification information.

[0080] Step 612: The quantum security service platform generates a fourth text message including the quantum key based on the quantum key, and sends the fourth text message to the text message gateway.

[0081] Step 614: The SMS gateway generates a third SMS including quantum key information based on the fourth SMS, and sends the third SMS to the SIM card.

[0082] Step 616: The card application receives the third SMS and performs a second verification on the third SMS based on the first SMS.

[0083] Step 618: When the second verification is passed, the card application extracts the quantum key from the quantum key information of the third SMS and stores the quantum key in the SIM card.

[0084] The second check includes one or more of the following: Verify whether the quantum key type information corresponding to the quantum key information in the third short message is consistent with the quantum key type information in the first short message; Verify whether the second card information in the third text message is consistent with the first card information in the first text message.

[0085] It should be noted that the process of the quantum key injection method from step 602 to step 618 can refer to the specific implementation process of the above embodiment, which will not be repeated here.

[0086] In this embodiment, a quantum key application request sent by a terminal device is received through the card application of the SIM card, and a first text message is generated based on the quantum key application request; then, the first text message is sent to the text message gateway, so that the text message gateway generates a second text message based on the received first text message and the first mobile phone number information, and sends the second text message to the quantum security service platform; wherein the first mobile phone number information is the mobile phone number information corresponding to the sending of the first text message; then a third text message including quantum key information sent by the text message gateway is received, and the quantum key is extracted from the quantum key information of the third text message to charge the terminal device with the quantum key; wherein the quantum key is generated by the quantum security service platform based on the second text message and sent to the text message gateway. Compared with related quantum key charging technologies, this solution is based on SIM cards and SMS gateways, and performs online charging of quantum keys in the form of SMS. It does not require human intervention to complete the physical transfer of keys from the quantum key management center to each terminal device, which is more efficient and low-cost. At the same time, it reduces the risk of unauthorized access, tampering, loss or theft of quantum keys during circulation, and improves security. In addition, this charging method expands the channels for obtaining quantum keys. Users do not need to go to specific locations in person or go through complicated processes. Users only need to complete key charging through simple SMS operations, which improves user experience and solves the problem of insufficient flexibility of related quantum key charging technologies due to time and location limitations.

[0087] Corresponding to the quantum key injection method provided in the above embodiment, based on the same technical concept, an embodiment of the present invention further provides a quantum key injection device, Figure 7 is a schematic diagram of the structure of a quantum key injection device according to an embodiment of the present invention, wherein the quantum key injection device is used to execute Figures 1 to 5 The quantum key injection method described in Figure 7 As shown, the quantum key injection device includes: a first generation module 710, a first sending module 720 and an injection module 730.

[0088] A first generating module 710 is configured to receive a quantum key application request sent by a terminal device, and generate a first short message based on the quantum key application request; The first sending module 720 is used to send a first SMS to the SMS gateway, so that the SMS gateway generates a second SMS based on the received first SMS and the first mobile phone number information, and sends the second SMS to the quantum security service platform; wherein the first mobile phone number information is the mobile phone number information corresponding to the sending of the first SMS; The charging module 730 is used to receive a third SMS message including quantum key information sent by the SMS gateway, and extract the quantum key from the quantum key information in the third SMS message to charge the quantum key into the terminal device; wherein the quantum key is generated by the quantum security service platform based on the second SMS message and sent to the SMS gateway.

[0089] In one implementation, the first generating module 710 includes: An acquisition unit 7101 is used to generate first quantum key application information according to a quantum key application request, and acquire first card information; wherein the first card information includes second mobile phone number information; A first generating unit 7102, configured to generate a first text message according to the first quantum key application information and the first card information; Among them, the second mobile phone number information is used for the quantum security service platform to receive the second text message, perform a first verification on the second text message based on the first mobile phone number information and the second mobile phone number information in the second text message, and generate a quantum key based on the second text message if the first verification passes; the first verification includes verifying whether the first mobile phone number information and the second mobile phone number information in the second text message are consistent.

[0090] In one implementation, the third SMS also includes the second card information; the first quantum key application information includes the quantum key type information. The above quantum key charging device also includes a verification module 740. The verification module 740 is specifically used to: Based on the first text message, performing a second verification on the third text message; Accordingly, the charging module 730 is specifically used for: If the second verification is passed, the quantum key is extracted from the quantum key information of the third SMS, and the quantum key is stored in the SIM card; The second check includes one or more of the following: Verify whether the quantum key type information corresponding to the quantum key information in the third short message is consistent with the quantum key type information in the first short message; Verify whether the second card information in the third text message is consistent with the first card information in the first text message.

[0091] In one implementation, the above-mentioned first card information also includes first SIM card identification information; the first SIM card identification information is used by the quantum security service platform to determine whether there is target binding information representing the binding of the first mobile phone number information and the first SIM card identification information in the binding information stored by the quantum security service platform, and if there is no target binding information, a binding relationship is established between the first mobile phone number information and the first SIM card identification information.

[0092] In one implementation, the first short message includes a MAC and an application data packet. The first generating unit 7102 is specifically configured to: Generate an application data packet based on the first quantum key application information and the first card information; Generate MAC based on the preset symmetric encryption algorithm and application data packet; Generate a first SMS based on the MAC and the application data packet; Among them, MAC is used by the SMS gateway to perform security verification on the received first SMS based on a preset symmetric encryption algorithm.

[0093] In this embodiment, a quantum key application request sent by a terminal device is received through the card application of the SIM card, and a first text message is generated based on the quantum key application request; then, the first text message is sent to the text message gateway, so that the text message gateway generates a second text message based on the received first text message and the first mobile phone number information, and sends the second text message to the quantum security service platform; wherein the first mobile phone number information is the mobile phone number information corresponding to the sending of the first text message; then a third text message including quantum key information sent by the text message gateway is received, and the quantum key is extracted from the quantum key information of the third text message to charge the terminal device with the quantum key; wherein the quantum key is generated by the quantum security service platform based on the second text message and sent to the text message gateway. Compared with related quantum key charging technologies, this solution is based on SIM cards and SMS gateways, and performs online charging of quantum keys in the form of SMS. It does not require human intervention to complete the physical transfer of keys from the quantum key management center to each terminal device, which is more efficient and low-cost. At the same time, it reduces the risk of unauthorized access, tampering, loss or theft of quantum keys during circulation, and improves security. In addition, this charging method expands the channels for obtaining quantum keys. Users do not need to go to specific locations in person or go through complicated processes. Users only need to complete key charging through simple SMS operations, which improves user experience and solves the problem of insufficient flexibility of related quantum key charging technologies due to time and location limitations.

[0094] Those skilled in the art should understand that the above-mentioned quantum key injection device can be used to implement the quantum key injection method for card application applied to SIM card mentioned above, and the detailed description thereof should be similar to the description of the method part mentioned above, and will not be repeated here to avoid repetition.

[0095] Corresponding to the quantum key injection method provided in the above embodiment, based on the same technical concept, an embodiment of the present invention further provides a quantum key injection device, Figure 8 is a schematic diagram of the structure of a quantum key filling device according to an embodiment of the present invention, wherein the quantum key filling device is used to perform Figure 6 The quantum key injection method described in Figure 8As shown, the quantum key injection device includes: a receiving module 810, a second generating module 820 and a second sending module 830.

[0096] The receiving module 810 is used to receive a second SMS sent by the SMS gateway.

[0097] The second SMS is generated by the SMS gateway based on the received first SMS and the first mobile phone number information; the first SMS is generated by the card application of the SIM card based on the quantum key application request sent by the received terminal device; the first mobile phone number information is the mobile phone number information corresponding to the sending of the first SMS; The second generating module 820 is used to generate a quantum key based on the second short message.

[0098] The second sending module 830 is used to generate a fourth text message including the quantum key based on the quantum key, and send the fourth text message to the text message gateway, so that the text message gateway generates a third text message including quantum key information based on the fourth text message, and sends the third text message to the SIM card.

[0099] Among them, the third SMS is used for the card application of the SIM card to extract the quantum key from the quantum key information of the third SMS to inject the quantum key into the terminal device.

[0100] In one implementation, the second generating module 820 is specifically configured to: Based on the first mobile phone number information and the second mobile phone number information in the second text message, a first verification is performed on the second text message.

[0101] The first card information includes the second mobile phone number information; the first card information is obtained by the card application and is used to generate the first text message according to the first quantum key application information and the first card information; the first quantum key application information is generated by the card application according to the quantum key application request; If the first verification passes, a quantum key is generated based on the second text message.

[0102] The first verification includes verifying whether the first mobile phone number information and the second mobile phone number information in the second text message are consistent.

[0103] In one implementation, the third text message further includes second card information; the first quantum key application information includes quantum key type information; the third text message is used for the card application to perform a second verification on the third text message based on the first text message, and extract the quantum key from the quantum key information of the third text message if the second verification is passed; the quantum key is stored in the SIM card; The second check includes one or more of the following: Verify whether the quantum key type information corresponding to the quantum key information in the third short message is consistent with the quantum key type information in the first short message; Verify whether the second card information in the third text message is consistent with the first card information in the first text message.

[0104] In one implementation, the quantum key injection device further includes a binding module 840, which is used to: Determine whether there is target binding information representing the binding of the first mobile phone number information and the first SIM card identification information in the binding information stored in the quantum security service platform; If the target binding information does not exist, a binding relationship is established between the first mobile phone number information and the first SIM card identification information.

[0105] In one implementation, the above-mentioned first text message includes MAC and an application data packet; the application data packet is generated by the card application based on the first quantum key application information and the first card information; MAC is generated by the card application based on a preset symmetric encryption algorithm and the application data packet, and is used by the text message gateway to perform security verification on the received first text message based on the preset symmetric encryption algorithm.

[0106] Those skilled in the art should understand that the above-mentioned quantum key injection device can be used to implement the quantum key injection method for the quantum security service platform mentioned above, and the detailed description thereof should be similar to the description of the method part mentioned above, and will not be repeated here to avoid repetition.

[0107] In this embodiment, a second SMS is received by an SMS gateway; wherein the second SMS is generated by the SMS gateway based on the received first SMS and the first mobile phone number information; the first SMS is generated by the card application of the SIM card based on the quantum key application request sent by the terminal device; the first mobile phone number information is the mobile phone number information corresponding to the sending of the first SMS; then, based on the second SMS, a quantum key is generated; based on the quantum key, a fourth SMS including the quantum key is generated, and the fourth SMS is sent to the SMS gateway, so that the SMS gateway generates a third SMS including the quantum key information based on the fourth SMS, and sends the third SMS to the SIM card; wherein the third SMS is used by the card application of the SIM card to extract the quantum key from the quantum key information of the third SMS to charge the terminal device with the quantum key. Compared with related quantum key charging technologies, this solution is based on SIM cards and SMS gateways, and performs online charging of quantum keys in the form of SMS. It does not require human intervention to complete the physical transfer of keys from the quantum key management center to each terminal device, which is more efficient and low-cost. At the same time, it reduces the risk of unauthorized access, tampering, loss or theft of quantum keys during circulation, and improves security. In addition, this charging method expands the channels for obtaining quantum keys. Users do not need to go to specific locations in person or go through complicated processes. Users only need to complete key charging through simple SMS operations, which improves user experience and solves the problem of insufficient flexibility of related quantum key charging technologies due to time and location limitations.

[0108] Based on the same technical concept, the embodiment of the present application also provides a quantum key filling device, which is used to perform the above-mentioned quantum key filling method. Fig. 9 A schematic diagram of the structure of a quantum key injection device for implementing various embodiments of the present application. The quantum key injection device may have relatively large differences due to different configurations or performances, and may include a processor (processor) 910, a communication interface (Communications Interface) 920, a memory (memory) 930 and a communication bus 940, wherein the processor 910, the communication interface 920, and the memory 930 communicate with each other through the communication bus 940. The processor 910 may call a computer program stored in the memory 930 and run on the processor 910 to perform the following steps: Receiving a quantum key application request sent by a terminal device, and generating a first short message based on the quantum key application request; Sending a first SMS to a SMS gateway, so that the SMS gateway generates a second SMS based on the received first SMS and the first mobile phone number information, and sends the second SMS to the quantum security service platform; wherein the first mobile phone number information is the mobile phone number information corresponding to the sending of the first SMS; Receive a third SMS message including quantum key information sent by the SMS gateway, and extract the quantum key from the quantum key information in the third SMS to inject the quantum key into the terminal device; wherein the quantum key is generated by the quantum security service platform based on the second SMS and sent to the SMS gateway.

[0109] In this embodiment, a quantum key application request sent by a terminal device is received through the card application of the SIM card, and a first text message is generated based on the quantum key application request; then, the first text message is sent to the text message gateway, so that the text message gateway generates a second text message based on the received first text message and the first mobile phone number information, and sends the second text message to the quantum security service platform; wherein the first mobile phone number information is the mobile phone number information corresponding to the sending of the first text message; then a third text message including quantum key information sent by the text message gateway is received, and the quantum key is extracted from the quantum key information of the third text message to charge the terminal device with the quantum key; wherein the quantum key is generated by the quantum security service platform based on the second text message and sent to the text message gateway. Compared with related quantum key charging technologies, this solution is based on SIM cards and SMS gateways, and performs online charging of quantum keys in the form of SMS. It does not require human intervention to complete the physical transfer of keys from the quantum key management center to each terminal device, which is more efficient and low-cost. At the same time, it reduces the risk of unauthorized access, tampering, loss or theft of quantum keys during circulation, and improves security. In addition, this charging method expands the channels for obtaining quantum keys. Users do not need to go to specific locations in person or go through complicated processes. Users only need to complete key charging through simple SMS operations, which improves user experience and solves the problem of insufficient flexibility of related quantum key charging technologies due to time and location limitations.

[0110] The specific execution steps can refer to the above-mentioned quantum key injection method embodiment for the card application applied to the SIM card, or the various steps of the above-mentioned quantum key injection method embodiment applied to the quantum security service platform, and can achieve the same technical effect. To avoid repetition, they will not be repeated here.

[0111] It should be noted that the electronic devices in the embodiments of the present application include: servers, terminals, or other devices except terminals.

[0112] The above electronic device structure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, the input unit may include a graphics processing unit (GPU) and a microphone, and the display unit may be configured with a display panel in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit includes a touch panel and at least one of other input devices. The touch panel is also called a touch screen. Other input devices may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0113] The memory can be used to store software programs and various data. The memory may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory may include a volatile memory or a non-volatile memory, or the memory may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DRRAM).

[0114] The processor may include one or more processing units; optionally, the processor integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor.

[0115] The embodiment of the present application also provides a storage medium, on which computer executable instructions are stored. When the computer executable instructions are executed by a processor, the various processes of the quantum key injection method embodiment for the card application of the SIM card, or the various processes of the quantum key injection method embodiment for the quantum security service platform can be implemented, and the same technical effect can be achieved. To avoid repetition, they will not be repeated here.

[0116] The processor is the processor in the electronic device described in the above embodiment. The storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0117] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the above-mentioned quantum key injection method embodiment for a card application applied to a SIM card, or the various processes of the above-mentioned quantum key injection method embodiment for a quantum security service platform, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0118] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0119] The embodiment of the present application also provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the above-mentioned quantum key injection method embodiment applied to the card application of the SIM card, or the various processes of the above-mentioned quantum key injection method embodiment applied to the quantum security service platform, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0120] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises one..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include multitasking and parallel processing according to the functions involved, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0121] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0122] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A quantum key injection method, characterized in that: A card application for user identification SIM card, the method comprising: Receiving a quantum key application request sent by a terminal device, and generating a first short message based on the quantum key application request; Sending the first SMS to a SMS gateway, so that the SMS gateway generates a second SMS based on the received first SMS and the first mobile phone number information, and sends the second SMS to the quantum security service platform; wherein the first mobile phone number information is the mobile phone number information corresponding to the sending of the first SMS; Receive a third SMS message including quantum key information sent by the SMS gateway, and extract the quantum key from the quantum key information in the third SMS message to inject the quantum key into the terminal device; wherein the quantum key is generated by the quantum security service platform based on the second SMS message and sent to the SMS gateway.

2. The method according to claim 1, characterized in that The generating a first text message based on the quantum key application request includes: Generate first quantum key application information according to the quantum key application request, and obtain first card information; wherein the first card information includes second mobile phone number information; Generate the first text message according to the first quantum key application information and the first card information; Among them, the second mobile phone number information is used for the quantum security service platform to receive the second text message, perform a first verification on the second text message based on the first mobile phone number information and the second mobile phone number information in the second text message, and generate the quantum key based on the second text message if the first verification passes; the first verification includes verifying whether the first mobile phone number information and the second mobile phone number information in the second text message are consistent.

3. The method according to claim 2, characterized in that The third short message also includes second card information; the first quantum key application information includes quantum key type information; before extracting the quantum key from the quantum key information in the third short message, it also includes: Based on the first short message, performing a second verification on the third short message; The step of extracting the quantum key from the quantum key information of the third short message includes: If the second verification is passed, extracting the quantum key from the quantum key information of the third text message, and storing the quantum key in the SIM card; The second check includes one or more of the following: Verifying whether the quantum key type information corresponding to the quantum key information in the third short message is consistent with the quantum key type information in the first short message; Verify whether the second card information in the third text message is consistent with the first card information in the first text message.

4. The method according to claim 2, characterized in that: The first card information also includes first SIM card identification information; the first SIM card identification information is used by the quantum security service platform to determine whether there is target binding information representing the binding of the first mobile phone number information and the first SIM card identification information in the binding information stored by the quantum security service platform, and if the target binding information does not exist, the first mobile phone number information is bound to the first SIM card identification information.

5. The method according to claim 2, characterized in that: The first short message includes a message authentication code MAC and an application data packet; The generating the first short message according to the first quantum key application information and the first card information includes: Generate the application data packet based on the first quantum key application information and the first card information; Generate the MAC based on a preset symmetric encryption algorithm and the application data packet; Based on the MAC and the application data packet, generate the first short message; The MAC is used by the SMS gateway to perform security verification on the first received SMS based on the preset symmetric encryption algorithm.

6. A quantum key injection method, characterized in that: Applied to a quantum security service platform, the method comprises: Receive a second text message sent by a text message gateway; wherein the second text message is generated by the text message gateway based on the received first text message and the first mobile phone number information; the first text message is generated by the card application of the SIM card based on the quantum key application request sent by the received terminal device; the first mobile phone number information is the mobile phone number information corresponding to the sending of the first text message; Based on the second short message, generate a quantum key; Based on the quantum key, a fourth text message including the quantum key is generated, and the fourth text message is sent to the text message gateway, so that the text message gateway generates a third text message including quantum key information based on the fourth text message, and sends the third text message to the SIM card; wherein the third text message is used for the card application of the SIM card to extract the quantum key from the quantum key information in the third text message to charge the terminal device with the quantum key.

7. The method according to claim 6, characterized in that The step of generating a quantum key based on the second short message includes: Based on the first mobile phone number information and the second mobile phone number information in the second short message, a first verification is performed on the second short message; wherein the first card information includes the second mobile phone number information; the first card information is obtained by the card application and is used to generate the first short message according to the first quantum key application information and the first card information; the first quantum key application information is generated by the card application according to the quantum key application request; If the first verification passes, generating the quantum key based on the second short message; Among them, the first verification includes verifying whether the first mobile phone number information and the second mobile phone number information in the second text message are consistent.

8. The method according to claim 7, characterized in that The third SMS also includes second card information; the first quantum key application information includes quantum key type information; the third SMS is used by the card application to perform a second verification on the third SMS based on the first SMS, and extract the quantum key from the quantum key information of the third SMS if the second verification is passed; the quantum key is stored in the SIM card; Wherein, the second verification includes one or more of the following: Verifying whether the quantum key type information corresponding to the quantum key information in the third short message is consistent with the quantum key type information in the first short message; Verify whether the second card information in the third text message is consistent with the first card information in the first text message.

9. The method according to claim 7, characterized in that: The first card information also includes first SIM card identification information; before generating the quantum key, it also includes: Determine whether there is target binding information representing the binding of the first mobile phone number information and the first SIM card identification information in the binding information stored in the quantum security service platform; If the target binding information does not exist, a binding relationship is established between the first mobile phone number information and the first SIM card identification information.

10. The method according to claim 7, characterized in that The first text message includes MAC and an application data packet; the application data packet is generated by the card application based on the first quantum key application information and the first card information; the MAC is generated by the card application based on a preset symmetric encryption algorithm and the application data packet, and is used by the text message gateway to perform security verification on the received first text message based on the preset symmetric encryption algorithm.

Citation Information

Patent Citations

  • End-to-end speech ciphering method, apparatus and system

    CN101309281A

  • Industry application account over-the-air transferring method, system and apparatus

    CN103778530A

  • Quantum key charging system, method and device, storage medium and program product

    CN118450381A

  • Method and system for providing device based authentication, integrity and confidentiality for transactions performed by mobile device users

    EP3040924A1