Key processing method, device and equipment and readable storage medium

By using the public key pool method on the terminal, centralized storage and on-demand distribution of keys are realized, which solves the problem of low key management efficiency on the terminal, improves storage space utilization, supports a variety of secure communication applications, and achieves The goal of "one terminal, one card, multiple applications".

CN118802142AActive Publication Date: 2024-10-18CHINA MOBILE COMM LTD RES INST +1
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410880756.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-10-18
Estimated Expiration
2044-07-02

AI Technical Summary

Technical Problem

It is difficult to achieve the goal of "one terminal, one card, multiple applications" on the terminal with existing technology, because the storage space of the secure medium such as the SIM card on the terminal is limited, resulting in low efficiency of key management and frequent offline recharge, which limits a variety of confidential communications. Application support.

Method used

By realizing the centralized storage and on-demand distribution of keys on the terminal, using the public key pool method, the key is shared between the terminal and the device, achieving efficient sharing and secure storage of keys, and supporting a variety of secure communication applications.

Benefits of technology

It effectively improves the storage space utilization of secure media such as SIM cards, supports secure interaction between multiple terminal applications and devices at low cost without changing the existing implementation mechanism, and solves the problem of terminal-side key storage and sharing. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802142A_ABST
    Figure CN118802142A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a key processing method, device and equipment and a readable storage medium, and the method comprises the steps: distributing a first key for a first application on a terminal in one or more keys stored in the terminal; wherein the stored one or more secret keys are secret keys shared between the terminal and the first device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and specifically to a key processing method, device, equipment and readable storage medium. Background Art

[0002] At present, in order to achieve the goal of "one terminal, one card, multiple applications", the security medium on the terminal usually opens up a dedicated storage area for each confidential communication application to store the quantum symmetric key pre-configured by the corresponding key management platform for upper-level applications to call, such as Figure 1 For example, multiple containers or multiple security domains are divided in the security medium, and a certain number of keys are stored in each container or security domain for use by a certain confidential communication application. When the terminal supports a large number of confidential communication applications, the storage space that can be allocated to each application is more limited, and users need to frequently recharge keys offline, thus limiting the realization of the goal of "one terminal, one card, multiple applications". Summary of the invention

[0003] The embodiments of the present application provide a key processing method, apparatus, device and readable storage medium to solve the problems of how to securely store and efficiently share terminal-side keys in the process of achieving the goal of "one terminal, one card, multiple applications".

[0004] In a first aspect, a key processing method is provided, which is applied to a terminal and includes:

[0005] Allocate a first key for a first application on the terminal from one or more keys stored in the terminal;

[0006] The one or more stored keys are keys shared between the terminal and the first device.

[0007] Optionally, the method further includes:

[0008] A second key is generated based on the first key; wherein the second key is a key shared between the terminal and the first device.

[0009] Optionally, the method further includes:

[0010] The first module obtains a first request of the first application and allocates the first key to the first application;

[0011] The result of the first key allocation is sent to the first application.

[0012] Optionally, the first module obtains a first request of the first application and allocates a first key to the first application, including:

[0013] The first module obtains a first request of the first application, and allocates the first key and a corresponding first key identifier to the first application;

[0014] The first key identifier is returned to the first application.

[0015] Optionally, the first request also includes first indication information;

[0016] A second key is generated based on the first key according to the first indication information.

[0017] Optionally, when the first module includes a middleware and an applet, the middleware obtains a first request of the first application, determines a first key identifier for the first application, and the applet determines the first key according to the first key identifier;

[0018] Or, when the first module includes a middleware and an applet, the middleware obtains a first request of the first application, forwards the first request to the applet, and the applet allocates a first key and a corresponding first key identifier to the first application;

[0019] or, when the first module includes middleware, the middleware obtains a first request of the first application, and the software cryptographic module allocates a first key and a corresponding first key identifier to the first application;

[0020] or, when the first module includes middleware, the middleware obtains a first request of the first application, determines a first key identifier for the first application, and the software cryptographic module determines the first key according to the first key identifier;

[0021] Or, when the first module includes an Applet, the Applet obtains a first request of the first application, and the Applet allocates the first key and a corresponding first key identifier to the first application.

[0022] Optionally, the Applet includes a first Applet and a second Applet;

[0023] The first Applet receives a first key acquisition request, the first Applet sends a second key acquisition request to the second Applet, the second Applet provides the first key to the first Applet, and the first Applet generates a second key according to the first key;

[0024] Or, the first Applet receives a first key acquisition request, the first Applet sends a second key acquisition request to the second Applet, the second Applet acquires the first key, generates a second key based on the first key, and provides the second key to the first Applet.

[0025] Optionally, the first Applet obtains the first key identifier according to the first key acquisition request or the first Applet allocates the first key identifier.

[0026] Optionally, the second key acquisition request includes the first key identifier.

[0027] Optionally, the first Applet returns the first key identifier to the middleware or the first application.

[0028] Optionally, the first Applet obtains first indication information according to the first key acquisition request or the first Applet determines the first indication information.

[0029] Optionally, the second key acquisition request also includes first indication information.

[0030] Optionally, the one or more keys are stored in one or more key pools of the terminal.

[0031] Optionally, a first message is sent to the first device, where the first message includes the first key identifier.

[0032] Optionally, the first message also includes the first indication information.

[0033] In a second aspect, a key processing method is provided, which is applied to a first device and includes:

[0034] Allocate a first key to a first application supported by the first device from among the one or more keys stored in the first device;

[0035] The one or more keys are keys shared between the first device and the terminal.

[0036] Optionally, the method further includes:

[0037] A second key is generated based on the first key; wherein the second key is a key shared between the first device and the terminal.

[0038] Optionally, allocating a first key to a first application supported by the first device from among the one or more keys stored in the first device includes:

[0039] Receiving a first message sent by a terminal, where the first message includes a first key identifier corresponding to the first key;

[0040] Obtain a first key according to the first key identifier.

[0041] Optionally, the first message also includes first indication information, and the first indication information is used to indicate generation of a second key based on the first key.

[0042] Optionally, when the first device includes a first platform and a second platform,

[0043] The second platform obtains a first message sent by the terminal; the first message includes a first key identifier corresponding to the first key;

[0044] The second platform sends a second message to the first platform, where the second message includes the first key identifier;

[0045] The first platform obtains a first key according to the first key identifier;

[0046] The first platform sends the first key or a second key generated based on the first key to the second platform.

[0047] Optionally, the first message also includes first indication information, and the second message includes the first indication information;

[0048] The first platform generates a second key based on the first key according to the first indication information.

[0049] Optionally, the method further includes:

[0050] The second platform generates a second key according to the first key sent by the first platform.

[0051] Optionally, the first message also includes first indication information, and the method further includes:

[0052] The second platform generates a second key based on the first key according to the first indication information.

[0053] Optionally, the one or more keys are stored in one or more key pools of the first device.

[0054] Optionally, when the first device includes a first platform and a second platform, the one or more keys are stored in one or more key pools of the first platform.

[0055] In a third aspect, a key processing device is provided, which is applied to a terminal and includes: a first transceiver unit and a first processing unit;

