Re: [TLS] New drafts: adding input to the TLS master secret
Paul Hoffman <paul.hoffman@vpnc.org> Wed, 03 February 2010 16:06 UTC
Return-Path: <paul.hoffman@vpnc.org>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 18C8028C0D9 for <tls@core3.amsl.com>; Wed, 3 Feb 2010 08:06:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.05
X-Spam-Level:
X-Spam-Status: No, score=-6.05 tagged_above=-999 required=5 tests=[AWL=-0.004, BAYES_00=-2.599, HELO_MISMATCH_COM=0.553, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 35udMe+d1ui6 for <tls@core3.amsl.com>; Wed, 3 Feb 2010 08:06:19 -0800 (PST)
Received: from balder-227.proper.com (Balder-227.Proper.COM [192.245.12.227]) by core3.amsl.com (Postfix) with ESMTP id 1A2F628C123 for <tls@ietf.org>; Wed, 3 Feb 2010 08:06:18 -0800 (PST)
Received: from [10.20.30.158] (75-101-30-90.dsl.dynamic.sonic.net [75.101.30.90]) (authenticated bits=0) by balder-227.proper.com (8.14.2/8.14.2) with ESMTP id o13G6xAQ046736 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 3 Feb 2010 09:07:00 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
Mime-Version: 1.0
Message-Id: <p06240804c78f4cfc4ce4@[10.20.30.158]>
In-Reply-To: <4B6993F1.9000503@extendedsubset.com>
References: <p0624089bc78922bdaddd@[10.20.30.158]> <87fx5jk8vp.fsf@mocca.josefsson.org> <p06240813c78e116da3f6@[75.101.18.87]> <001001caa442$beefbde0$3ccf39a0$@org> <p06240829c78e37e5a850@[75.101.18.87]> <001101caa44b$35f6f540$a1e4dfc0$@org> <p06240831c78e4f0e15ee@[75.101.18.87]> <4B68D672.2060609@extendedsubset.com> <p0624083bc78e8c1563cc@[75.101.18.87]> <4B68ECF3.5030707@extendedsubset.com> <p0624083ec78eaacd96fa@[75.101.18.87]> <4B6993F1.9000503@extendedsubset.com>
Date: Wed, 03 Feb 2010 08:06:59 -0800
To: Marsh Ray <marsh@extendedsubset.com>
From: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: text/plain; charset="us-ascii"
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
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/listinfo/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: Wed, 03 Feb 2010 16:06:20 -0000
At 10:19 AM -0500 2/3/10, Marsh Ray wrote: >I was thinking of TLS 1.0, since that's what seems to be mostly used. draft-hoffman-tls-master-secret-input explicitly says it is modifies TLS 1.2. >This is where my authority to speak goes off a cliff. But that never >stopped me before. Anyway, it looks to me like HMAC PRF in TLS 1.0 >amounts to little more than the better of the two hash functions, which >in this case is SHA-1. Mixing cryptographic apples and oranges may not be helpful for this discussion. Please say whether or not you think that there is a cryptographic flaw in draft-hoffman-tls-master-secret-input that applies to TLS 1.2. If there is, then there is probably an underlying flaw in TLS 1.2 by itself, and that should be discussed seriously. I suspect that there is not. > >> It also requires clients and servers to buffer the stuff and later >>> implement a sorting algorithm based on type order. >> >> By "later" you mean "still within the same handshake sequence" and by >> "sorting algorithm" you mean "ascending order of two-byte numbers", >> yes? > >Yes. > >>> Lots could go wrong with that. Pathological sort order DoS attacks, >>> etc. >> >> Please explain further. The TLS spec says that you can only have one >> instance of an extension in a handshake. Thus, all TLS >> implementations today already should be looking for multiple >> instances of the same extension. What is left is a relatively small >> number of extension values, each of which has a unique two-byte >> number associated with it. > >Well, you could check for duplicated extension IDs with a hash table >data structure that is O(1) in space and time. The proposal in draft-hoffman-tls-master-secret-input does not change this; the one-use-of-each-extension rule comes from the TLS 1.2 spec, not from the draft. >Sorting is a little less predictable. > >> Where does "pathological sort order DoS >> attacks" or "etc" come in? > >For example, once upon a time Perl used classic quicksort. Quicksort has >this worst-case of O(n**2). Sending thousands of extensions ordered in >the worst way can consume a bunch of CPU (the kind which might not be >offloaded onto crypto accelerator hardware). If there are thousands of extensions that do master secret input, and you have an implementation that is able to do all those thousands, then I would agree with you. However, I believe that the complexity of adding the code for those thousands of extensions is probably higher than the complexity of your algorithm that sorts two-byte numbers >I'm not saying this is a significant argument against new features in >general, only that adding new complexity adds new attack possibilities. Ah. >So it needs a bit of justification. It is justified because the two sides need to know what order to add in the values to the master secret PRF calculation. If the spec had said "in the order that the extensions came in", then you would be complaining that you need to add a new data structure to remember the order that they came in. Sorting on a value that is already in the extension data seemed like a better choice, yes? --Paul Hoffman, Director --VPN Consortium
- Re: [TLS] New drafts: adding input to the TLS mas… Stefan Santesson
- [TLS] New drafts: adding input to the TLS master … Paul Hoffman
- Re: [TLS] New drafts: adding input to the TLS mas… Paul Hoffman
- Re: [TLS] New drafts: adding input to the TLS mas… Dean Anderson
- Re: [TLS] New drafts: adding input to the TLS mas… Paul Hoffman
- Re: [TLS] New drafts: adding input to the TLS mas… Simon Josefsson
- Re: [TLS] New drafts: adding input to the TLS mas… Paul Hoffman
- Re: [TLS] New drafts: adding input to the TLS mas… Simon Josefsson
- Re: [TLS] New drafts: adding input to the TLS mas… Brian Smith
- Re: [TLS] New drafts: adding input to the TLS mas… Paul Hoffman
- Re: [TLS] New drafts: adding input to the TLS mas… Brian Smith
- Re: [TLS] New drafts: adding input to the TLS mas… Martin Rex
- Re: [TLS] New drafts: adding input to the TLS mas… Paul Hoffman
- Re: [TLS] New drafts: adding input to the TLS mas… Marsh Ray
- Re: [TLS] New drafts: adding input to the TLS mas… Martin Rex
- Re: [TLS] New drafts: adding input to the TLS mas… Paul Hoffman
- Re: [TLS] New drafts: adding input to the TLS mas… Marsh Ray
- Re: [TLS] New drafts: adding input to the TLS mas… Martin Rex
- Re: [TLS] New drafts: adding input to the TLS mas… Paul Hoffman
- Re: [TLS] New drafts: adding input to the TLS mas… Marsh Ray
- Re: [TLS] New drafts: adding input to the TLS mas… Paul Hoffman
- Re: [TLS] New drafts: adding input to the TLS mas… Bill Frantz
- Re: [TLS] New drafts: adding input to the TLS mas… Marsh Ray
- Re: [TLS] New drafts: adding input to the TLS mas… Paul Hoffman
- Re: [TLS] New drafts: adding input to the TLS mas… Paul Hoffman
- Re: [TLS] New drafts: adding input to the TLS mas… Marsh Ray
- Re: [TLS] New drafts: adding input to the TLS mas… Paul Hoffman
- Re: [TLS] New drafts: adding input to the TLS mas… Eric Rescorla
- Re: [TLS] New drafts: adding input to the TLS mas… Dean Anderson
- Re: [TLS] New drafts: adding input to the TLS mas… Eric Rescorla
- Re: [TLS] New drafts: adding input to the TLS mas… Dean Anderson
- Re: [TLS] New drafts: adding input to the TLS mas… Jeffrey A. Williams
- Re: [TLS] New drafts: adding input to the TLS mas… Eric Rescorla
- Re: [TLS] New drafts: adding input to the TLS mas… Eric Rescorla
- Re: [TLS] New drafts: adding input to the TLS mas… Martin Rex
- Re: [TLS] New drafts: adding input to the TLS mas… Dean Anderson
- Re: [TLS] New drafts: adding input to the TLS mas… Dean Anderson
- Re: [TLS] New drafts: adding input to the TLS mas… Marsh Ray
- Re: [TLS] New drafts: adding input to the TLS mas… Eric Rescorla
- Re: [TLS] New drafts: adding input to the TLS mas… Eric Rescorla
- Re: [TLS] New drafts: adding input to the TLS mas… Eric Rescorla
- Re: [TLS] New drafts: adding input to the TLS mas… Martin Rex
- Re: [TLS] New drafts: adding input to the TLS mas… Eric Rescorla
- Re: [TLS] New drafts: adding input to the TLS mas… Marsh Ray
- Re: [TLS] New drafts: adding input to the TLS mas… Dean Anderson
- Re: [TLS] New drafts: adding input to the TLS mas… Marsh Ray
- Re: [TLS] New drafts: adding input to the TLS mas… Dean Anderson
- Re: [TLS] New drafts: adding input to the TLS mas… Martin Rex
- Re: [TLS] New drafts: adding input to the TLS mas… James Manger