WO2017041503A1 - Mutual authentication method and apparatus for device and card, and computer readable storage medium - Google Patents

Mutual authentication method and apparatus for device and card, and computer readable storage medium Download PDF

Info

Publication number
WO2017041503A1
WO2017041503A1 PCT/CN2016/081755 CN2016081755W WO2017041503A1 WO 2017041503 A1 WO2017041503 A1 WO 2017041503A1 CN 2016081755 W CN2016081755 W CN 2016081755W WO 2017041503 A1 WO2017041503 A1 WO 2017041503A1
Authority
WO
WIPO (PCT)
Prior art keywords
code
terminal
sim card
encryption
card
Prior art date
Application number
PCT/CN2016/081755
Other languages
French (fr)
Chinese (zh)
Inventor
杨柯
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017041503A1 publication Critical patent/WO2017041503A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities

Definitions

  • the present application relates to, but is not limited to, the field of communications, and in particular, to a method and apparatus for interlocking a card, and a computer readable storage medium.
  • a machine card such as a Subscriber Identity Module (SIM) card
  • SIM Subscriber Identity Module
  • an initialization operation is performed between the SIM card and the terminal, so that the terminal obtains a personal identification password (Personal Identification) set on the SIM card.
  • PIN personal identification password
  • the terminal modifies the obtained PIN code to a random value, and saves the random PIN code in the terminal, and then activates the SIM card.
  • the PIN code so that after the terminal is powered on, the terminal can check the SIM card by using the random PIN code to determine that the SIM card is the SIM card uniquely determined by the terminal.
  • the embodiment of the invention provides a method, a device and a computer readable storage medium for interlocking a machine card, which are used to solve the problem that the card interlocking fails.
  • a method for interlocking a machine card comprising:
  • the terminal obtains the first code sent by the SIM card of the customer identification module.
  • the terminal performs encryption calculation on the first code and the second code to obtain an encryption result, where the second code includes an integrated circuit card identification code;
  • the method further includes:
  • the terminal Before the terminal performs encryption calculation on the first code and the second code to obtain an encryption result, the terminal determines whether it stores the second code;
  • the second code If it is determined that the second code is not stored by itself, acquiring the second code to the SIM card, and storing the second code card in an unerasable area of the terminal, and then performing the terminal to perform the The first code and the second code perform an encryption calculation to obtain an encryption result.
  • the first code is carried in an obtaining input instruction.
  • a method for interlocking a machine card comprising:
  • the SIM card of the customer identification module sends the first code to the terminal
  • the SIM card receives the encryption result sent by the terminal, and the encryption result includes a result obtained by the terminal performing encryption calculation on the first code and the second code;
  • the SIM card determines whether the SIM card and the terminal are interlocked according to the encryption result and the encryption information, and the encryption information includes a result obtained by the SIM card performing encryption calculation by using the first code.
  • the first code is carried in an obtaining input instruction.
  • a machine card interlock device includes:
  • Obtaining a module configured to obtain a first code sent by a SIM card of the customer identification module
  • An encryption module configured to perform encryption calculation on the first code and the second code to obtain an encryption result, where the second code includes an integrated circuit card identification code;
  • a sending module configured to send the encryption result to the SIM card, so that the SIM card determines whether the SIM card and the terminal are interlocked.
  • the device further includes: a determining module
  • the determining module is configured to determine whether the second code is stored by itself; if it is determined that the second code is not stored by itself, acquiring the second code to the SIM card, and storing the second code card in The non-erasable area of the terminal instructs the encryption module to perform encryption calculation on the first code and the second code to obtain an encryption result.
  • the first code is carried in an obtaining input instruction.
  • a machine card interlocking device is disposed in the terminal and includes:
  • a sending module configured to send a first code to the terminal
  • a receiving module configured to receive the encryption result sent by the terminal, where the encryption result includes a result obtained by the terminal performing encryption calculation on the first code and the second code;
  • a determining module configured to determine, according to the encryption result and the encrypted information, whether the SIM card and the terminal are interlocked, the encrypted information including a result obtained by the SIM card being encrypted by the first code .
  • the first code is carried in an obtaining input instruction.
  • a computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the method of interlocking the machine card.
  • the solution of the embodiment of the present invention includes: the terminal obtains the first code sent by the SIM card; the terminal performs encryption calculation on the first code and the second code to obtain an encryption result, where the second code includes An integrated circuit card identification code; the terminal transmitting the encryption result to the SIM card to cause the SIM card to determine whether the SIM card and the terminal are interlocked.
  • the normal communication under the scenario that the SIM card and the terminal are matched is realized, thereby realizing the interlock function of the SIM card and the terminal.
  • FIG. 1 is a schematic flowchart of an embodiment of a method for interlocking a machine card according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a second embodiment of a method for interlocking a machine card according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a third embodiment of a method for interlocking a machine card according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an embodiment of a machine card interlocking device according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a second embodiment of a machine card interlocking device according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a third embodiment of a machine card interlocking device according to an embodiment of the present invention.
  • the method for interlocking the card provided by the embodiment of the present invention is applied to a scenario in which the terminal and the SIM card are interlocked.
  • the terminal may be a mobile terminal, such as a digital mobile phone, or a smart phone.
  • the machine card interlocking method provided in this embodiment may be implemented by a machine card interlocking device, and the card interlocking device may be separately set or may be disposed in a terminal or a SIM card, wherein the device may be implemented by software/hardware.
  • FIG. 1 is a schematic flowchart of a method for interlocking a machine card according to an embodiment of the present invention. As shown in FIG. 1 , the method for interlocking a machine card provided by the present invention includes steps 101-103:
  • Step 101 The terminal obtains the first code sent by the SIM card of the customer identification module.
  • the first code may be a set of codes randomly sent by the SIM card, for example, the first code may be a 16-byte random number.
  • Step 102 The terminal performs an encryption calculation on the first code and the second code to obtain an encryption result.
  • the second code includes an integrated circuit card identity (ICCID).
  • ICCID integrated circuit card identity
  • the terminal performs encryption calculation on the first code and the second code
  • the encryption algorithm used may be a MILENAGE encryption algorithm.
  • the MILENAGE algorithm requires two input parameters, that is, the first code and the second code are both 16 bytes, if one of the codes is less than 16 bytes, for example, the ICCID is 10 bytes, the remaining bytes are filled with FF.
  • Step 103 The terminal sends an encryption result to the SIM card, so that the SIM card determines whether the SIM card and the terminal are interlocked.
  • the SIM card may compare with the encryption result of the first code according to the encryption result to determine whether the SIM card and the terminal match, and if the SIM card matches the terminal, the SIM card The terminal and the terminal can communicate normally. If the SIM card and the terminal do not match, the SIM card and the terminal cannot communicate normally, thereby implementing the interlock function of the SIM card and the terminal.
  • the terminal obtains the first code sent by the SIM card; the terminal performs encryption calculation on the first code and the second code to obtain an encryption result, and the second code includes an integrated circuit card identification code; The terminal sends the encryption result to the SIM card, so that the SIM card determines whether the SIM card and the terminal are interlocked according to the encryption result.
  • the normal communication under the scenario that the SIM card and the terminal are matched is realized, thereby realizing the interlock function of the SIM card and the terminal.
  • the method further includes:
  • the terminal performs encryption calculation on the first code and the second code, and before determining the encryption result, the terminal determines whether the second code is stored by itself;
  • the second code If it is determined that the second code is not stored by itself, acquiring the second code to the SIM card, and storing the second code card in an unerasable area of the terminal, and then performing the terminal to perform the The first code and the second code perform an encryption calculation to obtain an encryption result;
  • the execution terminal performs an encryption calculation on the first code and the second code to obtain an encryption result.
  • the first code is carried in an instruction to obtain an input get input.
  • FIG. 2 is a schematic flowchart of the second embodiment of the method for interlocking the card of the present invention. As shown in FIG. 2, the method for interlocking the card provided by the embodiment of the present invention includes steps 201-203:
  • Step 201 The SIM card of the customer identification module sends the first code to the terminal.
  • the first code may be a set of codes randomly issued by the SIM, for example, the first code may be a 16-byte random number.
  • Step 202 The SIM card receives the encryption result sent by the terminal.
  • the encryption result includes a result obtained by the terminal performing encryption calculation on the first code and the second code.
  • Step 203 The SIM card determines, according to the encryption result and the encryption information, whether the SIM card and the terminal are interlocked.
  • the encrypted information includes a result obtained by the SIM card performing encryption calculation by using the first code.
  • the SIM card communicates normally with the terminal; if it is determined that the SIM card and the terminal do not match, the SIM card and the terminal cannot communicate normally, thereby realizing the interaction between the SIM card and the terminal. Interlocking.
  • the SIM card sends the first code to the terminal; the SIM card receives the encryption result sent by the terminal, and the encryption result includes the terminal encrypting the first code and the second code. Calculating the obtained result; the SIM card determines, according to the encryption result, whether the SIM card and the terminal match. Realizing normal communication under the scenario that the SIM card and the terminal match, and further The interlock function of the SIM card and the terminal is realized.
  • the first code is carried in an instruction to obtain an input get input.
  • FIG. 3 is a schematic flowchart of a third embodiment of a method for interlocking a machine card according to the present invention. As shown in FIG. 3, the method for interlocking a machine card provided by the present invention includes steps 301-306:
  • Step 301 The terminal sends a summary information download instruction to the SIM card.
  • the summary information download terminal profile command carries signaling information that the terminal can support.
  • the summary information download instruction carrying terminal can support a get input instruction.
  • step 301 the execution scenario of step 301 is that after the terminal is powered on, that is, the terminal is powered on, and the terminal and the SIM are initialized.
  • the third bit of the third byte of the terminal profile instruction needs to be set to 1.
  • the third byte includes the following 8 bits, namely BIT8 BIT7 BIT6 BIT5 BIT4 BIT3BIT2BIT1, where
  • Step 302 The SIM card sends a command normal end instruction to the terminal.
  • the command normal end instruction may include a 91xx instruction, wherein the length of the data returned by the UICC is represented by 'XX', and "91" represents status information.
  • the 91xx instruction includes the length of the active command that the terminal needs to process.
  • Step 303 The terminal sends a fetch instruction to the SIM card.
  • the fetch instruction includes a first code that requests the SIM card to send.
  • Step 304 The terminal acquires an active command sent by the SIM card.
  • the terminal according to the length reported in step 303, the active command reported by the SIM card should be a get input instruction, and in the text field of the get input instruction, the first code is included, and the first code length may be A 16-byte random number.
  • the get input instruction refer to the 3GPP31.111 protocol.
  • Step 305 The terminal performs encryption calculation on the first code and the second code to obtain an encryption result.
  • the second code comprises an integrated circuit card identification code.
  • Step 306 The terminal sends an encryption result to the SIM card, so that the SIM card determines whether the SIM card and the terminal match.
  • the SIM card communicates normally with the terminal; if it is determined that the SIM card and the terminal do not match, the SIM card cannot communicate with the terminal normally.
  • the normal communication in the scenario in which the SIM card and the terminal are matched is implemented, thereby implementing the interlock function of the SIM card and the terminal.
  • the device card interlocking device may be disposed in the terminal, and includes: an obtaining module 41, an encryption module 42, and a sending module 43. . among them,
  • the obtaining module 41 is arranged to obtain the first code sent by the SIM card.
  • the encryption module 42 is configured to perform encryption calculation on the first code and the second code to obtain an encryption result, and the second code includes an integrated circuit card identification code.
  • the sending module 43 is configured to send the encryption result to the SIM card, so that the SIM card determines whether the SIM card and the terminal are interlocked.
  • the terminal obtains the first code sent by the SIM card; the terminal performs encryption calculation on the first code and the second code to obtain an encryption result, and the second code includes an integrated circuit card identification code; The terminal sends the encryption result to the SIM card, so that the SIM card determines whether the SIM card and the terminal are interlocked.
  • the normal communication under the scenario that the SIM card and the terminal are matched is realized, thereby realizing the interlock function of the SIM card and the terminal.
  • FIG. 5 is a schematic structural diagram of a second embodiment of a machine card interlocking device according to the present invention, as shown in FIG.
  • the card interlocking device may further include: a determining module 44, based on the foregoing embodiment.
  • the determining module 44 is configured to determine whether the second code is stored by itself; if it is determined that the second code is not stored by itself, the second code is acquired to the SIM card, and the second code card is stored And in the non-erasable area of the terminal, instructing the encryption module to perform encryption calculation on the first code and the second code to obtain an encryption result.
  • the first code is carried in an input command.
  • the normal communication in the scenario in which the SIM card and the terminal are matched is implemented, thereby implementing the interlock function of the SIM card and the terminal.
  • FIG. 6 is a schematic structural diagram of a third embodiment of the machine card interlocking device of the present invention.
  • the card interlocking device is disposed in a SIM card of a customer identification module, and includes: a sending module 61, a receiving module 62, and The module 63 is determined. among them,
  • the sending module 61 is configured to send the first code to the terminal.
  • the receiving module 62 is configured to receive the encryption result sent by the terminal, where the encryption result includes a result obtained by the terminal performing encryption calculation on the first code and the second code;
  • the determining module 63 is configured to determine, according to the encryption result and the encryption information, whether the SIM card and the terminal are interlocked, and the encrypted information includes the SIM card obtained by performing encryption calculation by using the first code. result.
  • the SIM card sends the first code to the terminal; the SIM card receives the encryption result sent by the terminal, and the encryption result includes the terminal encrypting the first code and the second code. Calculating the obtained result and the encrypted information; the SIM card determines, according to the encryption result, whether the SIM card and the terminal are interlocked, and the encrypted information includes the SIM card being encrypted by the first code Calculate the results obtained.
  • the normal communication under the scenario that the SIM card and the terminal are matched is realized, thereby realizing the interlock function of the SIM card and the terminal.
  • the first code is carried in an input command.
  • a computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the method of interlocking the machine card.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the solution of the embodiment of the present invention obtains the first code sent by the SIM card by using the terminal; the terminal performs encryption calculation on the first code and the second code to obtain an encryption result, where the second code includes an integrated circuit card identification code; The terminal sends the encryption result to the SIM card, so that the SIM card determines whether the SIM card and the terminal are interlocked.
  • the normal communication under the scenario that the SIM card and the terminal are matched is realized, thereby realizing the interlock function of the SIM card and the terminal.