[0056] The first processing unit is used to allocate a first key to a first application on the terminal from one or more keys stored in the terminal;

[0057] The one or more stored keys are keys shared between the terminal and the first device.

[0058] In a fourth aspect, a key processing apparatus is provided, applied to a first device, comprising: a second transceiver unit and a second processing unit;

[0059] The second processing unit is configured to allocate a first key to a first application supported by the first device from among the one or more keys stored in the first device;

[0060] The one or more keys are keys shared between the first device and the terminal.

[0061] In a fifth aspect, a communication device is provided, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect or the second aspect.

[0062] In a sixth aspect, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect or the second aspect are implemented.

[0063] In the present application, among one or more keys stored in the terminal, a first key is allocated to the first application on the terminal; wherein the one or more keys stored are keys shared between the terminal and the first device. The terminal side implements the "centralized storage, on-demand allocation, and shared use" of keys through the method of a public key pool, which can effectively improve the storage space utilization rate of secure media such as SIM cards. In conjunction with the first device on the network side, secure interaction between different terminal applications and the first device can be achieved at a lower cost without changing the existing implementation mechanism, achieving the goal of "one terminal, one card" supporting a variety of different confidential communication applications, and solving the bottleneck problem of how to securely store and efficiently share keys on the terminal side in the process of achieving the goal of "one terminal, one card, multiple applications". BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0065] Figure 1This is a schematic diagram of the existing quantum secure communication key management mechanism;

[0066] Figure 2 It is one of the flowcharts of the key processing method provided in the embodiment of the present application;

[0067] Figure 3 This is the second flowchart of the key processing method provided in the embodiment of the present application;

[0068] Figure 4 It is a schematic diagram of the key management system architecture provided by an embodiment of the present application;

[0069] Figure 5 It is a schematic diagram of a single Applet card application implementation solution provided by an embodiment of the present application;

[0070] Figure 6 It is a business processing flow chart of a single Applet card application provided by an embodiment of the present application;

[0071] Figure 7 It is a schematic diagram of a dual Applet card application implementation solution provided by an embodiment of the present application;

[0072] Figure 8 This is the business processing flow in the case of dual Applet card application provided by the embodiment of the present application;

[0073] Fig. 9 It is one of the schematic diagrams of the communication processing device provided in the embodiment of the present application;

[0074] Fig.10 This is a second schematic diagram of a communication processing device provided in an embodiment of the present application;

[0075] Fig.11 It is a schematic diagram of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0077] The term "comprise" and any variation thereof in the specification and claims of the present application are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units need not be limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. In addition, the use of "and / or" in the specification and claims to indicate at least one of the connected objects, such as A and / or B, means that A alone, B alone, and A and B exist in three cases.

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

[0079] like Figure 1 As shown in the figure, in the quantum secure communication system, in order to ensure that the secure communication application on the terminal can securely access the quantum key management platform (referred to as the quantum key management platform) to obtain services, the secure communication application first needs to use the quantum key pre-provided by the quantum key management platform for identity authentication and establish a secure channel, and then transmit various types of information through the secure channel to complete business processing. The pre-provided quantum key is usually generated by the quantum key management platform based on the random number of the quantum random number generator (Quantum Random Numeral Generator, QRNG), and is filled in the terminal's secure medium through offline pre-configuration and distributed to the terminal user for use. The filled quantum key is shared between the quantum key management platform and the terminal device, and is a symmetric key. The quantum key management platform is responsible for the full life cycle management of the filled quantum key. There are many forms of secure media, such as Subscriber Identity Module (SIM) card, USB Key, TF card (Trans-flash Card), chip card, security chip and other hardware security media. A hardware cryptographic module can be formed based on the hardware security medium. In addition, there is also a software cryptographic module.

[0080] Figure 1The quantum key management platform in the text can also be called key management platform, quantum key service platform, quantum key platform, quantum key center, quantum service platform, quantum service center, quantum communication platform, quantum communication center, quantum communication service platform, quantum communication security service platform, etc., which is a device name composed of words such as quantum, cryptography, key, communication, security, service, management, center, platform, system, equipment, business, and application. It is used to provide the keys or cryptographic services required for confidential communication for user terminals, network devices, application service devices, etc., and can also be used to manage the required keys throughout their life cycle.

[0081] A terminal needs to support multiple secure communication applications at the same time, such as quantum high-definition encrypted calls (based on the fourth-generation (4G) / fifth-generation (5G) network standard call service), quantum encrypted calls based on IP voice transmission (Voice over Internet Protocol, VoIP), quantum encrypted messages / information, quantum encrypted data, quantum encrypted emails, quantum encrypted intercoms, quantum encrypted cloud disks, quantum encrypted cloud phones, etc., to meet the diverse security communication needs of users. Since the quantum cryptographic platform that provides cryptographic services for each application may be different, each secure communication application on the terminal needs to be able to use the corresponding quantum symmetric key to access the corresponding quantum cryptographic platform to obtain services, and the secure media hardware that can be supported on the terminal (for example, the SIM card on the mobile phone) is limited, which requires the terminal to be able to implement multiple quantum secure communication services based on one secure medium, that is, to have the ability of "one terminal, one card, multiple applications".

[0082] At present, in order to achieve the goal of "one terminal, one card, multiple applications", the security medium on the terminal usually opens up a dedicated storage area for each confidential communication application to store the quantum symmetric key pre-configured by the corresponding quantum key management platform for upper-level applications to call, such as Figure 1 For example, multiple containers or multiple security domains are divided in the security medium as storage space, and a certain number of quantum keys are stored in each container or security domain for use in a certain confidential communication application.

[0083] Mobile terminals in the form of mobile phones are communication devices used by users on a daily basis. SIM cards are the security media that must be supported by such devices. Large-capacity storage media such as USB Keys, TF cards, and independent security chips are currently no longer supported by mobile terminals.

[0084] SIM cards are cheap (3 to 4 yuan per card), but their storage space is very limited (hundreds to thousands of KB). If the limited storage space is divided into multiple fixed storage areas to store pre-configured keys for different confidential communication applications, it will cause a huge waste of storage resources. Confidential communication applications with low usage frequency occupy fixed storage space for a long time and rarely use the quantum keys stored in it, resulting in ineffective occupation of storage space. Confidential communication applications with high usage frequency will be quickly exhausted due to the small fixed storage space and small number of quantum keys stored. Quantum keys need to be frequently replenished through offline or online recharging, which brings poor application experience to users. When there are many types of confidential communication applications supported on the terminal, the storage space that can be allocated to each application is more limited, and users need to frequently recharge keys, which is unacceptable and fundamentally limits the realization of the goal of "one terminal, one card, multiple applications".

[0085] Therefore, an effective key management solution is needed to improve the utilization of key storage space of secure media such as SIM cards and meet the business development requirements of "one terminal, one card, multiple applications" for mobile terminals.

[0086] See also Figure 2 , an embodiment of the present application provides a key processing method, applied to a terminal, and the specific steps include: Step 21.

