1、 ETSI TS 102 221 V15.0.0 (2018-07) Smart Cards; UICC-Terminal interface; Physical and logical characteristics (Release 15) TECHNICAL SPECIFICATION ETSI ETSI TS 102 221 V15.0.0 (2018-07)2Release 15Reference RTS/SCP-T102221vf00 Keywords smart card ETSI 650 Route des Lucioles F-06921 Sophia Antipolis C
2、edex - 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 document
3、 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 i
4、n 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 status
5、 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 Notification No part may be
6、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 copyright and the foregoing restr
7、iction 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 of the 3GPP Organizational P
8、artners. 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 221 V15.0.0 (2018-07)3Release 15Contents Intellectual Property Rights 12g3Foreword . 12g3Modal verbs terminology 12g3Introduction 13g31 S
9、cope 14g32 References 14g32.1 Normative references . 14g32.2 Informative references 15g33 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.
10、0.0 Generic requirements 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 en
11、vironmental conditions . 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 ac
12、tivation and deactivation 26g34.5.2.1 Contacts assigned by the present document 26g34.5.2.2 Optional contacts . 26g34.5.3 Inactive contacts . 26g34.5.4 Contact pressure 26g35 Electrical specifications of the UICC - Terminal interface 27g35.0 General requirements . 27g35.1 Class A operating condition
13、s 27g35.1.1 Supply voltage Vcc (contact C1) 27g35.1.2 Reset (RST) (contact C2) 28g35.1.3 Programming voltage Vpp (contact C6) . 28g35.1.4 Clock CLK (contact C3) . 28g35.1.5 I/O (contact C7) 29g35.2 Class B operating conditions 29g35.2.1 Supply voltage Vcc (contact C1) 29g35.2.2 Reset (RST) (contact
14、C2) 30g35.2.3 Clock CLK (contact C3) . 30g35.2.4 I/O (contact C7) 30g35.3 Class C operating conditions 31g35.3.1 Supply voltage Vcc (contact C1) 31g3ETSI ETSI TS 102 221 V15.0.0 (2018-07)4Release 155.3.2 Reset (RST) (contact C2) 31g35.3.3 Clock CLK (contact C3) . 31g35.3.4 I/O (contact C7) 32g36 Ini
15、tial communication 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 33g36.2.2 Power consumption of the UICC during ATR 33g36.2.3 Application related electrical parameters 33g36
16、.3 Answer To Reset content . 34g36.3.0 Introduction. 34g36.3.1 Coding of historical bytes . 34g36.3.2 Speed enhancement. 34g36.3.3 Global Interface bytes . 35g36.4 PPS procedure 35g36.5 Reset procedures 36g36.5.1 Cold reset 36g36.5.2 Warm reset 36g36.5.3 Reaction to resets 36g36.6 Clock stop mode .
17、36g36.7 Bit/character duration and sampling time . 36g36.8 Error handling 37g36.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 39g37.2.1.0 Structure, coding and timing . 39g37.2.1.1
18、 Low impedance I/O line behaviour . 39g37.2.2 Transmission protocol T = 0 . 40g37.2.2.0 Introduction . 40g37.2.2.1 Timing and specific options for characters in T = 0 40g37.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
19、.3.2 Status bytes 41g37.2.2.4 Error detection and correction . 41g37.2.3 Transmission protocol T = 1 . 42g37.2.3.0 Introduction . 42g37.2.3.1 Timing and specific options for blocks sent with T = 1 42g37.2.3.1.0 Introduction . 42g37.2.3.1.1 Information field size 42g37.2.3.1.2 Character waiting integ
20、er. 42g37.2.3.1.3 Character waiting time 42g37.2.3.1.4 Block waiting time 42g37.2.3.1.5 Block guard time . 43g37.2.3.1.6 Waiting time extension 43g37.2.3.1.7 Error detection code 43g37.2.3.2 Block frame structure 43g37.2.3.2.0 Overall structure 43g37.2.3.2.1 Prologue field 43g37.2.3.2.2 Epilogue fie
21、ld 45g37.2.3.2.3 Block notations 45g37.2.3.3 Error free operation . 46g37.2.3.4 Error handling for T = 1 46g37.2.3.4.0 General description 46g3ETSI ETSI TS 102 221 V15.0.0 (2018-07)5Release 157.2.3.4.1 Protocol initialization 47g37.2.3.4.2 Block dependent errors 47g37.2.3.5 Chaining 47g37.2.3.5.0 Ch
22、aining Mechanism . 47g37.2.3.5.1 Rules for chaining 48g37.3 Transport layer . 48g37.3.0 Introduction. 48g37.3.1 Transportation of an APDU using T = 0 . 48g37.3.1.0 Introduction . 48g37.3.1.1 Mapping of APDUs to TPDUs 48g37.3.1.1.0 General behaviour . 48g37.3.1.1.1 Case 1 49g37.3.1.1.2 Case 2 49g37.3
23、.1.1.3 Case 3 50g37.3.1.1.4 Case 4 51g37.3.1.1.5 Use of procedure bytes 61xx and 6Cxx 52g37.3.2 Transportation of a APDU using T = 1 . 53g37.3.2.0 General mechanism . 53g37.3.2.1 Case 1 53g37.3.2.2 Case 2 53g37.3.2.3 Case 3 54g37.3.2.4 Case 4 54g37.4 Application layer 54g37.4.0 Overall description 5
24、4g37.4.1 Exchange of APDUs . 55g37.4.2 CAT layer . 55g37.4.2.0 Overview . 55g37.4.2.1 Proactive command . 55g37.4.2.2 ENVELOPE Commands . 56g37.4.3 Application execution . 56g38 Application and file structure . 57g38.1 UICC application structure . 57g38.2 File types 58g38.2.0 Introduction. 58g38.2.1
25、 Dedicated files 58g38.2.2 Elementary files 58g38.2.2.1 Transparent EF 58g38.2.2.2 Linear fixed EF . 58g38.2.2.3 Cyclic EF 59g38.2.2.4 BER-TLV structure EF . 59g38.3 File referencing 59g38.4 Methods for selecting a file 60g38.4.0 Default state after UICC activation and ATR . 60g38.4.1 SELECT by File
26、 Identifier referencing . 60g38.4.2 SELECT by path referencing 61g38.4.3 Short File Identifier (SFI) . 62g38.5 Application characteristics . 62g38.5.0 Application selection types . 62g38.5.1 Explicit application selection 62g38.5.1.1 SELECT by DF name . 62g38.5.1.2 SELECT by partial DF name 63g38.5.
27、2 Application session activation 63g38.5.3 Application session termination 63g38.5.4 Application session reset 64g38.5.5 Void 64g38.6 Reservation of file Ids 64g38.7 Logical channels . 65g38.8 Shareable versus not-shareable files . 66g38.9 Secure channels 66g39 Security features . 67g3ETSI ETSI TS 1
28、02 221 V15.0.0 (2018-07)6Release 159.0 Introduction 67g39.1 Supported security features 67g39.2 Security architecture . 67g39.2.0 Overview and basic rules 67g39.2.1 Security attributes . 68g39.2.2 Access mode . 68g39.2.3 Security condition . 68g39.2.4 Access rules 68g39.2.5 Compact format 69g39.2.6
29、Expanded format. 69g39.2.7 Access rule referencing . 69g39.3 Security environment . 70g39.3.0 Description 70g39.3.1 Definition of the security environment . 71g39.3.2 Logical Channels and Security Environment 71g39.4 PIN definitions . 72g39.4.0 Introduction. 72g39.4.1 Universal PIN . 72g39.4.2 Appli
30、cation PIN 72g39.4.3 Local PIN 72g39.4.4 PINs and logical channels . 72g39.5 PIN and key reference relationship 73g39.5.0 Introduction. 73g39.5.1 Access condition mapping 73g39.5.2 PIN status indication . 74g310 Structure of commands and responses . 75g310.1 Command APDU . 75g310.1.0 Structure and c
31、ase . 75g310.1.1 Coding of Class Byte 76g310.1.2 Coding of Instruction Byte . 77g310.1.3 Coding of parameter bytes 78g310.1.4 Coding of Lc byte . 78g310.1.5 Coding of data part . 78g310.1.6 Coding of Le byte . 78g310.2 Response APDU . 78g310.2.0 Structure 78g310.2.1 Status conditions returned by the
32、 UICC . 78g310.2.1.0 Introduction . 78g310.2.1.1 Normal processing 79g310.2.1.2 Postponed processing 79g310.2.1.3 Warnings . 79g310.2.1.4 Execution errors 79g310.2.1.5 Checking errors . 80g310.2.1.5.0 Base checking errors 80g310.2.1.5.1 Functions in CLA not supported . 80g310.2.1.5.2 Command not all
33、owed . 80g310.2.1.5.3 Wrong parameters . 80g310.2.1.6 Application errors . 81g310.2.2 Status words of the commands . 82g310.3 Logical channels . 84g311 Commands 84g311.1 Generic commands . 84g311.1.0 Introduction. 84g311.1.1 SELECT 84g311.1.1.1 Functional description . 84g311.1.1.2 Command parameter
34、s and data . 84g311.1.1.3 Response Data . 85g311.1.1.3.0 Base coding . 85g311.1.1.3.1 Response for MF, DF or ADF . 86g311.1.1.3.2 Response for an EF 86g3ETSI ETSI TS 102 221 V15.0.0 (2018-07)7Release 1511.1.1.4 File control parameters 86g311.1.1.4.1 File size 86g311.1.1.4.2 Total file size . 87g311.
35、1.1.4.3 File Descriptor . 87g311.1.1.4.4 File identifier . 88g311.1.1.4.5 DF name 88g311.1.1.4.6 Proprietary information . 88g311.1.1.4.7 Security attributes 92g311.1.1.4.8 Short file identifier 94g311.1.1.4.9 Life cycle status integer . 94g311.1.1.4.10 PIN status template DO . 94g311.1.2 STATUS . 9
36、5g311.1.2.1 Functional description . 95g311.1.2.2 Command parameters 95g311.1.3 READ BINARY . 96g311.1.3.1 Functional description . 96g311.1.3.2 Command parameters 96g311.1.4 UPDATE BINARY 96g311.1.4.1 Functional parameters . 96g311.1.4.2 Command parameters and data . 97g311.1.5 READ RECORD 97g311.1
37、.5.1 Functional description . 97g311.1.5.2 Command parameters 98g311.1.6 UPDATE RECORD . 98g311.1.6.1 Functional description . 98g311.1.6.2 Command parameters and data . 99g311.1.7 SEARCH RECORD . 99g311.1.7.1 Functional description . 99g311.1.7.2 Command parameters and data . 100g311.1.8 INCREASE .
38、 101g311.1.8.1 Functional description . 101g311.1.8.2 Command parameters and data . 101g311.1.9 VERIFY PIN 102g311.1.9.1 Functional description . 102g311.1.9.1.1 PIN verification . 102g311.1.9.1.2 PIN retry counter . 102g311.1.9.2 Void. 103g311.1.9.3 Command parameters 103g311.1.10 CHANGE PIN 103g31
39、1.1.10.1 Functional description . 103g311.1.10.2 Command parameters 104g311.1.11 DISABLE PIN 104g311.1.11.1 Functional description . 104g311.1.11.2 Command parameters 105g311.1.12 ENABLE PIN . 105g311.1.12.1 Functional description . 105g311.1.12.2 Command parameters 106g311.1.13 UNBLOCK PIN 106g311.
40、1.13.1 Functional description . 106g311.1.13.1.1 PIN unblocking 106g311.1.13.1.2 UNBLOCK PIN retry counter . 107g311.1.13.2 Void. 107g311.1.13.3 Command parameters 107g311.1.14 DEACTIVATE FILE 107g311.1.14.1 Functional description . 107g311.1.14.2 Command parameters 108g311.1.15 ACTIVATE FILE . 108g
41、311.1.15.1 Functional description . 108g311.1.15.2 Command parameters 108g311.1.16 AUTHENTICATE 109g311.1.16.1 Functional description . 109g311.1.16.2 Command parameters and data . 110g3ETSI ETSI TS 102 221 V15.0.0 (2018-07)8Release 1511.1.17 MANAGE CHANNEL . 111g311.1.17.1 Functional description .
42、111g311.1.17.2 Command parameters and data . 112g311.1.18 GET CHALLENGE 112g311.1.18.1 Functional description . 112g311.1.18.2 Command parameters and data . 113g311.1.19 TERMINAL CAPABILITY . 113g311.1.19.1 Functional description . 113g311.1.19.2 Command parameters and data . 113g311.1.19.2.0 Base c
43、oding . 113g311.1.19.2.1 Terminal power supply 114g311.1.19.2.2 Extended logical channels terminal support 114g311.1.19.2.3 Additional interfaces support . 114g311.1.19.2.4 Additional Terminal capability indications related to eUICC . 115g311.1.20 MANAGE SECURE CHANNEL . 115g311.1.20.1 General funct
44、ional description 115g311.1.20.2 Retrieve UICC Endpoints . 116g311.1.20.2.0 Introduction . 116g311.1.20.2.1 Functional description . 116g311.1.20.2.2 Command parameters and data 117g311.1.20.3 Establish SA - Master SA . 118g311.1.20.3.0 Introduction . 118g311.1.20.3.1 Functional description . 119g31
45、1.1.20.3.2 Command parameters and data 119g311.1.20.4 Establish SA - Connection SA 121g311.1.20.4.0 Introduction . 121g311.1.20.4.1 Functional description . 121g311.1.20.4.2 Command parameters and data 121g311.1.20.5 Establish SA - Start Secure Channel . 123g311.1.20.5.0 Introduction . 123g311.1.20.
46、5.1 Functional description . 123g311.1.20.5.2 Command parameters and data 123g311.1.20.6 Terminate Secure Channel SA 124g311.1.20.6.0 Introduction . 124g311.1.20.6.1 Functional description . 125g311.1.20.6.2 Command parameters and data 125g311.1.21 TRANSACT DATA . 126g311.1.21.1 General functional d
47、escription 126g311.1.21.2 Command parameters and data . 127g311.1.22 SUSPEND UICC 129g311.1.22.1 Functional description . 129g311.1.22.2 UICC suspension . 129g311.1.22.2.1 Introduction . 129g311.1.22.2.2 Functional description . 129g311.1.22.2.3 Command parameters and data 130g311.1.22.3 UICC resume
48、. 131g311.1.22.3.1 Introduction . 131g311.1.22.3.2 Functional description . 131g311.1.22.3.3 Command parameters and data 132g311.1.23 GET IDENTITY . 132g311.1.23.1 Functional description . 132g311.1.23.2 Command parameters and data . 132g311.2 CAT commands 133g311.2.1 TERMINAL PROFILE . 133g311.2.1.
49、1 Functional description . 133g311.2.1.2 Command parameters and data . 133g311.2.2 ENVELOPE 133g311.2.2.1 Functional description . 133g311.2.2.2 Command parameters and data . 133g311.2.3 FETCH 134g311.2.3.1 Functional description . 134g311.2.3.2 Command parameters and data . 134g3ETSI ETSI TS 102 221 V15.0.0 (2018-07)9Release 1511.2.4 TERMINAL RESPONSE . 134g311.2.4.1 Functional description . 134g311.2.4.2 Command parameters and data . 134g311.3 Data Oriented commands . 135g311.3.0 Overview and generic mechanism 135g311.3.1 RETRIEVE DATA . 136g311.3.1.1 Functional descriptio