Key writing method, device and equipment, storage medium and computer program product

After the COS of the SIM card chip is upgraded, the first platform and the second platform work together to generate and write a new key, the problem that the SIM card cannot write a new key in the existing technology is solved, and the expansion of SIM card applications is realized.

CN119676713APending Publication Date: 2025-03-21CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411562333.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-04
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

The prior art cannot support the writing of new keys after COS upgrade in issued SIM cards, resulting in restrictions on application expansion.

Method used

After receiving the update result of the SIM card chip through the first platform, a request is sent to the second platform, carrying the identification information of the SIM card chip, the identification information of the card application, and the key version information. The second platform generates the encrypted key information and sends it to the first platform. Finally, the first platform sends the encrypted key information to the SIM card chip, and writes the decrypted key information into the card application through the updated COS.

Benefits of technology

The ability to write new keys to COS in issued SIM cards is realized, and the application usage scenarios in SIM cards are expanded.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119676713A_ABST
    Figure CN119676713A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a secret key writing method and device, equipment, a storage medium and a computer program product, the method is applied to a first platform, and the method comprises the steps that the first platform sends a first request to a second platform after receiving updating results sent by one or more SIM card chips; wherein the first request carries one or more of identification information of an SIM card chip, identification information of a card application in the SIM card chip and key version information; receiving a first response message sent by the second platform; wherein the first response message at least comprises encrypted key information; and sending the encrypted key information to a corresponding SIM card chip, so that the SIM card chip writes the decrypted key information into a corresponding card application through an updated chip operating system (COS), namely, the embodiment of the invention supports writing of the COS in the issued SIM into a new key of the card application, thereby completing presetting of the new key.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of SIM cards, and in particular to a key writing method, device, equipment, storage medium and computer program product. Background Art

[0002] With the rapid development of mobile Internet in recent years, more and more terminal devices need to be connected to the Internet through cellular networks, which requires that each terminal device needs to be deployed with the operator's SIM card. The increasing application scenarios have led to a frequent increase in the applications deployed on the SIM card. The increase in applications requires the SIM card operating system to have richer functional interfaces. At the same time, it may also require the pre-setting of the keys of the newly added applications into the COS to support the use of new applications.

[0003] However, although the related art has proposed a SIM card that supports COS online upgrade, it still cannot support the writing of new keys after COS upgrade. For example, for an already issued SIM card, COS does not provide a way to re-write the key, resulting in limitations in application expansion. Therefore, it is urgent to propose a solution that can support the writing of new keys by COS in a SIM card. Summary of the invention

[0004] The implementation regulations of this application provide a key writing method, device, equipment, storage medium and computer program product, which can support the COS in the SIM card to write new keys, thereby expanding the application usage scenarios in the SIM card.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides a key writing method, which is applied to a first platform and includes:

[0007] After receiving the update results sent by one or more SIM card chips, sending a first request to the second platform; wherein the update result is used to indicate whether the COS in the SIM card chip is updated successfully, the first request carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and the second platform is at least used to generate the key information corresponding to the card application;

[0008] receiving a first response message sent by the second platform; wherein the first response message includes at least encrypted key information;

[0009] The encrypted key information is sent to the corresponding SIM card chip, so that the SIM card chip writes the decrypted key information into the corresponding card application through the updated COS.

[0010] In a second aspect, an embodiment of the present application provides a key writing method, which is applied to a second platform, and includes:

[0011] receiving a first request sent by a first platform; wherein the first request carries one or more of identification information of the SIM card chip, identification information of a card application in the SIM card chip, and key version information, and the first platform is at least used to determine whether to update the COS of the SIM card chip;

[0012] Generate key information corresponding to the card application based on the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information;

[0013] Sending a first response message to the first platform so that the first platform sends the encrypted key information to the corresponding SIM card chip; wherein the first response message at least includes the encrypted key information.

[0014] In a third aspect, an embodiment of the present application provides a key writing device, which is applied to a first platform and includes: a first sending unit and a first receiving unit; wherein:

[0015] The first sending unit is used to send a first request to the second platform after receiving the update result sent by one or more SIM card chips; wherein the update result is used to indicate whether the COS in the SIM card chip is updated successfully, the first request carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and the second platform is at least used to generate the key information corresponding to the card application;

[0016] The first receiving unit is configured to receive a first response message sent by the second platform; wherein the first response message at least includes encrypted key information;

[0017] The first sending unit is further used to send the encrypted key information to the corresponding SIM card chip, so that the SIM card chip writes the decrypted key information into the corresponding card application through the updated COS.

[0018] In a fourth aspect, an embodiment of the present application provides a key writing device, which is applied to a second platform, and includes: a second receiving unit, a generating unit, and a second sending unit; wherein,

[0019] The second receiving unit is used to receive a first request sent by the first platform; wherein the first request carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and the first platform is at least used to determine whether to update the COS of the SIM card chip;

[0020] The generating unit is used to generate key information corresponding to the card application based on the identification information of the SIM card chip, the identification information of the card application in the SIM card chip and the key version information;

