Re: [TLS] PRs for this morning
mrex@sap.com (Martin Rex) Thu, 13 November 2014 20:22 UTC
Return-Path: <mrex@sap.com>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CE9751AD004 for <tls@ietfa.amsl.com>; Thu, 13 Nov 2014 12:22:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.551
X-Spam-Level:
X-Spam-Status: No, score=-6.551 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0rKzQWxLHuer for <tls@ietfa.amsl.com>; Thu, 13 Nov 2014 12:22:07 -0800 (PST)
Received: from smtpde02.smtp.sap-ag.de (smtpde02.smtp.sap-ag.de [155.56.68.140]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 375E91ACFD4 for <tls@ietf.org>; Thu, 13 Nov 2014 12:21:33 -0800 (PST)
Received: from mail05.wdf.sap.corp (mail05.sap.corp [194.39.131.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtpde02.smtp.sap-ag.de (Postfix) with ESMTPS id 0F9D23A2EB; Thu, 13 Nov 2014 21:21:32 +0100 (CET)
Received: from ld9781.wdf.sap.corp (ld9781.wdf.sap.corp [10.21.82.193]) by mail05.wdf.sap.corp (Postfix) with ESMTP id F1F62429D5; Thu, 13 Nov 2014 21:21:31 +0100 (CET)
Received: by ld9781.wdf.sap.corp (Postfix, from userid 10159) id EB8391AFCC; Thu, 13 Nov 2014 21:21:31 +0100 (CET)
In-Reply-To: <20141113200037.455711AFCB@ld9781.wdf.sap.corp>
To: mrex@sap.com
Date: Thu, 13 Nov 2014 21:21:31 +0100
X-Mailer: ELM [version 2.4ME+ PL125 (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="US-ASCII"
Message-Id: <20141113202131.EB8391AFCC@ld9781.wdf.sap.corp>
From: mrex@sap.com
Archived-At: http://mailarchive.ietf.org/arch/msg/tls/6NmTj52Y4aObFw450QZDL3CiJoM
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] PRs for this morning
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: mrex@sap.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls/>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Nov 2014 20:22:10 -0000
Martin Rex wrote: > Eric Rescorla wrote: > > > > Merging session resumption and tickets and moving ticket > > establishment to a update: > > https://github.com/tlswg/tls13-spec/pull/96 > > > In case that you intend to add rfc5077 TLS session ticket support > to TLSv1.3, is that using the same bogus CBC-Encryption > (i.e. mac+pad+encrypt instead of pad+mac+encrypt) that Vaudenay > described as a security issue, that was never fixed in TLS up to v1.2 > and provided the grounds for LuckyThirteen and Poodle? > > If yes, then how about fixing a known design flaw _before_ > it is demonstrated to be exploitable? Although .. reading the relevant part of rfc5077 again, it's possible that rfc5077 session tickets are already using EtM, and only the PDU & description is misleading. http://tools.ietf.org/html/rfc5077#section-4 The ticket is structured as follows: struct { opaque key_name[16]; opaque iv[16]; - opaque encrypted_state<0..2^16-1>; + opaque cbc_encrypted_state<0..2^16-16>; opaque mac[32]; } ticket; The actual state information in encrypted_state is encrypted using 128-bit AES in CBC mode with the given IV. The Message Authentication Code (MAC) is calculated using HMAC-SHA-256 over key_name (16 octets) and IV (16 octets), followed by the length of the encrypted_state field (2 octets) and its contents (variable - length). + length, but integer multiple of the AES blocksize (16)). Considering that a client will have to send a ticket to the server inside a TLS extension for resumption, and that all extensions inside ClientHello combined must fit within 2^16, the true maximum size of encrypted_state is more like (2^16-128), but using (2^16-16) is more indicative about the integer multiple of AES blocksize characteristic. Sorry for the confusion. -Martin
- [TLS] PRs for this morning Eric Rescorla
- Re: [TLS] PRs for this morning Martin Rex
- Re: [TLS] PRs for this morning Watson Ladd
- Re: [TLS] PRs for this morning Manuel Pégourié-Gonnard
- Re: [TLS] PRs for this morning Martin Rex