Abstract

The present application discloses a mutual authentication method and apparatus for a device and a card, and computer readable storage medium. The method comprises: a terminal acquires a first code sent by a SIM card; the terminal performs encryption computation on the first code and a second code to obtain an encryption result, wherein the second code comprises an integrated circuit card identifier code; and the terminal sends the encryption result to the SIM card, such that the SIM card determines whether the SIM card and the terminal authenticate each other.

Description

一种机卡互锁方法、装置和计算机可读存储介质Machine card interlocking method, device and computer readable storage medium 技术领域Technical field
本申请涉及但不限于通信领域,尤其涉及一种机卡互锁方法、装置和和计算机可读存储介质。The present application relates to, but is not limited to, the field of communications, and in particular, to a method and apparatus for interlocking a card, and a computer readable storage medium.
背景技术Background technique
随着通信技术的发展,人们可以采用机卡互锁方式,实现一张机卡仅在一个终端上使用。With the development of communication technology, people can use the machine card interlock mode to realize that one machine card is used only on one terminal.
通常,将机卡,如客户识别模块(Subscriber Identity Module,简称SIM)卡设置在终端之后,SIM卡与终端之间进行初始化操作,以使终端获得设置在SIM卡上的个人识别密码(Personal Identification Number,简称PIN),其中,PIN码为SIM卡在出厂时设置的,接着,终端将获得的PIN码修改为随机的值,并且将随机的PIN码保存在终端中,再接着,激活SIM卡的PIN码,从而每次终端开机之后,终端可以通过该随机的PIN码对SIM卡进行校验,以确定该SIM卡是终端唯一确定的SIM卡。Generally, a machine card, such as a Subscriber Identity Module (SIM) card, is disposed after the terminal, and an initialization operation is performed between the SIM card and the terminal, so that the terminal obtains a personal identification password (Personal Identification) set on the SIM card. Number, referred to as PIN), wherein the PIN code is set by the SIM card at the factory, and then the terminal modifies the obtained PIN code to a random value, and saves the random PIN code in the terminal, and then activates the SIM card. The PIN code, so that after the terminal is powered on, the terminal can check the SIM card by using the random PIN code to determine that the SIM card is the SIM card uniquely determined by the terminal.
在实现上述相关技术的过程中,本领域技术人员发现,若获知SIM卡的PUK,则通过PUK修改该SIM卡的PIN码,导致机卡互锁失效。In the process of implementing the related technology, those skilled in the art find that if the PUK of the SIM card is known, the PIN code of the SIM card is modified by the PUK, resulting in the failure of the card interlock.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供了一种机卡互锁方法、装置和计算机可读存储介质,用以解决机卡互锁失效的问题。The embodiment of the invention provides a method, a device and a computer readable storage medium for interlocking a machine card, which are used to solve the problem that the card interlocking fails.
一种机卡互锁方法,包括:A method for interlocking a machine card, comprising:
终端获得客户识别模块的SIM卡发送的第一代码。The terminal obtains the first code sent by the SIM card of the customer identification module.
所述终端将所述第一代码和第二代码进行加密计算,获得加密结果,所述第二代码包括集成电路卡识别码;The terminal performs encryption calculation on the first code and the second code to obtain an encryption result, where the second code includes an integrated circuit card identification code;
所述终端向所述SIM卡发送所述加密结果,以使所述SIM卡确定所述SIM 卡和所述终端是否互锁。Transmitting, by the terminal, the encryption result to the SIM card, so that the SIM card determines the SIM Whether the card and the terminal are interlocked.
可选地,所述方法还包括:Optionally, the method further includes:
在所述终端将所述第一代码和第二代码进行加密计算,获得加密结果之前,所述终端确定自身是否存储所述第二代码;Before the terminal performs encryption calculation on the first code and the second code to obtain an encryption result, the terminal determines whether it stores the second code;
如果确定自身没有存储所述第二代码,则向所述SIM卡获取所述第二代码,并将所第二代码卡存储在所述终端的不可擦除区域,然后执行所述终端将所述第一代码和第二代码进行加密计算,获得加密结果。If it is determined that the second code is not stored by itself, acquiring the second code to the SIM card, and storing the second code card in an unerasable area of the terminal, and then performing the terminal to perform the The first code and the second code perform an encryption calculation to obtain an encryption result.
可选地,所述第一代码携带在获得输入指令中。Optionally, the first code is carried in an obtaining input instruction.
一种机卡互锁方法,包括:A method for interlocking a machine card, comprising:
客户识别模块的SIM卡向终端发送第一代码;The SIM card of the customer identification module sends the first code to the terminal;
所述SIM卡接收所述终端发送的所述加密结果,所述加密结果包括所述终端将所述第一代码和第二代码进行加密计算获得的结果;The SIM card receives the encryption result sent by the terminal, and the encryption result includes a result obtained by the terminal performing encryption calculation on the first code and the second code;
所述SIM卡根据所述加密结果和加密信息,确定所述SIM卡和所述终端是否互锁,所述加密信息包括所述SIM卡通过所述第一代码进行加密计算获得的结果。The SIM card determines whether the SIM card and the terminal are interlocked according to the encryption result and the encryption information, and the encryption information includes a result obtained by the SIM card performing encryption calculation by using the first code.
可选地,所述第一代码携带在获得输入指令中。Optionally, the first code is carried in an obtaining input instruction.
一种机卡互锁装置,包括:A machine card interlock device includes:
获得模块,设置为获得客户识别模块的SIM卡发送的第一代码;Obtaining a module, configured to obtain a first code sent by a SIM card of the customer identification module;
加密模块,设置为将所述第一代码和第二代码进行加密计算,获得加密结果,所述第二代码包括集成电路卡识别码;An encryption module, configured to perform encryption calculation on the first code and the second code to obtain an encryption result, where the second code includes an integrated circuit card identification code;
发送模块,设置为向所述SIM卡发送所述加密结果,以使所述SIM卡确定所述SIM卡和所述终端是否互锁。And a sending module, configured to send the encryption result to the SIM card, so that the SIM card determines whether the SIM card and the terminal are interlocked.
可选地,该装置还包括:确定模块;Optionally, the device further includes: a determining module;
所述确定模块,设置为确定自身是否存储所述第二代码;如果确定自身没有存储所述第二代码,则向所述SIM卡获取所述第二代码,并将所第二代码卡存储在所述终端的不可擦除区域,指示所述加密模块执行将所述第一代码和第二代码进行加密计算,获得加密结果。The determining module is configured to determine whether the second code is stored by itself; if it is determined that the second code is not stored by itself, acquiring the second code to the SIM card, and storing the second code card in The non-erasable area of the terminal instructs the encryption module to perform encryption calculation on the first code and the second code to obtain an encryption result.
可选地,所述第一代码携带在获得输入指令中。 Optionally, the first code is carried in an obtaining input instruction.
一种机卡互锁装置,设置在终端中,包括:A machine card interlocking device is disposed in the terminal and includes:
发送模块,设置为向终端发送第一代码;a sending module, configured to send a first code to the terminal;
接收模块,设置为接收所述终端发送的所述加密结果,所述加密结果包括所述终端将所述第一代码和第二代码进行加密计算获得的结果;a receiving module, configured to receive the encryption result sent by the terminal, where the encryption result includes a result obtained by the terminal performing encryption calculation on the first code and the second code;
确定模块,设置为根据所述加密结果和加密信息,确定所述SIM卡和所述终端是否互锁,所述加密信息包括所述所述SIM卡通过所述第一代码进行加密计算获得的结果。a determining module, configured to determine, according to the encryption result and the encrypted information, whether the SIM card and the terminal are interlocked, the encrypted information including a result obtained by the SIM card being encrypted by the first code .
可选地,所述第一代码携带在获得输入指令中。Optionally, the first code is carried in an obtaining input instruction.
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现所述的机卡互锁方法。A computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the method of interlocking the machine card.
与相关技术相比,本发明实施例方案包括,终端获得SIM卡发送的第一代码;所述终端将所述第一代码和第二代码进行加密计算,获得加密结果,所述第二代码包括集成电路卡识别码;所述终端向所述SIM卡发送所述加密结果,以使所述SIM卡确定所述SIM卡和所述终端是否互锁。实现了SIM卡和终端匹配的场景下正常通信,进而实现了SIM卡和终端的互锁功能。Compared with the related art, the solution of the embodiment of the present invention includes: the terminal obtains the first code sent by the SIM card; the terminal performs encryption calculation on the first code and the second code to obtain an encryption result, where the second code includes An integrated circuit card identification code; the terminal transmitting the encryption result to the SIM card to cause the SIM card to determine whether the SIM card and the terminal are interlocked. The normal communication under the scenario that the SIM card and the terminal are matched is realized, thereby realizing the interlock function of the SIM card and the terminal.
附图概述BRIEF abstract
图1为本发明实施例的机卡互锁方法一实施例的流程示意图;1 is a schematic flowchart of an embodiment of a method for interlocking a machine card according to an embodiment of the present invention;
图2为本发明实施例的机卡互锁方法二实施例的流程示意图;2 is a schematic flowchart of a second embodiment of a method for interlocking a machine card according to an embodiment of the present invention;
图3为本发明实施例的机卡互锁方法三实施例的流程示意图;3 is a schematic flowchart of a third embodiment of a method for interlocking a machine card according to an embodiment of the present invention;
图4为本发明实施例的机卡互锁装置一实施例的结构示意图;4 is a schematic structural diagram of an embodiment of a machine card interlocking device according to an embodiment of the present invention;
图5为本发明实施例的机卡互锁装置二实施例的结构示意图FIG. 5 is a schematic structural diagram of a second embodiment of a machine card interlocking device according to an embodiment of the present invention;
图6为本发明实施例的机卡互锁装置三实施例的结构示意图。FIG. 6 is a schematic structural diagram of a third embodiment of a machine card interlocking device according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
本发明实施例提供的机卡互锁方法应用于终端与SIM卡互锁的场景下, 其中,该终端可以是移动终端,例如,数字移动电话,或者智能电话。本实施例提供的机卡互锁方法可以通过机卡互锁装置执行,该机卡互锁装置可以单独设置,也可以设置在终端或SIM卡中,其中,该装置可以采用软/硬件实现。以下对机卡互锁方法及其装置进行详细阐述。The method for interlocking the card provided by the embodiment of the present invention is applied to a scenario in which the terminal and the SIM card are interlocked. The terminal may be a mobile terminal, such as a digital mobile phone, or a smart phone. The machine card interlocking method provided in this embodiment may be implemented by a machine card interlocking device, and the card interlocking device may be separately set or may be disposed in a terminal or a SIM card, wherein the device may be implemented by software/hardware. The following describes the machine card interlocking method and its device in detail.
图1为本发明的机卡互锁方法一实施例的流程示意图,如图1所示,本发明提供的机卡互锁方法,包括步骤101-103:FIG. 1 is a schematic flowchart of a method for interlocking a machine card according to an embodiment of the present invention. As shown in FIG. 1 , the method for interlocking a machine card provided by the present invention includes steps 101-103:
步骤101、终端获得客户识别模块的SIM卡发送的第一代码。Step 101: The terminal obtains the first code sent by the SIM card of the customer identification module.
举例来讲,该第一代码可以是SIM卡随机发出的一组代码,例如,该第一代码可以是16个字节的随机数。For example, the first code may be a set of codes randomly sent by the SIM card, for example, the first code may be a 16-byte random number.
步骤102、终端将第一代码和第二代码进行加密计算,获得加密结果。Step 102: The terminal performs an encryption calculation on the first code and the second code to obtain an encryption result.
在本实施例中,所述第二代码包括集成电路卡识别码(Integrate circuit card identity,简称ICCID)。In this embodiment, the second code includes an integrated circuit card identity (ICCID).
举例来讲,本实施例中终端将第一代码和第二代码进行加密计算,采用的加密算法可以是MILENAGE加密算法,MILENAGE算法是需要两个输入参数,即第一代码和第二代码均为16个字节,如果其中一个代码不足16个字节,例如,ICCID为10个字节,则剩余的字节用FF补齐。For example, in this embodiment, the terminal performs encryption calculation on the first code and the second code, and the encryption algorithm used may be a MILENAGE encryption algorithm. The MILENAGE algorithm requires two input parameters, that is, the first code and the second code are both 16 bytes, if one of the codes is less than 16 bytes, for example, the ICCID is 10 bytes, the remaining bytes are filled with FF.
步骤103、终端向SIM卡发送加密结果,以使所述SIM卡确定所述SIM卡和所述终端是否互锁。Step 103: The terminal sends an encryption result to the SIM card, so that the SIM card determines whether the SIM card and the terminal are interlocked.
SIM卡接收终端发送的加密结果之后,可以根据该加密结果与自身根据第一代码的加密结果进行比较,确定SIM卡和所述终端是否匹配,如果SIM卡和所述终端匹配,则该SIM卡和所述终端可以正常通信,如果SIM卡和所述终端不匹配,则该SIM卡和所述终端无法正常通信,从而实现了SIM卡和终端的互锁功能。After receiving the encryption result sent by the terminal, the SIM card may compare with the encryption result of the first code according to the encryption result to determine whether the SIM card and the terminal match, and if the SIM card matches the terminal, the SIM card The terminal and the terminal can communicate normally. If the SIM card and the terminal do not match, the SIM card and the terminal cannot communicate normally, thereby implementing the interlock function of the SIM card and the terminal.
在本实施例中,终端获得SIM卡发送的第一代码;所述终端将所述第一代码和第二代码进行加密计算,获得加密结果,所述第二代码包括集成电路卡识别码;所述终端向所述SIM卡发送所述加密结果,以使所述SIM卡根据所述所述加密结果,确定所述SIM卡和所述终端是否互锁。实现了SIM卡和终端匹配的场景下正常通信,进而实现了SIM卡和终端的互锁功能。In this embodiment, the terminal obtains the first code sent by the SIM card; the terminal performs encryption calculation on the first code and the second code to obtain an encryption result, and the second code includes an integrated circuit card identification code; The terminal sends the encryption result to the SIM card, so that the SIM card determines whether the SIM card and the terminal are interlocked according to the encryption result. The normal communication under the scenario that the SIM card and the terminal are matched is realized, thereby realizing the interlock function of the SIM card and the terminal.
在上述实施例的基础上,该方法还包括: Based on the foregoing embodiment, the method further includes:
所述终端将所述第一代码和第二代码进行加密计算,获得加密结果之前,所述终端确定自身是否存储所述第二代码;The terminal performs encryption calculation on the first code and the second code, and before determining the encryption result, the terminal determines whether the second code is stored by itself;
如果确定自身没有存储所述第二代码,则向所述SIM卡获取所述第二代码,并将所第二代码卡存储在所述终端的不可擦除区域,然后执行所述终端将所述第一代码和第二代码进行加密计算,获得加密结果;If it is determined that the second code is not stored by itself, acquiring the second code to the SIM card, and storing the second code card in an unerasable area of the terminal, and then performing the terminal to perform the The first code and the second code perform an encryption calculation to obtain an encryption result;
如果确定自身存储所述第二代码,则执行终端将所述第一代码和第二代码进行加密计算,获得加密结果。If it is determined that the second code is stored by itself, the execution terminal performs an encryption calculation on the first code and the second code to obtain an encryption result.
可选地,在上述实施例的基础上,所述第一代码携带在获得输入get input指令中。Optionally, based on the foregoing embodiment, the first code is carried in an instruction to obtain an input get input.
图2为本发明的机卡互锁方法二实施例的流程示意图,如图2所示,本发明实施例提供的机卡互锁方法,包括步骤201-203:FIG. 2 is a schematic flowchart of the second embodiment of the method for interlocking the card of the present invention. As shown in FIG. 2, the method for interlocking the card provided by the embodiment of the present invention includes steps 201-203:
步骤201、客户识别模块的SIM卡向终端发送第一代码。Step 201: The SIM card of the customer identification module sends the first code to the terminal.
举例来讲,该第一代码可以是SIM随机发出的一组代码,例如,该第一代码可以是16个字节的随机数。For example, the first code may be a set of codes randomly issued by the SIM, for example, the first code may be a 16-byte random number.
步骤202、SIM卡接收所述终端发送的所述加密结果。Step 202: The SIM card receives the encryption result sent by the terminal.
在本实施例中,所述加密结果包括所述终端将所述第一代码和第二代码进行加密计算获得的结果。In this embodiment, the encryption result includes a result obtained by the terminal performing encryption calculation on the first code and the second code.
步骤203、SIM卡根据所述加密结果和加密信息,确定所述SIM卡和所述终端是否互锁。Step 203: The SIM card determines, according to the encryption result and the encryption information, whether the SIM card and the terminal are interlocked.
本实施例中,加密信息包括所述SIM卡通过所述第一代码进行加密计算获得的结果。In this embodiment, the encrypted information includes a result obtained by the SIM card performing encryption calculation by using the first code.
如果确定SIM卡和所述终端匹配,则SIM卡与终端之间正常通信;如果确定SIM卡和所述终端不匹配,则SIM卡与终端之间无法正常通信,从而实现SIM卡与终端之间的互锁。If it is determined that the SIM card and the terminal match, the SIM card communicates normally with the terminal; if it is determined that the SIM card and the terminal do not match, the SIM card and the terminal cannot communicate normally, thereby realizing the interaction between the SIM card and the terminal. Interlocking.
在本实施例中,SIM卡向终端发送第一代码;所述SIM卡接收所述终端发送的所述加密结果,所述加密结果包括所述终端将所述第一代码和第二代码进行加密计算获得的结果;所述SIM卡根据所述加密结果,确定所述SIM卡和所述终端是否匹配。实现了SIM卡和终端匹配的场景下正常通信,进而 实现了SIM卡和终端的互锁功能。In this embodiment, the SIM card sends the first code to the terminal; the SIM card receives the encryption result sent by the terminal, and the encryption result includes the terminal encrypting the first code and the second code. Calculating the obtained result; the SIM card determines, according to the encryption result, whether the SIM card and the terminal match. Realizing normal communication under the scenario that the SIM card and the terminal match, and further The interlock function of the SIM card and the terminal is realized.
在上述实施例的基础上,所述第一代码携带在获得输入get input指令中。Based on the above embodiment, the first code is carried in an instruction to obtain an input get input.
图3为本发明的机卡互锁方法三实施例的流程示意图,如图3所示,本发明提供的机卡互锁方法,包括步骤301-306:FIG. 3 is a schematic flowchart of a third embodiment of a method for interlocking a machine card according to the present invention. As shown in FIG. 3, the method for interlocking a machine card provided by the present invention includes steps 301-306:
步骤301、终端向SIM卡发送概要信息下载指令。Step 301: The terminal sends a summary information download instruction to the SIM card.
在本实施例中,所述概要信息下载terminal profile指令携带所述终端可支持的信令信息,举例来讲,所述概要信息下载指令携带终端可支持get input指令。In this embodiment, the summary information download terminal profile command carries signaling information that the terminal can support. For example, the summary information download instruction carrying terminal can support a get input instruction.
需要说明的是,步骤301的执行场景是,在终端开机,即终端上电,终端与SIM进行初始化之后。It should be noted that the execution scenario of step 301 is that after the terminal is powered on, that is, the terminal is powered on, and the terminal and the SIM are initialized.
举例来讲,参考3GPP31.111协议,需要将terminal profile指令的第三个字节的第三个bit置为1。第三字节(主动式UICC命令):包括如下8位,即BIT8 BIT7 BIT6 BIT5 BIT4 BIT3BIT2BIT1,其中,For example, referring to the 3GPP31.111 protocol, the third bit of the third byte of the terminal profile instruction needs to be set to 1. The third byte (active UICC command): includes the following 8 bits, namely BIT8 BIT7 BIT6 BIT5 BIT4 BIT3BIT2BIT1, where
BIT8——主动式UICC命令:REFRESHBIT8 - Active UICC command: REFRESH
BIT7——主动式UICC命令:POLLING OFFBIT7 - Active UICC command: POLLING OFF
BIT6——主动式UICC命令:POLL INTERVALBIT6 - Active UICC command: POLL INTERVAL
BIT5——主动式UICC命令:PLAY TONEBIT5 - Active UICC command: PLAY TONE
BIT4——主动式UICC命令:MORE TIMEBIT4 - Active UICC command: MORE TIME
BIT3——主动式UICC命令:GET INPUTBIT3 - Active UICC command: GET INPUT
BIT2——主动式UICC命令:GET INKEYBIT2 - Active UICC command: GET INKEY
BIT1——主动式UICC命令:DISPLAY TEXTBIT1 - Active UICC command: DISPLAY TEXT
步骤302、SIM卡向终端发送命令正常结束指令。Step 302: The SIM card sends a command normal end instruction to the terminal.
举例来讲,该命令正常结束指令可以包括91xx指令,其中,UICC所返回的数据的长度,用'XX'表示,“91”代表状态信息。For example, the command normal end instruction may include a 91xx instruction, wherein the length of the data returned by the UICC is represented by 'XX', and "91" represents status information.
在本实施例中,该91xx指令包括终端需要处理的主动式命令的长度。In this embodiment, the 91xx instruction includes the length of the active command that the terminal needs to process.
步骤303、终端向SIM卡发送获取fetch指令。 Step 303: The terminal sends a fetch instruction to the SIM card.
在本实施例中,所述fetch指令包括请求SIM卡发送的第一代码。In this embodiment, the fetch instruction includes a first code that requests the SIM card to send.
步骤304、终端获取SIM卡发送的主动式命令。Step 304: The terminal acquires an active command sent by the SIM card.
在本实施例中,终端按照步骤303上报的长度,取到SIM卡上报的主动式命令应该为get input指令,在get input指令的文本字段中,包含第一代码,该第一代码长度可以为16个字节的随机数。关于get input指令可以参考3GPP31.111协议。In this embodiment, the terminal according to the length reported in step 303, the active command reported by the SIM card should be a get input instruction, and in the text field of the get input instruction, the first code is included, and the first code length may be A 16-byte random number. For the get input instruction, refer to the 3GPP31.111 protocol.
步骤305、终端将第一代码和第二代码进行加密计算,获得加密结果。Step 305: The terminal performs encryption calculation on the first code and the second code to obtain an encryption result.
在本实施例中,所述第二代码包括集成电路卡识别码。In this embodiment, the second code comprises an integrated circuit card identification code.
步骤306、终端向SIM卡发送加密结果,以使所述SIM卡确定所述SIM卡和所述终端是否匹配。Step 306: The terminal sends an encryption result to the SIM card, so that the SIM card determines whether the SIM card and the terminal match.
如果确定SIM卡和所述终端匹配,则SIM卡与终端之间正常通信;如果确定SIM卡和所述终端不匹配,则SIM卡与终端之间无法正常通信。If it is determined that the SIM card and the terminal match, the SIM card communicates normally with the terminal; if it is determined that the SIM card and the terminal do not match, the SIM card cannot communicate with the terminal normally.
在本实施例中,实现了SIM卡和终端匹配的场景下正常通信,进而实现了SIM卡和终端的互锁功能。In this embodiment, the normal communication in the scenario in which the SIM card and the terminal are matched is implemented, thereby implementing the interlock function of the SIM card and the terminal.
图4为本发明的机卡互锁装置一实施例的结构示意图,如图4所示,该机卡互锁装置,可以设置在终端中,包括:获得模块41、加密模块42和发送模块43。其中,4 is a schematic structural diagram of an embodiment of the machine card interlocking device of the present invention. As shown in FIG. 4, the device card interlocking device may be disposed in the terminal, and includes: an obtaining module 41, an encryption module 42, and a sending module 43. . among them,
获得模块41,设置为获得SIM卡发送的第一代码。The obtaining module 41 is arranged to obtain the first code sent by the SIM card.
加密模块42,设置为将所述第一代码和第二代码进行加密计算,获得加密结果,所述第二代码包括集成电路卡识别码。The encryption module 42 is configured to perform encryption calculation on the first code and the second code to obtain an encryption result, and the second code includes an integrated circuit card identification code.
发送模块43,设置为向所述SIM卡发送所述加密结果,以使所述SIM卡确定所述SIM卡和所述终端是否互锁。The sending module 43 is configured to send the encryption result to the SIM card, so that the SIM card determines whether the SIM card and the terminal are interlocked.
在本实施例中,终端获得SIM卡发送的第一代码;所述终端将所述第一代码和第二代码进行加密计算,获得加密结果,所述第二代码包括集成电路卡识别码;所述终端向所述SIM卡发送所述加密结果,以使所述SIM卡确定所述SIM卡和所述终端是否互锁。实现了SIM卡和终端匹配的场景下正常通信,进而实现了SIM卡和终端的互锁功能。In this embodiment, the terminal obtains the first code sent by the SIM card; the terminal performs encryption calculation on the first code and the second code to obtain an encryption result, and the second code includes an integrated circuit card identification code; The terminal sends the encryption result to the SIM card, so that the SIM card determines whether the SIM card and the terminal are interlocked. The normal communication under the scenario that the SIM card and the terminal are matched is realized, thereby realizing the interlock function of the SIM card and the terminal.
图5为本发明的机卡互锁装置二实施例的结构示意图,如图5所示,该 机卡互锁装置,在上述实施例的基础上,还可以包括:确定模块44。FIG. 5 is a schematic structural diagram of a second embodiment of a machine card interlocking device according to the present invention, as shown in FIG. The card interlocking device may further include: a determining module 44, based on the foregoing embodiment.
所述确定模块44,设置为确定自身是否存储所述第二代码;如果确定自身没有存储所述第二代码,则向所述SIM卡获取所述第二代码,并将所第二代码卡存储在所述终端的不可擦除区域,指示所述加密模块执行将所述第一代码和第二代码进行加密计算,获得加密结果。The determining module 44 is configured to determine whether the second code is stored by itself; if it is determined that the second code is not stored by itself, the second code is acquired to the SIM card, and the second code card is stored And in the non-erasable area of the terminal, instructing the encryption module to perform encryption calculation on the first code and the second code to obtain an encryption result.
在上述实施例的基础上,所述第一代码携带在获得输入指令中。Based on the above embodiment, the first code is carried in an input command.
在本实施例中,实现了SIM卡和终端匹配的场景下正常通信,进而实现了SIM卡和终端的互锁功能。In this embodiment, the normal communication in the scenario in which the SIM card and the terminal are matched is implemented, thereby implementing the interlock function of the SIM card and the terminal.
图6为本发明的机卡互锁装置三实施例的结构示意图,如图6所示,该机卡互锁装置,设置在客户识别模块SIM卡中,包括:发送模块61、接收模块62和确定模块63。其中,FIG. 6 is a schematic structural diagram of a third embodiment of the machine card interlocking device of the present invention. As shown in FIG. 6, the card interlocking device is disposed in a SIM card of a customer identification module, and includes: a sending module 61, a receiving module 62, and The module 63 is determined. among them,
发送模块61,设置为向终端发送第一代码。The sending module 61 is configured to send the first code to the terminal.
接收模块62,设置为接收所述终端发送的所述加密结果,所述加密结果包括所述终端将所述第一代码和第二代码进行加密计算获得的结果;The receiving module 62 is configured to receive the encryption result sent by the terminal, where the encryption result includes a result obtained by the terminal performing encryption calculation on the first code and the second code;
确定模块63,设置为根据所述加密结果和加密信息,确定所述SIM卡和所述终端是否互锁,所述加密信息包括所述所述SIM卡通过所述第一代码进行加密计算获得的结果。The determining module 63 is configured to determine, according to the encryption result and the encryption information, whether the SIM card and the terminal are interlocked, and the encrypted information includes the SIM card obtained by performing encryption calculation by using the first code. result.
在本实施例中,SIM卡向终端发送第一代码;所述SIM卡接收所述终端发送的所述加密结果,所述加密结果包括所述终端将所述第一代码和第二代码进行加密计算获得的结果和加密信息;所述SIM卡根据所述加密结果,确定所述SIM卡和所述终端是否互锁,所述加密信息包括所述所述SIM卡通过所述第一代码进行加密计算获得的结果。实现了SIM卡和终端匹配的场景下正常通信,进而实现了SIM卡和终端的互锁功能。In this embodiment, the SIM card sends the first code to the terminal; the SIM card receives the encryption result sent by the terminal, and the encryption result includes the terminal encrypting the first code and the second code. Calculating the obtained result and the encrypted information; the SIM card determines, according to the encryption result, whether the SIM card and the terminal are interlocked, and the encrypted information includes the SIM card being encrypted by the first code Calculate the results obtained. The normal communication under the scenario that the SIM card and the terminal are matched is realized, thereby realizing the interlock function of the SIM card and the terminal.
在上述实施例的基础上,所述第一代码携带在获得输入指令中。Based on the above embodiment, the first code is carried in an input command.
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现所述的机卡互锁方法。A computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the method of interlocking the machine card.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中, 所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium. The computer program is executed on a corresponding hardware platform (eg, system, device, device, device, etc.), and when executed, includes one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性Industrial applicability
本发明实施例方案通过终端获得SIM卡发送的第一代码;所述终端将所述第一代码和第二代码进行加密计算,获得加密结果,所述第二代码包括集成电路卡识别码;所述终端向所述SIM卡发送所述加密结果,以使所述SIM卡确定所述SIM卡和所述终端是否互锁。实现了SIM卡和终端匹配的场景下正常通信,进而实现了SIM卡和终端的互锁功能。 The solution of the embodiment of the present invention obtains the first code sent by the SIM card by using the terminal; the terminal performs encryption calculation on the first code and the second code to obtain an encryption result, where the second code includes an integrated circuit card identification code; The terminal sends the encryption result to the SIM card, so that the SIM card determines whether the SIM card and the terminal are interlocked. The normal communication under the scenario that the SIM card and the terminal are matched is realized, thereby realizing the interlock function of the SIM card and the terminal.