[0021] The second sending unit is used to send a first response message to the first platform, so that the first platform sends the encrypted key information to the corresponding SIM card chip; wherein the first response message at least includes the encrypted key information.

[0022] In a fifth aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a processor and a memory; wherein:

[0023] The memory is used to store a computer program that can be run on the processor;

[0024] The processor is used to execute the key writing method as described above when running the computer program.

[0025] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program code is stored. When the computer program code is executed by a computer, the key writing method as described above is implemented.

[0026] In a seventh aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the key writing method as described above.

[0027] The embodiments of the present application provide a key writing method, apparatus, device, storage medium and computer program product. After receiving an update result sent by one or more SIM card chips, a first platform sends a first request to a second platform; wherein the update result is used to indicate whether the COS in the SIM card chip is updated successfully, the first request carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip and the key version information, and the second platform is at least used to generate the key information corresponding to the card application; receive a first response message sent by the second platform; wherein the first response message at least includes the encrypted key information; send the encrypted key information to the corresponding SIM card chip, so that the SIM card chip writes the decrypted key information into the corresponding card application through the updated COS; the second platform generates the key information corresponding to the card application based on the identification information of the SIM card chip, the identification information of the card application in the SIM card chip and the key version information; and send the first response message to the first platform. It can be seen that after receiving the update results sent by one or more SIM card chips, the first platform can send a first request to the second platform, which carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, so that the second platform can generate the key information corresponding to the card application based on the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and then send the encrypted key information to the first platform, so that the first platform sends the encrypted key information to the corresponding SIM card chip, and the SIM card chip can write the decrypted key information into the corresponding card application through the updated COS, that is, the embodiment of the present application supports the COS in the issued SIM to write the new key of the card application, thereby completing the pre-setting of the new key, thereby expanding the application usage scenarios in the SIM card. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 Schematic diagram of the key writing method proposed in the embodiment of the present application Figure 1 ;

[0029] Figure 2 Schematic diagram of the key writing method proposed in the embodiment of the present application Figure 2 ;

[0030] Figure 3 Schematic diagram of the key writing method proposed in the embodiment of the present application Figure 3 ;

[0031] Figure 4 Schematic diagram of the key writing method proposed in the embodiment of the present application Figure 4 ;

[0032] Figure 5Schematic diagram of the key writing method proposed in the embodiment of the present application Figure 5 ;

[0033] Figure 6 Schematic diagram of the key writing method proposed in the embodiment of the present application Figure 6 ;

[0034] Figure 7 Schematic diagram of the composition structure of the key writing device proposed in the embodiment of the present application Figure 1 ;

[0035] Figure 8 Schematic diagram of the composition structure of the key writing device proposed in the embodiment of the present application Figure 2 ;

[0036] Fig. 9 A schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0037] 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. It is understood that the specific embodiments described herein are only used to explain the related applications, rather than to limit the applications. It should also be noted that, for ease of description, only the parts related to the related applications are shown in the drawings.

[0038] With the rapid development of mobile Internet in recent years, more and more terminal devices need to connect to the Internet through cellular networks, which requires that each connected device needs to deploy the operator's SIM card. The increasing application scenarios have led to a frequent increase in the number of applications deployed on SIM cards. The increase in applications requires the SIM card operating system to have richer functional interfaces. At the same time, it may also require the root keys of new applications to be pre-set in COS to support the use of new applications.

[0039] However, the current SIM card key presetting method has the following problems: (1) Every time the SIM card COS needs to be upgraded, the card manufacturer produces a new SIM card. At the same time, on the card manufacturer's production line, the key is generated in a decentralized manner through an encryption machine and then written into the card through a device; (2) For SIM cards that have already been issued, COS does not provide a method to re-write the key, so there are limitations on application expansion.

[0040] In order to solve the problem that there is no method for re-writing the key for the COS in the issued SIM card, resulting in limitations in application expansion, the embodiments of the present application provide a key writing method, device, equipment, storage medium and computer program product. After receiving the update results sent by one or more SIM card chips, the first platform sends a first request to the second platform; wherein the update result is used to indicate whether the COS in the SIM card chip is updated successfully, the first request carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip and the key version information, and the second platform is at least used to generate the key information corresponding to the card application; receive the first response message sent by the second platform; wherein the first response message at least includes the encrypted key information; send the encrypted key information to the corresponding SIM card chip, so that the SIM card chip writes the decrypted key information into the corresponding card application through the updated COS; the second platform generates the key information corresponding to the card application based on the identification information of the SIM card chip, the identification information of the card application in the SIM card chip and the key version information; and send the first response message to the first platform. It can be seen that after receiving the update results sent by one or more SIM card chips, the first platform can send a first request to the second platform, which carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, so that the second platform can generate the key information corresponding to the card application based on the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and then send the encrypted key information to the first platform, so that the first platform sends the encrypted key information to the corresponding SIM card chip, and the SIM card chip can write the decrypted key information into the corresponding card application through the updated COS, that is, the embodiment of the present application supports the COS in the issued SIM to write the new key of the card application, thereby completing the pre-setting of the new key, thereby expanding the application usage scenarios in the SIM card.

