1、 ETSI TS 102 222 V15.0.0 (2018-06) Integrated Circuit Cards (ICC); Administrative commands for telecommunications applications (Release 15) TECHNICAL SPECIFICATION ETSI ETSI TS 102 222 V15.0.0 (2018-06)2Release 15Reference RTS/SCP-T0368r9vf00 Keywords GSM, smart card, UMTS ETSI 650 Route des Luciole
2、s F-06921 Sophia Antipolis Cedex - FRANCE Tel.: +33 4 92 94 42 00 Fax: +33 4 93 65 47 16 Siret N 348 623 562 00017 - NAF 742 C Association but non lucratif enregistre la Sous-Prfecture de Grasse (06) N 7803/88 Important notice The present document can be downloaded from: http:/www.etsi.org/standards
3、-search The present document may be made available in electronic versions and/or in print. The content of any electronic and/or print versions of the present document shall not be modified without the prior written authorization of ETSI. In case of any existing or perceived difference in contents be
4、tween such versions and/or in print, the only prevailing document is the print of the Portable Document Format (PDF) version kept on a specific network drive within ETSI Secretariat. Users of the present document should be aware that the document may be subject to revision or change of status. Infor
5、mation on the current status of this and other ETSI documents is available at https:/portal.etsi.org/TB/ETSIDeliverableStatus.aspx If you find errors in the present document, please send your comment to one of the following services: https:/portal.etsi.org/People/CommiteeSupportStaff.aspx Copyright
6、Notification No part may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm except as authorized by written permission of ETSI. The content of the PDF version shall not be modified without the written authorization of ETSI. The copyr
7、ight and the foregoing restriction extend to reproduction in all media. ETSI 2018. All rights reserved. DECTTM, PLUGTESTSTM, UMTSTMand the ETSI logo are trademarks of ETSI registered for the benefit of its Members. 3GPPTM and LTETMare trademarks of ETSI registered for the benefit of its Members and
8、of the 3GPP Organizational Partners. oneM2M logo is protected for the benefit of its Members. GSMand the GSM logo are trademarks registered and owned by the GSM Association. ETSI ETSI TS 102 222 V15.0.0 (2018-06)3Release 15Contents Intellectual Property Rights 5g3Foreword . 5g3Modal verbs terminolog
9、y 5g31 Scope 6g32 References 6g32.1 Normative references . 6g32.2 Informative references 7g33 Definitions, symbols and abbreviations . 7g33.1 Definitions 7g33.2 Symbols 8g33.3 Abbreviations . 8g34 Mapping principles . 8g35 Security architecture . 9g36 Description of the functions and commands 9g36.0
10、 Overview 9g36.1 Coding of the commands 9g36.2 TLV objects 9g36.3 CREATE FILE . 10g36.3.1 Definition and scope . 10g36.3.2 Command message . 10g36.3.2.0 Command coding 10g36.3.2.1 Parameters P1 and P2 10g36.3.2.2 Data field sent in the command message 11g36.3.2.2.1 Creating a DF/ADF . 11g36.3.2.2.2
11、Creating an EF . 13g36.3.3 Response message 15g36.3.3.1 Data field returned in the response message . 15g36.3.3.2 Status conditions returned in the response message 16g36.4 DELETE FILE . 16g36.4.1 Definition and scope . 16g36.4.2 Command message . 17g36.4.2.0 Command coding 17g36.4.2.1 Parameters P1
12、 and P2 17g36.4.2.2 Data field sent in the command message 17g36.4.3 Response message 17g36.4.3.1 Data field returned in the response message . 17g36.4.3.2 Status conditions returned in the response message 18g36.5 DEACTIVATE FILE . 18g36.6 ACTIVATE FILE. 18g36.7 TERMINATE DF . 18g36.7.1 Definition
13、and scope . 18g36.7.2 Command message . 19g36.7.2.0 Command coding 19g36.7.2.1 Parameters P1 and P2 19g36.7.2.2 Data field sent in the command message 19g36.7.3 Response message 19g36.7.3.1 Data field returned in the response message . 19g36.7.3.2 Status conditions returned in the response message 1
14、9g36.8 TERMINATE EF . 20g36.8.1 Definition and scope . 20g36.8.2 Command message . 20g36.8.2.0 Command coding 20g36.8.2.1 Parameters P1 and P2 20g3ETSI ETSI TS 102 222 V15.0.0 (2018-06)4Release 156.8.2.2 Data field sent in the command message 20g36.8.3 Response message 20g36.8.3.1 Data field returne
15、d in the response message . 20g36.8.3.2 Status conditions returned in the response message 21g36.9 TERMINATE CARD USAGE. 21g36.9.1 Definition and scope . 21g36.9.2 Command message . 21g36.9.2.0 Command coding 21g36.9.2.1 Parameters P1 and P2 22g36.9.2.2 Data field sent in the command message 22g36.9
16、.3 Response message 22g36.9.3.1 Data field returned in the response message . 22g36.9.3.2 Status conditions returned in the response message 22g36.10 RESIZE FILE . 22g36.10.1 Definition and scope . 22g36.10.2 Command message . 24g36.10.2.0 Command coding 24g36.10.2.1 Data field sent in the command m
17、essage 24g36.10.3 Response message 26g36.10.3.1 Data field returned in the response message . 26g36.10.3.2 Status conditions returned in the response message 26g37 Administrative files 27g37.1 EFSUME(SetUpMenu Elements) . 27g37.2 EFRMA(Remote Management Actions) . 28g3Annex A (informative): Change h
18、istory . 29g3History 31g3ETSI ETSI TS 102 222 V15.0.0 (2018-06)5Release 15Intellectual Property Rights Essential patents IPRs essential or potentially essential to normative deliverables may have been declared to ETSI. The information pertaining to these essential IPRs, if any, is publicly available
19、 for ETSI members and non-members, and can be found in ETSI SR 000 314: “Intellectual Property Rights (IPRs); Essential, or potentially Essential, IPRs notified to ETSI in respect of ETSI standards“, which is available from the ETSI Secretariat. Latest updates are available on the ETSI Web server (h
20、ttps:/ipr.etsi.org/). Pursuant to the ETSI IPR Policy, no investigation, including IPR searches, has been carried out by ETSI. No guarantee can be given as to the existence of other IPRs not referenced in ETSI SR 000 314 (or the updates on the ETSI Web server) which are, or may be, or may become, es
21、sential to the present document. Trademarks The present document may include trademarks and/or tradenames which are asserted and/or registered by their owners. ETSI claims no ownership of these except for any which are indicated as being the property of ETSI, and conveys no right to use or reproduce
22、 any trademark and/or tradename. Mention of those trademarks in the present document does not constitute an endorsement by ETSI of products, services or organizations associated with those trademarks. Foreword This Technical Specification (TS) has been produced by ETSI Technical Committee Smart Card
23、 Platform (SCP). The contents of the present document are subject to continuing work within TC SCP and may change following formal TC SCP approval. If TC SCP modifies the contents of the present document, it will then be republished by ETSI with an identifying change of release date and an increase
24、in version number as follows: Version x.y.z where: x the first digit: 0 early working draft; 1 presented to TC SCP for information; 2 presented to TC SCP for approval; 3 or greater indicates TC SCP approved document under change control. y the second digit is incremented for all changes of substance
25、, i.e. technical enhancements, corrections, updates, etc. z the third digit is incremented when editorial only changes have been incorporated in the document. Modal verbs terminology In the present document “shall“, “shall not“, “should“, “should not“, “may“, “need not“, “will“, “will not“, “can“ an
26、d “cannot“ are to be interpreted as described in clause 3.2 of the ETSI Drafting Rules (Verbal forms for the expression of provisions). “must“ and “must not“ are NOT allowed in ETSI deliverables except when used in direct citation. ETSI ETSI TS 102 222 V15.0.0 (2018-06)6Release 151 Scope The present
27、 document defines functions and syntax of a set of administrative commands for a telecommunication card. The commands defined in the present document are compliant to the commands defined in the ISO/IEC 7816 i.2 series where corresponding commands in ISO/IEC are available. The commands described in
28、the present document are using parts of the functionality of the commands described in the ISO/IEC 7816-3 i.1. The present document does not cover the internal implementation within the UICC and/or the external equipment. 2 References 2.1 Normative references References are either specific (identifi
29、ed by date of publication and/or edition number or version number) or non-specific. For specific references, only the cited version applies. For non-specific references, the latest version of the referenced document (including any amendments) applies. Referenced documents which are not found to be p
30、ublicly available in the expected location might be found at https:/docbox.etsi.org/Reference/. In the case of a reference to a TC SCP document, a non-specific reference implicitly refers to the latest version of that document in the same Release as the present document. NOTE: While any hyperlinks i
31、ncluded in this clause were valid at the time of publication, ETSI cannot guarantee their long term validity. The following referenced documents are necessary for the application of the present document. 1 Void. 2 ISO/IEC 7816-4: “Identification cards - Integrated circuit cards - Part 4: Organizatio
32、n, security and commands for interchange“. 3 Void. 4 Void. 5 ETSI TS 102 221: “Smart Cards; UICC-Terminal interface; Physical and logical characteristics“. 6 Void. 7 ETSI TS 101 220: “Smart Cards; ETSI numbering system for telecommunication application providers“. 8 ETSI TS 102 223: “Smart Cards; Ca
33、rd Application Toolkit (CAT)“. 9 Void. ETSI ETSI TS 102 222 V15.0.0 (2018-06)7Release 152.2 Informative references References are either specific (identified by date of publication and/or edition number or version number) or non-specific. For specific references, only the cited version applies. For
34、non-specific references, the latest version of the referenced document (including any amendments) applies. In the case of a reference to a TC SCP document, a non-specific reference implicitly refers to the latest version of that document in the same Release as the present document. NOTE: While any h
35、yperlinks included in this clause were valid at the time of publication, ETSI cannot guarantee their long term validity. The following referenced documents are not necessary for the application of the present document but they assist the user with regard to a particular subject area. i.1 ISO/IEC 781
36、6-3: “Identification cards - Integrated circuit cards - Part 3: Cards with contacts - Electrical interface and transmission protocols“. i.2 ISO/IEC 7816 (all parts): “Identification cards - Integrated circuit cards“. 3 Definitions, symbols and abbreviations 3.1 Definitions For the purposes of the pr
37、esent document, the following terms and definitions apply: Access Conditions (AC): set of security attributes associated to a file ADMinistrative (ADM): access condition to an EF which is under the control of the authority which creates this file administrative command: command modifying the interna
38、l properties of the file system of an UICC current directory: latest directory (MF, DF or ADF) selected in the UICC current EF: latest Elementary File (EF) selected in the UICC current file: current EF, if an EF is selected, else the current directory Dedicated File (DF): file containing Access Cond
39、itions (AC) and allocable memory NOTE: It may be the parent of Elementary Files (EF) and/or Dedicated Files (DF). directory: general name for MF, DF or ADF Elementary File (EF): file containing Access Conditions (AC) and data NOTE: It cannot be the parent of another file. File IDentifier (ID): each
40、file (MF, DF, ADF or EF) has a file identifier consisting of 2 bytes Lc: length of command data sent by the application layer in a case 3 or 4 Command Le: maximum length of data expected by the application layer in response to a case 2 or 4 Command LL: length of data Master File (MF): mandatory uniq
41、ue DF representing the root of the file structure and containing Access Conditions (AC) and allocable memory NOTE: It may be the parent of elementary files and/or dedicated files. record: string of bytes handled as a whole by the UICC and terminal and referenced by a record number or a record pointe
42、r ETSI ETSI TS 102 222 V15.0.0 (2018-06)8Release 15record number: sequential and unique number within an EF, which identifies a record within an EF NOTE: It is managed by the UICC. record pointer: pointer, which addresses one record in an EF telecommunication card: UICC mainly used for telecommunica
43、tion applications 3.2 Symbols For the purposes of the present document, the following symbols apply: Single quotation is used to indicate hexadecimal notation. 0 to 9 and A to F The sixteen hexadecimal digits b8 . b1 Bits of one byte. b8 is the MSB, b1 the LSB 3.3 Abbreviations For the purposes of t
44、he present document, the following abbreviations apply: AC Access Condition ADF Application Dedicated File AID Application IDentifier AM Access ModeAM_DO Access Mode - Data Object APDU Application Protocol Data Unit ATR Answer To Reset BER Basic Encoding RuleCLA CLAssDF Dedicated File DO Data Object
45、 EF Elementary FileFCP File Control Parameters FID File IDentifier ICC Integrated Circuit Card ID IDentifier IEC International Electrotechnical Commission INS INStruction ISO International Organization for Standardization LCSI Life Cycle Status Information LSB Least Significant Bit M Mandatory MF Ma
46、ster FileMSB Most Significant Bit O Optional PIN Personal Identification Number RFU Reserved for Future Use SFI Short (elementary) File Identifier SIM Subscriber Identity Module SM Secure Messaging SW1/SW2 Status Word 1/Status Word 2 TLV Tag Length Value 4 Mapping principles UICC Cards compliant to
47、the present document shall follow the rules of ETSI TS 102 221 5 in clauses 7 and 10. ETSI ETSI TS 102 222 V15.0.0 (2018-06)9Release 155 Security architecture The general coding of security attributes assigned to files by use of the CREATE FILE command is as described in ETSI TS 102 221 5. 6 Descrip
48、tion of the functions and commands 6.0 Overview A UICC supporting the command set based on the present document shall support the command as defined in the present document. However, it is up to the UICC to provide more functionality than described in the present document. This clause gives a functi
49、onal description of the commands, their respective responses, associated status conditions, error codes and their coding. 6.1 Coding of the commands Table 1: Coding of the commands Command CLA INS CREATE FILE DELETE FILE DEACTIVATE FILE ACTIVATE FILE TERMINATE DF TERMINATE EF TERMINATE CARD USAGE RESIZE FILE 0X or 4X 0X or 4X 0X or 4X 0X or 4X 0X or 4X 0X or 4X 0X or 4X 8X or CX E0 E4 04 44 E6 E8 FE D4 The coding of the value X for the CLA-bytes in table 1 shall be according to ET