Claims (11)

  1. 一种机卡互锁方法,包括:A method for interlocking a machine card, comprising:
    终端获得客户识别模块的SIM卡发送的第一代码;The terminal obtains the first code sent by the SIM card of the customer identification module;
    所述终端将所述第一代码和第二代码进行加密计算,获得加密结果,所述第二代码包括集成电路卡识别码;The terminal performs encryption calculation on the first code and the second code to obtain an encryption result, where the second code includes an integrated circuit card identification code;
    所述终端向所述SIM卡发送所述加密结果,以使所述SIM卡确定所述SIM卡和所述终端是否互锁。The terminal sends the encryption result to the SIM card, so that the SIM card determines whether the SIM card and the terminal are interlocked.
  2. 根据权利要求1所述的方法,所述方法还包括:The method of claim 1 further comprising:
    在所述终端将所述第一代码和第二代码进行加密计算,获得加密结果之前,所述终端确定自身是否存储所述第二代码;Before the terminal performs encryption calculation on the first code and the second code to obtain an encryption result, the terminal determines whether it stores the second code;
    如果确定自身没有存储所述第二代码,则向所述SIM卡获取所述第二代码,并将所第二代码卡存储在所述终端的不可擦除区域,然后执行所述终端将所述第一代码和第二代码进行加密计算,获得加密结果。If it is determined that the second code is not stored by itself, acquiring the second code to the SIM card, and storing the second code card in an unerasable area of the terminal, and then performing the terminal to perform the The first code and the second code perform an encryption calculation to obtain an encryption result.
  3. 根据权利要求1或2所述的方法,其中,所述第一代码携带在获得输入指令中。The method of claim 1 or 2, wherein the first code is carried in an acquisition input instruction.
  4. 一种机卡互锁方法,包括:A method for interlocking a machine card, comprising:
    客户识别模块的SIM卡向终端发送第一代码;The SIM card of the customer identification module sends the first code to the terminal;
    所述SIM卡接收所述终端发送的所述加密结果,所述加密结果包括所述终端将所述第一代码和第二代码进行加密计算获得的结果,所述第二代码包括集成电路卡识别码;Receiving, by the SIM card, the encryption result sent by the terminal, the encryption result comprising a result obtained by the terminal performing encryption calculation on the first code and the second code, wherein the second code comprises an integrated circuit card identification code;
    所述SIM卡根据所述加密结果和加密信息,确定所述SIM卡和所述终端是否互锁,所述加密信息包括所述SIM卡通过所述第一代码进行加密计算获得的结果。The SIM card determines whether the SIM card and the terminal are interlocked according to the encryption result and the encryption information, and the encryption information includes a result obtained by the SIM card performing encryption calculation by using the first code.
  5. 根据权利要求4所述的方法,其中,所述第一代码携带在获得输入指令中。The method of claim 4 wherein said first code is carried in an acquisition input instruction.
  6. 一种机卡互锁装置,设置在终端中,包括:A machine card interlocking device is disposed in the terminal and includes:
    获得模块,设置为获得客户识别模块的SIM卡发送的第一代码;Obtaining a module, configured to obtain a first code sent by a SIM card of the customer identification module;
    加密模块,设置为将所述第一代码和第二代码进行加密计算,获得加密 结果,所述第二代码包括集成电路卡识别码;An encryption module configured to perform encryption calculation on the first code and the second code to obtain encryption As a result, the second code includes an integrated circuit card identification code;
    发送模块,设置为向所述SIM卡发送所述加密结果,以使所述SIM卡确定所述SIM卡和所述终端是否互锁。And a sending module, configured to send the encryption result to the SIM card, so that the SIM card determines whether the SIM card and the terminal are interlocked.
  7. 根据权利要求6所述的装置,还包括:确定模块;The apparatus of claim 6 further comprising: a determination module;
    所述确定模块,设置为确定自身是否存储所述第二代码;如果确定自身没有存储所述第二代码,则向所述SIM卡获取所述第二代码,并将所第二代码卡存储在所述终端的不可擦除区域,指示所述加密模块执行将所述第一代码和第二代码进行加密计算,获得加密结果。The determining module is configured to determine whether the second code is stored by itself; if it is determined that the second code is not stored by itself, acquiring the second code to the SIM card, and storing the second code card in The non-erasable area of the terminal instructs the encryption module to perform encryption calculation on the first code and the second code to obtain an encryption result.
  8. 根据权利要求6或7所述的装置,其中,所述第一代码携带在获得输入指令中。The apparatus of claim 6 or 7, wherein the first code is carried in an acquisition input instruction.
  9. 一种机卡互锁装置,设置在客户识别模块SIM卡中,包括:A machine card interlocking device is disposed in a SIM card of a customer identification module, including:
    发送模块,设置为向终端发送第一代码;a sending module, configured to send a first code to the terminal;
    接收模块,设置为接收所述终端发送的所述加密结果,所述加密结果包括所述终端将所述第一代码和第二代码进行加密计算获得的结果;a receiving module, configured to receive the encryption result sent by the terminal, where the encryption result includes a result obtained by the terminal performing encryption calculation on the first code and the second code;
    确定模块,设置为根据所述加密结果和加密信息,确定客户识别模块的SIM卡和所述终端是否互锁,所述加密信息包括所述SIM卡通过所述第一代码进行加密计算获得的结果。a determining module, configured to determine, according to the encryption result and the encrypted information, whether the SIM card of the customer identification module and the terminal are interlocked, the encrypted information including a result obtained by the SIM card being encrypted by the first code .
  10. 根据权利要求9所述的装置,其中,所述第一代码携带在获得输入指令中。The apparatus of claim 9 wherein said first code is carried in an acquisition input command.
  11. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现权利要求1至3任意一项所述的机卡互锁方法,以及权利要求4至5任意一项所述的机卡互锁方法。 A computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the method of interlocking a card according to any one of claims 1 to 3, and claims 4 to 5 The method of interlocking a machine card according to any one of the preceding claims.