[0041] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0042] The embodiment of the present application provides a key writing method, which is applied to a first platform. Figure 1 Schematic diagram of the key writing method proposed in the embodiment of the present application Figure 1 ,like Figure 1 As shown, the key writing method may include the following steps:

[0043] Step 101: After receiving an update result sent by one or more SIM card chips, send a first request to the second platform; wherein the update result is used to indicate whether the COS in the SIM card chip is updated successfully, the first request carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and the second platform is at least used to generate key information corresponding to the card application.

[0044] In an embodiment of the present application, after receiving the update results sent by one or more SIM card chips, the first platform sends a first request to the second platform.

[0045] It should be noted that, in the embodiments of the present application, the first platform may be a SIM card COS upgrade platform, and the present application does not specifically limit the type of the first platform.

[0046] It should be noted that, in the embodiments of the present application, the second platform may be a SIM card key management platform, and the present application does not specifically limit the type of the second platform.

[0047] It should be noted that in an embodiment of the present application, the first request may carry one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and may also carry other information. This application does not specifically limit the amount and type of information carried by the first request.

[0048] It should be noted that, in the embodiments of the present application, Figure 2 Schematic diagram of the key writing method proposed in the embodiment of the present application Figure 2 ,like Figure 2 As shown, before receiving the update results sent by one or more SIM card chips, that is, before step 101, the following steps may also be included:

[0049] Step 104: Obtain first parameter information corresponding to one or more SIM card chips; wherein the first parameter information at least includes version information corresponding to the SIM card chip.

[0050] In an embodiment of the present application, the first platform may obtain first parameter information corresponding to one or more SIM card chips.

[0051] It should be noted that, in the embodiment of the present application, the first parameter information includes at least version information corresponding to the SIM card chip, and may also include other information. The present application does not specifically limit the type and quantity of information included in the first parameter information.

[0052] Step 105: Determine whether to update the COS of one or more SIM card chips based on the first parameter information.

[0053] In an embodiment of the present application, the first platform may determine whether to update the COS of one or more SIM card chips based on the first parameter information.

[0054] Exemplarily, in an embodiment of the present application, the first platform may determine whether to update the COS of one or more SIM card chips based on the version information corresponding to the SIM card chip.

[0055] Step 106: When it is determined that the COS of one or more SIM card chips is to be updated, a COS message is sent to the one or more SIM card chips, so that the one or more SIM card chips update the corresponding COS based on the COS message to obtain an update result.

[0056] It should be noted that, in the embodiment of the present application, when it is determined that the COS of one or more SIM card chips is not to be updated, no COS message is sent to the one or more SIM card chips.

[0057] It should be noted that, in an embodiment of the present application, after sending a COS message to one or more SIM card chips, the first platform can receive an update result sent by one or more SIM card chips; when the update result indicates that the update is successful, a first request can be sent to the second platform.

[0058] Step 102: Receive a first response message sent by the second platform; wherein the first response message at least includes encrypted key information.

[0059] In an embodiment of the present application, after receiving the update results sent by one or more SIM card chips, the first platform may receive a first response message sent by the second platform after sending a first request to the second platform.

[0060] It should be noted that, in the embodiment of the present application, the first response message includes at least encrypted key information, and the present application does not specifically limit the amount and type of information included in the first response message.

[0061] It should be noted that, in the embodiments of the present application, the key information may include one or more keys corresponding to the card applications, and the present application does not specifically limit the parameter content included in the key information.

[0062] Step 103: Send the encrypted key information to the corresponding SIM card chip, so that the SIM card chip writes the decrypted key information into the corresponding card application through the updated COS.

[0063] In an embodiment of the present application, after receiving the first response message sent by the second platform, the first platform may send the encrypted key information to the corresponding SIM card chip.

[0064] It should be noted that in the embodiments of the application, Figure 3 Schematic diagram of the key writing method proposed in the embodiment of the present application Figure 3 ,like Figure 3 As shown, after the first platform sends the encrypted key information to the corresponding SIM card chip, that is, after step 103, the first platform may further include the following steps:

[0065] Step 107: Receive the writing result sent by the SIM card chip; wherein the writing result is used to indicate whether the decrypted key information is successfully written into the corresponding card application.

[0066] In an embodiment of the present application, the first platform may receive the writing result sent by the SIM card chip.

[0067] Step 108: Send the writing result to the second platform.

[0068] In an embodiment of the present application, the first platform may send the writing result to the second platform.