[0087] Step 21: Allocate a first key to a first application on the terminal from one or more keys stored in the terminal; wherein the one or more keys stored are keys shared between the terminal and the first device.

[0088] It can be understood that the first application on the terminal can be: the first application included or supported or loaded or executed or run or loaded or installed by the terminal, and of course there can be other similar understandings.

[0089] Optionally, one or more applications can be installed on the terminal, and the first application is one of them. For example, the application can be encrypted calls, encrypted messages, encrypted emails, encrypted data, encrypted cloud disks, and other types of encrypted communication applications that occur between terminals, between devices, between platforms, between terminals and devices, etc.

[0090] Application can be understood as application, and can also be called service, business, service, function, etc.

[0091] Optionally, allocating the first key to the first application on the terminal may include: determining, allocating, configuring, distributing, or acquiring the first key for the first application on the terminal. Of course, other similar understandings may also be possible.

[0092] In this embodiment, one or more keys may be stored on the terminal to form a first key pool (for example, Figure 4 ), wherein the first key is one or more keys in the first key pool.

[0093] Optionally, the terminal may allocate one first key or multiple first keys to the first application at one time, that is, in this embodiment, the number of first keys is not limited.

[0094] Optionally, the first device may be a quantum key management platform, and may also be called a key management platform, cryptographic service platform, quantum key platform, quantum key center, quantum service platform, quantum service center, quantum communication platform, quantum communication center, quantum communication service platform, quantum communication security service platform, etc., which are device names composed of words such as quantum, cryptography, key, communication, security, service, management, center, platform, system, equipment, business, and application.

[0095] Optionally, the first device can be used to provide keys required for confidential communications for terminals, network devices, application service devices, etc., or the first device can also be used to perform full life cycle management of the required keys.

[0096] Optionally, the first device may be a single-platform device, or may be a multi-platform device, for example, the first device includes a first platform and a second platform.

[0097] In this embodiment, the first platform may also be referred to as a primary platform or a general key management platform, and the second platform may also be referred to as a secondary platform or a business key management platform. The secondary platform may include multiple key management platforms, and different key management platforms correspond to different businesses. Figure 4 The secondary platform may include but is not limited to the key management platform (business A), the key management platform (business B) and the key management platform (business C).

[0098] In one embodiment of the present application, the method further includes:

[0099] A second key is generated based on the first key; wherein the second key is a key shared between the terminal and the first device.

[0100] It should be noted that the first key is a shared key between the terminal and the first device, and the first key may be pre-configured by the first device into the terminal. The second key is a working key generated between the terminal and the first device for secure communication and business operation.

[0101] Optionally, the second key is derived from the first key, and the second key is generated according to different security needs. For example, multiple second keys can be generated based on the first key, and the second key is used as a working key for secure communication between the terminal and the first device to achieve different security purposes or different security roles. Operations of different users or different roles should be protected with different keys to avoid multiple uses of the same key, so as to improve the security of the communication system.

[0102] Optionally, the types of the second key include: a second key for integrity protection, a second key for encryption, a second key for an uplink communication direction, a second key for a downlink direction, a second key for communicating with a key management platform (service A) in the secondary platform, a second key for communicating with a key management platform (service B) in the secondary platform, a second key for communicating with a key management platform (service C) in the secondary platform, and so on.

[0103] Optionally, during the second key generation process, multiple different second keys can be generated based on the first key by adding parameter information such as function (encryption, integrity protection), direction (uplink, downlink), secondary platform identification, timestamp, random number, classic key (for example, key obtained by classic cryptographic methods), etc.

[0104] In one implementation of the present application, allocating a first key to a first application on the terminal includes:

[0105] The first module obtains a first request of the first application and allocates the first key to the first application;

[0106] The result of the first key allocation is sent to the first application.

[0107] Optionally, the first module may be a cryptographic module for implementing cryptographic operations such as secure storage of keys, encryption and decryption operations. The cryptographic module may be a software cryptographic module, a hardware cryptographic module, or a combination of software and hardware cryptographic modules. The software cryptographic module may be included in the middleware; the hardware cryptographic module usually includes the middleware and physical security media (for example, the middleware software and the SIM card), and a corresponding software program (i.e., the card application) is required in the security media to implement the cryptographic operation function. The card application (Applet) is a software program that implements cryptographic operations in hardware security media such as SIM cards and TF cards, and is an essential component of the hardware cryptographic module.

[0108] In one implementation of the present application, the first module obtains a first request of the first application and allocates a first key to the first application, including:

[0109] The first module obtains a first request of the first application, and allocates the first key and a corresponding first key identifier to the first application;

[0110] The first key identifier is returned to the first application.

[0111] For example, the first application is a confidential communication application A, and the first key identifier may be QKID A .

[0112] In one implementation of the present application, the first request also includes first indication information; the first module generates the second key based on the first key according to the first indication information. That is, the first request can indicate the method for generating the key.

[0113] There are several implementation methods for the first module mentioned in the embodiment of the present invention to generate the second key based on the first key:

[0114] (1) When the first module includes middleware and an applet (i.e., a password management applet), Figure 5 As shown, the middleware obtains the first request of the confidential communication application A and determines the QKID for the confidential communication application A. A , Applet (i.e., password management Applet) based on the QKID A Determine QK A .

[0115] (2) When the first module includes middleware and an applet (i.e., a password management applet), Figure 5 As shown, the middleware obtains the first request of the secure communication application A, forwards the first request to the Applet (ie, the password management Applet), and the Applet allocates QK A and QKID A .

[0116] (3) When the first module includes a middleware, the middleware obtains a first request from a secure communication application A, and the software cryptographic module of the middleware allocates QK to the secure communication application A. A and QKID A .

[0117] (4) When the first module includes middleware, the middleware obtains the first request of the secure communication application A and determines the QKID for the secure communication application A. A , the software cryptographic module of the middleware is based on QKID A Assign QK to secure communication application A A .

[0118] (5) When the first module includes an Applet, such as Figure 5As shown (excluding middleware at this time, Figure 5 The middleware in is optional), Applet obtains the first request of the confidential communication application A, and Applet allocates QKID to the confidential communication application A A and QK A .

[0119] It should be noted that the terminal in the embodiment of the present invention may include one or more Applets. Figure 5 The following shows a case where an Applet is included. Figure 7 A case where two applets are included is shown.

[0120] In one embodiment of the present application, Figure 7 As shown, the Applet includes a first Applet and a second Applet;

