IMPLICIT FILE CREATION IN APDU SCRIPTS
20170269918 · 2017-09-21
Assignee
Inventors
Cpc classification
H04W12/35
ELECTRICITY
H04W12/04
ELECTRICITY
G06F16/16
PHYSICS
G06F21/6209
PHYSICS
G06Q20/341
PHYSICS
International classification
Abstract
A secure element (30) has a local store of file property data (50). A method of preparing a script to send to the secure element (30) to remotely provision a profile (31) at the secure element includes preparing the script such that the script lacks a command to create a file if the local store of file property data (50) at the secure element includes file property data which can be used to locally create that file. A script may include an entry of reduced length which refers to the file to be locally created, such as a SELECT FILE command and an identifier of the file.
Claims
1. A method of preparing a script to send to a secure element (30) to remotely provision a profile (31) at the secure element (30), wherein the secure element (30) has a local store of file property data (50), the method comprising preparing (120) the script such that the script lacks a command to create a file if the local store of file property data at the secure element includes file property data which can be used to locally create that file.
2. The method according to claim 1 wherein the script comprises an entry which identifies the file to be locally created at the secure element, wherein the entry has a shorter length than an entry which includes a create file command.
3. The method according to claim 1 comprising: receiving (121) a first script which comprises a first entry which comprises a command to create a file; determining (122) if the first entry in the script corresponds to a file whose file properties are stored in the local store of file property data at the secure element; if the first entry corresponds to the file whose file properties are stored, replacing (123) the first entry in the script with a second entry in the script, wherein the second entry is shorter than the first entry and lacks the command to create the file; and outputting (124) a modified script of shorter length than the first script.
4. The method according to claim 3 wherein the first entry comprises a create file command, a file identifier and file properties and the second entry comprises the file identifier.
5. The method according to claim 3 wherein the second entry comprises a select file command.
6. A method of provisioning a profile at a secure element (30) comprising: receiving (101) a script to provision the profile; executing (102) the script to provision the profile, wherein the executing comprises: reading (103) an entry in the script which refers to a file; and determining (104) if the file exists; and, if the file does not exist, creating (105) the file using a local store of file property data at the secure element.
7. The method according to claim 6 wherein the entry in the script comprises a file identifier and the method comprises: using the file identifier to locate file property data in the local store; and creating the file with the identifier and the file property data.
8. The method according to claim 6 wherein the entry in the script comprises a select file command.
9. A method of provisioning a profile at a secure element (30) comprising: receiving (115) a script to provision the profile; and executing (116) the script to provision the profile; the method further comprising, in advance of the step of executing the script, creating (112, 114) at least one file required by the profile using a local store of file property data at the secure element, and wherein the received script lacks a command to create the at least one file.
10. The method according to claim 9 wherein an entry in the script comprises a select file command and a file identifier and the file created in advance of execution of the script comprises the same file identifier.
11. The method according to claim 9 further comprising receiving a service table indicating at least one service required by the profile, and wherein the local store of file property data includes an indication of a service that the file property data is associated with, and the method comprises: using the service table to identify a service required for the profile; retrieving file property data from the local store of file property data for each required service; and creating at least one file for the required service using the retrieved file property data.
12. The method according to claim 1, wherein the file property data comprises at least one of the group consisting of: a file identifier; file size, and file access rights.
13. The method according to claim 1, wherein the commands in the script conform to ISO 7816.
14. A secure element comprising a processor and a memory, the memory containing instructions executable by the processor, whereby the processor is configured to perform the method according to claim 6.
15. The method according to claim 1, wherein the secure element is an embedded Universal Integrated Circuit Card.
16. A method according to claim 6, wherein the file property data comprises at least one of the group consisting of a file identifier; file size, and file access rights.
17. A method according to claim 6, wherein the commands in the script conform to ISO 7816.
18. A method according to claim 9, wherein the file property data comprises at least one of the group consisting of a file identifier; file size, and file access rights.
19. A method according to claim 9, wherein the commands in the script conform to ISO 7816.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Embodiments of the invention will be described, by way of example only, with reference to the accompanying drawings in which:
[0038]
[0039]
[0040]
[0041]
[0042]
[0043]
[0044]
[0045]
[0046]
[0047]
DETAILED DESCRIPTION
[0048]
[0049] The eUICC 30 can be remotely provisioned with a profile. The profile provides the device with functionality to access a specific mobile network infrastructure. The profile can comprise a file structure, data and applications. Network entities participating in the provisioning process include a Subscription Manager Data Preparation (SM-DP) entity 10 and a Subscription Manager Secure Routing (SM-SR) entity 12. The SM-DP 10 prepares the profiles and manages the secure download and installation of the profiles on the eUICC 30. The SM-SR 12 securely performs functions of platform management commands and the transport of profile management commands. A communication network 15 is used to access the device 30 for provisioning purposes. An eUICC may store multiple profiles 31. The eUICC 30 can also store a File Properties (FP) table 50. As described in more detail later, the File Properties table 50 is used when provisioning a profile. The File Properties table 50 can be used as shared resource by the eUICC when provisioning one or more profiles 31.
[0050] The store of file property data 50 can be transferred to the eUICC 30 during manufacture of the eUICC, or during pre-issuance of the eUICC or host device 20 into which the eUICC is embedded.
[0051]
[0052] The script is routed via the SM-SR 12. The SM-SR 12 receives an encrypted script from the SM-DP 10, encrypts the script according to a standard protocol, e.g. SCP80 or SCP81, and addresses it to RM2. RM2 runs in a secure environment, Issuer Security Domain-Root (ISD-R), that is generally controlled by the issuer of the eUICC 30. There is a shared SCP80/SCP81 key on the eUICC 30 and the SM-SR 12 that will have been put in place by the card issuer before any script can be addressed to RM2. When RM2 receives a script, it decrypts is and forwards it to RM1.
[0053]
[0054]
[0055] Advantageously, the modified script includes a header which indicates that the script is a modified script. This allows the eUICC 30 to process the script in an appropriate manner.
[0056] The management application at the eUICC can operate in one of several possible ways in accordance with the modified script 45. A first example of operation of the management application at the eUICC will now be described with reference to
[0057]
[0058] File Type
[0059] File ID
[0060] Dedicated File (DF) Name (Application Identifier (AID)) for ADF creation
[0061] Life Cycle
[0062] Remote Access Condition
[0063] Total File Size
[0064] Access Condition
[0065] Proprietary Application data
[0066] Fill pattern
Files are created with a fixed length and are initialised with the fill pattern. The fill pattern is a pattern of data which initially populates the newly created file.
[0067] A second example of operation of the management application at the eUICC will now be described with reference to
[0068] At block 111 a service table is received. The service table defines which service, or services, are required for the profile to be provisioned. The service table can be sent in a script before the main script for provisioning a profile. The service table script contains just one command, INSTALL INSTALL, which includes the service table in its parameters. A service table (ST) comprises an array of logical values: true or false. The services are numbered from 1 to n, for example. If a service i is present in the associated profile, then the value of ST[i] is set to true. An example service table can take the form:
[0069] Service n° 1: Local Phone Book
[0070] Service n° 2: Fixed Dialling Numbers (FDN)
[0071] Service n° 3: Extension 2
[0072] Service n° 4: Service Dialling Numbers (SDN)
[0073] Service n° 5: Extension3
[0074] Service n° 6: Barred Dialling Numbers (BDN)
[0075] Service n° 7: Extension4
[0076] Service n° 8: Outgoing Call Information (OCI and OCT)
[0077] Service n° 9: Incoming Call Information (ICI and ICT)
[0078] Service n° 10: Short Message Storage (SMS)
[0079] Service n° 11: Short Message Status Reports (SMSR)
[0080] Service n° 12: Short Message Service Parameters (SMSP)
[0081] Service n° 13: Advice of Charge (AoC)
[0082] Service n° 14: Capability Configuration Parameters 2 (CCP2)
[0083] Service n° 15: Cell Broadcast Message Identifier
[0084] Service n° 16: Cell Broadcast Message Identifier Ranges
[0085] Service n° 17: Group Identifier Level 1
[0086] Service n° 18: Group Identifier Level 2
[0087] Service n° 19: Service Provider Name
[0088] Service n° 20: User controlled PLMN selector with Access Technology
[0089] Service n° 21: MSISDN
[0090] Service n° 22: Image (IMG)
[0091] Service n° 23: Support of Localised Service Areas (SoLSA)
[0092] Service n° 24: Enhanced Multi Level Precedence and Pre emption Service
[0093] Service n° 25: Automatic Answer for eMLPP
[0094] Service n° 26: RFU
[0095] Service n° 27: GSM Access
[0096] Service n° 28: Data download via SMS-PP
[0097] Service n° 29: Data download via SMS CB
[0098] Service n° 30: Call Control by USIM
[0099] Service n° 31: MO-SMS Control by USIM
[0100] Service n° 32: RUN AT COMMAND command
[0101] Service n° 33: shall be set to ‘1’
[0102] Service n° 34: Enabled Services Table
[0103] Service n° 35: APN Control List (ACL)
[0104] Service n° 36: Depersonalisation Control Keys
[0105] Service n° 37: Co-operative Network List
[0106] Service n° 38: GSM security context
[0107] Service n° 39: CPBCCH Information
[0108] Service n° 40: Investigation Scan
[0109] Service n° 41: MexE
For example, if service number 19 is present (Service Provider Name), the file EFspn shall be created.
[0110] At block 112 the management application of the eUICC creates mandatory files. Mandatory files are independent of any particular service and are needed for any created profile.
[0111] In addition to the mandatory files required by every profile, some services require one or more additional files. The management application at the eUICC implements a data structure, FP 60, that stores, for each service, the parameters required to create these additional files. These parameters include at least: file identity, access rights, and size. The FP table includes a Service number (Service#) value per entry. They may be held, for example, in variable length records, with one record for each service. Each record holds the identities and parameters of all the files required for a given service. Alternatively, the FP table 60 may hold multiple records per service, with each record identified by the same value of service#. The order of blocks 111 and 112 may be reversed. At block 113 the service table received at block 111 is read. At block 114 the optional files are created by scanning the service table and creating an array: [0112] for i=1 to n [0113] if ST[i] [0114] create files for all records in FP where service#=i;
Following block 114, the management application at the eUICC has now created all, or most of, the files that are required to provision a profile. At block 115 a script is received at the eUICC. The script can have the same form as shown in
[0115] Note that in either of the examples described above, the script 45 may include at least one file creation command. For example, it may be necessary to create a proprietary file whose existence cannot be deduced either from the standards or from the service table, and which it is still necessary to explicitly define in the script sent to the eUICC.
[0116] The following specifications define files required during the provisioning process: [0117] for a USIM (UMTS—Universal Mobile Telecommunications System—SIM): 3GPP 31.102 [0118] for a SIM (Subscriber Identity Module): 3GPP 51.011 [0119] for an iSIM (IMS—IP Multimedia Subsystem—SIM): 3GPP 31.103 [0120] for a CSIM (CDMA SIM): 3GPP2 C.S0065-0
Using these specifications, it is possible to define a list of mandatory files for a given profile and to populate the data structure FP 50, 60.
[0121] Using the service table and the appropriate specification, it is possible to complete the list of mandatory files with the optional files (optional from the point of view of the specification) that are needed to implement all the services offered by each of the network access applications included in the profile.
[0122] In the example described above, properties of mandatory files and optional files are stored together in one data structure FP. Entries in the data structure have a service# field. A value of the service#=(1 . . . n) indicates an optional file associated with that service. A value of the service#=0 indicates a mandatory file. A mandatory file can be indicated by any other suitable value of service#, such as a negative value (e.g. −1) or any positive value outside the expected range (1 . . . n) used in the service table. An alternative to storing file properties in a single data structure is to store a data structure for mandatory files and to store a separate data structure for optional files.
[0123]
[0124] In the examples described above a CREATE FILE command is replaced with a SELECT FILE command. In other examples, a CREATE FILE command can be replaced with a different command. This can be a proprietary command or reserved value, which is recognisable by the eUICC. Advantageously, the commands used in the modified script are compatible with ISO 7816.
[0125]
[0126] The processor 31 may be a microcontroller, microprocessor or any other suitable type of processor for executing instructions. Processor-executable instructions 37 can be stored in ROM 32 and/or Flash memory 34. The processor-executable instructions 37 can include a management application for remotely providing a profile. An interface 35 supports communication between the device 30 and the host device 20. Memory 34, or ROM 32, can store file property data 50 which is used to locally create files at the secure element.
[0127] Modifications and other embodiments of the disclosed invention will come to mind to one skilled in the art having the benefit of the teachings presented in the foregoing descriptions and the associated drawings. Therefore, it is to be understood that the invention is not to be limited to the specific embodiments disclosed and that modifications and other embodiments are intended to be included within the scope of this disclosure. Although specific terms may be employed herein, they are used in a generic and descriptive sense only and not for purposes of limitation.