[0069] In summary, the first platform may first obtain the first parameter information corresponding to one or more SIM card chips; wherein the first parameter information at least includes the version information corresponding to the SIM card chip; then, based on the first parameter information, it may be determined whether to update the COS of one or more SIM card chips; in the case where it is determined that the COS of one or more SIM card chips is to be updated, a COS message is sent to one or more SIM card chips, so that one or more SIM card chips update the corresponding COS based on the COS message to obtain an update result, and in the case where the update result indicates that the update is successful, then the first platform may send a first request to the second platform, the first request carrying one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and then the first platform may receive a first response message sent by the second platform; wherein the first response message at least includes the encrypted key information, so that the encrypted key information can be sent to the corresponding SIM card chip, so that the SIM card chip writes the decrypted key information into the corresponding card application through the updated COS, that is, the embodiment of the present application supports the writing of new keys into the COS in the issued SIM card.

[0070] An embodiment of the present application provides a key writing method, which is applied to a first platform. After receiving an update result sent by one or more SIM card chips, the first platform sends a first request to a second platform; wherein the update result is used to indicate whether the COS in the SIM card chip is updated successfully, the first request carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information; the second platform is at least used to generate key information corresponding to the card application; receive a first response message sent by the second platform; wherein the first response message at least includes the encrypted key information; send the encrypted key information to the corresponding SIM card chip, so that the SIM card chip writes the decrypted key information into the corresponding card application through the updated COS. It can be seen that after receiving the update results sent by one or more SIM card chips, the first platform can send a first request to the second platform, which carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and then receive the first response message sent by the second platform; wherein the first response message includes at least the encrypted key information, and then the first platform can send the encrypted key information to the corresponding SIM card chip, and the SIM card chip can write the decrypted key information into the corresponding card application through the updated COS, that is, the embodiment of the present application supports the COS in the issued SIM to write the new key of the card application, thereby completing the pre-setting of the new key, thereby expanding the application usage scenarios in the SIM card.

[0071] Based on the above embodiment, another embodiment of the present application provides a key writing method, which is applied to a second platform. Figure 4 Schematic diagram of the key writing method proposed in the embodiment of the present application Figure 4 ,like Figure 4 As shown, the key writing method may include the following steps:

[0072] Step 201, receiving a first request sent by a first platform; wherein the first request carries one or more of identification information of a SIM card chip, identification information of a card application in the SIM card chip, and key version information, and the first platform is at least used to determine whether to update the COS of the SIM card chip.

[0073] In an embodiment of the present application, the second platform may receive the first request sent by the first platform.

[0074] It should be noted that, in the embodiments of the present application, the first platform may be a SIM card COS upgrade platform, and the present application does not specifically limit the type of the first platform.

[0075] It should be noted that, in the embodiments of the present application, the second platform may be a SIM card key management platform, and the present application does not specifically limit the type of the second platform.

[0076] Step 202: Generate key information corresponding to the card application based on the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information.

[0077] In an embodiment of the present application, after receiving the first request sent by the first platform, the second platform may generate key information corresponding to the card application based on the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information.

[0078] It should be noted that, in the embodiment of the present application, the content included in the key information may be as shown in Table 1 below.

[0079] Table 1

[0080]

[0081] The Data encoding may be as shown in Table 2 below.

[0082] Table 2

[0083] Fields Length (bytes) Tag1 2 Key length 1 2 Key 1 XXXX Tag2 2 Key length 2 2 Key 2 XXXX …… TagN 2 Key length N 2 Key N XXXX

[0084] Among them, Tags represent different applications.

[0085] It should be noted that, in the embodiments of the present application, the Data field contained in the key information may carry keys corresponding to different applications, and the present application does not specifically limit the number of keys corresponding to the application.

[0086] It should be noted that, in the embodiments of the present application, the definition of Tag may be as shown in Table 3 below.

[0087] Table 3

[0088] Value meaning 0x0001 Application 1 (AID) 0x0002 Application 2 (AID) …… ……

[0089] Step 203: Send a first response message to the first platform, so that the first platform sends the encrypted key information to the corresponding SIM card chip; wherein the first response message at least includes the encrypted key information.

[0090] In an embodiment of the present application, after the second platform generates key information corresponding to the card application based on the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, it can send a first response message to the first platform.

[0091] Further, in an embodiment of the present application, the second platform may receive a writing result sent by the first platform; wherein the writing result is used to indicate whether the decrypted key information is successfully written into the corresponding card application.

[0092] It should be noted that, in the embodiment of the present application, the writing result can be represented by the following Table 4.

[0093] Table 4

[0094] Status value illustrate 00 Key written successfully 01 Key write failed, insufficient space 02 Key writing failed, key verification failed

[0095] To summarize, after the second platform receives the first request sent by the first platform, the first request carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information. Then, the second platform can generate the key information corresponding to the card application based on the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and then send the encrypted key information to the first platform, so that the first platform can send the encrypted key information to the corresponding SIM card chip, so that the SIM card chip writes the decrypted key information into the corresponding card application through the updated COS, thereby realizing that the COS in the issued SIM card can write the new key, which greatly expands the application scenarios of the SIM card chip.