[0121] The first Applet receives a first key acquisition request (in this case, the Applet may or may not include middleware. For example, if there is middleware, this request may be Figure 8 Step 4A (key distribution) of the request without middleware can be Figure 8 In step 2A (i.e., key acquisition instruction), the first Applet sends a second key acquisition request to the second Applet, and the second Applet provides the first key QK to the first Applet A The first Applet uses the first key QK A Generate the second key Qkey A ;

[0122] Or, the first Applet receives a first key acquisition request, the first Applet sends a second key acquisition request to the second Applet, the second Applet acquires the first key, generates a second key based on the first key, and provides the second key to the first Applet.

[0123] The first Applet mentioned above can also be called a cryptographic service Applet, and the second Applet can also be called a key storage Applet. Figure 7 As shown, the cryptographic service Applet may include but is not limited to cryptographic application A, cryptographic application B and cryptographic application C. The key storage Applet includes functional modules such as key pool and cryptographic operation capability, and there is a service interface between the cryptographic service Applet and the key storage Applet.

[0124] In one embodiment of the present application, the first Applet obtains the first key identifier according to the first key acquisition request or the first Applet allocates the first key identifier. That is, the first key identifier may be allocated by the terminal and sent to the first Applet through the first key acquisition request; or it may be not allocated by the terminal but directly allocated by the first Applet.

[0125] In one embodiment of the present application, the second key acquisition request includes the first key identifier. That is, no matter whether the first key identifier is assigned by the terminal or the first Applet, it needs to be brought to the second Applet through the second key acquisition request so that the second Applet can assign the first key according to the first key identifier.

[0126] In one embodiment of the present application, the first Applet returns the first key identifier to the middleware or the first application. That is, when the first module includes the middleware, the first Applet returns the first key identifier to the middleware; when the first module does not include the middleware, the first Applet returns the first key identifier to the first application.

[0127] In one implementation of the present application, the first Applet obtains the first indication information according to the first key acquisition request or the first Applet determines the first indication information. That is, the first indication information can be determined by the terminal and sent to the first Applet through the first key acquisition request; or it can be determined by the first Applet itself.

[0128] In one embodiment of the present application, the second key acquisition request also includes first indication information. That is, no matter whether the first indication information is determined by the terminal or the first Applet, it needs to be brought to the second Applet through the second key acquisition request, so that the second Applet can generate the second key according to the first key based on the first indication information.

[0129] In one implementation of the present application, the one or more keys are stored in one or more key pools of the terminal.

[0130] In an implementation manner of the present application, the method further includes: sending a first message to the first device, wherein the first message includes the first key identifier. The first message here may be sent by a first application on the terminal.

[0131] Optionally, the first message also includes the first indication information, which is used to instruct the first device on the network side on a method for generating the second key based on the first key.

[0132] Optionally, the first message may be an authentication request message, which includes authentication information encrypted and / or integrity protected using the first key or the second key, and the second platform uses the first key or the second key obtained from the first platform to process the authentication information in the received authentication request message. The first message may also be a secure channel establishment request, a (quantum) session key distribution request, a (quantum) key update request, a (quantum) key destruction request, etc.

[0133] In the present application, among one or more keys stored in the terminal, a first key is allocated to the first application on the terminal; wherein the one or more keys stored are keys shared between the terminal and the first device. The terminal side implements the "centralized storage, on-demand allocation, and shared use" of keys through the method of a public key pool, which can effectively improve the storage space utilization rate of secure media such as SIM cards. In conjunction with the first device on the network side, secure interaction between different terminal applications and the first device can be achieved at a lower cost without changing the existing implementation mechanism, achieving the goal of "one terminal, one card" supporting a variety of different confidential communication applications, and solving the bottleneck problem of how to securely store and efficiently share keys on the terminal side in the process of achieving the goal of "one terminal, one card, multiple applications".

[0134] See also Figure 3 , an embodiment of the present application provides a key processing method, which is applied to a first device, and the specific steps include: Step 31.

[0135] Step 31: Allocate a first key to a first application supported by the first device from among the one or more keys stored in the first device;

[0136] The one or more keys are keys shared between the first device and the terminal.

[0137] See also Figure 4, the first application on the terminal (such as confidential communication application A) and the first application (service A) supported by the first device (such as a key management system) are respectively the client and server software or hardware that implement a certain confidential communication service function. For example, in an encrypted call application, an encrypted call client software is installed on the terminal, and the software is the first application on the terminal. Correspondingly, on the key management platform side, the first device is installed with a first application for providing services to support the terminal to implement the encrypted call function. The first application on the terminal and the first application supported by the first device use the assigned first key or the second key generated based on the assigned first key to perform secure communication or secure interaction to complete the processing of business information. In addition to encrypted calls, the first application can also be encrypted messages, encrypted data, encrypted emails, encrypted data, encrypted cloud disks, etc., which occur between terminals, between devices, between platforms, between terminals and devices or platforms, and other types of encrypted communication applications.

[0138] Application can be understood as application, and can also be called service, business, service, function, etc.

[0139] In one embodiment of the present application, the method further includes:

[0140] A second key is generated based on the first key; wherein the second key is a key shared between the first device and the terminal.

[0141] In one implementation of the present application, allocating a first key to a first application supported by the first device from among the one or more keys stored in the first device includes:

[0142] Receiving a first message sent by a terminal, where the first message includes a first key identifier corresponding to the first key;

[0143] Obtain a first key according to the first key identifier.

[0144] In one implementation manner of the present application, the first message further includes first indication information, and the first indication information is used to indicate that a second key is generated based on the first key.

[0145] Optionally, the first message may be referred to as a service request.

[0146] In the above embodiment, the first device is a unified device.

[0147] In one embodiment of the present application, when the first device includes a first platform and a second platform,

[0148] The second platform obtains a first message sent by the terminal; the first message includes a first key identifier corresponding to the first key;

[0149] The second platform sends a second message to the first platform, where the second message includes the first key identifier;

[0150] The first platform obtains a first key according to the first key identifier;

[0151] The first platform sends the first key or a second key generated based on the first key to the second platform.

[0152] There are three possible implementations:

[0153] (1) The first platform sends the first key to the second platform, so that the second platform uses the first key for security processing;

[0154] (2) The first platform sends the first key to the second platform, and the second platform further derives the second key based on the first key and uses the second key for security processing;

[0155] (3) After obtaining the first key, the first platform uses the first key to generate a second key, and then sends the second key to the second platform so that the second platform can use the second key for security processing.

[0156] When corresponding to the above-mentioned situation (1), the first message may or may not carry the first indication information.

[0157] In the case of the above (2), when the first message includes the first indication information, the second platform generates the second key based on the first key according to the first indication information. When the first message does not include the first indication information, the second platform generates the second key based on the first key according to the default method.

[0158] When corresponding to the above situation (3), when the first message includes the first indication information and the second message also includes the first indication information (the first indication information comes from the terminal), the first platform generates the second key based on the first key according to the first indication information. When the first message does not include the first indication information and the second message includes the first indication information (the first indication information comes from the second platform), the first platform generates the second key based on the first key according to the first indication information. When the second message does not include the first indication information, the first platform generates the second key based on the first key according to the default method.

[0159] Optionally, the first message may be referred to as a service request, and the second message may be referred to as a key request.

[0160] It should be noted that the first platform may also be referred to as a primary platform or a general key management platform, and the second platform may also be referred to as a secondary platform or a business key management platform. The secondary platform may include multiple key management platforms, and different key management platforms may correspond to one or more different businesses. It is understandable that the specific names of the first platform and the second platform are not limited in this embodiment.

[0161] exist Figure 4 In the architecture shown, the secondary platform obtains the first message sent by the secure communication application A on the terminal, and the first message includes QK A Corresponding QKID A ; The secondary platform sends a second message to the primary platform, and the second message includes QKID A ; First-level platform according to QKID A Get QK A ; The first-level platform will QK A Or based on QK A Generated QKey A Sent to the key management platform of the secondary platform (business A), the secondary platform directly uses QK A Perform security processing (for example, secure processing of the first message), or the secondary platform uses QK A Generate QKey A And use QKey A To perform security processing (for example, security processing of the first message), or the secondary platform receives the QKey sent by the primary platform A And use QKey A to perform security processing (for example, perform security processing on the first message).

[0162] Optionally, the first message may be an authentication request message, which includes authentication information encrypted and / or integrity protected using the first key or the second key, and the second platform uses the first key or the second key obtained from the first platform to process the authentication information in the received authentication request message. The first message may also be a secure channel establishment request, a (quantum) session key distribution request, a (quantum) key update request, a (quantum) key destruction request, etc.

[0163] In one implementation of the present application, the one or more keys are stored in one or more key pools of the first device.

[0164] In one implementation of the present application, when the first device includes a first platform and a second platform, one or more keys are stored in one or more key pools of the first platform.

[0165] In the present application, among the one or more keys stored in the first device, a first key is allocated to the first application supported by the first device; wherein the one or more keys are keys shared between the first device and the terminal. The terminal side implements the "centralized storage, on-demand allocation, and shared use" of keys through the method of a public key pool, which can effectively improve the storage space utilization rate of secure media such as SIM cards. In conjunction with the first device on the network side, it is possible to achieve secure interaction between different terminal applications and the first device at a lower cost without changing the existing implementation mechanism, achieving the goal of "one terminal, one card" supporting a variety of different confidential communication applications, and solving the bottleneck problem of how to securely store and efficiently share the terminal side keys in the process of achieving the goal of "one terminal, one card, multiple applications".

[0166] In the following embodiments, the first application is a confidential communication application A or a confidential communication application B or a confidential communication application C, the first module includes a middleware and an Applet, the Applet includes a cryptographic application A, a cryptographic application B, a cryptographic application C, a key pool and cryptographic computing capabilities, the first platform is a first-level platform, and the second platform is a second-level platform.

[0167] like Figure 4 As shown, a storage space is opened up in the secure medium of the terminal to store the keys charged by the key management system. For example, the secure medium is used to store the keys generated by the key management system based on QRNG, and a shared key pool (Key Pool) is formed in the secure medium. The keys in the key pool are not divided by application or business attributes. They are key resources commonly owned by multiple applications on the terminal (for example, confidential communication application A, confidential communication application B, and confidential communication application C), and are allocated to upper-layer applications on demand. Before allocation and use, the keys in the shared key pool have no application attributes or business attributes and are not owned by any confidential communication application alone.

[0168] In order to manage the shared keys in the secure medium, the key management platform ( Figure 4 ) is also divided into a general key management platform (first-level platform) and a business-oriented key management platform (second-level platform), thus forming a quantum key management system. The first-level platform can be understood as Figure 1It integrates the common parts of multiple existing key management platforms to realize general cryptographic operations and key management functions. For example, it supports symmetric encryption algorithms, asymmetric encryption algorithms, post-quantum cryptography algorithms, hash algorithms, etc., completes information encryption and decryption processing, message authentication code (MAC) / hash message authentication code (HMAC) calculation, key derivation function (KDF) calculation, etc., and implements full life cycle management of keys including generation, distribution, use, update, destruction, recovery, and archiving.

[0169] The primary platform is responsible for injecting pre-configured keys into the secure medium offline. The pre-configured keys are stored and maintained in the primary platform and the secure medium. They are symmetric keys shared by the key management system and the user terminal. Before being allocated to specific confidential communication applications, the shared keys in the public resource pool on both sides have no application attributes or business attributes. As the business occurs, they are allocated to different secondary platforms on demand. The primary platform manages the keys injected into the terminal throughout their life cycle online. The primary platform supports docking with multiple secondary platforms and provides key services for different secondary platforms.

[0170] based on Figure 4 The system architecture is shown in the figure. Two solutions for implementing the key pool in the super SIM card of the terminal are introduced below.

[0171] Super SIM card is a highly secure carrier for carrying various sensitive digital assets, which has evolved from traditional SIM card (storing user unique identification code and network key for mobile communication network access authentication) to expanding storage space, adding security algorithms, supporting dynamic application loading, and near field communication (NFC) card swiping capabilities. It can serve digital identity, access control, payment, transportation and other industry applications more widely. Applet is a small application program (also called card application) written in Java programming language, which can be downloaded and installed in the super SIM card to realize specific application functions.

[0172] Solution 1: Single card application solution

[0173] like Figure 5As shown, in the super SIM card security medium, the password management card application is downloaded and installed. The card application includes a key resource pool, a cryptographic operation capability, and several smart password key cryptographic applications (referred to as password applications). The password management card application provides services such as cryptographic resource storage and cryptographic operation for the confidential communication application on the terminal. The key pool is responsible for storing a certain number of keys, which are allocated to confidential communication applications on demand. The keys are charged by the first-level platform through the charging interface. The cryptographic operation capability is responsible for calling the super SIM card cryptographic engine to complete symmetric encryption and decryption, asymmetric encryption and decryption, signature verification, hashing and other operations, and realize key derivation, information encryption and decryption, integrity protection and other processing. The smart password key cryptographic application corresponds to each confidential communication application on the terminal. For example, the smart password key cryptographic application follows GM / T 0016 "Intelligent Password Key Cryptographic Application Interface Specification". Each cryptographic application includes a PIN (Personal Identification Number) code, several files and several containers, and the containers store the asymmetric keys, symmetric keys, digital certificates, etc. required for the confidential communication application, which can be accessed by the corresponding confidential communication application on the terminal. Multiple confidential communication applications on the terminal access the card application in the super SIM card through the middleware software. The middleware is responsible for managing and maintaining the keys in the key pool, including allocating keys to users, deleting used keys, maintaining the number of keys, the next usable key (implemented by maintaining pointer variables or key IDs), etc. The key status information maintained by the middleware is written into the file of the super SIM card password management card application for storage. When multiple confidential communication applications access the calling card application at the same time, the middleware needs to manage conflicts for concurrent access requests to avoid allocating the same key in the resource pool to different applications for use, and to prevent the leakage of protected information. The middleware is an optional software module. In the absence of the middleware, multiple confidential communication applications on the terminal directly access the card application in the super SIM card through the interface. At this time, the card application is responsible for conflict management.

[0174] Figure 6 The paper presents a scheme in which multiple secure communication applications obtain keys on demand by accessing a shared key pool and interacting with the corresponding key management platform to complete business processing.

[0175] Step 1A: The confidential communication application A on the terminal initiates a service that requires the use of the quantum key pre-charged in the super SIM card to securely communicate with the corresponding secondary platform (service A) to complete the service processing.

[0176] For example, this service can be a login service, that is, terminal application A logs in to the secondary platform, uses the pre-charged key to complete identity authentication, and establishes a secure channel with the secondary platform; or it can be an encrypted call or quantum encrypted message transmission service, that is, terminal application A accesses the secondary platform to apply for a session key, and the terminal and the secondary platform use the pre-charged key to securely protect the distributed session key.

[0177] Step 2A: The secure communication application A on the terminal calls the software interface to send an instruction to the middleware, requesting the allocation of one or more pre-filled keys (QK A ).

[0178] Optionally, the communication application A on the terminal can carry Qkey when the interface indicates the call A Generates information indicating the QKey A The way of generating .

[0179] Step 3A: The middleware queries the status information of the shared key resource pool in the super SIM card (e.g., the next available key), and allocates one or more keys required for the secure communication application A from the resource pool, whose identifiers are QKIDs. A After these keys are allocated to the confidential communication application A, they will be marked and no longer allocated to other applications to avoid the security risk of multiple uses of the same key.

[0180] Step 4A: The middleware calls the super SIM card key management card application interface and instructs it to A The corresponding key is assigned to the secure communication application A.

[0181] Optionally, the middleware can also indicate the Qkey to the password management card application A For example, in step 2A, when the secure communication application A on the terminal indicates, the middleware indicates Qkey according to the instruction of the secure communication application A on the terminal. A In the absence of a specification, the middleware indicates QKey according to the default business logic of the secure communication application A on the terminal. A The way of generating .

[0182] Step 5A: The password management card application obtains the QKID from the key pool A The corresponding key QK A , assign it to cryptographic application A.

[0183] Step 6A: The password management card application uses the business processing logic of the confidential communication application A. The password application A in the password management card application can further A Generate QKey A, to meet business needs.

[0184] Optional, QKey A There are many ways to produce, for example,

[0185] Method 1: Qkey A That is QK A itself.

[0186] Method 2: Qkey A Based on QK A Derived from, using the Key Derivation Function (KDF) calculation. In step 4A, the middleware specifies Qkey A In the case of the generation method, the cryptographic application A operates according to the instructions of the middleware; if the middleware does not specify, the cryptographic application A generates QKey according to the default business logic of the secure communication application A on the terminal A .

[0187] Step 7A: The password management card application returns the key distribution processing result.

[0188] Step 8A: The middleware returns the key distribution processing result to the secure communication application A on the terminal. It carries the QKID A Identification information.

[0189] Step 9A: Confidential communication application A sends a service request message (i.e., the first message) to the secondary platform (service A) that provides services for it, which carries the QKID A Identification information, optional Qkey A Generates mode instructions.

[0190] It is understandable that the above service request is a high-level concept, representing various service processing requests sent by application A to its secondary service platform. Mapped to the specific service processing mechanism, the request can be a secure channel establishment request, a session key application request, etc. A The generation method instructions are used to describe the QKey A The way of generating .

[0191] Step 10A: Since the key resource corresponding to the key pool in the terminal super SIM card is maintained by the first-level platform, the second-level platform sends a key request message (i.e., the second message) to the first-level platform to obtain the quantum key required to interact with the secure communication application A on the terminal. The message carries QKID A Identification information, optional Qkey A Generate method indication information. If the service request message received by the secondary platform carries Qkey AThe generation method indication information is filled in the key request message according to the service request message. If the service request message does not carry Qkey A Generation method indication information, the Qkey in the key request message A The generation method indication information is filled in by the secondary platform according to the agreed default method in order to obtain a key that meets the needs of application A.

[0192] Step 11A: Based on QKID A Identification information, the first-level platform obtains the quantum symmetric key QK from the key pool corresponding to the terminal security medium A .

[0193] Step 12A: According to Qkey A Generate method indication information, the first-level platform is based on QK A Generate QKey A To meet the business needs. If the received key request message does not carry Qkey A The generation method indicates information, and the first-level platform generates Qkey according to the agreed default method A .QKey A There are many ways to generate the , some examples can be found in step 6A.

[0194] Step 13A: The primary platform returns a key response message, which carries QKey A .

[0195] Step 14A: Secondary Platform Using QKey A Process the service request message.

[0196] Step 15A: After processing is completed, the secondary platform returns a response message to the confidential communication application A on the terminal.

[0197] Steps 1B to 15B: are the basic process of the secure communication application B on the terminal applying to use the quantum key in the public resource pool of the super SIM card to complete the service processing with the secondary platform (service B). This process is similar to steps 1A to 15A and will not be repeated here.

[0198] It can be seen that by using the public key pre-filled in the key management Applet, the terminal can achieve "one terminal, one card, multiple applications".

[0199] Solution 2: Dual-card application solution.

[0200] The single-card application solution super SIM card requires fewer applets to be installed, saving space. However, if the Applet needs to be upgraded online, the quantum key stored in the resource pool will be lost and needs to be recharged offline through the first-level platform, resulting in a poor user experience.

[0201] To this end, we further propose Figure 7 The dual-card application scheme shown in the figure. In the super SIM card security medium, download and install the password service card application and the key storage card application.

[0202] See also Figure 7 , the key storage card application provides services such as cryptographic resource storage and cryptographic operations for the confidential communication applications on the terminal. The cryptographic service card application can contain several intelligent cryptographic key cryptographic applications (referred to as cryptographic applications). Each cryptographic application corresponds to a confidential communication application on the terminal device and is implemented in accordance with GM / T 0016 "Intelligent Cryptographic Key Cryptographic Application Interface Specification". Each cryptographic application contains a personal identification number (PIN) code, several files and several containers, which store asymmetric keys, symmetric keys, digital certificates, etc. required for the confidential communication application and can be accessed by the corresponding confidential communication application. The key storage card application contains a key pool and cryptographic operation capabilities, and is responsible for storing a certain number of keys and performing cryptographic operations. The key storage card application supports the charging interface, and the pre-stored keys are charged by the first-level platform through the charging interface. In addition, it also supports the service interface, allowing the keys allocated to the confidential communication application on demand to be provided to the corresponding cryptographic application, providing key support for the confidential communication application on the terminal.

[0203] Figure 8 Taking confidential communication application A as an example, the system working mechanism under this scheme is explained.

[0204] Steps 1A to 4A, Steps 9A to 16A and Figure 6 In the case of single Applet card application, the processing of the secure communication application A on the terminal, the middleware, the primary platform, and the secondary platform is the same, which will not be repeated here. The difference is that in this embodiment, after the cryptographic service Applet receives the key distribution instruction issued by the middleware step 4A, the interaction and processing between the two card applications in the super SIM card are described as follows:

[0205] Step 5A: The cryptographic service Applet sends a key acquisition instruction to the key storage Applet through the internal interface of the super SIM card, requesting to obtain the QKID A The corresponding key QK A .

[0206] Step 6A: The Key Storage Applet returns the requested key QK A .

[0207] Step 7A: Cryptographic application A in the cryptographic service applet uses QK A Generate QKeyA .

[0208] Step 8A: Return a response indication that the required key is successfully prepared to the middleware.

[0209] It should be noted that in steps 5A to 7A, based on QK A Generate QKey A The operation can also be performed by the key storage Applet. In this case, in step 5A, the cryptographic service Applet needs to indicate Qkey to the key storage Applet. A After that, the key storage Applet generates QKey A And the generated QKey A Return to the password service applet. A In the case of the generation method, the key storage Applet can generate QKey according to the default method A .

[0210] The above embodiment provides a scenario where the application on the terminal and the secondary platform use the keys in the shared key pool to securely interact and complete business processing. In addition, the solution of the shared key pool proposed in this embodiment is also applicable to the scenario where the terminal application communicates securely with the primary platform. At this time, the middleware or confidential communication application will obtain the key from the key pool as needed and communicate directly with the primary platform. The specific process will not be repeated here.

[0211] It should be noted that, in addition to the SIM card, although the U shield (USB Key), TF card, chip card, security chip, software password module, etc. have larger space and can store more keys, they also have the need to improve the utilization of storage space. This embodiment is also applicable to other types of security media.

[0212] The existing technology uses a dedicated storage space to store pre-configured keys for each confidential communication application, so that the limited storage space of the SIM card is fixedly occupied by each application, resulting in a large waste of storage resources. The limited storage space is divided into small pieces, and each confidential communication application can only be allocated a small space to store a small amount of keys, which cannot meet the application's usage requirements. Specially customized large-capacity SIM cards can meet application needs, but the cost is high (about 50 yuan / card), and operators have to invest a huge amount of funds to develop their business.

[0213] The public key pool method used in this application realizes the "centralized storage, on-demand allocation, and shared use" of the terminal side key, which can effectively improve the storage space utilization rate of security media such as SIM cards. In conjunction with the first device on the network side, different terminal applications can interact securely with the first device at a lower cost without changing the existing implementation mechanism, achieving the goal of "one terminal, one card" supporting a variety of different confidential communication applications, and solving the bottleneck problem of how to safely store and efficiently share the terminal side key in the process of achieving the goal of "one terminal, one card, multiple applications". This embodiment is also applicable to other forms of security media and has a wide range of applications.

[0214] See also Fig. 9 , an embodiment of the present application provides a key processing device, applied to a terminal, the device 900 includes: a first transceiver unit 901 and a first processing unit 902;

[0215] The first processing unit 902 is used to allocate a first key to a first application on the terminal from one or more keys stored in the terminal;

[0216] The one or more stored keys are keys shared between the terminal and the first device.

[0217] In an implementation manner of the present application, the first processing unit 902 is further configured to: generate a second key based on the first key; wherein the second key is a key shared between the terminal and the first device.

[0218] In an implementation manner of the present application, the first processing unit 902 is further configured to: obtain, by the first module, a first request of the first application, and allocate the first key to the first application;

[0219] The result of the first key allocation is sent to the first application.

[0220] In an embodiment of the present application, the first processing unit 902 is further configured to: the first module obtains the first request of the first application, allocates the first key and the corresponding first key identifier to the first application; and returns the first key identifier to the first application.

[0221] In an implementation manner of the present application, the first request also includes first indication information; the first processing unit 902 is further configured to generate a second key based on the first key according to the first indication information.

[0222] In one implementation of the present application, when the first module includes a middleware and a card application Applet, the middleware obtains a first request of the first application, determines a first key identifier for the first application, and the Applet determines a first key according to the first key identifier;

[0223] Or, when the first module includes a middleware and an applet, the middleware obtains a first request of the first application, forwards the first request to the applet, and the applet allocates a first key and a corresponding first key identifier to the first application;

[0224] or, when the first module includes a middleware, the middleware obtains a first request of the first application, and a software cryptographic module of the middleware allocates a first key and a corresponding first key identifier to the first application;

[0225] or, when the first module includes middleware, the middleware obtains a first request of the first application, determines a first key identifier for the first application, and a software cryptographic module of the middleware determines a first key according to the first key identifier;

[0226] Or, when the first module includes an Applet, the Applet obtains a first request of the first application, and the Applet allocates the first key and a corresponding first key identifier to the first application.

[0227] In one embodiment of the present application, the Applet includes a first Applet and a second Applet;

[0228] The first Applet receives a first key acquisition request, the first Applet sends a second key acquisition request to the second Applet, the second Applet provides the first key to the first Applet, and the first Applet generates a second key according to the first key;

[0229] Or, the first Applet receives a first key acquisition request, the first Applet sends a second key acquisition request to the second Applet, the second Applet acquires the first key, generates a second key based on the first key, and provides the second key to the first Applet.

[0230] In one implementation manner of the present application, the first Applet obtains the first key identifier according to the first key acquisition request or the first Applet allocates the first key identifier.

[0231] In one implementation manner of the present application, the second key acquisition request includes the first key identifier.

[0232] In one implementation manner of the present application, the first Applet returns the first key identifier to the middleware or the first application.

[0233] In one implementation manner of the present application, the first Applet obtains the first indication information according to the first key acquisition request or the first Applet determines the first indication information.

[0234] In one implementation manner of the present application, the second key acquisition request also includes first indication information.

[0235] In one implementation of the present application, the one or more keys are stored in one or more key pools of the terminal.

[0236] In one implementation manner of the present application, a first message is sent to the first device, where the first message includes the first key identifier.

[0237] In one implementation manner of the present application, the first message also includes the first indication information.

[0238] The device provided in the embodiment of the present application can achieve Figure 2 The various processes implemented by the method embodiment shown achieve the same technical effect and will not be described again here to avoid repetition.

[0239] See also Fig.10 , an embodiment of the present application provides a key processing device, applied to a first device, the device 1000 includes: a second transceiver unit 1001 and a second processing unit 1002;

[0240] The second processing unit 1002 is configured to allocate a first key to a first application supported by the first device from one or more keys stored in the first device;

[0241] The one or more keys are keys shared between the first device and the terminal.

[0242] In one implementation of the present application, the second processing unit 1002 is further configured to: generate a second key based on the first key; wherein the second key is a key shared between the first device and the terminal.

[0243] In one embodiment of the present application, the second processing unit 1002 is further used to: receive a first message sent by the terminal, the first message including a first key identifier corresponding to the first key; and obtain the first key according to the first key identifier.

[0244] In one implementation manner of the present application, the first message further includes first indication information, and the first indication information is used to indicate that a second key is generated based on the first key.

[0245] In one embodiment of the present application, when the first device includes a first platform and a second platform,

[0246] The second platform obtains a first message sent by the terminal; the first message includes a first key identifier corresponding to the first key;

[0247] The second platform sends a second message to the first platform, where the second message includes the first key identifier;

[0248] The first platform obtains a first key according to the first key identifier;

[0249] The first platform module sends the first key or a second key generated based on the first key to the second platform.

[0250] In one implementation of the present application, the first message further includes first indication information, and the second message includes the first indication information;

[0251] The first platform generates a second key based on the first key according to the first indication information.

[0252] In one implementation of the present application, the one or more keys are stored in one or more key pools of the first device.

[0253] In one implementation of the present application, when the first device includes a first platform and a second platform, one or more keys are stored in one or more key pools of the first platform.

[0254] The device provided in the embodiment of the present application can achieve Figure 3 The various processes implemented by the method embodiment shown achieve the same technical effect and will not be described again here to avoid repetition.

[0255] like Fig.11 As shown, the embodiment of the present application also provides a communication device 1100, including a processor 1101, a memory 1102, a program or instruction stored in the memory 1102 and executable on the processor 1101, and the program or instruction is executed by the processor 1101 to implement the above Figure 2 or Figure 3 The various processes of the method embodiment can achieve the same technical effect. To avoid repetition, they will not be described here.

[0256] The embodiment of the present application also provides a readable storage medium on which a program or instruction is stored. When the program or instruction is executed by a processor, the above Figure 2 or Figure 3 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.

[0257] The processor is the processor in the terminal described in the above embodiment. The readable 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.

[0258] The steps of the method or algorithm described in conjunction with the contents disclosed in this application can be implemented in hardware or by executing software instructions in a processor. The software instructions can be composed of corresponding software modules, and the software modules can be stored in RAM, flash memory, ROM, EPROM, EEPROM, registers, hard disks, mobile hard disks, read-only optical disks, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be carried in an ASIC. In addition, the ASIC can be carried in a core network interface device. Of course, the processor and the storage medium can also exist in the core network interface device as discrete components.

[0259] Those skilled in the art should be aware that in one or more of the above examples, the functions described in this application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

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

[0261] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the embodiments of the present application may adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0262] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0263] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0264] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0265] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A key processing method, applied to a terminal, characterized in that: include: Allocate a first key for a first application on the terminal from one or more keys stored in the terminal; The one or more stored keys are keys shared between the terminal and the first device.

