TLS Working Group | A. Zauner |
Internet-Draft | lambda: resilient.systems |
Intended status: Standards Track | April 04, 2016 |
Expires: October 6, 2016 |
AES-OCB (Offset Codebook Mode) Ciphersuites for Transport Layer Security (TLS)
draft-zauner-tls-aes-ocb-latest
This memo describes the use of the Advanced Encryption Standard (AES) in the Offset Codebook Mode (OCB) of operation within Transport Layer Security (TLS) and Datagram TLS (DTLS) to provide confidentiality and data origin authentication. The AES-OCB algorithm is highly parallelizable, provable secure and can be efficiently implemented in software and hardware providing high performance. Furthermore, use of AES-OCB in TLS is exempt from former IPR claims by various parties.
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at http://datatracker.ietf.org/drafts/current/.
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."
This Internet-Draft will expire on October 6, 2016.
Copyright (c) 2016 IETF Trust and the persons identified as the document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) 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.
This document describes the use of the Advanced Encryption Standard (AES) in the Offset Codebook Mode (OCB) of operation within Transport Layer Security (TLS) and Datagram TLS (DTLS) to provide confidentiality and data origin authentication. The AES-OCB algorithm is highly parallelizable, provable secure and can be efficiently implemented in software and hardware providing high performance.
Furthermore OCB Mode [OCB] for AES [AES] provides a high performance, single-pass, constant-time AEAD alternative to existing and deployed block-cipher modes without the need for special platform specific instructions.
Authenticated encryption, in addition to providing confidentiality for the plaintext that is encrypted, provides a way to check its integrity and authenticity. Authenticated Encryption with Associated Data, or AEAD [RFC5116], adds the ability to check the integrity and authenticity of some associated data that is not encrypted. This document utilizes the AEAD facility within TLS 1.2 [RFC5246] and the AES-OCB-based AEAD algorithms defined in [RFC5116] and [RFC7253].
The ciphersuites defined in this document use ECDHE, DHE or Pre-Shared-Key (PSK) as their key establishment mechanism; these ciphersuites can be used with DTLS [RFC6347]. Since the abiltiy to use AEAD ciphers was introduced in DTLS version 1.2, the ciphersuites defined in this document cannot be used with earlier versions of that protocol.
The 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 in [RFC2119].
The ciphersuites defined in this document are based on the AES-OCB authenticated encryption with associated data (AEAD) algorithms AEAD_AES_128_OCB_TAGLEN96 and AEAD_AES_256_OCB_TAGLEN96 described in [RFC7253]. The following forward-secret ciphersuites are defined:
CipherSuite TLS_DHE_RSA_WITH_AES_128_OCB = {TBD1, TBD1} CipherSuite TLS_DHE_RSA_WITH_AES_256_OCB = {TBD2, TBD2} CipherSuite TLS_ECDHE_RSA_WITH_AES_128_OCB = {TBD3, TBD3} CipherSuite TLS_ECDHE_RSA_WITH_AES_256_OCB = {TBD4, TBD4} CipherSuite TLS_ECDHE_ECDSA_WITH_AES_128_OCB = {TBD5, TBD5} CipherSuite TLS_ECDHE_ECDSA_WITH_AES_256_OCB = {TBD6, TBD6}
These ciphersuites make use of the AEAD capability in TLS 1.2 [RFC5246].
Because this document makes use of an AEAD construct, use of HMAC truncation in TLS (as specified in [RFC6066]) has no effect on the ciphersuites defined herein.
The “nonce” construction is identical to that of draft-ietf-tls-chacha20-poly1305-04:
AES-OCB requires a 96-bit nonce, which is formed as follows:
In DTLS, the 64-bit seq_num is the 16-bit epoch concatenated with the 48-bit seq_num.
This nonce construction is different from the one used with AES-GCM in TLS 1.2 but matches the scheme expected to be used in TLS 1.3. The nonce is constructed from the record sequence number and shared secret, both of which are known to the recipient. The advantage is that no per-record, explicit nonce need be transmitted, which saves eight bytes per record and prevents implementations from mistakenly using a random nonce. Thus, in the terms of [RFC5246], SecurityParameters.fixed_iv_length is twelve bytes and SecurityParameters.record_iv_length is zero bytes.
These ciphersuites make use of the default TLS 1.2 Pseudorandom Function (PRF), which uses HMAC with the SHA-256 hash function. The ECDSA-ECDHE, RSA-ECDHE and RSA-DHE key exchanges are performed as defined in [RFC5246].
As in Section 3, these ciphersuites follow [RFC7253]. The PSK, ECDHE_PSK and DHE_PSK key exchanges are performed as specified in [RFC4279]. The following Pre-Shared-Key (PSK) ciphersuites are defined:
CipherSuite TLS_PSK_WITH_AES_128_OCB = {TBD7, TBD7} CipherSuite TLS_PSK_WITH_AES_256_OCB = {TBD8, TBD8} CipherSuite TLS_DHE_PSK_WITH_AES_128_OCB = {TBD9, TBD9} CipherSuite TLS_DHE_PSK_WITH_AES_256_OCB = {TBD10, TBD10} CipherSuite TLS_ECDHE_PSK_WITH_AES_128_OCB = {TBD11, TBD11} CipherSuite TLS_ECDHE_PSK_WITH_AES_256_OCB = {TBD12, TBD12}
The “nonce” input to the AEAD algorithm is identical to the one defined in Section 3. These ciphersuites make use of the default TLS 1.2 Pseudorandom Function (PRF), which uses HMAC with the SHA-256 hash function.
These ciphersuites make use of the authenticated encryption with associated data (AEAD) defined in TLS 1.2 [RFC5288]. Earlier versions of TLS do not have support for AEAD; for instance, the TLSCiphertext structure does not have the “aead” option in TLS 1.1. Consequently, these ciphersuites MUST NOT be negotiated in older versions of TLS. Clients MUST NOT offer these cipher suites if they do not offer TLS 1.2 or later. Servers which select an earlier version of TLS MUST NOT select one of these ciphersuites. A client MUST treat the selection of these cipher suites in combination with a version of TLS that does not support AEAD (i.e., TLS 1.1 or earlier) as an error and generate a fatal ‘illegal_parameter’ TLS alert.
Historically Offset Codebook Mode has seen difficulty with implementation, deployment and standardization because of pending patents and intellectual rights claims on OCB itself. In preparation of this document all involved parties have declared they will issue IPR statements exempting use of OCB Mode in TLS from these claims. Specifically – OCB Mode as described in this document for use in TLS – is based, and strongly influenced, by earlier work from Charanjit Jutla on [IAPM].
The following parties have made IPR claims in the past:
Use of technology described by these patents, when used with TLS, has been explicitly exempted from any previous claims by the original authors and patent holders.
IANA is requested to assign the values for the ciphersuites defined in Section 3 and Section 4 from the TLS and DTLS Ciphersuite registries. IANA, please note that the DTLS-OK column should be marked as “Y” for each of these algorithms.
The security considerations in [RFC5246] apply to this document as well. The remainder of this section describes security considerations specific to the ciphersuites described in this document.
With the exception of two Pre-Shared-Key (PSK) ciphersuites intended for use in constrained environments and embedded devices (IoT), defined in Section 4, this document deals exclusively with ciphersuites that are inherently forward-secret.
No ciphersuite is defined in this document that makes use of RSA as Key-Transport.
AES-OCB security requires that the “nonce” (number used once) is never reused. The IV construction in Section 3 is designed to prevent nonce reuse. Specifically, if there is any error in the nonce construction implementation, it will simply be non-interoperable with conforming implementations.
There is a limitation on the total number of bytes that can be transmitted under one set of keys. For the AES-OCB ciphersuites, implementations MUST NOT transmit more than 2^36 bytes encrypted under a single key: they MUST rekey or close the connection before 2^36 bytes are reached. These limitations are based on limitations introduced in the TLS 1.3 draft for AES-GCM, this document adheres to the same constraints. A detailed analysis can be found in [AELIMIT].
This document borrows heavily from [RFC5288], [RFC6655] and draft-ietf-tls-chacha20-poly1305-04.
The author would like to thank Martin Thomson for his suggested change on the client negotiation paragraph, Nikos Mavrogiannopoulos and Peter Gutmann for the discussion on PSK ciphersuites, Jack Lloyd for content on the clarification of the TLS Record IV length, Samuel Neves for suggesting the data-limitation paragraph from the TLS 1.3 draft and the TLS Working Group in general for feedback and discussion on this document.
[AELIMIT] | Luykx, A. and K. Paterson, "Limits on Authenticated Encryption Use in TLS", date 2016-03-08, n.d.. |
[AES] | National Institute of Standards and Technology, "Specification for the Advanced Encryption Standard (AES)", NIST FIPS 197, November 2001. |
[IAPM] | Jutla, C., "Encryption Modes with Almost Free Message Integrity", EUROCRYPT01 Proc. Eurocrypt 2001, pp. 529-544, 2001. |
[OCB] | Rogaway, P., Bellare, M. and J. Black, "OCB: A Block-Cipher Mode of Operation for Efficient Authenticated Encryption", CCS01 ACM Conference on Computer and Communications Security (CCS 2001), ACM Press, pp. 196-205, date 2001, n.d.. |
[RFC6655] | McGrew, D. and D. Bailey, "AES-CCM Cipher Suites for Transport Layer Security (TLS)", RFC 6655, DOI 10.17487/RFC6655, July 2012. |