[0096] The embodiment of the present application provides a key writing method, which is applied to the second platform, and the second platform receives a first request sent by the first platform; wherein the first request carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and the first platform is at least used to determine whether to update the COS of the SIM card chip; based on the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, the key information corresponding to the card application is generated; a first response message is sent to the first platform so that the first platform sends the encrypted key information to the corresponding SIM card chip; wherein the first response message at least includes the encrypted key information. It can be seen that the second platform can receive the first request sent by the first platform, and generate the key information corresponding to the card application based on the parameter information carried by the first request, and then the encrypted key information can be sent to the first platform, so that the first platform can send the encrypted key information to the corresponding SIM card chip, and then the SIM card chip can write the decrypted key information into the corresponding card application through the updated COS, so that the COS in the issued SIM card can write the new key, thereby expanding the application usage scenario in the SIM card.

[0097] Based on the above embodiment, another embodiment of the present application provides a key writing method, which is applied to a first platform and a second platform. Figure 5 Schematic diagram of the key writing method proposed in the embodiment of the present application Figure 5 ,like Figure 5 As shown, the key writing method may include the following steps:

[0098] Step 301: After receiving the update results sent by one or more SIM card chips, the first platform sends a first request to the second platform; wherein the update result is used to indicate whether the COS in the SIM card chip is updated successfully, the first request carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and the second platform is at least used to generate the key information corresponding to the card application.

[0099] It should be noted that, in the embodiments of the present application, the first platform may be a SIM card COS upgrade platform, and the present application does not specifically limit the type of the first platform.

[0100] It should be noted that, in the embodiments of the present application, the second platform may be a SIM card key management platform, and the present application does not specifically limit the type of the second platform.

[0101] It should be noted that in an embodiment of the present application, the first request may carry one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and may also carry other information. This application does not specifically limit the amount and type of information carried by the first request.

[0102] It should be noted that, in an embodiment of the present application, before receiving the update result sent by one or more SIM card chips, the first platform can obtain first parameter information corresponding to one or more SIM card chips; wherein the first parameter information at least includes version information corresponding to the SIM card chip, and then it can be determined based on the first parameter information whether to update the COS of one or more SIM card chips. If it is determined that the COS of one or more SIM card chips is to be updated, a COS message is sent to the one or more SIM card chips, so that the one or more SIM card chips update the corresponding COS based on the COS message to obtain an update result.

[0103] It should be noted that, in the embodiment of the present application, when it is determined that the COS of one or more SIM card chips is not to be updated, no COS message is sent to the one or more SIM card chips.

[0104] It should be noted that, in an embodiment of the present application, after sending a COS message to one or more SIM card chips, the first platform can receive an update result sent by one or more SIM card chips; when the update result indicates that the update is successful, a first request can be sent to the second platform.

[0105] Step 302: The second platform generates key information corresponding to the card application based on the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information.

[0106] Step 303: The second platform sends a first response message to the first platform; wherein the first response message includes at least encrypted key information.

[0107] Further, in an embodiment of the present application, the second platform may receive a writing result sent by the first platform; wherein the writing result is used to indicate whether the decrypted key information is successfully written into the corresponding card application.

[0108] It should be noted that, in the embodiment of the present application, the writing result can be represented by the above Table 4.

[0109] Step 304: The first platform sends the encrypted key information to the corresponding SIM card chip, so that the SIM card chip writes the decrypted key information into the corresponding card application through the updated COS.

[0110] It should be noted that in the embodiment of the application, after the first platform sends the encrypted key information to the corresponding SIM card chip, it can receive the write result sent by the SIM card chip; wherein the write result is used to indicate whether the decrypted key information is successfully written into the corresponding card application; and then the write result can be sent to the second platform.

[0111] In summary, the first platform may first obtain the first parameter information corresponding to one or more SIM card chips; wherein the first parameter information at least includes the version information corresponding to the SIM card chip; then, based on the first parameter information, it may be determined whether to update the COS of one or more SIM card chips; in the case where it is determined that the COS of one or more SIM card chips is to be updated, a COS message is sent to one or more SIM card chips, so that one or more SIM card chips update the corresponding COS based on the COS message to obtain an update result, and in the case where the update result indicates that the update is successful, then the first platform may send a first request to the second platform, the first request carrying one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and then the first platform may receive a first response message sent by the second platform; wherein the first response message at least includes the encrypted key information, so that the encrypted key information can be sent to the corresponding SIM card chip, so that the SIM card chip writes the decrypted key information into the corresponding card application through the updated COS, that is, the embodiment of the present application supports the writing of new keys into the COS in the issued SIM card.

[0112] An embodiment of the present application provides a key writing method, which is applied to a first platform and a second platform. After receiving an update result sent by one or more SIM card chips, the first platform sends a first request to the second platform; wherein the update result is used to indicate whether the COS in the SIM card chip is updated successfully, the first request carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and the second platform is at least used to generate the key information corresponding to the card application; receive a first response message sent by the second platform; wherein the first response message at least includes the encrypted key information; send the encrypted key information to the corresponding SIM card chip, so that the SIM card chip writes the decrypted key information into the corresponding card application through the updated COS; the second platform generates the key information corresponding to the card application based on the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information; and send the first response message to the first platform. It can be seen that after receiving the update results sent by one or more SIM card chips, the first platform can send a first request to the second platform, which carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, so that the second platform can generate the key information corresponding to the card application based on the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and then send the encrypted key information to the first platform, so that the first platform sends the encrypted key information to the corresponding SIM card chip, and the SIM card chip can write the decrypted key information into the corresponding card application through the updated COS, that is, the embodiment of the present application supports the COS in the issued SIM to write the new key of the card application, thereby completing the pre-setting of the new key, thereby expanding the application usage scenarios in the SIM card.

