1、 ETSI TS 135 201 V15.0.0 (2018-07) Universal Mobile Telecommunications System (UMTS); LTE; 3G Security; Specification of the 3GPP confidentiality and integrity algorithms; Document 1: f8 and f9 specification (3GPP TS 35.201 version 15.0.0 Release 15) TECHNICAL SPECIFICATION ETSI ETSI TS 135 201 V15.
2、0.0 (2018-07)13GPP TS 35.201 version 15.0.0 Release 15Reference RTS/TSGS-0335201vf00 Keywords LTE,SECURITY,UMTS ETSI 650 Route des Lucioles 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 enregi
3、stre 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 may be made available in electronic versions and/or in print. The content of any electronic and/or print versions of the present docu
4、ment 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 in print, the only prevailing document is the print of the Portable Document Format (PDF) version kept on a specific network drive with
5、in 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 of this and other ETSI documents is available at https:/portal.etsi.org/TB/ETSIDeliverableStatus.aspx If you find errors in the prese
6、nt document, please send your comment to one of the following services: https:/portal.etsi.org/People/CommiteeSupportStaff.aspx Copyright Notification No part may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm except as authorize
7、d 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 extend to reproduction in all media. ETSI 2018. All rights reserved. DECTTM, PLUGTESTSTM, UMTSTMand the ETSI logo are trademark
8、s 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 Partners. oneM2M logo is protected for the benefit of its Members. GSMand the GSM logo are trademarks registered and owned by the GSM A
9、ssociation. ETSI ETSI TS 135 201 V15.0.0 (2018-07)23GPP TS 35.201 version 15.0.0 Release 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 p
10、ublicly available 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 E
11、TSI Web server (https:/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,
12、or may become, essential 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
13、 use or reproduce 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 3rd Generatio
14、n Partnership Project (3GPP). The present document may refer to technical specifications or reports using their 3GPP identities, UMTS identities or GSM identities. These should be interpreted as being references to the corresponding ETSI deliverables. The cross reference between GSM, UMTS, 3GPP and
15、ETSI identities can be found under http:/webapp.etsi.org/key/queryform.asp. Modal verbs terminology In the present document “shall“, “shall not“, “should“, “should not“, “may“, “need not“, “will“, “will not“, “can“ and “cannot“ are to be interpreted as described in clause 3.2 of the ETSI Drafting Ru
16、les (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 135 201 V15.0.0 (2018-07)33GPP TS 35.201 version 15.0.0 Release 15Contents Intellectual Property Rights 2g3Foreword . 2g3Modal verbs termi
17、nology 2g3Foreword . 4g3Introduction 4g30 Scope 6g3NORMATIVE SECTION 7g31 Outline of the normative part . 8g31.1 References 8g32 Introductory information 8g32.1 Introduction 8g32.2 Notation 9g32.2.1 Radix . 9g32.2.2 Conventions 9g32.2.3 Bit/Byte ordering 9g32.2.4 List of Symbols . 9g32.3 List of Var
18、iables . 9g33 Confidentiality algorithm f8 . 10g33.1 Introduction 10g33.2 Inputs and Outputs 10g33.3 Components and Architecture 11g33.4 Initialisation 11g33.5 Keystream Generation 11g33.6 Encryption/Decryption . 11g34 Integrity algorithm f9 12g34.1 Introduction 12g34.2 Inputs and Outputs 12g34.3 Co
19、mponents and Architecture 12g34.4 Initialisation 12g34.5 Calculation . 13g3INFORMATIVE SECTION . 14g3Annex 1 (informative): Figures of the f8 and f9 Algorithms 15g3Annex 2 (informative): Simulation Program Listing . 17g3Annex 3 (informative): Change history . 21g3History 22g3ETSI ETSI TS 135 201 V15
20、.0.0 (2018-07)43GPP TS 35.201 version 15.0.0 Release 15Foreword This Technical Specification has been produced by the 3rdGeneration Partnership Project (3GPP). The 3GPP Confidentiality and Integrity Algorithms f8 2 presented to TSG for approval; 3 or greater indicates TSG approved document under cha
21、nge control. y the second digit is incremented for all changes of substance, i.e. technical enhancements, corrections, updates, etc. z the third digit is incremented when editorial only changes have been incorporated in the document. Introduction This specification has been prepared by the 3GPP Task
22、 Force, and gives a detailed specification of the 3GPP confidentiality algorithm f8, and the 3GPP integrity algorithm f9. This document is the first of four, which between them form the entire specification of the 3GPP Confidentiality and Integrity Algorithms: - 3GPP TS 35.201: “3rd Generation Partn
23、ership Project; Technical Specification Group Services and System Aspects; 3G Security; Specification of the 3GPP Confidentiality and Integrity Algorithms; Document 1: f8 and f9 Specification“. - 3GPP TS 35.202: “3rd Generation Partnership Project; Technical Specification Group Services and System A
24、spects; 3G Security; Specification of the 3GPP Confidentiality and Integrity Algorithms; Document 2: KASUMI Specification“. - 3GPP TS 35.203: “3rd Generation Partnership Project; Technical Specification Group Services and System Aspects; 3G Security; Specification of the 3GPP Confidentiality and Int
25、egrity Algorithms; Document 3: Implementors Test Data“. - 3GPP TS 35.204: “3rd Generation Partnership Project; Technical Specification Group Services and System Aspects; 3G Security; Specification of the 3GPP Confidentiality and Integrity Algorithms; Document 4: Design Conformance Test Data“. The no
26、rmative part of the specification of the f8 (confidentiality) and f9 (integrity) algorithms is in the main body of this document. The annexes to this document are purely informative. Annex 1 contains illustrations of functional ETSI ETSI TS 135 201 V15.0.0 (2018-07)53GPP TS 35.201 version 15.0.0 Rel
27、ease 15elements of the algorithm, while Annex 2 contains an implementation program listing of the cryptographic algorithm specified in the main body of this document, written in the programming language C. The normative part of the specification of the block cipher (KASUMI) on which they are based i
28、s in the main body of Document 2. The annexes of that document, and Documents 3 and 4 above, are purely informative. ETSI ETSI TS 135 201 V15.0.0 (2018-07)63GPP TS 35.201 version 15.0.0 Release 150 Scope This specification gives a detailed specification of the 3GPP confidentiality algorithm f8, and
29、the 3GPP integrity algorithm f9. ETSI ETSI TS 135 201 V15.0.0 (2018-07)73GPP TS 35.201 version 15.0.0 Release 15NORMATIVE SECTION This part of the document contains the normative specification of the Confidentiality and Integrity algorithms. ETSI ETSI TS 135 201 V15.0.0 (2018-07)83GPP TS 35.201 vers
30、ion 15.0.0 Release 151 Outline of the normative part Section 1 introduces the algorithms and describes the notation used in the subsequent sections. Section 3 specifies the confidentiality algorithm f8. Section 4 specifies the integrity algorithm f9. 1.1 References The following documents contain pr
31、ovisions which, through reference in this text, constitute provisions of the present document. - References are either specific (identified by date of publication, edition number, version number, etc.) or non-specific. - For a specific reference, subsequent revisions do not apply. - For a non-specif
32、ic reference, the latest version applies. In the case of a reference to a 3GPP document (including a GSM document), a non-specific reference implicitly refers to the latest version of that document in the same Release as the present document. 1 3GPP TS 33.102 version 3.2.0: “3rd Generation Partnersh
33、ip Project; Technical Specification Group Services and System Aspects; 3G Security; Security Architecture“. 2 3GPP TS 33.105 version 3.1.0: “3rd Generation Partnership Project; Technical Specification Group Services and System Aspects; 3G Security; Cryptographic Algorithm Requirements“. 3 3GPP TS 35
34、.201: “3rd Generation Partnership Project; Technical Specification Group Services and System Aspects; 3G Security; Specification of the 3GPP Confidentiality and Integrity Algorithms; Document 1: f8 and f9 Specification“. 4 3GPP TS 35.202: “3rd Generation Partnership Project; Technical Specification
35、Group Services and System Aspects; 3G Security; Specification of the 3GPP Confidentiality and Integrity Algorithms; Document 2: KASUMI Specification“. 5 3GPP TS 35.203: “3rd Generation Partnership Project; Technical Specification Group Services and System Aspects; 3G Security; Specification of the 3
36、GPP Confidentiality and Integrity Algorithms; Document 3: Implementors Test Data“. 6 3GPP TS 35.204: “3rd Generation Partnership Project; Technical Specification Group Services and System Aspects; 3G Security; Specification of the 3GPP Confidentiality and Integrity Algorithms; Document 4: Design Con
37、formance Test Data“. 7 ISO/IEC 9797-1:1999: “Information technology Security techniques Message Authentication Codes (MACs)“. 2 Introductory information 2.1 Introduction Within the security architecture of the 3GPP system there are two standardised algorithms: A confidentiality algorithm f8, and an
38、integrity algorithm f9. These algorithms are fully specified here. Each of these algorithms is based on the KASUMI algorithm that is specified in a companion document4. KASUMI is a block cipher that produces a 64-bit output from a 64-bit input under the control of a 128-bit key. The confidentiality
39、algorithm f8 is a stream cipher that is used to encrypt/decrypt blocks of data under a confidentiality key CK. The block of data may be between 1 and 20000 bits long. The algorithm uses KASUMI in a form of output-feedback mode as a keystream generator. The integrity algorithm f9 computes a 32-bit MA
40、C (Message Authentication Code) of a given input message using an integrity key IK. The approach adopted uses KASUMI in a form of CBC-MAC mode. ETSI ETSI TS 135 201 V15.0.0 (2018-07)93GPP TS 35.201 version 15.0.0 Release 152.2 Notation 2.2.1 Radix We use the prefix 0x to indicate hexadecimal numbers
41、. 2.2.2 Conventions We use the assignment operator =, as used in several programming languages. When we write = we mean that assumes the value that had before the assignment took place. For instance, x = x + y + 3 means (new value of x) becomes (old value of x) + (old value of y) + 3. 2.2.3 Bit/Byte
42、 ordering All data variables in this specification are presented with the most significant bit (or byte) on the left hand side and the least significant bit (or byte) on the right hand side. Where a variable is broken down into a number of sub-strings, the left most (most significant) sub-string is
43、numbered 0, the next most significant is numbered 1 and so on through to the least significant. For example an n-bit MESSAGE is subdivided into 64-bit substrings MB0,MB1MBi so if we have a message: 0x0123456789ABCDEFFEDCBA987654321086545381AB594FC28786404C50A37 we have: MB0 = 0x0123456789ABCDEF MB1
44、= 0xFEDCBA9876543210 MB2 = 0x86545381AB594FC2 MB3 = 0x8786404C50A37 In binary this would be: 000000010010001101000101011001111000100110101011110011011110111111111110 with MB0 = 0000000100100011010001010110011110001001101010111100110111101111 MB1 = 1111111011011100101110101001100001110110010101000011
45、001000010000 MB2 = 1000011001010100010100111000000110101011010110010100111111000010 MB3 = 1000011110000110010000000100110001010000101000110111 2.2.4 List of Symbols = The assignment operator. The bitwise exclusive-OR operation. | The concatenation of the two operands. KASUMIxkThe output of the KASUM
46、I algorithm applied to input value x using the key k. Xi The ithbit of the variable X. (X = X0 | X1 | X2 | ). YiThe ithblock of the variable Y. (Y = Y0 | Y1 | Y2 | . ). 2.3 List of Variables A, B are 64-bit registers that are used within the f8 and f9 functions to hold intermediate values. ETSI ETSI
47、 TS 135 201 V15.0.0 (2018-07)103GPP TS 35.201 version 15.0.0 Release 15BEARER a 5-bit input to the f8 function. BLKCNT a 64-bit counter used in the f8 function. BLOCKS an integer variable indicating the number of successive applications of KASUMI that need to be performed, for both the f8 and f9 fun
48、ctions. CK a 128-bit confidentiality key. COUNT a 32-bit time variant input to both the f8 and f9 functions. DIRECTION a 1-bit input to both the f8 and f9 functions indicating the direction of transmission (uplink or downlink). FRESH a 32-bit random input to the f9 function. IBS the input bit stream
49、 to the f8 function. IK a 128-bit integrity key. KM a 128-bit constant that is used to modify a key. This is used in both the f8 and f9 functions. (It takes a different value in each function). KSi is the ithbit of keystream produced by the keystream generator. KSBiis the ithblock of keystream produced by the keystream generator. Each block of keystream comprises 64 bits. LENGTH is an input to the f8 and f9 functions. It specifies the number of bits in the input bitstream. MAC-I is the 32-bit message authentication code (MAC