Added gnutls_session_get_id2().
[gnutls.git] / doc / protocol / draft-ietf-tls-psk-09.txt
blobf606c2d9680fc8425d496dfeb3e09bb5cd50a9f7
3 TLS Working Group                                         P. Eronen, Ed.
4 Internet-Draft                                                     Nokia
5 Expires: December 20, 2005                            H. Tschofenig, Ed.
6                                                                  Siemens
7                                                            June 21, 2005
10      Pre-Shared Key Ciphersuites for Transport Layer Security (TLS)
11                        draft-ietf-tls-psk-09.txt
13 Status of this Memo
15    By submitting this Internet-Draft, each author represents that any
16    applicable patent or other IPR claims of which he or she is aware
17    have been or will be disclosed, and any of which he or she becomes
18    aware will be disclosed, in accordance with Section 6 of BCP 79.
20    Internet-Drafts are working documents of the Internet Engineering
21    Task Force (IETF), its areas, and its working groups.  Note that
22    other groups may also distribute working documents as
23    Internet-Drafts.
25    Internet-Drafts are draft documents valid for a maximum of six months
26    and may be updated, replaced, or obsoleted by other documents at any
27    time.  It is inappropriate to use Internet-Drafts as reference
28    material or to cite them other than as "work in progress."
30    The list of current Internet-Drafts can be accessed at
31    http://www.ietf.org/ietf/1id-abstracts.txt.
33    The list of Internet-Draft Shadow Directories can be accessed at
34    http://www.ietf.org/shadow.html.
36    This Internet-Draft will expire on December 20, 2005.
38 Copyright Notice
40    Copyright (C) The Internet Society (2005).
42 Abstract
44    This document specifies three sets of new ciphersuites for the
45    Transport Layer Security (TLS) protocol to support authentication
46    based on pre-shared keys.  These pre-shared keys are symmetric keys,
47    shared in advance among the communicating parties.  The first set of
48    ciphersuites uses only symmetric key operations for authentication.
49    The second set uses a Diffie-Hellman exchange authenticated with a
50    pre-shared key; and the third set combines public key authentication
51    of the server with pre-shared key authentication of the client.
58 Eronen & Tschofenig     Expires December 20, 2005               [Page 1]
60 Internet-Draft          PSK Ciphersuites for TLS           June 21, 2005
63 Table of Contents
65    1.  Introduction . . . . . . . . . . . . . . . . . . . . . . . . .  3
66        1.1  Applicability statement . . . . . . . . . . . . . . . . .  4
67        1.2  Conventions used in this document . . . . . . . . . . . .  4
68    2.  PSK key exchange algorithm . . . . . . . . . . . . . . . . . .  5
69    3.  DHE_PSK key exchange algorithm . . . . . . . . . . . . . . . .  7
70    4.  RSA_PSK key exchange algorithm . . . . . . . . . . . . . . . .  8
71    5.  Conformance requirements . . . . . . . . . . . . . . . . . . .  9
72        5.1  PSK identity encoding . . . . . . . . . . . . . . . . . .  9
73        5.2  Identity hint . . . . . . . . . . . . . . . . . . . . . . 10
74        5.3  Requirements for TLS implementations  . . . . . . . . . . 10
75        5.4  Requirements for management interfaces  . . . . . . . . . 10
76    6.  IANA considerations  . . . . . . . . . . . . . . . . . . . . . 11
77    7.  Security Considerations  . . . . . . . . . . . . . . . . . . . 11
78        7.1  Perfect forward secrecy (PFS) . . . . . . . . . . . . . . 11
79        7.2  Brute-force and dictionary attacks  . . . . . . . . . . . 11
80        7.3  Identity privacy  . . . . . . . . . . . . . . . . . . . . 12
81        7.4  Implementation notes  . . . . . . . . . . . . . . . . . . 12
82    8.  Acknowledgments  . . . . . . . . . . . . . . . . . . . . . . . 12
83    9.  References . . . . . . . . . . . . . . . . . . . . . . . . . . 13
84        9.1  Normative References  . . . . . . . . . . . . . . . . . . 13
85        9.2  Informative References  . . . . . . . . . . . . . . . . . 13
86    Authors' and Contributors' Addresses . . . . . . . . . . . . . . . 15
87    Appendix A.  Changelog . . . . . . . . . . . . . . . . . . . . . . 16
114 Eronen & Tschofenig     Expires December 20, 2005               [Page 2]
116 Internet-Draft          PSK Ciphersuites for TLS           June 21, 2005
119 1.  Introduction
121    Usually TLS uses public key certificates [TLS] or Kerberos [KERB] for
122    authentication.  This document describes how to use symmetric keys
123    (later called pre-shared keys or PSKs), shared in advance among the
124    communicating parties, to establish a TLS connection.
126    There are basically two reasons why one might want to do this:
128    o  First, using pre-shared keys can, depending on the ciphersuite,
129       avoid the need for public key operations.  This is useful if TLS
130       is used in performance-constrained environments with limited CPU
131       power.
133    o  Second, pre-shared keys may be more convenient from a key
134       management point of view.  For instance, in closed environments
135       where the connections are mostly configured manually in advance,
136       it may be easier to configure a PSK than to use certificates.
137       Another case is when the parties already have a mechanism for
138       setting up a shared secret key, and that mechanism could be used
139       to "bootstrap" a key for authenticating a TLS connection.
141    This document specifies three sets of new ciphersuites for TLS.
142    These ciphersuites use new key exchange algorithms, and re-use
143    existing cipher and MAC algorithms from [TLS] and [AES].  A summary
144    of these ciphersuites is shown below.
146       CipherSuite                        Key Exchange  Cipher       Hash
148       TLS_PSK_WITH_RC4_128_SHA           PSK           RC4_128       SHA
149       TLS_PSK_WITH_3DES_EDE_CBC_SHA      PSK           3DES_EDE_CBC  SHA
150       TLS_PSK_WITH_AES_128_CBC_SHA       PSK           AES_128_CBC   SHA
151       TLS_PSK_WITH_AES_256_CBC_SHA       PSK           AES_256_CBC   SHA
152       TLS_DHE_PSK_WITH_RC4_128_SHA       DHE_PSK       RC4_128       SHA
153       TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA  DHE_PSK       3DES_EDE_CBC  SHA
154       TLS_DHE_PSK_WITH_AES_128_CBC_SHA   DHE_PSK       AES_128_CBC   SHA
155       TLS_DHE_PSK_WITH_AES_256_CBC_SHA   DHE_PSK       AES_256_CBC   SHA
156       TLS_RSA_PSK_WITH_RC4_128_SHA       RSA_PSK       RC4_128       SHA
157       TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA  RSA_PSK       3DES_EDE_CBC  SHA
158       TLS_RSA_PSK_WITH_AES_128_CBC_SHA   RSA_PSK       AES_128_CBC   SHA
159       TLS_RSA_PSK_WITH_AES_256_CBC_SHA   RSA_PSK       AES_256_CBC   SHA
161    The first set of ciphersuites (with PSK key exchange algorithm),
162    defined in Section 2 use only symmetric key algorithms, and are thus
163    especially suitable for performance-constrained environments.
165    The ciphersuites in Section 3 (with DHE_PSK key exchange algorithm)
166    use a PSK to authenticate a Diffie-Hellman exchange.  These
170 Eronen & Tschofenig     Expires December 20, 2005               [Page 3]
172 Internet-Draft          PSK Ciphersuites for TLS           June 21, 2005
175    ciphersuites protect against dictionary attacks by passive
176    eavesdroppers (but not active attackers), and also provide Perfect
177    Forward Secrecy (PFS).
179    The third set of ciphersuites (with RSA_PSK key exchange algorithm),
180    defined in Section 4, combine public key based authentication of the
181    server (using RSA and certificates) with mutual authentication using
182    a PSK.
184 1.1  Applicability statement
186    The ciphersuites defined in this document are intended for a rather
187    limited set of applications, usually involving only a very small
188    number of clients and servers.  Even in such environments, other
189    alternatives may be more appropriate.
191    If the main goal is to avoid PKIs, another possibility worth
192    considering is to use self-signed certificates with public key
193    fingerprints.  Instead of manually configuring a shared secret in,
194    for instance, some configuration file, a fingerprint (hash) of the
195    other party's public key (or certificate) could be placed there
196    instead.
198    It is also possible to use the SRP (Secure Remote Password)
199    ciphersuites for shared secret authentication [SRP].  SRP was
200    designed to be used with passwords, and incorporates protection
201    against dictionary attacks.  However, it is computationally more
202    expensive than the PSK ciphersuites in Section 2.
204 1.2  Conventions used in this document
206    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
207    "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
208    document are to be interpreted as described in [KEYWORDS].
226 Eronen & Tschofenig     Expires December 20, 2005               [Page 4]
228 Internet-Draft          PSK Ciphersuites for TLS           June 21, 2005
231 2.  PSK key exchange algorithm
233    This section defines the PSK key exchange algorithm and associated
234    ciphersuites.  These ciphersuites use only symmetric key algorithms.
236    It is assumed that the reader is familiar with ordinary TLS
237    handshake, shown below.  The elements in parenthesis are not included
238    when PSK key exchange algorithm is used, and "*" indicates a
239    situation-dependent message that is not always sent.
241       Client                                               Server
242       ------                                               ------
244       ClientHello                  -------->
245                                                       ServerHello
246                                                     (Certificate)
247                                                ServerKeyExchange*
248                                              (CertificateRequest)
249                                    <--------      ServerHelloDone
250       (Certificate)
251       ClientKeyExchange
252       (CertificateVerify)
253       ChangeCipherSpec
254       Finished                     -------->
255                                                  ChangeCipherSpec
256                                    <--------             Finished
257       Application Data             <------->     Application Data
259    The client indicates its willingness to use pre-shared key
260    authentication by including one or more PSK ciphersuites in the
261    ClientHello message.  If the TLS server also wants to use pre-shared
262    keys, it selects one of the PSK ciphersuites, places the selected
263    ciphersuite in the ServerHello message, and includes an appropriate
264    ServerKeyExchange message (see below).  The Certificate and
265    CertificateRequest payloads are omitted from the response.
267    Both clients and servers may have pre-shared keys with several
268    different parties.  The client indicates which key to use by
269    including a "PSK identity" in the ClientKeyExchange message (note
270    that unlike in [SHAREDKEYS], the session_id field in ClientHello
271    message keeps its usual meaning).  To help the client in selecting
272    which identity to use, the server can provide a "PSK identity hint"
273    in the ServerKeyExchange message.  If no hint is provided, the
274    ServerKeyExchange message is omitted.  See Section 5 for more
275    detailed description of these fields.
277    The format of the ServerKeyExchange and ClientKeyExchange messages is
278    shown below.
282 Eronen & Tschofenig     Expires December 20, 2005               [Page 5]
284 Internet-Draft          PSK Ciphersuites for TLS           June 21, 2005
287       struct {
288           select (KeyExchangeAlgorithm) {
289               /* other cases for rsa, diffie_hellman, etc. */
290               case psk:  /* NEW */
291                   opaque psk_identity_hint<0..2^16-1>;
292           };
293       } ServerKeyExchange;
295       struct {
296           select (KeyExchangeAlgorithm) {
297               /* other cases for rsa, diffie_hellman, etc. */
298               case psk:   /* NEW */
299                   opaque psk_identity<0..2^16-1>;
300           } exchange_keys;
301       } ClientKeyExchange;
303    The premaster secret is formed as follows: if the PSK is N octets
304    long, concatenate a uint16 with the value N, N zero octets, a second
305    uint16 with the value N, and the PSK itself.
307       Note 1: All the ciphersuites in this document share the same
308       general structure for the premaster secret, namely
310          struct {
311              opaque other_secret<0..2^16-1>;
312              opaque psk<0..2^16-1>;
313          };
315       Here "other_secret" is either zeroes (plain PSK case), or comes
316       from the Diffie-Hellman or RSA exchange (DHE_PSK and RSA_PSK,
317       respectively).  See Sections 3 and 4 for a more detailed
318       description.
320       Note 2: Using zeroes for "other_secret" effectively means that
321       only the HMAC-SHA1 part (but not the HMAC-MD5 part) of the TLS PRF
322       is used when constructing the master secret.  This was considered
323       more elegant from an analytical viewpoint than, for instance,
324       using the same key for both the HMAC-MD5 and HMAC-SHA1 parts.  See
325       [KRAWCZYK] for a more detailed rationale.
327    The TLS handshake is authenticated using the Finished messages as
328    usual.
330    If the server does not recognize the PSK identity, it MAY respond
331    with an "unknown_psk_identity" alert message.  Alternatively, if the
332    server wishes to hide the fact that the PSK identity was not known,
333    it MAY continue the protocol as if the PSK identity existed but the
334    key was incorrect: that is, respond with a "decrypt_error" alert.
338 Eronen & Tschofenig     Expires December 20, 2005               [Page 6]
340 Internet-Draft          PSK Ciphersuites for TLS           June 21, 2005
343 3.  DHE_PSK key exchange algorithm
345    This section defines additional ciphersuites that use a PSK to
346    authenticate a Diffie-Hellman exchange.  These ciphersuites give some
347    additional protection against dictionary attacks, and also provide
348    Perfect Forward Secrecy (PFS).  See Section 7 for discussion of
349    related security considerations.
351    When these ciphersuites are used, the ServerKeyExchange and
352    ClientKeyExchange messages also include the Diffie-Hellman
353    parameters.  The PSK identity and identity hint fields have the same
354    meaning as in the previous section (note that the ServerKeyExchange
355    message is always sent even if no PSK identity hint is provided).
357    The format of the ServerKeyExchange and ClientKeyExchange messages is
358    shown below.
360       struct {
361           select (KeyExchangeAlgorithm) {
362               /* other cases for rsa, diffie_hellman, etc. */
363               case diffie_hellman_psk:  /* NEW */
364                   opaque psk_identity_hint<0..2^16-1>;
365                   ServerDHParams params;
366           };
367       } ServerKeyExchange;
369       struct {
370           select (KeyExchangeAlgorithm) {
371               /* other cases for rsa, diffie_hellman, etc. */
372               case diffie_hellman_psk:   /* NEW */
373                   opaque psk_identity<0..2^16-1>;
374                   ClientDiffieHellmanPublic public;
375           } exchange_keys;
376       } ClientKeyExchange;
378    The premaster secret is formed as follows.  First, perform the
379    Diffie-Hellman computation in the same way as for other
380    Diffie-Hellman based ciphersuites in [TLS].  Let Z be the value
381    produced by this computation (with leading zero bytes stripped as in
382    other Diffie-Hellman based ciphersuites).  Concatenate a uint16
383    containing the length of Z (in octets), Z itself, a uint16 containing
384    the length of the PSK (in octets), and the PSK itself.
386    This corresponds to the general structure for the premaster secrets
387    (see Note 1 in Section 2) in this document, with "other_secret"
388    containing Z.
394 Eronen & Tschofenig     Expires December 20, 2005               [Page 7]
396 Internet-Draft          PSK Ciphersuites for TLS           June 21, 2005
399 4.  RSA_PSK key exchange algorithm
401    The ciphersuites in this section use RSA and certificates to
402    authenticate the server, in addition to using a PSK.
404    As in normal RSA ciphersuites, the server must send a Certificate
405    message.  The format of the ServerKeyExchange and ClientKeyExchange
406    messages is shown below.  If no PSK identity hint is provided, the
407    ServerKeyExchange message is omitted.
409       struct {
410           select (KeyExchangeAlgorithm) {
411               /* other cases for rsa, diffie_hellman, etc. */
412               case rsa_psk:  /* NEW */
413                   opaque psk_identity_hint<0..2^16-1>;
414           };
415       } ServerKeyExchange;
417       struct {
418           select (KeyExchangeAlgorithm) {
419               /* other cases for rsa, diffie_hellman, etc. */
420               case rsa_psk:   /* NEW */
421                   opaque psk_identity<0..2^16-1>;
422                   EncryptedPreMasterSecret;
423           } exchange_keys;
424       } ClientKeyExchange;
426    The EncryptedPreMasterSecret field sent from the client to the server
427    contains a 2-byte version number and a 46-byte random value,
428    encrypted using the server's RSA public key as described in Section
429    7.4.7.1 of [TLS].  The actual premaster secret is formed by both
430    parties as follows: concatenate a uint16 with the value 48, the
431    2-byte version number and the 46-byte random value, a uint16
432    containing the length of the PSK (in octets), and the PSK itself.
433    (The premaster secret is thus 52 octets longer than the PSK.)
435    This corresponds to the general structure for the premaster secrets
436    (see Note 1 in Section 2) in this document, with "other_secret"
437    containing both the 2-byte version number and the 46-byte random
438    value.
440    Neither the normal RSA ciphersuites nor these RSA_PSK ciphersuites
441    themselves specify what the certificates contain (in addition to the
442    RSA public key), or how the certificates are to be validated.  In
443    particular, it is possible to use the RSA_PSK ciphersuites with
444    unvalidated self-signed certificates to provide somewhat similar
445    protection against dictionary attacks as the DHE_PSK ciphersuites
446    defined in Section 3.
450 Eronen & Tschofenig     Expires December 20, 2005               [Page 8]
452 Internet-Draft          PSK Ciphersuites for TLS           June 21, 2005
455 5.  Conformance requirements
457    It is expected that different types of identities are useful for
458    different applications running over TLS.  This document does not
459    therefore mandate the use of any particular type of identity (such as
460    IPv4 address or FQDN).
462    However, the TLS client and server clearly have to agree on the
463    identities and keys to be used.  To improve interoperability, this
464    document places requirements on how the identity is encoded in the
465    protocol, and what kinds of identities and keys implementations have
466    to support.
468    The requirements for implementations are divided to two categories,
469    requirements for TLS implementations and management interfaces.  In
470    this context, "TLS implementation" refers to a TLS library or module
471    that is intended to be used for several different purposes, while
472    "management interface" would typically be implemented by a particular
473    application that uses TLS.
475    This document does not specify how the server stores the keys and
476    identities, or how exactly it finds the key corresponding to the
477    identity it receives.  For instance, if the identity is a domain
478    name, it might be appropriate to do a case-insensitive lookup.  It is
479    RECOMMENDED that before looking up the key, the server processes the
480    PSK identity with a stringprep profile [STRINGPREP] appropriate for
481    the identity in question (such as Nameprep [NAMEPREP] for components
482    of domain names or SASLprep for usernames [SASLPREP]).
484 5.1  PSK identity encoding
486    The PSK identity MUST be first converted to a character string, and
487    then encoded to octets using UTF-8 [UTF8].  For instance,
489    o  IPv4 addresses are sent as dotted-decimal strings (e.g.,
490       "192.0.2.1"), not as 32-bit integers in network byte order.
492    o  Domain names are sent in their usual text form (e.g.,
493       "www.example.com" or "embedded.dot.example.net"), not in DNS
494       protocol format.
496    o  X.500 Distinguished Names are sent in their string representation
497       [LDAPDN], not as BER-encoded ASN.1.
499    This encoding is clearly not optimal for many types of identities.
500    It was chosen to avoid identity type specific parsing and encoding
501    code in implementations where the identity is configured by a person
502    using some kind of management interface.  Requiring such identity
506 Eronen & Tschofenig     Expires December 20, 2005               [Page 9]
508 Internet-Draft          PSK Ciphersuites for TLS           June 21, 2005
511    type specific code would also increase the chances for
512    interoperability problems resulting from different implementations
513    supporting different identity types.
515 5.2  Identity hint
517    In the absence of an application profile specification specifying
518    otherwise, servers SHOULD NOT provide an identity hint and clients
519    MUST ignore the identity hint field.  Applications that do use this
520    field MUST specify its contents, how the value is chosen by the TLS
521    server, and what the TLS client is expected to do with the value.
523 5.3  Requirements for TLS implementations
525    TLS implementations supporting these ciphersuites MUST support
526    arbitrary PSK identities up to 128 octets in length, and arbitrary
527    PSKs up to 64 octets in length.  Supporting longer identities and
528    keys is RECOMMENDED.
530 5.4  Requirements for management interfaces
532    In the absence of an application profile specification specifying
533    otherwise, a management interface for entering the PSK and/or PSK
534    identity MUST support the following:
536    o  Entering PSK identities consisting of up to 128 printable Unicode
537       characters.  Supporting as wide character repertoire and as long
538       identities as feasible is RECOMMENDED.
540    o  Entering PSKs up to 64 octets in length as ASCII strings and in
541       hexadecimal encoding.
562 Eronen & Tschofenig     Expires December 20, 2005              [Page 10]
564 Internet-Draft          PSK Ciphersuites for TLS           June 21, 2005
567 6.  IANA considerations
569    IANA does not currently have a registry for TLS ciphersuite or alert
570    numbers, so there are no IANA actions associated with this document.
572    For easier reference in the future, the ciphersuite numbers defined
573    in this document are summarized below.
575       CipherSuite TLS_PSK_WITH_RC4_128_SHA          = { 0x00, 0x8A };
576       CipherSuite TLS_PSK_WITH_3DES_EDE_CBC_SHA     = { 0x00, 0x8B };
577       CipherSuite TLS_PSK_WITH_AES_128_CBC_SHA      = { 0x00, 0x8C };
578       CipherSuite TLS_PSK_WITH_AES_256_CBC_SHA      = { 0x00, 0x8D };
579       CipherSuite TLS_DHE_PSK_WITH_RC4_128_SHA      = { 0x00, 0x8E };
580       CipherSuite TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA = { 0x00, 0x8F };
581       CipherSuite TLS_DHE_PSK_WITH_AES_128_CBC_SHA  = { 0x00, 0x90 };
582       CipherSuite TLS_DHE_PSK_WITH_AES_256_CBC_SHA  = { 0x00, 0x91 };
583       CipherSuite TLS_RSA_PSK_WITH_RC4_128_SHA      = { 0x00, 0x92 };
584       CipherSuite TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA = { 0x00, 0x93 };
585       CipherSuite TLS_RSA_PSK_WITH_AES_128_CBC_SHA  = { 0x00, 0x94 };
586       CipherSuite TLS_RSA_PSK_WITH_AES_256_CBC_SHA  = { 0x00, 0x95 };
588    This document also defines a new TLS alert message,
589    unknown_psk_identity(115).
591 7.  Security Considerations
593    As with all schemes involving shared keys, special care should be
594    taken to protect the shared values and to limit their exposure over
595    time.
597 7.1  Perfect forward secrecy (PFS)
599    The PSK and RSA_PSK ciphersuites defined in this document do not
600    provide Perfect Forward Secrecy (PFS).  That is, if the shared secret
601    key (in PSK ciphersuites), or both the shared secret key and the RSA
602    private key (in RSA_PSK ciphersuites), is somehow compromised, an
603    attacker can decrypt old conversations.
605    The DHE_PSK ciphersuites provide Perfect Forward Secrecy if a fresh
606    DH private key is generated for each handshake.
608 7.2  Brute-force and dictionary attacks
610    Use of a fixed shared secret of limited entropy (for example, a PSK
611    that is relatively short, or was chosen by a human and thus may
612    contain less entropy than its length would imply) may allow an
613    attacker to perform a brute-force or dictionary attack to recover the
614    secret.  This may be either an off-line attack (against a captured
618 Eronen & Tschofenig     Expires December 20, 2005              [Page 11]
620 Internet-Draft          PSK Ciphersuites for TLS           June 21, 2005
623    TLS handshake messages), or an on-line attack where the attacker
624    attempts to connect to the server and tries different keys.
626    For the PSK ciphersuites, an attacker can get the information
627    required for an off-line attack by eavesdropping a TLS handshake, or
628    by getting a valid client to attempt connection with the attacker (by
629    tricking the client to connect to wrong address, or intercepting a
630    connection attempt to the correct address, for instance).
632    For the DHE_PSK ciphersuites, an attacker can obtain the information
633    by getting a valid client to attempt connection with the attacker.
634    Passive eavesdropping alone is not sufficient.
636    For the RSA_PSK ciphersuites, only the server (authenticated using
637    RSA and certificates) can obtain sufficient information for an
638    off-line attack.
640    It is RECOMMENDED that implementations that allow the administrator
641    to manually configure the PSK also provide a functionality for
642    generating a new random PSK, taking [RANDOMNESS] into account.
644 7.3  Identity privacy
646    The PSK identity is sent in cleartext.  While using a user name or
647    other similar string as the PSK identity is the most straightforward
648    option, it may lead to problems in some environments since an
649    eavesdropper is able to identify the communicating parties.  Even
650    when the identity does not reveal any information itself, reusing the
651    same identity over time may eventually allow an attacker to perform
652    traffic analysis to identify the parties.  It should be noted that
653    this is no worse than client certificates, since they are also sent
654    in cleartext.
656 7.4  Implementation notes
658    The implementation notes in [TLS11] about correct implementation and
659    use of RSA (including Section 7.4.7.1) and Diffie-Hellman (including
660    Appendix F.1.1.3) apply to the DHE_PSK and RSA_PSK ciphersuites as
661    well.
663 8.  Acknowledgments
665    The protocol defined in this document is heavily based on work by Tim
666    Dierks and Peter Gutmann, and borrows some text from [SHAREDKEYS] and
667    [AES].  The DHE_PSK and RSA_PSK ciphersuites are based on earlier
668    work in [KEYEX].
670    Valuable feedback was also provided by Bernard Aboba, Lakshminath
674 Eronen & Tschofenig     Expires December 20, 2005              [Page 12]
676 Internet-Draft          PSK Ciphersuites for TLS           June 21, 2005
679    Dondeti, Philip Ginzboorg, Peter Gutmann, Sam Hartman, Russ Housley,
680    David Jablon, Nikos Mavroyanopoulos, Bodo Moeller, Eric Rescorla, and
681    Mika Tervonen.
683    When the first version of this draft was almost ready, the authors
684    learned that something similar had been proposed already in 1996
685    [PASSAUTH].  However, this draft is not intended for web password
686    authentication, but rather for other uses of TLS.
688 9.  References
690 9.1  Normative References
692    [AES]      Chown, P., "Advanced Encryption Standard (AES)
693               Ciphersuites for Transport Layer Security (TLS)", RFC
694               3268, June 2002.
696    [KEYWORDS] Bradner, S., "Key words for use in RFCs to Indicate
697               Requirement Levels", RFC 2119, March 1997.
699    [RANDOMNESS]
700               Eastlake, D., 3rd, Schiller, J., and S. Crocker,
701               "Randomness Requirements for Security", BCP 106, RFC 4086,
702               June 2005.
704    [TLS]      Dierks, T. and C. Allen, "The TLS Protocol Version 1.0",
705               RFC 2246, January 1999.
707    [UTF8]     Yergeau, F., "UTF-8, a transformation format of ISO
708               10646", RFC 3629, November 2003.
710 9.2  Informative References
712    [KERB]     Medvinsky, A. and M. Hur, "Addition of Kerberos Cipher
713               Suites to Transport Layer Security (TLS)", RFC 2712,
714               October 1999.
716    [KEYEX]    Badra, M., Cherkaoui, O., Hajjeh, I. and A. Serhrouchni,
717               "Pre-Shared-Key key Exchange methods for TLS",
718               draft-badra-tls-key-exchange-00 (expired), August 2004.
720    [KRAWCZYK] Krawczyk, H., "Re: TLS shared keys PRF",  message on
721               ietf-tls@lists.certicom.com mailing list 2004-01-13,
722               http://www.imc.org/ietf-tls/mail-archive/msg04098.html.
724    [LDAPDN]   Zeilenga, K., "LDAP: String Representation of
725               Distinguished Names", draft-ietf-ldapbis-dn-16 (work in
726               progress), February 2005.
730 Eronen & Tschofenig     Expires December 20, 2005              [Page 13]
732 Internet-Draft          PSK Ciphersuites for TLS           June 21, 2005
735    [NAMEPREP] Hoffman, P. and M. Blanchet, "Nameprep: A Stringprep
736               Profile for Internationalized Domain Names (IDN)", RFC
737               3491, March 2003.
739    [PASSAUTH] Simon, D., "Addition of Shared Key Authentication to
740               Transport Layer Security (TLS)",
741               draft-ietf-tls-passauth-00 (expired), November 1996.
743    [SASLPREP] Zeilenga, K., "SASLprep: Stringprep Profile for User Names
744               and Passwords", RFC 4013, February 2005.
746    [SHAREDKEYS]
747               Gutmann, P., "Use of Shared Keys in the TLS Protocol",
748               draft-ietf-tls-sharedkeys-02 (expired), October 2003.
750    [SRP]      Taylor, D., Wu, T., Mavroyanopoulos, N. and T. Perrin,
751               "Using SRP for TLS Authentication", draft-ietf-tls-srp-09
752               (work in progress), March 2005.
754    [STRINGPREP]
755               Hoffman, P. and M. Blanchet, "Preparation of
756               Internationalized Strings ("stringprep")", RFC 3454,
757               December 2002.
759    [TLS11]    Dierks, T. and E. Rescorla, "The TLS Protocol Version
760               1.1", draft-ietf-tls-rfc2246-bis-12 (work in progress),
761               June 2005.
786 Eronen & Tschofenig     Expires December 20, 2005              [Page 14]
788 Internet-Draft          PSK Ciphersuites for TLS           June 21, 2005
791 Authors' and Contributors' Addresses
793    Pasi Eronen
794    Nokia Research Center
795    P.O. Box 407
796    FIN-00045 Nokia Group
797    Finland
798    Email: pasi.eronen@nokia.com
801    Hannes Tschofenig
802    Siemens
803    Otto-Hahn-Ring 6
804    Munich, Bayern  81739
805    Germany
806    Email: Hannes.Tschofenig@siemens.com
809    Mohamad Badra
810    ENST Telecom
811    46 rue Barrault
812    75634 Paris
813    France
814    Email: Mohamad.Badra@enst.fr
817    Omar Cherkaoui
818    UQAM University
819    Montreal (Quebec)
820    Canada
821    Email: cherkaoui.omar@uqam.ca
824    Ibrahim Hajjeh
825    ENST Telecom
826    46 rue Barrault
827    75634 Paris
828    France
829    Email: Ibrahim.Hajjeh@enst.fr
832    Ahmed Serhrouchni
833    ENST Telecom
834    46 rue Barrault
835    75634 Paris
836    France
837    Email: Ahmed.Serhrouchni@enst.fr
842 Eronen & Tschofenig     Expires December 20, 2005              [Page 15]
844 Internet-Draft          PSK Ciphersuites for TLS           June 21, 2005
847 Appendix A.  Changelog
849    (This section should be removed by the RFC Editor before
850    publication.)
852    Changes from -08 to -09:
854    o  Clarified internationalization of PSK identities in Section 5.
856    o  Corrected the example IP address in Section 5.1.
858    o  Small clarification to IANA considerations on Section 6.
860    o  Editorial: changed numeric references to symbolic ones, updated
861       references to latest versions.
863    Changes from -07 to -08:
865    o  Added table of contents and updated I-D boilerplate.
867    o  Small clarification to motivation in Section 1.
869    o  Small clarification to note 2 in Section 2.
871    o  Corrected all instances of "an uint16" to "a uint16".
873    o  Updated references to latest versions.
875    Changes from -06 to -07:
877    o  Small clarifications to management interface requirements.
879    Changes from -05 to -06:
881    o  Small clarifications to how the premaster secret is formed.
883    o  Added a section about conformance requirements, and moved existing
884       text about identity formats there.
886    Changes from -04 to -05:
888    o  Omit ServerKeyExchange message (in PSK/RSA_PSK versions) if no
889       identity hint is provided.
891    Changes from -03 to -04:
893    o  Added a note about premaster secret "general structure" in
894       Sections 3 and 4.
898 Eronen & Tschofenig     Expires December 20, 2005              [Page 16]
900 Internet-Draft          PSK Ciphersuites for TLS           June 21, 2005
903    o  Something in the I-D submission procedure had removed all
904       circumflexes from -03 version, turning e.g. "2^16" (two-to- the
905       sixteenth power) to "216" (two hundred and sixteen).  Let's try
906       again.
908    Changes from -02 to -03:
910    o  Aligned the way the premaster secret is derived.
912    o  Specified that identities must be sent as human-readable UTF-8
913       strings, not in binary formats.  Changed reference to RFC 3629
914       from informative to normative.
916    o  Selected ciphersuite and alert numbers, and updated IANA
917       considerations section to match this.
919    o  Reworded some text about dictionary attacks in Section 6.2.
921    Changes from -01 to -02:
923    o  Clarified text about DHE_PSK ciphersuites in Section 1.
925    o  Clarified explanation of HMAC-SHA1/MD5 use of PRF in Section 2.
927    o  Added note about certificate validation and self-signed
928       certificates in Section 4.
930    o  Added Mohamad Badra et al. as contributors.
932    Changes from draft-ietf-tls-psk-00 to -01:
934    o  Added DHE_PSK and RSA_PSK key exchange algorithms, and updated
935       other text accordingly
937    o  Removed SHA-1 hash from PSK key exchange premaster secret
938       construction (since premaster secret doesn't need to be 48 bytes).
940    o  Added unknown_psk_identity alert message.
942    o  Updated IANA considerations section.
944    Changes from draft-eronen-tls-psk-00 to draft-ietf-tls-psk-00:
946    o  Updated dictionary attack considerations based on comments from
947       David Jablon.
949    o  Added a recommendation about using UTF-8 in the identity field.
954 Eronen & Tschofenig     Expires December 20, 2005              [Page 17]
956 Internet-Draft          PSK Ciphersuites for TLS           June 21, 2005
959    o  Removed Appendix A comparing this document with
960       draft-ietf-tls-sharedkeys-02.
962    o  Removed IPR comment about SPR.
964    o  Minor editorial changes.
1010 Eronen & Tschofenig     Expires December 20, 2005              [Page 18]
1012 Internet-Draft          PSK Ciphersuites for TLS           June 21, 2005
1015 Intellectual Property Statement
1017    The IETF takes no position regarding the validity or scope of any
1018    Intellectual Property Rights or other rights that might be claimed to
1019    pertain to the implementation or use of the technology described in
1020    this document or the extent to which any license under such rights
1021    might or might not be available; nor does it represent that it has
1022    made any independent effort to identify any such rights.  Information
1023    on the procedures with respect to rights in RFC documents can be
1024    found in BCP 78 and BCP 79.
1026    Copies of IPR disclosures made to the IETF Secretariat and any
1027    assurances of licenses to be made available, or the result of an
1028    attempt made to obtain a general license or permission for the use of
1029    such proprietary rights by implementers or users of this
1030    specification can be obtained from the IETF on-line IPR repository at
1031    http://www.ietf.org/ipr.
1033    The IETF invites any interested party to bring to its attention any
1034    copyrights, patents or patent applications, or other proprietary
1035    rights that may cover technology that may be required to implement
1036    this standard.  Please address the information to the IETF at
1037    ietf-ipr@ietf.org.
1040 Disclaimer of Validity
1042    This document and the information contained herein are provided on an
1043    "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
1044    OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET
1045    ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED,
1046    INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
1047    INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
1048    WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
1051 Copyright Statement
1053    Copyright (C) The Internet Society (2005).  This document is subject
1054    to the rights, licenses and restrictions contained in BCP 78, and
1055    except as set forth therein, the authors retain all their rights.
1058 Acknowledgment
1060    Funding for the RFC Editor function is currently provided by the
1061    Internet Society.
1066 Eronen & Tschofenig     Expires December 20, 2005              [Page 19]