[0113] Based on the above embodiments, another embodiment of the present application provides a key writing method, which can be applied to a COS upgrade platform (i.e., the first platform) and a SIM card key management platform (i.e., the second platform). The COS upgrade platform (i.e., the first platform) can download a COS that supports a key presetting function to a SIM card; the SIM card key management platform can send new key data to a new COS (i.e., an updated COS) in the SIM over the air for processing; the new COS of the SIM card (i.e., the updated COS) decrypts and verifies the key data and writes it into the key area, thereby completing the presetting of the new key.

[0114] It should be noted that, in the embodiments of the present application, Figure 6 Schematic diagram of the key writing method proposed in the embodiment of the present application Figure 6 ,like Figure 6As shown, the key writing process may include the following steps: 1. The SIM card COS upgrade platform (i.e., the first platform) initiates a COS replacement operation on the SIM card, and opens a Bearer Independent Protocol (BIP) channel through a mobile gateway; 2. The SIM card COS upgrade platform (i.e., the first platform) reads information such as the SIM card chip and version (i.e., the first parameter information) through a database; 3. The SIM card COS upgrade platform (i.e., the first platform) sends a message of the new COS corresponding to the SIM card (i.e., a COS message) to the terminal; 4. The SIM card receives the new COS message and performs a COS update; 5. The SIM card sends the COS upgrade result (i.e., the update result) to the SIM card COS upgrade platform (i.e., the first platform); 6. The SIM card key management After the management platform (i.e., the second platform) receives the card key request instruction (i.e., the first request) from the SIM card COS upgrade platform (i.e., the first platform), it generates the required card key; 7.7, the SIM card key management platform (i.e., the second platform) encrypts the root key and sends it to the SIM card through the SIM card COS upgrade platform (i.e., the first platform); 8. After receiving the root key, the SIM card decrypts it and writes the key into the key area of ​​the corresponding application; 9. After writing the key, the SIM card feeds back the writing result to the SIM card key management platform (i.e., the second platform) through the SIM card COS upgrade platform (i.e., the first platform).

[0115] In summary, the first platform may first obtain the first parameter information corresponding to one or more SIM card chips; wherein the first parameter information at least includes the version information corresponding to the SIM card chip; then, based on the first parameter information, it may be determined whether to update the COS of one or more SIM card chips; in the case where it is determined that the COS of one or more SIM card chips is to be updated, a COS message is sent to one or more SIM card chips, so that one or more SIM card chips update the corresponding COS based on the COS message to obtain an update result, and in the case where the update result indicates that the update is successful, then the first platform may send a first request to the second platform, the first request carrying one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and then the first platform may receive a first response message sent by the second platform; wherein the first response message at least includes the encrypted key information, so that the encrypted key information can be sent to the corresponding SIM card chip, so that the SIM card chip writes the decrypted key information into the corresponding card application through the updated COS, that is, the embodiment of the present application supports the writing of new keys into the COS in the issued SIM card.

[0116] An embodiment of the present application provides a key writing method, which is applied to a first platform and a second platform. After receiving an update result sent by one or more SIM card chips, the first platform sends a first request to the second platform; wherein the update result is used to indicate whether the COS in the SIM card chip is updated successfully, the first request carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and the second platform is at least used to generate the key information corresponding to the card application; receive a first response message sent by the second platform; wherein the first response message at least includes the encrypted key information; send the encrypted key information to the corresponding SIM card chip, so that the SIM card chip writes the decrypted key information into the corresponding card application through the updated COS; the second platform generates the key information corresponding to the card application based on the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information; and send the first response message to the first platform. It can be seen that after receiving the update results sent by one or more SIM card chips, the first platform can send a first request to the second platform, which carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, so that the second platform can generate the key information corresponding to the card application based on the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and then send the encrypted key information to the first platform, so that the first platform sends the encrypted key information to the corresponding SIM card chip, and the SIM card chip can write the decrypted key information into the corresponding card application through the updated COS, that is, the embodiment of the present application supports the COS in the issued SIM to write the new key of the card application, thereby completing the pre-setting of the new key, thereby expanding the application usage scenarios in the SIM card.

[0117] Based on the above embodiments, the present application provides a key writing device, which is applied to a first platform. Figure 7 Schematic diagram of the structure of the key writing device Figure 1 ,like Figure 7 As shown, the key writing device 10 includes: a first sending unit 11 and a first receiving unit 12; wherein,