2. The method according to claim 1, characterized in that The method further comprises: A second key is generated based on the first key; wherein the second key is a key shared between the terminal and the first device.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: The first module obtains a first request of the first application and allocates the first key to the first application; The result of the first key allocation is sent to the first application.

4. The method according to any one of claims 1 to 3, characterized in that: The first module obtains a first request of the first application, and allocates the first key and a corresponding first key identifier to the first application; The first key identifier is returned to the first application.

5. The method according to any one of claims 1 to 4, characterized in that: The first request also includes first indication information; The first module generates a second key based on the first key according to the first indication information.

6. The method according to any one of claims 3 to 5, characterized in that: When the first module includes a middleware and an applet, the middleware obtains a first request of the first application, determines a first key identifier for the first application, and the applet determines a first key according to the first key identifier; Or, when the first module includes a middleware and an applet, the middleware obtains a first request of the first application, forwards the first request to the applet, and the applet allocates a first key and a corresponding first key identifier to the first application; or, when the first module includes middleware, the middleware obtains a first request of the first application, and the software cryptographic module allocates a first key and a corresponding first key identifier to the first application; or, when the first module includes middleware, the middleware obtains a first request of the first application, determines a first key identifier for the first application, and the software cryptographic module determines the first key according to the first key identifier; Or, when the first module includes an Applet, the Applet obtains a first request of the first application, and the Applet allocates the first key and a corresponding first key identifier to the first application.