PCT/CN2016/081755 2015-09-07 2016-05-11 Mutual authentication method and apparatus for device and card, and computer readable storage medium WO2017041503A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510566752.9A CN106507333A (en) 2015-09-07 2015-09-07 A kind of interlocking of phone and card method and device
CN201510566752.9 2015-09-07

Publications (1)

Publication Number Publication Date
WO2017041503A1 true WO2017041503A1 (en) 2017-03-16

Family

ID=58239193

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/081755 WO2017041503A1 (en) 2015-09-07 2016-05-11 Mutual authentication method and apparatus for device and card, and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN106507333A (en)
WO (1) WO2017041503A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2567045A (en) * 2017-08-07 2019-04-03 Motorola Solutions Inc Method and apparatus for associating SIM card with a group of mobile communications devices
CN109699015A (en) * 2017-10-23 2019-04-30 中国电信股份有限公司 Binding machine and card relationship authentication method, device and communication system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707645A (en) * 2009-10-22 2010-05-12 中兴通讯股份有限公司 The method for batch interlocking of terminals and cards and terminal thereof
CN202043284U (en) * 2010-12-20 2011-11-16 深圳市融创天下科技股份有限公司 Phone-card interlocking device and mobile terminal
WO2013008048A1 (en) * 2011-07-12 2013-01-17 Nokia Corporation Method and apparatus for provisioning network access credentials
CN104010298A (en) * 2014-05-05 2014-08-27 深圳市汇川技术股份有限公司 Safety protection system and method for SIM card of device terminal
CN104811926A (en) * 2014-01-26 2015-07-29 中兴通讯股份有限公司 Mobile terminal network-locking and card-locking methods, devices, mobile terminal and SIM card

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605328A (en) * 2009-05-25 2009-12-16 厦门敏讯信息技术股份有限公司 Communication system, terminal, SIM and machine-card authentication method
CN101751212B (en) * 2009-12-16 2014-06-04 中兴通讯股份有限公司 Method and system for interlocking UI and data card
CN101951594B (en) * 2010-08-03 2015-05-20 中兴通讯股份有限公司 Method for binding SIM (Subscriber Identity Module) card and terminal in bulk
CN103067167A (en) * 2011-10-19 2013-04-24 希姆通信息技术(上海)有限公司 Secret key storage method and telephone card authentication method of wireless fixed telephone

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707645A (en) * 2009-10-22 2010-05-12 中兴通讯股份有限公司 The method for batch interlocking of terminals and cards and terminal thereof
CN202043284U (en) * 2010-12-20 2011-11-16 深圳市融创天下科技股份有限公司 Phone-card interlocking device and mobile terminal
WO2013008048A1 (en) * 2011-07-12 2013-01-17 Nokia Corporation Method and apparatus for provisioning network access credentials
CN104811926A (en) * 2014-01-26 2015-07-29 中兴通讯股份有限公司 Mobile terminal network-locking and card-locking methods, devices, mobile terminal and SIM card
CN104010298A (en) * 2014-05-05 2014-08-27 深圳市汇川技术股份有限公司 Safety protection system and method for SIM card of device terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2567045A (en) * 2017-08-07 2019-04-03 Motorola Solutions Inc Method and apparatus for associating SIM card with a group of mobile communications devices
GB2567045B (en) * 2017-08-07 2020-01-01 Motorola Solutions Inc Method and apparatus for associating SIM card with a group of mobile communications devices
CN109699015A (en) * 2017-10-23 2019-04-30 中国电信股份有限公司 Binding machine and card relationship authentication method, device and communication system

