1、 ETSI TS 102 221 V13.1.0 (2016-05) Smart Cards; UICC-Terminal interface; Physical and logical characteristics (Release 13) TECHNICAL SPECIFICATION ETSI ETSI TS 102 221 V13.1.0 (2016-05)2Release 13 Reference RTS/SCP-T102221vd10 Keywords smart card ETSI 650 Route des Lucioles F-06921 Sophia Antipolis
2、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-search The present documen
3、t 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 between such versions and/or
4、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. Information on the current statu
5、s of this and other ETSI documents is available at http:/portal.etsi.org/tb/status/status.asp 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 Notification No part may be reproduce
6、d 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 copyright and the foregoing restriction ex
7、tend to reproduction in all media. European Telecommunications Standards Institute 2016. All rights reserved. DECTTM, PLUGTESTSTM, UMTSTMand the ETSI logo are Trade Marks of ETSI registered for the benefit of its Members. 3GPPTM and LTE are Trade Marks of ETSI registered for the benefit of its Membe
8、rs and of the 3GPP Organizational Partners. GSM and the GSM logo are Trade Marks registered and owned by the GSM Association. ETSI ETSI TS 102 221 V13.1.0 (2016-05)3Release 13 Contents Intellectual Property Rights 12g3Foreword . 12g3Modal verbs terminology 12g3Introduction 13g31 Scope 14g32 Referenc
9、es 14g32.1 Normative references . 14g32.2 Informative references 16g33 Definitions, symbols, abbreviations and coding conventions 16g33.1 Definitions 16g33.2 Symbols 18g33.3 Abbreviations . 18g33.4 Coding conventions 20g34 Physical characteristics. 21g34.0 UICC Form Factors 21g34.0.0 Generic require
10、ments 21g34.0.1 ID-1 UICC 21g34.0.2 Plug-in UICC 21g34.0.3 Mini-UICC 22g34.0.4 4FF 23g34.1 ID-1 UICC 24g34.2 Plug-in UICC 24g34.3 Mini-UICC . 24g34.4 Environmental conditions for card operation and storage 24g34.4.0 Standard UICC environmental conditions 24g34.4.1 Specific UICC environmental conditi
11、ons . 24g34.4.1.0 Specific UICC environmental conditions indication . 24g34.4.1.1 Temperature range for specific UICC environmental conditions 25g34.4.1.2 High humidity . 25g34.5 Contacts 25g34.5.1 Provision of contacts . 25g34.5.1.1 Terminal 25g34.5.1.2 UICC. 25g34.5.2 Contact activation and deacti
12、vation 25g34.5.2.1 Contacts assigned by the present document 25g34.5.2.2 Optional contacts . 26g34.5.3 Inactive contacts . 26g34.5.4 Contact pressure 26g35 Electrical specifications of the UICC - Terminal interface 26g35.0 General requirements . 26g35.1 Class A operating conditions 27g35.1.1 Supply
13、voltage Vcc (contact C1) 27g35.1.2 Reset (RST) (contact C2) 27g35.1.3 Programming voltage Vpp (contact C6) . 27g35.1.4 Clock CLK (contact C3) . 28g35.1.5 I/O (contact C7) 28g35.2 Class B operating conditions 28g35.2.1 Supply voltage Vcc (contact C1) 28g35.2.2 Reset (RST) (contact C2) 29g35.2.3 Clock
14、 CLK (contact C3) . 29g35.2.4 I/O (contact C7) 30g35.3 Class C operating conditions 30g35.3.1 Supply voltage Vcc (contact C1) 30g3ETSI ETSI TS 102 221 V13.1.0 (2016-05)4Release 13 5.3.2 Reset (RST) (contact C2) 31g35.3.3 Clock CLK (contact C3) . 31g35.3.4 I/O (contact C7) 31g36 Initial communication
15、 establishment procedures . 32g36.1 UICC activation and deactivation. 32g36.2 Supply voltage switching . 32g36.2.0 UICC activation voltage . 32g36.2.1 Supply voltage classes 32g36.2.2 Power consumption of the UICC during ATR 32g36.2.3 Application related electrical parameters 32g36.3 Answer To Reset
16、 content . 33g36.3.0 Introduction. 33g36.3.1 Coding of historical bytes . 34g36.3.2 Speed enhancement. 34g36.3.3 Global Interface bytes . 34g36.4 PPS procedure 35g36.5 Reset procedures 35g36.5.1 Cold reset 35g36.5.2 Warm reset 35g36.5.3 Reaction to resets 36g36.6 Clock stop mode . 36g36.7 Bit/charac
17、ter duration and sampling time . 36g36.8 Error handling 36g36.9 Compatibility 37g37 Transmission protocols. 37g37.0 Introduction 37g37.1 Physical layer . 38g37.2 Data link layer 38g37.2.0 Introduction. 38g37.2.1 Character frame 38g37.2.1.0 Structure, coding and timing . 38g37.2.1.1 Low impedance I/O
18、 line behaviour . 39g37.2.2 Transmission protocol T = 0 . 39g37.2.2.0 Introduction . 39g37.2.2.1 Timing and specific options for characters in T = 0 39g37.2.2.2 Command header 40g37.2.2.3 Command processing 40g37.2.2.3.0 General description 40g37.2.2.3.1 Procedure bytes . 40g37.2.2.3.2 Status bytes
19、40g37.2.2.4 Error detection and correction . 41g37.2.3 Transmission protocol T = 1 . 41g37.2.3.0 Introduction . 41g37.2.3.1 Timing and specific options for blocks sent with T = 1 41g37.2.3.1.0 Introduction . 41g37.2.3.1.1 Information field size 41g37.2.3.1.2 Character waiting integer. 41g37.2.3.1.3
20、Character waiting time 41g37.2.3.1.4 Block waiting time 42g37.2.3.1.5 Block guard time . 42g37.2.3.1.6 Waiting time extension 42g37.2.3.1.7 Error detection code 42g37.2.3.2 Block frame structure 42g37.2.3.2.0 Overall structure 42g37.2.3.2.1 Prologue field 43g37.2.3.2.2 Epilogue field 44g37.2.3.2.3 B
21、lock notations 45g37.2.3.3 Error free operation . 45g37.2.3.4 Error handling for T = 1 46g37.2.3.4.0 General description 46g3ETSI ETSI TS 102 221 V13.1.0 (2016-05)5Release 13 7.2.3.4.1 Protocol initialization 46g37.2.3.4.2 Block dependent errors 46g37.2.3.5 Chaining 47g37.2.3.5.0 Chaining Mechanism
22、. 47g37.2.3.5.1 Rules for chaining 47g37.3 Transport layer . 47g37.3.0 Introduction. 47g37.3.1 Transportation of an APDU using T = 0 . 47g37.3.1.0 Introduction . 47g37.3.1.1 Mapping of APDUs to TPDUs 48g37.3.1.1.0 General behaviour . 48g37.3.1.1.1 Case 1 48g37.3.1.1.2 Case 2 49g37.3.1.1.3 Case 3 49g
23、37.3.1.1.4 Case 4 50g37.3.1.1.5 Use of procedure bytes 61xx and 6Cxx 51g37.3.2 Transportation of a APDU using T = 1 . 52g37.3.2.0 General mechanism . 52g37.3.2.1 Case 1 52g37.3.2.2 Case 2 52g37.3.2.3 Case 3 53g37.3.2.4 Case 4 53g37.4 Application layer 53g37.4.0 Overall description 53g37.4.1 Exchange
24、 of APDUs . 54g37.4.2 CAT layer . 54g37.4.2.0 Overview . 54g37.4.2.1 Proactive command . 54g37.4.2.2 ENVELOPE Commands . 55g37.4.3 Application execution . 55g38 Application and file structure . 56g38.1 UICC application structure . 56g38.2 File types 56g38.2.0 Introduction. 56g38.2.1 Dedicated files
25、57g38.2.2 Elementary files 57g38.2.2.1 Transparent EF 57g38.2.2.2 Linear fixed EF . 57g38.2.2.3 Cyclic EF 57g38.2.2.4 BER-TLV structure EF . 58g38.3 File referencing 58g38.4 Methods for selecting a file 58g38.4.0 Default state after UICC activation and ATR . 58g38.4.1 SELECT by File IDentifier refer
26、encing 59g38.4.2 SELECT by path referencing 60g38.4.3 Short File Identifier (SFI) . 61g38.5 Application characteristics . 61g38.5.0 Application selection types . 61g38.5.1 Explicit application selection 61g38.5.1.1 SELECT by DF name . 61g38.5.1.2 SELECT by partial DF name 62g38.5.2 Application sessi
27、on activation 62g38.5.3 Application session termination 62g38.5.4 Application session reset 63g38.5.5 Void 63g38.6 Reservation of file IDs . 63g38.7 Logical channels . 64g38.8 Shareable versus not-shareable files . 65g38.9 Secure channels 65g39 Security features . 66g3ETSI ETSI TS 102 221 V13.1.0 (2
28、016-05)6Release 13 9.0 Introduction 66g39.1 Supported security features 66g39.2 Security architecture . 67g39.2.0 Overview and basic rules 67g39.2.1 Security attributes . 67g39.2.2 Access mode . 67g39.2.3 Security condition . 67g39.2.4 Access rules 67g39.2.5 Compact format 68g39.2.6 Expanded format.
29、 68g39.2.7 Access rule referencing . 69g39.3 Security environment . 69g39.3.0 Description 69g39.3.1 Definition of the security environment . 70g39.3.2 Logical Channels and Security Environment 70g39.4 PIN definitions . 71g39.4.0 Introduction. 71g39.4.1 Universal PIN . 71g39.4.2 Application PIN 71g39
30、.4.3 Local PIN 71g39.4.4 PINs and logical channels . 72g39.5 PIN and key reference relationship 72g39.5.0 Introduction. 72g39.5.1 Access condition mapping 72g39.5.2 PIN status indication . 73g310 Structure of commands and responses . 74g310.1 Command APDU . 74g310.1.0 Structure and case . 74g310.1.1
31、 Coding of Class Byte 75g310.1.2 Coding of Instruction Byte . 76g310.1.3 Coding of parameter bytes 77g310.1.4 Coding of Lc byte . 77g310.1.5 Coding of data part . 77g310.1.6 Coding of Le byte . 77g310.2 Response APDU . 77g310.2.0 Structure 77g310.2.1 Status conditions returned by the UICC . 77g310.2
32、.1.0 Introduction . 77g310.2.1.1 Normal processing 78g310.2.1.2 Postponed processing 78g310.2.1.3 Warnings . 78g310.2.1.4 Execution errors 78g310.2.1.5 Checking errors . 78g310.2.1.5.0 Base checking errors 78g310.2.1.5.1 Functions in CLA not supported . 79g310.2.1.5.2 Command not allowed . 79g310.2.
33、1.5.3 Wrong parameters . 79g310.2.1.6 Application errors . 79g310.2.2 Status words of the commands . 80g310.3 Logical channels . 82g311 Commands 82g311.1 Generic commands . 82g311.1.0 Introduction. 82g311.1.1 SELECT 82g311.1.1.1 Functional description . 82g311.1.1.2 Command parameters and data . 82g
34、311.1.1.3 Response Data . 83g311.1.1.3.0 Base coding . 83g311.1.1.3.1 Response for MF, DF or ADF . 84g311.1.1.3.2 Response for an EF 84g3ETSI ETSI TS 102 221 V13.1.0 (2016-05)7Release 13 11.1.1.4 File control parameters 84g311.1.1.4.1 File size 84g311.1.1.4.2 Total file size . 85g311.1.1.4.3 File De
35、scriptor . 85g311.1.1.4.4 File identifier . 86g311.1.1.4.5 DF name 86g311.1.1.4.6 Proprietary information . 87g311.1.1.4.7 Security attributes 91g311.1.1.4.8 Short file identifier 93g311.1.1.4.9 Life cycle status integer . 93g311.1.1.4.10 PIN status template DO . 93g311.1.2 STATUS . 94g311.1.2.1 Fun
36、ctional description . 94g311.1.2.2 Command parameters 94g311.1.3 READ BINARY . 95g311.1.3.1 Functional description . 95g311.1.3.2 Command parameters 95g311.1.4 UPDATE BINARY 95g311.1.4.1 Functional parameters . 95g311.1.4.2 Command parameters and data . 96g311.1.5 READ RECORD 96g311.1.5.1 Functional
37、 description . 96g311.1.5.2 Command parameters 97g311.1.6 UPDATE RECORD . 97g311.1.6.1 Functional description . 97g311.1.6.2 Command parameters and data . 98g311.1.7 SEARCH RECORD . 98g311.1.7.1 Functional description . 98g311.1.7.2 Command parameters and data . 99g311.1.8 INCREASE . 100g311.1.8.1 F
38、unctional description . 100g311.1.8.2 Command parameters and data . 100g311.1.9 VERIFY PIN 101g311.1.9.1 Functional description . 101g311.1.9.1.1 PIN verification . 101g311.1.9.1.2 PIN retry counter . 101g311.1.9.2 Void. 102g311.1.9.3 Command parameters 102g311.1.10 CHANGE PIN 102g311.1.10.1 Functio
39、nal description . 102g311.1.10.2 Command parameters 103g311.1.11 DISABLE PIN 103g311.1.11.1 Functional description . 103g311.1.11.2 Command parameters 104g311.1.12 ENABLE PIN . 104g311.1.12.1 Functional description . 104g311.1.12.2 Command parameters 105g311.1.13 UNBLOCK PIN 105g311.1.13.1 Functiona
40、l description . 105g311.1.13.1.1 PIN unblocking 105g311.1.13.1.2 UNBLOCK PIN retry counter . 106g311.1.13.2 Void. 106g311.1.13.3 Command parameters 106g311.1.14 DEACTIVATE FILE 106g311.1.14.1 Functional description . 106g311.1.14.2 Command parameters 107g311.1.15 ACTIVATE FILE . 107g311.1.15.1 Funct
41、ional description . 107g311.1.15.2 Command parameters 108g311.1.16 AUTHENTICATE 108g311.1.16.1 Functional description . 108g311.1.16.2 Command parameters and data . 109g3ETSI ETSI TS 102 221 V13.1.0 (2016-05)8Release 13 11.1.17 MANAGE CHANNEL . 111g311.1.17.1 Functional description . 111g311.1.17.2
42、Command parameters and data . 111g311.1.18 GET CHALLENGE 112g311.1.18.1 Functional description . 112g311.1.18.2 Command parameters and data . 112g311.1.19 TERMINAL CAPABILITY . 112g311.1.19.1 Functional description . 112g311.1.19.2 Command parameters and data . 113g311.1.19.2.0 Base coding . 113g311
43、.1.19.2.1 Terminal power supply 113g311.1.19.2.2 Extended logical channels terminal support 113g311.1.19.2.3 Additional interfaces support . 114g311.1.19.2.4 Additional Terminal capability indications related to eUICC . 114g311.1.20 MANAGE SECURE CHANNEL . 114g311.1.20.1 General functional descripti
44、on 114g311.1.20.2 Retrieve UICC Endpoints . 115g311.1.20.2.0 Introduction . 115g311.1.20.2.1 Functional description . 115g311.1.20.2.2 Command parameters and data 116g311.1.20.3 Establish SA - Master SA . 117g311.1.20.3.0 Introduction . 117g311.1.20.3.1 Functional description . 117g311.1.20.3.2 Comm
45、and parameters and data 118g311.1.20.4 Establish SA - Connection SA 120g311.1.20.4.0 Introduction . 120g311.1.20.4.1 Functional description . 120g311.1.20.4.2 Command parameters and data 120g311.1.20.5 Establish SA - Start Secure Channel . 122g311.1.20.5.0 Introduction . 122g311.1.20.5.1 Functional
46、description . 122g311.1.20.5.2 Command parameters and data 122g311.1.20.6 Terminate Secure Channel SA 124g311.1.20.6.0 Introduction . 124g311.1.20.6.1 Functional description . 124g311.1.20.6.2 Command parameters and data 124g311.1.21 TRANSACT DATA . 125g311.1.21.1 General functional description 125g
47、311.1.21.2 Command parameters and data . 126g311.2 CAT commands 128g311.2.1 TERMINAL PROFILE . 128g311.2.1.1 Functional description . 128g311.2.1.2 Command parameters and data . 129g311.2.2 ENVELOPE 129g311.2.2.1 Functional description . 129g311.2.2.2 Command parameters and data . 129g311.2.3 FETCH
48、129g311.2.3.1 Functional description . 129g311.2.3.2 Command parameters and data . 130g311.2.4 TERMINAL RESPONSE . 130g311.2.4.1 Functional description . 130g311.2.4.2 Command parameters and data . 130g311.3 Data Oriented commands . 130g311.3.0 Overview and generic mechanism 130g311.3.1 RETRIEVE DAT
49、A . 132g311.3.1.1 Functional description . 132g311.3.1.2 Command parameters and data . 132g311.3.2 SET DATA . 133g311.3.2.1 Functional description . 133g311.3.2.2 Command parameters and data . 134g312 Transmission oriented commands 134g3ETSI ETSI TS 102 221 V13.1.0 (2016-05)9Release 13 12.1 T = 0 specific commands 134g312.1.1 GET RESPONSE 134g312.1.1.1 Functional description . 134g312.1.1.2 Command parameters 135g313 Application independent files . 135g313.1 EFDIR135g313.2 EFICCID(ICC Identification) 136g313.3 EFPL(Preferred Languages) 137g313.4 EFARR(Access Rule Reference)