7. The method according to any one of claims 1 to 6, characterized in that: The Applet includes a first Applet and a second Applet; The first Applet receives a first key acquisition request, the first Applet sends a second key acquisition request to the second Applet, the second Applet provides the first key to the first Applet, and the first Applet generates a second key according to the first key; Or, the first Applet receives a first key acquisition request, the first Applet sends a second key acquisition request to the second Applet, the second Applet acquires the first key, generates a second key based on the first key, and provides the second key to the first Applet.

8. The method according to claim 7, characterized in that The first Applet obtains the first key identifier according to the first key acquisition request or the first Applet allocates the first key identifier.

9. The method according to claim 7 or 8, characterized in that: The second key acquisition request includes the first key identifier.

10. The method according to claim 7 or 8, characterized in that: The first Applet returns the first key identifier to the middleware or the first application.

11. The method according to claim 7, characterized in that The first Applet obtains the first indication information according to the first key acquisition request or the first Applet determines the first indication information.

12. The method according to claim 10, characterized in that The second key acquisition request also includes first indication information.

13. The method according to any one of claims 1 to 12, characterized in that: The one or more keys are stored in one or more key pools of the terminal.

14. The method according to claim 1, characterized in that The method also includes: sending a first message to the first device, wherein the first message includes the first key identifier.