[0118] The first sending unit 11 is used to send a first request to the second platform after receiving the update result sent by one or more SIM card chips; wherein the update result is used to indicate whether the COS in the SIM card chip is updated successfully, the first request carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and the second platform is at least used to generate the key information corresponding to the card application;

[0119] The first receiving unit 12 is used to receive a first response message sent by the second platform; wherein the first response message at least includes encrypted key information;

[0120] The first sending unit 11 is further used to send the encrypted key information to the corresponding SIM card chip, so that the SIM card chip writes the decrypted key information into the corresponding card application through the updated COS.

[0121] In the embodiments of the present application, further, Figure 8 Schematic diagram of the structure of the key writing device Figure 2 , the device is applied to the second platform, such as Figure 8 As shown, the key writing device 20 includes: a second receiving unit 21, a generating unit 22 and a second sending unit 23; wherein,

[0122] The second receiving unit 21 is used to receive a first request sent by the first platform; wherein the first request carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and the first platform is at least used to determine whether to update the COS of the SIM card chip;

[0123] The generating unit 22 is used to generate key information corresponding to the card application based on the identification information of the SIM card chip, the identification information of the card application in the SIM card chip and the key version information;

[0124] The second sending unit 23 is used to send a first response message to the first platform, so that the first platform sends the encrypted key information to the corresponding SIM card chip; wherein the first response message at least includes the encrypted key information.

[0125] In the embodiments of the present application, further, Fig. 9 It is a schematic diagram of the composition structure of the electronic device, such as Fig. 9 As shown, the electronic device 30 proposed in the embodiment of the present application may also include a processor 31, a memory 32 storing executable instructions of the processor 31, and further, the electronic device 30 may also include a communication interface 33, and a bus 34 for connecting the processor 31, the memory 32 and the communication interface 33.

[0126] In the embodiment of the present application, the processor 31 can be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a controller, a microcontroller, and a microprocessor. It can be understood that for different devices, the electronic device used to implement the function of the processor can also be other, and the embodiment of the present application is not specifically limited. The electronic device 30 can also include a memory 32, which can be connected to the processor 31, wherein the memory 32 is used to store executable program code, the program code includes computer operation instructions, and the memory 32 may include a high-speed RAM memory, and may also include a non-volatile memory, for example, at least two disk memories.

[0127] In the embodiment of the present application, the bus 34 is used to connect the communication interface 33, the processor 31 and the memory 32, as well as the mutual communication between these devices.

[0128] In the embodiment of the present application, the memory 32 is used to store instructions and data.

[0129] Further, in an embodiment of the present application, the processor 31 is configured to, after receiving an update result sent by one or more SIM card chips, send a first request to the second platform; wherein the update result is used to indicate whether the COS in the SIM card chip is updated successfully, and the first request carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information; receive a first response message sent by the second platform; wherein the first response message at least includes the encrypted key information; send the encrypted key information to the corresponding SIM card chip, so that the SIM card chip writes the decrypted key information into the corresponding card application through the updated COS; and receive a first request sent by the first platform; wherein the first request carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information; generate the key information corresponding to the card application based on the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information; send a first response message to the first platform, so that the first platform sends the encrypted key information to the corresponding SIM card chip; wherein the first response message at least includes the encrypted key information.

[0130] In practical applications, the memory 32 may be a volatile memory, such as a random access memory (RAM); or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above types of memory, and provide instructions and data to the processor 31.

[0131] The embodiment of the present application provides a first platform and a second platform. After receiving an update result sent by one or more SIM card chips, the first platform sends a first request to the second platform; wherein the update result is used to indicate whether the COS in the SIM card chip is updated successfully, the first request carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and the second platform is at least used to generate key information corresponding to the card application; receive a first response message sent by the second platform; wherein the first response message at least includes the encrypted key information; send the encrypted key information to the corresponding SIM card chip, so that the SIM card chip writes the decrypted key information into the corresponding card application through the updated COS; the second platform generates the key information corresponding to the card application based on the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information; and send the first response message to the first platform. It can be seen that after receiving the update results sent by one or more SIM card chips, the first platform can send a first request to the second platform, which carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, so that the second platform can generate the key information corresponding to the card application based on the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and then send the encrypted key information to the first platform, so that the first platform sends the encrypted key information to the corresponding SIM card chip, and the SIM card chip can write the decrypted key information into the corresponding card application through the updated COS, that is, the embodiment of the present application supports the COS in the issued SIM to write the new key of the card application, thereby completing the pre-setting of the new key, thereby expanding the application usage scenarios in the SIM card.

[0132] An embodiment of the present application provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the key writing method as described above is implemented.

[0133] Specifically, the program instructions corresponding to a key writing method in this embodiment can be stored on a storage medium such as a CD, a hard disk, a USB flash drive, etc. When the program instructions corresponding to a key writing method in the storage medium are read or executed by an electronic device, the following steps are included:

[0134] After receiving the update results sent by one or more SIM card chips, sending a first request to the second platform; wherein the update result is used to indicate whether the COS in the SIM card chip is updated successfully, the first request carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and the second platform is at least used to generate the key information corresponding to the card application;

