view Side-By-Side changes
Network Working Group J. Arkko Internet Draft Ericsson Document:draft-arkko-pppext-eap-aka-10.txtdraft-arkko-pppext-eap-aka-11.txt H. Haverinen Expires:December 200327 April, 2004 NokiaJune27 October, 2003 EAP AKA Authentication Status of this Memo This document is an Internet-Draft and is subject to all provisions of Section 10 of RFC2026. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note that other groups may also distribute working documents as Internet- Drafts. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." The list of current Internet-Drafts can be accessed at http://www.ietf.org/ietf/1id-abstracts.txt The list of Internet-Draft Shadow Directories can be accessed at http://www.ietf.org/shadow.html. Comments should be submitted to the eap@frascone.com mailing list. Abstract This document specifies an Extensible Authentication Protocol (EAP) mechanism for authentication and session key distribution using the Universal Mobile Telecommunications System (UMTS) Authentication and Key Agreement (AKA) mechanism. UMTS AKA is based on symmetric keys, and runs typically in a UMTS Subscriber Identity Module, a smart card like device. EAP AKA includes optional identity privacy support and an optional re-authentication procedure. Table of Contents Status of this Memo................................................1 Abstract...........................................................1 1. Introduction andMotivation.....................................2Motivation.....................................3 2. Terms and Conventions Used in This Document.....................4 3. Protocol Overview...............................................6 4.Identity Management............................................10 4.1. User Identity in EAP-Response/Identity.......................10Operation......................................................11 Arkko and Haverinen Expiresin six months27 April, 2004 [Page 1] EAP AKA AuthenticationJune27 October, 20034.2. Obtaining Subscriber4.1. Identityvia EAP AKA Messages...........12Management..........................................11 4.2. Re-authentication............................................25 4.3.Identity Privacy Support.....................................15EAP/AKA Notifications........................................31 4.4. Error Cases..................................................32 4.5. Key Generation...............................................34 5.Re-authentication..............................................21 6.MessageFormat.................................................26 7. Message AuthenticationFormat andEncryption..........................27Protocol Extensibility......................35 5.1. Message Format...............................................35 5.2. Protocol Extensibility.......................................37 6. Messages.......................................................37 6.1. EAP-Request/AKA-Identity.....................................37 6.2. EAP-Response/AKA-Identity....................................38 6.3. EAP-Request/AKA-Challenge....................................38 6.4. EAP-Response/AKA-Challenge...................................39 6.5. EAP-Response/AKA-Authentication-Reject.......................39 6.6. EAP-Response/AKA-Synchronization-Failure.....................39 6.7. EAP-Request/AKA-Reauthentication.............................39 6.8. EAP-Response/AKA-Reauthentication............................40 6.9. EAP-Response/AKA-Client-Error................................40 6.10. EAP-Request/AKA-Notification................................40 6.11. EAP-Response/AKA-Notification...............................41 7. Attributes.....................................................41 7.1.AT_MAC Attribute.............................................27Table of Attributes..........................................41 7.2.AT_CHECKCODE Attribute.......................................28AT_MAC.......................................................42 7.3. AT_IV, AT_ENCR_DATA andAT_PADDING Attributes................30AT_PADDING...........................43 7.4. AT_CHECKCODE.................................................45 7.5. AT_PERMANENT_ID_REQ..........................................47 7.6. AT_ANY_ID_REQ................................................47 7.7. AT_FULLAUTH_ID_REQ...........................................47 7.8. AT_IDENTITY..................................................48 7.9. AT_RAND......................................................48 7.10. AT_AUTN.....................................................49 7.11. AT_RES......................................................49 7.12. AT_AUTS.....................................................49 7.13. AT_NEXT_PSEUDONYM...........................................50 7.14. AT_NEXT_REAUTH_ID...........................................50 7.15. AT_COUNTER..................................................51 7.16. AT_COUNTER_TOO_SMALL........................................51 7.17. AT_NONCE_S..................................................51 7.18. AT_NOTIFICATION.............................................52 7.19. AT_CLIENT_ERROR_CODE........................................53 8.Messages.......................................................31 8.1. EAP-Request/AKA-Challenge....................................31 8.2. EAP-Response/AKA-Challenge...................................35 8.3. EAP-Response/AKA-Authentication-Reject.......................36 8.4. EAP-Response/AKA-Synchronization-Failure.....................37 8.5. EAP-Request/AKA-Identity.....................................38 8.6. EAP-Response/AKA-Identity....................................39 8.7. EAP-Request/AKA-Reauthentication.............................41 8.8. EAP-Response/AKA-Reauthentication............................43 8.9. EAP/AKA Notifications........................................46 9. Error Cases and the Usage of EAP-Failure and EAP-Success.......49 9.1. Processing Erroneous Packets.................................49 9.2. EAP-Failure..................................................49 9.3. EAP-Success..................................................50 10. Key Derivation................................................50 11.IANA and Protocol NumberingConsiderations....................52 12.Considerations.....................53 9. SecurityConsiderations.......................................53 12.1.Considerations........................................54 9.1. IdentityProtection.........................................53 12.2.Protection..........................................55 9.2. MutualAuthentication.......................................53 12.3.Authentication........................................55 9.3. KeyDerivation..............................................53 12.4.Derivation...............................................55 9.4. Brute-Force and DictionaryAttacks..........................53 12.5.Attacks...........................55 9.5. Integrity Protection, Replay Protection andConfidentiality.54 12.6.Confidentiality..55 Arkko and Haverinen Expires 27 April, 2004 [Page 2] EAP AKA Authentication 27 October, 2003 9.6. NegotiationAttacks.........................................54 12.7.Attacks..........................................56 9.7. FastReconnect..............................................55 12.8.Reconnect...............................................56 9.8. Acknowledged ResultIndications.............................55 12.9.Indications..............................56 9.9. Man-in-the-middleAttacks...................................55 12.10.Attacks....................................57 9.10. Generating RandomNumbers..................................55 13.Numbers...................................57 10. SecurityClaims...............................................55 14.Claims...............................................57 11. Intellectual Property RightNotices...........................56Notices...........................58 Acknowledgements andContributions................................56Contributions................................58 Authors'Addresses................................................56Addresses................................................58 Annex A. Pseudo-Random NumberGenerator...........................57Generator...........................59 1. Introduction and Motivation This document specifies an Extensible Authentication Protocol (EAP) mechanism for authentication and session key distribution using the UMTS AKA authentication mechanism[1].[TS 33.102]. UMTS is a global third generation mobile network standard.Arkko and Haverinen Expires in six months [Page 2] EAP AKA Authentication June 2003AKA is based on challenge-response mechanisms and symmetric cryptography. AKA typically runs in a UMTS Subscriber Identity Module (USIM). Compared to the GSM mechanism, UMTS AKA provides substantially longer key lengths and mutual authentication. The introduction of AKA inside EAP allows several new applications. These include the following: - The use of the AKA also as a secure PPP authentication method in devices that already contain an USIM. - The use of the third generation mobile network authentication infrastructure in the context of wireless LANsand IEEE 802.1x technology through EAP over Wireless [2, 3].- Relying on AKA and the existing infrastructure in a seamless way with any other technology that can use EAP. AKA works in the following manner: - The USIM and the home environment have agreed on a secret key beforehand. - The actual authentication process starts by having the home environment produce an authentication vector, based on the secret key and a sequence number. The authentication vector contains a random part RAND, an authenticator part AUTN used for authenticating the network to the USIM, an expected result part XRES, a session key for integrity check IK, and a session key for encryption CK. - The RAND and the AUTN are delivered to the USIM. - The USIM verifies the AUTN, again based on the secret key and the sequence number. If this process is successful (the AUTN is valid Arkko and Haverinen Expires 27 April, 2004 [Page 3] EAP AKA Authentication 27 October, 2003 and the sequence number used to generate AUTN is within the correct range), the USIM produces an authentication result, RES and sends this to the home environment. - The home environment verifies the correct result from the USIM. If the result is correct, IK and CK can be used to protect further communications between the USIM and the home environment. When verifying AUTN, the USIM may detect that the sequence number the network uses is not within the correct range. In this case, the USIM calculates a sequence number synchronization parameter AUTS and sends it to the network. AKA authentication may then be retried with a new authentication vector generated using the synchronized sequence number. For a specification of the AKA mechanisms and how the cryptographic values AUTN, RES, IK, CK and AUTS are calculated, seereference [1]. Arkko and Haverinen Expires in six months [Page 3][TS 33.102]. In EAPAKA Authentication June 2003 It is also possible that the home environment delegatesAKA, theactual authentication task to an intermediate node. In this caseEAP server node obtains the authenticationvector or parts of it are delivered to the intermediate node, enabling it to perform the comparison betweenvectors, compares RES and XRES, andpossibly also useuses CK andIK. Such delivery MUST be doneIK ina secure manner. In EAP AKA, the EAP server node is such an intermediate node.key derivation. In the third generation mobile networks, AKA is used both for radio network authentication and IP multimedia service authentication purposes. Different user identities and formats are used for these; the radio network uses the International Mobile Subscriber Identifier (IMSI), whereas the IP multimedia service uses the Network Access Identifier (NAI)[4].[RFC 2486]. 2. Terms and Conventions Used in This Document Thefollowing terms willkey words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to beused throughinterpreted as described in [RFC 2119]. The terms and abbreviations "authenticator", "backend authentication server", "EAP server", "Silently Discard", "Master Session Key (MSK)", and "Extended Master Session Key (EMSK)" in thisdocument:document are to be interpreted as described in [EAP]. This document frequently uses the following terms and abbreviations: AAA protocol Authentication, Authorization and Accounting protocolAAA server The AAA server is responsible for storing shared secretsAKA Authentication andother credential information necessary for the authentication of users. Cf.Key Agreement Arkko and Haverinen Expires 27 April, 2004 [Page 4] EAPserverAKA Authenticationand Key Agreement27 October, 2003 AuC Authentication Centre. The mobile network element that can authenticate subscribers either in GSM or in UMTS networks.Authenticator The entity that terminates the protocol carrying EAP used by the client, such as a Network Access Server (NAS) terminating the PPP link. The EAP server may be co-located in the Authenticator. In this case, the Authenticator may actually authenticate the user based on information received from the AAA server.EAP Extensible Authentication Protocol[5]. Arkko and Haverinen Expires in six months [Page 4] EAP AKA Authentication June 2003 EAP server The network element that terminates the EAP protocol. Typically, the EAP server functionality is implemented in a AAA server.[EAP]. GSM Global System for Mobile communications. NAI Network Access Identifier[4].[RFC 2486]. AUTN Authentication value generated by the AuC which together with the RAND authenticates the server to theclient,peer, 128 bits[1].[TS 33.102]. AUTS A value generated by theclientpeer upon experiencing a synchronization failure, 112 bits. Permanent Identity The permanent identity of the peer, including an NAI realm portion in environments where a realm is used. The permanent identity is usually based on the IMSI. Used on full authentication only. Permanent Username The username portion of permanent identity, ie. not including any realm portions. Pseudonym Identity A pseudonym identity of the peer, including an NAI realm portion in environments where a real is used. Used on full authentication only. Pseudonym Username The username portion of pseudonym identity, ie. not including any realm portions. Arkko and Haverinen Expires 27 April, 2004 [Page 5] EAP AKA Authentication 27 October, 2003 Re-authentication Identity A re-authentication identity of the peer, including an NAI realm portion in environments where a real is used. Used on re- authentication only. Re-authentication Username The username portion of re-authentication identity, ie. not including any realm portions. RAND Random number generated by the AuC, 128 bits[1].[TS 33.102]. RES Authentication result from theclient,peer, which together with the RAND authenticates theclientpeer to the server, 128 bits[1].[TS 33.102]. SQN Sequence number used in the authentication process, 48 bits[1].[TS 33.102]. SIM Subscriber Identity Module. The SIM is an application traditionally resident on smart cards distributed by GSM operators. SRES The authentication result parameter in GSM, corresponds to the RES parameter in UMTS aka, 32 bits. USIM UMTS Subscriber Identity Module. USIM is an application that is resident e.g. on smart cards distributed by UMTS operators.Arkko and Haverinen Expires in six months [Page 5] EAP AKA Authentication June 2003The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described inRFC 2119 [6][RFC 2119] 3. Protocol OverviewIn this document,The message flow below shows thetermbasic successful full authentication exchange in EAPServer refers toAKA. At thenetwork element that terminates the EAP protocol. Usually the EAP server is separate from the authenticator device, which is the network element closest to the client, such as a Network Access Server (NAS) or an IEEE 802.1X bridge. Alternatively, the EAP server functionality may be co-located in the authenticator although typically, the EAP server functionality is implemented on a separate AAA server with whom the authenticator communicates using an AAA protocol. (The exact AAA communications are outside the scope of this document, however.) The message flow below shows the basic successful full authentication case with the EAP AKA. Theminimum, EAP AKA uses two roundtrips to authorize the user and generate session keys. As in other EAP schemes,firstan identity request/response message pair isexchanged.usually exchanged first. On full authentication, the peer's identity response includes either the user's International Mobile Subscriber Arkko and Haverinen Expires 27 April, 2004 [Page 6] EAP AKA Authentication 27 October, 2003 Identity (IMSI), or a temporary identity (pseudonym) if identity privacy is in effect, as specified in Section 4.1. (As specified in[5],[EAP], the initial identity request is not required, and MAY be bypassed in cases where theauthenticatornetwork can presume the identity, such as when using leased lines, dedicated dial-ups, etc. Please see also Section4.24.1.2 for specification how to obtain the identity via EAP AKA messages.) Next, the EAP server starts the actual AKA protocol by sending an EAP-Request/AKA-Challenge message. EAP AKA packets encapsulate parameters in attributes, encoded in a Type, Length, Value format. The packet format and the use of attributes are specified in Section6.5. The EAP-Request/AKA-Challenge message contains a random number (AT_RAND) andan authorization vectora network authentication token (AT_AUTN), and a message authentication code AT_MAC. The EAP-Request/AKA-Challenge message MAY optionally contain encrypted data, which is used forIdentityidentity privacy and re-authentication support, as described in Section4.3.4.1. The AT_MAC attribute contains a message authentication code covering the EAP packet. The encrypted data is not shown in the figures of this section. Theclientpeer runs the AKA algorithm(perhaps inside an(typically using a USIM) and verifies the AUTN. If this is successful, theclientpeer is talking to a legitimate EAP server and proceeds to send the EAP-Response/AKA- Challenge. This message contains a result parameter that allows the EAP server in turn to authenticate theclient,peer, and the AT_MAC attribute to integrity protect the EAP message. Arkko and Haverinen Expiresin six months27 April, 2004 [Page6]7] EAP AKA AuthenticationJune27 October, 2003ClientPeer Authenticator | | | EAP-Request/Identity | |<------------------------------------------------------| | | | EAP-Response/Identity | | (Includes user's NAI) | |------------------------------------------------------>| | | | +------------------------------+ | | Server runs UMTS algorithms, | | | generates RAND and AUTN. | | +------------------------------+ | | | EAP-Request/AKA-Challenge | | (AT_RAND, AT_AUTN, AT_MAC) | |<------------------------------------------------------| | | +-------------------------------------+ | |ClientPeer runs UMTS algorithms onUSIM,|USIM, | | | verifies AUTN and MAC, derives RES | | | and session key | | +-------------------------------------+ | | | | EAP-Response/AKA-Challenge | | (AT_RES, AT_MAC) | |------------------------------------------------------>| | | | +--------------------------------+ | | Server checks the given RES, | | | and MAC and finds them correct.| | +--------------------------------+ | | | EAP-Success | |<------------------------------------------------------| The second message flow shows how the EAP server rejects theClientPeer due to a failed authentication. The same flow is also used in the GSM compatible mode, except that the AT_AUTN attribute and AT_MAC attribute are not used in the messages. Arkko and Haverinen Expiresin six months27 April, 2004 [Page7]8] EAP AKA AuthenticationJune27 October, 2003ClientPeer Authenticator | | | EAP-Request/Identity | |<------------------------------------------------------| | | | EAP-Response/Identity | | (Includes user's NAI) | |------------------------------------------------------>| | | | +------------------------------+ | | Server runs UMTS algorithms, | | | generates RAND and AUTN. | | +------------------------------+ | | | EAP-Request/AKA-Challenge | | (AT_RAND, AT_AUTN, AT_MAC) | |<------------------------------------------------------| | | +-------------------------------------+ | |ClientPeer runs UMTS algorithms onUSIM,|USIM, | | | possibly verifies AUTN, and sends an| | | invalid response | | +-------------------------------------+ | | | | EAP-Response/AKA-Challenge | | (AT_RES, AT_MAC) | |------------------------------------------------------>| | | | +------------------------------------------+ | | Server checks the given RES and the MAC, | | | and finds one of them incorrct. | | +------------------------------------------+ | | | EAP-Failure | |<------------------------------------------------------| The next message flow shows theclientpeer rejecting the AUTN of the EAP server. Theclientpeer sends an explicit error message (EAP-Response/AKA- Authentication-Reject) to theAuthenticator,EAP server, as usual in AKA when AUTN is incorrect. This allows the EAP server to produce the same error statistics as AKA in general produces in UMTS.Please note that this behavior is different from other EAP/AKA error cases, such as when encountering an incorrect AT_MAC attribute, the client silently discards the EAP/AKA message.Arkko and Haverinen Expiresin six months27 April, 2004 [Page8]9] EAP AKA AuthenticationJune27 October, 2003ClientPeer Authenticator | | | EAP-Request/Identity | |<------------------------------------------------------| | | | EAP-Response/Identity | | (Includes user's NAI) | |------------------------------------------------------>| | | | +------------------------------+ | | Server runs UMTS algorithms, | | | generates RAND and a bad AUTN| | +------------------------------+ | | | EAP-Request/AKA-Challenge | | (AT_RAND, AT_AUTN, AT_MAC) | |<------------------------------------------------------| | | +-------------------------------------+ | |ClientPeer runs UMTS algorithms on USIM | | | and discovers AUTN that can not be | | | verified | | +-------------------------------------+ | | | | EAP-Response/AKA-Authentication-Reject | |------------------------------------------------------>| | | | | | EAP-Failure | |<------------------------------------------------------| The AKA uses shared secrets between theClientPeer and theClient'sPeer's home operator together with a sequence number to actually perform an authentication. In certain circumstances it is possible for the sequence numbers to get out of sequence. Here's what happens then: Arkko and Haverinen Expiresin six months27 April, 2004 [Page9]10] EAP AKA AuthenticationJune27 October, 2003ClientPeer Authenticator | | | EAP-Request/Identity | |<------------------------------------------------------| | | | EAP-Response/Identity | | (Includes user's NAI) | |------------------------------------------------------>| | | | +------------------------------+ | | Server runs UMTS algorithms, | | | generates RAND and AUTN. | | +------------------------------+ | | | EAP-Request/AKA-Challenge | | (AT_RAND, AT_AUTN, AT_MAC) | |<------------------------------------------------------| | | +-------------------------------------+ | |ClientPeer runs UMTS algorithms on USIM | | | and discovers AUTN that contains an | | | inappropriate sequence number | | +-------------------------------------+ | | | | EAP-Response/AKA-Synchronization-Failure | | (AT_AUTS) | |------------------------------------------------------>| | | | +---------------------------+ | | Perform resynchronization | | | Using AUTS and | | | the sent RAND | | +---------------------------+ | | After the resynchronization process has taken place in the server and AAA side, the process continues by the server side sending a new EAP-Request/AKA-Challenge message. In addition to the full authentication scenarios described above, EAP AKA includes a re-authentication procedure, which is specified in Section5. 4. Identity Management This section specifies user identity management and identity privacy support. 4.1. User Identity in EAP-Response/Identity In the beginning of an EAP authentication, the Authenticator issues4.2. Re-authentication is based on keys derived on full authentication. If the peer has maintained state information for re- authentication and wants to use re-authentication, then the peer indicates this by using a specific re-authentication identity instead of the permanent identity or a pseudonym identity. The re- authentication procedure is described in Section 4.2. 4. Operation 4.1. Identity Management 4.1.1. Format, Generation and Usage of Peer Identities Arkko and Haverinen Expires 27 April, 2004 [Page 11] EAP AKA Authentication 27 October, 2003 General In the beginning of EAP authentication, the Authenticator or the EAP server usually issues the EAP-Request/Identity packet to theclient.peer. Theclientpeer responds with EAP-Response/Identity, which contains the user's identity. The formats of these packets are specified in[5]. Arkko and Haverinen Expires in six months [Page 10] EAP AKA Authentication June 2003[EAP]. UMTS subscribers are identified with the International Mobile Subscriber Identity (IMSI)[7].[TS 23.003]. The IMSI is composed of a three digit Mobile Country Code (MCC), a two or three digit Mobile Network Code (MNC) and a not more than 10 digit Mobile Subscriber Identification Number (MSIN). In other words, the IMSI is a string of not more than 15 digits. MCC and MNC uniquely identify theoperator.GSM operator and help identify the AuC from which the authentication vectors need to be retrieved for this subscriber. Internet AAA protocols identify users with the Network Access Identifier (NAI)[4].[RFC 2486]. When used in a roaming environment, the NAI is composed of a username and a realm, separated with "@" (username@realm). The username portion identifies the subscriber within the realm.The AAA nodes useThis section specifies therealm portion ofpeer identity format used in EAP/AKA. In this document, theNAIterm identity or peer identity refers toroute AAA requeststhe whole identity string that is used to identify thecorrect AAA server.peer. The peer identity may include a realmname used in this protocol MAY be chosen byportion. "Username" refers to theoperator and it MAY be a configurable parameter inportion of theEAP/AKA client implementation. In this case,peer identity that identifies theclient is typically configured withuser, i.e. theNAI realm ofusername does not include thehome operator. Operators MAY reserve a specificrealmname forportion. Identity Privacy Support EAP/AKAusers. This convention makes it easy to recognize that the NAI identifies a subscriberincludes optional identity privacy (anonymity) support thatuses EAP/AKA. Such a reserved NAI realm maycan bea useful hintused to hide thefirst authentication methodcleartext permanent identity and thereby touse during method negotiation.make the subscriber's EAP exchanges untraceable to eavesdroppers. Because the permanent identity never changes, revealing it would help observers to track the user. The permanent identity is usually based on the IMSI, which may further help the tracking, because the same identifier may used in other contexts as well. Identity privacy is based on temporary identities, or pseudonyms, which are equivalent to but separate from the Temporary Mobile Subscriber Identities (TMSI) that are used on cellular networks. Please see Section 9.1 for security considerations regarding identity privacy. Username Types in EAP/AKA Identities There are three types ofNAI username portionsusernames inEAP/AKA: non- pseudonymEAP/AKA peer identities: (1) Permanent usernames. For example, 0123456789098765@myoperator.com might be a valid permanentusernames, pseudonym usernamesidentity. In this example, 0123456789098765 is the permanent username. Arkko andre- authenticationHaverinen Expires 27 April, 2004 [Page 12] EAP AKA Authentication 27 October, 2003 (2) Pseudonym usernames. For example, 2s7ah6n9q@myoperator.com might be a valid pseudonym identity. In this example, 2s7ah6n9q is the pseudonym username. (3) Re-authentication usernames. For example, 43953754a@myoperator.com might be a valid re-authentication identity. In this case, 43953754 is the re-authentication username. The first two types of identities are only used on full authentication and the last one only on re-authentication. When the optional identity privacy support is not used, the non-pseudonym permanentusernameidentity isused.used on full authentication. Thenon-pseudonym permanent username MAY be derived from the IMSI.re- authentication exchange is specified in Section 4.2. sername Decoration Inthis case,some environments, the peer may need to decorate the identity by prepending or appending thepermanentusernameMUSTwith a string, in order to indicate supplementary AAA routing information in addition to the NAI realm. (The usage of a NAI realm portion is not considered to be decoration.) Username decoration is out of theformat "0imsi". In other words, the first characterscope ofthethis document. However, it should be noted that usernameisdecoration might prevent thedigit zero (ASCII value 0x30), followed byserver from recognizing a valid username. Hence, although theIMSI. The IMSI is an ASCII string that consists of not more than 15 decimal digits (ASCII values between 0x30 and 0x39) as specifiedpeer MAY use username decoration in[7] Thethe identities the peer includes in EAP-Response/Identity, and the EAP server MAYuse the leading "0" asaccept ahint to try EAP/AKA asdecorated peer username in this message, thefirst authentication method during method negotiation. The EAP/AKApeer or the EAP serverMAY proposeMUST NOT decorate any other peer identities that are used in various EAP/AKAeven ifattributes. Only theleading character was not "0". Alternatively, an implementationidentity used in EAP- Response/Identity maychoosebe decorated. NAI Realm Portion The peer MAY include apermanent username that is not based onrealm portion in theIMSI. In this casepeer identity, as per theselectionNAI format. The use of a realm portion is not mandatory. If a realm is used, theusername, its format,realm MAY be chosen by the operator andits processing isit MAY alocal matter.configurable parameter in the EAP/SIM peer implementation. In this case, theclient implementation MUST NOT prepend any leading characterspeer is typically configured with the NAI realm of the home operator. Operators MAY reserve a specific realm name for EAP/AKA users. This convention makes it easy to recognize that theusername.NAI identifies a UMTS subscriber. Such reserved NAI realm may be useful as a hint as to the first authentication method to use during method negotiation. When theoptional identity privacy supportpeer isused on full authentication,using a pseudonym username instead of theclient MAY usepermanent username, thepseudonym received uponpeer selects theprevious full authentication sequencerealm name portion similarly as it select theusernamerealm portionofwhen using theNAI, as specified in Section 4.3. The client MUST NOT modify the Arkko and Haverinen Expires in six months [Page 11] EAP AKA Authentication June 2003 pseudonym received in AT_NEXT_PSEUDONYM. For example, the client MUST NOT prepend any leading characters in the pseudonym. On re-authentication, the client uses the re-authentication identity received upon the previous authentication sequence as the NAI. A new re-authentication identity may be delivered as part of both full authentication and re-authentication. The client MUST NOT modify the re-authentication identity received in AT_NEXT_REAUTH_ID but the client must use the re-authentication identity as it is. For example, the client MUST NOT prepend any leading characters in the re-authentication identity.permanent username. If no configured realm name is available, theclientpeer MAY derive the realm name from the MCC and MNC portions of the IMSI. A recommended way to derive the realm from the IMSI using the realm 3gppnetwork.org will be specified in[8].[Draft 3GPP TS 23.234]. Alternatively, the realm name may be obtained by concatenating "mnc", the MNC digits of IMSI, ".mcc", the MCC digits of IMSI and ".owlan.org". For example, if the IMSI is 123456789098765, and the Arkko and Haverinen Expires 27 April, 2004 [Page 13] EAP AKA Authentication 27 October, 2003 MNC is three digits long, then the derived realm name is "mnc456.mcc123.owlan.org". The IMSI is a string of digits without any explicit structure, so the peer may not be able to determine the length of the MNC portion. If theclientpeer is not able to determine whether the MNC is two or three digits long, theclientpeer MAY use a 3-digit MNC. If the correct length of the MNC is two, then the MNC used in the realm namewill includeincludes the first digit of MSIN. Hence, when configuring AAA networks for operators that have 2-digitMNCs,MNC's, the network SHOULD also be prepared for realm names with incorrect 3-digitMNCs. 4.2. Obtaining Subscriber Identity via EAP AKA Messages It may be useful to obtain the identityMNC's. Format of thesubscriber through means other than EAP Request/Identity. This can eliminatePermanent Username The non-pseudonym permanent username SHOULD be derived from theneed for an identity request when using EAP method negotiation. IfIMSI. In thiswas not possible then it might not be possible to negotiate EAP/AKA ascase, thesecond method since not all EAP implementations support multiple EAP Identity requests. EAP-Request/AKA-Identity and EAP-Response/AKA-Identity packets maypermanent username MUST beused for obtainingof thesubscriber identity. The EAP-Request/AKA- Challenge, EAP-Response/AKA-Challenge, orformat "0" | IMSI, where thepackets used on re- authentication may optionally includecharacter "|" denotes concatenation. In other words, theAT_CHECKCODE attribute, which enablesfirst character of theprotocol peers to ensureusername is theintegrity ofdigit zero (ASCII value 0x30), followed by theAKA- Identity packets. AT_CHECKCODEIMSI. The IMSI is an ASCII string that consists of not more than 15 decimal digits (ASCII values between 0x30 and 0x39) as specified inSection 7.2. If the[TS 23.003]. The EAP serverhas not received any identity (permanent identity, pseudonym or re-authentication identity) fromMAY use theclient when sendingleading "0" as a hint to try EAP/AKA as the first authentication method during method negotiation, rather than for example EAP/SIM. The EAP/AKArequest, then the EAPserverSHOULD issueMAY propose EAP/AKA even if theEAP-Request/AKA-Identity packetleading character was not "0". Alternatively, an implementation MAY choose a permanent username that is not based on the IMSI. In this case the selection of the username, its format, andincludesits processing is out of theAT_ANY_ID_REQ attribute (specified in Section 8.5). This attribute does not containscope of this document. In this case, the peer implementation MUST NOT prepend anydata. Ifleading characters to the username. Generating Pseudonyms and Re-authentication Identities by the Server Pseudonym usernames and re-authentication identities are generated by the EAP server. The EAP serverhas receivedproduces pseudonym usernames and re-authentication identities in anEAP-Response/Identity packet butimplementation-dependent manner. Only thecontents do not appearEAP server needs to bea validable to map the pseudonym username to the permanent identity,pseudonymor to recognize a re-authenticationidentity,identity. Regardless of construction method, theEAP server SHOULD Arkko and Haverinen Expires in six months [Page 12] EAP AKA Authentication June 2003 issue an EAP-Request/AKA-Identity packet with the AT_ANY_ID_REQ attribute. In some environments the intermediate entities or software layers inpseudonym username MUST conform to theclient may modifygrammar specified for the username portion of an NAI. The re-authentication identitystring inalso MUST conform to theEAP- Response/Identity packet. For example, someNAI grammar. The EAPlayer implementations may cacheservers that theidentity string fromsubscribers of an operator can use MUST ensure that thefirst authenticationpseudonym usernames anddo not obtain a new identity string from the EAP method implementation on subsequent authentication exchanges. Becausetheidentity string isusername portions used inkey derivation, such modifications will result in failed authentication unless there-authentication identities they generate are unique. In any case, it is necessary that permanent usernames, pseudonym usernames and re-authentication usernames are separate and recognizable from each other. It is also desirable that EAPserver uses the AT_ANY_ID_REQ attribute to obtainSIM and EAP AKA user names be recognizable from each other as anunmodified copy ofaid for theidentity string. Therefore, in cases when thereserver to which method to offer. Arkko and Haverinen Expires 27 April, 2004 [Page 14] EAP AKA Authentication 27 October, 2003 In general, it isa possibility that an intermediate element or software layer may modifytheEAP-Response/Identity packet,task of the EAP serverSHOULD always use the EAP-Request/AKA-Identity packet with the AT_ANY_ID_REQ attribute, even if the identity received in EAP- Response/Identity was valid. The AT_ANY_ID_REQ attribute requestsand theclientpolicies of its administrator toinclude the AT_IDENTITY attribute (specified in Section 8.6)ensure sufficient separation in theEAP- Response/AKA-Identity packet. The identity format inusernames. Pseudonym usernames and re-authentication usernames are both produced and used by theAT_IDENTITY attributeEAP server. The EAP server MUST compose pseudonym usernames and re-authentication usernames so that it can recognize if a NAI username is an EAP AKA pseudonym username or an EAP AKA re-authentication username. For instance, when thesame asusernames have been derived from the IMSI, the server could use different leading characters in theType-Data field ofpseudonym usernames and re-authentication usernames (e.g. theEAP- Response/Identity packet. The AT_IDENTITY attribute containspseudonym could begin with apermanent identity,leading "2" character). When mapping apseudonymre-authentication identityorto are-authentication identity. Ifpermanent identity, the serverdoes not support re-authentication, it usesSHOULD only examine theAT_FULLAUTH_ID_REQ attribute insteadusername portion of theAT_ANY_ID_REQ attribute to directly request for a full authenticationre-authentication identity(eitherand ignore thepermanent identity orrealm portion of the identity. Because the peer may fail to save a pseudonymidentity). Ifusername sent to in an EAP-Request/AKA-Challenge, for example due to malfunction, the EAP serverusesSHOULD maintain at least one old pseudonym username in addition to theAT_FULLAUTH_ID_REQ attribute,most recent pseudonym username. Transmitting Pseudonyms and Re-authentication Identities to theclient MUST NOT use aPeer The server transmits pseudonym usernames and re-authenticationidentityidentities to the peer in cipher, using theAT_IDENTITYAT_ENCR_DATA attribute. Theuse of pseudonyms for anonymity is specified in Section 4.3. The use ofEAP-Request/AKA-Challenge message MAY include an encrypted pseudonym username and/or an encrypted re-authenticationidentities is specified in Section 5. The full authentication case is illustratedidentity in thefigure below. In this case, AT_IDENTITY contains eithervalue field of thepermanentAT_ENCR_DATA attribute. Because identityor a pseudonym identity. The same sequence is also used in caseprivacy support and re-authentication are optional to implement, theserver usespeer MAY ignore theAT_FULLAUTH_ID_REQ in EAP-Request/AKA-Identity ArkkoAT_ENCR_DATA attribute andHaverinen Expires in six months [Page 13] EAP AKA Authentication June 2003 Client Authenticator | | | +------------------------------+ | | Server does not have any | | | Subscriber identity available| | | When starting EAP/AKA | | +------------------------------+ | | | EAP-Request/AKA-Identity | | (AT_ANY_ID_REQ) | |<------------------------------------------------------| | | | | | EAP-Response/AKA-Identity | | (AT_IDENTITY) | |------------------------------------------------------>| | | If the client wants to perform full authentication, it includesalways use the permanentidentity or a pseudonym identity in the AT_IDENTITY attribute. The client may use these identitiesidentity. On re-authentication (discussed inresponse to either AT_ANY_ID_REQ or AT_FULLAUTH_ID_REQ. IfSection 4.2), the serveruses the AT_ANY_ID_REQ and the client wants to perform re-authentication, then the client includesMAY include a new encrypted re-authentication identity in theAT_IDENTITY attribute. IfEAP-Request/AKA-Reauthentication message. On receipt of theclient uses its full authentication identity andEAP-Request/AKA-Challenge, theAT_IDENTITY attribute contains a valid permanent identity orpeer MAY decrypt the encrypted data in AT_ENCR_DATA and if avalidpseudonymidentity that the EAP serverusername isable to decode to the permanent identity, then the full authentication sequence proceeds as usual withincluded, theEAP Server issuingpeer may use theEAP-Request/AKA-Challenge message. On re-authentication, ifobtained pseudonym username on theAT_IDENTITY attribute containsnext full authentication. If avalidre-authentication identityand the server agrees on using re- authentication,is included, then theserver proceeds with the re-authentication sequencepeer MAY save it andissues the EAP-Request/AKA-Reauthentication packet,other re-authentication state information, asspecifieddiscussed in Section5.4.2, for the next re- authentication. If theserverpeer does notrecognize the re- authentication identity, then it issuesreceive asecond EAP-Request/AKA- Identity message and includesnew pseudonym username in theAT_FULLAUTH_ID_REQ attribute. In this case, a second EAP/AKA-Identity round trip is required.EAP- Request/AKA-Challenge message, the peer MAY use an old pseudonym username instead of the permanent username on next full authentication. Themessagesusername portions of re-authentication identities are one-time usernames, which the peer MUST NOT re-use. Usage of the Pseudonym by the Peer When the optional identity privacy support is used on full authentication, thefirst roundtrip are ignored. (However all AKA- Identity round trips are included inpeer MAY use thecalculationpseudonym username received as part of theAT_CHECKCODE attribute,previous full authentication sequence asspecified in Section 7.2). This is illustrated below.the username portion of the NAI. The peer MUST NOT modify the pseudonym username Arkko and Haverinen Expiresin six months27 April, 2004 [Page14]15] EAP AKA AuthenticationJune27 October, 2003Client Authenticator | | | +------------------------------+ | | Server does not have any | | | Subscriber identity available| | |received in AT_NEXT_PSEUDONYM. However, as discussed above, the peer MAY need to decorate the username in some environments by appending or prepending the username with a string that indicates supplementary AAA routing information. Whenstarting EAP/AKA | | +------------------------------+ | | | EAP-Request/AKA-Identity | | (AT_ANY_ID_REQ) | |<------------------------------------------------------| | | | | | EAP-Response/AKA-Identity | | (AT_IDENTITY containingusing are-authentication identity) | |------------------------------------------------------>| | | | +------------------------------+ | | Server does not recognize | | | The re-authentication | | | Identity | | +------------------------------+ | | | EAP-Request/AKA-Identity | | (AT_FULLAUTH_ID_REQ) | |<------------------------------------------------------| | | | | | EAP-Response/AKA-Identity | | (AT_IDENTITY withpseudonym username in an environment where afull-auth. Identity) | |------------------------------------------------------>| | | Ifrealm portion is used, theserver recognizespeer concatenates the received pseudonym username with the "@" character and a NAI realm portion. The selection of the NAI realm is discussed above. Usage of the Re-authentication Identity by the Peer On re-authentication, the peer uses the re-authentication identity,but still wants to fall back on full authentication,received as part of theserverprevious authentication sequence. A new re- authentication identity mayissue the EAP-Request/AKA-Challenge packet. In this case, thebe delivered as part of both full authenticationprocedure proceeds as usual. An extra EAP/AKA-Identity round trip is also requiredand re-authentication. The peer MUST NOT modify the username part of the re-authentication identity received in AT_NEXT_REAUTH_ID, except in cases when username decoration is required. Even in these cases, theAT_IDENTITY attribute contains"root" re-authentication username must not be modified, but it may be appended or prepended with another string. 4.1.2. Communicating the Peer Identity to the Server General The peer identity MAY be communicated to the server with the EAP- Response/Identity message. This message MAY contain the permanent identity, a pseudonym identity, or a re-authentication identity. If the peer uses the permanent identitythator a pseudonym identity, which theEAPserverfailsis able todecode. The operationmap to the permanent identity, then the authentication proceeds as discussed inthis casethe overview of Section 3. If the peer uses a re-authentication identity, and the server recognized the identity and agrees on using re-authentication, then a re-authentication exchange isspecifiedperformed, as described in Section4.3. 4.3. Identity Privacy Support EAP/AKA includes optional4.2. The peer identityprivacy (anonymity) support thatcan also beusedtransmitted from the peer tohidethecleartext permanentserver using EAP/AKA messages instead of EAP-Response/Identity. In this case, the server includes an identityand to makerequesting attribute (AT_ANY_ID_REQ, AT_FULLAUTH_ID_REQ or AT_PERMANENT_ID_REQ) in thesubscriber's connections unlinkable to eavesdroppers. Identity privacyEAP-Request/AKA-Identity message, and the peer includes the AT_IDENTITY attribute, which contains the peer's identity, in the EAP-Response/AKA-Identity message. The AT_ANY_ID_REQ attribute isbased on temporary identities, or pseudonyms,a general identity requesting attribute, whichare equivalentthe server uses if it does not specify which kind of an identity the peer should return in AT_IDENTITY. The server uses the AT_FULLAUTH_ID_REQ attribute tobut separate fromrequest either theTemporary Mobile Subscriber Identities (TMSI) that arepermanent identity or a pseudonym identity. The server uses the AT_PERMANENT_ID_REQ attribute to request the peer to send its permanent identity. The EAP-Request/AKA-Challenge, EAP- Response/AKA-Challenge, or the packets used oncellular networks. Please seere-authentication may optionally include the AT_CHECKCODE attribute, which enables the protocol peers to ensure the integrity of the AKA-Identity packets. AT_CHECKCODE is specified in Section12.1 for security considerations concerning identity privacy.0. Arkko and Haverinen Expiresin six months27 April, 2004 [Page15]16] EAP AKA AuthenticationJune27 October, 2003IfThe identityprivacyformat in the AT_IDENTITY attribute is the same as in the EAP-Response/Identity packet (except that identity decoration is notusedallowed). The AT_IDENTITY attribute contains a permanent identity, a pseudonym identity or a re-authentication identity. Obtaining the subscriber identity via EAP/AKA messages is useful if theclientserver does not have anypseudonyms or re-authentication identities available,EAP/AKA peer identity at theclient transmitsbeginning of the EAP/AKA exchange or does not recognize thepermanentidentity the peer used in EAP-Response/Identity. This may happen if, for example, the EAP-Response/Identitypackethas been issued by some EAP method other than EAP/AKA or if intermediate entities or software layers in theAT_IDENTITY attribute. The EAP-Request/AKA-Challenge message MAY include an encrypted pseudonympeer have modified the identity string in thevalue field ofEAP-Response/Identity packet. Also, some EAP layer implementations may cache theAT_ENCR_DATA attribute. The AT_IV and AT_MAC attributes are also used to transportidentity string from thepseudonym tofirst EAP authentication and do not obtain a new identity string from theclient, as described in Section 8.1. BecauseEAP method implementation on subsequent authentication exchanges. As the identityprivacy supportstring isoptionalused in key derivation, any of these cases will result in failed authentication unless the EAP server uses EAP/AKA attributes toimplement,obtain an unmodified copy of theclient MAY ignoreidentity string. Therefore, unless theAT_IV and AT_ENCR_DATA attributes andEAP server can be certain that no intermediate element or software layer has modified the EAP- Response/Identity packet, the EAP server SHOULD alwaystransmituse the EAP/AKA attributes to obtain the identity, even if thepermanentidentity received intheEAP-Response/Identitypacketwas valid. Please note that the EAP/AKA peer andinthe EAP/AKA server only process the AT_IDENTITY attribute and entities that only pass through EAP packets do not process this attribute.On receipt ofHence, if theEAP-Request/AKA-Challenge,EAP server is not co-located in theclient verifiesauthenticator, then theAT_MACauthenticator and other intermediate AAA elements (such as possible AAA proxy servers) will continue to refer to the peer with the original identity from the EAP-Response/Identity packet regardless of whether the AT_IDENTITY attributebefore looking atis used in EAP/AKA to transmit another identity. Choice of Identity for theAT_ENCR_DATA attribute.EAP-Response/Identity Ifthe AT_MACEAP/AKA peer isinvalid,started upon receiving an EAP-Request/Identity message, then theclient MUST silently discardpeer performs theEAP packet.following steps. If theAT_MAC attribute is valid,peer has maintained re-authentication state information and if the peer wants to use re-authentication, then theclient MAY decryptpeer transmits theencrypted datare-authentication identity inAT_ENCR_DATA and useEAP-Response/Identity. Else, if theobtainedpeer has a pseudonymonusername available, then thenext full authentication. Ifpeer transmits theclient does not receive a newpseudonym identity in EAP-Response/Identity. In other cases, the peer transmits the permanent identity in EAP-Request/AKA-Challenge message,Response/Identity. Arkko and Haverinen Expires 27 April, 2004 [Page 17] EAP AKA Authentication 27 October, 2003 Server Operation in theclient MAY use an old pseudonym insteadBeginning of EAP/AKA Exchange If thepermanent identity on next full authentication. TheEAP serverproduces pseudonyms in an implementation-dependent manner. Onlyhas not received any identity (permanent identity, pseudonym identity or re-authentication identity) from the peer when sending the first EAP/AKA request, or if the EAP serverneeds to be able to maphas received an EAP-Response/Identity packet but thepseudonymcontents do not appear tothebe a valid permanentidentity. Regardless of construction method, theidentity, pseudonymMUST conform to the grammar specified foridentity or a re- authentication identity, then theusername portion ofserver MUST request anNAI. In any case, it is necessary that permanent usernames and pseudonyms are separate and recognizable from each other. It is also desirable that EAP SIM and EAP AKA usernames be recognizableidentity fromeach other as an aid forthe peer using one of the methods below. The serverto which method to offer. In general, it issends thetask ofEAP-Request/AKA-Identity message with the AT_PERMANENT_ID_REQ message to indicate that theEAPserverandwants thepolicies of its administratorpeer toensure sufficient separationinclude the permanent identity in theusernames. Pseudonyms, for instance, are both produced and used byAT_IDENTITY attribute of theEAP server.EAP-Response/AKA-Identity message. This is done in the following cases: - TheEAPserverMUST compose pseudonyms so that it can recognize if a NAI username isdoes not support re-authentication or identity privacy. - The server received anEAP AKA pseudonym. For instance, when the usernames have been derived fromidentity that it recognizes as a pseudonym identity but theIMSI,server is not able to map the pseudonymcould begin withidentity to aleading "2" character.permanent identity. Theclient MAY transmit the received pseudonym inserver issues thefirst EAP- Response/IdentityEAP-Request/AKA-Identity packetofwith thenextAT_FULLAUTH_ID_REQ attribute to indicate that the server wants the peer to include a full authenticationwithidentity (pseudonym identity or permanent identity) in theEAP server. The client concatenatesAT_IDENTITY attribute of thereceived pseudonym withEAP- Response/AKA-Identity message. This is done in the"@" characterfollowing cases: - The server does not support re-authentication and theNAI realm portion.server supports identity privacy - Theclient selects the realm name portion similarly asserver received an identity that itselect the realm name portion when using the permanent identity. Ifrecognizes as a re- authentication identity but theEAPserversuccessfully decodes the pseudonym received inis not able to map theEAP-Response/Identity packetre- authentication identity to aknown clientpermanentidentity,identity The server issues theauthentication proceedsEAP-Request/AKA-Identity packet with theEAP-Request/AKA-Challenge message as usual. Arkko and Haverinen Expires in six months [Page 16] EAP AKA Authentication June 2003 Because the client may fail to save a pseudonym sent to in an EAP- Request/AKA-Challenge, for example due to malfunction, the EAP server SHOULD maintain at least one old pseudonym in additionAT_ANY_ID_REQ attribute to indicate that themost recent pseudonym. If the EAPserverrequestswants theclientpeer to includeitsan identity in theEAP-Response/AKA-Identity packet, as specified in Section 4.2,AT_IDENTITY attribute of theclient MAY transmitEAP- Response/SIM/Start message, and thereceived pseudonymserver does not indicate any preferred type for the identity. This is done in other cases, such as when theAT_IDENTITY attribute. Ifserver does not have any identity, or theEAPserversuccessfully decodesdoes not recognize thepseudonym toformat of aknown identity, thenreceived identity. Processing of EAP-Request/AKA-Identity by theauthentication proceedsPeer Upon receipt of an EAP-Request/AKA-Identity message, the peer MUST perform the following steps. If the EAP-Request/AKA-Identity includes AT_PERMANENT_ID_REQ the peer MUST either respond with EAP-Response/AKA-Identity and include the permanent identity in AT_IDENTITY or respond with EAP-Request/AKA-ChallengeResponse/AKA-Client-Error packetas usual.with code "unable to process packet". Arkko and Haverinen Expires 27 April, 2004 [Page 18] EAP AKA Authentication 27 October, 2003 If theEAP server fails to decodeEAP-Request/AKA-Identity includes AT_FULL_AUTH_ID_REQ, and if thepseudonym topeer has aknown identity,pseudonym available, then theEAP server requestspeer SHOULD respond with EAP-Response/AKA-Identity and includes thepermanentpseudonym identity(non-pseudonym identity) by including the AT_PERMANENT_ID_REQ attribute (Section 8.5)in AT_IDENTITY. If theEAP-Request/AKA-Identity message. Because another EAP server maypeer does not havegenerated the pseudonym usingadifferent coding scheme, the EAP server SHOULD use AT_PERMANENT_ID_REQ also in casespseudonym when itdoes not recognizereceives this message, then theformat ofpeer MUST either respond with EAP- Response/AKA-Identity and include theclient identity.permanent identity in AT_IDENTITY or respond with EAP-Response/AKA-Client-Error packet with code "unable to process packet." TheEAP server issuesPeer MUST NOT use a re- authentication identity in the AT_IDENTITY attribute. If the EAP-Request/AKA-Identitymessage also inincludes AT_ANY_ID_REQ, and if thecase when it receivedpeer has maintained re-authentication state information and theundecodable pseudonym in AT_IDENTITY includedpeer wants to use re-authentication, then the peer responds with EAP- Response/AKA-Identity and includes the re-authentication identity in AT_IDENTITY. Else, if theEAP-Response/AKA-Identity packet. In this case,peer has a pseudonym identity available, then the peer responds with EAP-Response/AKA-Identity and includes the pseudonym identity in AT_IDENTITY. Else, the peer responds with EAP-Response/AKA-Identity and includes the permanent identity in AT_IDENTITY. An EAP/AKA exchange may include several EAP/AKA-Identity rounds. The server may issue a second EAP-Request/AKA-Identity, if it was not able to recognize the identity the peer used in the previous AT_IDENTITY attribute. At most three EAP/AKA-Identityround triprounds can be used. AT_ANY_ID_REQ can only be used in the first EAP-Request/AKA- Identity, in other words AT_ANY_ID_REQ MUST NOT be used in the second or third EAP-Request/AKA-Identity. AT_FULLAUTH_ID_REQ MUST NOT be used if the previous EAP-Request/AKA-Identity included AT_PERMANENT_ID_REQ. The peer operation in cases when it receives an unexpected attribute isrequired. Aspecified in Section 4.4.1. Attacks against Identity Privacy The section above specifies two possible ways the peer can operate upon receipt of AT_PERMANENT_ID_REQ. This is because a received AT_PERMANENT_ID_REQ does not necessarily originate from the valid network, but an active attacker may transmit anEAP- Request/AKA-IdentityEAP-Request/AKA- Identity packet with an AT_PERMANENT_ID_REQ attribute to theclient,peer, in an effort to find out the true identity of the user.The client MAY silently discard any EAP-Request/AKA-Identity messages that include AT_PERMANENT_ID_REQ for a while in order to wait for an EAP-Request/AKA-Identity packet without AT_PERMANENT_ID_REQ.If thevalid network sentpeer does not want to reveal its permanent identity, then themessage,peer sends themessage will be retransmitted, soEAP-Response/AKA-Client-Error packet with theclient can reconsider replyingerror code "unable to process packet", and themessage when it receives a retransmission.authentication exchange terminates. Basically, there are two different policies that theclientpeer can employ with regard to AT_PERMANENT_ID_REQ. A "conservative"clientpeer assumes that the network is able to maintain pseudonyms robustly. Therefore, if a conservativeclientpeer has apseudonym,pseudonym username, theclient silently ignorespeer responds with EAP-Response/AKA-Client-Error to the EAP packet with AT_PERMANENT_ID_REQ, because theclientpeer believes that the valid network is able todecodemap thepseudonym.pseudonym identity to the peer's permanent identity. (Alternatively, the conservativeclientpeer mayrespond toaccept AT_PERMANENT_ID_REQ in certain circumstances, for example if the pseudonym was received a long time ago.) The benefit of this policy is that it protects theclientpeer against active attacks on anonymity. On Arkko and Haverinen Expires 27 April, 2004 [Page 19] EAP AKA Authentication 27 October, 2003 the other hand, a "liberal"clientpeer always accepts the AT_PERMANENT_ID_REQ and responds with the permanent identity. The benefit of this policy is that it works even if the valid network sometimes loses pseudonyms and is not able todecodemap them to the permanent identity.The value fieldProcessing of AT_IDENTITY by theAT_PERMANENT_ID_REQ does not contain any data butServer When theattribute is included to requestserver receives an EAP-Response/AKA-Identity message with theclientAT_IDENTITY (in response toincludetheAT_IDENTITY attribute (Section 8.6) withserver's identity requesting attribute), the server MUST operate as follows. If the server used AT_PERMANENT_ID_REQ, and if the AT_IDENTITY does not contain a valid permanentArkkoidentity, then the server sends EAP Failure andHaverinen Expires in six months [Page 17]the EAPAKA Authentication June 2003 authenticationexchange terminates. If the server recognizes the permanent identityinand is able to continue, then theEAP-Response/AKA-Identity message. In this case,server proceeds with full authentication by sending EAP-Request/AKA- Challenge. If the server used AT_FULLAUTH_ID_REQ, and if AT_IDENTITYattributecontainsthe client'sa valid permanent identityin the clear. Please noteor a pseudonym identity that theEAP/AKA client and the EAP/AKAserveronly processcan map to a valid permanent identity, then the server proceeds with full authentication by sending EAP-Request/AKA-Challenge. If AT_IDENTITYattribute. Entitiescontains a pseudonym identity thatonly pass EAP packets through do not process this attribute. Hence, iftheEAPserver is notco-located in the authenticator, then the authenticator and other intermediate AAA elements (such as possible AAA proxy servers) will continueable torefermap tothe client with the originala valid permanent identity, or an identityfromthat theEAP-Response/Identity packet regardless ifserver is not able to recognize or classify, then thedecoding fails inserver sends EAP-Request/ AKA-Identity with AT_PERMANENT_ID_REQ. If theEAP server. The figure below illustratesserver used AT_ANY_ID_REQ, and if thecase whenAT_IDENTITY contains a valid permanent identity or a pseudonym identity that theEAPserverfailscan map todecodea valid permanent identity, then thepseudonym included inserver proceeds with full authentication by sending EAP-Request/ AKA-Challenge. If theEAP-Response/Identity packet. Client Authenticator | | | EAP-Request/Identity | |<------------------------------------------------------| | | | EAP-Response/Identity | | (Includesserver used AT_ANY_ID_REQ, and if AT_IDENTITY contains apseudonym) | |------------------------------------------------------>| | | | +------------------------------+ | | Server fails to decode the | | | Pseudonym. | | +------------------------------+ | | | EAP-Request/AKA-Identity | | (AT_PERMANENT_ID_REQ) | |<------------------------------------------------------| | | | | | EAP-Response/AKA-Identity | | (AT_IDENTITY with permanent identity) | |------------------------------------------------------>| | | Ifvalid re-authentication identity and the serverrecognizes the permanent identity,agrees on using re- authentication, then theauthentication sequenceserver proceedsas usualwiththe EAP Server issuing the EAP-Request/AKA-Challenge message.re-authentication by sending EAP-Request/ AKA-Reauthentication (Section 4.2). If the serverdoes not recognizeused AT_ANY_ID_REQ, and if thepermanentpeer sent an EAP- Response/AKA-Identity with AT_IDENTITY that contains an identity that the server recognizes as a re-authentication identity,or ifbut the server is not able tocontinuemap theauthentication exchangeidentity to a permanent identity, then the server sends EAP-Request/AKA-Identity with AT_FULLAUTH_ID_REQ. If theclient after receivingserver used AT_ANY_ID_REQ, and if AT_IDENTITY contains a valid re-authentication identity, which the server is able to map to a permanent identity, and if the server does not want to use re- authentication, then the serverissuesproceeds with full authentication by sending EAP-Request/AKA-Challenge. If theEAP Failure packetserver used AT_ANY_ID_REQ, and AT_IDENTITY contains an identity that theauthentication exchange terminates. The figure below illustrates the case whenserver recognizes as a pseudonym identity but theEAPserverfailsis not able todecodemap the pseudonymincluded in the AT_IDENTITY attribute.identity to a permanent Arkko and Haverinen Expiresin six months27 April, 2004 [Page18]20] EAP AKA AuthenticationJune27 October, 2003Client Authenticator | | | +------------------------------+ | | Server does not have any | | | Subscriber identity available| | | When starting EAP/AKA | | +------------------------------+ | | |identity, then the server sends EAP-Request/AKA-Identity| | (AT_ANY_ID_REQ) | |<------------------------------------------------------| | | | | |EAP-Response/AKA-Identity | |(AT_IDENTITYwitha pseudonym identity) | |------------------------------------------------------>| | |AT_PERMANENT_ID_REQ. If the server used AT_ANY_ID_REQ, and AT_IDENTITY contains an identity that the server is not able to recognize or classify, then the server sends EAP-Request/AKA-Identity with AT_FULLAUTH_ID_REQ. 4.1.3. Message Sequence Examples (Informative) This section contains non-normative message sequence examples to illustrate how the peer identity can be communicated to the server. sage of AT_ANY_ID_REQ Obtaining the peer identity with EAP/AKA attributes is illustrated in the figure below. Peer Authenticator | | | +------------------------------+ | | Serverfails to decode thedoes not have any | | |Pseudonym in AT_IDENTITYSubscriber identity available| | | When starting EAP/AKA | | +------------------------------+ | | | EAP-Request/AKA-Identity | |(AT_PERMANENT_ID_REQ)(AT_ANY_ID_REQ) | |<------------------------------------------------------| | | | | | EAP-Response/AKA-Identity | |(AT_IDENTITY with permanent identity)(AT_IDENTITY) | |------------------------------------------------------>| | |In the worst case, there are three EAP/AKA-Identity round trips before the server has obtained an acceptable identity:all Back onthe first round, the client sends its re-authentication identity in AT_IDENTITY. The server fails to accept it and request a full authentication identity with a second EAP-Request/AKA-Identity. The client responds with a pseudonym identity in AT_IDENTITY.Full Authentication Theserver fails to decodefigure below illustrates thepseudonym and has to issue a third EAP- Request/AKA-Identity, including AT_PERMANENT_ID_REQ. Finally,case when the serveracceptsdoes not recognize theclient's EAP-Response/AKA-Identity withre-authentication identity theAT_IDENTITY attribute and proceeds with full authentication. This is illustratedpeer used inthe figure below.AT_IDENTITY. Arkko and Haverinen Expiresin six months27 April, 2004 [Page19]21] EAP AKA AuthenticationJune27 October, 2003ClientPeer Authenticator | | | +------------------------------+ | | Server does not have any | | | Subscriber identity available| | | When starting EAP/AKA | | +------------------------------+ | | | EAP-Request/AKA-Identity | | (AT_ANY_ID_REQ) | |<------------------------------------------------------| | | | | | EAP-Response/AKA-Identity | | (AT_IDENTITYwithcontaining a re-authentication identity) | |------------------------------------------------------>| | | | +------------------------------+ | | Server does notacceptrecognize | | | The re-authentication | | | Identity | | +------------------------------+ | | | EAP-Request/AKA-Identity | | (AT_FULLAUTH_ID_REQ) | |<------------------------------------------------------| | ||EAP-Response/AKA-Identity | |(AT_IDENTITY with a pseudonym identity) | |------------------------------------------------------>|| | |+------------------------------+EAP-Response/AKA-Identity | |Server fails to decode the(AT_IDENTITY with a full-auth. Identity) | |------------------------------------------------------>| | |Pseudonym in AT_IDENTITYIf the server recognizes the re-authentication identity, but still wants to fall back on full authentication, the server may issue the EAP-Request/AKA-Challenge packet. In this case, the full authentication procedure proceeds as usual. Requesting the Permanent Identity 1 The figure below illustrates the case when the EAP server fails to decode a pseudonym identity included in the EAP-Response/Identity packet. Arkko and Haverinen Expires 27 April, 2004 [Page 22] EAP AKA Authentication 27 October, 2003 Peer Authenticator | | | EAP-Request/Identity | |<------------------------------------------------------| | | | EAP-Response/Identity | | (Includes a pseudonym) | |------------------------------------------------------>| | | | +------------------------------+ | | Server fails to decode the | | | Pseudonym. | | +------------------------------+ | | | EAP-Request/AKA-Identity | | (AT_PERMANENT_ID_REQ) | |<------------------------------------------------------| | | | | | EAP-Response/AKA-Identity | | (AT_IDENTITY with permanent identity) | |------------------------------------------------------>| | |AfterIf thelast EAP-Response/AKA-Identity message,server recognizes the permanent identity, then thefullauthentication sequence proceeds asusual. Ifusual with the EAP Serverrecognizes the permanent identity and is able to proceed, the server issuesissuing the EAP-Request/AKA-Challenge message.IfRequesting theserver does not recognizePermanent Identity 2 The figure below illustrates thepermanent identity, or ifcase when the EAP serveris not ablefails tocontinue the authentication exchange with the client after receiving the permanent identity, then the server issuesdecode theEAP Failure packet andpseudonym included in theauthentication exchange terminates.AT_IDENTITY attribute. Arkko and Haverinen Expiresin six months27 April, 2004 [Page20]23] EAP AKA AuthenticationJune27 October, 20035. Re-authentication In some environments, EAP authentication may be performed frequently. Because the EAP AKA full authentication procedure makes use of the UMTS AKA algorithms, and it therefore requires fresh authentication vectors from the Authentication Centre, the full authentication procedure may result in many network operations when used very frequently. Therefore, EAP AKA includes a more inexpensive re-authentication procedure thatPeer Authenticator | | | +------------------------------+ | | Server does notmake use ofhave any | | | Subscriber identity available| | | When starting EAP/AKA | | +------------------------------+ | | | EAP-Request/AKA-Identity | | (AT_ANY_ID_REQ) | |<------------------------------------------------------| | | | | |EAP-Response/AKA-Identity | |(AT_IDENTITY with a pseudonym identity) | |------------------------------------------------------>| | | | | | +------------------------------+ | | Server fails to decode the | | | Pseudonym in AT_IDENTITY | | +------------------------------+ | | | EAP-Request/AKA-Identity | | (AT_PERMANENT_ID_REQ) | |<------------------------------------------------------| | | | | | EAP-Response/AKA-Identity | | (AT_IDENTITY with permanent identity) | |------------------------------------------------------>| | | Three EAP/AKA-Identity Round Trips The figure below illustrates the case with three EAP/AKA-Identity round trips. Arkko and Haverinen Expires 27 April, 2004 [Page 24] EAP AKA Authentication 27 October, 2003 Peer Authenticator | | | +------------------------------+ | | Server does not have any | | | Subscriber identity available| | | When starting EAP/AKA | | +------------------------------+ | | | EAP-Request/AKA-Identity | | (AT_ANY_ID_REQ) | |<------------------------------------------------------| | | | EAP-Response/AKA-Identity | | (AT_IDENTITY with re-authentication identity) | |------------------------------------------------------>| | | | +------------------------------+ | | Server does not accept | | | The re-authentication | | | Identity | | +------------------------------+ | | | EAP-Request/AKA-Identity | | (AT_FULLAUTH_ID_REQ) | |<------------------------------------------------------| | | |EAP-Response/AKA-Identity | |(AT_IDENTITY with a pseudonym identity) | |------------------------------------------------------>| | | | +------------------------------+ | | Server fails to decode the | | | Pseudonym in AT_IDENTITY | | +------------------------------+ | | | EAP-Request/AKA-Identity | | (AT_PERMANENT_ID_REQ) | |<------------------------------------------------------| | | | | | EAP-Response/AKA-Identity | | (AT_IDENTITY with permanent identity) | |------------------------------------------------------>| | | After the last EAP-Response/AKA-Identity message, the full authentication sequence proceeds as usual. 4.2. Re-authentication 4.2.1. General In some environments, EAP authentication may be performed frequently. Because the EAP AKA full authentication procedure makes Arkko and Haverinen Expires 27 April, 2004 [Page 25] EAP AKA Authentication 27 October, 2003 use of the UMTS AKA algorithms, and it therefore requires fresh authentication vectors from the Authentication Centre, the full authentication procedure may result in many network operations when used very frequently. Therefore, EAP AKA includes a more inexpensive re-authentication procedure that does not make use of the UMTS AKA algorithms and does not need new vectors from the Authentication Centre. Re-authentication is optional to implement for both the EAP AKA server andclient.peer. On each EAP authentication, either one of the entities may also fall back on full authentication if they do not want to use re-authentication. Re-authentication is based on the keys derived on the preceding full authentication. The same K_aut and K_encr keys as in full authentication are used to protect EAP AKA packets and attributes, and the original Master Key from full authentication is used to generate a fresh Master Session Key, as specified in Section10.4.5. On re-authentication, theclientpeer protects against replays with an unsigned 16-bit counter, included in the AT_COUNTER attribute. On full authentication, both the server and theclientpeer initialize the counter to one. The counter value of at least one is used on the first re-authentication. On subsequent re-authentications, the counter MUST be greater than on any of the previous re- authentications. For example, on the second re-authentication, counter value is two or greater etc. The AT_COUNTER attribute is encrypted. The server includes an encrypted server nonce (AT_NONCE_S) in the re-authentication request. The AT_MAC attribute in theclient'speer's response is calculated over NONCE_S to provide a challenge/response authentication scheme. The NONCE_S also contributes to the new Master Session Key.As discussed in Section 4.3, in some environments the client may assume thatBoth thenetwork can reliably store pseudonymspeer andtherefore the client may fail to respond totheAT_PERMANENT_ID_REQ attribute. The networkserver SHOULDstore pseudonyms onhave an upper limit for the number of subsequent re-authentications allowed before areliable database.full authentication needs to be performed. Becauseone ofa 16-bit counter is used in re-authentication, theobjectivestheoretical maximum number ofthe re-authentication procedurere- authentications isto reduce load onreached when thenetwork,counter value reaches 0xFFFF. In order to use re-authentication, there-authentication procedure does not requirepeer and the EAP server need tocontact a reliable database. Therefore,store the following values: Master Key, latest counter value and the next re-authentication identity. K_aut, K_encr may either be stored or derived again from MK. The server may also need to store the permanent identity of the user. 4.2.2. Re-authentication Identity The re-authentication procedure makes use of separate re- authentication user identities. Pseudonyms and the permanent identity are reserved for full authentication only.The network does not need to store re-authentication identities as carefully as pseudonyms.If are-authenticationre- authentication identity is lost and the network does not recognize it, the EAP server can fall back on full authentication. Arkko and Haverinen Expiresin six months27 April, 2004 [Page21]26] EAP AKA AuthenticationJune27 October, 2003 If the EAP server supports re-authentication, it MAY include the skippable AT_NEXT_REAUTH_ID attribute in the encrypted data of EAP- Request/AKA-Challenge message. This attribute contains a new re- authentication identity for the next re-authentication. Theclientpeer MAY ignore this attribute, in which case it will use full authentication next time. If theclientpeer wants to usere- authentication,re-authentication, it uses this re-authentication identity on next authentication. Even if theclientpeer has a re-authentication identity, theclientpeer MAY discard there-authenticationre- authentication identity and use a pseudonym or the permanent identity instead, in which case full authenticationwillMUST be performed.TheIn environments where a real portion is needed in the peer identity, the re-authentication identity received in AT_NEXT_REAUTH_IDcontainsMUST contain boththea username portion andthea realmportion ofportion, as per theNetwork Access Identifier.NAI format. The EAP Server can choose an appropriate realm part in order to have the AAA infrastructure route subsequent re-authentication related requests to the same AAA server. For example, the realm part MAY include a portion that is specific to the AAA server. Hence, it is sufficient tostorestore the context required for re-authentication in the AAA server that performed the full authentication. The peer MAY use the re-authentication identity in the EAP- Response/Identity packet or, in response to server's AT_ANY_ID_REQ attribute, the peer MAY use the re-authentication identity in the AT_IDENTITY attribute of the EAP-Response/AKA-Identity packet. The peer MUST NOT modify the username portion of the re-authentication identity, but the peer MAY modify the realm portion or replace it with another realm portion. Even if the peer uses a re-authentication identity, the server may want to fall back on full authentication, for example because the server does not recognize the re-authentication identity or does not want to use re-authentication. If the server was able to decode the re-authentication identity to the permanent identity, the server issues the EAP-Request/AKA-Challenge packet to initiate full authentication. If the server was not able to recover the peer's identity from the re-authentication identity, the server starts the full authentication procedure by issuing an EAP-Request/AKA-Identity packet. This packet always starts a full authentication sequence if it does not include the AT_ANY_ID_REQ attribute. 4.2.3. Re-authentication Procedure The following figure illustrates the re-authentication procedure. Encrypted attributes are denoted with '*'. The peer uses its re- authentication identity in the EAP-Response/Identity packet. As discussed above, an alternative way to communicate the re- authentication identity to the server is for the peer to use the AT_IDENTITY attribute in the EAP-Response/AKA-Identity message. This latter case is not illustrated in the figure below, and it is only possible when the server requests the peer to send its identity by including thecontext required for re-authenticationAT_ANY_ID_REQ attribute in theAAA server that performedEAP-Request/AKA- Identity packet. Arkko and Haverinen Expires 27 April, 2004 [Page 27] EAP AKA Authentication 27 October, 2003 If thefull authentication. The client MAY useserver recognizes the re-authentication identityinand agrees on using re-authentication, then the server sends the EAP-Response/IdentityRequest/AKA-Reauthentication packetor, in responsetoserver's AT_ANY_ID_REQthe peer. This packet MUST include the encrypted AT_COUNTER attribute, with a fresh counter value, theclient MAY useencrypted AT_NONCE_S attribute that contains a random number chosen by there-authentication identity inserver, theAT_IDENTITYAT_ENCR_DATA and the AT_IV attributes used for encryption, and the AT_MAC attributeofthat contains a message authentication code over theEAP-Response/AKA-Identitypacket.Even ifThe packet MAY also include an encrypted AT_NEXT_REAUTH_ID attribute that contains theclient uses anext re-authenticationidentity, the server may want to fall back on full authentication, for example becauseidentity. Re-authentication identities are one-time identities. If theserverpeer does notrecognize thereceive a new re-authentication identity, it MUST use either the permanent identity ordoes not want to use re-authentication. Ifa pseudonym identity on theserver was ablenext authentication todecodeinitiate full authentication. The peer verifies that the counter value is fresh (greater than any previously used value). The peer also verifies that AT_MAC is correct. The peer MAY save the next re-authentication identitytofrom thepermanent identity,encrypted AT_NEXT_REAUTH_ID for next time. If all checks are successful, theserver issuespeer responds with theEAP-Request/AKA-Challenge packet to initiate full authentication. IfEAP-Response/AKA- Reauthentication packet, including the AT_COUNTER attribute with the same counter value and the AT_MAC attribute. The serverwas not able to recoververifies theclient's identity fromAT_MAC attribute and also verifies that there-authentication identity,counter value is theserver startssame that it used in thefull authentication procedure by issuing an EAP-Request/AKA-IdentityEAP-Request/AKA- Reauthentication packet.This packet always starts a full authentication sequence if it does not includeIf these checks are successful, theAT_ANY_ID_REQ attribute. (As specified in Sections 4.2re- authentication has succeeded and4.3,the serverMAY use AT_ANY_ID_REQ, AT_FULLAUTH_ID_REQ or AT_PERMANENT_ID_REQ attributes if it does not knowsends theclient's identity.) BothEAP-Success packet to theclientpeer. Arkko and Haverinen Expires 27 April, 2004 [Page 28] EAP AKA Authentication 27 October, 2003 Peer Authenticator | | | EAP-Request/Identity | |<------------------------------------------------------| | | | EAP-Response/Identity | | (Includes a re-authentication identity) | |------------------------------------------------------>| | | | +--------------------------------+ | | Server recognizes theserver SHOULD have an upper limit foridentity | | | and agrees on using fast | | | re-authentication | | +--------------------------------+ | | | EAP-Request/AKA-Reauthentication | | (AT_IV, AT_ENCR_DATA, *AT_COUNTER, | | *AT_NONCE_S, *AT_NEXT_REAUTH_ID, AT_MAC) | |<------------------------------------------------------| | | | | +-----------------------------------------------+ | | Peer verifies AT_MAC and thenumberfreshness ofsubsequent re-authentications allowed before a full| | | the counter. Peer MAY store the new re- | | | authenticationneeds to be performed. Because a 16-bitidentity for next re-auth. | | +-----------------------------------------------+ | | | | EAP-Response/AKA-Reauthentication | | (AT_IV, AT_ENCR_DATA, *AT_COUNTER with same value, | | AT_MAC) | |------------------------------------------------------>| | | | +--------------------------------+ | | Server verifies AT_MAC and | | | the counter | | +--------------------------------+ | | | EAP-Success | |<------------------------------------------------------| | | 4.2.4. Re-authentication Procedure when Counter isused in re-authentication,Too Small If thetheoretical maximum number of re- authentications is reached whenpeer does not accept the counter valuereaches 0xFFFF. In order to use re-authentication,of EAP-Request/AKA- Reauthentication, it indicates theclient andcounter synchronization problem by including the encrypted AT_COUNTER_TOO_SMALL in EAP-Response/AKA- Reauthentication. The serverneedresponds with EAP-Request/AKA-Challenge tostore the following values: original Master Key, K_aut, K_encr, latest counter value andinitiate a normal full authentication procedure. This is illustrated in thenext re-authentication identity. Thefollowingfigure illustrates the re-authentication procedure.figure. Encrypted attributes are denoted with '*'.The client uses its re-Arkko and Haverinen Expiresin six months27 April, 2004 [Page22]29] EAP AKA AuthenticationJune27 October, 2003 Peer Authenticator | | | EAP-Request/Identity | |<------------------------------------------------------| | | | EAP-Response/Identity | | (Includes a re-authentication identity) | |------------------------------------------------------>| | | | EAP-Request/AKA-Reauthentication | | (AT_IV, AT_ENCR_DATA, *AT_COUNTER, | | *AT_NONCE_S, *AT_NEXT_REAUTH_ID, AT_MAC) | |<------------------------------------------------------| | | +-----------------------------------------------+ | | AT_MAC is valid but the counter is not fresh. | | +-----------------------------------------------+ | | | | EAP-Response/AKA-Reauthentication | | (AT_IV, AT_ENCR_DATA, *AT_COUNTER_TOO_SMALL, | | *AT_COUNTER, AT_MAC) | |------------------------------------------------------>| | | | +----------------------------------------------+ | | Server verifies AT_MAC but detects | | | That peer has included AT_COUNTER_TOO_SMALL| | +----------------------------------------------+ | | | EAP-Request/AKA-Challenge | |<------------------------------------------------------| | | +---------------------------------------------------------------+ | Normal full authenticationidentity infollows. | +---------------------------------------------------------------+ | | In theEAP-Response/Identity packet. As discussedfigure above,an alternative way to communicatethere- authentication identityfirst three messages are similar to theserver is forbasic re-authentication case. When theclient to usepeer detects that theAT_IDENTITYcounter value is not fresh, it includes the AT_COUNTER_TOO_SMALL attribute inthe EAP-Response/AKA-Identity message.EAP-Response/AKA-Reauthentication. Thislatter caseattribute doesn't contain any data but it isnot illustrated ina request for the server to initiate full authentication. In this case, the peer MUST ignore thefigure below, and it is only possible whencontents of theserver requestsserver's AT_NEXT_REAUTH_ID attribute. On receipt of AT_COUNTER_TOO_SMALL, theclient to send its identity by includingserver verifies AT_MAC and verifies that AT_COUNTER contains theAT_ANY_ID_REQ attributesame as in theEAP-Request/AKA- IdentityEAP- Request/AKA-Reauthentication packet. If not, the serverrecognizessilently discards there-authentication identity and agreesEAP-Response/AKA-Reauthentication packet. If all checks onusing re-authentication, thentheserver sendspacket are successful, the server transmits a EAP-Request/AKA-ReauthenticationRequest/AKA-Challenge packettoand theclient. This packet MUST includefull authentication procedure is performed as usual. Since theencrypted AT_COUNTER attribute, with a fresh counter value,server already knows theencrypted AT_NONCE_S attribute that contains a random number chosen bysubscriber identity, it MUST NOT use theserver,EAP-Request/AKA-Identity packet to request theAT_ENCR_DATAidentity. Arkko andthe AT_IV attributesHaverinen Expires 27 April, 2004 [Page 30] EAP AKA Authentication 27 October, 2003 4.3. EAP/AKA Notifications The EAP-Request/Notification, specified in [EAP], can be usedfor encryption, and the AT_MAC attribute that containsto convey a displayable messageauthentication code overfrom thepacket. The packet MAY also include an encrypted AT_NEXT_REAUTH_ID attribute that containsEAP server to thenext re-authentication identity. Re-authentication identitiespeer. Because these messages areone-time identities. If the client does not receive a new re-authentication identity,textual messages, itMUST use eithermay be hard for thepermanent identity or a pseudonym identity onpeer to present them in thenext authenticationuser's preferred language. Therefore, EAP/AKA uses a separate EAP/AKA message subtype toinitiate full authentication. The client verifies thattransmit localizable notification codes instead of thecounter value is fresh (greater than any previously used value). The client also verifies that AT_MAC is correct.EAP- Request/Notification packet. TheclientEAP server MAYsaveissue an EAP-Request/AKA-Notification packet to thenext re-authentication identity frompeer. The peer MAY show a notification message to theencrypted AT_NEXT_REAUTH_ID for next time. If all checks are successful,user and theclient responds withpeer MUST respond to the EAP server with an EAP-Response/AKA-ReauthenticationNotification packet,including the AT_COUNTER attribute witheven if thesame counter value andpeer did not recognize theAT_MAC attribute.notification code. Theserver verifiesnotification code is a 16-bit number. The most significant bit is called theAT_MAC attribute and also verifies thatFailure bit (F bit). The F bit specifies whether thecounter value isnotification implies failure. The code values with thesame that itF bit set to zero (code values 0...32767) are usedinon unsuccessful cases. The receipt of a notification code from this range implies failed authentication, so theEAP-Request/AKA- Reauthentication packet. If these checks are successful,peer can use there- authentication has succeeded andnotification as a failure indication. After receiving the EAP-Response/AKA-Notification for these notification codes, the serversendsMUST send theEAP-Success packetEAP-Failure packet. The receipt of a notification code with the F bit set to one (values 32768...65536) does not imply failure, so theclient. Arkko and Haverinen Expires in six months [Page 23] EAP AKA Authentication June 2003 Client Authenticator | | | EAP-Request/Identity | |<------------------------------------------------------| | | | EAP-Response/Identity | | (Includespeer MUST NOT change its state when it receives such are-authentication identity) | |------------------------------------------------------>| | | | +--------------------------------+ | | Server recognizesnotification. (This version of the protocol does not specify any notification codes with the F bit set to one.) The second most significant bit of theidentity | | | and agrees on using fast | | | re-authentication | | +--------------------------------+ | | | EAP-Request/AKA-Reauthentication | | (AT_IV, AT_ENCR_DATA, *AT_COUNTER, | | *AT_NONCE_S, *AT_NEXT_REAUTH_ID, AT_MAC) | |<------------------------------------------------------| | | | | +-----------------------------------------------+ | | Client verifies AT_MAC andnotification code is called thefreshnessPhase bit (P bit). It specifies at which phase of| | |thecounter. Client MAY storeEAP/AKA exchange thenew re- | | |notification can be used. If the P bit is set to zero, the notification can only be used after the EAP/AKA-Challenge round in full authenticationidentity for next re-auth. | | +-----------------------------------------------+ | | | | EAP-Response/AKA-Reauthentication | | (AT_IV, AT_ENCR_DATA, *AT_COUNTER with same value, | | AT_MAC) | |------------------------------------------------------>| | | | +--------------------------------+ | | Server verifiesor the EAP/AKA-Reauthentication round in reautentication. For these notifications, the AT_MAC attribute MUST be included in both EAP-Request/AKA-Notification and| | | the counter | | +--------------------------------+ | | | EAP-Success | |<------------------------------------------------------| | |EAP- Response/AKA-Notification. If theclient does not accept the counter value of EAP-Request/AKA- Reauthentication, it indicatesP bit is set to one, thecounter synchronization problemnotification can only byincludingused before theencrypted AT_COUNTER_TOO_SMALLEAP/AKA-Challenge round inEAP-Response/AKA- Reauthentication. The server responds with EAP-Request/AKA-Challenge to initiate a normalfull authenticationprocedure. This is illustratedor the EAP/AKA- Reauthentication round in reauthentication. For these notifications, the AT_MAC attribute MUST NOT be included in either EAP-Request/AKA- Notification or EAP-Response/AKA-Notification. (This version of the protocol does not specify any notification codes with the P bit set to one.) Some of the notification codes are authorization related and hence not usually considered as part of thefollowing figure. Encrypted attributesresponsibility of an EAP method. However, they aredenoted with '*'.included as part of EAP/AKA because there are currently no other ways to convey this information to the user Arkko and Haverinen Expiresin six months27 April, 2004 [Page24]31] EAP AKA AuthenticationJune27 October, 2003Client Authenticator | | | EAP-Request/Identity | |<------------------------------------------------------| | | | EAP-Response/Identity | | (Includesin are-authentication identity) | |------------------------------------------------------>| | | | EAP-Request/AKA-Reauthentication | | (AT_IV, AT_ENCR_DATA, *AT_COUNTER, | | *AT_NONCE_S, *AT_NEXT_REAUTH_ID, AT_MAC) | |<------------------------------------------------------| | | +-----------------------------------------------+ | | AT_MAC is valid butlocalizable way, and thecounterinformation isnot fresh. | | +-----------------------------------------------+ | | | | EAP-Response/AKA-Reauthentication | | (AT_IV, AT_ENCR_DATA, *AT_COUNTER_TOO_SMALL, | | *AT_COUNTER, AT_MAC) | |------------------------------------------------------>| | | | +----------------------------------------------+ | | Server verifies AT_MAC but detects | | | That client has included AT_COUNTER_TOO_SMALL| | +----------------------------------------------+ | | | EAP-Request/AKA-Challenge | |<------------------------------------------------------| | | +---------------------------------------------------------------+ | Normal full authentication follows. | +---------------------------------------------------------------+ | | Inpotentially useful for thefigure above,user. An EAP/AKA server implementation may decide never to send these EAP/AKA notifications. 4.4. Error Cases This section specifies thefirst three messages are similaroperation of the peer and the server in error cases. The subsections below require the EAP/AKA peer and server to send an error packet (EAP-Response/AKA-Client-Error or EAP Failure) in error cases. However, implementations SHOULD NOT rely upon thebasic re-authentication case. Whencorrect error reporting behavior of the peer, authenticator, or the server. It is possible for error and other messages to be lost in transit or for a malicious participant to attempt to consume resources by not issuing error messages. Both theclient detects thatpeer and thecounter valueEAP server SHOULD have a mechanism to clean up state even if an error message or EAP Success is notfresh, it includes the AT_COUNTER_TOO_SMALL attribute in EAP-Response/AKA-Reauthentication. This attribute doesn't contain any data but it isreceived after arequesttimeout period. 4.4.1. Peer Operation Two special error messages have been specified forthe servererror cases that are related toinitiate full authentication. In this case,theclient MUST ignore the contentsprocessing of theserver's AT_NEXT_REAUTH_ID attribute. On receipt of AT_COUNTER_TOO_SMALL,UMTS AKA AUTN parameter, as described in Section 3: (1) if the peer does not accept AUTN, the peer responds with EAP-Response/AKA-Authentication-Reject (Section 6.5), and the serververifies AT_MACissues EAP Failure, andverifies(2) if the peer detects thatAT_COUNTER containsthesame assequence number in AUTN is not correct, theEAP- Request/AKA-Reauthentication packet. If not,peer responds with EAP-Response/AKA-Synchronization-Failure (Section 6.6), and the serversilently discardsproceeds with a new EAP-Request/AKA-Challenge. In other error cases, when an EAP/AKA peer detects an error in a received EAP/AKA packet, theEAP-Response/AKA-ReauthenticationEAP/AKA peer responds with the EAP- Response/AKA-Client-Error packet.If all checks onIn response to thepacket are successful,EAP- Response/AKA-Client-Error, the EAP servertransmits a EAP- Request/AKA-ChallengeMUST issue the EAP Failure packet and thefullauthenticationprocedureexchange terminates. By default, the peer uses the client error code 0, "unable to process packet". This error code isperformed as usual. Sinceused in theserver already knowsfollowing cases: - thesubscriber identity, it MUST NOT usepeer is not able to parse the EAP request, i.e. the EAP request is malformed - the peer encountered a malformed attribute - wrong attribute types or duplicate attributes have been included in the EAP request - a mandatory attribute is missing - unrecognized non-skippable attribute - unrecognized or unexpected EAP/AKA Subtype in theEAP-Request/AKA-Identity packet toEAP requestthe identity.- invalid AT_MAC Arkko and Haverinen Expiresin six months27 April, 2004 [Page25]32] EAP AKA AuthenticationJune27 October, 20036. Message Format The Type-Data of the EAP AKA packets begins with a 1-octet Subtype field, which is followed by a 2-octet reserved field. The rest of the Type-Data consists of attributes that are encoded- invalid AT_CHECKCODE - invalid pad bytes inType, Length, Value format. The figure below showsAT_PADDING - thegeneric format ofpeer does not want to process AT_PERMANENT_ID_REQ 4.4.2. Server Operation If anattribute. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |Attribute Type | Length | Value... +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Attribute Type Indicates the particular type of attribute. The attribute type values are listed in Section 11. Length Indicates the length of this attribute in multiples of 4 bytes. The maximum length ofEAP/AKA server detects anattribute is 1024 bytes. The length includes the Attribute Type and Length bytes. Value The particular data associated with this attribute. This field is always included and it is two or more byteserror inlength. The type and length fields determine the format and length ofa received EAP/AKA response, thevalue field. When an attribute numbered withinserver MUST issue therange 0 through 127 is encountered but not recognized,EAP Failure packet and theEAP/AKA message containing that attribute MUST be silently discarded. These attributes are called non-skippable attributes. Whenauthentication exchange terminates. The errors cases when the server issues anattribute numbered inEAP Failure include therange 128 through 255following: - the server isencountered butnotrecognized that particularable to parse the peer's EAP response - the server encounters a malformed attribute, a non-recognized non- skippable attribute, or a duplicate attribute - a mandatory attribute isignored, butmissing or an invalid attribute was included - unrecognized or unexpected EAP/AKA Subtype in therest ofEAP Response - invalid AT_MAC - invalid AT_CHECKCODE - invalid AT_COUNTER 4.4.3. Failure As normally in EAP, theattributes and message data MUST still be processed. The Length field ofEAP server sends theattribute is usedEAP-Failure packet toskiptheattribute valuepeer whensearchingthe authentication procedure fails on the EAP Server. In EAP/AKA, this may occur for example if thenext attribute. These attributes are called skippable attributes. EAP/AKA packets doEAP server does notinclude a version field. However, should there be a reason to revise this protocol inrecognize thefuture, new non- skippablepeer identity, orskippable attributes could be specified in orderif the EAP server is not able toimplement revised EAP/AKA versions in a backward-compatible manner. Unless otherwise specified,obtain theorder ofauthentication vectors for theattributes in ansubscriber or the authentication exchange times out. The server may also send EAPAKA messageFailure if there isinsignificant, andanEAP AKA implementation should not assume a certain order to be used. Arkko and Haverinen Expireserror insix months [Page 26] EAP AKA Authentication June 2003 Attributesthe received EAP/AKA response, as discussed in Section 4.4.2. The server canbe encapsulated within other attributes. In other words,send EAP-Failure at any time in the EAP exchange. The peer MUST process EAP-Failure. 4.4.4. EAP Success On full authentication, thevalue field of an attribute typeserver canbe specified to contain other attributes. 7. Message Authentication and Encryption This section specifies EAP/AKA attributes for attribute encryption and EAP/AKA message authentication. Encryption and integrity protectiononly send EAP-Success after the EAP/AKA-Challenge round. The peer MUST silently discard any EAP- Success packets if they arebased onreceived before theAKA session keys CK and IK. Becausepeer has successfully authenticated theCKserver andIK keys are derived fromsent theRAND challenge, these attributesEAP-Response/AKA- Challenge packet. On re-authentication, EAP-Success can only beused in the EAP-Request/AKA- Challenge message and any EAP/AKA messagessent afterit. For example, these attributes cannot be used in EAP-Request/AKA- Identity, becausetheRAND challenge has not yet been transmitted at that point. Integrity protection with AT_MAC MUST be used in all messages when keys have been derived. 7.1. AT_MAC AttributeEAP/AKA-Reauthentication round. TheAT_MAC attribute can be used for EAP/AKA message integrity protection. Whenever AT_ENCR_DATA (Section 7.3) is included in an EAP message, itpeer MUSTbe followed (not necessarily immediately) bysilently discard any EAP-Success packets if they are received before the peer has Arkko and Haverinen Expires 27 April, 2004 [Page 33] EAP AKA Authentication 27 October, 2003 successfully authenticated the server and sent the EAP-Response/AKA- Reauthentication packet. If the peer receives anAT_MAC attribute. MessagesEAP/AKA notification (section 4.3) thatdo not meet this conditionindicates failure, then the peer MUSTbe silently discarded. The value field ofno longer accept theAT_MAC attribute contains two reserved bytes followed byEAP- Success packet even if the server authentication was successfully completed. 4.5. Key Generation This section specifies how keying material is generated. On EAP AKA full authentication, amessage authentication code (MAC). The MACMaster Key (MK) iscalculated overderived from thewhole EAP packet, concatenated with optional message-specific data, withunderlying UMTS AKA values (CK and IK keys), and theexception thatidentity as follows. MK = SHA1(Identity|IK|CK) In thevalue field offormula above, theMAC attribute"|" character denotes concatenation. Identity denotes the peer identity string without any terminating null characters. It isset to zero when calculatingtheMAC. The reserved bytes are set to zero when sending and ignored on reception. The contents ofidentity from themessage-specific data,AT_IDENTITY attribute from the last EAP-Response/AKA-Identity packet, or, ifpresent, are specified separately for each EAP/AKA message. The message-specific data is included in order to protect data that isAT_IDENTITY was nottransmitted withused, theEAPidentity from the EAP-Response/Identity packet. Theformat of the AT_MAC attributeidentity string isshown below. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_MAC | Length = 5 | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | MAC | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+included as-is, without any changes and including the possible identity decoration. TheMAC algorithm is HMAC-SHA1-128 [9] keyedhashvalue. (The HMAC- SHA1-128 valuefunction SHA-1 isobtainedspecified in [SHA-1]. The Master Key is fed into a Pseudo-Random number Function (PRF), which generates separate Transient EAP Keys (TEKs) for protecting EAP AKA packets, as well as a Master Session Key (MSK) for link layer security and an Extended Master Session Key (EMSK) for other purposes. On re-authentication, the same TEKs MUST be used for protecting EAP packets, but a new MSK and a new EMSK MUST be derived from the20-byte HMAC-SHA1 value by Arkkooriginal MK andHaverinen Expiresnew values exchanged insix months [Page 27]the re- authentication. EAP AKAAuthentication June 2003 truncatingrequires two TEKs for its own purposes, theoutputauthentication key K_aut to16 bytes. Hence,be used with thelengthAT_MAC attribute, and the encryption key K_encr, to be used with the AT_ENCR_DATA attribute. The same K_aut and K_encr keys are used in full authentication and subsequent re-authentications. Key derivation is based on the random number generation specified in NIST Federal Information Processing Standards (FIPS) Publication 186-2 [PRF]. The pseudo-random number generator is specified in the change notice 1 (2001 October 5) of [PRF] (Algorithm 1). As specified in theMACchange notice (page 74), when Algorithm 1 is16 bytes.)used as a general-purpose pseudo-random number generator, the "mod q" term in step 3.3 is omitted. Themessage authentication key (K_aut)function G used in thecalculationalgorithm is constructed via Secure Hash Standard as specified in Appendix 3.3 of theMACstandard. It should be noted that the function G isderived fromvery similar to SHA-1, but the message padding is different. Please refer to [PRF] for full details. For convenience, the random number algorithm with the correct modification is cited in Annex A. Arkko and Haverinen Expires 27 April, 2004 [Page 34] EAP AKAintegrity key (IK)Authentication 27 October, 2003 160-bit XKEY andcipher key (CK), as specified in Section 10. 7.2. AT_CHECKCODE Attribute The AT_MAC attributeXVAL values are used, so b = 160. On each full authentication, the Master Key isnotusedinas thevery first EAP/AKA messages, because keying material has not been derived yet.initial secret seed- key XKEY. Theclient and the server may exchange one or more pairs of EAP/AKA messages of the Subtype AKA-Identity before keysoptional user input values (XSEED_j) in step 3.1 arederivedset to zero. The resulting 320-bit random numbers x_0, x_1, ..., x_m-1 are concatenated andbeforepartitioned into suitable-sized chunks and used as keys in theAT_MAC attributefollowing order: K_encr (128 bits), K_aut (128 bits), Master Session Key (64 bytes), Extended Master Session Key (64 bytes). On re-authentication, the same pseudo-random number generator can beapplied. The EAP/AKA-Identity messages may also be used upon re-authentication. The AT_CHECKCODE attribute MAY beused toprotect the EAP/AKA- Identity messages. AT_CHECKCODEgenerate a new Master Session Key and new Initialization Vectors. The seed value XKEY' isincluded in EAP-Request/AKA- Challenge and/or EAP-Response/AKA-Challenge upon full authentication.calculated as follows: XKEY' = SHA1(Identity|counter|NONCE_S| MK) Inre-authentication, AT_CHECKCODE can be included in EAP-Request/AKA-Reauthentication and/or EAP-Response/AKA- Reauthentication. BecausetheAT_MAC attribute is used in these messages, AT_CHECKCODE will be integrity protected with AT_MAC. The format offormula above, theAT_CHECKCODE attribute is shown below. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_CHECKCODE | Length | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Checkcode (0 or 20 bytes) | | | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+Identity denotes the re-authentication identity, without any terminating null characters, from the AT_IDENTITY attribute of the EAP-Response/AKA-Identity packet, or, if EAP-Response/AKA-Identity was not used on re-authentication, the identity string from the EAP-Response/Identity packet. The counter denotes the counter valuefield of AT_CHECKCODE begins with two reserved bytes, which may be followed by a 20-byte checkcode. Iffrom AT_COUNTER attribute used in thecheckcodeEAP- Response/AKA-Reauthentication packet. The counter isnot includedused inAT_CHECKCODE, thennetwork byte order. NONCE_S denotes the 16-byte NONCE_S value from the AT_NONCE_S attributeindicates that no EAP/AKA-Identity messages were exchanged. This may occurused inboth full authentication and re-authentication.the EAP-Request/AKA-Reauthentication packet. Thereserved bytes are set to zero when sending and ignoredMK is the Master Key derived onreception.the preceding full authentication. Thecheckcodepseudo-random number generator isa hash value, calculatedrun withSHA1 [10], over all EAP-Request/AKA-Identitythe new seed value XKEY', andEAP-Response/ AKA-Identity packets exchanged in this authentication exchange. The packetsthe resulting 320-bit random numbers x_0, x_1, ..., x_m-1 areincluded inconcatenated and partitioned into 64-byte chunks and used as theorder that they were transmitted, that is, starting withnew 64-byte Master Session Key and the new 64-byte Extended Master Session Key. The firstEAP-Request/ AKA-Identity message, followed by32 bytes of thecorresponding EAP-Response/ AKA-Identity, followed byMSK can be used as the Pairwise Master Key (PMK) for IEEE 802.11i. When the RADIUS attributes specified in [RFC 2548] are used to transport keying material, then the first 32 bytes of the MSK correspond to MS-MPPE-RECV-KEY and the secondEAP-Request/ AKA-Identity (if used) etc.32 bytes to MS-MPPE- SEND-KEY. In this case, only 64 bytes of keying material (the MSK) are used. 5. Message Format and Protocol Extensibility 5.1. Message Format As specified in [EAP], EAP packets begin with the Code, Identifiers, Length, and Type fields, which areincludedfollowed by EAP method specific Type-Data. The Code field in thehash calculation "as-is", as they were transmitted or received. All reserved bytes, padding bytes etc. that are specifiedEAP header is set to 1 forvarious attributes are included as such,EAP requests, and to 2 for EAP Responses. The usage of thereceiver must not reset themLength and Identifier fields in the EAP header is also specified in [EAP]. In EAP/AKA, the Type field is set tozero. No delimiter bytes,23. Arkko and Haverinen Expiresin six months27 April, 2004 [Page28]35] EAP AKA AuthenticationJune27 October, 2003padding or any other framing are included between the EAP packets when calculatingIn EAP/AKA, thecheckcode. Messages are included in request/response pairs; in other words only full "round trips" are included. PacketsType-Data begins with an EAP/AKA header thatare silently discarded are not included.consists of a 1-octet Subtype field, and a 2-octet reserved field. TheEAP server must only include an EAP- Request/AKA-IdentitySubtype values used inthe calculation once it has received a corresponding response, with the same Identifier value. Retransmissions or requests to which the server does not receive responseEAP/AKA arenot included.defined in Section 8. Theclient must includeformats of theEAP-Request/AKA-IdentityEAP header and thecorresponding response inEAP/AKA header are shown below. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Code | Identifier | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Type | Subtype | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ The rest of thecalculation only ifType-Data, immediately following theclient receives a subsequent EAP-Request/AKA-Challenge, or a follow-up EAP- Request/AKA-Identity with differentEAP/AKA header, consists of attributes(attribute types) thanthat are encoded in Type, Length, Value format. The figure below shows thefirst EAP-Request/AKA-Identity. After sending EAP- Response/AKA-Identity, if the client receives another EAP- Request/AKA-Identity withgeneric format of an attribute. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |Attribute Type | Length | Value... +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Attribute Type Indicates thesame attributes asparticular type of attribute. The attribute type values are listed in Section 8. Length Indicates theprevious request, then the client's response to the first request must have been lost. Inlength of thiscase the client must not include the first request and its responseattribute inthe calculationmultiples ofthe checkcode.4 bytes. TheAT_CHECKCODEmaximum length of an attribute isoptional to implement. It is specified in order to allow protecting1024 bytes. The length includes theEAP/ AKA-Identity messagesAttribute Type andany future extensions to them.Length bytes. Value Theimplementation of AT_CHECKCODEparticular data associated with this attribute. This field isrecommended. Ifalways included and it is two or more bytes in length. The type and length fields determine thereceiverformat and length ofAT_CHECKCODE implements this attribute, thenthereceiver MUST check thatvalue field. Attributes numbered within thecheckcode is correct. Ifrange 0 through 127 are called non- skippable attributes. When an EAP/AKA peer encounters a non- skippable attribute type that thecheckcode is invalid,peer does not recognize, thereceiver must terminatepeer MUST send the EAP-Response/AKA-Client-Error packet, and the authenticationexchange.exchange terminates. If an EAP/AKA server encounters a non-skippable attribute that theEAP/AKA-Identity messages are extended with new attributesserver does not recognize, thenAT_CHECKCODE must be implemented and used. More specifically, ifthe serverincludes any other attributes than AT_PERMANENT_ID_REQ, AT_FULLAUTH_ID_REQ or AT_ANY_ID_REQ insends theEAP- Request/AKA-Identity packet, thenEAP Failure packet and theserver MUST include AT_CHECKCODEauthentication exchange terminates. When an attribute numbered inEAP-Request/AKA-Challenge or EAP-Request/AKA- Reauthentication. Iftheclient includes any other attributes than AT_IDENTITY inrange 128 through 255 is encountered but not recognized that particular attribute is ignored, Arkko and Haverinen Expires 27 April, 2004 [Page 36] EAP AKA Authentication 27 October, 2003 but theEAP-Response/AKA-Identity message, thenrest of theclientattributes and message data MUSTinclude AT_CHECKCODE in EAP-Response/AKA-Challenge or EAP-Response/AKA-Reauthentication. Ifstill be processed. The Length field of theserver implementsattribute is used to skip theprocessing of any otherattributethan AT_IDENTITYvalue when searching for theEAP-Response/AKA-Identity message, thennext attribute. These attributes are called skippable attributes. Unless otherwise specified, theserver MUST implement AT_CHECKCODE.order of the attributes in an EAP AKA message is insignificant, and an EAP AKA implementation should not assume a certain order to be used. Attributes can be encapsulated within other attributes. Inthis case, ifother words, theserver receives anyvalue field of an attribute type can be specified to contain other attributes. 5.2. Protocol Extensibility EAP/AKA can be extended by specifying new attributethan AT_IDENTITY intypes. If skippable attributes are used, it is possible to extend the protocol without breaking old implementations. As specified in Section 7.4, if new attributes are specified for EAP-Request/AKA-Identity or EAP-Response/AKA-Identity message,Response/AKA-Identity, then theserverAT_CHECKCODE MUSTcheckbe used to integrity protect the new attributes. When specifying new attributes, it should be noted thatAT_CHECKCODE is present in EAP-Response/AKA-Challenge or EAP- Response/AKA-Reauthentication. If AT_CHECKCODE isEAP/AKA does notincluded,support message fragmentation. Hence, theserver must terminatesizes of theauthentication exchange. Similarly, ifnew extensions MUST be limited so that theclient implementsmaximum transfer unit (MTU) of theprocessingunderlying lower layer is not exceeded. According to [EAP], lower layers must provide an EAP MTU ofany other attribute than AT_PERMANENT_ID_REQ, AT_FULLAUTH_ID_REQ1020 bytes orAT_ANY_ID_REQ for the EAP-Request/AKA-Identity packet, thengreater, so any extensions to EAP/AKA SHOULD NOT exceed theArkko and Haverinen Expires in six months [Page 29]EAPAKA Authentication June 2003 client MUST implement AT_CHECKCODE. InMTU of 1020 bytes. EAP/AKA packets do not include a version field. However, should there be a reason to revise thiscase, ifprotocol in theclient receives any other attribute than AT_PERMANENT_ID_REQ, AT_FULLAUTH_ID_REQfuture, new non- skippable orAT_ANY_ID_REQskippable attributes could be specified inthe EAP-Request/AKA-Identity packet, then the client MUST check that AT_CHECKCODEorder to implement revised EAP/AKA versions in a backward-compatible manner. It ispresentpossible to introduce version negotiation inEAP-Request/AKA-Challenge or EAP-Request/AKA-Reauthentication. If the attribute was not included,theclient must terminate the authentication exchange. 7.3. AT_IV, AT_ENCR_DATA and AT_PADDING Attributes AT_IVEAP- Request/AKA-Identity andAT_ENCR_DATA attributes canEAP-Response/AKA-Identity messages by specifying new skippable attributes. 6. Messages This section specifies the messages used in EAP/AKA. It specifies when a message may beoptionallytransmitted or accepted, which attributes are allowed in a message, which attributes are required in a message, and other message specific details. Message format is specified in Section 5.1. 6.1. EAP-Request/AKA-Identity The EAP/AKA-Identity roundtrip MAY used for obtaining the peer identity totransmit encrypted information betweentheEAP/AKA client andserver.The value field of AT_IV contains two reserved bytes followed by a 16-byte initialization vectorAs discussed in Section 4.1, several AKA- Identity rounds may be requiredby the AT_ENCR_DATA attribute. The reserved bytes are setin order tozero when sendingobtain a valid peer identity. Arkko andignored on reception.Haverinen Expires 27 April, 2004 [Page 37] EAP AKA Authentication 27 October, 2003 TheAT_IV attribute MUST be included if and only if the AT_ENCR_DATA is included. Messages that do not meet this conditionserver MUSTbe silently discarded. The senderinclude one of theAT_IV attribute choosesfollowing identity requesting attributes: AT_PERMANENT_ID_REQ, AT_FULLAUTH_ID_REQ, AT_ANY_ID_REQ. These three attributes are mutually exclusive, so theinitialization vector by random. The senderserver MUST NOTreuseinclude more than one of theinitialization vector valueattributes. If the server has previously issued an EAP-Request/AKA-Identity message with the AT_PERMANENT_ID_REQ attribute, and if the server has received a response fromprevious EAP AKA packets butthesenderpeer, then the server MUSTchoose it freshly for each AT_IV attribute. The sends SHOULD useNOT issue agood source of randomness to generatenew EAP-Request/AKA-Identity packet. If theinitialization vector. The format of AT_IV is shown below. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_IV | Length = 5 | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Initialization Vector | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ The value field ofserver has previously issued an EAP-Request/AKA-Identity message with the AT_FULLAUTH_ID_REQ attribute, and if theAT_ENCR_DATA attribute consists of two reserved bytes followed by bytes encrypted usingserver has received a response from theAdvanced Encryption Standard (AES) [11] inpeer, then theCipher Block Chaining (CBC) mode of operation, usingserver MUST NOT issue a new EAP-Request/AKA-Identity packet with theinitialization vectorAT_ANY_ID_REQ or AT_FULLAUTH_ID_REQ attributes. If the server has previously issued an EAP-Request/AKA-Identity message with the AT_ANY_ID_REQ attribute, and if the server has received a response from theAT_IV attribute.peer, then the server MUST NOT issue a new EAP-Request/AKA-Identity packet with the AT_ANY_ID_REQ. This message MUST NOT include AT_MAC, AT_IV, or AT_ENCR_DATA. 6.2. EAP-Response/AKA-Identity Thereserved bytes are setpeer sends EAP-Response/AKA-Identity in response tozero when sending and ignored on reception. Please see [12] foradescription ofvalid EAP- Request/AKA-Identity from theCBC mode.server. Theformat ofpeer MUST include theAT_ENCR_DATA attributeAT_IDENTITY attribute. The usage of AT_IDENITY isshown below. Arkko and Haverinen Expiresdefined insix months [Page 30] EAP AKA Authentication June 2003 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_ENCR_DATA | Length | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | . Encrypted Data . . . | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+Section 4.1. This message MUST NOT include AT_MAC, AT_IV, or AT_ENCR_DATA. 6.3. EAP-Request/AKA-Challenge Theencryption key (K_encr) is derivedserver sends the EAP-Request/AKA-Challenge on full authentication after successfully obtaining the subscriber identity. The AT_RAND attribute MUST be included. AT_MAC MUST be included. In EAP-Request/AKA-Challenge, there isderived fromno message-specific data covered by theAKA integrity key (IK)MAC, see Section 7.2. The AT_CHECKCODE attribute MAY be included, andcipher key (CK), asin certain cases specified inSection10.Section 7.4, it MUST be included. The EAP-Request/AKA-Challenge packet MAY include encrypted attributes for identity privacy and for communicating the next re- authentication identity. In this case, the AT_IV and AT_ENCR_DATA attributes are included (Section 7.3). The plaintextconsistsof the AT_ENCR_DATA value field consist of nestedEAP/AKAattributes. Theencryption algorithm requiresnested attributes MAY include AT_PADDING (as specified in Section 7.3). If thelength ofserver supports identity privacy Arkko and Haverinen Expires 27 April, 2004 [Page 38] EAP AKA Authentication 27 October, 2003 and wants to communicate a pseudonym to theplaintextpeer for the next full authentication, then the nested encrypted attributes include the AT_NEXT_PSEUDONYM attribute. If the server supports re- authentication and wants tobecommunicate amultiple of 16 bytes. The sender may needre-authentication identity to the peer, then the nested encrypted attributes include theAT_PADDINGAT_NEXT_REAUTH_ID attribute. Later versions of this protocol MAY specify additional attributes to be included within the encrypted data. 6.4. EAP-Response/AKA-Challenge The peer sends EAP-Response/AKA-Challenge in response to a valid EAP-Request/AKA-Challenge. The AT_MAC attributeasMUST be included. In EAP-Response/AKA- Challenge, there is no message-specific data covered by thelastMAC, see Section 7.2. The AT_RES attributewithin AT_ENCR_DATA.MUST be included. TheAT_PADDINGAT_CHECKCODE attributeisMAY be included, and in certain cases specified in Section 7.4, it MUST be included. Later versions of this protocol MAY make use of the AT_ENCR_DATA and AT_IV attributes in this message to include encrypted (skippable) attributes. The EAP server MUST process EAP-Response/AKA-Challenge messages that include these attributes even if the server did notincludedimplement these optional attributes. 6.5. EAP-Response/AKA-Authentication-Reject The peer sends the EAP-Response/AKA-Authentication-Reject packet if it does not accept thetotal lengthAUTN parameter. This version ofother nested attributes withintheAT_ENCR_DATA attribute is a multipleprotocol does not specify any attributes for this message. Future versions of16 bytes. As usual,theLength ofprotocol MAY specify attributes for this message. The AT_MAC, AT_ENCR_DATA, or AT_IV attributes MUST NOT be used in this message. 6.6. EAP-Response/AKA-Synchronization-Failure The peer sends thePadding attribute includesEAP-Response/AKA-Synchronization-Failure, when theAttribute Type and Attribute Length fields. The Length ofsequence number in thePadding attribute is 4, 8 or 12 bytes. ItAUTN parameter ischosen so thatincorrect. The peer MUST include thelengthAT_AUTS attribute. Future versions of thevalue field ofprotocol MAY specify other additional attributes for this message. The AT_MAC, AT_ENCR_DATA, or AT_IV attributes MUST NOT be used in this message. 6.7. EAP-Request/AKA-Reauthentication Arkko and Haverinen Expires 27 April, 2004 [Page 39] EAP AKA Authentication 27 October, 2003 The server sends theAT_ENCR_DATA attribute becomesEAP-Request/AKA-Reauthentication message if it wants to use re-authentication, and if it has received amultiple of 16 bytes.valid re- authentication identity in EAP-Response/Identity or EAP- Response/AKA-Identity. Theactual pad bytesAT_MAC attribute MUST be included. No message-specific data is included in thevalue field are set to zero (0x00) on sending.MAC calculation, see Section 7.2. TherecipientAT_CHECKCODE attribute MAY be included, and in certain cases specified in Section 7.4, it MUST be included. The AT_IV and AT_ENCR_DATA attributes MUST be included. The plaintext consists of themessagefollowing nested encrypted attributes, which MUSTverify that the pad bytes are set to zero,be included: AT_COUNTER andsilently dropAT_NONCE_S. In addition, themessage if this verification fails.nested encrypted attributes MAY include the following attributes: AT_NEXT_REAUTH_ID and AT_PADDING. 6.8. EAP-Response/AKA-Reauthentication Theformat ofclient sends theAT_PADDINGEAP-Response/AKA-Reauthentication packet in response to a valid EAP-Request/AKA-Reauthentication. The AT_MAC attribute MUST be included. For EAP-Response/AKA- Reauthentication, the MAC code isshown below. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_PADDING | Length | Padding... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 8. Messages 8.1. EAP-Request/AKA-Challenge The format ofcalculated over theEAP-Request/AKA-Challengefollowing data: EAP packet| NONCE_S. The EAP packet isshown below. Arkkorepresented as specified in Section 5.1. It is followed by the 16-byte NONCE_S value from the server's AT_NONCE_S attribute. The AT_CHECKCODE attribute MAY be included, andHaverinen Expiresinsix months [Page 31] EAP AKA Authentication June 2003 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Code | Identifier | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Type | Subtype | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_RAND | Length = 5 | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | RAND | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_AUTN | Length = 5 | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | AUTN | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |certain cases specified in Section 7.4, it MUST be included. The AT_IV| Length = 5 | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Initialization Vector (optional) | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |and AT_ENCR_DATA attributes MUST be included. The nested encrypted attributes MUST include the AT_COUNTER attribute. The AT_COUNTER_TOO_SMALL attribute MAY be included in the nested encrypted attributes, and it is included in cases specified in Section 4.2. The AT_PADDING attribute MAY be included. 6.9. EAP-Response/AKA-Client-Error The peer sends EAP-Response/AKA-Client-Error in error cases, as specified in Section 4.4.1. The AT_CLIENT_ERROR_CODE attribute MUST be included. The AT_MAC, AT_IV, or AT_ENCR_DATA| Length | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Encrypted Data (optional) | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_CHECKCODE | Length | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Checkcode (optional) | | | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_MAC | Length = 5 | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | MAC | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+attributes MUST NOT be used with this packet. 6.10. EAP-Request/AKA-Notification Thesemanticsusage ofthe fieldsthis message isdescribed below:specified in Section 4.3. The AT_NOTIFICATION attribute MUST be included. Arkko and Haverinen Expiresin six months27 April, 2004 [Page32]40] EAP AKA AuthenticationJune27 October, 2003Code 1 for Request IdentifierThe AT_MAC attribute is included in cases discussed in Section 4.3. No message-specific data is included in the MAC calculation. See Section 7.2. Later versions of this protocol MAY make use of the AT_ENCR_DATA and AT_IV attributes in this message to include encrypted (skippable) attributes. These attributes MAY be included only if the P bit of the notification code in AT_NOTIFICATION is set to zero. 6.11. EAP-Response/AKA-Notification The usage of this message is specified in Section 4.3. Because this packet is only an acknowledgement of EAP-Request/AKA-Notification, it does not contain any mandatory attributes. The AT_MAC attribute is included in cases described in Section 4.3. No message-specific data is included in the MAC calculation. See[5] Length The lengthSection 7.2. Later versions of this protocol MAY make use of theEAP Request packet. Type 23 Subtype 1 for AKA-Challenge Reserved SetAT_ENCR_DATA and AT_IV attributes in this message tozero when sending, ignored on reception. AT_RAND The value fieldinclude encrypted (skippable) attributes. These attributes MAY be included only if the P bit ofthisthe notification code in the AT_NOTIFICATION attributecontains two reserved bytes followed byof theAKA RAND parameter, 16 bytes (128 bits). The reserved bytes areserver's EAP-Request/AKA-Notification packet is set tozero when sending and ignored on reception.zero. 7. Attributes This section specifies the format of message attributes. TheAT_RANDattributeMUST be presenttype numbers are specified inEAP- Request/AKA-Challenge. AT_AUTN The value fieldSection 8. 7.1. Table ofthis attribute contains two reserved bytes followed by the AKA AUTN parameter, 16 bytes (128 bits).Attributes Thereserved bytes are setfollowing table provides a guide tozero when sendingwhich attributes may be found in which kinds of messages, andignored on reception.in what quantity. Messages are denoted with numbers in parentheses as follows: (1) EAP-Request/AKA- Identity, (2) EAP-Response/AKA-Identity, (3) EAP-Request/AKA- Challenge, (4) EAP-Response/AKA-Challenge, (5) EAP-Request/AKA- Notification, (6) EAP-Response/AKA-Notification, (7) EAP- Response/AKA-Client-Error (8) EAP-Request/AKA-Reauthentication, (9) EAP-Response/AKA-Re-authentication, (10) EAP-Response/AKA- Authentication-Reject, and (11) EAP-Response/AKA-Synchronization- Failure. TheAT_AUTNcolumn denoted with "E" indicates whether the attribute is a nested attribute that MUST beincluded. AT_IV See Section 7.3. AT_ENCR_DATA See Section 7.3. The nested attributesincluded within AT_ENCR_DATA. "0" indicates thatarethe attribute MUST NOT be included in theplaintextmessage, "1" indicates that the attribute MUST be included in the message, "0-1" indicates that the attribute is sometimes included in the message, and "0*" indicates that the attribute is not included in the message in cases specified in this document, but MAY be included in the future versions ofAT_ENCR_DATA are described below. AT_CHECKCODE The AT_CHECKCODE attribute is optional to include. See section 7.2the protocol. Arkko and Haverinen Expiresin six months27 April, 2004 [Page33]41] EAP AKA AuthenticationJune27 October, 2003 Attribute (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)(11) E AT_MACAT_MAC MUST be included. In EAP-Request/AKA-Challenge, there is no message-specific data covered by the MAC. See Section 7.1. In the EAP-Request/AKA-Challege message, the AT_IV,0 0 1 1 0-1 0-1 0 1 1 0 0 N AT_IV 0 0 0-1 0* 0* 0* 0 1 1 0 0 N AT_ENCR_DATAand AT_MAC0 0 0-1 0* 0* 0* 0 1 1 0 0 N AT_PADDING 0 0 0-1 0* 0* 0* 0 0-1 0-1 0 0 Y AT_CHECKCODE 0 0 0-1 0-1 0 0 0 0-1 0-1 0 0 N AT_PERMANENT_ID_REQ 0-1 0 0 0 0 0 0 0 0 0 0 N AT_ANY_ID_REQ 0-1 0 0 0 0 0 0 0 0 0 0 N AT_FULLAUTH_ID_REQ 0-1 0 0 0 0 0 0 0 0 0 0 N AT_IDENTITY 0 0-1 0 0 0 0 0 0 0 0 0 N AT_RAND 0 0 1 0 0 0 0 0 0 0 0 N AT_AUTN 0 0 1 0 0 0 0 0 0 0 0 N AT_RES 0 0 0 1 0 0 0 0 0 0 0 N AT_AUTS 0 0 0 0 0 0 0 0 0 0 1 N AT_NEXT_PSEUDONYM 0 0 0-1 0 0 0 0 0 0 0 0 Y AT_NEXT_REAUTH_ID 0 0 0-1 0 0 0 0 0-1 0 0 0 Y AT_COUNTER 0 0 0 0 0 0 0 1 1 0 0 Y AT_COUNTER_TOO_SMALL 0 0 0 0 0 0 0 0 0-1 0 0 Y AT_NONCE_S 0 0 0 0 0 0 0 1 0 0 0 Y AT_NOTIFICATION 0 0 0 0 1 0 0 0 0 0 0 N AT_CLIENT_ERROR_CODE 0 0 0 0 0 0 1 0 0 0 0 N It should be noted that attributesare used for Identity privacyAT_PERMANENT_ID_REQ, AT_ANY_ID_REQ andfor communicatingAT_FULLAUTH_ID_REQ are mutually exclusive, so that only one of them can be included at thenext re-authentication identity. The plaintextsame time. If one of the attributes AT_IV and AT_ENCR_DATAvalue field consists of nested attributes, which are shown below. Later versionsis included, then both ofthis protocol MAY specify additionalthe attributestoMUST beincluded within the encrypted data. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_NEXT_PS... | Length | Actual Pseudonym Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | . Next Pseudonym . . . | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_NEXT_REAU..| Length | Actual Re-Auth Identity Length| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | . Next Re-authentication Username . . . | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_PADDING | Length | Padding... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ AT_NEXT_PSEUDONYM Thisincluded. 7.2. AT_MAC The AT_MAC attribute isoptional.used for EAP/AKA message authentication. Section 6 specifies which messages AT_MAC MUST be included. The value field ofthis attribute begins with a 2-byte actual pseudonym length, which specifies the length ofthepseudonym in bytes. This field isAT_MAC attribute contains two reserved bytes followed by apseudonym user name, of the indicated actual length, that the client can use in the next authentication, as described in Section 4.3.keyed message authentication code (MAC). Theuser name does not include any terminating null characters. BecauseMAC is calculated over the whole EAP packet, concatenated with optional message-specific data, with thelength ofexception that theattribute must be a multiplevalue field of4 bytes, the sender padsthepseudonym with zero bytes when necessary. AT_NEXT_REAUTH_ID The AT_NEXT_REAUTH_IDMAC attribute isoptionalset toinclude.zero when calculating the MAC. Thevalue field of this attributeEAP packet includes the EAP header that begins witha 2-byte actual re- authentication identity length, which specifies the length ofthere-authentication identity in bytes. This field is followed by a re-authentication identity, ofCode field, theindicated actual length,EAP/AKA header thatArkko and Haverinen Expires in six months [Page 34] EAP AKA Authentication June 2003begins with theclient can use inSubtype field, and all thenext re-authentication,attributes, asdescribedspecified in Section5.5.1. There-authentication identity includes both a username portionreserved bytes in AT_MAC are set to zero when sending anda realm name portion.ignored on reception. There-authentication identity does not include any terminating null characters. Because the lengthcontents of theattribute mustmessage-specific data that may bea multiple of 4 bytes, the sender padsincluded in there-authentication identity with zero bytes when necessary. AT_PADDING AT_PADDING is optional to include. SeeMAC calculation are specified separately for each EAP/AKA message in Section7.3. 8.2. EAP-Response/AKA-Challenge6. The format of theEAP-Response/AKA-Challenge packetAT_MAC attribute is shown below.Later versions of this protocol MAY make use of the AT_ENCR_DATA and AT_IV attributes in this message to include encrypted (skippable) attributes. AT_MAC, AT_ENCR_DATAArkko andAT_IV attributes are not shown in the figure below. If present, they are processed as in EAP- Request/AKA-Challenge packet. TheHaverinen Expires 27 April, 2004 [Page 42] EAPserver MUST process EAP- Response/AKA-Challenge messages that include these attributes even if the server did not implement these optional attributes.AKA Authentication 27 October, 2003 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |Code | Identifier | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Type | Subtype | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_RES | Length | RES Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-| | | | RES | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_CHECKCODE | Length | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Checkcode (optional) | | | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |AT_MAC | Length = 5 | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | MAC | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+Arkko and Haverinen Expires in six months [Page 35] EAP AKA Authentication June 2003ThesemanticsMAC algorithm is HMAC-SHA1-128 [RFC 2104] keyed hash value. (The HMAC-SHA1-128 value is obtained from the 20-byte HMAC-SHA1 value by truncating the output to 16 bytes. Hence, the length of thefieldsMAC isdescribed below: Code 2 for Response Identifier See [5] Length16 bytes.) Thelengthderivation of theEAP Response packet. Type 23 Subtype 1 for AKA-Challenge Reserved Setauthentication key (K_aut) used in the calculation of the MAC is specified in Section 4.5. When the AT_MAC attribute is included in an EAP/AKA message, the recipient MUST process the AT_MAC attribute before looking at any other attributes. If the message authentication code is invalid, then the recipient MUST ignore all other attributes in the message and operate as specified in Section 4.4. 7.3. AT_IV, AT_ENCR_DATA and AT_PADDING AT_IV and AT_ENCR_DATA attributes can be used to transmit encrypted information between the EAP/SIM peer and server. The value field of AT_IV contains two reserved bytes followed by a 16-byte initialization vector required by the AT_ENCR_DATA attribute. The reserved bytes are set to zero whensending,sending and ignored on reception.AT_RES ThisThe AT_IV attribute MUST be includedin EAP-Response/AKA-Challenge. The value field of this attribute begins with the 2-byte RES Length, which is identifies the exact length ofif and only if theRES in bits. The RES lengthAT_ENCR_DATA isfollowed byincluded. Section 4.4 specifies theUMTS AKA RES parameter. According tooperation if a packet that does not meet this condition is encountered. The sender of thespecification [13]AT_IV attribute chooses thelength ofinitialization vector by random. The sender MUST NOT reuse the initialization vector value from previous EAP AKARES can vary between 32packets and128 bits. Because the length of the AT_RES attribute must be a multiple of 4 bytes,the senderpads the RES with zero bits where necessary. AT_CHECKCODEMUST choose it freshly for each AT_IV attribute. TheAT_CHECKCODE attribute is optionalsender SHOULD use a good source of randomness toinclude. See section 7.2 AT_MAC AT_MAC MUST be included. In EAP-Response/AKA-Challenge, there is no message-specific data covered bygenerate theMAC. See Section 7.1. 8.3. EAP-Response/AKA-Authentication-Rejectinitialization vector. Please see [RFC 1750] for more information about generating random numbers for security applications. The format ofthe EAP-Response/AKA-Authentication-Reject packetAT_IV is shown below. Arkko and Haverinen Expiresin six months27 April, 2004 [Page36]43] EAP AKA AuthenticationJune27 October, 2003 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |Code | IdentifierAT_IV | Length = 5 | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |Type|Subtype|ReservedInitialization Vector | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Thesemanticsvalue field of thefields is described below: Code 2 for Response Identifier See [5] Length The lengthAT_ENCR_DATA attribute consists of two reserved bytes followed by cipher text bytes encrypted using the Advanced Encryption Standard (AES) [AES] in the Cipher Block Chaining (CBC) mode of operation using theEAP Response packet. Type 23 Subtype 2 for AKA-Authentication-Reject Reserved Setinitialization vector from the AT_IV attribute. The reserved bytes are set to zeroon sending,when sending and ignored on reception.8.4. EAP-Response/AKA-Synchronization-FailurePlease see [CBC] for a description of the CBC mode. The format of theEAP-Response/AKA-Synchronization-Failure packetAT_ENCR_DATA attribute is shown below. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 01 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Code | Identifier | Length |1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |Type | Subtype | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+| | AT_AUTSAT_ENCR_DATA | Length= 4 | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ || Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |AUTS| . Encrypted Data . . . | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+Arkko and Haverinen ExpiresThe derivation of the encryption key (K_encr) is specified insix months [Page 37] EAP AKA Authentication June 2003Section 4.5. Thesemanticsplaintext consists of nested EAP/AKA attributes. The encryption algorithm requires the length of thefieldsplaintext to be a multiple of 16 bytes. The sender may need to include the AT_PADDING attribute as the last attribute within AT_ENCR_DATA. The AT_PADDING attribute isdescribed below: Code 2 for Response Identifier See [5]not included if the total length of other nested attributes within the AT_ENCR_DATA attribute is a multiple of 16 bytes. As usual, the Length of the Padding attribute includes the Attribute Type and Attribute Length fields. The length of theEAP Response packet, 20. Type 23 Subtype 4 for AKA-Synchronization-Failure AT_AUTS ThisPadding attributeMUST be included in EAP-Response/AKA- Synchronization-Failure.is 4, 8 or 12 bytes. It is chosen so that the length of the value field of the AT_ENCR_DATA attribute becomes a multiple of 16 bytes. The actual pad bytes in the value field are set to zero (0x00) on sending. The recipient of the message MUST verify that the pad bytes are set to zero. If thisattribute containsverification fails on theAKA AUTS parameter, 112 bits (14 bytes). 8.5. EAP-Request/AKA-Identitypeer, then it MUST send the EAP-Response/AKA-Client- Error packet with the error code "unable to process packet" to terminate the authentication exchange. If this verification fails on the server, then the server sends EAP Failure, and the authentication exchange terminates. The format of theEAP-Request/AKA-Identity packetAT_PADDING attribute is shown below. Arkko and Haverinen Expires 27 April, 2004 [Page 44] EAP AKA Authentication 27 October, 2003 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |Code | Identifier | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Type | Subtype | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |AT_PERM..._REQAT_PADDING | Length= 1 | Reserved|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |AT_FULL..._REQPadding... |Length = 1+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |Reserved|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |AT_ANY_ID_REQ|Length = 1|Reserved| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 7.4. AT_CHECKCODE Thesemantics of the fieldsAT_MAC attribute isdescribed below: Code 1 for Request Arkko and Haverinen Expiresnot used insix months [Page 38] EAP AKA Authentication June 2003 Identifier See [5] Lengththe very first EAP/AKA messages during the AKA-Identity round, because keying material has not been derived yet. Thelengthpeer and the server may exchange one or more pairs of EAP/AKA messages of theEAP Request packet. Type 23Subtype5 forAKA-IdentityReserved Set to zero on sending, ignored on reception. AT_PERMANENT_ID_REQbefore keys are derived and before the AT_MAC attribute can be applied. TheAT_PERMANENT_ID_REQEAP/AKA- Identity messages may also be used upon re-authentication. The AT_CHECKCODE attributeis optionalMAY be used toinclude and itprotect the EAP/AKA- Identity messages. AT_CHECKCODE is included in EAP-Request/AKA- Challenge and/or EAP-Response/AKA-Challenge upon full authentication. In re-authentication, AT_CHECKCODE MAY be included in EAP-Request/AKA-Reauthentication and/or EAP-Response/AKA- Reauthentication. Because thecases definedAT_MAC attribute is used inSection 4.3. It MUST NOTthese messages, AT_CHECKCODE will beincluded if AT_ANY_ID_REQ or AT_FULLAUTH_ID_REQintegrity protected with AT_MAC. The format of the AT_CHECKCODE attribute isincluded.shown below. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_CHECKCODE | Length | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Checkcode (0 or 20 bytes) | | | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ The value fieldonly containsof AT_CHECKCODE begins with two reserved bytes, which may be followed by a 20-byte checkcode. If the checkcode is not included in AT_CHECKCODE, then the attribute indicates that no EAP/AKA-Identity messages were exchanged. This may occur in both full authentication and re-authentication. The reserved bytes are set to zeroonwhen sending and ignored on reception.AT_FULLAUTH_ID_REQTheAT_FULLAUTH_ID_REQ attributecheckcode isoptional to includea hash value, calculated with SHA1 [SHA-1], over all EAP-Request/AKA-Identity andit isEAP-Response/ AKA-Identity packets exchanged in this authentication exchange. The packets are included in thecases defined in Section 4.2. It MUST NOT beorder that they were transmitted, that is, starting with the first EAP-Request/ AKA-Identity message, followed by the Arkko and Haverinen Expires 27 April, 2004 [Page 45] EAP AKA Authentication 27 October, 2003 corresponding EAP-Response/ AKA-Identity, followed by the second EAP-Request/ AKA-Identity (if used) etc. EAP packets are includedif AT_ANY_ID_REQin the hash calculation "as-is", as they were transmitted orAT_PERMANENT_ID_REQ is included. The value field only contains tworeceived. All reserved bytes,whichpadding bytes etc. that areset to zero on sendingspecified for various attributes are included as such, andignored on reception. AT_ANY_ID_REQthe receiver must not reset them to zero. No delimiter bytes, padding or any other framing are included between the EAP packets when calculating the checkcode. Messages are included in request/response pairs; in other words only full "round trips" are included. Packets that are silently discarded are not included. The EAP server must only include an EAP- Request/AKA-Identity in the calculation once it has received a corresponding response, with the same Identifier value. Retransmissions or requests to which the server does not receive response are not included. TheAT_ANY_ID_REQ attribute is optionalpeer must include the EAP-Request/AKA-Identity andit is included inthecases definedcorresponding response inSection 4.2. It MUST NOT be includedthe calculation only ifAT_PERMANENT_ID_REQthe peer receives a subsequent EAP-Request/AKA-Challenge, orAT_FULLAUTH_ID_REQ is included. The value field only contains two reserved bytes, which are set to zero ona follow-up EAP- Request/AKA-Identity with different attributes (attribute types) than in the first EAP-Request/AKA-Identity. After sendingand ignored on reception. 8.6. EAP-Response/AKA-Identity The format ofEAP- Response/AKA-Identity, if theEAP-Response/AKA-Identity packet is shown below. Arkkopeer receives another EAP-Request/AKA- Identity with the same attributes as in the previous request, then the peer's response to the first request must have been lost. In this case the peer must not include the first request andHaverinen Expiresits response insix months [Page 39] EAP AKA Authentication June 2003 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Code | Identifier | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Type | Subtype | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_IDENTITY | Length | Actual Identity Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | . Current Identity . . . | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ The semantics ofthefields is described below: Code 2 for Response Identifier See [5] Length The lengthcalculation of theEAP Response packet. Type 23 Subtype 5 for AKA-Identity Reserved Set to zero on sending, ignored on reception. AT_IDENTITYcheckcode. TheAT_IDENTITYAT_CHECKCODE attribute is optional toinclude and itimplement. It isincluded in cases definedspecified inSection 4.2order to allow protecting the EAP/ AKA-Identity messages and4.3.any future extensions to them. Thevalue field of this attribute begins with 2-byte actual identity length, which specifies the lengthimplementation ofthe identity in bytes. This fieldAT_CHECKCODE isfollowed byRECOMMENDED. If thesubscriber identityreceiver of AT_CHECKCODE implements this attribute, then theindicated actual length, in the same Network Access Identifier formatreceiver MUST check thatis used in EAP-Response/Identity, i.e. includingtheNAI realm portion. The identitycheckcode is correct. If thepermanent identity, a pseudonym identity or a re-authentication identity. The identity formatcheckcode isspecified in Section 4.1. The identity does not include any terminating null characters. Because the length ofinvalid, theattributereceiver mustbe a Arkko and Haverinen Expiresoperate as specified insix months [Page 40] EAP AKA Authentication June 2003 multiple of 4 bytes, the sender padsSection 4.4. If theidentityEAP/AKA-Identity messages are extended withzero bytes when necessary. 8.7. EAP-Request/AKA-Reauthentication The format of the EAP-Request/AKA-Reauthentication packet is shown below. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Code | Identifier | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Type | Subtype | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_IV | Length = 5 | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Initialization Vector | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_ENCR_DATA | Length | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | . Encrypted Data . . . | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |new attributes then AT_CHECKCODE| Length | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Checkcode (optional) | | | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_MAC | Length = 5 | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | | | MAC | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Code 1MUST be implemented and used. More specifically, if the server includes any other attributes than AT_PERMANENT_ID_REQ, AT_FULLAUTH_ID_REQ or AT_ANY_ID_REQ in the EAP- Request/AKA-Identity packet, then the server MUST include AT_CHECKCODE in EAP-Request/AKA-Challenge or EAP-Request/AKA- Reauthentication. If the peer includes any other attributes than AT_IDENTITY in the EAP-Response/AKA-Identity message, then the peer MUST include AT_CHECKCODE in EAP-Response/AKA-Challenge or EAP- Response/AKA-Reauthentication. If the server implements the processing of any other attribute than AT_IDENTITY forRequest Identifier See [5].the EAP-Response/AKA-Identity message, then the server MUST implement AT_CHECKCODE. In this case, if the server receives any other attribute than AT_IDENTITY in the EAP- Response/AKA-Identity message, then the server MUST check that Arkko and Haverinen Expiresin six months27 April, 2004 [Page41]46] EAP AKA AuthenticationJune27 October, 2003LengthAT_CHECKCODE is present in EAP-Response/AKA-Challenge or EAP- Response/AKA-Reauthentication. Thelength of the EAP packet. Type 23 Subtype 13 Reserved Set to zerooperation whensending, ignored on reception. AT_IV The AT_IVa mandatory attribute isMUST be included. Seemissing is specified in Section7.3. AT_ENCR_DATA The AT_ENCR_DATA4.4. Similarly, if the peer implements the processing of any other attribute than AT_PERMANENT_ID_REQ, AT_FULLAUTH_ID_REQ or AT_ANY_ID_REQ for the EAP-Request/AKA-Identity packet, then the peer MUSTbe included. See Section 7.3. The plaintext consists of nested attributes as described below.implement AT_CHECKCODE. In this case, if the peer receives any other attribute than AT_PERMANENT_ID_REQ, AT_FULLAUTH_ID_REQ or AT_ANY_ID_REQ in the EAP-Request/AKA-Identity packet, then the peer MUST check that AT_CHECKCODE is present in EAP-Request/AKA-Challenge or EAP-Request/AKA-Reauthentication. TheAT_CHECKCODEoperation when a mandatory attribute isoptional to include. See section 7.2 AT_MAC AT_MAC MUST be included. No message-specific datamissing isincludedspecified inthe MAC calculation. SeeSection7.1. The AT_IV and AT_ENCR_DATA attributes are used for communicating encrypted attributes.4.4. 7.5. AT_PERMANENT_ID_REQ Theplaintextformat of theAT_ENCR_DATA value field consists of nested attributes, which areAT_PERMANENT_ID_REQ attribute is shown below.Arkko and Haverinen Expires in six months [Page 42] EAP AKA Authentication June 20030 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+| AT_COUNTER|AT_PERM..._REQ | Length = 1 |Counter | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_NONCE_S | Length = 5 |Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+| | | | | NONCE_S | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_NEXT_REAU..| Length | Actual Re-Auth Identity Length| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | . Next Re-authentication Username . . . | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_PADDING | Length | Padding... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ AT_COUNTER The AT_COUNTER attribute MUST be included.Thevalue field consistsuse ofa 16-bit unsigned integer counter value, representedthe AT_PERMANENT_ID_REQ is defined innetwork byte order. AT_NONCE_S The AT_NONCE_S attribute MUST be included.Section 4.1. The value field only contains two reservedbytes followed by a random number generated by the server (16 bytes) freshly for this EAP/AKA re- authentication. The random number is used as challenge for the client and also a seed value for the new keying material. The reserved bytes are set to zero upon sending and ignored upon reception. AT_NEXT_REAUTH_ID The AT_NEXT_REAUTH_ID attribute is optional to include. The attribute is described in Section 8.1. AT_PADDING The AT_PADDING attribute is optional to include. See section 7.3 8.8. EAP-Response/AKA-Reauthentication Arkko and Haverinen Expires in six months [Page 43] EAP AKA Authentication June 2003bytes, which are set to zero on sending and ignored on reception. 7.6. AT_ANY_ID_REQ The format of theEAP-Response/AKA-Reauthentication packetAT_ANY_ID_REQ attribute is shown below. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+| Code | Identifier | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Type | Subtype | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_IV | Length = 5 | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Initialization Vector | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_ENCR_DATA | Length | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | . Encrypted Data . . . | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_CHECKCODE | Length | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Checkcode (optional) | | | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_MAC|AT_ANY_ID_REQ | Length =51 | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+| | | | | MAC | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Code 2 for Response Identifier See [5]. Length The length of the EAP packet. Arkko and Haverinen Expires in six months [Page 44] EAP AKA Authentication June 2003 Type 23 Subtype 13 Reserved Set to zero when sending, ignored on reception. AT_IV The AT_IV attribute is MUST be included. See Section 7.3. AT_ENCR_DATA The AT_ENCR_DATA attribute MUST be included. See Section 7.3.Theplaintext consistsuse ofnested attributes as described below. AT_CHECKCODE The AT_CHECKCODE attribute is optional to include. See section 7.2 AT_MAC For EAP-Response/AKA-Reauthentication, the MAC code is calculated overthefollowing data: EAP packet| NONCE_S The EAP packetAT_ANY_ID_REQ isrepresented as specifieddefined in Section7.1. It is followed by the 16-byte NONCE_S value from the server's AT_NONCE_S attribute. The AT_IV and AT_ENCR_DATA attributes are used for communicating encrypted attributes.4.1. Theplaintext of the AT_ENCR_DATAvalue fieldconsists of nested attributes,only contains two reserved bytes, which are set to zero on sending and ignored on reception. 7.7. AT_FULLAUTH_ID_REQ The format of the AT_FULLAUTH_ID_REQ attribute is shown below. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |AT_ANY_ID_REQ |AT_COUNTER | Length = 1 | Counter | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_COUNTER...|Length = 1 | Reserved |+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_PADDING | Length | Padding... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++---------------+---------------+-------------------------------+ Arkko and Haverinen Expiresin six months27 April, 2004 [Page45]47] EAP AKA AuthenticationJune27 October, 2003AT_COUNTER The AT_COUNTER attribute MUST be included.Theformatuse ofthis attributethe AT_FULLAUTH_ID_REQ isspecifieddefined in Section8.7. AT_COUNTER_TOO_SMALL4.1. TheAT_COUNTER_TOO_SMALL attribute is optionalvalue field only contains two reserved bytes, which are set toinclude,zero on sending andit is included in cases specified in Section 5. AT_PADDINGignored on reception. 7.8. AT_IDENTITY TheAT_PADDINGformat of the AT_IDENTITY attribute isoptional to include. See section 7.3 8.9. EAP/AKA Notificationsshown below. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_IDENTITY | Length | Actual Identity Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | . Identity . . . | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ TheEAP-Request/Notification, specified in [5], can be used to convey a displayable message from the authenticator to the client. Because these messages are textual messages, it may be hard for the client to present them in the user's preferred language. Therefore, EAP/AKA uses a separate EAP/AKA message subtype to transmit localizable notification codes insteaduse of theEAP- Request/Notification packet. The EAP server MAY issue an EAP-Request/AKA-Notification packet to the client.AT_IDENTITY is defined in Section 4.1. Theclient MAY show a notification message to the user andvalue field of this attribute begins with 2-byte actual identity length, which specifies theclient MUST respond tolength of theEAP server with an EAP- Response/AKA-Notification packet, even ifidentity in bytes. This field is followed by theclient did not recognizesubscriber identity of thenotification code.indicated actual length. Thenotification codeidentity is the permanent identity, a16-bit number.pseudonym identity or a re-authentication identity. Themost significant bitidentity format iscalled the Failure bit (F bit). The F bit specifies whether the notification implies failure.specified in Section 4.1.1. Thecode values with the F bit set to zero (code values 0...32767) aresame identity format is usedon unsuccessful cases. The receipt of a notification code from this range implies failed authentication, soin theclient can useAT_IDENTITY attribute and thenotification as a failure indication. After receivingEAP-Response/Identity packet, with theEAP-Response/AKA-Notification for these notification codes,exception that theserverpeer MUSTsendNOT decorate theEAP-Failure packet.identity it includes in AT_IDENTITY. Thereceiptidentity does not include any terminating null characters. Because the length of the attribute must be anotification code withmultiple of 4 bytes, theF bit set to one (values 32768...65536) does not imply failure, sosender pads theclient MUST NOT change its stateidentity with zero bytes whenit receives such a notification.necessary. 7.9. AT_RAND Thesecond most significant bitformat of thenotification codeAT_RAND attribute iscalled the Phase bit (P bit). It specifies at which phaseshown below. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_RAND | Length = 5 | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | RAND | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ The value field of this attribute contains two reserved bytes followed by theEAP/AKA exchange the notification can be used. If the P bit isAKA RAND parameter, 16 bytes (128 bits). The reserved bytes are set tozero, the notification can only be used after the EAP/AKA-Challenge round in full authentication or the EAP/AKA-Reauthentication round in re- autentication. For these notifications, the AT_MAC attribute MUST be included in both EAP-Request/AKA-Notificationzero when sending andEAP-Response/AKA- Notification.ignored on reception. Arkko and Haverinen Expiresin six months27 April, 2004 [Page46]48] EAP AKA AuthenticationJune27 October, 2003If7.10. AT_AUTN The format of theP bitAT_AUTN attribute is shown below. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_AUTN | Length = 5 | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | AUTN | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ The value field of this attribute contains two reserved bytes followed by the AKA AUTN parameter, 16 bytes (128 bits). The reserved bytes are set to zero when sending and ignored on reception. 7.11. AT_RES The format of the AT_RES attribute is shown below. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_RES | Length | RES Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-| | | | RES | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ The value field of this attribute begins with thenotification code2-byte RES Length, which isset to one,identifies thenotification can only by used beforeexact length of theEAP/AKA-Challenge roundRES infull authentication orbits. The RES length is followed by theEAP/AKA-Reauthentication round in reauthentication. For these notifications,UMTS AKA RES parameter. According to [TS 33.105] theAT_MAC attribute MUST NOT be included in either EAP-Request/AKA-Notification or EAP- Response/AKA-Notification. Somelength of thenotification codes are authorization relatedAKA RES can vary between 32 andhence not usually considered as part of128 bits. Because theresponsibility of an EAP method. However, they are included as partlength ofEAP/AKA because there are currently no other ways to convey this information totheuser inAT_RES attribute must be alocalizable way, andmultiple of 4 bytes, theinformation is potentially useful forsender pads theuser. An EAP/AKA server implementation may decide never to send these EAP/AKA notifications.RES with zero bits where necessary. 7.12. AT_AUTS The format of theEAP-Request/AKA-Notification packetAT_AUTS attribute is shown below. Arkko and Haverinen Expires 27 April, 2004 [Page 49] EAP AKA Authentication 27 October, 2003 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Code+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+| |IdentifierAT_AUTS | Length = 4 |+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Type|Subtype+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |Reserved|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |AT_NOTIFICATION| Length = 1 |F|P| Notification Code|+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|AT_MACAUTS |Length = 5|Reserved| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ The value field of this attribute contains the AKA AUTS parameter, 112 bits (14 bytes). 7.13. AT_NEXT_PSEUDONYM The format of the AT_NEXT_PSEUDONYM attribute is shown below. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_NEXT_PSEU..| Length | Actual Pseudonym Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |MAC | | |. Next Pseudonym . . . | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+Code 1 for Request Identifier See [5]. Length The length of the EAP packet. Type 23 Arkko and Haverinen Expires in six months [Page 47] EAP AKA Authentication June 2003 Subtype 12 Reserved Set to zero when sending, ignored on reception. AT_NOTIFICATION The AT_NOTIFICATION attribute MUST be included.The value field of this attributecontains a two-byte notification code. The first and second bit (F and P)begins with 2-byte actual pseudonym length which specifies the length of thenotification code are interpreted as described above. Thefollowingcode values have been reserved. The descriptions below illustrate the semantics ofpseudonym in bytes. This field is followed by a pseudonym username that thenotifications. The client implementation MAYpeer can usedifferent wordings when presenting the notifications toin theuser.next authentication. The"requested service" depends on the environment where EAP/AKA is applied. 1026 - User has been temporarily denied access tousername MUST NOT include any realm portion. The username does not include any terminating null characters. Because therequested service (Implies failure, used afterlength of thechallenge round) 1031 - User has not subscribed toattribute must be a multiple of 4 bytes, therequested service (Implies failure, used aftersender pads thechallenge round) AT_MAC AT_MAC is included in cases described above. No message-specific data is included inpseudonym with zero bytes when necessary. The username encoding MUST follow theMAC calculation. See Section 7.1.UTF-8 transformation format [RFC2279]. 7.14. AT_NEXT_REAUTH_ID The format of theEAP-Response/AKA-Notification packet is shown below. Because this packet is only an acknowledgement of EAP- Request/AKA-Notification, it does not contain any mandatory attributes.AT_NEXT_REAUTH_ID attribute is shown below. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |Code | Identifier | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Type | Subtype | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_MAC |AT_NEXT_REAU..| Length= 5 | Reserved| Actual Re-Auth Identity Length| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | || | | MAC | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Arkko and Haverinen Expires in six months [Page 48] EAP AKA Authentication June 2003 Code 2 for Response Identifier See [5]. Length The length of the EAP packet. Type 23 Subtype 12 Reserved Set to zero when sending, ignored on reception. AT_MAC AT_MAC is included in cases described above. No message-specific data is included in the MAC calculation. See Section 7.1. 9. Error Cases and the Usage of EAP-Failure and EAP-Success 9.1. Processing Erroneous Packets In general, if an EAP/AKA client or server implementation detects an error in a received EAP/AKA packet, the EAP/AKA implementation silently ignores the EAP packet, does not change its state and does not send any EAP messages to its peer. Examples of such errors, specified in detail elsewhere in this document, are an invalid AT_MAC value, a mandatory attribute is missing, illegal attributes included and an unrecognized non-skippable attribute. If no valid packets are received, the authentication exchange will eventually time out. If the EAP/AKA client receives an EAP/AKA Request of an unrecognized subtype, the EAP/AKA client MUST silently discard the EAP request. 9.2. EAP-Failure As normally in EAP, the EAP server sends the EAP-Failure packet to the client when the authentication procedure fails on the EAP Server. In EAP/AKA, this may occur for example if the EAP server does not recognize the user identity, or if the EAP server is not. Next Re-authentication Username . . . | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Arkko and Haverinen Expiresin six months27 April, 2004 [Page49]50] EAP AKA AuthenticationJune27 October, 2003able to obtainThe value field of this attribute begins with 2-byte actual re- authenticationvectors foridentity length which specifies thesubscriber orlength of theauthentication exchange times out. The server can send EAP-Failure at any timefollowing re-authentication identity inthe EAP exchange. The client MUST process EAP-Failure. 9.3. EAP-Success On full authentication, the server can only send EAP-Success after the EAP/AKA-Challenge round. The client MUST silently discard any EAP-Success packets if they are received before the client has successfully authenticated the server and sent the EAP-Response/AKA- Challenge packet. On re-authentication, EAP-Success can only be sent after the EAP/AKA-Reauthentication round. The client MUST silently discard any EAP-Success packets if they are received before the client has successfully authenticated the server and sent the EAP-Response/AKA- Reauthentication packet. If the client receives an EAP/AKA notification (section 8.9) that indicates failure, then the client MUST no longer accept the EAP- Success packet even if the server authentication was successfully completed. 10. Key Derivationbytes. Thissection specifies how EAP AKA keying materialfield isderived. On EAP AKA full authentication,followed by aMaster Key (MK) is derived fromre-authentication identity that theunderlying UMTS AKA values (IK and CK keys) andpeer can use in theIdentitynext re-authentication, asfollows. MK = SHA1(Identity|IK|CK) The hash function SHA1 is specifieddescribed in[10].Section 4.2. In environments where a realm portion is required, theformula above, the "|" character denotes concatenation. Identity denotes the userre- authentication identity includes both a username portion and a realm name portion. The re-authentication identitystring withoutdoes not include any terminating null characters.It isBecause theidentity fromlength of theAT_IDENTITYattributefrommust be a multiple of 4 bytes, thelast EAP- Response/AKA-Identity packet, or, if AT_IDENTITY was not used,sender pads the re-authentication identityfromwith zero bytes when necessary. The identity encoding MUST follow theEAP-Response/Identity packet.UTF-8 transformation format [RFC2279]. 7.15. AT_COUNTER TheMaster Keyformat of the AT_COUNTER attribute isfed into a Pseudo-Random number Function (PRF), which generates separate Transient EAP Keys (TEKs) for protecting EAP AKA packets, as well as a Master Session Key (MSK) for link layer security and an Extended Master Session Key (EMSK) for other purposes. On re-authentication,shown below. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_COUNTER | Length = 1 | Counter | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ The value field of thesame TEKs will be used for protecting EAP packets, but a new MSK andAT_COUNTER attribute consists of anew EMSK will be derived from the original MK and new values exchanged16-bit unsigned integer counter value, represented in network byte order. 7.16. AT_COUNTER_TOO_SMALL The format of there- authentication. EAP AKA requiresAT_COUNTER_TOO_SMALL attribute is shown below. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_COUNTER...| Length = 1 | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ The value field of this attribute consists of twoTEKs for its own purposes, a message authentication key K_aut and an encryption key K_encr,reserved bytes, which are set tobe usedzero upon sending and ignored upon reception. 7.17. AT_NONCE_S The format of the AT_NONCE_S attribute is shown below. Arkko and Haverinen Expiresin six months27 April, 2004 [Page50]51] EAP AKA AuthenticationJune27 October, 2003with the AT_MAC and AT_ENCR_DATA attributes. The same K_aut and K_encr keys are used in full authentication and subsequent re- authentications. Key derivation is based on the pseudo-random number generator specified in NIST Federal Information Processing Standards Publication 186-2 [14]. The pseudo-random number generator is specified in the change notice0 1(2001 October 5)of [14] (Algorithm 1). As specified in the change notice (page 74), when Algorithm2 3 0 1is used as a general-purpose random number generator, the "mod q" term in step 3.2 is omitted.2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_COUNTER | Length = 1 | Counter | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AT_NONCE_S | Length = 5 | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | | | NONCE_S | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Thefunction G used in the algorithm is constructed via Secure Hash Standard as specified in Appendix 3.3value field of thestandard. For convenience, the pseudo-random number algorithm with the correct modification is cited in Annex A. 160-bit XKEY and XVAL values are used, so b = 160. On full authentication,AT_NONCE_S attribute contains two reserved bytes followed by a random number generated by theMaster Keyserver (16 bytes) freshly for this EAP/AKA re-authentication. The random number is used as challenge for theinitial secretpeer and also a seed valueXKEYfor the new keying material. Theoptional user input values (XSEED_j) in Step 3.1reserved bytes are set tozero. The resulting 320-bit random numbers x_0, x_1, ..., x_m-1 are concatenated and partitioned into suitable-sized chunkszero upon sending andused as keys in the following order: K_encr (128 bits), K_aut (128 bits), Master Session Key (64 bytes), Extended Master Session Key (64 bytes). On re-authentication,ignored upon reception. The server MUST choose thesame pseudo-random number generator can be usedNONCE_S value freshly for each EAP/AKA re-authentication exchange. The server SHOULD use a good source of randomness to generatea new Master Session Key and a new Extended Master Session Key.NONCE_S. Please see [RFC 1750] for more information about generating random numbers for security applications. 7.18. AT_NOTIFICATION Theseed value XKEY' is calculated as follows: XKEY' = SHA1(Identity|counter|NONCE_S|MK) In the formula above, the Identity denotes the re-authentication user identity, without any terminating null characters, fromformat of theAT_IDENTITYAT_NOTIFICATION attribute is shown below. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |AT_NOTIFICATION| Length = 1 |F|P| Notification Code | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ The value field ofthe EAP-Response/AKA-Identity packet, or, if EAP-Response/AKA-Identity was not used on re-authentication, the identity string from the EAP-Response/Identity packet.this attribute contains a two-byte notification code. Thecounter denotesfirst and second bit (F and P) of thecounter value from AT_COUNTER attribute usednotification code are interpreted as described inthe EAP- Response/AKA-Reauthentication packet.Section 4.3. Thecounter is used in network byte order. NONCE_S denotes the 16-byte NONCE_S value fromnotification code values listed below have been reserved. The descriptions below illustrate theAT_NONCE_S attribute used insemantics of theEAP-Request/AKA-Reauthentication packet.notifications. TheMK ispeer implementation MAY use different wordings when presenting theMaster Key fromnotifications to thepreceding full authentication.user. Thepseudo-random number generator is run with"requested service" depends on thenew seed value XKEY', andenvironment where EAP/AKA is applied. 1026 - User has been temporarily denied access to theresulting 320-bit random numbers x_0, x_1, ..., x_m-1 are concatenated and partitioned into 64-byte chunks andrequested service. (Implies failure, usedas the new Master Session Key andafter thenew Extended Master Session Key. The first 32 bytes ofchallenge round) 1031 - User has not subscribed to theMSK can berequested service (implies failure, usedasafter thePairwise Master Key (PMK) for IEEE 802.11i.challenge round) Arkko and Haverinen Expiresin six months27 April, 2004 [Page51]52] EAP AKA AuthenticationJune27 October, 2003When the RADIUS attributes specified in [16] are used to transport keying material, then the first 32 bytes7.19. AT_CLIENT_ERROR_CODE The format of theMSK correspond to MS-MPPE-RECV-KEY and the second 32 bytes to MS-MPPE-SEND-KEY. In this case, only 64 bytesAT_CLIENT_ERROR_CODE attribute is shown below. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |AT_CLIENT_ERR..| Length = 1 | Client Error Code | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ The value field ofkeying material are used. 11.this attribute contains a two-byte client error code. The following error code values have been reserved. 0 "unable to process packet": a general error code 8. IANA and Protocol Numbering Considerations The realm name "owlan.org" has been reserved for NAI realm names generated from the IMSI. IANA has assigned the number 23 for EAP AKA authentication. EAP AKA messages include a Subtype field. The following Subtypes are specified: AKA-Challenge...................................1 AKA-Authentication-Reject.......................2 AKA-Synchronization-Failure.....................4 AKA-Identity....................................5 AKA-Notification...............................12 AKA-Reauthentication...........................13 AKA-Client-Error...............................14 Arkko and Haverinen Expires 27 April, 2004 [Page 53] EAP AKA Authentication 27 October, 2003 The Subtype-specific data is composed of attributes, which have attribute type numbers. The following attribute types are specified: AT_RAND.........................................1 AT_AUTN.........................................2 AT_RES..........................................3 AT_AUTS.........................................4 AT_PADDING......................................6 AT_PERMANENT_ID_REQ............................10 AT_MAC.........................................11 AT_NOTIFICATION................................12 AT_ANY_ID_REQ..................................13 AT_IDENTITY....................................14 AT_FULLAUTH_ID_REQ.............................17 AT_COUNTER.....................................19 AT_COUNTER_TOO_SMALL...........................20 AT_NONCE_S.....................................21 AT_CLIENT_ERROR_CODE...........................22 AT_IV.........................................129 AT_ENCR_DATA..................................130 AT_NEXT_PSEUDONYM.............................132 AT_NEXT_REAUTH_ID.............................133 AT_CHECKCODE..................................134 The AT_NOTIFICATION attribute contains a notification code value. Values 1024, 1026 and 1031 have been specified in Section 7.18 of this document. The AT_CLIENT_ERROR_CODE attribute contains a client error code. Value 0 has been specified in Section 7.19 of this document. All requests for value assignment from the various number spaces described in this document require proper documentation, according to the "Specification Required" policy described in[17].[RFC 2434]. Requests must be specified in sufficient detail so that interoperability between independent implementations is possible. Possible forms of documentation include, but are not limited to, RFCs, the products ofArkko and Haverinen Expires in six months [Page 52] EAP AKA Authentication June 2003another standards body (e.g. 3GPP), or permanently and readily available vendor design notes.12.EAP AKA and EAP SIM [EAP SIM] are "sister" protocols with similar message structure and protocol numbering spaces. Many attributes and message Subtypes have the same protocol numbers in these two protocols. Hence, it is recommended that the same protocol number value SHOULD NOT be allocated for two different purposes in EAP AKA and EAP SIM. 9. Security Considerations TherevisedEAP base protocol[18]specification [EAP] highlights several attacks that are possible against the EAP protocol. This section discusses Arkko and Haverinen Expires 27 April, 2004 [Page 54] EAP AKA Authentication 27 October, 2003 the claimed security properties of EAP AKA as well as vulnerabilities and security recommendations.12.1.9.1. Identity Protection EAP/AKA includes optional Identity privacy support that protects the privacy of the subscriber identity against passive eavesdropping. The mechanism cannot be used on the firstconnectionexchange with a given server, when the IMSI will have to be sent in the clear. The terminal SHOULD store the pseudonym in a non-volatile memory so that it can be maintained across reboots. An active attacker that impersonates the network may use the AT_PERMANENT_ID_REQ attribute (Section4.3)1.1) to learn the subscriber's IMSI. However, as discussed in Section4.3,1.1, the terminal can refuse to send the cleartext IMSI if it believes that the network should be able to recognize the pseudonym. If theclientpeer and server cannot guarantee that the pseudonym will be maintained reliably and Identity privacy is required then additional protection from an external security mechanism such as Protected Extensible Authentication Protocol (PEAP)[19][PEAP] may be used. The benefits and the security considerations of using an external security mechanism with EAP/AKA are beyond the scope of this document.12.2.9.2. Mutual Authentication EAP/AKA provides mutual authentication via the UMTS AKA mechanisms.12.3.9.3. Key Derivation EAP/AKA supports key derivation with 128-bit effective key strength. The key hierarchy is specified in Section10.0. The Transient EAP Keys used to protect EAP AKA packets (K_encr, K_aut) and the Master Session Keys are cryptographically separate. An attacker cannot derive any non-trivial information from K_encr or K_aut based on the Master Session Key or vice versa. An attacker also cannot calculate the pre-shared secret from the UMTS AKA IK, UMTS AKA CK, EAP AKA K_encr, EAP AKA K_aut or from the Master Session Key.12.4.9.4. Brute-Force and Dictionary Attacks The effective strength of EAP/AKA values is 128 bits, and there are no known computationally feasible brute-force attacks. Because UMTSArkko and Haverinen Expires in six months [Page 53] EAP AKA Authentication June 2003AKA is not a password protocol (the pre-shared secret must not be a weak password), EAP/AKA is not vulnerable to dictionary attacks.12.5.9.5. Integrity Protection, Replay Protection and Confidentiality AT_MAC, AT_IV and AT_ENCR_DATA attributes are used to provide integrity, replay and confidentiality protection for EAP/AKA Requests and Responses. Integrity protection includes the EAP Arkko and Haverinen Expires 27 April, 2004 [Page 55] EAP AKA Authentication 27 October, 2003 header. Integrity protection (AT_MAC) is based on a keyed message authentication code. Confidentiality (AT_ENCR_DATA and AT_IV) is based on a block cipher. Because keys are not available in the beginning of the EAP methods, the AT_MAC attribute cannot be used for protecting EAP/AKA-Identity messages. However, the AT_CHECKCODE attribute can optionally be used to protect the integrity of the EAP/AKA-Identity roundtrip. On full authentication, replay protection is provided by RAND and AUTN values from the underlying UMTS AKAscheme, which makes use of the RAND and AUTN values.scheme. Onre-authentication,re- authentication, a counter and a server nonce is used to provide replay protection. The contents of the EAP-Response/Identity packet are implicitly integrity protected by including them in key derivation. Because EAP/AKA is not a tunneling method, EAP Notification, EAP Success or EAP Failure packets are not confidential, integrity protected or replay protected. On physically insecure networks, this may enable an attacker to mount denial of service attacks by sending false EAP Notification, EAP Success or EAP Failure packets. However, the attacker cannot force the peers to believe successful authentication has occurred when mutual authentication failed or has not happened yet. An eavesdropper will see the EAP Notification, EAP Success and EAP Failure packets sent in the clear. With EAP AKA, confidential information MUST NOT be transmitted in EAP Notification packets.12.6.9.6. Negotiation Attacks EAP/AKA does not protect the EAP-Response/Nak packet. Because EAP/AKA does not protect the EAP method negotiation, EAP method downgrading attacks may be possible, especially if the user uses the same identity with EAP/AKA and other EAP methods. As described in Section6,5, EAP/AKA allows the protocol to be extended by defining new attribute types. When defining such attributes, it should be noted that any extra attributes included in EAP-Request/AKA-Identity or EAP-Response/AKA-Identity packets are not included in the MACs later on, and thus some other precautions must be taken to avoid modifications to them. EAP/AKA does not support ciphersuite negotiation or EAP/AKA protocol version negotiation.Arkko and Haverinen Expires in six months [Page 54] EAP AKA Authentication June 2003 12.7.9.7. Fast Reconnect EAP/AKA includes an optional re-authentication ("fast reconnect") procedure, as recommended in[18][EAP] for EAP types that are intended for physically insecure networks.12.8.9.8. Acknowledged Result Indications Arkko and Haverinen Expires 27 April, 2004 [Page 56] EAP AKA Authentication 27 October, 2003 EAP/AKA does not provide acknowledged or integrity protected Success or Failure indications. If an EAP Success or an EAP Failure packet is lost when using EAP/AKA over an unreliable medium, and if the protocol over which EAP/AKA is transported does not address the possible loss of Success or Failure, then the peer andauthenticatorEAP server may end up having a different interpretation of the state of the authentication conversation. On physically insecure networks, an attacker may mount denial of service attacks by sending false EAP Success or EAP Failure indications. However, the attacker cannot force theclientpeer or theauthenticatorEAP server to believe successful authentication has occurred when mutual authentication failed or has not happened yet.12.9.9.9. Man-in-the-middle Attacks In order to avoid man-in-the-middle attacks and session hijacking, user data SHOULD be integrity protected on physically insecure networks. The EAP/AKA Master Session Key or keys derived from it MAY be used as the integrity protection keys, or, if an external security mechanism such as PEAP is used, then the link integrity protection keys MAY be derived by the external security mechanism. There are man-in-the-middle attacks associated with the use of any EAP method within a tunneled protocol such as PEAP, or within a sequence of EAP methods followed by each other. This specification does not address these attacks. If EAP/AKA is used with a tunneling protocol or as part of a sequence of methods, there should be cryptographic binding provided between the protocols and EAP/AKA to prevent man-in-the-middle attacks through rogue authenticators being able to setup one-way authenticated tunnels. EAP/AKA Master Session Key MAY be used to provide the cryptographic binding. However the mechanism how the binding is provided depends on the tunneling or sequencing protocol, and it is beyond the scope of this document.12.10.9.10. Generating Random Numbers An EAP/AKA implementation SHOULD use a good source of randomness to generate the random numbers required in the protocol. Please see[20][RFC 1750] for moreinformation on generating random numbers for security applications. 13. Security Claims Arkko and Haverinen Expires in six months [Page 55] EAP AKA Authentication June 2003information on generating random numbers for security applications. 10. Security Claims This section provides the security claims required by[18].[EAP]. [a] Intended use. EAP AKA is intended for use over both physically insecure networks and physically or otherwise secure networks. Applicable media include but are not limited to PPP, IEEE 802 wired networks and IEEE 802.11. Arkko and Haverinen Expires 27 April, 2004 [Page 57] EAP AKA Authentication 27 October, 2003 [b] Mechanism. EAP AKA is based on the UMTS AKA mechanism, which is an authentication and key agreement mechanism based on a symmetric 128-bit pre-shared secret. [c] Security claims. The security properties of the method are discussed in Section12.9. [d] Key strength. EAP/AKA supports key derivation with 128-bit effective key strength. [e] Description of key hierarchy. Please see Section10.0. [f] Indication of vulnerabilities. Vulnerabilities are discussed in Section12. 14.9. 11. Intellectual Property Right Notices On IPR related issues, Nokia and Ericsson refer to the their respective statements on patent licensing. Please see http://www.ietf.org/ietf/IPR/NOKIA and http://www.ietf.org/ietf/IPR/ERICSSON-General Acknowledgements and Contributions The authors wish to thank Rolf Blom of Ericsson, Bernard Aboba of Microsoft, Arne Norefors of Ericsson, N.Asokan of Nokia, Valtteri Niemi of Nokia, Kaisa Nyberg of Nokia, Jukka-Pekka Honkanen of Nokia, Pasi Eronen of Nokia, Olivier Paridaens of Alcatel and Ilkka Uusitalo of Ericsson for interesting discussions in this problem space. The attribute format is based on the extension format of Mobile IPv4[21].[RFC 3344]. Authors' Addresses Jari Arkko Ericsson 02420 Jorvas Phone: +358 40 5079256 Finland Email: jari.arkko@ericsson.com Henry Haverinen Nokia Mobile Phones P.O. Box 88 33721 Tampere Phone: +358 50 594 4899 Finland E-mail: henry.haverinen@nokia.com Arkko and Haverinen Expiresin six months27 April, 2004 [Page56]58] EAP AKA AuthenticationJune27 October, 2003 Annex A. Pseudo-Random Number Generator The "|" character denotes concatenation, and "^" denotes involution. Step 1: Choose a new, secret value for the seed-key, XKEY Step 2: In hexadecimal notation let t = 67452301 EFCDAB89 98BADCFE 10325476 C3D2E1F0 This is the initial value for H0|H1|H2|H3|H4 in the FIPS SHS[10][SHA-1] Step 3: For j = 0 to m - 1 do 3.1 XSEED_j = 0 /* no optional user input */ 3.2 For i = 0 to 1 do a. XVAL = (XKEY + XSEED_j) mod 2^b b. w_i = G(t, XVAL) c. XKEY = (1 + XKEY + w_i) mod 2^b 3.3 x_j = w_0|w_1 Arkko and Haverinen Expiresin six months27 April, 2004 [Page57]59] EAP AKA AuthenticationJune27 October, 2003 Normative References[1][TS 33.102] 3GPP Technical Specification 3GPP TS 33.102 V5.1.0: "Technical Specification Group Services and System Aspects; 3G Security; Security Architecture (Release 5)", 3rd Generation Partnership Project, December 2002.(NORMATIVE) [2] IEEE P802.1X/D11, "Standards for Local Area and Metropolitan Area Networks: Standard for Port Based Network Access Control", March 2001. (INFORMATIVE) [3] IEEE Draft 802.11eS/D1, "Draft Supplement to STANDARD FOR Telecommunications and Information Exchange between Systems - LAN/MAN Specific Requirements - Part 11: Wireless Medium Access Control (MAC) and physical layer (PHY) specifications: Specification for Enhanced Security", March 2001. (INFORMATIVE) [4][RFC 2486] Aboba, B. and M. Beadles, "The Network Access Identifier", RFC 2486, January 1999.(NORMATIVE) [5][EAP] L.Blunk, J. Vollbrecht, "PPP ExtensibleBlunk et al., "Extensible Authentication Protocol (EAP)",RFC 2284, March 1998. (NORMATIVE) [6]draft-ietf-eap-rfc2284bis-05.txt, work-in-progress, September 2003. [RFC 2119] S. Bradner, "Key words for use in RFCs to indicate Requirement Levels", RFC 2119, March 1997.(NORMATIVE) [7][TS 23.003] 3GPP Technical Specification 3GPP TS 23.003 V5.5.1: "3rd Generation Parnership Project; Technical Specification Group Core Network; Numbering, addressing and identification (Release 5)", 3rd GenerationParnership Project, January 2003 (NORMATIVE) [8] Draft 3GPP Technical Specification 3GPP TS 23.234 V 1.4.0: "Technical Specification Group Services and System Aspects; 3GPP system to Wireless Local Area Network (WLAN) Interworking; System Description", 3rd GenerationPartnership Project,work in progress,January2003. (INFORMATIVE) [9]2003 [RFC 2104] H. Krawczyk, M. Bellare, R. Canetti, "HMAC: Keyed-Hashing for Message Authentication", RFC2104, February 1997.(NORMATIVE) [10][SHA-1] Federal Information Processing Standard (FIPS) Publication 180-1, "Secure Hash Standard," National Institute of Standards and Technology, U.S. Department of Commerce, April 17, 1995.(NORMATIVE) [11][AES] Federal Information ProcessingStandardStandards (FIPS)draft standard,Publication 197, "Advanced Encryption Standard (AES)",Arkko and Haverinen Expires in six months [Page 58] EAP AKA Authentication June 2003 http://csrc.nist.gov/publications/drafts/dfips-AES.pdf, September 2001. (NORMATIVE) [12] USNationalBureauInstitute ofStandards, "DESStandards and Technology, November 26, 2001. http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf [CBC] NIST Special Publication 800-38A, "Recommendation for Block Cipher Modes ofOperation", Federal Information Processing Standard (FIPS) Publication 81,Operation - Methods and Techniques", National Institute of Standards and Technology, December1980. (NORMATIVE) [13]2001. http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf [TS 33.105] 3GPP Technical Specification 3GPP TS 33.105 4.1.0: "Technical Specification Group Services and System Aspects; 3G Security; Cryptographic Algorithm Requirements (Release 4)", 3rd Generation Partnership Project, June 2001(NORMATIVE) [14][PRF] Federal Information Processing Standards (FIPS) Publication 186-2 (with change notice), "Digital Signature Standard (DSS)", National Institute of Standards and Technology, January 27,2000, (NORMATIVE)2000 Available on-line at:http://csrc.nist.gov/publications/fips/fips186-2/ fips186-2-change1.pdf [15] B. Aboba, D. Simon, "PPPhttp://csrc.nist.gov/publications/fips/fips186-2/fips186-2- change1.pdf Arkko and Haverinen Expires 27 April, 2004 [Page 60] EAPTLSAKA AuthenticationProtocol", RFC 2716, October 1999 (INFORMATIVE) [16] G. Zorn, "Microsoft Vendor-specific RADIUS Attributes", RFC 2548, March 1999 (INFORMATIVE) [17]27 October, 2003 [RFC 2434] T. Narten, H. Alvestrand, "Guidelines for Writing an IANA Considerations Section in RFCs", RFC 2434, October 1998.(NORMATIVE) [18] L. Blunk, J. Vollbrecht, B. Aboba, "Extensible Authentication Protocol (EAP)", draft-ietf-pppext-rfc2284bis-07.txt, work-in- progress, October 2002. (NORMATIVE) [19]Informative References [RFC 2548] G. Zorn, "Microsoft Vendor-specific RADIUS Attributes", RFC 2548, March 1999 [PEAP] H. Andersson, S. Josefsson, G. Zorn, D. Simon, A. Palekar, "Protected EAP Protocol (PEAP)",draft-josefsson-pppext-eap- tls-eap-05.txt,draft-josefsson-pppext-eap-tls-eap- 05.txt, work-in-progress, September 2002.(IMFORMATIVE) [20][RFC 1750] D. Eastlake, 3rd, S. Crocker, J. Schiller, "Randomness Recommendations for Security", RFC 1750 (Informational), December 1994.(INFORMATIVE) [21][RFC 3344] C. Perkins (editor), "IP Mobility Support", RFC 3344, August 2002.(INFORMATIVE)[EAP SIM] H. Haverinen, J. Salowey, "EAP SIM Authentication", draft- haverinen-pppext-eap-sim-12.txt, October 2003, work in progress [TS 23.234] Draft 3GPP Technical Specification 3GPP TS 23.234 V 1.4.0: "Technical Specification Group Services and System Aspects; 3GPP system to Wireless Local Area Network (WLAN) Interworking; System Description", 3rd Generation Partnership Project, work in progress, January 2003. Arkko and Haverinen Expiresin six months27 April, 2004 [Page59]61] ----