15. The method according to claim 14, characterized in that The first message also includes the first indication information.

16. A key processing method, characterized in that: Applied to a first device, characterized by comprising: Allocate a first key to a first application supported by the first device from among the one or more keys stored in the first device; The one or more keys are keys shared between the first device and the terminal.

17. The method according to claim 16, characterized in that The method further comprises: A second key is generated based on the first key; wherein the second key is a key shared between the first device and the terminal.

18. The method according to claim 16 or 17, characterized in that Allocating a first key to a first application supported by the first device from among the one or more keys stored in the first device includes: Receiving a first message sent by a terminal, where the first message includes a first key identifier corresponding to the first key; Obtain a first key according to the first key identifier.

19. The method according to claim 18, characterized in that The first message also includes first indication information, where the first indication information is used to indicate generating a second key based on the first key.

20. The method according to claim 16 or 17, characterized in that When the first device includes a first platform and a second platform, The second platform obtains a first message sent by the terminal; the first message includes a first key identifier corresponding to the first key; The second platform sends a second message to the first platform, where the second message includes the first key identifier; The first platform obtains a first key according to the first key identifier; The first platform sends the first key or a second key generated based on the first key to the second platform.

21. The method according to claim 20, characterized in that The first message also includes first indication information, and the second message includes the first indication information; The first platform generates a second key based on the first key according to the first indication information.

