8442
PROPOSED STANDARD
ECDHE_PSK with AES-GCM and AES-CCM Cipher Suites for TLS 1.2 and DTLS 1.2
Authors: J. Mattsson, D. Migault
Date: September 2018
Area: sec
Working Group: tls
Stream: IETF
Abstract
This document defines several new cipher suites for version 1.2 of the Transport Layer Security (TLS) protocol and version 1.2 of the Datagram Transport Layer Security (DTLS) protocol. These cipher suites are based on the Ephemeral Elliptic Curve Diffie-Hellman with Pre-Shared Key (ECDHE_PSK) key exchange together with the Authenticated Encryption with Associated Data (AEAD) algorithms AES-GCM and AES-CCM. PSK provides light and efficient authentication, ECDHE provides forward secrecy, and AES-GCM and AES-CCM provide encryption and integrity protection.
RFC 8442
PROPOSED STANDARD
Internet Engineering Task Force (IETF) J. Mattsson
Request for Comments: 8442 D. Migault
Category: Standards Track Ericsson
ISSN: 2070-1721 September 2018
<span class="h1">ECDHE_PSK with AES-GCM and AES-CCM Cipher Suites</span>
<span class="h1">for TLS 1.2 and DTLS 1.2</span>
Abstract
This document defines several new cipher suites for version 1.2 of
the Transport Layer Security (TLS) protocol and version 1.2 of the
Datagram Transport Layer Security (DTLS) protocol. These cipher
suites are based on the Ephemeral Elliptic Curve Diffie-Hellman with
Pre-Shared Key (ECDHE_PSK) key exchange together with the
Authenticated Encryption with Associated Data (AEAD) algorithms
AES-GCM and AES-CCM. PSK provides light and efficient
authentication, ECDHE provides forward secrecy, and AES-GCM and
AES-CCM provide encryption and integrity protection.
Status of This Memo
This is an Internet Standards Track document.
This document is a product of the Internet Engineering Task Force
(IETF). It represents the consensus of the IETF community. It has
received public review and has been approved for publication by the
Internet Engineering Steering Group (IESG). Further information on
Internet Standards is available in <a href="./rfc7841#section-2">Section 2 of RFC 7841</a>.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
<a href="https://www.rfc-editor.org/info/rfc8442">https://www.rfc-editor.org/info/rfc8442</a>.
<span class="grey">Mattsson & Migault Standards Track [Page 1]</span>
<span id="page-2" ></span>
<span class="grey"><a href="./rfc8442">RFC 8442</a> ECDHE_PSK with AEAD for (D)TLS 1.2 September 2018</span>
Copyright Notice
Copyright (c) 2018 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="https://trustee.ietf.org/license-info">https://trustee.ietf.org/license-info</a>) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
Table of Contents
<a href="#section-1">1</a>. Introduction ....................................................<a href="#page-2">2</a>
<a href="#section-2">2</a>. Requirements Notation ...........................................<a href="#page-3">3</a>
<a href="#section-3">3</a>. ECDHE_PSK with AES-GCM and AES-CCM Cipher Suites ................<a href="#page-3">3</a>
<a href="#section-4">4</a>. IANA Considerations .............................................<a href="#page-4">4</a>
<a href="#section-5">5</a>. Security Considerations .........................................<a href="#page-4">4</a>
<a href="#section-6">6</a>. References ......................................................<a href="#page-5">5</a>
<a href="#section-6.1">6.1</a>. Normative References .......................................<a href="#page-5">5</a>
<a href="#section-6.2">6.2</a>. Informative References .....................................<a href="#page-6">6</a>
Acknowledgements ...................................................<a href="#page-7">7</a>
Authors' Addresses .................................................<a href="#page-7">7</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
This document defines new cipher suites that provide Pre-Shared Key
(PSK) authentication, Perfect Forward Secrecy (PFS), and
Authenticated Encryption with Associated Data (AEAD). The cipher
suites are defined for version 1.2 of the Transport Layer Security
(TLS) protocol [<a href="./rfc5246" title=""The Transport Layer Security (TLS) Protocol Version 1.2"">RFC5246</a>] and version 1.2 of the Datagram Transport
Layer Security (DTLS) protocol [<a href="./rfc6347" title=""Datagram Transport Layer Security Version 1.2"">RFC6347</a>].
PSK authentication is widely used in many scenarios. One deployment
is 3GPP networks where pre-shared keys are used to authenticate both
subscriber and network. Another deployment is Internet of Things
where PSK authentication is often preferred for performance and
energy efficiency reasons. In both scenarios, the endpoints are
owned and/or controlled by a party that provisions the pre-shared
keys and makes sure that they provide a high level of entropy.
Perfect Forward Secrecy (PFS) is a strongly recommended feature in
security protocol design and can be accomplished by using an
ephemeral Diffie-Hellman key exchange method. Ephemeral Elliptic
<span class="grey">Mattsson & Migault Standards Track [Page 2]</span>
<span id="page-3" ></span>
<span class="grey"><a href="./rfc8442">RFC 8442</a> ECDHE_PSK with AEAD for (D)TLS 1.2 September 2018</span>
Curve Diffie-Hellman (ECDHE) provides PFS with excellent performance
and small key sizes. ECDHE is mandatory to implement in both HTTP/2
[<a href="./rfc7540" title=""Hypertext Transfer Protocol Version 2 (HTTP/2)"">RFC7540</a>] and the Constrained Application Protocol (CoAP) [<a href="./rfc7252" title=""The Constrained Application Protocol (CoAP)"">RFC7252</a>].
AEAD algorithms that combine encryption and integrity protection are
strongly recommended for (D)TLS [<a href="./rfc7525" title=""Recommendations for Secure Use of Transport Layer Security (TLS) and Datagram Transport Layer Security (DTLS)"">RFC7525</a>], and TLS 1.3 [<a href="./rfc8446" title=""The Transport Layer Security (TLS) Protocol Version 1.3"">RFC8446</a>]
forbids the use of non-AEAD algorithms. The AEAD algorithms
considered in this document are AES-GCM and AES-CCM. The use of
AES-GCM in TLS is defined in [<a href="./rfc5288" title=""AES Galois Counter Mode (GCM) Cipher Suites for TLS"">RFC5288</a>], and the use of AES-CCM is
defined in [<a href="./rfc6655" title=""AES-CCM Cipher Suites for Transport Layer Security (TLS)"">RFC6655</a>].
[<a id="ref-RFC4279">RFC4279</a>] defines PSK cipher suites for TLS but does not consider
elliptic curve cryptography. [<a href="./rfc8422" title=""Elliptic Curve Cryptography (ECC) Cipher Suites for Transport Layer Security (TLS) Versions 1.2 and Earlier"">RFC8422</a>] introduces elliptic curve
cryptography for TLS but does not consider PSK authentication.
[<a href="./rfc5487" title=""Pre-Shared Key Cipher Suites for TLS with SHA- 256/384 and AES Galois Counter Mode"">RFC5487</a>] describes the use of AES-GCM in combination with PSK
authentication but does not consider ECDHE. [<a href="./rfc5489" title=""ECDHE_PSK Cipher Suites for Transport Layer Security (TLS)"">RFC5489</a>] describes the
use of PSK in combination with ECDHE but does not consider AES-GCM or
AES-CCM.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Requirements Notation</span>
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
"OPTIONAL" in this document are to be interpreted as described in
<a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a> [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>] [<a href="./rfc8174" title=""Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words"">RFC8174</a>] when, and only when, they appear in all
capitals, as shown here.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. ECDHE_PSK with AES-GCM and AES-CCM Cipher Suites</span>
The cipher suites defined in this document are based on the following
AES-GCM and AES-CCM AEAD algorithms: AEAD_AES_128_GCM [<a href="./rfc5116" title=""An Interface and Algorithms for Authenticated Encryption"">RFC5116</a>],
AEAD_AES_256_GCM [<a href="./rfc5116" title=""An Interface and Algorithms for Authenticated Encryption"">RFC5116</a>], AEAD_AES_128_CCM [<a href="./rfc5116" title=""An Interface and Algorithms for Authenticated Encryption"">RFC5116</a>], and
AEAD_AES_128_CCM_8 [<a href="./rfc6655" title=""AES-CCM Cipher Suites for Transport Layer Security (TLS)"">RFC6655</a>].
Messages and premaster secret construction in this document are
defined in [<a href="./rfc5489" title=""ECDHE_PSK Cipher Suites for Transport Layer Security (TLS)"">RFC5489</a>]. The ServerKeyExchange and ClientKeyExchange
messages are used, and the premaster secret is computed as for the
ECDHE_PSK key exchange. The elliptic curve parameters used in the
Diffie-Hellman parameters are negotiated using extensions defined in
[<a href="./rfc8422" title=""Elliptic Curve Cryptography (ECC) Cipher Suites for Transport Layer Security (TLS) Versions 1.2 and Earlier"">RFC8422</a>].
For TLS 1.2 and DTLS 1.2, the following cipher suites are defined:
TLS_ECDHE_PSK_WITH_AES_128_GCM_SHA256 = {0xD0,0x01}
TLS_ECDHE_PSK_WITH_AES_256_GCM_SHA384 = {0xD0,0x02}
TLS_ECDHE_PSK_WITH_AES_128_CCM_8_SHA256 = {0xD0,0x03}
TLS_ECDHE_PSK_WITH_AES_128_CCM_SHA256 = {0xD0,0x05}
<span class="grey">Mattsson & Migault Standards Track [Page 3]</span>
<span id="page-4" ></span>
<span class="grey"><a href="./rfc8442">RFC 8442</a> ECDHE_PSK with AEAD for (D)TLS 1.2 September 2018</span>
The assigned code points can only be used for TLS 1.2 and DTLS 1.2.
The cipher suites defined in this document MUST NOT be negotiated for
any version of (D)TLS other than version 1.2. Servers MUST NOT
select one of these cipher suites when selecting a (D)TLS version
other than version 1.2. A client MUST treat the selection of these
cipher suites in combination with a different version of (D)TLS as an
error and generate a fatal 'illegal_parameter' TLS alert.
Cipher suites TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384,
TLS_AES_128_CCM_8_SHA256, and TLS_AES_128_CCM_SHA256 are used to
support equivalent functionality in TLS 1.3 [<a href="./rfc8446" title=""The Transport Layer Security (TLS) Protocol Version 1.3"">RFC8446</a>].
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. IANA Considerations</span>
This document defines the following new cipher suites for TLS 1.2 and
DTLS 1.2. The values have been assigned in the "TLS Cipher Suites"
registry defined by [<a href="./rfc8446" title=""The Transport Layer Security (TLS) Protocol Version 1.3"">RFC8446</a>] and [<a href="./rfc8447" title=""IANA Registry Updates for TLS and DTLS"">RFC8447</a>].
Value Description DTLS-OK Recommended
----- ----------- ------- -----------
{0xD0,0x01} TLS_ECDHE_PSK_WITH_AES_128_GCM_SHA256 Y Y
{0xD0,0x02} TLS_ECDHE_PSK_WITH_AES_256_GCM_SHA384 Y Y
{0xD0,0x03} TLS_ECDHE_PSK_WITH_AES_128_CCM_8_SHA256 Y N
{0xD0,0x05} TLS_ECDHE_PSK_WITH_AES_128_CCM_SHA256 Y Y
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Security Considerations</span>
The security considerations in TLS 1.2 [<a href="./rfc5246" title=""The Transport Layer Security (TLS) Protocol Version 1.2"">RFC5246</a>], DTLS 1.2 [<a href="./rfc6347" title=""Datagram Transport Layer Security Version 1.2"">RFC6347</a>],
PSK Ciphersuites for TLS [<a href="./rfc4279" title=""Pre-Shared Key Ciphersuites for Transport Layer Security (TLS)"">RFC4279</a>], ECDHE_PSK [<a href="./rfc5489" title=""ECDHE_PSK Cipher Suites for Transport Layer Security (TLS)"">RFC5489</a>], AES-GCM
[<a href="./rfc5288" title=""AES Galois Counter Mode (GCM) Cipher Suites for TLS"">RFC5288</a>], and AES-CCM [<a href="./rfc6655" title=""AES-CCM Cipher Suites for Transport Layer Security (TLS)"">RFC6655</a>] apply to this document as well.
All the cipher suites defined in this document provide
confidentiality, mutual authentication, and forward secrecy. The
AES-128 cipher suites provide 128-bit security, and the AES-256
cipher suites provide at least 192-bit security. However,
AES_128_CCM_8 only provides 64-bit security against message forgery.
The pre-shared keys used for authentication MUST have a security
level equal to or higher than the cipher suite used, i.e., at least
128-bit security for the AES-128 cipher suites and at least 192-bit
security for the AES-256 cipher suites.
GCM or CCM encryption that reuses a nonce with a same key undermines
the security of GCM and CCM. As a result, GCM and CCM MUST only be
used with a system guaranteeing nonce uniqueness [<a href="./rfc5116" title=""An Interface and Algorithms for Authenticated Encryption"">RFC5116</a>].
<span class="grey">Mattsson & Migault Standards Track [Page 4]</span>
<span id="page-5" ></span>
<span class="grey"><a href="./rfc8442">RFC 8442</a> ECDHE_PSK with AEAD for (D)TLS 1.2 September 2018</span>
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. References</span>
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. Normative References</span>
[<a id="ref-RFC2119">RFC2119</a>] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>,
DOI 10.17487/RFC2119, March 1997,
<<a href="https://www.rfc-editor.org/info/rfc2119">https://www.rfc-editor.org/info/rfc2119</a>>.
[<a id="ref-RFC4279">RFC4279</a>] Eronen, P., Ed. and H. Tschofenig, Ed., "Pre-Shared Key
Ciphersuites for Transport Layer Security (TLS)",
<a href="./rfc4279">RFC 4279</a>, DOI 10.17487/RFC4279, December 2005,
<<a href="https://www.rfc-editor.org/info/rfc4279">https://www.rfc-editor.org/info/rfc4279</a>>.
[<a id="ref-RFC5116">RFC5116</a>] McGrew, D., "An Interface and Algorithms for Authenticated
Encryption", <a href="./rfc5116">RFC 5116</a>, DOI 10.17487/RFC5116, January 2008,
<<a href="https://www.rfc-editor.org/info/rfc5116">https://www.rfc-editor.org/info/rfc5116</a>>.
[<a id="ref-RFC5246">RFC5246</a>] Dierks, T. and E. Rescorla, "The Transport Layer Security
(TLS) Protocol Version 1.2", <a href="./rfc5246">RFC 5246</a>,
DOI 10.17487/RFC5246, August 2008,
<<a href="https://www.rfc-editor.org/info/rfc5246">https://www.rfc-editor.org/info/rfc5246</a>>.
[<a id="ref-RFC5288">RFC5288</a>] Salowey, J., Choudhury, A., and D. McGrew, "AES Galois
Counter Mode (GCM) Cipher Suites for TLS", <a href="./rfc5288">RFC 5288</a>,
DOI 10.17487/RFC5288, August 2008,
<<a href="https://www.rfc-editor.org/info/rfc5288">https://www.rfc-editor.org/info/rfc5288</a>>.
[<a id="ref-RFC6347">RFC6347</a>] Rescorla, E. and N. Modadugu, "Datagram Transport Layer
Security Version 1.2", <a href="./rfc6347">RFC 6347</a>, DOI 10.17487/RFC6347,
January 2012, <<a href="https://www.rfc-editor.org/info/rfc6347">https://www.rfc-editor.org/info/rfc6347</a>>.
[<a id="ref-RFC6655">RFC6655</a>] McGrew, D. and D. Bailey, "AES-CCM Cipher Suites for
Transport Layer Security (TLS)", <a href="./rfc6655">RFC 6655</a>,
DOI 10.17487/RFC6655, July 2012,
<<a href="https://www.rfc-editor.org/info/rfc6655">https://www.rfc-editor.org/info/rfc6655</a>>.
[<a id="ref-RFC8174">RFC8174</a>] Leiba, B., "Ambiguity of Uppercase vs Lowercase in <a href="./rfc2119">RFC</a>
<a href="./rfc2119">2119</a> Key Words", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc8174">RFC 8174</a>, DOI 10.17487/RFC8174,
May 2017, <<a href="https://www.rfc-editor.org/info/rfc8174">https://www.rfc-editor.org/info/rfc8174</a>>.
[<a id="ref-RFC8422">RFC8422</a>] Nir, Y., Josefsson, S., and M. Pegourie-Gonnard, "Elliptic
Curve Cryptography (ECC) Cipher Suites for Transport Layer
Security (TLS) Versions 1.2 and Earlier", <a href="./rfc8422">RFC 8422</a>,
DOI 10.17487/RFC8422, August 2018,
<<a href="https://www.rfc-editor.org/info/rfc8422">https://www.rfc-editor.org/info/rfc8422</a>>.
<span class="grey">Mattsson & Migault Standards Track [Page 5]</span>
<span id="page-6" ></span>
<span class="grey"><a href="./rfc8442">RFC 8442</a> ECDHE_PSK with AEAD for (D)TLS 1.2 September 2018</span>
[<a id="ref-RFC8446">RFC8446</a>] Rescorla, E., "The Transport Layer Security (TLS) Protocol
Version 1.3", <a href="./rfc8446">RFC 8446</a>, DOI 10.17487/RFC8446, August 2018,
<<a href="https://www.rfc-editor.org/info/rfc8446">https://www.rfc-editor.org/info/rfc8446</a>>.
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. Informative References</span>
[<a id="ref-RFC5487">RFC5487</a>] Badra, M., "Pre-Shared Key Cipher Suites for TLS with SHA-
256/384 and AES Galois Counter Mode", <a href="./rfc5487">RFC 5487</a>,
DOI 10.17487/RFC5487, March 2009,
<<a href="https://www.rfc-editor.org/info/rfc5487">https://www.rfc-editor.org/info/rfc5487</a>>.
[<a id="ref-RFC5489">RFC5489</a>] Badra, M. and I. Hajjeh, "ECDHE_PSK Cipher Suites for
Transport Layer Security (TLS)", <a href="./rfc5489">RFC 5489</a>,
DOI 10.17487/RFC5489, March 2009,
<<a href="https://www.rfc-editor.org/info/rfc5489">https://www.rfc-editor.org/info/rfc5489</a>>.
[<a id="ref-RFC7252">RFC7252</a>] Shelby, Z., Hartke, K., and C. Bormann, "The Constrained
Application Protocol (CoAP)", <a href="./rfc7252">RFC 7252</a>,
DOI 10.17487/RFC7252, June 2014,
<<a href="https://www.rfc-editor.org/info/rfc7252">https://www.rfc-editor.org/info/rfc7252</a>>.
[<a id="ref-RFC7525">RFC7525</a>] Sheffer, Y., Holz, R., and P. Saint-Andre,
"Recommendations for Secure Use of Transport Layer
Security (TLS) and Datagram Transport Layer Security
(DTLS)", <a href="https://www.rfc-editor.org/bcp/bcp195">BCP 195</a>, <a href="./rfc7525">RFC 7525</a>, DOI 10.17487/RFC7525, May
2015, <<a href="https://www.rfc-editor.org/info/rfc7525">https://www.rfc-editor.org/info/rfc7525</a>>.
[<a id="ref-RFC7540">RFC7540</a>] Belshe, M., Peon, R., and M. Thomson, Ed., "Hypertext
Transfer Protocol Version 2 (HTTP/2)", <a href="./rfc7540">RFC 7540</a>,
DOI 10.17487/RFC7540, May 2015,
<<a href="https://www.rfc-editor.org/info/rfc7540">https://www.rfc-editor.org/info/rfc7540</a>>.
[<a id="ref-RFC8447">RFC8447</a>] Salowey, J. and S. Turner, "IANA Registry Updates for TLS
and DTLS", <a href="./rfc8447">RFC 8447</a>, DOI 10.17487/RFC8447, August 2018,
<<a href="https://www.rfc-editor.org/info/rfc8447">https://www.rfc-editor.org/info/rfc8447</a>>.
<span class="grey">Mattsson & Migault Standards Track [Page 6]</span>
<span id="page-7" ></span>
<span class="grey"><a href="./rfc8442">RFC 8442</a> ECDHE_PSK with AEAD for (D)TLS 1.2 September 2018</span>
Acknowledgements
The authors would like to thank Ilari Liusvaara, Eric Rescorla, Dan
Harkins, Russ Housley, Dan Harkins, Martin Thomson, Nikos
Mavrogiannopoulos, Peter Dettman, Xiaoyin Liu, Joseph Salowey, Sean
Turner, Dave Garrett, Martin Rex, and Kathleen Moriarty for their
valuable comments and feedback.
Authors' Addresses
John Mattsson
Ericsson AB
SE-164 80 Stockholm
Sweden
Phone: +46 76 115 35 01
Email: [email protected]
Daniel Migault
Ericsson
8400 Boulevard Decarie
Montreal, QC H4P 2N2
Canada
Phone: +1 514-452-2160
Email: [email protected]
Mattsson & Migault Standards Track [Page 7]
Annotations
Select text to annotate