Also Published As

Publication number Publication date
CN106507333A (en) 2017-03-15

Similar Documents

Publication Publication Date Title
JP5087393B2 (en) Methods for securing authentication and key agreement protocols
US10893028B2 (en) System and method for secure remote control of a medical device
CN104363250B (en) A kind of method and system for equipment connection
US10931464B2 (en) Communication system, hardware security module, terminal device, communication method, and program
US20140248853A1 (en) System And Method for Smart Card Based Hardware Root of Trust on Mobile Platforms Using Near Field Communications
US9119069B1 (en) Near field communication based authentication
FI3859689T3 (en) Providing access to a lock for a service provider
KR102218693B1 (en) Method for processing multiple sim information and an electronic device thereof
US11006464B2 (en) Method, apparatus, storage medium, and terminal for establishing a Wi-Fi connection
US10666432B2 (en) System and method of securing devices using encryption keys
JP2014523223A (en) Apparatus and method for connecting a removable module to an access terminal
US10419212B2 (en) Methods, systems, apparatuses, and devices for securing network communications using multiple security protocols
US9654455B2 (en) Communication system, communication device, key management apparatus, and communication method
WO2017041503A1 (en) Mutual authentication method and apparatus for device and card, and computer readable storage medium
EP3282639B1 (en) Method for operating server and client, server, and client apparatus
WO2021109668A1 (en) Security authentication method, apparatus, and electronic device
KR102616751B1 (en) Communications security systems and methods
CN106656946B (en) Dynamic authentication method and device
US20140215559A1 (en) System and method for adaptive multifactor authentication
CN117041956A (en) Communication authentication method, device, computer equipment and storage medium
US20150156173A1 (en) Communication system utilizing fingerprint information and use thereof
KR101553482B1 (en) Authentication System For Password And Method
CN106789076B (en) Interaction method and device for server and intelligent equipment
CN106712934B (en) Identification information generation method and device
WO2016165429A1 (en) Service processing method and apparatus, and terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16843441

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16843441

Country of ref document: EP

Kind code of ref document: A1