22. The method according to claim 20, characterized in that The method further comprises: The second platform generates a second key according to the first key sent by the first platform.

23. The method according to claim 22, characterized in that The first message also includes first indication information, and the method further includes: The second platform generates a second key based on the first key according to the first indication information.

24. The method according to any one of claims 16 to 23, characterized in that: The one or more keys are stored in one or more key pools of the first device.

25. The method according to any one of claims 24, characterized in that: When the first device includes a first platform and a second platform, the one or more keys are stored in one or more key pools of the first platform.

26. A key processing device, applied to a terminal, characterized in that: include: a first transceiver unit and a first processing unit; The first processing unit is used to allocate a first key to a first application on the terminal from one or more keys stored in the terminal; The one or more stored keys are keys shared between the terminal and the first device.

27. A key processing device, applied to a first device, characterized in that: include: a second transceiver unit and a second processing unit; The second processing unit is configured to allocate a first key to a first application supported by the first device from among the one or more keys stored in the first device; The one or more keys are keys shared between the first device and the terminal.

28. A communication device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method according to any one of claims 1 to 25.

29. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 25 are implemented.

30. A computer program product, characterized in that The method comprises computer instructions which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 25.

Citation Information

Patent Citations

  • Key distribution method, device and system

    CN113452513A

  • Quantum key resource pool allocation method

    CN117134896A

  • Key management method and device, equipment and storage medium

    CN117439734A

  • Enterprise-level soft key unified management method, system and device and storage medium

    CN117640241A

  • Communication network encryption method and system, electronic equipment and storage medium

    CN117858081A