Patent ID: 8559633

Claim:
A method, comprising: obtaining, by a User Integrate Circuit Card (UICC), a variable parameter from a terminal, the variable parameter being generated by the terminal; and deriving, by the UICC, a local interface key for the UICC, wherein the local interface key for the UICC is for the UICC to securely communicate with the terminal, wherein the local interface key for the UICC is derived by the UICC in accordance with the obtained variable parameter, key identity information, and related parameters for calculating the local interface key, by adopting a key derivation algorithm, and wherein the local interface key for the UICC derived by the UICC is the same as a local interface key for the terminal, the local interface key for the terminal being used for the terminal to securely communicate with the UICC and being generated by adopting the same key derivation algorithm as that adopted by the UICC to derive the local interface key for the UICC.