[0135] receiving a first response message sent by the second platform; wherein the first response message includes at least encrypted key information;

[0136] The encrypted key information is sent to the corresponding SIM card chip, so that the SIM card chip writes the decrypted key information into the corresponding card application through the updated COS.

[0137] The embodiment of the present application further provides a computer program product, including a computer program, which can be executed by the processor 31 of the electronic device 30 to complete the steps of any of the aforementioned methods.

[0138] 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 present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, 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 and optical storage, etc.) that contain computer-usable program code.

[0139] The present application is described with reference to implementation 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 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 process in the flowchart. 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.

[0140] These computer program instructions may also be stored in a computer-readable memory that can direct 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 a manufactured product including an instruction device, which is implemented in the implementation flow diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

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

[0142] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.

Claims

1. A key writing method, characterized in that: The method is applied to a first platform, and the method comprises: After receiving the update result sent by one or more subscriber identity module SIM card chips, sending a first request to the second platform; wherein the update result is used to indicate whether the on-chip operating system COS in the SIM card chip is updated successfully, the first request carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and the second platform is at least used to generate the key information corresponding to the card application; Receiving a first response message sent by the second platform; wherein the first response message includes at least encrypted key information; The encrypted key information is sent to the corresponding SIM card chip, so that the SIM card chip writes the decrypted key information into the corresponding card application through the updated COS.

2. The method according to claim 1, characterized in that Before receiving the update results sent by one or more SIM card chips, the method further includes: Obtaining first parameter information corresponding to one or more SIM card chips; wherein the first parameter information at least includes version information corresponding to the SIM card chip; Determine whether to update the COS of the one or more SIM card chips based on the first parameter information; When it is determined that the COS of the one or more SIM card chips is to be updated, a COS message is sent to the one or more SIM card chips, so that the one or more SIM card chips update the corresponding COS based on the COS message to obtain the update result.

3. The method according to claim 2, characterized in that The method further comprises: When it is determined that the COS of the one or more SIM card chips is not to be updated, the COS message is not sent to the one or more SIM card chips.

4. The method according to claim 2, characterized in that: The sending the first request to the second platform includes: Receiving the update result sent by the one or more SIM card chips; When the update result indicates that the update is successful, the first request is sent to the second platform.

5. The method according to claim 1, characterized in that: After sending the encrypted key information to the corresponding SIM card chip, the method further includes: Receiving a writing result sent by the SIM card chip; wherein the writing result is used to indicate whether the decrypted key information is successfully written into the corresponding card application; The writing result is sent to the second platform.

6. A key writing method, characterized in that: The method is applied to the second platform, and the method includes: receiving a first request sent by a first platform; wherein the first request carries one or more of identification information of the SIM card chip, identification information of a card application in the SIM card chip, and key version information, and the first platform is at least used to determine whether to update the COS of the SIM card chip; Generate key information corresponding to the card application based on the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information; Sending a first response message to the first platform so that the first platform sends the encrypted key information to the corresponding SIM card chip; wherein the first response message at least includes the encrypted key information.

7. The method according to claim 6, characterized in that The method further comprises: Receive the writing result sent by the first platform; wherein the writing result is used to indicate whether the decrypted key information is successfully written into the corresponding card application.

8. A key writing device, characterized in that: The device is applied to a first platform, and comprises: a first sending unit and a first receiving unit; wherein, The first sending unit is used to send a first request to the second platform after receiving the update result sent by one or more SIM card chips; wherein the update result is used to indicate whether the COS in the SIM card chip is updated successfully, the first request carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and the second platform is at least used to generate the key information corresponding to the card application; The first receiving unit is configured to receive a first response message sent by the second platform; wherein the first response message at least includes encrypted key information; The first sending unit is further used to send the encrypted key information to the corresponding SIM card chip, so that the SIM card chip writes the decrypted key information into the corresponding card application through the updated COS.

9. A key writing device, characterized in that: The device is applied to the second platform, and comprises: a second receiving unit, a generating unit and a second sending unit; wherein, The second receiving unit is used to receive a first request sent by the first platform; wherein the first request carries one or more of the identification information of the SIM card chip, the identification information of the card application in the SIM card chip, and the key version information, and the first platform is at least used to determine whether to update the COS of the SIM card chip; The generating unit is used to generate key information corresponding to the card application based on the identification information of the SIM card chip, the identification information of the card application in the SIM card chip and the key version information; The second sending unit is used to send a first response message to the first platform, so that the first platform sends the encrypted key information to the corresponding SIM card chip; wherein the first response message at least includes the encrypted key information.

10. An electronic device, characterized in that: The electronic device comprises: a processor and a memory; wherein, The memory is used to store a computer program that can be run on the processor; The processor is used to execute the method according to any one of claims 1-5 or 6-7 when running the computer program.

11. A computer-readable storage medium, characterized in that: The storage medium stores computer program codes, which, when executed by a computer, execute the method described in any one of claims 1 to 5 or 6 to 7.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the method according to any one of claims 1-5 or 6-7.