
From smb@cs.columbia.edu  Tue May  4 06:57:45 2010
Return-Path: <smb@cs.columbia.edu>
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 891583A6BFF for <tls@core3.amsl.com>; Tue,  4 May 2010 06:57:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.001
X-Spam-Level: 
X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[BAYES_50=0.001]
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 7LzOI7dlkBmE for <tls@core3.amsl.com>; Tue,  4 May 2010 06:57:44 -0700 (PDT)
Received: from tarap.cc.columbia.edu (tarap.cc.columbia.edu [128.59.29.7]) by core3.amsl.com (Postfix) with ESMTP id 6839C3A6B83 for <tls@ietf.org>; Tue,  4 May 2010 06:57:43 -0700 (PDT)
Received: from [192.168.1.2] (148.sub-75-236-250.myvzw.com [75.236.250.148]) (user=smb2132 mech=PLAIN bits=0) by tarap.cc.columbia.edu (8.14.3/8.14.3) with ESMTP id o44DvRSd023137 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Tue, 4 May 2010 09:57:28 -0400 (EDT)
Mime-Version: 1.0 (Apple Message framework v1078)
Content-Type: text/plain; charset=us-ascii
From: Steven Bellovin <smb@cs.columbia.edu>
In-Reply-To: <20100428022226.GF10389@Sun.COM>
Date: Tue, 4 May 2010 09:10:36 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <A059CB15-9776-4711-8F79-94C6C76231B0@cs.columbia.edu>
References: <20100428005508.6F8BF3A6A6A@core3.amsl.com> <20100428022226.GF10389@Sun.COM>
To: Nicolas Williams <Nicolas.Williams@oracle.com>
X-Mailer: Apple Mail (2.1078)
X-No-Spam-Score: Local
X-Scanned-By: MIMEDefang 2.68 on 128.59.29.7
Cc: "'tls@ietf.org'" <tls@ietf.org>
Subject: Re: [TLS] RNG vs. PRNG
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: Tue, 04 May 2010 13:57:45 -0000

On Apr 27, 2010, at 10:22 26PM, Nicolas Williams wrote:

> On Tue, Apr 27, 2010 at 08:54:54PM -0400, Blumenthal, Uri - 0668 - =
MITLL wrote:
>> =46rom practical point of view an important difference between RNG =
and
>> PRNG is that it is (in practice, realistically) impossible to
>> compromise a "true" RNG - its random output is not reproducible, and
>> there's no way to purposefully get the same sequence from it -
>=20
> But there may be ways to attack the method by which the RNG works so =
as
> to bias it.  Whereas there's no way to do that for a PRNG.  In general
> it seems best to couple an RNG to a PRNG, using the former to seed and
> periodically replenish the entropy pool of the latter, thus removing
> biases from the RNG stream.

That's right.  Put differently, PRNGs have high behavioral assurance; if =
they're right, they'll continue to be right.  An RNG can be affected by =
the environment in all sorts of nasty analog ways.  This is one reason =
why in the Clipper chip design, the NSA used a PRNG to generate the unit =
keys.

		--Steve Bellovin, http://www.cs.columbia.edu/~smb






From dean@av8.com  Tue May  4 18:09:53 2010
Return-Path: <dean@av8.com>
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 C92AE3A697A for <tls@core3.amsl.com>; Tue,  4 May 2010 18:09:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.558
X-Spam-Level: 
X-Spam-Status: No, score=-0.558 tagged_above=-999 required=5 tests=[AWL=-0.559, BAYES_50=0.001]
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 uQMkD4Isls8X for <tls@core3.amsl.com>; Tue,  4 May 2010 18:09:48 -0700 (PDT)
Received: from cirrus.av8.net (cirrus.av8.net [130.105.36.66]) by core3.amsl.com (Postfix) with ESMTP id 6C3D83A6954 for <tls@ietf.org>; Tue,  4 May 2010 18:09:44 -0700 (PDT)
Received: from citation2.av8.net (citation2.av8.net [130.105.12.10]) (authenticated bits=0) by cirrus.av8.net (8.12.11/8.12.11) with ESMTP id o4519K3V003546 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 4 May 2010 21:09:23 -0400
Date: Tue, 4 May 2010 21:09:19 -0400 (EDT)
From: Dean Anderson <dean@av8.com>
X-X-Sender: dean@citation2.av8.net
To: Steven Bellovin <smb@cs.columbia.edu>
In-Reply-To: <A059CB15-9776-4711-8F79-94C6C76231B0@cs.columbia.edu>
Message-ID: <Pine.LNX.4.44.1005042046390.29670-100000@citation2.av8.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Cc: "'tls@ietf.org'" <tls@ietf.org>
Subject: Re: [TLS] RNG vs. PRNG
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, 05 May 2010 01:09:53 -0000

Inline:

On Tue, 4 May 2010, Steven Bellovin wrote:

> 
> On Apr 27, 2010, at 10:22 26PM, Nicolas Williams wrote:
> 
> > On Tue, Apr 27, 2010 at 08:54:54PM -0400, Blumenthal, Uri - 0668 - MITLL wrote:
> >> From practical point of view an important difference between RNG and
> >> PRNG is that it is (in practice, realistically) impossible to
> >> compromise a "true" RNG - its random output is not reproducible, and
> >> there's no way to purposefully get the same sequence from it -

If the RNG is truely random, it can not be biased either.  The bias is
the introduction of a non-random input; and by definition, a true RNG
has no non-random inputs. So a 'biased RNG' is just the discovery that
the device once thought to be an RNG was not one after all.

> > But there may be ways to attack the method by which the RNG works so as
> > to bias it.  Whereas there's no way to do that for a PRNG.  In general
> > it seems best to couple an RNG to a PRNG, using the former to seed and
> > periodically replenish the entropy pool of the latter, thus removing
> > biases from the RNG stream.
> 
> That's right.  Put differently, PRNGs have high behavioral assurance;
> if they're right, they'll continue to be right.  An RNG can be
> affected by the environment in all sorts of nasty analog ways.  This
> is one reason why in the Clipper chip design, the NSA used a PRNG to
> generate the unit keys.
> 
> 		--Steve Bellovin, http://www.cs.columbia.edu/~smb


Actually, the above is precisely wrong. 

PRNG's have statistical behaviors, as I described in an earlier post.  
However, some PRNGs (with statistically good behavior) have been
successfully analyzed by various methods, most impressively (to me) by
phase space analysis.

This claim by Bellovin's is most definitely not true of PRNGs: "if
they're right, they'll continue to be right".  PRNGs that are 'right'
have been broken in the past.  PRNGs can have bitwise statistical
properties and appear hard to predict, and still be subject to (eg)
phase space analysis.

I suspect the NSA most likely used PRNG's in Clipper because PRNGs were
practical to implement whereas RNGs are not. Or perhaps it was a mistake
altogether; Recall that Clipper was broken.  
http://findarticles.com/p/articles/mi_m0CGN/is_n140/ai_20909989/

It is definitely not because PRNGs can't be biased or analyzed.  Just
look at phase space analysis for DNS servers (BIND and DJBDNS), as well
as similar cracking on the GPS PRNG 'variation' that prevents commercial
units from getting the most accurate readings.  The GPS variation is
programmed into and corrected by military units, but not commercial
units. The 'variation' feature was supposed to prevent our enemies from
getting a super-accurate position.  GPS was broken shortly after 
commercial units became widely available.

		--Dean

-- 
Av8 Internet   Prepared to pay a premium for better service?
www.av8.net         faster, more reliable, better service
617 256 5494



From prvs=2741269883=uri@ll.mit.edu  Tue May  4 20:38:01 2010
Return-Path: <prvs=2741269883=uri@ll.mit.edu>
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 3165F3A6774 for <tls@core3.amsl.com>; Tue,  4 May 2010 20:38:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.998
X-Spam-Level: 
X-Spam-Status: No, score=-3.998 tagged_above=-999 required=5 tests=[BAYES_50=0.001, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 vup6UaOGfHXv for <tls@core3.amsl.com>; Tue,  4 May 2010 20:37:59 -0700 (PDT)
Received: from mx1.ll.mit.edu (MX1.LL.MIT.EDU [129.55.12.45]) by core3.amsl.com (Postfix) with ESMTP id 5B9A43A63EB for <tls@ietf.org>; Tue,  4 May 2010 20:37:59 -0700 (PDT)
Received: from LLE2K7-HUB02.mitll.ad.local (LLE2K7-HUB02.mitll.ad.local) by mx1.ll.mit.edu (unknown) with ESMTP id o453bXXL025432; Tue, 4 May 2010 23:37:33 -0400
From: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
To: Dean Anderson <dean@av8.com>, Steven Bellovin <smb@cs.columbia.edu>
Date: Tue, 4 May 2010 23:37:31 -0400
Thread-Topic: [TLS] RNG vs. PRNG
Thread-Index: Acrr76YCj/3DFas4SWGfA+xOTENxNQAFKSkj
Message-ID: <C806603B.A3E9%uri@ll.mit.edu>
In-Reply-To: <Pine.LNX.4.44.1005042046390.29670-100000@citation2.av8.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-Entourage/13.4.0.100208
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-05-04_15:2010-02-06, 2010-05-04, 2010-05-04 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-1004140000 definitions=main-1005040216
Cc: "'tls@ietf.org'" <tls@ietf.org>
Subject: Re: [TLS] RNG vs. PRNG
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, 05 May 2010 03:38:01 -0000

In general I have to agree with Dean.

True RNG "itself" can't be attacked - though its implementations could
(depending on many circumstances). Attacks against PRNG could be both
cryptanalytic and implementation-directed.

PRNG can't have higher behavioral assurance than RNG because if one can bia=
s
RNG output then the attacker got (or drastically reduced the search space
for) the PRNG seed - and thus can be highly assured of predicted PRNG
output. :-)

Unlike RNG, PRNG security has critical dependence on secrecy of its seed -
in addition to all other concerns (such as algorithm strength, correctness
of implementation, defense - or lack of - against attackers who can lay
hands on the box, etc - some of which are shared with RNG and some are
PRNG-unique).=20

PRNGs are so popular because RNG are hard to come by (and those available
typically trickle output bits, and the closer to consumer they are - the
more vulnerable to implementation attacks), and collecting decent amount of
randomness from an RNG is even harder. So naturally hybrid approach is
embraced, when one uses whatever little he can get from a true RNG (if he
can get hold of it) and seeds with it PRNG to get as much of "acceptable"
randomness as necessary.


On 5/4/10  21:09 , "Dean Anderson" <dean@av8.com> wrote:

> Inline:
>=20
> On Tue, 4 May 2010, Steven Bellovin wrote:
>=20
>>=20
>> On Apr 27, 2010, at 10:22 26PM, Nicolas Williams wrote:
>>=20
>>> On Tue, Apr 27, 2010 at 08:54:54PM -0400, Blumenthal, Uri - 0668 - MITL=
L
>>> wrote:
>>>> From practical point of view an important difference between RNG and
>>>> PRNG is that it is (in practice, realistically) impossible to
>>>> compromise a "true" RNG - its random output is not reproducible, and
>>>> there's no way to purposefully get the same sequence from it -
>=20
> If the RNG is truely random, it can not be biased either.  The bias is
> the introduction of a non-random input; and by definition, a true RNG
> has no non-random inputs. So a 'biased RNG' is just the discovery that
> the device once thought to be an RNG was not one after all.
>=20
>>> But there may be ways to attack the method by which the RNG works so as
>>> to bias it.  Whereas there's no way to do that for a PRNG.  In general
>>> it seems best to couple an RNG to a PRNG, using the former to seed and
>>> periodically replenish the entropy pool of the latter, thus removing
>>> biases from the RNG stream.
>>=20
>> That's right.  Put differently, PRNGs have high behavioral assurance;
>> if they're right, they'll continue to be right.  An RNG can be
>> affected by the environment in all sorts of nasty analog ways.  This
>> is one reason why in the Clipper chip design, the NSA used a PRNG to
>> generate the unit keys.
>>=20
>> --Steve Bellovin, http://www.cs.columbia.edu/~smb
>=20
>=20
> Actually, the above is precisely wrong.
>=20
> PRNG's have statistical behaviors, as I described in an earlier post.
> However, some PRNGs (with statistically good behavior) have been
> successfully analyzed by various methods, most impressively (to me) by
> phase space analysis.
>=20
> This claim by Bellovin's is most definitely not true of PRNGs: "if
> they're right, they'll continue to be right".  PRNGs that are 'right'
> have been broken in the past.  PRNGs can have bitwise statistical
> properties and appear hard to predict, and still be subject to (eg)
> phase space analysis.
>=20
> I suspect the NSA most likely used PRNG's in Clipper because PRNGs were
> practical to implement whereas RNGs are not. Or perhaps it was a mistake
> altogether; Recall that Clipper was broken.
> http://findarticles.com/p/articles/mi_m0CGN/is_n140/ai_20909989/
>=20
> It is definitely not because PRNGs can't be biased or analyzed.  Just
> look at phase space analysis for DNS servers (BIND and DJBDNS), as well
> as similar cracking on the GPS PRNG 'variation' that prevents commercial
> units from getting the most accurate readings.  The GPS variation is
> programmed into and corrected by military units, but not commercial
> units. The 'variation' feature was supposed to prevent our enemies from
> getting a super-accurate position.  GPS was broken shortly after
> commercial units became widely available.
>=20
> --Dean

--=20
Regards,
Uri


From Nicolas.Williams@oracle.com  Tue May  4 23:29:12 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 C6E623A67A3 for <tls@core3.amsl.com>; Tue,  4 May 2010 23:29:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.392
X-Spam-Level: 
X-Spam-Status: No, score=-1.392 tagged_above=-999 required=5 tests=[AWL=-1.394, BAYES_50=0.001, UNPARSEABLE_RELAY=0.001]
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 F+bUEQry3yCO for <tls@core3.amsl.com>; Tue,  4 May 2010 23:29:10 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 5D2673A6AEC for <tls@ietf.org>; Tue,  4 May 2010 23:29:09 -0700 (PDT)
Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o456Sfn0019434 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 5 May 2010 06:28:42 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o44IlXZo028429; Wed, 5 May 2010 06:28:40 GMT
Received: from abhmt012.oracle.com by acsmt354.oracle.com with ESMTP id 215097531273040910; Tue, 04 May 2010 23:28:30 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 04 May 2010 23:28:29 -0700
Date: Wed, 5 May 2010 01:28:24 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
Message-ID: <20100505062823.GW9429@oracle.com>
References: <Pine.LNX.4.44.1005042046390.29670-100000@citation2.av8.net> <C806603B.A3E9%uri@ll.mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <C806603B.A3E9%uri@ll.mit.edu>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: rcsinet13.oracle.com [148.87.113.125]
X-CT-RefId: str=0001.0A090206.4BE1101B.0078:SCFMA4539811,ss=1,fgs=0
Cc: "'tls@ietf.org'" <tls@ietf.org>
Subject: Re: [TLS] RNG vs. PRNG
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, 05 May 2010 06:29:12 -0000

I'm not sure what the point of this sub-thread is.  TLS can't really
mandate that implementations use real RNGs, and I suspect many (myself
included) would object to a requirement that implementors use real RNGs
not coupled with PRNGs (as a bias removal / RNG stream post-processing
technique).  Also, none of this is new; the subject has been
exhaustively treated before, thus we're just annoying uninterested TLS
WG list subscribers and wasting our own time.

On Tue, May 04, 2010 at 11:37:31PM -0400, Blumenthal, Uri - 0668 - MITLL wrote:
> In general I have to agree with Dean.
> 
> True RNG "itself" can't be attacked - though its implementations could
> (depending on many circumstances). Attacks against PRNG could be both
> cryptanalytic and implementation-directed.

A true RNG depends on physical processes.  Therefore it can be attacked
by physical means.  Now, the obvious retort is that without physical
security you can't have cryptographic security, and that is true, but
there's degrees of physical access that a device ought to be able to
tolerate.  The simplest thing to do is to couple an RNG to a PRNG.
Other post-processing of RNG outputs to remove bias are also possible.

(Also, one could conceive of RNG devices that can be affected without
direct access.  For example, thermal RNGs might get biased when the
system runs hot.)

> PRNG can't have higher behavioral assurance than RNG because if one can bias
> RNG output then the attacker got (or drastically reduced the search space
> for) the PRNG seed - and thus can be highly assured of predicted PRNG
> output. :-)

But the attacker would have to have prolonged physical access to the
RNG, and from the get-go; if at any point the attacker does not then the
attacker loses (assuming a well-constructed entropy pool, mixer and
extractor, which should have PRNG characteristics).

Let's put it this way: what rationale is there to not have a PRNG
coupled to an RNG?  (An "SRNG" in John Denker's terminology[0], but that
term isn't very common.  Even in the "true" RNG that Denker describes
there's still a cryptographic hash function in use.)

> Unlike RNG, PRNG security has critical dependence on secrecy of its seed -
> in addition to all other concerns (such as algorithm strength, correctness
> of implementation, defense - or lack of - against attackers who can lay
> hands on the box, etc - some of which are shared with RNG and some are
> PRNG-unique). 
> 
> PRNGs are so popular because RNG are hard to come by (and those available

True, but:

> typically trickle output bits, and the closer to consumer they are - the

a trickle of entropy over hours, coupled to a PRNG, can produce decent
results.  Also, I doubt the rate of entropy gathering from sensors is as
low as all that for, say, a cell phone -- maybe for one that just sits
there unused.  And consumer devices have enough ROM and flash storage
that a seed, counter, timestamp, ... can be stored and used to uniquely
seed a PRNG at bootup, which, combined with even a fairly low rate of
entropy gathering results in a system that's more easily attacked via
other vulnerabilities in the very rapidly growing OSes, TCBs and apps
that these devices run.

> more vulnerable to implementation attacks), and collecting decent amount of
> randomness from an RNG is even harder. So naturally hybrid approach is
> embraced, when one uses whatever little he can get from a true RNG (if he
> can get hold of it) and seeds with it PRNG to get as much of "acceptable"
> randomness as necessary.

Consumer devices and desktops don't usually get attacked via PRNG
attacks (except, of course, when the PRNG or seeding process is flawed
and the result is well-known keys, as in the Debian OpenSSL problem from
a while back).  This sub-thread might as well be about how many angels
can dance on a pinhead :)

[0] http://www.av8n.com/turbid/paper/turbid.htm#htoc47

Nico
-- 

From DPKemp@missi.ncsc.mil  Wed May  5 06:10:22 2010
Return-Path: <DPKemp@missi.ncsc.mil>
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 0B2C53A6BFA for <tls@core3.amsl.com>; Wed,  5 May 2010 06:10:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.184
X-Spam-Level: 
X-Spam-Status: No, score=-4.184 tagged_above=-999 required=5 tests=[AWL=-0.185, BAYES_50=0.001, 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 kY6e-k-DOSxl for <tls@core3.amsl.com>; Wed,  5 May 2010 06:10:20 -0700 (PDT)
Received: from stingray.missi.ncsc.mil (stingray.missi.ncsc.mil [144.51.50.20]) by core3.amsl.com (Postfix) with ESMTP id AA00A3A6B5B for <tls@ietf.org>; Wed,  5 May 2010 06:10:19 -0700 (PDT)
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Date: Wed, 5 May 2010 09:09:36 -0400
Message-ID: <201005051310.o45D9usV021739@stingray.missi.ncsc.mil>
In-Reply-To: <Pine.LNX.4.44.1005042046390.29670-100000@citation2.av8.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] RNG vs. PRNG
Thread-Index: Acrr773tPJhaLpptSp6JHPlH5/gjVgAYZwBQ
References: <A059CB15-9776-4711-8F79-94C6C76231B0@cs.columbia.edu> <Pine.LNX.4.44.1005042046390.29670-100000@citation2.av8.net>
From: "Kemp, David P." <DPKemp@missi.ncsc.mil>
To: <tls@ietf.org>
X-OriginalArrivalTime: 05 May 2010 13:11:07.0843 (UTC) FILETIME=[6CB10930:01CAEC54]
Subject: Re: [TLS] RNG vs. PRNG
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, 05 May 2010 13:10:22 -0000

-----Original Message-----
From: Dean Anderson

> If the RNG is truely random, it can not be biased either. The bias is
> the introduction of a non-random input; and by definition, a true RNG
> has no non-random inputs. So a 'biased RNG' is just the discovery that
> the device once thought to be an RNG was not one after all.

Sophistry.  A television that has been fried by lightning is still a TV,
albeit a broken one.  A 'biased RNG' may generate no entropy at all, in
which case it is broken.  Or it may generate entropy along with bias
that can be conditioned out.  If I take a true, fully functioning RNG
and add a constant value to every number it produces, the output becomes
biased.  But that bias is easily removed.  Adding zero or a small amount
of entropy to a sequence containing entropy does not remove *any*
entropy from that sequence.


> I suspect the NSA most likely used PRNG's in Clipper because PRNGs
were
> practical to implement whereas RNGs are not. Or perhaps it was a
mistake
> altogether; Recall that Clipper was broken. =20
> http://findarticles.com/p/articles/mi_m0CGN/is_n140/ai_20909989/

Speaking from fact rather than uninformed speculation, RNGs are
practical to implement. =20

http://csrc.nist.gov/groups/STM/cmvp/documents/140-1/140sp/140sp004.pdf
says:

  12.
     c. Random Number Generator Test: Functional testing of ring
oscillators and
LFSR is performed.

Dave



From marsh@extendedsubset.com  Wed May  5 15:02:53 2010
Return-Path: <marsh@extendedsubset.com>
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 72D393A6D32 for <tls@core3.amsl.com>; Wed,  5 May 2010 15:02:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.162
X-Spam-Level: 
X-Spam-Status: No, score=-0.162 tagged_above=-999 required=5 tests=[AWL=-0.163, BAYES_50=0.001]
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 oSCyOL7LegyA for <tls@core3.amsl.com>; Wed,  5 May 2010 15:02:52 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id D74A63A6CE6 for <tls@ietf.org>; Wed,  5 May 2010 15:02:51 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1O9mfu-000Gxs-8s; Wed, 05 May 2010 22:02:38 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 10DDD6048; Wed,  5 May 2010 22:02:37 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX19N3gDjPkkU/EwdTkMo2/hHLs4Ocx1O6Bs=
Message-ID: <4BE1EAFD.5030604@extendedsubset.com>
Date: Wed, 05 May 2010 17:02:37 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: Nicolas Williams <Nicolas.Williams@oracle.com>
References: <Pine.LNX.4.44.1005042046390.29670-100000@citation2.av8.net>	<C806603B.A3E9%uri@ll.mit.edu> <20100505062823.GW9429@oracle.com>
In-Reply-To: <20100505062823.GW9429@oracle.com>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: "'tls@ietf.org'" <tls@ietf.org>
Subject: Re: [TLS] RNG vs. PRNG
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, 05 May 2010 22:02:53 -0000

On 5/5/2010 1:28 AM, Nicolas Williams wrote:
> I'm not sure what the point of this sub-thread is.

The currently language in the spec is broken and misleading to the point
that people (implementers) are unclear about the requirements for
various protocol structures.

> TLS can't really
> mandate that implementations use real RNGs, and I suspect many (myself
> included) would object to a requirement that implementors use real
> RNGs not coupled with PRNGs (as a bias removal / RNG stream
> post-processing technique).

It's entirely within the scope of the spec to specify what properties of
various structures (e.g., premaster secret) are required for security.
The current specs do talk about it, but people seem to come away with
different meanings because the terminology is inconsistent.

In the case of client_hello.random and server_hello.random, I believe
that even though they are sent in-the-clear they need to be
crypto-quality unpredictable (and of course reveal no information about
any secret internal state).

> Also, none of this is new; the subject has been
> exhaustively treated before, thus we're just annoying uninterested TLS
> WG list subscribers and wasting our own time.

I agree that some of this is a tiny bit annoying, it bugs me that
everyone isn't on the same page with the terminology. I don't understand
why anyone would confuse a raw thermal noise source with a
well-constructed RNG (e.g., a healthy /dev/random), with a deterministic
PRNG (e.g. TLS's PRF), and so on.

Still, it seems pretty important that the next revision of the spec (or
some other IETF document) conveys the requirements clearly enough that
insecure implementations don't get shipped.

- Marsh


On 5/5/2010 1:28 AM, Nicolas Williams wrote:
> I'm not sure what the point of this sub-thread is.  TLS can't really
> mandate that implementations use real RNGs, and I suspect many (myself
> included) would object to a requirement that implementors use real RNGs
> not coupled with PRNGs (as a bias removal / RNG stream post-processing
> technique).  Also, none of this is new; the subject has been
> exhaustively treated before, thus we're just annoying uninterested TLS
> WG list subscribers and wasting our own time.
> 
> On Tue, May 04, 2010 at 11:37:31PM -0400, Blumenthal, Uri - 0668 - MITLL wrote:
>> In general I have to agree with Dean.
>>
>> True RNG "itself" can't be attacked - though its implementations could
>> (depending on many circumstances). Attacks against PRNG could be both
>> cryptanalytic and implementation-directed.
> 
> A true RNG depends on physical processes.  Therefore it can be attacked
> by physical means.  Now, the obvious retort is that without physical
> security you can't have cryptographic security, and that is true, but
> there's degrees of physical access that a device ought to be able to
> tolerate.  The simplest thing to do is to couple an RNG to a PRNG.
> Other post-processing of RNG outputs to remove bias are also possible.
> 
> (Also, one could conceive of RNG devices that can be affected without
> direct access.  For example, thermal RNGs might get biased when the
> system runs hot.)
> 
>> PRNG can't have higher behavioral assurance than RNG because if one can bias
>> RNG output then the attacker got (or drastically reduced the search space
>> for) the PRNG seed - and thus can be highly assured of predicted PRNG
>> output. :-)
> 
> But the attacker would have to have prolonged physical access to the
> RNG, and from the get-go; if at any point the attacker does not then the
> attacker loses (assuming a well-constructed entropy pool, mixer and
> extractor, which should have PRNG characteristics).
> 
> Let's put it this way: what rationale is there to not have a PRNG
> coupled to an RNG?  (An "SRNG" in John Denker's terminology[0], but that
> term isn't very common.  Even in the "true" RNG that Denker describes
> there's still a cryptographic hash function in use.)
> 
>> Unlike RNG, PRNG security has critical dependence on secrecy of its seed -
>> in addition to all other concerns (such as algorithm strength, correctness
>> of implementation, defense - or lack of - against attackers who can lay
>> hands on the box, etc - some of which are shared with RNG and some are
>> PRNG-unique). 
>>
>> PRNGs are so popular because RNG are hard to come by (and those available
> 
> True, but:
> 
>> typically trickle output bits, and the closer to consumer they are - the
> 
> a trickle of entropy over hours, coupled to a PRNG, can produce decent
> results.  Also, I doubt the rate of entropy gathering from sensors is as
> low as all that for, say, a cell phone -- maybe for one that just sits
> there unused.  And consumer devices have enough ROM and flash storage
> that a seed, counter, timestamp, ... can be stored and used to uniquely
> seed a PRNG at bootup, which, combined with even a fairly low rate of
> entropy gathering results in a system that's more easily attacked via
> other vulnerabilities in the very rapidly growing OSes, TCBs and apps
> that these devices run.
> 
>> more vulnerable to implementation attacks), and collecting decent amount of
>> randomness from an RNG is even harder. So naturally hybrid approach is
>> embraced, when one uses whatever little he can get from a true RNG (if he
>> can get hold of it) and seeds with it PRNG to get as much of "acceptable"
>> randomness as necessary.
> 
> Consumer devices and desktops don't usually get attacked via PRNG
> attacks (except, of course, when the PRNG or seeding process is flawed
> and the result is well-known keys, as in the Debian OpenSSL problem from
> a while back).  This sub-thread might as well be about how many angels
> can dance on a pinhead :)
> 
> [0] http://www.av8n.com/turbid/paper/turbid.htm#htoc47
> 
> Nico


From Nicolas.Williams@oracle.com  Wed May  5 15:26:03 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 991DC3A6AEB for <tls@core3.amsl.com>; Wed,  5 May 2010 15:26:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.332
X-Spam-Level: 
X-Spam-Status: No, score=-1.332 tagged_above=-999 required=5 tests=[AWL=-1.334, BAYES_50=0.001, UNPARSEABLE_RELAY=0.001]
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 YkKTEM21iBiF for <tls@core3.amsl.com>; Wed,  5 May 2010 15:26:01 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id B3B223A6D28 for <tls@ietf.org>; Wed,  5 May 2010 15:26:01 -0700 (PDT)
Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o45MPkgH018597 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 5 May 2010 22:25:47 GMT
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o45KXiBj005054; Wed, 5 May 2010 22:25:45 GMT
Received: from abhmt012.oracle.com by acsmt355.oracle.com with ESMTP id 240583321273098245; Wed, 05 May 2010 15:24:05 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 05 May 2010 15:24:04 -0700
Date: Wed, 5 May 2010 17:24:00 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Marsh Ray <marsh@extendedsubset.com>
Message-ID: <20100505222359.GJ9429@oracle.com>
References: <Pine.LNX.4.44.1005042046390.29670-100000@citation2.av8.net> <C806603B.A3E9%uri@ll.mit.edu> <20100505062823.GW9429@oracle.com> <4BE1EAFD.5030604@extendedsubset.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4BE1EAFD.5030604@extendedsubset.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: rcsinet15.oracle.com [148.87.113.117]
X-CT-RefId: str=0001.0A090208.4BE1F06B.0161:SCFMA4539811,ss=1,fgs=0
Cc: "'tls@ietf.org'" <tls@ietf.org>
Subject: Re: [TLS] RNG vs. PRNG
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, 05 May 2010 22:26:03 -0000

On Wed, May 05, 2010 at 05:02:37PM -0500, Marsh Ray wrote:
> On 5/5/2010 1:28 AM, Nicolas Williams wrote:
> > I'm not sure what the point of this sub-thread is.
> 
> The currently language in the spec is broken and misleading to the point
> that people (implementers) are unclear about the requirements for
> various protocol structures.
> 
> It's entirely within the scope of the spec to specify what properties of
> various structures (e.g., premaster secret) are required for security.
> The current specs do talk about it, but people seem to come away with
> different meanings because the terminology is inconsistent.
> 
> In the case of client_hello.random and server_hello.random, I believe
> that even though they are sent in-the-clear they need to be
> crypto-quality unpredictable (and of course reveal no information about
> any secret internal state).

This is really the province of RFC4086/BCP0106.  TLS has no business
having different entropy requirements than other security protocols (set
aside for now the fact that having weak entropy sources will have
varying impact depending on the use).  As such there are better fora
than the TLS WG for this discussion.

In any case, we've not exactly been debating what properties we need for
*RNGs for TLS.  We've instead ratholed into a "true RNGs are better"
"are not" situation.

> > Also, none of this is new; the subject has been
> > exhaustively treated before, thus we're just annoying uninterested TLS
> > WG list subscribers and wasting our own time.
> 
> I agree that some of this is a tiny bit annoying, it bugs me that
> everyone isn't on the same page with the terminology. I don't understand

Welcome to the world of... well, this world.

> why anyone would confuse a raw thermal noise source with a
> well-constructed RNG (e.g., a healthy /dev/random), with a deterministic
> PRNG (e.g. TLS's PRF), and so on.

We don't have good, standard terminology.  Some people don't mean
PRNG-seeded-with-static-seed-and-maybe-a-counter when they speak of
PRNGs, but others interpret "PRNG" to mean just that and then treat the
first as idiots.  Trouble ensues.  I agree, we need common terminology.

> Still, it seems pretty important that the next revision of the spec (or
> some other IETF document) conveys the requirements clearly enough that
> insecure implementations don't get shipped.

I don't agree.  The next revision, like the current one, should
reference RFC4086, though we might want a normaitive reference instead
of an informative one.  We might also want a standard, rather than just
a BCP, on entropy.  Also, BCP0106 should have a glossary.

Nico
-- 

From dean@av8.com  Thu May  6 10:15:22 2010
Return-Path: <dean@av8.com>
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 3CEE63A67EF for <tls@core3.amsl.com>; Thu,  6 May 2010 10:15:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.522
X-Spam-Level: 
X-Spam-Status: No, score=-0.522 tagged_above=-999 required=5 tests=[AWL=-0.523, BAYES_50=0.001]
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 Lqyy5gsxJ4cd for <tls@core3.amsl.com>; Thu,  6 May 2010 10:15:20 -0700 (PDT)
Received: from cirrus.av8.net (cirrus.av8.net [130.105.36.66]) by core3.amsl.com (Postfix) with ESMTP id A5DF43A695F for <tls@ietf.org>; Thu,  6 May 2010 10:15:08 -0700 (PDT)
Received: from citation2.av8.net (citation2.av8.net [130.105.12.10]) (authenticated bits=0) by cirrus.av8.net (8.12.11/8.12.11) with ESMTP id o46HEmgR016539 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 6 May 2010 13:14:48 -0400
Date: Thu, 6 May 2010 13:14:47 -0400 (EDT)
From: Dean Anderson <dean@av8.com>
X-X-Sender: dean@citation2.av8.net
To: Nicolas Williams <Nicolas.Williams@oracle.com>
In-Reply-To: <20100505062823.GW9429@oracle.com>
Message-ID: <Pine.LNX.4.44.1005061259060.30940-100000@citation2.av8.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Cc: "'tls@ietf.org'" <tls@ietf.org>
Subject: Re: [TLS] RNG vs. PRNG
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: Thu, 06 May 2010 17:15:22 -0000

On Wed, 5 May 2010, Nicolas Williams wrote:

> I'm not sure what the point of this sub-thread is.  

The point of the draft is to extend the random bits.  So a question 
related to that is: "Is anything to be gained by having more 'random' 
bits?"  This sub-thread, in part, answers that question.

The real random value is pre_master_secret. The purpose of the 
*Hello.random additions is to ensure a unique master_secret on 
additional channels. These have no contribution to the security of the 
random set chosen for pre_master_secret:

master_secret = PRF(pre_master_secret, "master secret",
                          ClientHello.random + ServerHello.random)
                          [0..47];

The master_secret has 48 bytes, the pre_master_secret has 48 bytes. One 
cannot add "more randomness".  Hence the conclusion is this:

1) One cannot add more "randomness" into the calculation. Either 
pre_master_secret is a true random number or it isn't. 

2) Since the *Hello.random bit set is publicly exposed, using the same 
random generator for these as for pre_master_secret would potentially 
expose the [P]RNG to analysis and thereby expose pre_master_secret as 
well as *Hello.random. If all the inputs to the PRF are known, then 
master_secret is known.


> TLS can't really mandate that implementations use real RNGs

I agree. So we have to assume that some [many] implementers will use 
PRNGs and so exposing these bits to analysis is a very bad thing(tm).

> > True RNG "itself" can't be attacked - though its implementations could
> > (depending on many circumstances). Attacks against PRNG could be both
> > cryptanalytic and implementation-directed.
> 
> A true RNG depends on physical processes.  Therefore it can be attacked
> by physical means.  

Perhaps in principle, the RNG could be tampered with so future bits
aren't random. But the past bits would remain secure. So having a log of
messages encrypted with a true RNG remain unbreakable, even if you
subseqently tamper with the RNG.  This would not be true of a PRNG. Once
you gain the seed, you can compute any output.


> The simplest thing to do is to couple an RNG to a PRNG.

No. A PRNG only generates a subset of the input: equal in size to the
size of the seed. PRNGs reduce entropy to the size of the seed. 

Design Rule: You can't get better than a real RNG. Once you have that,
you can only make it worse. (I suspect that stems from thermodynamics)

		--Dean


-- 
Av8 Internet   Prepared to pay a premium for better service?
www.av8.net         faster, more reliable, better service
617 256 5494



From mrex@sap.com  Thu May  6 11:37:12 2010
Return-Path: <mrex@sap.com>
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 C65033A6A42 for <tls@core3.amsl.com>; Thu,  6 May 2010 11:37:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.879
X-Spam-Level: 
X-Spam-Status: No, score=-7.879 tagged_above=-999 required=5 tests=[AWL=-0.230, BAYES_50=0.001, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_HI=-8]
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 TuD9QIhwl-sC for <tls@core3.amsl.com>; Thu,  6 May 2010 11:37:12 -0700 (PDT)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.171]) by core3.amsl.com (Postfix) with ESMTP id 983503A69A0 for <tls@ietf.org>; Thu,  6 May 2010 11:37:11 -0700 (PDT)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o46Iann7005700 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 6 May 2010 20:36:49 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201005061836.o46IamDe006444@fs4113.wdf.sap.corp>
To: dean@av8.com (Dean Anderson)
Date: Thu, 6 May 2010 20:36:48 +0200 (MEST)
In-Reply-To: <Pine.LNX.4.44.1005061259060.30940-100000@citation2.av8.net> from "Dean Anderson" at May 6, 10 01:14:47 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal05
X-SAP: out
Cc: tls@ietf.org
Subject: Re: [TLS] RNG vs. PRNG
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
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/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: Thu, 06 May 2010 18:37:12 -0000

Dean Anderson wrote:
> 
> > > True RNG "itself" can't be attacked - though its implementations could
> > > (depending on many circumstances). Attacks against PRNG could be both
> > > cryptanalytic and implementation-directed.
> > 
> > A true RNG depends on physical processes.  Therefore it can be attacked
> > by physical means.  

True RNG values can not be attacked by "guessing" them.
But it is likely possible to make a RNG produce less output values
or output values with less entropy.

Possibilities to collect "true RNG values" is measuring
thermal noise.  While it may appear difficult to influence the
actual physical process, it is usually much easier to impact
the sensor that "measures" the physical process.

A potential means to make an RNG based on thermal noise produce
less entropy is cooling the entire device down.

But maybe it is also possible to trick the sensor, either with an
strong RF signal using a constant-fequency sine wave (contact-less)
or by ultra-sonic motions (i.e with contact).

> 
> 
> > The simplest thing to do is to couple an RNG to a PRNG.
> 
> No. A PRNG only generates a subset of the input: equal in size to the
> size of the seed. PRNGs reduce entropy to the size of the seed. 

I don't think that is generally true.

This would imply that the size of the "loop" depends on the amount
of entropy in the seed -- which is probably wrong.

A PRNG is by design limited to a certain number of internal
states (e.g. size of the entropy pool), and there is a deterministic
correlation between the PRNG output values and the PRNG internal state.

Usually PRNGs modify their internal state each time that a PRNG output
value is requested.

Leaving re-seeding aside, when requesting enough output values,
at some point the output values will start repeating.

Let's say you use a PRNG with 256-bit of internal state.

If you're lucky, and your PRNG has only one single loop, then
output values will repeat after 2^256 extractions.  The seed will
only determine where on this single loop you start.

But if your PRNG has 2^128 loops of length 2^128, then your output
values will start repeating after 2^128 extractions.  The seed will
determine on which of the 2^128 loops you start, but it will not
affect that your output values repeat after 2^128 extractions.


-Martin

From stefan@aaa-sec.com  Fri May  7 04:15:02 2010
Return-Path: <stefan@aaa-sec.com>
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 28E383A6CAF for <tls@core3.amsl.com>; Fri,  7 May 2010 04:15:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.576
X-Spam-Level: **
X-Spam-Status: No, score=2.576 tagged_above=-999 required=5 tests=[AWL=-1.671,  BAYES_99=3.5, HELO_EQ_SE=0.35, HTML_MESSAGE=0.001, MIME_QP_LONG_LINE=1.396, RCVD_IN_DNSWL_LOW=-1]
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 kzgdxra2X0v0 for <tls@core3.amsl.com>; Fri,  7 May 2010 04:14:57 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id 5E5DF3A6B14 for <tls@ietf.org>; Fri,  7 May 2010 04:14:23 -0700 (PDT)
Received: from s60.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 52EAE28CFBF for <tls@ietf.org>; Fri,  7 May 2010 13:14:10 +0200 (CEST)
Received: (qmail 17393 invoked from network); 7 May 2010 11:14:05 -0000
Received: from unknown (HELO [192.168.1.3]) (stefan@fiddler.nu@[85.235.2.114]) (envelope-sender <stefan@aaa-sec.com>) by s60.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <tls@ietf.org>; 7 May 2010 11:14:05 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Fri, 07 May 2010 13:14:04 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: "tls@ietf.org" <tls@ietf.org>
Message-ID: <C809C29C.A99B%stefan@aaa-sec.com>
Thread-Topic: FNV versus SHA-1 in cached info
Thread-Index: Acrt1mb76BxWpF2zLEmH7x0p3McNTQ==
Mime-version: 1.0
Content-type: multipart/alternative; boundary="B_3356082846_30818394"
Subject: [TLS] FNV versus SHA-1 in cached info
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: Fri, 07 May 2010 11:15:02 -0000

> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--B_3356082846_30818394
Content-type: text/plain;
	charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable

At the recent IETF meeting in Anaheim, Eric announced that he was not all
that happy with the choice of FNV in the Cached info draft.

I have recently had an e-mail exchange with Eric on this matter where he
told med that he do not want to see FNV used over SHA-1 in a TLS protocol
and that he plans on sending a message on the subject to this list.

I would therefore like to kick off the discussion as I want us to conclude
this issue and publish the draft. There is no reason to drag this on
forever.

The reason I personally agreed to use FNV for this draft is not because it
is better than SHA-1, nor that it is easier to implement (provided you have
a crypto library with SHA-1 functionality). The rationales for me was to
avoid a politically charged situation where many automatically think you
need 1) a high level of security 2) algorithm agility and 3) negotiations t=
o
ensure interoperability, as soon as a hash algorithm is used for anything.

It was evident from earlier discussions on the list that we could not get
out of this discussion and the unnecessary extra protocol complexity unless
we picked a non-cryptographic hash.

Eric told me that he do not like the uncertainly introduced by a new
algorithm.

I don=B9t understand this argument in this case, when the selected algorithm
isn=B9t required to provide security.
The only issues of relevance (that I can se) is:

1) Does FNV do the job to create reasonably unique identifiers of cached
objects?
2) Can FNV be implemented with reasonable expectation of interoperability?

The answer to both questions is YES.

The draft contains code samples and test vectors. We already have three tes=
t
implementations that has demonstrated interoperability by matching the test
vectors. Its fast and its extremely easy to implement.

I would not have any problem with using SHA-1 if it could be used with no
agility what so ever. But I seriously doubt that this will be accepted and
for that reason I would like to keep FNV.

Please provide your thoughts and comments so we can close this issue and
move on.

/Stefan

--B_3356082846_30818394
Content-type: text/html;
	charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable

<HTML>
<HEAD>
<TITLE>FNV versus SHA-1 in cached info</TITLE>
</HEAD>
<BODY>
<FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:11pt=
'>At the recent IETF meeting in Anaheim, Eric announced that he was not all =
that happy with the choice of FNV in the Cached info draft.<BR>
<BR>
I have recently had an e-mail exchange with Eric on this matter where he to=
ld med that he do not want to see FNV used over SHA-1 in a TLS protocol and =
that he plans on sending a message on the subject to this list.<BR>
<BR>
I would therefore like to kick off the discussion as I want us to conclude =
this issue and publish the draft. There is no reason to drag this on forever=
.<BR>
<BR>
The reason I personally agreed to use FNV for this draft is not because it =
is better than SHA-1, nor that it is easier to implement (provided you have =
a crypto library with SHA-1 functionality). The rationales for me was to avo=
id a politically charged situation where many automatically think you need 1=
) a high level of security 2) algorithm agility and 3) negotiations to ensur=
e interoperability, as soon as a hash algorithm is used for anything. <BR>
<BR>
It was evident from earlier discussions on the list that we could not get o=
ut of this discussion and the unnecessary extra protocol complexity unless w=
e picked a non-cryptographic hash.<BR>
<BR>
Eric told me that he do not like the uncertainly introduced by a new algori=
thm.<BR>
<BR>
I don&#8217;t understand this argument in this case, when the selected algo=
rithm isn&#8217;t required to provide security.<BR>
The only issues of relevance (that I can se) is:<BR>
<BR>
1) Does FNV do the job to create reasonably unique identifiers of cached ob=
jects?<BR>
2) Can FNV be implemented with reasonable expectation of interoperability?<=
BR>
<BR>
The answer to both questions is YES.<BR>
<BR>
The draft contains code samples and test vectors. We already have three tes=
t implementations that has demonstrated interoperability by matching the tes=
t vectors. Its fast and its extremely easy to implement.<BR>
<BR>
I would not have any problem with using SHA-1 if it could be used with no a=
gility what so ever. But I seriously doubt that this will be accepted and fo=
r that reason I would like to keep FNV.<BR>
<BR>
Please provide your thoughts and comments so we can close this issue and mo=
ve on.<BR>
<BR>
/Stefan</SPAN></FONT>
</BODY>
</HTML>


--B_3356082846_30818394--



From stefan@aaa-sec.com  Fri May  7 04:26:19 2010
Return-Path: <stefan@aaa-sec.com>
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 13E6928C0D0 for <tls@core3.amsl.com>; Fri,  7 May 2010 04:26:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.383
X-Spam-Level: *
X-Spam-Status: No, score=1.383 tagged_above=-999 required=5 tests=[AWL=0.636,  BAYES_50=0.001, HELO_EQ_SE=0.35, HTML_MESSAGE=0.001, MIME_QP_LONG_LINE=1.396, RCVD_IN_DNSWL_LOW=-1]
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 qbwfEbSabkoP for <tls@core3.amsl.com>; Fri,  7 May 2010 04:26:14 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id 06D0228C0DF for <tls@ietf.org>; Fri,  7 May 2010 04:23:37 -0700 (PDT)
Received: from s24.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 925ED28CC6C for <tls@ietf.org>; Fri,  7 May 2010 13:23:28 +0200 (CEST)
Received: (qmail 46781 invoked from network); 7 May 2010 11:23:23 -0000
Received: from unknown (HELO [192.168.1.3]) (stefan@fiddler.nu@[85.235.2.114]) (envelope-sender <stefan@aaa-sec.com>) by s24.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <stefan@aaa-sec.com>; 7 May 2010 11:23:23 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Fri, 07 May 2010 13:23:21 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: Stefan Santesson <stefan@aaa-sec.com>, "tls@ietf.org" <tls@ietf.org>
Message-ID: <C809C4C9.A9A0%stefan@aaa-sec.com>
Thread-Topic: [TLS] FNV versus SHA-1 in cached info
Thread-Index: Acrt1mb76BxWpF2zLEmH7x0p3McNTQAAUv/3
In-Reply-To: <C809C29C.A99B%stefan@aaa-sec.com>
Mime-version: 1.0
Content-type: multipart/alternative; boundary="B_3356083403_30851927"
Subject: Re: [TLS] FNV versus SHA-1 in cached info
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: Fri, 07 May 2010 11:26:19 -0000

> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--B_3356083403_30851927
Content-type: text/plain;
	charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable

Sorry, just want to complement the list of important criteria I can see:

1) Does FNV do the job to create reasonably unique identifiers of cached
objects?
2) Can FNV be implemented with reasonable expectation of interoperability?
3) Is the algorithm free of any IPR and license requirements.

The answer to all three is YES.

/Stefan

On 10-05-07 1:14 PM, "Stefan Santesson" <stefan@aaa-sec.com> wrote:

> At the recent IETF meeting in Anaheim, Eric announced that he was not all=
 that
> happy with the choice of FNV in the Cached info draft.
>=20
> I have recently had an e-mail exchange with Eric on this matter where he =
told
> med that he do not want to see FNV used over SHA-1 in a TLS protocol and =
that
> he plans on sending a message on the subject to this list.
>=20
> I would therefore like to kick off the discussion as I want us to conclud=
e
> this issue and publish the draft. There is no reason to drag this on fore=
ver.
>=20
> The reason I personally agreed to use FNV for this draft is not because i=
t is
> better than SHA-1, nor that it is easier to implement (provided you have =
a
> crypto library with SHA-1 functionality). The rationales for me was to av=
oid a
> politically charged situation where many automatically think you need 1) =
a
> high level of security 2) algorithm agility and 3) negotiations to ensure
> interoperability, as soon as a hash algorithm is used for anything.
>=20
> It was evident from earlier discussions on the list that we could not get=
 out
> of this discussion and the unnecessary extra protocol complexity unless w=
e
> picked a non-cryptographic hash.
>=20
> Eric told me that he do not like the uncertainly introduced by a new
> algorithm.
>=20
> I don=B9t understand this argument in this case, when the selected algorith=
m
> isn=B9t required to provide security.
> The only issues of relevance (that I can se) is:
>=20
> 1) Does FNV do the job to create reasonably unique identifiers of cached
> objects?
> 2) Can FNV be implemented with reasonable expectation of interoperability=
?
>=20
> The answer to both questions is YES.
>=20
> The draft contains code samples and test vectors. We already have three t=
est
> implementations that has demonstrated interoperability by matching the te=
st
> vectors. Its fast and its extremely easy to implement.
>=20
> I would not have any problem with using SHA-1 if it could be used with no
> agility what so ever. But I seriously doubt that this will be accepted an=
d for
> that reason I would like to keep FNV.
>=20
> Please provide your thoughts and comments so we can close this issue and =
move
> on.
>=20
> /Stefan
>=20
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls


--B_3356083403_30851927
Content-type: text/html;
	charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable

<HTML>
<HEAD>
<TITLE>Re: [TLS] FNV versus SHA-1 in cached info</TITLE>
</HEAD>
<BODY>
<FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:11pt=
'>Sorry, just want to complement the list of important criteria I can see:<B=
R>
<BR>
1) Does FNV do the job to create reasonably unique identifiers of cached ob=
jects?<BR>
2) Can FNV be implemented with reasonable expectation of interoperability?<=
BR>
<B>3) Is the algorithm free of any IPR and license requirements.<BR>
</B><BR>
The answer to all three is YES.<BR>
<BR>
/Stefan<BR>
<BR>
On 10-05-07 1:14 PM, &quot;Stefan Santesson&quot; &lt;<a href=3D"stefan@aaa-s=
ec.com">stefan@aaa-sec.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><=
SPAN STYLE=3D'font-size:11pt'>At the recent IETF meeting in Anaheim, Eric anno=
unced that he was not all that happy with the choice of FNV in the Cached in=
fo draft.<BR>
<BR>
I have recently had an e-mail exchange with Eric on this matter where he to=
ld med that he do not want to see FNV used over SHA-1 in a TLS protocol and =
that he plans on sending a message on the subject to this list.<BR>
<BR>
I would therefore like to kick off the discussion as I want us to conclude =
this issue and publish the draft. There is no reason to drag this on forever=
.<BR>
<BR>
The reason I personally agreed to use FNV for this draft is not because it =
is better than SHA-1, nor that it is easier to implement (provided you have =
a crypto library with SHA-1 functionality). The rationales for me was to avo=
id a politically charged situation where many automatically think you need 1=
) a high level of security 2) algorithm agility and 3) negotiations to ensur=
e interoperability, as soon as a hash algorithm is used for anything. <BR>
<BR>
It was evident from earlier discussions on the list that we could not get o=
ut of this discussion and the unnecessary extra protocol complexity unless w=
e picked a non-cryptographic hash.<BR>
<BR>
Eric told me that he do not like the uncertainly introduced by a new algori=
thm.<BR>
<BR>
I don&#8217;t understand this argument in this case, when the selected algo=
rithm isn&#8217;t required to provide security.<BR>
The only issues of relevance (that I can se) is:<BR>
<BR>
1) Does FNV do the job to create reasonably unique identifiers of cached ob=
jects?<BR>
2) Can FNV be implemented with reasonable expectation of interoperability?<=
BR>
<BR>
The answer to both questions is YES.<BR>
<BR>
The draft contains code samples and test vectors. We already have three tes=
t implementations that has demonstrated interoperability by matching the tes=
t vectors. Its fast and its extremely easy to implement.<BR>
<BR>
I would not have any problem with using SHA-1 if it could be used with no a=
gility what so ever. But I seriously doubt that this will be accepted and fo=
r that reason I would like to keep FNV.<BR>
<BR>
Please provide your thoughts and comments so we can close this issue and mo=
ve on.<BR>
<BR>
/Stefan<BR>
<HR ALIGN=3DCENTER SIZE=3D"3" WIDTH=3D"95%"></SPAN></FONT><FONT SIZE=3D"2"><FONT FA=
CE=3D"Consolas, Courier New, Courier"><SPAN STYLE=3D'font-size:10pt'>___________=
____________________________________<BR>
TLS mailing list<BR>
<a href=3D"TLS@ietf.org">TLS@ietf.org</a><BR>
<a href=3D"https://www.ietf.org/mailman/listinfo/tls">https://www.ietf.org/ma=
ilman/listinfo/tls</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE>
</BODY>
</HTML>


--B_3356083403_30851927--



From simon@josefsson.org  Fri May  7 04:27:04 2010
Return-Path: <simon@josefsson.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 9B1A83A6B26 for <tls@core3.amsl.com>; Fri,  7 May 2010 04:27:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.489
X-Spam-Level: 
X-Spam-Status: No, score=-2.489 tagged_above=-999 required=5 tests=[AWL=0.110,  BAYES_00=-2.599]
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 6U-OzMJxbJrg for <tls@core3.amsl.com>; Fri,  7 May 2010 04:27:03 -0700 (PDT)
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39]) by core3.amsl.com (Postfix) with ESMTP id 7A8FE3A6C57 for <tls@ietf.org>; Fri,  7 May 2010 04:24:47 -0700 (PDT)
Received: from mocca (c80-216-25-148.bredband.comhem.se [80.216.25.148]) (authenticated bits=0) by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o47BOJ6L009184 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 7 May 2010 13:24:23 +0200
From: Simon Josefsson <simon@josefsson.org>
To: Stefan Santesson <stefan@aaa-sec.com>
References: <C809C29C.A99B%stefan@aaa-sec.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100507:stefan@aaa-sec.com::1VaaW7F5xsNOz4hm:6KHB
X-Hashcash: 1:22:100507:tls@ietf.org::dIu+JfwylwP077bH:UHwz
Date: Fri, 07 May 2010 13:24:18 +0200
In-Reply-To: <C809C29C.A99B%stefan@aaa-sec.com> (Stefan Santesson's message of "Fri, 07 May 2010 13:14:04 +0200")
Message-ID: <87vdb0vtst.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Virus-Scanned: clamav-milter 0.96 at yxa-v
X-Virus-Status: Clean
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] FNV versus SHA-1 in cached info
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: Fri, 07 May 2010 11:27:04 -0000

Stefan Santesson <stefan@aaa-sec.com> writes:

> I would not have any problem with using SHA-1 if it could be used with no
> agility what so ever. But I seriously doubt that this will be accepted and
> for that reason I would like to keep FNV.

I also prefer to use FNV here.

Organizations are performing review of how MD5 and eventually SHA-1 are
used in their code bases, and this is costly.  If we know when designing
a protocol that the normal cryptographic properties are not essential,
and that an algorithm like FNV will suffice, it saves everyone the costs
associated with that review.  This is only one argument for FNV, there
are others.

I wish we used something like FNV instead of SHA-1 in SASL GS2, the use
there also do not require cryptographic properties.

/Simon

From DPKemp@missi.ncsc.mil  Fri May  7 06:22:48 2010
Return-Path: <DPKemp@missi.ncsc.mil>
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 9B1643A6811 for <tls@core3.amsl.com>; Fri,  7 May 2010 06:22:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.137
X-Spam-Level: 
X-Spam-Status: No, score=-4.137 tagged_above=-999 required=5 tests=[AWL=-0.139, BAYES_50=0.001, HTML_MESSAGE=0.001, 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 knVV1WONFYqd for <tls@core3.amsl.com>; Fri,  7 May 2010 06:22:43 -0700 (PDT)
Received: from stingray.missi.ncsc.mil (stingray.missi.ncsc.mil [144.51.50.20]) by core3.amsl.com (Postfix) with ESMTP id 374803A6B65 for <tls@ietf.org>; Fri,  7 May 2010 06:22:02 -0700 (PDT)
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CAEDE8.34C34E44"
Date: Fri, 7 May 2010 09:21:29 -0400
Message-ID: <201005071321.o47DLVv5003311@stingray.missi.ncsc.mil>
In-Reply-To: <C809C29C.A99B%stefan@aaa-sec.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] FNV versus SHA-1 in cached info
Thread-Index: Acrt1mb76BxWpF2zLEmH7x0p3McNTQADhp6g
References: <C809C29C.A99B%stefan@aaa-sec.com>
From: "Kemp, David P." <DPKemp@missi.ncsc.mil>
To: "Stefan Santesson" <stefan@aaa-sec.com>, <tls@ietf.org>
X-OriginalArrivalTime: 07 May 2010 13:22:42.0390 (UTC) FILETIME=[5F7FFF60:01CAEDE8]
Subject: Re: [TLS] FNV versus SHA-1 in cached info
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: Fri, 07 May 2010 13:22:49 -0000

This is a multi-part message in MIME format.

------_=_NextPart_001_01CAEDE8.34C34E44
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable


> I would not have any problem with using SHA-1 if it could be used with
no

> agility what so ever. But I seriously doubt that this will be accepted
and for

> that reason I would like to keep FNV.
>
> Please provide your thoughts and comments so we can close this issue
and move on.
>
> Stefan

=20

My thoughts exactly.  I originally believed that non-negotiable SHA-1
would be free of controversy, but since that has turned out not to be
the case, I favor keeping FNV.=20

=20

If Eric can get Russ to mandate that the TLS WG SHALL accept the use of
SHA-1 for a non-cryptographic purpose (truncated to 64 bits for emphasis
as well as for bandwidth, and not subject to agility requirements), that
would be a reasonable outcome.  But that's not the IETF way.

=20

Using SHA-256 for this purpose is unreasonable, and I would not be in
favor of any outcome that would cause that to happen.

=20

Dave

=20


------_=_NextPart_001_01CAEDE8.34C34E44
Content-Type: text/html;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<title>FNV versus SHA-1 in cached info</title>
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{mso-style-priority:34;
	margin-top:0in;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.5in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
span.EmailStyle17
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
	{page:Section1;}
 /* List Definitions */
 @list l0
	{mso-list-id:643319829;
	mso-list-type:hybrid;
	mso-list-template-ids:-118197840 -1526298364 67698691 67698693 67698689 =
67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
	{mso-level-start-at:0;
	mso-level-number-format:bullet;
	mso-level-text:\F0D8;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Wingdings;
	mso-fareast-font-family:Calibri;
	mso-bidi-font-family:"Times New Roman";}
ol
	{margin-bottom:0in;}
ul
	{margin-bottom:0in;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"'><br>
<span style=3D'color:#1F497D'>&gt; </span>I would not have any problem =
with using
SHA-1 if it could be used with no<span =
style=3D'color:#1F497D'><o:p></o:p></span></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&gt;</span><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> </span><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"'>agility
what so ever. But I seriously doubt that this will be accepted and =
for<span
style=3D'color:#1F497D'><o:p></o:p></span></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&gt; </span><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"'>that
reason I would like to keep FNV.<br>
<span style=3D'color:#1F497D'>&gt;</span><br>
<span style=3D'color:#1F497D'>&gt; </span>Please provide your thoughts =
and
comments so we can close this issue and move on.<br>
<span style=3D'color:#1F497D'>&gt;</span><br>
<span style=3D'color:#1F497D'>&gt; </span>Stefan</span><span =
style=3D'color:#1F497D'><o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>My thoughts exactly.&nbsp; I originally believed that
non-negotiable SHA-1 would be free of controversy, but since that has =
turned
out not to be the case, I favor keeping FNV. <o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>If Eric can get Russ to mandate that the TLS WG SHALL =
accept the
use of SHA-1 for a non-cryptographic purpose (truncated to 64 bits for =
emphasis
as well as for bandwidth, and not subject to agility requirements), that =
would
be a reasonable outcome.&nbsp; But that&#8217;s not the IETF =
way.<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Using SHA-256 for this purpose is unreasonable, and I =
would not
be in favor of any outcome that would cause that to =
happen.<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Dave<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

</div>

</body>

</html>

------_=_NextPart_001_01CAEDE8.34C34E44--

From agl@google.com  Fri May  7 07:36:14 2010
Return-Path: <agl@google.com>
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 1D8093A67F5 for <tls@core3.amsl.com>; Fri,  7 May 2010 07:36:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.377
X-Spam-Level: 
X-Spam-Status: No, score=-103.377 tagged_above=-999 required=5 tests=[BAYES_50=0.001, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
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 NpGLMs0-eeft for <tls@core3.amsl.com>; Fri,  7 May 2010 07:36:13 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id 81A603A6857 for <tls@ietf.org>; Fri,  7 May 2010 07:35:32 -0700 (PDT)
Received: from hpaq12.eem.corp.google.com (hpaq12.eem.corp.google.com [172.25.149.12]) by smtp-out.google.com with ESMTP id o47EZGm7011948 for <tls@ietf.org>; Fri, 7 May 2010 07:35:16 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1273242917; bh=KcnlpLAVpjvF3Hdu5K1TDtIWj34=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=L5o9z/cfb5pGXeqI2UK9bUqSsZWlIYCuR73ytsXDdTetIp6dnlq3wgl0XDaNIkgmB osBhjy1ZGq/fcQzjhbMzA==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:x-system-of-record; b=rhQby8mLPGHKI1xb6hmMqp5xzsjzWGWNErSWdB98p1La5m2/3CUIJDg5h/RxU+Bdu XcA2eV+qnK59Z7dO0IVeA==
Received: from pvg16 (pvg16.prod.google.com [10.241.210.144]) by hpaq12.eem.corp.google.com with ESMTP id o47EZD0f030915 for <tls@ietf.org>; Fri, 7 May 2010 07:35:15 -0700
Received: by pvg16 with SMTP id 16so495669pvg.36 for <tls@ietf.org>; Fri, 07 May 2010 07:35:13 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.141.4.10 with SMTP id g10mr7881739rvi.8.1273242913593; Fri, 07  May 2010 07:35:13 -0700 (PDT)
Received: by 10.231.28.168 with HTTP; Fri, 7 May 2010 07:35:13 -0700 (PDT)
In-Reply-To: <C809C4C9.A9A0%stefan@aaa-sec.com>
References: <C809C29C.A99B%stefan@aaa-sec.com> <C809C4C9.A9A0%stefan@aaa-sec.com>
Date: Fri, 7 May 2010 10:35:13 -0400
Message-ID: <g2ka84d7bc61005070735l299eac33q5084baa860dbcd9d@mail.gmail.com>
From: Adam Langley <agl@google.com>
To: Stefan Santesson <stefan@aaa-sec.com>
Content-Type: text/plain; charset=UTF-8
X-System-Of-Record: true
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] FNV versus SHA-1 in cached info
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: Fri, 07 May 2010 14:36:14 -0000

On Fri, May 7, 2010 at 7:23 AM, Stefan Santesson <stefan@aaa-sec.com> wrote:
> 1) Does FNV do the job to create reasonably unique identifiers of cached
> objects?
> 2) Can FNV be implemented with reasonable expectation of interoperability?
> 3) Is the algorithm free of any IPR and license requirements.
>
> The answer to all three is YES.

Given that FNV has already been written up in the draft, I support its
continued inclusion. Although I viewed the initial reason behind the
switch somewhat critically, on reflection I think its use makes clear
what properties we require of the hash.


AGL

From Nicolas.Williams@oracle.com  Fri May  7 09:27:19 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 A71663A6A12 for <tls@core3.amsl.com>; Fri,  7 May 2010 09:27:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.273
X-Spam-Level: 
X-Spam-Status: No, score=-1.273 tagged_above=-999 required=5 tests=[AWL=-1.275, BAYES_50=0.001, UNPARSEABLE_RELAY=0.001]
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 E8V-JEkwHnCN for <tls@core3.amsl.com>; Fri,  7 May 2010 09:27:18 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id A4C3D3A6869 for <tls@ietf.org>; Fri,  7 May 2010 09:27:18 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o47GQuCq006701 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 7 May 2010 16:27:00 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o47CKC4X014924; Fri, 7 May 2010 16:26:53 GMT
Received: from abhmt002.oracle.com by acsmt354.oracle.com with ESMTP id 223350701273249588; Fri, 07 May 2010 09:26:28 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 07 May 2010 09:26:28 -0700
Date: Fri, 7 May 2010 11:26:21 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Simon Josefsson <simon@josefsson.org>
Message-ID: <20100507162620.GD9429@oracle.com>
References: <C809C29C.A99B%stefan@aaa-sec.com> <87vdb0vtst.fsf@mocca.josefsson.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <87vdb0vtst.fsf@mocca.josefsson.org>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090201.4BE43F54.00E4:SCFMA922111,ss=1,fgs=0
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] FNV versus SHA-1 in cached info
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: Fri, 07 May 2010 16:27:19 -0000

On Fri, May 07, 2010 at 01:24:18PM +0200, Simon Josefsson wrote:
> Stefan Santesson <stefan@aaa-sec.com> writes:
> > I would not have any problem with using SHA-1 if it could be used with no
> > agility what so ever. But I seriously doubt that this will be accepted and
> > for that reason I would like to keep FNV.

It's been accepted elsewhere.  If cryptographic properties are not
required then algorithm agility is also not required.

> I also prefer to use FNV here.

I am of two minds about this issue.

> Organizations are performing review of how MD5 and eventually SHA-1 are
> used in their code bases, and this is costly.

This is true, however, you'd think that we should all also audit our
code bases and protocols (proprietary and otherwise) to ensure that we
do use strong cryptographic algorithms where we _need_ them, that we
have migration plans, and that we execute them.  Just removing uses of
MD5 and SHA-1 will not do.

I'm concerned that a blanket "must not use MD5 nor SHA-1" rule will be
counter-productive for _proprietary_ protocols: developers might resort
to home-grown non-cryptographic hashes where they need cryptographic
ones, just to avoid unwelcome auditor attention.  Clearly that won't
happen for Internet protocols -not much- but there's a bigger world out
there, and training management to just ban weak algorithms might well
have unintended and very negative consequences.

Thus I'm not too sympathetic to arguments that we should refrain from
using MD5/SHA-1 where cryptographic properties are not needed.  I'd
rather train auditors to analyze protocols correctly than to apply
reflexive dicta.

But I've also seen the pressure to avoid using MD5/SHA-1 altogether, and
understand that often it's just easier to give.

>                                                If we know when designing
> a protocol that the normal cryptographic properties are not essential,
> and that an algorithm like FNV will suffice, it saves everyone the costs
> associated with that review.  [...]

Does it?  We still have to review whether cryptographic properties were
or were not necessary.

> I wish we used something like FNV instead of SHA-1 in SASL GS2, the use
> there also do not require cryptographic properties.

Quick, we're still in AUTH48!  (Just kidding.)

Nico
-- 

From prvs=27436d9d74=uri@ll.mit.edu  Fri May  7 10:10:59 2010
Return-Path: <prvs=27436d9d74=uri@ll.mit.edu>
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 72DC53A67C2 for <tls@core3.amsl.com>; Fri,  7 May 2010 10:10:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.623
X-Spam-Level: 
X-Spam-Status: No, score=-3.623 tagged_above=-999 required=5 tests=[AWL=-0.376, BAYES_50=0.001, RCVD_IN_DNSWL_MED=-4, SARE_OBFU_ALL=0.751, UNPARSEABLE_RELAY=0.001]
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 P86isxL0H52R for <tls@core3.amsl.com>; Fri,  7 May 2010 10:10:56 -0700 (PDT)
Received: from mx1.ll.mit.edu (MX1.LL.MIT.EDU [129.55.12.45]) by core3.amsl.com (Postfix) with ESMTP id 3757E3A672E for <tls@ietf.org>; Fri,  7 May 2010 10:10:56 -0700 (PDT)
Received: from LLE2K7-HUB02.mitll.ad.local (LLE2K7-HUB02.mitll.ad.local) by mx1.ll.mit.edu (unknown) with ESMTP id o47HAdmf006182; Fri, 7 May 2010 13:10:43 -0400
From: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
To: Nicolas Williams <Nicolas.Williams@oracle.com>, Simon Josefsson <simon@josefsson.org>
Date: Fri, 7 May 2010 13:10:40 -0400
Thread-Topic: [TLS] FNV versus SHA-1 in cached info
Thread-Index: AcruAiSWfrTQ/3ZLTQqUr3gZstkRnAABhNnB
Message-ID: <C809C1D0.A4B5%uri@ll.mit.edu>
In-Reply-To: <20100507162620.GD9429@oracle.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-Entourage/13.4.0.100208
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-05-07_02:2010-02-06, 2010-05-07, 2010-05-07 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1005070103
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] FNV versus SHA-1 in cached info
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: Fri, 07 May 2010 17:10:59 -0000

For cryptographic purposes agility is critical, and it's obvious.

For non-cryptographic purposes - who cares. Let the implementers figure wha=
t
works best and "codify" it. If it's SHA - fine. If it's FNV - fine. If it's
MD4 - fine. No sense avoiding cryptographically broken algorithms for
non-cryptographic use.


On 5/7/10  12:26 , "Nicolas Williams" <Nicolas.Williams@oracle.com> wrote:

> On Fri, May 07, 2010 at 01:24:18PM +0200, Simon Josefsson wrote:
>> Stefan Santesson <stefan@aaa-sec.com> writes:
>>> I would not have any problem with using SHA-1 if it could be used with =
no
>>> agility what so ever. But I seriously doubt that this will be accepted =
and
>>> for that reason I would like to keep FNV.
>=20
> It's been accepted elsewhere.  If cryptographic properties are not
> required then algorithm agility is also not required.
>=20
>> I also prefer to use FNV here.
>=20
> I am of two minds about this issue.
>=20
>> Organizations are performing review of how MD5 and eventually SHA-1 are
>> used in their code bases, and this is costly.
>=20
> This is true, however, you'd think that we should all also audit our
> code bases and protocols (proprietary and otherwise) to ensure that we
> do use strong cryptographic algorithms where we _need_ them, that we
> have migration plans, and that we execute them.  Just removing uses of
> MD5 and SHA-1 will not do.
>=20
> I'm concerned that a blanket "must not use MD5 nor SHA-1" rule will be
> counter-productive for _proprietary_ protocols: developers might resort
> to home-grown non-cryptographic hashes where they need cryptographic
> ones, just to avoid unwelcome auditor attention.  Clearly that won't
> happen for Internet protocols -not much- but there's a bigger world out
> there, and training management to just ban weak algorithms might well
> have unintended and very negative consequences.
>=20
> Thus I'm not too sympathetic to arguments that we should refrain from
> using MD5/SHA-1 where cryptographic properties are not needed.  I'd
> rather train auditors to analyze protocols correctly than to apply
> reflexive dicta.
>=20
> But I've also seen the pressure to avoid using MD5/SHA-1 altogether, and
> understand that often it's just easier to give.
>=20
>>                                                If we know when designing
>> a protocol that the normal cryptographic properties are not essential,
>> and that an algorithm like FNV will suffice, it saves everyone the costs
>> associated with that review.  [...]
>=20
> Does it?  We still have to review whether cryptographic properties were
> or were not necessary.
>=20
>> I wish we used something like FNV instead of SHA-1 in SASL GS2, the use
>> there also do not require cryptographic properties.
>=20
> Quick, we're still in AUTH48!  (Just kidding.)
>=20
> Nico

--=20
Regards,
Uri         uri@ll.mit.edu
<Disclaimer>


From Nicolas.Williams@oracle.com  Fri May  7 10:29:42 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 B1C9E3A65A6 for <tls@core3.amsl.com>; Fri,  7 May 2010 10:29:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.532
X-Spam-Level: 
X-Spam-Status: No, score=-2.532 tagged_above=-999 required=5 tests=[AWL=0.066,  BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001]
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 lE6Pa789DulG for <tls@core3.amsl.com>; Fri,  7 May 2010 10:29:41 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id C02593A63C9 for <tls@ietf.org>; Fri,  7 May 2010 10:29:41 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o47HTN03004481 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 7 May 2010 17:29:26 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o47F3j6M019637; Fri, 7 May 2010 17:29:22 GMT
Received: from abhmt016.oracle.com by acsmt354.oracle.com with ESMTP id 223513541273253338; Fri, 07 May 2010 10:28:58 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 07 May 2010 10:28:57 -0700
Date: Fri, 7 May 2010 12:28:52 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
Message-ID: <20100507172852.GG9429@oracle.com>
References: <20100507162620.GD9429@oracle.com> <C809C1D0.A4B5%uri@ll.mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <C809C1D0.A4B5%uri@ll.mit.edu>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090201.4BE44DF6.0231:SCFMA922111,ss=1,fgs=0
Cc: Simon Josefsson <simon@josefsson.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] FNV versus SHA-1 in cached info
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: Fri, 07 May 2010 17:29:42 -0000

On Fri, May 07, 2010 at 01:10:40PM -0400, Blumenthal, Uri - 0668 - MITLL wrote:
> For cryptographic purposes agility is critical, and it's obvious.
> 
> For non-cryptographic purposes - who cares. Let the implementers figure what
> works best and "codify" it. If it's SHA - fine. If it's FNV - fine. If it's
> MD4 - fine. No sense avoiding cryptographically broken algorithms for
> non-cryptographic use.

I agree, but it's important to have a rationale for this position.  I
stated one.  Simon and others have stated rationales for the opposite
position (that we should not use MD5 nor SHA-1 even when cryptographic
properties are not required).

It'd be nice if we didn't have to revisit this every time someone needs
a non-cryptographic hash function in an Internet protocol.

Nico
-- 

From prvs=27436d9d74=uri@ll.mit.edu  Fri May  7 11:50:55 2010
Return-Path: <prvs=27436d9d74=uri@ll.mit.edu>
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 F2AED3A67FF for <tls@core3.amsl.com>; Fri,  7 May 2010 11:50:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.173
X-Spam-Level: 
X-Spam-Status: No, score=-5.173 tagged_above=-999 required=5 tests=[AWL=1.425,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 cC-3pn27KLor for <tls@core3.amsl.com>; Fri,  7 May 2010 11:50:54 -0700 (PDT)
Received: from mx1.ll.mit.edu (MX1.LL.MIT.EDU [129.55.12.45]) by core3.amsl.com (Postfix) with ESMTP id 188C43A67EC for <tls@ietf.org>; Fri,  7 May 2010 11:50:54 -0700 (PDT)
Received: from LLE2K7-HUB02.mitll.ad.local (LLE2K7-HUB02.mitll.ad.local) by mx1.ll.mit.edu (unknown) with ESMTP id o47Iofdf011802; Fri, 7 May 2010 14:50:41 -0400
From: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
To: Nicolas Williams <Nicolas.Williams@oracle.com>
Date: Fri, 7 May 2010 14:50:37 -0400
Thread-Topic: [TLS] FNV versus SHA-1 in cached info
Thread-Index: AcruCuAmtDBKorKURySKCfXkytFOigAC05VB
Message-ID: <C809D93D.A4C1%uri@ll.mit.edu>
In-Reply-To: <20100507172852.GG9429@oracle.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-Entourage/13.4.0.100208
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-05-07_02:2010-02-06, 2010-05-07, 2010-05-07 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1005070115
Cc: Simon Josefsson <simon@josefsson.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] FNV versus SHA-1 in cached info
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: Fri, 07 May 2010 18:50:55 -0000

Well, I have not seen a *convincing* rationale why cryptographically
unsuitable algorithms must not be used in non-cryptographic applications,
and I see no reason why formerly-cryptographic algorithms should be an
exception from the above.


On 5/7/10  13:28 , "Nicolas Williams" <Nicolas.Williams@oracle.com> wrote:

> On Fri, May 07, 2010 at 01:10:40PM -0400, Blumenthal, Uri - 0668 - MITLL
> wrote:
>> For cryptographic purposes agility is critical, and it's obvious.
>>=20
>> For non-cryptographic purposes - who cares. Let the implementers figure =
what
>> works best and "codify" it. If it's SHA - fine. If it's FNV - fine. If i=
t's
>> MD4 - fine. No sense avoiding cryptographically broken algorithms for
>> non-cryptographic use.
>=20
> I agree, but it's important to have a rationale for this position.  I
> stated one.  Simon and others have stated rationales for the opposite
> position (that we should not use MD5 nor SHA-1 even when cryptographic
> properties are not required).
>=20
> It'd be nice if we didn't have to revisit this every time someone needs
> a non-cryptographic hash function in an Internet protocol.
>=20
> Nico

--=20
Regards,
Uri


From stefan@aaa-sec.com  Fri May  7 12:58:40 2010
Return-Path: <stefan@aaa-sec.com>
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 E80DC3A694D for <tls@core3.amsl.com>; Fri,  7 May 2010 12:58:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.943
X-Spam-Level: 
X-Spam-Status: No, score=-0.943 tagged_above=-999 required=5 tests=[AWL=-1.044, BAYES_50=0.001, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1, SARE_OBFU_ALL=0.751]
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 TWkMLMVQUYJg for <tls@core3.amsl.com>; Fri,  7 May 2010 12:58:40 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id 0DB1A3A6924 for <tls@ietf.org>; Fri,  7 May 2010 12:58:40 -0700 (PDT)
Received: from s60.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 4393828BC93 for <tls@ietf.org>; Fri,  7 May 2010 21:58:34 +0200 (CEST)
Received: (qmail 53102 invoked from network); 7 May 2010 19:58:28 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.16]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s60.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <uri@ll.mit.edu>; 7 May 2010 19:58:28 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Fri, 07 May 2010 21:58:24 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>, Nicolas Williams <Nicolas.Williams@oracle.com>
Message-ID: <C80A3D80.A9E5%stefan@aaa-sec.com>
Thread-Topic: [TLS] FNV versus SHA-1 in cached info
Thread-Index: AcruCuAmtDBKorKURySKCfXkytFOigAC05VBAAJeCOc=
In-Reply-To: <C809D93D.A4C1%uri@ll.mit.edu>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: Simon Josefsson <simon@josefsson.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] FNV versus SHA-1 in cached info
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: Fri, 07 May 2010 19:58:41 -0000

Let me remind that we started off with SHA-1 with no agility.

That kicked off a lot of debate whether agility was required and the general
opinion was that we needed agility, so agility was added.

That kicked off a long debate on what hash algorithm that should be
mandatory and what measures that should be in place to advertise supported
hash algorithms.

And this when discussion is held by prime experts.

I believe that we in this case have demonstrated our inability to agree on a
single cryptographic hash algorithm without agility, when no cryptographic
properties are required.

Except for that I think you are right. SHA-1 would work fine.

Is there anyone who has a compelling argument why FNV would be bad?

/Stefan 


On 10-05-07 8:50 PM, "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
wrote:

> Well, I have not seen a *convincing* rationale why cryptographically
> unsuitable algorithms must not be used in non-cryptographic applications,
> and I see no reason why formerly-cryptographic algorithms should be an
> exception from the above.
> 
> 
> On 5/7/10  13:28 , "Nicolas Williams" <Nicolas.Williams@oracle.com> wrote:
> 
>> On Fri, May 07, 2010 at 01:10:40PM -0400, Blumenthal, Uri - 0668 - MITLL
>> wrote:
>>> For cryptographic purposes agility is critical, and it's obvious.
>>> 
>>> For non-cryptographic purposes - who cares. Let the implementers figure what
>>> works best and "codify" it. If it's SHA - fine. If it's FNV - fine. If it's
>>> MD4 - fine. No sense avoiding cryptographically broken algorithms for
>>> non-cryptographic use.
>> 
>> I agree, but it's important to have a rationale for this position.  I
>> stated one.  Simon and others have stated rationales for the opposite
>> position (that we should not use MD5 nor SHA-1 even when cryptographic
>> properties are not required).
>> 
>> It'd be nice if we didn't have to revisit this every time someone needs
>> a non-cryptographic hash function in an Internet protocol.
>> 
>> Nico



From Nicolas.Williams@oracle.com  Fri May  7 13:21:44 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 1D86A3A6980 for <tls@core3.amsl.com>; Fri,  7 May 2010 13:21:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.3
X-Spam-Level: 
X-Spam-Status: No, score=-1.3 tagged_above=-999 required=5 tests=[AWL=-1.116,  BAYES_40=-0.185, UNPARSEABLE_RELAY=0.001]
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 YepdpxPVsJFn for <tls@core3.amsl.com>; Fri,  7 May 2010 13:21:43 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 62D163A69A1 for <tls@ietf.org>; Fri,  7 May 2010 13:21:26 -0700 (PDT)
Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o47KL8ZK002303 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 7 May 2010 20:21:09 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o47KL6Gv010648; Fri, 7 May 2010 20:21:07 GMT
Received: from abhmt019.oracle.com by acsmt355.oracle.com with ESMTP id 223901381273263660; Fri, 07 May 2010 13:21:00 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 07 May 2010 13:21:00 -0700
Date: Fri, 7 May 2010 15:20:55 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Stefan Santesson <stefan@aaa-sec.com>
Message-ID: <20100507202055.GK9429@oracle.com>
References: <C809D93D.A4C1%uri@ll.mit.edu> <C80A3D80.A9E5%stefan@aaa-sec.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <C80A3D80.A9E5%stefan@aaa-sec.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: rcsinet13.oracle.com [148.87.113.125]
X-CT-RefId: str=0001.0A090203.4BE47636.008B:SCFMA4539811,ss=1,fgs=0
Cc: Simon Josefsson <simon@josefsson.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] FNV versus SHA-1 in cached info
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: Fri, 07 May 2010 20:21:44 -0000

On Fri, May 07, 2010 at 09:58:24PM +0200, Stefan Santesson wrote:
> Let me remind that we started off with SHA-1 with no agility.
> 
> That kicked off a lot of debate whether agility was required and the general
> opinion was that we needed agility, so agility was added.

Your use is not for cryptographic purposes, therefore you don't need
hash agility.

In GS2, for example, we use a hash function to derive SASL mechanism
names from GSS-API mechanism OIDs.  We don't care about collisions, and
there are no attacks on hash functions that result in attacks on GS2
from this use of hashing.  Hash agility in the GS2 case would be worse
than stupid: changing hash functions would break applications.

The answer to "where's the hash agility?" is "we don't need it because
we're not using SHA-1 for its cryptographic properties".

By accepting that "hash agility" goes with "cryptographic hash function"
even when you don't ndeed nor depend on its cryptographic properties
you've simply caused yourself to do a sizeable amount of pointless work
(FNV).  And not just you, but also implementors (yeah, if they use one
of the languages for which you include implementations then they can
cut-n-paste from your document, after getting approval from their
lawyers).  Why do this to yourself and to the rest of us when there's a
much better answer?

Nico
-- 

From mike-list@pobox.com  Fri May  7 13:48:06 2010
Return-Path: <mike-list@pobox.com>
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 6C9313A69A4 for <tls@core3.amsl.com>; Fri,  7 May 2010 13:48:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.49
X-Spam-Level: 
X-Spam-Status: No, score=-0.49 tagged_above=-999 required=5 tests=[AWL=-1.242,  BAYES_50=0.001, SARE_OBFU_ALL=0.751]
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 3fYVtE9Nue0p for <tls@core3.amsl.com>; Fri,  7 May 2010 13:48:05 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 2E5133A6908 for <tls@ietf.org>; Fri,  7 May 2010 13:48:05 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id EF7DEB1BB9; Fri,  7 May 2010 16:47:51 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=envy4kEE8EnE /aQKAwWpu56n2Bo=; b=vZdGFrskNvuZbNJbomcoFWtUdzhyTW8249uPg8efSlbP PinX5oHozlVHaA1DvW2V36gNdV5iplwVTM+M5a82yYFYQitvDp32wFMaqOENpOmt uzAXI8pJ4WQiNBqmgwcpwBV3cwy5GTnPynW/+36+yc83GnkBJ7YY6edzsNVk78k=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=PFfc9v 0hKgjFc6HKHSN8db9rQqOYuBwehBt00TNhkjBvLu34YCM5vgsZSGfCAnEMU3AqIZ ZSEqWyOlKL6JQavcNmNdqAoHC74O940fd13H2bpMA/9G0/yJXY+12e1pNV6iL8Sl sefWo1DP32RfbD/896tmX9zEnlrsfraGauzFg=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id A2F89B1BAA; Fri,  7 May 2010 16:47:47 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 40DFAB1B50; Fri,  7 May 2010 16:47:07 -0400 (EDT)
Message-ID: <4BE47C45.7090505@pobox.com>
Date: Fri, 07 May 2010 13:47:01 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: Stefan Santesson <stefan@aaa-sec.com>
References: <C80A3D80.A9E5%stefan@aaa-sec.com>
In-Reply-To: <C80A3D80.A9E5%stefan@aaa-sec.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: CB541CA6-5A19-11DF-BC25-D033EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: Simon Josefsson <simon@josefsson.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] FNV versus SHA-1 in cached info
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: Fri, 07 May 2010 20:48:06 -0000

 > Is there anyone who has a compelling argument why FNV would be bad?

I've been using the 32-bit version of FNV for hash tables for many
years, and it has served me well.  There are always collisions among
the keys, but overall the spread among buckets is decent.  I just ran
a quick test to see how often collisions happen and found that with
2^20 buckets, inserting 2^10 strings of length 128 bytes, randomly
generated (um, I mean pseudo-randomly generated :-), there was a
single collision in about 1/3 of the trials.

So, while I think FNV-64 is probably fine for this draft, perhaps
a study should be done to hash a bunch of server certificates
currently in use on major sites and check for collisions.  The same
could be done with a 64-bit truncated SHA-1.

If there are any collisions when using FNV-64, but not SHA-1/64, then
we might want to avoid FNV.

Mike




Stefan Santesson wrote:
> Let me remind that we started off with SHA-1 with no agility.
> 
> That kicked off a lot of debate whether agility was required and the general
> opinion was that we needed agility, so agility was added.
> 
> That kicked off a long debate on what hash algorithm that should be
> mandatory and what measures that should be in place to advertise supported
> hash algorithms.
> 
> And this when discussion is held by prime experts.
> 
> I believe that we in this case have demonstrated our inability to agree on a
> single cryptographic hash algorithm without agility, when no cryptographic
> properties are required.
> 
> Except for that I think you are right. SHA-1 would work fine.
> 
> Is there anyone who has a compelling argument why FNV would be bad?
> 
> /Stefan 
> 
> 
> On 10-05-07 8:50 PM, "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
> wrote:
> 
>> Well, I have not seen a *convincing* rationale why cryptographically
>> unsuitable algorithms must not be used in non-cryptographic applications,
>> and I see no reason why formerly-cryptographic algorithms should be an
>> exception from the above.
>>
>>
>> On 5/7/10  13:28 , "Nicolas Williams" <Nicolas.Williams@oracle.com> wrote:
>>
>>> On Fri, May 07, 2010 at 01:10:40PM -0400, Blumenthal, Uri - 0668 - MITLL
>>> wrote:
>>>> For cryptographic purposes agility is critical, and it's obvious.
>>>>
>>>> For non-cryptographic purposes - who cares. Let the implementers figure what
>>>> works best and "codify" it. If it's SHA - fine. If it's FNV - fine. If it's
>>>> MD4 - fine. No sense avoiding cryptographically broken algorithms for
>>>> non-cryptographic use.
>>> I agree, but it's important to have a rationale for this position.  I
>>> stated one.  Simon and others have stated rationales for the opposite
>>> position (that we should not use MD5 nor SHA-1 even when cryptographic
>>> properties are not required).
>>>
>>> It'd be nice if we didn't have to revisit this every time someone needs
>>> a non-cryptographic hash function in an Internet protocol.
>>>
>>> Nico

From DPKemp@missi.ncsc.mil  Fri May  7 13:51:22 2010
Return-Path: <DPKemp@missi.ncsc.mil>
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 5E6913A6908 for <tls@core3.amsl.com>; Fri,  7 May 2010 13:51:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.11
X-Spam-Level: 
X-Spam-Status: No, score=-4.11 tagged_above=-999 required=5 tests=[AWL=-0.111,  BAYES_50=0.001, 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 7RzaJIGSIw85 for <tls@core3.amsl.com>; Fri,  7 May 2010 13:51:21 -0700 (PDT)
Received: from stingray.missi.ncsc.mil (stingray.missi.ncsc.mil [144.51.50.20]) by core3.amsl.com (Postfix) with ESMTP id 6F6EC3A69A2 for <tls@ietf.org>; Fri,  7 May 2010 13:51:21 -0700 (PDT)
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Date: Fri, 7 May 2010 16:51:02 -0400
Message-ID: <201005072051.o47Kp4fO028679@stingray.missi.ncsc.mil>
In-Reply-To: <20100507202055.GK9429@oracle.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] FNV versus SHA-1 in cached info
Thread-Index: AcruIutsGab6KT1PR3OYvgUu1te8qAAAa7wQ
References: <C809D93D.A4C1%uri@ll.mit.edu> <C80A3D80.A9E5%stefan@aaa-sec.com> <20100507202055.GK9429@oracle.com>
From: "Kemp, David P." <DPKemp@missi.ncsc.mil>
To: <tls@ietf.org>
X-OriginalArrivalTime: 07 May 2010 20:52:15.0406 (UTC) FILETIME=[2CAB9CE0:01CAEE27]
Subject: Re: [TLS] FNV versus SHA-1 in cached info
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: Fri, 07 May 2010 20:51:22 -0000

> [Nico] By accepting that "hash agility" goes with
> "cryptographic hash function" even when you don't need
> nor depend on its cryptographic properties you've simply
> caused yourself to do a sizeable amount of pointless work (FNV).

What work is involved in bringing a 5 LOC algorithm like FNV into
greater visibility and use?  Hardly any -- certainly not a sizeable
amount, and certainly not pointless.  Having identified an optimal
solution (small, fast, sufficient), it would now be a step
backwards to switch to a sub-optimal solution (larger, slower,
more-than-sufficient).


> [Simon] If we know when designing a protocol that the normal
> cryptographic properties are not essential, and that an algorithm
> like FNV will suffice, it saves everyone the costs associated with
> that review.  This is only one argument for FNV, there are others.

Yes.


Dave


From Nicolas.Williams@oracle.com  Fri May  7 14:08:05 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 F30AE3A69FA for <tls@core3.amsl.com>; Fri,  7 May 2010 14:08:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.545
X-Spam-Level: 
X-Spam-Status: No, score=-1.545 tagged_above=-999 required=5 tests=[AWL=-0.806, BAYES_20=-0.74, UNPARSEABLE_RELAY=0.001]
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 7zYqyXt7f3lJ for <tls@core3.amsl.com>; Fri,  7 May 2010 14:08:03 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id CF2043A68F0 for <tls@ietf.org>; Fri,  7 May 2010 14:08:03 -0700 (PDT)
Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o47L7l6h030364 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 7 May 2010 21:07:49 GMT
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4741qDG004206; Fri, 7 May 2010 21:07:47 GMT
Received: from abhmt013.oracle.com by acsmt353.oracle.com with ESMTP id 247635781273266365; Fri, 07 May 2010 14:06:05 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 07 May 2010 14:06:05 -0700
Date: Fri, 7 May 2010 16:06:00 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: "Kemp, David P." <DPKemp@missi.ncsc.mil>
Message-ID: <20100507210600.GL9429@oracle.com>
References: <C809D93D.A4C1%uri@ll.mit.edu> <C80A3D80.A9E5%stefan@aaa-sec.com> <20100507202055.GK9429@oracle.com> <201005072051.o47Kp4fO028679@stingray.missi.ncsc.mil>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <201005072051.o47Kp4fO028679@stingray.missi.ncsc.mil>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: rcsinet13.oracle.com [148.87.113.125]
X-CT-RefId: str=0001.0A090207.4BE48126.002D:SCFMA4539811,ss=1,fgs=0
Cc: tls@ietf.org
Subject: Re: [TLS] FNV versus SHA-1 in cached info
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: Fri, 07 May 2010 21:08:05 -0000

On Fri, May 07, 2010 at 04:51:02PM -0400, Kemp, David P. wrote:
> > [Nico] By accepting that "hash agility" goes with
> > "cryptographic hash function" even when you don't need
> > nor depend on its cryptographic properties you've simply
> > caused yourself to do a sizeable amount of pointless work (FNV).
> 
> What work is involved in bringing a 5 LOC algorithm like FNV into
> greater visibility and use?  Hardly any -- certainly not a sizeable
> amount, and certainly not pointless.  Having identified an optimal
> solution (small, fast, sufficient), it would now be a step
> backwards to switch to a sub-optimal solution (larger, slower,
> more-than-sufficient).

Oh, I had no idea what FNV's origin was.  Now that I've read

    http://isthe.com/chongo/tech/comp/fnv/

I think the extra work argument is lame :)

It'd have been nice if the I-D had had an informative reference...

Nico
-- 

From DPKemp@missi.ncsc.mil  Fri May  7 14:18:14 2010
Return-Path: <DPKemp@missi.ncsc.mil>
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 CA4953A69B3 for <tls@core3.amsl.com>; Fri,  7 May 2010 14:18:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.091
X-Spam-Level: 
X-Spam-Status: No, score=-4.091 tagged_above=-999 required=5 tests=[AWL=-0.093, BAYES_50=0.001, 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 IA9CGTgOjpNr for <tls@core3.amsl.com>; Fri,  7 May 2010 14:18:13 -0700 (PDT)
Received: from stingray.missi.ncsc.mil (stingray.missi.ncsc.mil [144.51.50.20]) by core3.amsl.com (Postfix) with ESMTP id 8272E3A688C for <tls@ietf.org>; Fri,  7 May 2010 14:18:13 -0700 (PDT)
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Date: Fri, 7 May 2010 17:17:55 -0400
Message-ID: <201005072118.o47LHubd029591@stingray.missi.ncsc.mil>
In-Reply-To: <4BE47C45.7090505@pobox.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] FNV versus SHA-1 in cached info
Thread-Index: AcruJpm8Wo3Y7J3MQP+k9bvL2uzPVQAAS4Yw
References: <C80A3D80.A9E5%stefan@aaa-sec.com> <4BE47C45.7090505@pobox.com>
From: "Kemp, David P." <DPKemp@missi.ncsc.mil>
To: <tls@ietf.org>
X-OriginalArrivalTime: 07 May 2010 21:19:07.0515 (UTC) FILETIME=[ED8FECB0:01CAEE2A]
Subject: Re: [TLS] FNV versus SHA-1 in cached info
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: Fri, 07 May 2010 21:18:14 -0000

Hmm, maybe my math is rusty, but with a 20 bit hash, wouldn't you expect
a birthday collision in about 1/2 of the trials of 2^10 inputs?  Does
FNV have some magical collision-aversion property :-) ?



-----Original Message-----
From: Michael D'Errico

 > Is there anyone who has a compelling argument why FNV would be bad?

I've been using the 32-bit version of FNV for hash tables for many
years, and it has served me well.  There are always collisions among
the keys, but overall the spread among buckets is decent.  I just ran
a quick test to see how often collisions happen and found that with
2^20 buckets, inserting 2^10 strings of length 128 bytes, randomly
generated (um, I mean pseudo-randomly generated :-), there was a
single collision in about 1/3 of the trials.

So, while I think FNV-64 is probably fine for this draft, perhaps
a study should be done to hash a bunch of server certificates
currently in use on major sites and check for collisions.  The same
could be done with a 64-bit truncated SHA-1.

If there are any collisions when using FNV-64, but not SHA-1/64, then
we might want to avoid FNV.

Mike


From stefan@aaa-sec.com  Fri May  7 15:07:28 2010
Return-Path: <stefan@aaa-sec.com>
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 D97C53A694A for <tls@core3.amsl.com>; Fri,  7 May 2010 15:07:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.187
X-Spam-Level: 
X-Spam-Status: No, score=-1.187 tagged_above=-999 required=5 tests=[AWL=-0.538, BAYES_50=0.001, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 RfcGVhDlvKwH for <tls@core3.amsl.com>; Fri,  7 May 2010 15:07:28 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id C42BA3A67A1 for <tls@ietf.org>; Fri,  7 May 2010 15:07:26 -0700 (PDT)
Received: from s24.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 28DC728E8C3 for <tls@ietf.org>; Sat,  8 May 2010 00:07:22 +0200 (CEST)
Received: (qmail 38921 invoked from network); 7 May 2010 22:07:13 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.16]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s24.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <DPKemp@missi.ncsc.mil>; 7 May 2010 22:07:13 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Sat, 08 May 2010 00:07:11 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: "Kemp, David P." <DPKemp@missi.ncsc.mil>, <tls@ietf.org>
Message-ID: <C80A5BAF.AA01%stefan@aaa-sec.com>
Thread-Topic: [TLS] FNV versus SHA-1 in cached info
Thread-Index: AcruJpm8Wo3Y7J3MQP+k9bvL2uzPVQAAS4YwAAJ3GwU=
In-Reply-To: <201005072118.o47LHubd029591@stingray.missi.ncsc.mil>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Subject: Re: [TLS] FNV versus SHA-1 in cached info
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: Fri, 07 May 2010 22:07:29 -0000

Yes, that seems about correct.

You need to generate 1,1774 * 2^10  values to have 0.5 probability to find a
collision (in a 2^20 bucket).

/Stefan


On 10-05-07 11:17 PM, "Kemp, David P." <DPKemp@missi.ncsc.mil> wrote:

> Hmm, maybe my math is rusty, but with a 20 bit hash, wouldn't you expect
> a birthday collision in about 1/2 of the trials of 2^10 inputs?  Does
> FNV have some magical collision-aversion property :-) ?
> 
> 
> 
> -----Original Message-----
> From: Michael D'Errico
> 
>> Is there anyone who has a compelling argument why FNV would be bad?
> 
> I've been using the 32-bit version of FNV for hash tables for many
> years, and it has served me well.  There are always collisions among
> the keys, but overall the spread among buckets is decent.  I just ran
> a quick test to see how often collisions happen and found that with
> 2^20 buckets, inserting 2^10 strings of length 128 bytes, randomly
> generated (um, I mean pseudo-randomly generated :-), there was a
> single collision in about 1/3 of the trials.
> 
> So, while I think FNV-64 is probably fine for this draft, perhaps
> a study should be done to hash a bunch of server certificates
> currently in use on major sites and check for collisions.  The same
> could be done with a 64-bit truncated SHA-1.
> 
> If there are any collisions when using FNV-64, but not SHA-1/64, then
> we might want to avoid FNV.
> 
> Mike
> 
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls



From ekr@rtfm.com  Fri May  7 18:06:33 2010
Return-Path: <ekr@rtfm.com>
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 37A4A3A67B4 for <tls@core3.amsl.com>; Fri,  7 May 2010 18:06:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.05
X-Spam-Level: 
X-Spam-Status: No, score=-0.05 tagged_above=-999 required=5 tests=[AWL=-0.487,  BAYES_40=-0.185, FM_FORGED_GMAIL=0.622]
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 FF5Xx-AFXq65 for <tls@core3.amsl.com>; Fri,  7 May 2010 18:06:32 -0700 (PDT)
Received: from mail-yw0-f194.google.com (mail-yw0-f194.google.com [209.85.211.194]) by core3.amsl.com (Postfix) with ESMTP id 732383A6407 for <tls@ietf.org>; Fri,  7 May 2010 18:06:32 -0700 (PDT)
Received: by ywh32 with SMTP id 32so888383ywh.5 for <tls@ietf.org>; Fri, 07 May 2010 18:06:17 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.91.185.3 with SMTP id m3mr711404agp.79.1273280777301; Fri, 07  May 2010 18:06:17 -0700 (PDT)
Received: by 10.90.25.1 with HTTP; Fri, 7 May 2010 18:06:17 -0700 (PDT)
Date: Fri, 7 May 2010 18:06:17 -0700
Message-ID: <q2wd3aa5d01005071806sf990b093ye3024b6d508b0a15@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
To: tls@ietf.org
Content-Type: text/plain; charset=ISO-8859-1
Subject: [TLS] SHA-1 vs. FNV-1
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: Sat, 08 May 2010 01:06:33 -0000

At the IETF meeting, I promised to write something about the hash algorithm
for cached info.

In short, I prefer SHA-1 to FNV-1. FNV-1 introduces a new algorithm for no
reason other than people might be confused about what SHA-1 is doing
in this case. I realize it's simple but calling SHA-1 is even simpler.
We should just call SHA-1 with no agility.

-Ekr

From ekr@rtfm.com  Fri May  7 18:14:52 2010
Return-Path: <ekr@rtfm.com>
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 2CD3C3A67B4 for <tls@core3.amsl.com>; Fri,  7 May 2010 18:14:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.097
X-Spam-Level: 
X-Spam-Status: No, score=0.097 tagged_above=-999 required=5 tests=[AWL=-0.526,  BAYES_50=0.001, FM_FORGED_GMAIL=0.622]
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 pZPkramYH-oy for <tls@core3.amsl.com>; Fri,  7 May 2010 18:14:51 -0700 (PDT)
Received: from mail-yw0-f194.google.com (mail-yw0-f194.google.com [209.85.211.194]) by core3.amsl.com (Postfix) with ESMTP id 5938D3A657C for <tls@ietf.org>; Fri,  7 May 2010 18:14:51 -0700 (PDT)
Received: by ywh32 with SMTP id 32so891335ywh.5 for <tls@ietf.org>; Fri, 07 May 2010 18:14:36 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.90.22.32 with SMTP id 32mr732692agv.126.1273281276314; Fri, 07  May 2010 18:14:36 -0700 (PDT)
Received: by 10.90.25.1 with HTTP; Fri, 7 May 2010 18:14:36 -0700 (PDT)
In-Reply-To: <q2wd3aa5d01005071806sf990b093ye3024b6d508b0a15@mail.gmail.com>
References: <q2wd3aa5d01005071806sf990b093ye3024b6d508b0a15@mail.gmail.com>
Date: Fri, 7 May 2010 18:14:36 -0700
Message-ID: <h2gd3aa5d01005071814nc782760anedbb2a54872eb22c@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
To: tls@ietf.org
Content-Type: text/plain; charset=ISO-8859-1
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Sat, 08 May 2010 01:14:52 -0000

OK, I'm sending from a different account from where I read the list,
which is why I didn't realize there was an existing thread.

Regardless, after having read the thread, I remain unconvinced that
FNV-1 is the right design.

-Ekr


On Fri, May 7, 2010 at 6:06 PM, Eric Rescorla <ekr@rtfm.com> wrote:
> At the IETF meeting, I promised to write something about the hash algorithm
> for cached info.
>
> In short, I prefer SHA-1 to FNV-1. FNV-1 introduces a new algorithm for no
> reason other than people might be confused about what SHA-1 is doing
> in this case. I realize it's simple but calling SHA-1 is even simpler.
> We should just call SHA-1 with no agility.
>
> -Ekr
>

From stefan@aaa-sec.com  Sat May  8 00:37:11 2010
Return-Path: <stefan@aaa-sec.com>
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 3D6293A6892 for <tls@core3.amsl.com>; Sat,  8 May 2010 00:37:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.498
X-Spam-Level: 
X-Spam-Status: No, score=-1.498 tagged_above=-999 required=5 tests=[AWL=-0.108, BAYES_20=-0.74, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 a+NeH221B45E for <tls@core3.amsl.com>; Sat,  8 May 2010 00:37:10 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id 471643A68A8 for <tls@ietf.org>; Sat,  8 May 2010 00:37:06 -0700 (PDT)
Received: from s42.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id EE91829ED7A for <tls@ietf.org>; Sat,  8 May 2010 09:36:54 +0200 (CEST)
Received: (qmail 73134 invoked from network); 8 May 2010 07:36:52 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.16]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s42.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <ekr@rtfm.com>; 8 May 2010 07:36:52 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Sat, 08 May 2010 09:36:51 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: Eric Rescorla <ekr@rtfm.com>, <tls@ietf.org>
Message-ID: <C80AE133.AA0F%stefan@aaa-sec.com>
Thread-Topic: [TLS] SHA-1 vs. FNV-1
Thread-Index: AcrugTkeZmytdNzoPUuD2VYCPvU8tw==
In-Reply-To: <h2gd3aa5d01005071814nc782760anedbb2a54872eb22c@mail.gmail.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Sat, 08 May 2010 07:37:11 -0000

Eric,

Thanks for your input, but it would be great if you let us in on your long
version instead of just stating your opinion.

You say:
> In short, I prefer SHA-1 to FNV-1. FNV-1 introduces a new algorithm for no
> reason other than people might be confused about what SHA-1 is doing
> in this case. I realize it's simple but calling SHA-1 is even simpler.
> We should just call SHA-1 with no agility.

It was you who proposed the syntax that introduced agility for the hash
algorithm (expanding my initial syntax with no agility):

http://www.ietf.org/mail-archive/web/tls/current/msg03331.html

At November IETF 2008 you made a presentation at Saag, recognizing "The Need
for Cryptographically Insecure Hash Functions" for just the reasons that we
see here.

http://www.ietf.org/proceedings/73/slides/saag-0.pdf

I thought that was a great presentation. What has changed your opinion since
then?


Finally, taking your chair hat on, could you advice on how to proceed with
this draft if the majority still prefers FNV?

/Stefan






On 10-05-08 3:14 AM, "Eric Rescorla" <ekr@rtfm.com> wrote:

> OK, I'm sending from a different account from where I read the list,
> which is why I didn't realize there was an existing thread.
> 
> Regardless, after having read the thread, I remain unconvinced that
> FNV-1 is the right design.
> 
> -Ekr
> 
> 
> On Fri, May 7, 2010 at 6:06 PM, Eric Rescorla <ekr@rtfm.com> wrote:
>> At the IETF meeting, I promised to write something about the hash algorithm
>> for cached info.
>> 
>> In short, I prefer SHA-1 to FNV-1. FNV-1 introduces a new algorithm for no
>> reason other than people might be confused about what SHA-1 is doing
>> in this case. I realize it's simple but calling SHA-1 is even simpler.
>> We should just call SHA-1 with no agility.
>> 
>> -Ekr
>> 
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls



From alexey.melnikov@isode.com  Sat May  8 04:05:41 2010
Return-Path: <alexey.melnikov@isode.com>
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 549703A69B4; Sat,  8 May 2010 04:05:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.318
X-Spam-Level: 
X-Spam-Status: No, score=-1.318 tagged_above=-999 required=5 tests=[AWL=-0.208, BAYES_05=-1.11]
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 z2H6T3P6vZE1; Sat,  8 May 2010 04:05:40 -0700 (PDT)
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by core3.amsl.com (Postfix) with ESMTP id D54753A67A6; Sat,  8 May 2010 04:05:39 -0700 (PDT)
Received: from [92.40.114.76] (92.40.114.76.sub.mbb.three.co.uk [92.40.114.76])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <S-VFdQBeGVtL@rufus.isode.com>; Sat, 8 May 2010 12:05:25 +0100
Message-ID: <4BE54558.6080804@isode.com>
Date: Sat, 08 May 2010 12:04:56 +0100
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: SASL WG <sasl@ietf.org>, tls@ietf.org
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------080100080400000706030204"
Subject: [TLS] [Fwd: Protocol Action: 'Channel Bindings for TLS' to Proposed Standard]
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: Sat, 08 May 2010 11:05:41 -0000

This is a multi-part message in MIME format.
--------------080100080400000706030204
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

FYI.


--------------080100080400000706030204
Content-Type: message/rfc822;
 name="Protocol Action: 'Channel Bindings for TLS' to Proposed Standard"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="Protocol Action: 'Channel Bindings for TLS' to Proposed Standard"

Return-Path: <ietf-announce-bounces@ietf.org>
Received: from rufus.isode.com ([62.3.217.251])
	by canine.isode.net (Isode M-Box/14.6v0) with LMTP; Fri, 07 May 2010 21:00:16 +0100 (BST)
Received: from mail.ietf.org ([64.170.98.32]) by rufus.isode.com (smtp external)
          via TCP with ESMTP id <S-RxTwBeGTFD@rufus.isode.com> for <Alexey.Melnikov@isode.com>;
          Fri, 7 May 2010 21:00:15 +0100
X-SPF-Result: PASS rufus.isode.com: domain of ietf.org designates 64.170.98.32 as permitted sender
Received: from [127.0.0.1] (localhost [127.0.0.1])
	by core3.amsl.com (Postfix) with ESMTP id 666CD3A699D;
	Fri,  7 May 2010 13:00:15 -0700 (PDT)
X-Original-To: ietf-announce@ietf.org
Delivered-To: ietf-announce@core3.amsl.com
Received: by core3.amsl.com (Postfix, from userid 30)
	id 433FE3A6938; Fri,  7 May 2010 13:00:12 -0700 (PDT)
X-idtracker: yes
From: The IESG <iesg-secretary@ietf.org>
To: IETF-Announce <ietf-announce@ietf.org>
Subject: Protocol Action: 'Channel Bindings for TLS' to Proposed Standard
Message-Id: <20100507200013.433FE3A6938@core3.amsl.com>
Date: Fri,  7 May 2010 13:00:13 -0700 (PDT)
Cc: Internet Architecture Board <iab@iab.org>,
	RFC Editor <rfc-editor@rfc-editor.org>
X-BeenThere: ietf-announce@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "IETF announcement list. No discussions." <ietf-announce.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ietf-announce>,
	<mailto:ietf-announce-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ietf-announce>
List-Post: <mailto:ietf-announce@ietf.org>
List-Help: <mailto:ietf-announce-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf-announce>,
	<mailto:ietf-announce-request@ietf.org?subject=subscribe>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: ietf-announce-bounces@ietf.org
Errors-To: ietf-announce-bounces@ietf.org

The IESG has approved the following document:

- 'Channel Bindings for TLS '
   <draft-altman-tls-channel-bindings-10.txt> as a Proposed Standard

This document has been reviewed in the IETF but is not the product of an
IETF Working Group. 

The IESG contact person is Alexey Melnikov.

A URL of this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-altman-tls-channel-bindings-10.txt

Technical Summary

   This document defines three channel binding types for Transport Layer
   Security (TLS), tls-unique, tls-server-end-point, and tls-unique-for-
   telnet, in accordance with RFC 5056 (On Channel Binding).

Working Group Summary

   Although this is an individual submission, it was pseudo-Last Called
   in the SASL and TLS Working Groups.  No dissent was reported.  All
   comments have been addressed.

   Note that in March 2010 an incompatibility was discovered between
   Microsoft's implementation of "tls-unique" channel binding type
   and its IANA registration. After community discussions there was
   SASL mailing list consensus to update the definition to match
   Microsoft implementation.

Document Quality

   There appears to exist at least one implementation of each of the
   tls-server-end-point and tls-unique-for-telnet channel binding types.
   Implementations of tls-unique appear to be in progress.

   Note that "tls-unique" channel binding type is the mandatory to
   implement for SASL SCRAM document which is currently in AUTH48.

Personnel

   Alexey Melnikov is the Responsible Area Director for this document.

RFC Editor Note

Please add the following paragraph at the end of the Abstract:

   Note that based on implementation experience this document changes
   the current definition of 'tls-unique' channel binding type in the
   channel binding type IANA registry.

In Section 2, change the first line of the first sentence to read:

OLD:
   Subsequent to the publication of "On Channel Bindings" [RFC5246],
   three channel binding types for Transport Layer Security (TLS) were
   proposed, reviewed and added to the IANA channel binding type
   registry, all in accordance with [RFC5246]

NEW:
   Subsequent to the publication of "On Channel Bindings" [RFC5056],
   three channel binding types for Transport Layer Security (TLS) were
   proposed, reviewed and added to the IANA channel binding type
   registry, all in accordance with [RFC5056]

In Section 3.1, please update the 1st sentence of the 1st paragraph to
read:

OLD:
   Description: The first TLS Finished message sent (note: the Finished
   struct) in the most recent TLS handshake of the TLS connection being
   bound to (note: TLS connection, not session, so that the channel
   binding is specific to each connection regardless of whether session
   resumption is used).

NEW:
   Description: The first TLS Finished message sent (note: the Finished
   struct, not the TLS record layer message containing it)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   in the most recent TLS handshake of the TLS connection being
   bound to (note: TLS connection, not session, so that the channel
   binding is specific to each connection regardless of whether session
   resumption is used).


Please update the last sentence of Section 3.1 to read:

OLD:
      Application protocols should be designed in such a way that a
                            ^^^^^^
      server would never need to request TLS re-negotiation immediately
      before or during application-layer authentication.

NEW:
      Application protocols SHOULD be designed in such a way that a
                            ^^^^^^
      server would never need to request TLS re-negotiation immediately
      before or during application-layer authentication.


In Section 4.1, please replace the first paragraph to read:

OLD:
   Description: The hash of the TLS server's certificate [RFC5280] as it
   appears, octet for octet, in the server's Certificate message (note
   that the Certificate message contains a certificate_list, the first
   element of which is the server's certificate).

NEW:
   Description: The hash of the TLS server's certificate [RFC5280] as it
   appears, octet for octet, in the server's Certificate message. Note
   that the Certificate message contains a certificate_list, the first
   element of which is the server's certificate.

(i.e. make the note a separate sentence.)

Please replace "<this document>" in Sections 3.2, 4.2, and 5.2 with the
RFC number assigned to this document upon publication.


In Section 6, please replace the 1st sentence in the 5th from the last
paragraph to read:

OLD:
   Therefore 'tls-unique' is generally better than 'tls-server-end-
   point'.

NEW:
   Therefore 'tls-unique' is applicable to more contexts than 'tls-
   server-end-point'.

In Section 6, replace the 3rd from the last paragraph:

OLD:
   In other words, for many applications there may be two potentially
   applicable TLS channel binding types.  Channel binding is all or
   nothing for the GSS-API [RFC2743], and likely other frameworks.
   Therefore agreement on the use of channel binding, and a particular
   channel binding type is necessary.  Such agreement can be obtained a
   priori, by convention, or negotiated.

NEW:
   For many applications there may be two or more potentially applicable
   TLS channel binding types.  Existing security frameworks (such as the
   GSS-API [RFC2743]) and security mechanisms, generally do not support
   negotiation of channel binding types.  Therefore application peers
   need to agree a priori as to what channel binding type to use (or
   rules for deciding what channel binding type to use).


Please replace the following reference in Section 11.2 (and its uses):

   [FIPS-180-2]
              United States of America, National Institute of Standards
              and Technology, "Secure Hash Standard (Federal Information
              Processing Standard (FIPS) 180-2".

to point to FIPS-180-3.

_______________________________________________
IETF-Announce mailing list
IETF-Announce@ietf.org
https://www.ietf.org/mailman/listinfo/ietf-announce

--------------080100080400000706030204--

From ekr@rtfm.com  Sat May  8 08:05:27 2010
Return-Path: <ekr@rtfm.com>
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 0FC9028C0DB for <tls@core3.amsl.com>; Sat,  8 May 2010 08:05:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.677
X-Spam-Level: 
X-Spam-Status: No, score=-0.677 tagged_above=-999 required=5 tests=[AWL=-1.300, BAYES_50=0.001, FM_FORGED_GMAIL=0.622]
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 V1pNXYwKuKbS for <tls@core3.amsl.com>; Sat,  8 May 2010 08:05:26 -0700 (PDT)
Received: from mail-gw0-f44.google.com (mail-gw0-f44.google.com [74.125.83.44]) by core3.amsl.com (Postfix) with ESMTP id 43CAE28C0D0 for <tls@ietf.org>; Sat,  8 May 2010 08:05:13 -0700 (PDT)
Received: by gwaa12 with SMTP id a12so1231597gwa.31 for <tls@ietf.org>; Sat, 08 May 2010 08:04:57 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.90.22.32 with SMTP id 32mr1068905agv.126.1273331095969; Sat,  08 May 2010 08:04:55 -0700 (PDT)
Received: by 10.90.25.1 with HTTP; Sat, 8 May 2010 08:04:55 -0700 (PDT)
In-Reply-To: <C80AE133.AA0F%stefan@aaa-sec.com>
References: <h2gd3aa5d01005071814nc782760anedbb2a54872eb22c@mail.gmail.com> <C80AE133.AA0F%stefan@aaa-sec.com>
Date: Sat, 8 May 2010 08:04:55 -0700
Message-ID: <w2sd3aa5d01005080804tbe8fdfdey77b5add371adfb8e@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
To: Stefan Santesson <stefan@aaa-sec.com>
Content-Type: text/plain; charset=ISO-8859-1
Cc: tls@ietf.org
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Sat, 08 May 2010 15:05:27 -0000

On Sat, May 8, 2010 at 12:36 AM, Stefan Santesson <stefan@aaa-sec.com> wrote:
> Eric,
>
> Thanks for your input, but it would be great if you let us in on your long
> version instead of just stating your opinion.

I thought that was the long version: everyone already has SHA-1 in their
stacks. This is just added cruft. What more is there?


> You say:
>> In short, I prefer SHA-1 to FNV-1. FNV-1 introduces a new algorithm for no
>> reason other than people might be confused about what SHA-1 is doing
>> in this case. I realize it's simple but calling SHA-1 is even simpler.
>> We should just call SHA-1 with no agility.
>
> It was you who proposed the syntax that introduced agility for the hash
> algorithm (expanding my initial syntax with no agility):
>
> http://www.ietf.org/mail-archive/web/tls/current/msg03331.html

I'm sorry, I don't see the relevance here. I don't recall saying that we needed
agility in that meeting. However, people felt we did and I proposed syntax
that recognized that. The point of that
message was to support multiple types of cached info, not to support
multiple types of hashes. That's why it just supports the "minimal" level
of hash agility, i.e., leting the client tell the server what hash he used.

> At November IETF 2008 you made a presentation at Saag, recognizing "The Need
> for Cryptographically Insecure Hash Functions" for just the reasons that we
> see here.
>
> http://www.ietf.org/proceedings/73/slides/saag-0.pdf
>
> I thought that was a great presentation. What has changed your opinion since
> then?

I'm not sure my opinion has changed. But here we have a system chock
full of hash functions. One of those is entirely suitable. I don't see the
point in abandoning it for yet another function.

>
> Finally, taking your chair hat on, could you advice on how to proceed with
> this draft if the majority still prefers FNV?

I'll let Joe take that. That's why we have two chairs.

-Ekr

From prvs=2745b19936=uri@ll.mit.edu  Sat May  8 21:12:04 2010
Return-Path: <prvs=2745b19936=uri@ll.mit.edu>
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 37DF43A67DB for <tls@core3.amsl.com>; Sat,  8 May 2010 21:12:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.322
X-Spam-Level: 
X-Spam-Status: No, score=-4.322 tagged_above=-999 required=5 tests=[AWL=-0.138, BAYES_40=-0.185, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 n7T2tizZzGT4 for <tls@core3.amsl.com>; Sat,  8 May 2010 21:12:02 -0700 (PDT)
Received: from mx1.ll.mit.edu (MX1.LL.MIT.EDU [129.55.12.45]) by core3.amsl.com (Postfix) with ESMTP id 914D83A67CC for <tls@ietf.org>; Sat,  8 May 2010 21:12:02 -0700 (PDT)
Received: from LLE2K7-HUB01.mitll.ad.local (LLE2K7-HUB01.mitll.ad.local) by mx1.ll.mit.edu (unknown) with ESMTP id o494BkUb030575; Sun, 9 May 2010 00:11:46 -0400
From: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
To: "'ekr@rtfm.com'" <ekr@rtfm.com>, "'stefan@aaa-sec.com'" <stefan@aaa-sec.com>
Date: Sun, 9 May 2010 00:11:45 -0400
Thread-Topic: [TLS] SHA-1 vs. FNV-1
Thread-Index: Acruv+JYSjSRcfUzQ/2nomc9pip0kwAbdqUb
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-05-08_02:2010-02-06, 2010-05-08, 2010-05-07 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1005080170
Message-Id: <20100509041202.914D83A67CC@core3.amsl.com>
Cc: "'tls@ietf.org'" <tls@ietf.org>
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Sun, 09 May 2010 04:12:05 -0000

SSBkb24ndCBidXkgdGhlICJldmVyeWJvZHkgYWxyZWFkeSBnb3QgU0hBLTEiIGFyZ3VtZW50LiBG
b3IgY3J5cHRvZ3JhcGhpYyBwdXJwb3NlcyBTSEEtMSBpc24ndCBnb29kIGVub3VnaCAoYW55IG1v
cmUpLCBhbmQgZm9yIG5vbi1jcnlwdG8gaXQgbWF5IHdlbGwgYmUgY29uc2lkZXJlZCBhbiBvdmVy
a2lsbCBhbmQgcGVyZm9ybWFuY2UgaG9nIChjb21wYXJlZCB0byBmYXN0ZXIgYW5kIGV2ZW4td2Vh
a2VyIGNyeXB0b2dyYXBoaWNhbGx5IGFsZ29yaXRobXMpLiBQZXJmb3JtYW5jZSBpcyBhIGdvb2Qg
cmVhc29uIGZvciBjaG9vc2luZyBhbiBhbGdvcml0aG0uDQoNClNIQS0xIHByb2JhYmx5IHdvdWxk
IGxlYXZlICJldmVyeW9uZSdzIHN0YWNrIiwgYW5kIGluIGFueSBjYXNlIG90aGVyIGhhc2ggZnVu
Y3Rpb25zIHdvdWxkIGVudGVyOiBzbG93ZXIgJiBzdHJvbmdlciBmb3IgQ3J5cHRvIC0gZm9yIHN1
cmUgKHN0YXJ0IHdpdGggU0hBMjU2LCBhbmQgc2V0IHNpZ2h0cyBvbiBTSEEtMyksIGZhc3RlciBh
bmQgd2Vha2VyIGZvciBub24tY3J5cHRvIC0gbWF5YmUuIE15ICQwLjAyLg0KDQoNClJlZ2FyZHMs
DQpVcmkNCg0KLS0tLS0gT3JpZ2luYWwgTWVzc2FnZSAtLS0tLQ0KRnJvbTogdGxzLWJvdW5jZXNA
aWV0Zi5vcmcgPHRscy1ib3VuY2VzQGlldGYub3JnPg0KVG86IFN0ZWZhbiBTYW50ZXNzb24gPHN0
ZWZhbkBhYWEtc2VjLmNvbT4NCkNjOiB0bHNAaWV0Zi5vcmcgPHRsc0BpZXRmLm9yZz4NClNlbnQ6
IFNhdCBNYXkgMDggMTE6MDQ6NTUgMjAxMApTdWJqZWN0OiBSZTogW1RMU10gU0hBLTEgdnMuIEZO
Vi0xDQoNCk9uIFNhdCwgTWF5IDgsIDIwMTAgYXQgMTI6MzYgQU0sIFN0ZWZhbiBTYW50ZXNzb24g
PHN0ZWZhbkBhYWEtc2VjLmNvbT4gd3JvdGU6DQo+IEVyaWMsDQo+DQo+IFRoYW5rcyBmb3IgeW91
ciBpbnB1dCwgYnV0IGl0IHdvdWxkIGJlIGdyZWF0IGlmIHlvdSBsZXQgdXMgaW4gb24geW91ciBs
b25nDQo+IHZlcnNpb24gaW5zdGVhZCBvZiBqdXN0IHN0YXRpbmcgeW91ciBvcGluaW9uLg0KDQpJ
IHRob3VnaHQgdGhhdCB3YXMgdGhlIGxvbmcgdmVyc2lvbjogZXZlcnlvbmUgYWxyZWFkeSBoYXMg
U0hBLTEgaW4gdGhlaXINCnN0YWNrcy4gVGhpcyBpcyBqdXN0IGFkZGVkIGNydWZ0LiBXaGF0IG1v
cmUgaXMgdGhlcmU/DQoNCg0KPiBZb3Ugc2F5Og0KPj4gSW4gc2hvcnQsIEkgcHJlZmVyIFNIQS0x
IHRvIEZOVi0xLiBGTlYtMSBpbnRyb2R1Y2VzIGEgbmV3IGFsZ29yaXRobSBmb3Igbm8NCj4+IHJl
YXNvbiBvdGhlciB0aGFuIHBlb3BsZSBtaWdodCBiZSBjb25mdXNlZCBhYm91dCB3aGF0IFNIQS0x
IGlzIGRvaW5nDQo+PiBpbiB0aGlzIGNhc2UuIEkgcmVhbGl6ZSBpdCdzIHNpbXBsZSBidXQgY2Fs
bGluZyBTSEEtMSBpcyBldmVuIHNpbXBsZXIuDQo+PiBXZSBzaG91bGQganVzdCBjYWxsIFNIQS0x
IHdpdGggbm8gYWdpbGl0eS4NCj4NCj4gSXQgd2FzIHlvdSB3aG8gcHJvcG9zZWQgdGhlIHN5bnRh
eCB0aGF0IGludHJvZHVjZWQgYWdpbGl0eSBmb3IgdGhlIGhhc2gNCj4gYWxnb3JpdGhtIChleHBh
bmRpbmcgbXkgaW5pdGlhbCBzeW50YXggd2l0aCBubyBhZ2lsaXR5KToNCj4NCj4gaHR0cDovL3d3
dy5pZXRmLm9yZy9tYWlsLWFyY2hpdmUvd2ViL3Rscy9jdXJyZW50L21zZzAzMzMxLmh0bWwNCg0K
SSdtIHNvcnJ5LCBJIGRvbid0IHNlZSB0aGUgcmVsZXZhbmNlIGhlcmUuIEkgZG9uJ3QgcmVjYWxs
IHNheWluZyB0aGF0IHdlIG5lZWRlZA0KYWdpbGl0eSBpbiB0aGF0IG1lZXRpbmcuIEhvd2V2ZXIs
IHBlb3BsZSBmZWx0IHdlIGRpZCBhbmQgSSBwcm9wb3NlZCBzeW50YXgNCnRoYXQgcmVjb2duaXpl
ZCB0aGF0LiBUaGUgcG9pbnQgb2YgdGhhdA0KbWVzc2FnZSB3YXMgdG8gc3VwcG9ydCBtdWx0aXBs
ZSB0eXBlcyBvZiBjYWNoZWQgaW5mbywgbm90IHRvIHN1cHBvcnQNCm11bHRpcGxlIHR5cGVzIG9m
IGhhc2hlcy4gVGhhdCdzIHdoeSBpdCBqdXN0IHN1cHBvcnRzIHRoZSAibWluaW1hbCIgbGV2ZWwN
Cm9mIGhhc2ggYWdpbGl0eSwgaS5lLiwgbGV0aW5nIHRoZSBjbGllbnQgdGVsbCB0aGUgc2VydmVy
IHdoYXQgaGFzaCBoZSB1c2VkLg0KDQo+IEF0IE5vdmVtYmVyIElFVEYgMjAwOCB5b3UgbWFkZSBh
IHByZXNlbnRhdGlvbiBhdCBTYWFnLCByZWNvZ25pemluZyAiVGhlIE5lZWQNCj4gZm9yIENyeXB0
b2dyYXBoaWNhbGx5IEluc2VjdXJlIEhhc2ggRnVuY3Rpb25zIiBmb3IganVzdCB0aGUgcmVhc29u
cyB0aGF0IHdlDQo+IHNlZSBoZXJlLg0KPg0KPiBodHRwOi8vd3d3LmlldGYub3JnL3Byb2NlZWRp
bmdzLzczL3NsaWRlcy9zYWFnLTAucGRmDQo+DQo+IEkgdGhvdWdodCB0aGF0IHdhcyBhIGdyZWF0
IHByZXNlbnRhdGlvbi4gV2hhdCBoYXMgY2hhbmdlZCB5b3VyIG9waW5pb24gc2luY2UNCj4gdGhl
bj8NCg0KSSdtIG5vdCBzdXJlIG15IG9waW5pb24gaGFzIGNoYW5nZWQuIEJ1dCBoZXJlIHdlIGhh
dmUgYSBzeXN0ZW0gY2hvY2sNCmZ1bGwgb2YgaGFzaCBmdW5jdGlvbnMuIE9uZSBvZiB0aG9zZSBp
cyBlbnRpcmVseSBzdWl0YWJsZS4gSSBkb24ndCBzZWUgdGhlDQpwb2ludCBpbiBhYmFuZG9uaW5n
IGl0IGZvciB5ZXQgYW5vdGhlciBmdW5jdGlvbi4NCg0KPg0KPiBGaW5hbGx5LCB0YWtpbmcgeW91
ciBjaGFpciBoYXQgb24sIGNvdWxkIHlvdSBhZHZpY2Ugb24gaG93IHRvIHByb2NlZWQgd2l0aA0K
PiB0aGlzIGRyYWZ0IGlmIHRoZSBtYWpvcml0eSBzdGlsbCBwcmVmZXJzIEZOVj8NCg0KSSdsbCBs
ZXQgSm9lIHRha2UgdGhhdC4gVGhhdCdzIHdoeSB3ZSBoYXZlIHR3byBjaGFpcnMuDQoNCi1Fa3IN
Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fDQpUTFMgbWFp
bGluZyBsaXN0DQpUTFNAaWV0Zi5vcmcNCmh0dHBzOi8vd3d3LmlldGYub3JnL21haWxtYW4vbGlz
dGluZm8vdGxzDQo=

From stefan@aaa-sec.com  Sun May  9 03:14:16 2010
Return-Path: <stefan@aaa-sec.com>
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 D32103A67DA for <tls@core3.amsl.com>; Sun,  9 May 2010 03:14:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.21
X-Spam-Level: 
X-Spam-Status: No, score=-1.21 tagged_above=-999 required=5 tests=[AWL=-0.375,  BAYES_40=-0.185, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 QfFY7EhAdEg0 for <tls@core3.amsl.com>; Sun,  9 May 2010 03:14:15 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id 7F3153A68D3 for <tls@ietf.org>; Sun,  9 May 2010 03:14:08 -0700 (PDT)
Received: from s29.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 5935B33F5D3 for <tls@ietf.org>; Sun,  9 May 2010 12:13:59 +0200 (CEST)
Received: (qmail 66725 invoked from network); 9 May 2010 10:13:55 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.16]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s29.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <ekr@rtfm.com>; 9 May 2010 10:13:55 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Sun, 09 May 2010 12:13:54 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: Eric Rescorla <ekr@rtfm.com>
Message-ID: <C80C5782.AA38%stefan@aaa-sec.com>
Thread-Topic: [TLS] SHA-1 vs. FNV-1
Thread-Index: AcrvYFQUY1j/QOKVTkqkHyrqvGBOUA==
In-Reply-To: <w2sd3aa5d01005080804tbe8fdfdey77b5add371adfb8e@mail.gmail.com>
Mime-version: 1.0
Content-type: text/plain; charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable
Cc: tls@ietf.org
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Sun, 09 May 2010 10:14:17 -0000

Eric,


On 10-05-08 5:04 PM, "Eric Rescorla" <ekr@rtfm.com> wrote:

> On Sat, May 8, 2010 at 12:36 AM, Stefan Santesson <stefan@aaa-sec.com> wr=
ote:
>> Eric,
>>=20
>> Thanks for your input, but it would be great if you let us in on your lo=
ng
>> version instead of just stating your opinion.
>=20
> I thought that was the long version: everyone already has SHA-1 in their
> stacks. This is just added cruft. What more is there?
>=20

For example the arguments from your own presentation at Saag:

"When cryptographic digests are used, people expect them to be security
critical
   =AD Even worse now that MD5 has been weakened
   =AD Reviewers ask =B3what about hash agility?=B2 =B3Where=B9s the
     security analysis?=B2
   =AD Need to explicitly disclaim security usages"


I didn't mean to say that you advocated for hash agility, just demonstrate
how true your arguments above are, even in this group of experts.

How relevant is it that calling SHA-1 one is easier, when implementing FNV
is about as hard as writing this e-mail?


/Stefan





From ekr@rtfm.com  Sun May  9 13:53:49 2010
Return-Path: <ekr@rtfm.com>
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 9F5613A6918 for <tls@core3.amsl.com>; Sun,  9 May 2010 13:53:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.221
X-Spam-Level: 
X-Spam-Status: No, score=-0.221 tagged_above=-999 required=5 tests=[AWL=-0.103, BAYES_20=-0.74, FM_FORGED_GMAIL=0.622]
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 XlPZpCwL4xFY for <tls@core3.amsl.com>; Sun,  9 May 2010 13:53:48 -0700 (PDT)
Received: from mail-yw0-f173.google.com (mail-yw0-f173.google.com [209.85.211.173]) by core3.amsl.com (Postfix) with ESMTP id C89663A68C0 for <tls@ietf.org>; Sun,  9 May 2010 13:53:48 -0700 (PDT)
Received: by ywh3 with SMTP id 3so594745ywh.31 for <tls@ietf.org>; Sun, 09 May 2010 13:53:33 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.90.20.24 with SMTP id 24mr1270158agt.131.1273438412906; Sun,  09 May 2010 13:53:32 -0700 (PDT)
Received: by 10.90.25.1 with HTTP; Sun, 9 May 2010 13:53:32 -0700 (PDT)
In-Reply-To: <C80C5782.AA38%stefan@aaa-sec.com>
References: <w2sd3aa5d01005080804tbe8fdfdey77b5add371adfb8e@mail.gmail.com> <C80C5782.AA38%stefan@aaa-sec.com>
Date: Sun, 9 May 2010 13:53:32 -0700
Message-ID: <t2yd3aa5d01005091353iff713e4awf0b06b0b1570648@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
To: Stefan Santesson <stefan@aaa-sec.com>
Content-Type: text/plain; charset=ISO-8859-1
Cc: tls@ietf.org
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Sun, 09 May 2010 20:53:49 -0000

On Sun, May 9, 2010 at 3:13 AM, Stefan Santesson <stefan@aaa-sec.com> wrote:
> How relevant is it that calling SHA-1 one is easier, when implementing FNV
> is about as hard as writing this e-mail?

I feel like I'm repeating myself.

It's not purely a matter of easier but also of having less cruft in the system.

Really, given that the security analysis for why you don't need a secure
hash needs to be written in any case, and that we're NOT using MD5
but rather SHA-1, I don't see that the argument you're presenting
for deviating from our standard SHA-1 using practice is compelling at
all.

-Ekr

From mike-list@pobox.com  Sun May  9 14:07:39 2010
Return-Path: <mike-list@pobox.com>
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 70B223A68E4 for <tls@core3.amsl.com>; Sun,  9 May 2010 14:07:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.111
X-Spam-Level: 
X-Spam-Status: No, score=-1.111 tagged_above=-999 required=5 tests=[AWL=-0.001, BAYES_05=-1.11]
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 5xWO0Uf+Y-PL for <tls@core3.amsl.com>; Sun,  9 May 2010 14:07:38 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 45E633A6822 for <tls@ietf.org>; Sun,  9 May 2010 14:07:38 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 4F751B1439; Sun,  9 May 2010 17:07:26 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=py1cDIqdaxjh TYlyVSYxl/DrQ2w=; b=oSyJbHtHW8wCfgwoQDCqyPoXHRwBQQP8pSoaAmzLfjqs Jgvbh/RRuU3WiuUZBKvhI1mgshaU5UnUgsHS5Wfybr2sW+X6Ha0oROc1eF8t1HL4 jlINI1qm6bdxiuTMlINvKcKhZPyzYK1oFPhp9cJ3pnfmeC9AEDlU0FGIoLmPuFs=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=jEAKIO zzob3J1htsASXsToi9BGUTgrU1J2VlxjOpcU3Zj0ImyoV0dmumcV7OStSvYDGswC 177WVYQc2jgqK0EtARbAxaRuNYWuBV2fh0AOQsaJHCW6GmPxkCJef5q+R0AL1/FN Y537lLHrbTr8S8icvt51nmC/FJEaDZeZ/bqg0=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 92DD6B1428; Sun,  9 May 2010 17:07:23 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id EAD49B141F; Sun,  9 May 2010 17:07:19 -0400 (EDT)
Message-ID: <4BE72406.9050605@pobox.com>
Date: Sun, 09 May 2010 14:07:18 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: Eric Rescorla <ekr@rtfm.com>
References: <w2sd3aa5d01005080804tbe8fdfdey77b5add371adfb8e@mail.gmail.com> <C80C5782.AA38%stefan@aaa-sec.com> <t2yd3aa5d01005091353iff713e4awf0b06b0b1570648@mail.gmail.com>
In-Reply-To: <t2yd3aa5d01005091353iff713e4awf0b06b0b1570648@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: DD0FB234-5BAE-11DF-B805-D033EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Sun, 09 May 2010 21:07:39 -0000

Eric Rescorla wrote:
> 
> Really, given that the security analysis for why you don't need a secure
> hash needs to be written in any case, and that we're NOT using MD5
> but rather SHA-1, I don't see that the argument you're presenting
> for deviating from our standard SHA-1 using practice is compelling at
> all.

Won't there be a push to get rid of SHA-1 from protocols just as there
is for MD5 today?  It seems prudent NOT to use SHA-1 precisely for the
same reason we are not using MD5.

Mike

From ekr@rtfm.com  Sun May  9 14:12:45 2010
Return-Path: <ekr@rtfm.com>
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 49E043A69C1 for <tls@core3.amsl.com>; Sun,  9 May 2010 14:12:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.159
X-Spam-Level: 
X-Spam-Status: No, score=0.159 tagged_above=-999 required=5 tests=[AWL=-0.464,  BAYES_50=0.001, FM_FORGED_GMAIL=0.622]
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 WC6PAHBBCr10 for <tls@core3.amsl.com>; Sun,  9 May 2010 14:12:44 -0700 (PDT)
Received: from mail-yw0-f173.google.com (mail-yw0-f173.google.com [209.85.211.173]) by core3.amsl.com (Postfix) with ESMTP id 45C403A68E9 for <tls@ietf.org>; Sun,  9 May 2010 14:12:44 -0700 (PDT)
Received: by ywh3 with SMTP id 3so599137ywh.31 for <tls@ietf.org>; Sun, 09 May 2010 14:12:30 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.91.109.2 with SMTP id l2mr1331171agm.53.1273439550220; Sun, 09  May 2010 14:12:30 -0700 (PDT)
Received: by 10.90.25.1 with HTTP; Sun, 9 May 2010 14:12:30 -0700 (PDT)
In-Reply-To: <4BE72406.9050605@pobox.com>
References: <w2sd3aa5d01005080804tbe8fdfdey77b5add371adfb8e@mail.gmail.com> <C80C5782.AA38%stefan@aaa-sec.com> <t2yd3aa5d01005091353iff713e4awf0b06b0b1570648@mail.gmail.com> <4BE72406.9050605@pobox.com>
Date: Sun, 9 May 2010 14:12:30 -0700
Message-ID: <v2jd3aa5d01005091412r3d343712i58fc21f8fb6f0fd4@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
To: "Michael D'Errico" <mike-list@pobox.com>
Content-Type: text/plain; charset=ISO-8859-1
Cc: tls@ietf.org
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Sun, 09 May 2010 21:12:45 -0000

On Sun, May 9, 2010 at 2:07 PM, Michael D'Errico <mike-list@pobox.com> wrote:
> Eric Rescorla wrote:
>>
>> Really, given that the security analysis for why you don't need a secure
>> hash needs to be written in any case, and that we're NOT using MD5
>> but rather SHA-1, I don't see that the argument you're presenting
>> for deviating from our standard SHA-1 using practice is compelling at
>> all.
>
> Won't there be a push to get rid of SHA-1 from protocols just as there
> is for MD5 today?

Yes, there will, and we'll send those who suggest we remove it from this
location the relevant security analysis and that will be that.


> It seems prudent NOT to use SHA-1 precisely for the
> same reason we are not using MD5.

Not really. We are (well, were before Stefan changed it) using SHA-1
because it's what everyone uses. Which, incidentally, is precisely the
argument for using it instead of FNV-1, which, by comparison, practically
nobody uses.

-Ekr

From prvs=2745b19936=uri@ll.mit.edu  Sun May  9 14:20:00 2010
Return-Path: <prvs=2745b19936=uri@ll.mit.edu>
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 0FA6028C0EA for <tls@core3.amsl.com>; Sun,  9 May 2010 14:20:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.502
X-Spam-Level: 
X-Spam-Status: No, score=-5.502 tagged_above=-999 required=5 tests=[AWL=1.097,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 3EOxgN+HGF8I for <tls@core3.amsl.com>; Sun,  9 May 2010 14:19:58 -0700 (PDT)
Received: from mx1.ll.mit.edu (MX1.LL.MIT.EDU [129.55.12.45]) by core3.amsl.com (Postfix) with ESMTP id 19EB528C0E8 for <tls@ietf.org>; Sun,  9 May 2010 14:19:58 -0700 (PDT)
Received: from LLE2K7-HUB02.mitll.ad.local (LLE2K7-HUB02.mitll.ad.local) by mx1.ll.mit.edu (unknown) with ESMTP id o49LJjam018136; Sun, 9 May 2010 17:19:45 -0400
From: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
To: "'mike-list@pobox.com'" <mike-list@pobox.com>, "'ekr@rtfm.com'" <ekr@rtfm.com>
Date: Sun, 9 May 2010 17:19:44 -0400
Thread-Topic: [TLS] SHA-1 vs. FNV-1
Thread-Index: Acrvu6LsiN/ePkzpSFKSzWhAWSasmAAAbWgR
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-05-08_02:2010-02-06, 2010-05-08, 2010-05-09 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1005090139
Message-Id: <20100509211958.19EB528C0E8@core3.amsl.com>
Cc: "'tls@ietf.org'" <tls@ietf.org>
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Sun, 09 May 2010 21:20:00 -0000

TWlrZSBpcyBjb3JyZWN0LiBBcyB0aGUgcmlzayBvZiByZXBlYXRpbmcgbXlzZWxmOiBvdXIgY3Vy
cmVudCBwcmFjdGljZSBvZiB1c2luZyBTSEEtMSBpcyBkeWluZyBqdXN0IGxpa2UgdGhlIHByZXZp
b3VzIHByYWN0aWNlIG9mIHVzaW5nIE1ENSAoYW5kIE1ENCBiZWZvcmUgaXQpIGlzIGRlYWQuIFNv
IGp1c3RpZnlpbmcgY29udGludW91cyB1c2Ugb2YgU0hBLTEgaXMgaW1wcm9wZXI6IGZvciBzZWN1
cml0eSBwdXJwb3NlcyBpdCBpcyBicm9rZW4sIGFuZCBmb3Igbm9uLXNlY3VyaXR5IHB1cnBvc2Vz
IGl0J3MgcmF0aGVyIHNsb3cuIFRoZSBpbml0aWFsIGRyaXZlIHRvIG1vdmUgdG8gU0hBLTEgd2Fz
IGJhc2VkIHNvbGVseSBvbiBzZWN1cml0eSBuZWVkcyBhbmQgcmVhc29ucyAtIHdoaWNoIGRvIG5v
dCBhcHBseSBhbnkgbW9yZS4gDQoNCk5lZWQgbW9yZSBiZSBzYWlkPw0KDQpSZWdhcmRzLA0KVXJp
DQoNCi0tLS0tIE9yaWdpbmFsIE1lc3NhZ2UgLS0tLS0NCkZyb206IHRscy1ib3VuY2VzQGlldGYu
b3JnIDx0bHMtYm91bmNlc0BpZXRmLm9yZz4NClRvOiBFcmljIFJlc2NvcmxhIDxla3JAcnRmbS5j
b20+DQpDYzogdGxzQGlldGYub3JnIDx0bHNAaWV0Zi5vcmc+DQpTZW50OiBTdW4gTWF5IDA5IDE3
OjA3OjE4IDIwMTAKU3ViamVjdDogUmU6IFtUTFNdIFNIQS0xIHZzLiBGTlYtMQ0KDQpFcmljIFJl
c2NvcmxhIHdyb3RlOg0KPiANCj4gUmVhbGx5LCBnaXZlbiB0aGF0IHRoZSBzZWN1cml0eSBhbmFs
eXNpcyBmb3Igd2h5IHlvdSBkb24ndCBuZWVkIGEgc2VjdXJlDQo+IGhhc2ggbmVlZHMgdG8gYmUg
d3JpdHRlbiBpbiBhbnkgY2FzZSwgYW5kIHRoYXQgd2UncmUgTk9UIHVzaW5nIE1ENQ0KPiBidXQg
cmF0aGVyIFNIQS0xLCBJIGRvbid0IHNlZSB0aGF0IHRoZSBhcmd1bWVudCB5b3UncmUgcHJlc2Vu
dGluZw0KPiBmb3IgZGV2aWF0aW5nIGZyb20gb3VyIHN0YW5kYXJkIFNIQS0xIHVzaW5nIHByYWN0
aWNlIGlzIGNvbXBlbGxpbmcgYXQNCj4gYWxsLg0KDQpXb24ndCB0aGVyZSBiZSBhIHB1c2ggdG8g
Z2V0IHJpZCBvZiBTSEEtMSBmcm9tIHByb3RvY29scyBqdXN0IGFzIHRoZXJlDQppcyBmb3IgTUQ1
IHRvZGF5PyAgSXQgc2VlbXMgcHJ1ZGVudCBOT1QgdG8gdXNlIFNIQS0xIHByZWNpc2VseSBmb3Ig
dGhlDQpzYW1lIHJlYXNvbiB3ZSBhcmUgbm90IHVzaW5nIE1ENS4NCg0KTWlrZQ0KX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18NClRMUyBtYWlsaW5nIGxpc3QN
ClRMU0BpZXRmLm9yZw0KaHR0cHM6Ly93d3cuaWV0Zi5vcmcvbWFpbG1hbi9saXN0aW5mby90bHMN
Cg==

From jsalowey@cisco.com  Sun May  9 22:05:25 2010
Return-Path: <jsalowey@cisco.com>
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 773A23A69F8 for <tls@core3.amsl.com>; Sun,  9 May 2010 22:05:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.962
X-Spam-Level: 
X-Spam-Status: No, score=-8.962 tagged_above=-999 required=5 tests=[AWL=-0.963, BAYES_50=0.001, RCVD_IN_DNSWL_HI=-8]
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 DDSH6zYJG9IJ for <tls@core3.amsl.com>; Sun,  9 May 2010 22:05:24 -0700 (PDT)
Received: from sj-iport-5.cisco.com (sj-iport-5.cisco.com [171.68.10.87]) by core3.amsl.com (Postfix) with ESMTP id A376E3A6AE3 for <tls@ietf.org>; Sun,  9 May 2010 22:05:23 -0700 (PDT)
Authentication-Results: sj-iport-5.cisco.com; dkim=neutral (message not signed) header.i=none
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: An0FAJ8w50urR7Ht/2dsb2JhbACRVow+caJrmEqFFQSDQg
X-IronPort-AV: E=Sophos;i="4.52,359,1270425600"; d="scan'208";a="194955345"
Received: from sj-core-1.cisco.com ([171.71.177.237]) by sj-iport-5.cisco.com with ESMTP; 10 May 2010 05:05:12 +0000
Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com [128.107.191.63]) by sj-core-1.cisco.com (8.13.8/8.14.3) with ESMTP id o4A55CfZ010627; Mon, 10 May 2010 05:05:12 GMT
Received: from xmb-sjc-225.amer.cisco.com ([128.107.191.38]) by xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.3959);  Sun, 9 May 2010 22:05:12 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Sun, 9 May 2010 22:05:10 -0700
Message-ID: <AC1CFD94F59A264488DC2BEC3E890DE50A43B2D7@xmb-sjc-225.amer.cisco.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Proposed changes to draft-ietf-tls-rfc4366-bis
Thread-Index: Acrv/l26HtKQjo8LSmKZZk/KkPoRsw==
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: <tls@ietf.org>
X-OriginalArrivalTime: 10 May 2010 05:05:12.0162 (UTC) FILETIME=[5E9DEC20:01CAEFFE]
Subject: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
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: Mon, 10 May 2010 05:05:25 -0000

Below are proposed changes to resolve open items with
draft-ietf-tls-rfc4366-bis.  If these are OK then we should submit a new
revision and move the document forward. =20

Add to Section 3 after the pseudo-code structure to resolve possible
ambiguity with multiple names of the same type:

"The ServerNameList MUST NOT contain more than one name of the same=20
name_type. If the server understood the client hello extension but
does not recognize any of the server names, it SHOULD send an
unrecognized_name(112) alert (which MAY be fatal)."=20



Add to section 3 before the last paragraph to clarify session resumption
behavior:

"When the server resumes a session, the server_name extension is
ignored."=20

TO clarify use of SHA-1 without agility:

Section 11.3:
ADD:
   This extension continues to use SHA-1 (like in RFC 4366), and does
   not provide algorithm agility. The property required of SHA-1 is
   second pre-image resistance, not collision resistance.
   Furthermore, even if second pre-image attacks against SHA-1 are
   found in the future, an attack against client_certificate_url=20
   would require a second pre-image that is accepted as a valid
   certificate by the server, and contains the same public key.

Section 11.4:
OLD:
   The use of the SHA-1 certificate hash alternative ensures that each
   certificate is specified unambiguously.  As for the previous
   extension, it was not believed necessary to use both MD5 and SHA-1
   hashes.
NEW:
   The use of the SHA-1 certificate hash alternative ensures that each
   certificate is specified unambiguously. This context does not
   require a cryptographic hash function, so the use of SHA-1 is
   considered acceptable, and no algorithm agility is provided.




From Pasi.Eronen@nokia.com  Mon May 10 04:31:47 2010
Return-Path: <Pasi.Eronen@nokia.com>
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 941F53A6899 for <tls@core3.amsl.com>; Mon, 10 May 2010 04:31:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.158
X-Spam-Level: 
X-Spam-Status: No, score=-6.158 tagged_above=-999 required=5 tests=[AWL=0.441,  BAYES_00=-2.599, 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 mP4Nt9+FUfcy for <tls@core3.amsl.com>; Mon, 10 May 2010 04:31:46 -0700 (PDT)
Received: from mgw-mx06.nokia.com (smtp.nokia.com [192.100.122.233]) by core3.amsl.com (Postfix) with ESMTP id B0D653A6B88 for <tls@ietf.org>; Mon, 10 May 2010 04:31:38 -0700 (PDT)
Received: from vaebh105.NOE.Nokia.com (vaebh105.europe.nokia.com [10.160.244.31]) by mgw-mx06.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o4ABV6dC007793; Mon, 10 May 2010 14:31:21 +0300
Received: from vaebh102.NOE.Nokia.com ([10.160.244.23]) by vaebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959);  Mon, 10 May 2010 14:30:57 +0300
Received: from smtp.mgd.nokia.com ([65.54.30.7]) by vaebh102.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959);  Mon, 10 May 2010 14:30:50 +0300
Received: from NOK-EUMSG-01.mgdnok.nokia.com ([65.54.30.86]) by nok-am1mhub-03.mgdnok.nokia.com ([65.54.30.7]) with mapi; Mon, 10 May 2010 13:30:49 +0200
From: <Pasi.Eronen@nokia.com>
To: <jsalowey@cisco.com>, <tls@ietf.org>
Date: Mon, 10 May 2010 13:30:48 +0200
Thread-Topic: Proposed changes to draft-ietf-tls-rfc4366-bis
Thread-Index: Acrv/l26HtKQjo8LSmKZZk/KkPoRswANFW5w
Message-ID: <808FD6E27AD4884E94820BC333B2DB775B82DD0CE1@NOK-EUMSG-01.mgdnok.nokia.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B2D7@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A43B2D7@xmb-sjc-225.amer.cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginalArrivalTime: 10 May 2010 11:30:50.0471 (UTC) FILETIME=[3E1FAF70:01CAF034]
X-Nokia-AV: Clean
Subject: Re: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
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: Mon, 10 May 2010 11:31:47 -0000

Joseph Salowey wrote:

> Below are proposed changes to resolve open items with
> draft-ietf-tls-rfc4366-bis.  If these are OK then we should submit a
> new revision and move the document forward.
>=20
> Add to Section 3 after the pseudo-code structure to resolve possible
> ambiguity with multiple names of the same type:
>=20
> "The ServerNameList MUST NOT contain more than one name of the same
> name_type. If the server understood the client hello extension but
> does not recognize any of the server names, it SHOULD send an
> unrecognized_name(112) alert (which MAY be fatal)."

It might be useful to also say that this is a change to RFC 4366
(otherwise, we're likely to get a DISCUSS asking about this :-).=20
Something like:

   Note: Earlier versions of this specification permitted multiple
   names of the same name_type. In practice, current client
   implementations only send one name, and the client cannot
   necessarily find out which name the server selected. Multiple names
   of the same name_type are therefore now deprecated.

(the other proposed changes looked OK to me, too)

Best regards,=20
Pasi

From stefan@aaa-sec.com  Mon May 10 05:35:47 2010
Return-Path: <stefan@aaa-sec.com>
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 3C52C3A696E for <tls@core3.amsl.com>; Mon, 10 May 2010 05:35:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.526
X-Spam-Level: 
X-Spam-Status: No, score=0.526 tagged_above=-999 required=5 tests=[AWL=1.175,  BAYES_50=0.001, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 rSBi0831mfqu for <tls@core3.amsl.com>; Mon, 10 May 2010 05:35:46 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id B2DF128C1E4 for <tls@ietf.org>; Mon, 10 May 2010 05:27:49 -0700 (PDT)
Received: from s24.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id B174929019C for <tls@ietf.org>; Mon, 10 May 2010 14:27:40 +0200 (CEST)
Received: (qmail 36979 invoked from network); 10 May 2010 12:27:36 -0000
Received: from unknown (HELO [192.168.1.3]) (stefan@fiddler.nu@[85.235.2.114]) (envelope-sender <stefan@aaa-sec.com>) by s24.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <Nicolas.Williams@oracle.com>; 10 May 2010 12:27:36 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Mon, 10 May 2010 14:27:32 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: Nicolas Williams <Nicolas.Williams@oracle.com>, "Kemp, David P." <DPKemp@missi.ncsc.mil>
Message-ID: <C80DC854.AA88%stefan@aaa-sec.com>
Thread-Topic: [TLS] FNV versus SHA-1 in cached info
Thread-Index: AcrwPCmXLBG1d4PuGEa0d9oDPsSkcw==
In-Reply-To: <20100507210600.GL9429@oracle.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] FNV versus SHA-1 in cached info
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: Mon, 10 May 2010 12:35:47 -0000

Unfortunately even informational references need to be stable documents
(AFAIK).

/Stefan


On 10-05-07 11:06 PM, "Nicolas Williams" <Nicolas.Williams@oracle.com>
wrote:

> Oh, I had no idea what FNV's origin was.  Now that I've read
> 
>     http://isthe.com/chongo/tech/comp/fnv/
> 
> I think the extra work argument is lame :)
> 
> It'd have been nice if the I-D had had an informative reference...



From Nicolas.Williams@oracle.com  Mon May 10 08:03:26 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 233C33A69F2 for <tls@core3.amsl.com>; Mon, 10 May 2010 08:03:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.478
X-Spam-Level: 
X-Spam-Status: No, score=-4.478 tagged_above=-999 required=5 tests=[AWL=2.120,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 HYU3PiUVhWjy for <tls@core3.amsl.com>; Mon, 10 May 2010 08:03:25 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id D65213A6971 for <tls@ietf.org>; Mon, 10 May 2010 08:03:24 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4AF38el027172 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 10 May 2010 15:03:09 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o49MKx5e018015; Mon, 10 May 2010 15:03:05 GMT
Received: from abhmt014.oracle.com by acsmt354.oracle.com with ESMTP id 251588371273503766; Mon, 10 May 2010 08:02:46 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 10 May 2010 08:02:44 -0700
Date: Mon, 10 May 2010 10:02:36 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Stefan Santesson <stefan@aaa-sec.com>
Message-ID: <20100510150234.GP9429@oracle.com>
References: <20100507210600.GL9429@oracle.com> <C80DC854.AA88%stefan@aaa-sec.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <C80DC854.AA88%stefan@aaa-sec.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090208.4BE8202E.000E:SCFMA922111,ss=1,fgs=0
Cc: "Kemp, David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Subject: Re: [TLS] FNV versus SHA-1 in cached info
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: Mon, 10 May 2010 15:03:26 -0000

On Mon, May 10, 2010 at 02:27:32PM +0200, Stefan Santesson wrote:
> Unfortunately even informational references need to be stable documents
> (AFAIK).

Not true.

From paul.hoffman@vpnc.org  Mon May 10 08:19:37 2010
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 80C9D3A69EE for <tls@core3.amsl.com>; Mon, 10 May 2010 08:19:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.784
X-Spam-Level: 
X-Spam-Status: No, score=-0.784 tagged_above=-999 required=5 tests=[AWL=-1.338, BAYES_50=0.001, HELO_MISMATCH_COM=0.553]
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 qBHN2ZxJqlV3 for <tls@core3.amsl.com>; Mon, 10 May 2010 08:19:36 -0700 (PDT)
Received: from hoffman.proper.com (Hoffman.Proper.COM [207.182.41.81]) by core3.amsl.com (Postfix) with ESMTP id 1D61D3A6A68 for <tls@ietf.org>; Mon, 10 May 2010 08:17:03 -0700 (PDT)
Received: from [10.20.30.158] (75-101-30-90.dsl.dynamic.sonic.net [75.101.30.90]) (authenticated bits=0) by hoffman.proper.com (8.14.4/8.14.3) with ESMTP id o4AFGkMl070264 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 10 May 2010 08:16:47 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
Mime-Version: 1.0
Message-Id: <p06240810c80dd3af4bf7@[10.20.30.158]>
In-Reply-To: <20100510150234.GP9429@oracle.com>
References: <20100507210600.GL9429@oracle.com> <C80DC854.AA88%stefan@aaa-sec.com> <20100510150234.GP9429@oracle.com>
Date: Mon, 10 May 2010 08:16:46 -0700
To: Nicolas Williams <Nicolas.Williams@oracle.com>, Stefan Santesson <stefan@aaa-sec.com>
From: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: text/plain; charset="us-ascii"
Cc: "Kemp, David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Subject: Re: [TLS] FNV versus SHA-1 in cached info
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: Mon, 10 May 2010 15:19:37 -0000

At 10:02 AM -0500 5/10/10, Nicolas Williams wrote:
>On Mon, May 10, 2010 at 02:27:32PM +0200, Stefan Santesson wrote:
>> Unfortunately even informational references need to be stable documents
>> (AFAIK).
>
>Not true.

+1 to Nico. There are plenty (too many, IMO) informational references in RFCs that are to web sites that have already been 404'd.

--Paul Hoffman, Director
--VPN Consortium

From marsh@extendedsubset.com  Mon May 10 09:35:33 2010
Return-Path: <marsh@extendedsubset.com>
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 6E0753A691E for <tls@core3.amsl.com>; Mon, 10 May 2010 09:35:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.143
X-Spam-Level: 
X-Spam-Status: No, score=-0.143 tagged_above=-999 required=5 tests=[AWL=-0.144, BAYES_50=0.001]
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 Jkr5U7R+XfyP for <tls@core3.amsl.com>; Mon, 10 May 2010 09:35:32 -0700 (PDT)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id 47D4E3A68F5 for <tls@ietf.org>; Mon, 10 May 2010 09:35:30 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OBVws-000JAN-PZ; Mon, 10 May 2010 16:35:18 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 2EE4560B6; Mon, 10 May 2010 16:35:15 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1/RfmpI4E9cOn9FzKvpS3vUtELIh43bwVU=
Message-ID: <4BE835C3.9050105@extendedsubset.com>
Date: Mon, 10 May 2010 11:35:15 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
References: <20100509211958.19EB528C0E8@core3.amsl.com>
In-Reply-To: <20100509211958.19EB528C0E8@core3.amsl.com>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: "'ekr@rtfm.com'" <ekr@rtfm.com>, "'tls@ietf.org'" <tls@ietf.org>
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Mon, 10 May 2010 16:35:33 -0000

On 5/9/2010 4:19 PM, Blumenthal, Uri - 0668 - MITLL wrote:
> our current
> practice of using SHA-1 is dying just like the previous practice of
> using MD5 (and MD4 before it) is dead. So justifying continuous use
> of SHA-1 is improper: for security purposes it is broken, and for
> non-security purposes it's rather slow.

Well said. That is my opinion, too.

To put it another way: Any argument that could be made in favor of using
SHA-1 could be made in favor of MD5 (or even MD4). In fact, MD5 would be
superior. It's also "in everybody's stack already" right? (Ignoring
those for the moment those who will implement only TLS 1.2 and forward.)
Plus, MD5 is more efficient. So anybody insisting on SHA-1 should
justify the extra CPU usage over MD5, no?

Let's not forget where this started:

Additional protocol elements for dynamically negotiating among a
extensible set of cryptographic hash functions for use where a
cryptographic hash function was not needed anyway. Vendors would be
expected to support some perpetual subset of them or risk
interoperability problems (probably everyone would just end up using
that one everywhere anyway). Servers might have to track multiple hash
values for the same resource. Another set of parameters for attackers to
manipulate imperfect implementations with. Additional explanation when a
security review legitimately questions the use of deprecated crypto
algorithms.

After:

"Use this 5 line multiply-add loop: [sample code]"

- Marsh

From ekr@rtfm.com  Mon May 10 09:41:40 2010
Return-Path: <ekr@rtfm.com>
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 972EA3A6818 for <tls@core3.amsl.com>; Mon, 10 May 2010 09:41:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.198
X-Spam-Level: 
X-Spam-Status: No, score=0.198 tagged_above=-999 required=5 tests=[AWL=-0.425,  BAYES_50=0.001, FM_FORGED_GMAIL=0.622]
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 Wk7dLrq2Ghg1 for <tls@core3.amsl.com>; Mon, 10 May 2010 09:41:39 -0700 (PDT)
Received: from mail-gy0-f172.google.com (mail-gy0-f172.google.com [209.85.160.172]) by core3.amsl.com (Postfix) with ESMTP id A72903A69C6 for <tls@ietf.org>; Mon, 10 May 2010 09:41:39 -0700 (PDT)
Received: by gyh4 with SMTP id 4so2124736gyh.31 for <tls@ietf.org>; Mon, 10 May 2010 09:41:26 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.91.95.15 with SMTP id x15mr2143395agl.104.1273509685970; Mon,  10 May 2010 09:41:25 -0700 (PDT)
Received: by 10.90.25.1 with HTTP; Mon, 10 May 2010 09:41:25 -0700 (PDT)
In-Reply-To: <4BE835C3.9050105@extendedsubset.com>
References: <20100509211958.19EB528C0E8@core3.amsl.com> <4BE835C3.9050105@extendedsubset.com>
Date: Mon, 10 May 2010 09:41:25 -0700
Message-ID: <AANLkTiltmKBHmmRUVdWrghD9DlSk4htVW6QX7P_cDo9C@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
To: Marsh Ray <marsh@extendedsubset.com>
Content-Type: text/plain; charset=ISO-8859-1
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Mon, 10 May 2010 16:41:40 -0000

On Mon, May 10, 2010 at 9:35 AM, Marsh Ray <marsh@extendedsubset.com> wrote:
> On 5/9/2010 4:19 PM, Blumenthal, Uri - 0668 - MITLL wrote:
>> our current
>> practice of using SHA-1 is dying just like the previous practice of
>> using MD5 (and MD4 before it) is dead. So justifying continuous use
>> of SHA-1 is improper: for security purposes it is broken, and for
>> non-security purposes it's rather slow.
>
> Well said. That is my opinion, too.
>
> To put it another way: Any argument that could be made in favor of using
> SHA-1 could be made in favor of MD5 (or even MD4). In fact, MD5 would be
> superior. It's also "in everybody's stack already" right? (Ignoring
> those for the moment those who will implement only TLS 1.2 and forward.)
> Plus, MD5 is more efficient. So anybody insisting on SHA-1 should
> justify the extra CPU usage over MD5, no?

No, that's not true. Again, SHA-1 is simply the default hash algorithm people
use at this point. Other than that, MD5 would be fine, yes.


As for "insisting", I really don't know what you mean. I'm not "insisting"
on SHA-1 any more than Stefan is "insisting" on FNV-1. This is an undecided
question in the WG and I'm stating my opinion.


> Let's not forget where this started:
>
> Additional protocol elements for dynamically negotiating among a
> extensible set of cryptographic hash functions for use where a
> cryptographic hash function was not needed anyway. Vendors would be
> expected to support some perpetual subset of them or risk
> interoperability problems (probably everyone would just end up using
> that one everywhere anyway). Servers might have to track multiple hash
> values for the same resource. Another set of parameters for attackers to
> manipulate imperfect implementations with.

I have no brief for those elements. I'm happy to simply mandate SHA-1.

> Additional explanation when a
> security review legitimately questions the use of deprecated crypto
> algorithms.

As I noted previously, that exact explanation will need to be present
to justify the use of a non-cryptographic hash.

-Ekr

From prvs=274601dc97=uri@ll.mit.edu  Mon May 10 09:56:10 2010
Return-Path: <prvs=274601dc97=uri@ll.mit.edu>
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 616B73A69A4 for <tls@core3.amsl.com>; Mon, 10 May 2010 09:56:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.684
X-Spam-Level: 
X-Spam-Status: No, score=-5.684 tagged_above=-999 required=5 tests=[AWL=0.914,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 lOCz2d1Ai95Z for <tls@core3.amsl.com>; Mon, 10 May 2010 09:56:09 -0700 (PDT)
Received: from mx1.ll.mit.edu (MX1.LL.MIT.EDU [129.55.12.45]) by core3.amsl.com (Postfix) with ESMTP id 4A6183A6888 for <tls@ietf.org>; Mon, 10 May 2010 09:56:03 -0700 (PDT)
Received: from LLE2K7-HUB01.mitll.ad.local (LLE2K7-HUB01.mitll.ad.local) by mx1.ll.mit.edu (unknown) with ESMTP id o4AGtoOi026909; Mon, 10 May 2010 12:55:50 -0400
From: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
To: Eric Rescorla <ekr@rtfm.com>, Marsh Ray <marsh@extendedsubset.com>
Date: Mon, 10 May 2010 12:55:47 -0400
Thread-Topic: [TLS] SHA-1 vs. FNV-1
Thread-Index: AcrwX6KV22i48j9USDCNvc+MeUm7ogAAgBh1
Message-ID: <C80DB2D3.A54B%uri@ll.mit.edu>
In-Reply-To: <AANLkTiltmKBHmmRUVdWrghD9DlSk4htVW6QX7P_cDo9C@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-Entourage/13.4.0.100208
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-05-10_07:2010-02-06, 2010-05-10, 2010-05-10 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1005100123
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Mon, 10 May 2010 16:56:10 -0000

On 5/10/10  12:41 , "Eric Rescorla" <ekr@rtfm.com> wrote:
>> Additional explanation when a
>> security review legitimately questions the use of deprecated crypto
>> algorithms.
>=20
> As I noted previously, that exact explanation will need to be present
> to justify the use of a non-cryptographic hash.

I see absolutely no need to justify use of non-crypto algorithms for
non-crypto purposes. "It's faster" would be all I'd care to say on the
subject.

In fact it's the other way around: those who prefer to use crypto-strength
algorithms for non-crypto purposes - should justify the extra burden it
would cause for applications. This is complicated by another simple fact -
SHA-1 is not an algorithm of "crypto-strength" any more anyway.

P.S. Why would anyone want to keep SHA-1 at this time is beyond me.
--=20
Regards,
Uri


From simon@josefsson.org  Mon May 10 09:58:00 2010
Return-Path: <simon@josefsson.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 134BE3A6887 for <tls@core3.amsl.com>; Mon, 10 May 2010 09:58:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.395
X-Spam-Level: 
X-Spam-Status: No, score=-2.395 tagged_above=-999 required=5 tests=[AWL=0.204,  BAYES_00=-2.599]
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 uSQmqQyl4PTd for <tls@core3.amsl.com>; Mon, 10 May 2010 09:57:59 -0700 (PDT)
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39]) by core3.amsl.com (Postfix) with ESMTP id EFD373A687E for <tls@ietf.org>; Mon, 10 May 2010 09:57:58 -0700 (PDT)
Received: from mocca (c80-216-25-148.bredband.comhem.se [80.216.25.148]) (authenticated bits=0) by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o4AGvbH2007699 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 10 May 2010 18:57:39 +0200
From: Simon Josefsson <simon@josefsson.org>
To: Eric Rescorla <ekr@rtfm.com>
References: <20100509211958.19EB528C0E8@core3.amsl.com> <4BE835C3.9050105@extendedsubset.com> <AANLkTiltmKBHmmRUVdWrghD9DlSk4htVW6QX7P_cDo9C@mail.gmail.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100510:ekr@rtfm.com::eKqOq6NHhY3Vi2KG:AYlp
X-Hashcash: 1:22:100510:tls@ietf.org::OLKqGY9Pl7+jUya8:8/bx
X-Hashcash: 1:22:100510:marsh@extendedsubset.com::dQCnpzjj4OmtoHQG:5R6d
Date: Mon, 10 May 2010 18:57:37 +0200
In-Reply-To: <AANLkTiltmKBHmmRUVdWrghD9DlSk4htVW6QX7P_cDo9C@mail.gmail.com> (Eric Rescorla's message of "Mon, 10 May 2010 09:41:25 -0700")
Message-ID: <87vdav66f2.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Virus-Scanned: clamav-milter 0.96 at yxa-v
X-Virus-Status: Clean
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Mon, 10 May 2010 16:58:00 -0000

Eric Rescorla <ekr@rtfm.com> writes:

> Again, SHA-1 is simply the default hash algorithm people use at this
> point.

Define "people"?  As far as I can tell, SHA-256 is the "default hash
algorithm" many people use, and SHA-1 and MD5 is used only when
backwards compatibility is required (which, admittedly, is very often).

Not long ago, MD4 was included in the set of hash functions that had to
be supported for backwards compatibility.  Fortunately, I rarely find
myself needing a MD4 implementation today.  (Although I happened to need
one for a project last week, and couldn't assume the system crypto
libraries provided it because MD4 is often disabled...  I predict that
MD5 and SHA1 will go the same way eventually.)

/Simon

From ekr@rtfm.com  Mon May 10 09:58:33 2010
Return-Path: <ekr@rtfm.com>
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 4826C3A6A06 for <tls@core3.amsl.com>; Mon, 10 May 2010 09:58:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.168
X-Spam-Level: 
X-Spam-Status: No, score=-1.168 tagged_above=-999 required=5 tests=[AWL=0.058,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, SARE_OBFU_ALL=0.751]
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 qxaIBIpazpS1 for <tls@core3.amsl.com>; Mon, 10 May 2010 09:58:32 -0700 (PDT)
Received: from mail-gw0-f44.google.com (mail-gw0-f44.google.com [74.125.83.44]) by core3.amsl.com (Postfix) with ESMTP id 7E3443A69A4 for <tls@ietf.org>; Mon, 10 May 2010 09:58:32 -0700 (PDT)
Received: by gwaa12 with SMTP id a12so2149946gwa.31 for <tls@ietf.org>; Mon, 10 May 2010 09:58:19 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.91.109.2 with SMTP id l2mr1770800agm.53.1273510698857; Mon, 10  May 2010 09:58:18 -0700 (PDT)
Received: by 10.90.25.1 with HTTP; Mon, 10 May 2010 09:58:18 -0700 (PDT)
In-Reply-To: <C80DB2D3.A54B%uri@ll.mit.edu>
References: <AANLkTiltmKBHmmRUVdWrghD9DlSk4htVW6QX7P_cDo9C@mail.gmail.com> <C80DB2D3.A54B%uri@ll.mit.edu>
Date: Mon, 10 May 2010 09:58:18 -0700
Message-ID: <AANLkTilIrrrmoq9Ji0ZA0SVfStSuUBIxPqtTmBYNTiQT@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
To: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Mon, 10 May 2010 16:58:33 -0000

I fear I'm repeating myself, but...

On Mon, May 10, 2010 at 9:55 AM, Blumenthal, Uri - 0668 - MITLL
<uri@ll.mit.edu> wrote:
> On 5/10/10 =A012:41 , "Eric Rescorla" <ekr@rtfm.com> wrote:
>>> Additional explanation when a
>>> security review legitimately questions the use of deprecated crypto
>>> algorithms.
>>
>> As I noted previously, that exact explanation will need to be present
>> to justify the use of a non-cryptographic hash.
>
> I see absolutely no need to justify use of non-crypto algorithms for
> non-crypto purposes. "It's faster" would be all I'd care to say on the
> subject.

The requirement is to explain why this is a non-crypto purpose. That's
where the analysis comes in.

-Ekr

From ekr@rtfm.com  Mon May 10 10:00:33 2010
Return-Path: <ekr@rtfm.com>
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 5F03A3A6887 for <tls@core3.amsl.com>; Mon, 10 May 2010 10:00:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.07
X-Spam-Level: 
X-Spam-Status: No, score=-1.07 tagged_above=-999 required=5 tests=[AWL=0.907,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
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 2rSrMZNjzoGn for <tls@core3.amsl.com>; Mon, 10 May 2010 10:00:32 -0700 (PDT)
Received: from mail-gy0-f172.google.com (mail-gy0-f172.google.com [209.85.160.172]) by core3.amsl.com (Postfix) with ESMTP id 803D03A6857 for <tls@ietf.org>; Mon, 10 May 2010 10:00:32 -0700 (PDT)
Received: by gyh4 with SMTP id 4so2141160gyh.31 for <tls@ietf.org>; Mon, 10 May 2010 10:00:19 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.91.161.22 with SMTP id n22mr2272371ago.91.1273510814720; Mon,  10 May 2010 10:00:14 -0700 (PDT)
Received: by 10.90.25.1 with HTTP; Mon, 10 May 2010 10:00:14 -0700 (PDT)
In-Reply-To: <87vdav66f2.fsf@mocca.josefsson.org>
References: <20100509211958.19EB528C0E8@core3.amsl.com> <4BE835C3.9050105@extendedsubset.com> <AANLkTiltmKBHmmRUVdWrghD9DlSk4htVW6QX7P_cDo9C@mail.gmail.com> <87vdav66f2.fsf@mocca.josefsson.org>
Date: Mon, 10 May 2010 10:00:14 -0700
Message-ID: <AANLkTilFDKOzbxZF-h0N0gHBLNW3BIS_Nf7e99VfdjkC@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
To: Simon Josefsson <simon@josefsson.org>
Content-Type: text/plain; charset=ISO-8859-1
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Mon, 10 May 2010 17:00:33 -0000

On Mon, May 10, 2010 at 9:57 AM, Simon Josefsson <simon@josefsson.org> wrote:
> Eric Rescorla <ekr@rtfm.com> writes:
>
>> Again, SHA-1 is simply the default hash algorithm people use at this
>> point.
>
> Define "people"?

Uh, the hash algorithm that's by far in the widest use? Seriously, is
there some question about this in a world where we only added support
for SHA-256 to TLS 1.2 about a  year ago?

-Ekr

From stefan@aaa-sec.com  Mon May 10 10:02:40 2010
Return-Path: <stefan@aaa-sec.com>
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 057003A6857 for <tls@core3.amsl.com>; Mon, 10 May 2010 10:02:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.009
X-Spam-Level: 
X-Spam-Status: No, score=-1.009 tagged_above=-999 required=5 tests=[AWL=2.240,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 nOSVGQrAHC+I for <tls@core3.amsl.com>; Mon, 10 May 2010 10:02:39 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id DF0E23A6887 for <tls@ietf.org>; Mon, 10 May 2010 10:02:38 -0700 (PDT)
Received: from s19.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 059E6379DBC for <tls@ietf.org>; Mon, 10 May 2010 19:02:25 +0200 (CEST)
Received: (qmail 67324 invoked from network); 10 May 2010 17:02:18 -0000
Received: from unknown (HELO [192.168.1.3]) (stefan@fiddler.nu@[85.235.2.114]) (envelope-sender <stefan@aaa-sec.com>) by s19.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <ekr@rtfm.com>; 10 May 2010 17:02:18 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Mon, 10 May 2010 19:02:17 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: Eric Rescorla <ekr@rtfm.com>, "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
Message-ID: <C80E08B9.AAC8%stefan@aaa-sec.com>
Thread-Topic: [TLS] SHA-1 vs. FNV-1
Thread-Index: AcrwYotrKAk27bANt0+RS+oBWvRJ5A==
In-Reply-To: <AANLkTilIrrrmoq9Ji0ZA0SVfStSuUBIxPqtTmBYNTiQT@mail.gmail.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Mon, 10 May 2010 17:02:40 -0000

On 10-05-10 6:58 PM, "Eric Rescorla" <ekr@rtfm.com> wrote:

> The requirement is to explain why this is a non-crypto purpose. That's
> where the analysis comes in.

This is in the security considerations section.
Do we need more?

/Stefan



From ekr@rtfm.com  Mon May 10 10:04:07 2010
Return-Path: <ekr@rtfm.com>
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 13F0E3A6A11 for <tls@core3.amsl.com>; Mon, 10 May 2010 10:04:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.558
X-Spam-Level: 
X-Spam-Status: No, score=-1.558 tagged_above=-999 required=5 tests=[AWL=0.419,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
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 oSExjj9lXgtr for <tls@core3.amsl.com>; Mon, 10 May 2010 10:04:06 -0700 (PDT)
Received: from mail-gw0-f44.google.com (mail-gw0-f44.google.com [74.125.83.44]) by core3.amsl.com (Postfix) with ESMTP id 49EAB3A6A0F for <tls@ietf.org>; Mon, 10 May 2010 10:04:06 -0700 (PDT)
Received: by gwaa12 with SMTP id a12so2154785gwa.31 for <tls@ietf.org>; Mon, 10 May 2010 10:03:50 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.91.109.2 with SMTP id l2mr1772736agm.53.1273511030413; Mon, 10  May 2010 10:03:50 -0700 (PDT)
Received: by 10.90.25.1 with HTTP; Mon, 10 May 2010 10:03:50 -0700 (PDT)
In-Reply-To: <C80E08B9.AAC8%stefan@aaa-sec.com>
References: <AANLkTilIrrrmoq9Ji0ZA0SVfStSuUBIxPqtTmBYNTiQT@mail.gmail.com> <C80E08B9.AAC8%stefan@aaa-sec.com>
Date: Mon, 10 May 2010 10:03:50 -0700
Message-ID: <AANLkTilUXE54ZhTo6FoOacxukVIDeNHuqsnW8J-HEv0i@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
To: Stefan Santesson <stefan@aaa-sec.com>
Content-Type: text/plain; charset=ISO-8859-1
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Mon, 10 May 2010 17:04:07 -0000

On Mon, May 10, 2010 at 10:02 AM, Stefan Santesson <stefan@aaa-sec.com> wrote:
> On 10-05-10 6:58 PM, "Eric Rescorla" <ekr@rtfm.com> wrote:
>
>> The requirement is to explain why this is a non-crypto purpose. That's
>> where the analysis comes in.
>
> This is in the security considerations section.
> Do we need more?

In that case, I fail to see how the argument that SHA-1 requires some whole
other layer of explanation has any force at all.

-ekr

From prvs=274601dc97=uri@ll.mit.edu  Mon May 10 10:09:15 2010
Return-Path: <prvs=274601dc97=uri@ll.mit.edu>
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 DB7843A69B3 for <tls@core3.amsl.com>; Mon, 10 May 2010 10:09:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.439
X-Spam-Level: 
X-Spam-Status: No, score=-5.439 tagged_above=-999 required=5 tests=[AWL=0.408,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, SARE_OBFU_ALL=0.751, UNPARSEABLE_RELAY=0.001]
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 H86RcOOZc-uG for <tls@core3.amsl.com>; Mon, 10 May 2010 10:09:15 -0700 (PDT)
Received: from mx1.ll.mit.edu (MX1.LL.MIT.EDU [129.55.12.45]) by core3.amsl.com (Postfix) with ESMTP id D287D3A69C6 for <tls@ietf.org>; Mon, 10 May 2010 10:09:14 -0700 (PDT)
Received: from LLE2K7-HUB02.mitll.ad.local (LLE2K7-HUB02.mitll.ad.local) by mx1.ll.mit.edu (unknown) with ESMTP id o4AH8wfB014097; Mon, 10 May 2010 13:09:02 -0400
From: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
To: Eric Rescorla <ekr@rtfm.com>
Date: Mon, 10 May 2010 13:09:00 -0400
Thread-Topic: [TLS] SHA-1 vs. FNV-1
Thread-Index: AcrwYgCPJrjT2rOOSAK5YkPdX2x9vgAAXsRv
Message-ID: <C80DB5EC.A556%uri@ll.mit.edu>
In-Reply-To: <AANLkTilIrrrmoq9Ji0ZA0SVfStSuUBIxPqtTmBYNTiQT@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-Entourage/13.4.0.100208
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-05-10_07:2010-02-06, 2010-05-10, 2010-05-10 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1005100125
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Mon, 10 May 2010 17:09:15 -0000

On 5/10/10  12:58 , "Eric Rescorla" <ekr@rtfm.com> wrote:
> On Mon, May 10, 2010 at 9:55 AM, Blumenthal, Uri - 0668 - MITLL
> <uri@ll.mit.edu> wrote:
>> I see absolutely no need to justify use of non-crypto algorithms for
>> non-crypto purposes. "It's faster" would be all I'd care to say on the
>> subject.
>=20
> The requirement is to explain why this is a non-crypto purpose. That's
> where the analysis comes in.

If there's even a hint that the usage could relate to security mechanisms -
doesn't it mean that SHA-1 MUST be forbidden, and at least SHA256 should be
mandated instead?

We seem to be juggling with this back and forth:

- either this is security-related - then SHA-1 is not suitable and MUST be
replaced with a currently-approved SECURE hash algorithm such as SHA256, or

- it is not security-related - then SHA-1 is too slow and SHOULD be replace=
d
with a faster algorithm.

Make up your mind - and mark SHA-1 dead in either case.
--=20
Regards,
Uri


From ekr@rtfm.com  Mon May 10 10:16:37 2010
Return-Path: <ekr@rtfm.com>
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 B14CF3A6A2D for <tls@core3.amsl.com>; Mon, 10 May 2010 10:16:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.759
X-Spam-Level: 
X-Spam-Status: No, score=-0.759 tagged_above=-999 required=5 tests=[AWL=0.467,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, SARE_OBFU_ALL=0.751]
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 UUFPGO9Oi381 for <tls@core3.amsl.com>; Mon, 10 May 2010 10:16:36 -0700 (PDT)
Received: from mail-yw0-f173.google.com (mail-yw0-f173.google.com [209.85.211.173]) by core3.amsl.com (Postfix) with ESMTP id 40E253A6A11 for <tls@ietf.org>; Mon, 10 May 2010 10:15:50 -0700 (PDT)
Received: by ywh3 with SMTP id 3so1109141ywh.31 for <tls@ietf.org>; Mon, 10 May 2010 10:15:36 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.91.161.22 with SMTP id n22mr2279893ago.91.1273511736560; Mon,  10 May 2010 10:15:36 -0700 (PDT)
Received: by 10.90.25.1 with HTTP; Mon, 10 May 2010 10:15:36 -0700 (PDT)
In-Reply-To: <C80DB5EC.A556%uri@ll.mit.edu>
References: <AANLkTilIrrrmoq9Ji0ZA0SVfStSuUBIxPqtTmBYNTiQT@mail.gmail.com> <C80DB5EC.A556%uri@ll.mit.edu>
Date: Mon, 10 May 2010 10:15:36 -0700
Message-ID: <AANLkTilxAop3SLbt0UY1XISpGPcFjQZTlaAMs72DEEbJ@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
To: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Mon, 10 May 2010 17:16:37 -0000

On Mon, May 10, 2010 at 10:09 AM, Blumenthal, Uri - 0668 - MITLL
<uri@ll.mit.edu> wrote:
> On 5/10/10 =A012:58 , "Eric Rescorla" <ekr@rtfm.com> wrote:
>> On Mon, May 10, 2010 at 9:55 AM, Blumenthal, Uri - 0668 - MITLL
>> <uri@ll.mit.edu> wrote:
>>> I see absolutely no need to justify use of non-crypto algorithms for
>>> non-crypto purposes. "It's faster" would be all I'd care to say on the
>>> subject.
>>
>> The requirement is to explain why this is a non-crypto purpose. That's
>> where the analysis comes in.
>
> If there's even a hint that the usage could relate to security mechanisms=
 -
> doesn't it mean that SHA-1 MUST be forbidden, and at least SHA256 should =
be
> mandated instead?
>
> We seem to be juggling with this back and forth:

You misunderstand me. The argument for not using SHA-1 (apparently) is
that people feel the need to then explain why it's safe to use here. My
point is that this explanation needs to exist in any case and so we might
as well use the common hash, namely SHA-1.


> - either this is security-related - then SHA-1 is not suitable and MUST b=
e
> replaced with a currently-approved SECURE hash algorithm such as SHA256, =
or

No, this isn't the case.


> - it is not security-related - then SHA-1 is too slow and SHOULD be repla=
ced
> with a faster algorithm.

The claim that SHA-1 is too slow to hash a tiny piece of data which would n=
eed
to be hashed multiple times in the handshake computation doesn't strike
me as even remotely plausible.

-Ekr

From stefan@aaa-sec.com  Mon May 10 10:26:06 2010
Return-Path: <stefan@aaa-sec.com>
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 6AC613A6A79 for <tls@core3.amsl.com>; Mon, 10 May 2010 10:26:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.382
X-Spam-Level: 
X-Spam-Status: No, score=-1.382 tagged_above=-999 required=5 tests=[AWL=1.867,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 Yo5KY8xib063 for <tls@core3.amsl.com>; Mon, 10 May 2010 10:26:05 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id AC1E03A6BE4 for <tls@ietf.org>; Mon, 10 May 2010 10:22:01 -0700 (PDT)
Received: from s128.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 49EEA28C43E for <tls@ietf.org>; Mon, 10 May 2010 19:21:56 +0200 (CEST)
Received: (qmail 47757 invoked from network); 10 May 2010 17:21:49 -0000
Received: from unknown (HELO [192.168.1.3]) (stefan@fiddler.nu@[85.235.2.114]) (envelope-sender <stefan@aaa-sec.com>) by s128.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <ekr@rtfm.com>; 10 May 2010 17:21:49 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Mon, 10 May 2010 19:21:45 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: Eric Rescorla <ekr@rtfm.com>
Message-ID: <C80E0D49.AAD2%stefan@aaa-sec.com>
Thread-Topic: [TLS] SHA-1 vs. FNV-1
Thread-Index: AcrwZUOZ+cUSfQnhR0G7TNn/WUnhhA==
In-Reply-To: <AANLkTilUXE54ZhTo6FoOacxukVIDeNHuqsnW8J-HEv0i@mail.gmail.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Mon, 10 May 2010 17:26:06 -0000

On 10-05-10 7:03 PM, "Eric Rescorla" <ekr@rtfm.com> wrote:

> On Mon, May 10, 2010 at 10:02 AM, Stefan Santesson <stefan@aaa-sec.com> wrote:
>> On 10-05-10 6:58 PM, "Eric Rescorla" <ekr@rtfm.com> wrote:
>> 
>>> The requirement is to explain why this is a non-crypto purpose. That's
>>> where the analysis comes in.
>> 
>> This is in the security considerations section.
>> Do we need more?
> 
> In that case, I fail to see how the argument that SHA-1 requires some whole
> other layer of explanation has any force at all.
> 

It has for a fact been hard to get an agreement on this list to use SHA-1
for several reasons already mentioned.
Using FNV was an attempt to find a working solution that would be acceptable
to everyone.

I'm prepared to go with the choice the list can agree on, I still personally
prefer FNV.

/Stefan



From marsh@extendedsubset.com  Mon May 10 10:34:41 2010
Return-Path: <marsh@extendedsubset.com>
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 A72BF28C20F for <tls@core3.amsl.com>; Mon, 10 May 2010 10:34:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.129
X-Spam-Level: 
X-Spam-Status: No, score=-0.129 tagged_above=-999 required=5 tests=[AWL=-0.130, BAYES_50=0.001]
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 54egShpfrWSm for <tls@core3.amsl.com>; Mon, 10 May 2010 10:34:40 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id 19FFE28C213 for <tls@ietf.org>; Mon, 10 May 2010 10:30:03 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OBWnf-000COL-J5; Mon, 10 May 2010 17:29:51 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id AC76E60B6; Mon, 10 May 2010 17:29:49 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX18JX8ifR1cbbiB+datzHxPmL7a1LG4Brds=
Message-ID: <4BE8428E.9060509@extendedsubset.com>
Date: Mon, 10 May 2010 12:29:50 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: Eric Rescorla <ekr@rtfm.com>
References: <20100509211958.19EB528C0E8@core3.amsl.com>	 <4BE835C3.9050105@extendedsubset.com> <AANLkTiltmKBHmmRUVdWrghD9DlSk4htVW6QX7P_cDo9C@mail.gmail.com>
In-Reply-To: <AANLkTiltmKBHmmRUVdWrghD9DlSk4htVW6QX7P_cDo9C@mail.gmail.com>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Mon, 10 May 2010 17:34:41 -0000

On 5/10/2010 11:41 AM, Eric Rescorla wrote:
> On Mon, May 10, 2010 at 9:35 AM, Marsh Ray <marsh@extendedsubset.com> wrote:
>>
>> So anybody insisting on SHA-1 should
>> justify the extra CPU usage over MD5, no?
> 
> No, that's not true. Again, SHA-1 is simply the default hash algorithm people
> use at this point. Other than that, MD5 would be fine, yes.

I don't agree that there is an obvious choice of hash algorithm right now:

http://csrc.nist.gov/groups/ST/hash/policy.html
"After 2010, Federal agencies may use SHA-1 only for the following
applications: hash-based message authentication codes (HMACs); key
derivation functions (KDFs); and random number generators (RNGs)."

> As for "insisting", I really don't know what you mean. I'm not "insisting"
> on SHA-1 any more than Stefan is "insisting" on FNV-1. This is an undecided
> question in the WG and I'm stating my opinion.

I didn't mean to imply anyone was insisting, just a rhetorical point.

> As I noted previously, that exact explanation will need to be present
> to justify the use of a non-cryptographic hash.

Perhaps, but neither does that support SHA-1.

More NIST policy says:
"Federal agencies should stop using SHA-1 for digital signatures,
digital time stamping and other applications that require collision
resistance as soon as practical, and must use the SHA-2 family of hash
functions for these applications after 2010."

I'm just imagining a situation where a seasoned software
developer/manager is having to explain to to some external auditor
lacking a CS degree that "the hash table bucket collisions which could
occur in this part of the code are not the same kind of thing as the
collisions being talked about in this protocol, really".

- Marsh

From DPKemp@missi.ncsc.mil  Mon May 10 10:36:02 2010
Return-Path: <DPKemp@missi.ncsc.mil>
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 F3F1B3A6A75 for <tls@core3.amsl.com>; Mon, 10 May 2010 10:36:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.078
X-Spam-Level: 
X-Spam-Status: No, score=-4.078 tagged_above=-999 required=5 tests=[AWL=-0.079, BAYES_50=0.001, 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 WV0+4EdZ1fMK for <tls@core3.amsl.com>; Mon, 10 May 2010 10:36:01 -0700 (PDT)
Received: from stingray.missi.ncsc.mil (stingray.missi.ncsc.mil [144.51.50.20]) by core3.amsl.com (Postfix) with ESMTP id 0ABDE3A6A79 for <tls@ietf.org>; Mon, 10 May 2010 10:32:39 -0700 (PDT)
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-MimeOLE: Produced By Microsoft Exchange V6.5
Date: Mon, 10 May 2010 13:32:21 -0400
Message-ID: <201005101732.o4AHWOVL013270@stingray.missi.ncsc.mil>
In-Reply-To: <AANLkTilxAop3SLbt0UY1XISpGPcFjQZTlaAMs72DEEbJ@mail.gmail.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] SHA-1 vs. FNV-1
Thread-Index: AcrwZGugSX69OS7lTruq5Ut5xqU7uQAAIryQ
References: <AANLkTilIrrrmoq9Ji0ZA0SVfStSuUBIxPqtTmBYNTiQT@mail.gmail.com><C80DB5EC.A556%uri@ll.mit.edu> <AANLkTilxAop3SLbt0UY1XISpGPcFjQZTlaAMs72DEEbJ@mail.gmail.com>
From: "Kemp, David P." <DPKemp@missi.ncsc.mil>
To: <tls@ietf.org>
X-OriginalArrivalTime: 10 May 2010 17:33:36.0562 (UTC) FILETIME=[EBB99920:01CAF066]
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Mon, 10 May 2010 17:36:02 -0000

-----Original Message-----
From: Eric Rescorla

> The claim that SHA-1 is too slow to hash a tiny piece of data
> which would need to be hashed multiple times in the handshake
> computation doesn't strike me as even remotely plausible.

Truly implausible: the notion that 5 lines of code is considered
"cruft", while 10 years from now a big algorithm that long ago went the
way of MD4 will not be so considered.

I know you know elegance when you see it, so just give up and admit it.

Dave

From simon@josefsson.org  Mon May 10 10:36:25 2010
Return-Path: <simon@josefsson.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 5B75328C1F3 for <tls@core3.amsl.com>; Mon, 10 May 2010 10:36:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.402
X-Spam-Level: 
X-Spam-Status: No, score=-2.402 tagged_above=-999 required=5 tests=[AWL=0.197,  BAYES_00=-2.599]
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 IxTawJWM8OJa for <tls@core3.amsl.com>; Mon, 10 May 2010 10:36:24 -0700 (PDT)
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39]) by core3.amsl.com (Postfix) with ESMTP id 253CB3A6BE7 for <tls@ietf.org>; Mon, 10 May 2010 10:32:54 -0700 (PDT)
Received: from mocca (c80-216-25-148.bredband.comhem.se [80.216.25.148]) (authenticated bits=0) by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o4AHWZR8008644 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 10 May 2010 19:32:37 +0200
From: Simon Josefsson <simon@josefsson.org>
To: Eric Rescorla <ekr@rtfm.com>
References: <20100509211958.19EB528C0E8@core3.amsl.com> <4BE835C3.9050105@extendedsubset.com> <AANLkTiltmKBHmmRUVdWrghD9DlSk4htVW6QX7P_cDo9C@mail.gmail.com> <87vdav66f2.fsf@mocca.josefsson.org> <AANLkTilFDKOzbxZF-h0N0gHBLNW3BIS_Nf7e99VfdjkC@mail.gmail.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100510:tls@ietf.org::dJQOtkxUnuao+0AT:1Zfp
X-Hashcash: 1:22:100510:ekr@rtfm.com::iLbkOwYUOSQtR3mc:NCQw
Date: Mon, 10 May 2010 19:32:35 +0200
In-Reply-To: <AANLkTilFDKOzbxZF-h0N0gHBLNW3BIS_Nf7e99VfdjkC@mail.gmail.com> (Eric Rescorla's message of "Mon, 10 May 2010 10:00:14 -0700")
Message-ID: <87ljbr64ss.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Virus-Scanned: clamav-milter 0.96 at yxa-v
X-Virus-Status: Clean
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Mon, 10 May 2010 17:36:25 -0000

Eric Rescorla <ekr@rtfm.com> writes:

> On Mon, May 10, 2010 at 9:57 AM, Simon Josefsson <simon@josefsson.org> wrote:
>> Eric Rescorla <ekr@rtfm.com> writes:
>>
>>> Again, SHA-1 is simply the default hash algorithm people use at this
>>> point.
>>
>> Define "people"?
>
> Uh, the hash algorithm that's by far in the widest use? Seriously, is
> there some question about this in a world where we only added support
> for SHA-256 to TLS 1.2 about a year ago?

Yes, since I believe people are using SHA-1 in the same way they use MD4
and MD5 today: for interoperability with an deployed base.  Thus, I fail
to understand any argument why SHA-1 would be a more suitable algorithm
than MD5 if the only explanation is "wide use".

I'm not sure discussion is adding anything but subjective opinions at
this point.  I know that implementations of the extension has been
stalled because of this discussion.  Perhaps it is time for a consensus
call to resolve this aspect.

/Simon

From ekr@rtfm.com  Mon May 10 10:37:10 2010
Return-Path: <ekr@rtfm.com>
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 1589228C20F for <tls@core3.amsl.com>; Mon, 10 May 2010 10:37:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.166
X-Spam-Level: 
X-Spam-Status: No, score=-1.166 tagged_above=-999 required=5 tests=[AWL=0.811,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
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 pkE2Oes3LQ2T for <tls@core3.amsl.com>; Mon, 10 May 2010 10:37:09 -0700 (PDT)
Received: from mail-yx0-f179.google.com (mail-yx0-f179.google.com [209.85.210.179]) by core3.amsl.com (Postfix) with ESMTP id D58CA3A6A2A for <tls@ietf.org>; Mon, 10 May 2010 10:33:56 -0700 (PDT)
Received: by yxe9 with SMTP id 9so2441923yxe.29 for <tls@ietf.org>; Mon, 10 May 2010 10:33:43 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.91.20.23 with SMTP id x23mr1659631agi.83.1273512822985; Mon,  10 May 2010 10:33:42 -0700 (PDT)
Received: by 10.90.25.1 with HTTP; Mon, 10 May 2010 10:33:42 -0700 (PDT)
In-Reply-To: <87ljbr64ss.fsf@mocca.josefsson.org>
References: <20100509211958.19EB528C0E8@core3.amsl.com> <4BE835C3.9050105@extendedsubset.com> <AANLkTiltmKBHmmRUVdWrghD9DlSk4htVW6QX7P_cDo9C@mail.gmail.com> <87vdav66f2.fsf@mocca.josefsson.org> <AANLkTilFDKOzbxZF-h0N0gHBLNW3BIS_Nf7e99VfdjkC@mail.gmail.com> <87ljbr64ss.fsf@mocca.josefsson.org>
Date: Mon, 10 May 2010 10:33:42 -0700
Message-ID: <AANLkTimuybuRZeNnE9HiQxp1q6AAwsWJZNxH-iVx16sE@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
To: Simon Josefsson <simon@josefsson.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Mon, 10 May 2010 17:37:10 -0000

On Mon, May 10, 2010 at 10:32 AM, Simon Josefsson <simon@josefsson.org> wro=
te:

> I'm not sure discussion is adding anything but subjective opinions at
> this point. =A0I know that implementations of the extension has been
> stalled because of this discussion. =A0Perhaps it is time for a consensus
> call to resolve this aspect.

Now this I agree with.

-Ekr

From jsalowey@cisco.com  Mon May 10 10:42:54 2010
Return-Path: <jsalowey@cisco.com>
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 2260B3A6BEE for <tls@core3.amsl.com>; Mon, 10 May 2010 10:42:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.165
X-Spam-Level: 
X-Spam-Status: No, score=-10.165 tagged_above=-999 required=5 tests=[AWL=0.434, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
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 2VGHogr-spvb for <tls@core3.amsl.com>; Mon, 10 May 2010 10:42:53 -0700 (PDT)
Received: from sj-iport-5.cisco.com (sj-iport-5.cisco.com [171.68.10.87]) by core3.amsl.com (Postfix) with ESMTP id BF41F3A6C64 for <tls@ietf.org>; Mon, 10 May 2010 10:39:40 -0700 (PDT)
Authentication-Results: sj-iport-5.cisco.com; dkim=neutral (message not signed) header.i=none
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AhAFAFfh50urR7H+/2dsb2JhbACRXoxFcaN1mU2FFASDQQ
X-IronPort-AV: E=Sophos;i="4.52,363,1270425600"; d="scan'208";a="195260421"
Received: from sj-core-2.cisco.com ([171.71.177.254]) by sj-iport-5.cisco.com with ESMTP; 10 May 2010 17:39:29 +0000
Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by sj-core-2.cisco.com (8.13.8/8.14.3) with ESMTP id o4AHdTc8014522 for <tls@ietf.org>; Mon, 10 May 2010 17:39:29 GMT
Received: from xmb-sjc-225.amer.cisco.com ([128.107.191.38]) by xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.3959);  Mon, 10 May 2010 10:39:29 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Mon, 10 May 2010 10:39:28 -0700
Message-ID: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Consensus Call: FNV vs SHA1
Thread-Index: AcrwZ71PRYYRYux+TAK9atVr3xufHA==
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: <tls@ietf.org>
X-OriginalArrivalTime: 10 May 2010 17:39:29.0320 (UTC) FILETIME=[BDFC3280:01CAF067]
Subject: [TLS] Consensus Call: FNV vs SHA1
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: Mon, 10 May 2010 17:42:54 -0000

I don't see much new being added to this discussion at this point.  I'd
like to close on this.  If you have an opinion please indicate if:

a) You favor SHA-1
b) You favor FNV-1a

Thanks,

Joe

From prvs=274601dc97=uri@ll.mit.edu  Mon May 10 10:45:36 2010
Return-Path: <prvs=274601dc97=uri@ll.mit.edu>
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 1704A3A6A4E for <tls@core3.amsl.com>; Mon, 10 May 2010 10:45:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.49
X-Spam-Level: 
X-Spam-Status: No, score=-5.49 tagged_above=-999 required=5 tests=[AWL=0.357,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, SARE_OBFU_ALL=0.751, UNPARSEABLE_RELAY=0.001]
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 CEPbMuo8KMIJ for <tls@core3.amsl.com>; Mon, 10 May 2010 10:45:35 -0700 (PDT)
Received: from mx1.ll.mit.edu (MX1.LL.MIT.EDU [129.55.12.45]) by core3.amsl.com (Postfix) with ESMTP id 08FEA3A6A73 for <tls@ietf.org>; Mon, 10 May 2010 10:42:20 -0700 (PDT)
Received: from LLE2K7-HUB02.mitll.ad.local (LLE2K7-HUB02.mitll.ad.local) by mx1.ll.mit.edu (unknown) with ESMTP id o4AHg7Se008632; Mon, 10 May 2010 13:42:07 -0400
From: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
To: Eric Rescorla <ekr@rtfm.com>
Date: Mon, 10 May 2010 13:42:05 -0400
Thread-Topic: [TLS] SHA-1 vs. FNV-1
Thread-Index: AcrwZGkEvrAogyTzSWa300QYd88gsgAA7HCF
Message-ID: <C80DBDAD.A565%uri@ll.mit.edu>
In-Reply-To: <AANLkTilxAop3SLbt0UY1XISpGPcFjQZTlaAMs72DEEbJ@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-Entourage/13.4.0.100208
acceptlanguage: en-US
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-05-10_07:2010-02-06, 2010-05-10, 2010-05-10 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1005100129
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] SHA-1 vs. FNV-1
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: Mon, 10 May 2010 17:45:36 -0000

Eric,

My apologies - I indeed misunderstood your argument. Yes an explanation
would be required in any case - I agree.

Honestly I still think that use of SHA-1 here is not justifiable.

My vote is for FNV. I'm OK with whatever brings the consensus.

Tnx!

On 5/10/10  13:15 , "Eric Rescorla" <ekr@rtfm.com> wrote:

> On Mon, May 10, 2010 at 10:09 AM, Blumenthal, Uri - 0668 - MITLL
> <uri@ll.mit.edu> wrote:
>> On 5/10/10 =A012:58 , "Eric Rescorla" <ekr@rtfm.com> wrote:
>>> On Mon, May 10, 2010 at 9:55 AM, Blumenthal, Uri - 0668 - MITLL
>>> <uri@ll.mit.edu> wrote:
>>>> I see absolutely no need to justify use of non-crypto algorithms for
>>>> non-crypto purposes. "It's faster" would be all I'd care to say on the
>>>> subject.
>>>=20
>>> The requirement is to explain why this is a non-crypto purpose. That's
>>> where the analysis comes in.
>>=20
>> If there's even a hint that the usage could relate to security mechanism=
s -
>> doesn't it mean that SHA-1 MUST be forbidden, and at least SHA256 should=
 be
>> mandated instead?
>>=20
>> We seem to be juggling with this back and forth:
>=20
> You misunderstand me. The argument for not using SHA-1 (apparently) is
> that people feel the need to then explain why it's safe to use here. My
> point is that this explanation needs to exist in any case and so we might
> as well use the common hash, namely SHA-1.
>=20
>=20
>> - either this is security-related - then SHA-1 is not suitable and MUST =
be
>> replaced with a currently-approved SECURE hash algorithm such as SHA256,=
 or
>=20
> No, this isn't the case.
>=20
>=20
>> - it is not security-related - then SHA-1 is too slow and SHOULD be repl=
aced
>> with a faster algorithm.
>=20
> The claim that SHA-1 is too slow to hash a tiny piece of data which would=
 need
> to be hashed multiple times in the handshake computation doesn't strike
> me as even remotely plausible.
>=20
> -Ekr

--=20
Regards,
Uri


From simon@josefsson.org  Mon May 10 10:50:57 2010
Return-Path: <simon@josefsson.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 0A4933A6A5B for <tls@core3.amsl.com>; Mon, 10 May 2010 10:50:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.409
X-Spam-Level: 
X-Spam-Status: No, score=-2.409 tagged_above=-999 required=5 tests=[AWL=0.190,  BAYES_00=-2.599]
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 Y0dmbdMGfyHg for <tls@core3.amsl.com>; Mon, 10 May 2010 10:50:56 -0700 (PDT)
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39]) by core3.amsl.com (Postfix) with ESMTP id 85B033A6A4D for <tls@ietf.org>; Mon, 10 May 2010 10:48:48 -0700 (PDT)
Received: from mocca (c80-216-25-148.bredband.comhem.se [80.216.25.148]) (authenticated bits=0) by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o4AHmPxw009125 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 10 May 2010 19:48:28 +0200
From: Simon Josefsson <simon@josefsson.org>
To: "Joseph Salowey \(jsalowey\)" <jsalowey@cisco.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100510:tls@ietf.org::mgbNsEtA5oqDUz3U:3bF1
X-Hashcash: 1:22:100510:jsalowey@cisco.com::WkK6lT1bSQHy8uup:bbEY
Date: Mon, 10 May 2010 19:48:25 +0200
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com> (Joseph Salowey's message of "Mon, 10 May 2010 10:39:28 -0700")
Message-ID: <87bpcn642e.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Virus-Scanned: clamav-milter 0.96 at yxa-v
X-Virus-Status: Clean
Cc: tls@ietf.org
Subject: Re: [TLS] Consensus Call: FNV vs SHA1
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: Mon, 10 May 2010 17:50:57 -0000

"Joseph Salowey (jsalowey)" <jsalowey@cisco.com> writes:

> I don't see much new being added to this discussion at this point.  I'd
> like to close on this.  If you have an opinion please indicate if:
>
> a) You favor SHA-1
> b) You favor FNV-1a

I favor FNV-1a.

/Simon

From prvs=274601dc97=uri@ll.mit.edu  Mon May 10 10:51:39 2010
Return-Path: <prvs=274601dc97=uri@ll.mit.edu>
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 4E00C3A695A for <tls@core3.amsl.com>; Mon, 10 May 2010 10:51:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.905
X-Spam-Level: 
X-Spam-Status: No, score=-5.905 tagged_above=-999 required=5 tests=[AWL=0.693,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 KffcJgaM7RMv for <tls@core3.amsl.com>; Mon, 10 May 2010 10:51:38 -0700 (PDT)
Received: from mx1.ll.mit.edu (MX1.LL.MIT.EDU [129.55.12.45]) by core3.amsl.com (Postfix) with ESMTP id 0CBDF3A6C1F for <tls@ietf.org>; Mon, 10 May 2010 10:49:34 -0700 (PDT)
Received: from LLE2K7-HUB01.mitll.ad.local (LLE2K7-HUB01.mitll.ad.local) by mx1.ll.mit.edu (unknown) with ESMTP id o4AHn6h8020344; Mon, 10 May 2010 13:49:22 -0400
From: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
To: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>, "tls@ietf.org" <tls@ietf.org>
Date: Mon, 10 May 2010 13:49:18 -0400
Thread-Topic: [TLS] Consensus Call: FNV vs SHA1
Thread-Index: AcrwZ71PRYYRYux+TAK9atVr3xufHAAAV+ML
Message-ID: <C80DBF5E.A569%uri@ll.mit.edu>
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-Entourage/13.4.0.100208
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-05-10_07:2010-02-06, 2010-05-10, 2010-05-10 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1005100129
Subject: Re: [TLS] Consensus Call: FNV vs SHA1
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: Mon, 10 May 2010 17:51:39 -0000

1. FNV-1a


On 5/10/10  13:39 , "Joseph Salowey (jsalowey)" <jsalowey@cisco.com> wrote:

> I don't see much new being added to this discussion at this point.  I'd
> like to close on this.  If you have an opinion please indicate if:
>=20
> a) You favor SHA-1
> b) You favor FNV-1a
>=20
> Thanks,
>=20
> Joe
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls

--=20
Regards,
Uri


From agl@google.com  Mon May 10 10:59:50 2010
Return-Path: <agl@google.com>
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 641183A6A48 for <tls@core3.amsl.com>; Mon, 10 May 2010 10:59:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.977
X-Spam-Level: 
X-Spam-Status: No, score=-101.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, USER_IN_WHITELIST=-100]
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 DJx-L9CQeHK6 for <tls@core3.amsl.com>; Mon, 10 May 2010 10:59:49 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.35]) by core3.amsl.com (Postfix) with ESMTP id 71F1C3A6915 for <tls@ietf.org>; Mon, 10 May 2010 10:59:47 -0700 (PDT)
Received: from kpbe17.cbf.corp.google.com (kpbe17.cbf.corp.google.com [172.25.105.81]) by smtp-out.google.com with ESMTP id o4AHwneN014912 for <tls@ietf.org>; Mon, 10 May 2010 10:58:49 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1273514330; bh=pfqJLtb/44wptwbwAydhvhYttUU=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=uOEnrISbFu1sj6lb0Fxwj8b0heG+BaDjKOFPLlt0tantsJpZRmCiI0w8ET0J3ByTg Q7nz7ucLv82MDI6jGxz8Q==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:x-system-of-record; b=Kgl/YNk4nmyZdrezzpAFMvyBj+77v4A8LNw91K4If5ZENvH4PavaA80F85LeyChTb Ooy80feMMkw3k3A1vh0gw==
Received: from gxk24 (gxk24.prod.google.com [10.202.11.24]) by kpbe17.cbf.corp.google.com with ESMTP id o4AHwl6m009566 for <tls@ietf.org>; Mon, 10 May 2010 10:58:48 -0700
Received: by gxk24 with SMTP id 24so2249675gxk.18 for <tls@ietf.org>; Mon, 10 May 2010 10:58:47 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.127.24 with SMTP id z24mr9047995ybc.204.1273514327782;  Mon, 10 May 2010 10:58:47 -0700 (PDT)
Received: by 10.150.183.14 with HTTP; Mon, 10 May 2010 10:58:47 -0700 (PDT)
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com>
Date: Mon, 10 May 2010 13:58:47 -0400
Message-ID: <x2qa84d7bc61005101058he613b16ft9f81dbc36458e13d@mail.gmail.com>
From: Adam Langley <agl@google.com>
To: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
Content-Type: text/plain; charset=UTF-8
X-System-Of-Record: true
Cc: tls@ietf.org
Subject: Re: [TLS] Consensus Call: FNV vs SHA1
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: Mon, 10 May 2010 17:59:50 -0000

On Mon, May 10, 2010 at 1:39 PM, Joseph Salowey (jsalowey)
<jsalowey@cisco.com> wrote:
> a) You favor SHA-1
> b) You favor FNV-1a

b) - I favour FNV-1a


AGL

From marsh@extendedsubset.com  Mon May 10 11:00:40 2010
Return-Path: <marsh@extendedsubset.com>
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 169A03A6915 for <tls@core3.amsl.com>; Mon, 10 May 2010 11:00:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.417
X-Spam-Level: 
X-Spam-Status: No, score=-1.417 tagged_above=-999 required=5 tests=[AWL=1.182,  BAYES_00=-2.599]
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 GKCQrJkoAPhi for <tls@core3.amsl.com>; Mon, 10 May 2010 11:00:39 -0700 (PDT)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id B7F963A6A2D for <tls@ietf.org>; Mon, 10 May 2010 11:00:30 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OBXH9-0007P4-9D; Mon, 10 May 2010 18:00:19 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id C452760B6; Mon, 10 May 2010 18:00:14 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX19sJErN8MBuowVWVK192+KE4vVSJsADZc4=
Message-ID: <4BE849AF.4030307@extendedsubset.com>
Date: Mon, 10 May 2010 13:00:15 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Consensus Call: FNV vs SHA1
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: Mon, 10 May 2010 18:00:40 -0000

b) I favor FNV-1a

- Marsh

From rdugal@certicom.com  Mon May 10 11:09:31 2010
Return-Path: <rdugal@certicom.com>
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 07A313A67B5 for <tls@core3.amsl.com>; Mon, 10 May 2010 11:09:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.603
X-Spam-Level: 
X-Spam-Status: No, score=-2.603 tagged_above=-999 required=5 tests=[BAYES_50=0.001, MIME_QP_LONG_LINE=1.396, 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 meaPz6z0G4Gj for <tls@core3.amsl.com>; Mon, 10 May 2010 11:09:29 -0700 (PDT)
Received: from mhs04ykf.rim.net (mhs04ykf.rim.net [216.9.243.82]) by core3.amsl.com (Postfix) with ESMTP id 829613A6C04 for <tls@ietf.org>; Mon, 10 May 2010 11:08:45 -0700 (PDT)
X-AuditID: 0a666446-b7bb9ae0000009f0-61-4be84ba14f8d
Received: from xch80ykf.rim.net ( [10.102.100.35]) by mhs04ykf.rim.net (RIM Mail) with SMTP id 11.66.02544.1AB48EB4; Mon, 10 May 2010 14:08:33 -0400 (EDT)
Received: from XCH57YKF.rim.net ([10.64.31.54]) by xch80ykf.rim.net with Microsoft SMTPSVC(6.0.3790.3959); Mon, 10 May 2010 14:08:33 -0400
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
content-transfer-encoding: quoted-printable
Date: Mon, 10 May 2010 14:07:47 -0400
Message-ID: <7E1DF37F1F42AB4E877E492C308E6AC405942B93@XCH57YKF.rim.net>
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] Consensus Call: FNV vs SHA1
Thread-Index: AcrwZ71PRYYRYux+TAK9atVr3xufHAAA9coQ
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com>
From: "Robert Dugal" <rdugal@certicom.com>
To: <tls@ietf.org>
X-OriginalArrivalTime: 10 May 2010 18:08:33.0422 (UTC) FILETIME=[CD8D0AE0:01CAF06B]
X-Brightmail-Tracker: AAAAAQAAAZE=
Subject: Re: [TLS] Consensus Call: FNV vs SHA1
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: Mon, 10 May 2010 18:09:31 -0000

I favor (a) SHA-1 

-- 
Robert Dugal		Senior Software Developer
Certicom Corp.		A Subsidiary of Research In Motion 
rdugal@certicom.com
direct=A0=A0=A0=A0=A0=A0=A0=A0905.501.3848
fax=A0=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0905.507.4230
www.certicom.com


-----Original Message-----
From: tls-bounces@ietf.org [mailto:tls-bounces@ietf.org] On Behalf Of Joseph=
 Salowey (jsalowey)
Sent: Monday, May 10, 2010 1:39 PM
To: tls@ietf.org
Subject: [TLS] Consensus Call: FNV vs SHA1

I don't see much new being added to this discussion at this point.  I'd
like to close on this.  If you have an opinion please indicate if:

a) You favor SHA-1
b) You favor FNV-1a

Thanks,

Joe
_______________________________________________
TLS mailing list
TLS@ietf.org
https://www.ietf.org/mailman/listinfo/tls

---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential infor=
mation, privileged material (including material protected by the solicitor-c=
lient or other applicable privileges), or constitute non-public information.=
 Any use of this information by anyone other than the intended recipient is=
 prohibited. If you have received this transmission in error, please immedia=
tely reply to the sender and delete this information from your system. Use,=
 dissemination, distribution, or reproduction of this transmission by uninte=
nded recipients is not authorized and may be unlawful.

From stefan@aaa-sec.com  Mon May 10 11:19:05 2010
Return-Path: <stefan@aaa-sec.com>
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 4EE503A6C8F for <tls@core3.amsl.com>; Mon, 10 May 2010 11:19:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.383
X-Spam-Level: 
X-Spam-Status: No, score=-2.383 tagged_above=-999 required=5 tests=[AWL=0.866,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 Iys4K40Y6UGg for <tls@core3.amsl.com>; Mon, 10 May 2010 11:19:04 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id 9123528C1F8 for <tls@ietf.org>; Mon, 10 May 2010 11:14:44 -0700 (PDT)
Received: from s60.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id BA6B128A5CE for <tls@ietf.org>; Mon, 10 May 2010 20:14:39 +0200 (CEST)
Received: (qmail 88010 invoked from network); 10 May 2010 18:14:32 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.16]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s60.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <jsalowey@cisco.com>; 10 May 2010 18:14:32 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Mon, 10 May 2010 20:14:30 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>, <tls@ietf.org>
Message-ID: <C80E19A6.AAE9%stefan@aaa-sec.com>
Thread-Topic: [TLS] Consensus Call: FNV vs SHA1
Thread-Index: AcrwZ71PRYYRYux+TAK9atVr3xufHAABOTEt
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Subject: Re: [TLS] Consensus Call: FNV vs SHA1
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: Mon, 10 May 2010 18:19:05 -0000

a) I favor FNV-1a

/Stefan

On 10-05-10 7:39 PM, "Joseph Salowey (jsalowey)" <jsalowey@cisco.com> wrote:

> I don't see much new being added to this discussion at this point.  I'd
> like to close on this.  If you have an opinion please indicate if:
> 
> a) You favor SHA-1
> b) You favor FNV-1a
> 
> Thanks,
> 
> Joe
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls



From Nicolas.Williams@oracle.com  Mon May 10 12:25:57 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 2380C3A6C73 for <tls@core3.amsl.com>; Mon, 10 May 2010 12:25:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.341
X-Spam-Level: 
X-Spam-Status: No, score=-3.341 tagged_above=-999 required=5 tests=[AWL=0.657,  BAYES_50=0.001, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 zsp7JmbNCxiX for <tls@core3.amsl.com>; Mon, 10 May 2010 12:25:54 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 20FC428C284 for <tls@ietf.org>; Mon, 10 May 2010 12:10:19 -0700 (PDT)
Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4AJA39I011889 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 10 May 2010 19:10:06 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4AGibxj027987; Mon, 10 May 2010 19:10:01 GMT
Received: from abhmt013.oracle.com by acsmt355.oracle.com with ESMTP id 228768661273518600; Mon, 10 May 2010 12:10:00 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 10 May 2010 12:09:59 -0700
Date: Mon, 10 May 2010 14:09:55 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
Message-ID: <20100510190954.GV9429@oracle.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: rcsinet15.oracle.com [148.87.113.117]
X-CT-RefId: str=0001.0A090202.4BE85A0E.0096:SCFMA4539811,ss=1,fgs=0
Cc: tls@ietf.org
Subject: Re: [TLS] Consensus Call: FNV vs SHA1
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: Mon, 10 May 2010 19:25:59 -0000

On Mon, May 10, 2010 at 10:39:28AM -0700, Joseph Salowey (jsalowey) wrote:
> I don't see much new being added to this discussion at this point.  I'd
> like to close on this.  If you have an opinion please indicate if:
> 
> a) You favor SHA-1
> b) You favor FNV-1a

I lean towards (a) from a purely political point of view: I don't think
it's a good idea to train auditors to act reflexively.  However, from a
purely technical point of view I have no preference whatsoever at this
time, but I'd like answers to my questions below.

If the consensus is (b) then I think the following changes should be
made:

 - Add an informative reference to FNV (and expand the acronym).

 - Refer to FNV as a checksum (or even hash, or better, non-
   cryptographic hash) rather than as a digest.

   In the context of TLS )RFC5246), "digest" definitely refers to
   cryptographic hash functions.  We should not confuse the terminology.

 - Add a description of what happens if cached object checksums collide.

   No, the current security considerations section doesn't deal with
   this, and rightly so _if_ collisions are not a security problem, but
   what happens when there are collisions?  Do hanshakes fail?

   Also, could caching have been done without reference to hash
   functions?  E.g., by having servers assign IDs to objects for client
   caching?  Is it too late to consider this approach?

Cheers,

Nico
-- 

From stefan@aaa-sec.com  Mon May 10 12:36:51 2010
Return-Path: <stefan@aaa-sec.com>
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 EC75228C357 for <tls@core3.amsl.com>; Mon, 10 May 2010 12:36:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.455
X-Spam-Level: 
X-Spam-Status: No, score=-2.455 tagged_above=-999 required=5 tests=[AWL=0.794,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 640hrf5vzosD for <tls@core3.amsl.com>; Mon, 10 May 2010 12:36:47 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id BDC3628C372 for <tls@ietf.org>; Mon, 10 May 2010 12:24:17 -0700 (PDT)
Received: from s29.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 10BD929B23E for <tls@ietf.org>; Mon, 10 May 2010 21:24:13 +0200 (CEST)
Received: (qmail 70542 invoked from network); 10 May 2010 19:24:05 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.16]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s29.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <stefan@aaa-sec.com>; 10 May 2010 19:24:05 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Mon, 10 May 2010 21:24:02 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: Stefan Santesson <stefan@aaa-sec.com>, "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>, <tls@ietf.org>
Message-ID: <C80E29F2.AAF8%stefan@aaa-sec.com>
Thread-Topic: [TLS] Consensus Call: FNV vs SHA1
Thread-Index: AcrwZ71PRYYRYux+TAK9atVr3xufHAABOTEtAAJtrjk=
In-Reply-To: <C80E19A6.AAE9%stefan@aaa-sec.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Subject: Re: [TLS] Consensus Call: FNV vs SHA1
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: Mon, 10 May 2010 19:36:52 -0000

Sorry, that was meant to say:

b) I favor FNV-1a

On 10-05-10 8:14 PM, "Stefan Santesson" <stefan@aaa-sec.com> wrote:

> a) I favor FNV-1a
> 
> /Stefan
> 
> On 10-05-10 7:39 PM, "Joseph Salowey (jsalowey)" <jsalowey@cisco.com> wrote:
> 
>> I don't see much new being added to this discussion at this point.  I'd
>> like to close on this.  If you have an opinion please indicate if:
>> 
>> a) You favor SHA-1
>> b) You favor FNV-1a
>> 
>> Thanks,
>> 
>> Joe
>> _______________________________________________
>> TLS mailing list
>> TLS@ietf.org
>> https://www.ietf.org/mailman/listinfo/tls
> 
> 
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls



From mrex@sap.com  Mon May 10 13:42:23 2010
Return-Path: <mrex@sap.com>
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 54C453A6C7A for <tls@core3.amsl.com>; Mon, 10 May 2010 13:42:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.004
X-Spam-Level: 
X-Spam-Status: No, score=-9.004 tagged_above=-999 required=5 tests=[AWL=1.245,  BAYES_00=-2.599, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_HI=-8]
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 zEQbD-g8T0LS for <tls@core3.amsl.com>; Mon, 10 May 2010 13:42:21 -0700 (PDT)
Received: from smtpde03.sap-ag.de (smtpde03.sap-ag.de [155.56.68.140]) by core3.amsl.com (Postfix) with ESMTP id BC4A128C0E0 for <tls@ietf.org>; Mon, 10 May 2010 13:35:59 -0700 (PDT)
Received: from mail.sap.corp by smtpde03.sap-ag.de (26) with ESMTP id o4AKZi38014117 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 10 May 2010 22:35:44 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201005102035.o4AKZhXG013591@fs4113.wdf.sap.corp>
To: jsalowey@cisco.com (Joseph Salowey)
Date: Mon, 10 May 2010 22:35:43 +0200 (MEST)
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com> from "Joseph Salowey" at May 10, 10 10:39:28 am
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal05
X-SAP: out
Cc: tls@ietf.org
Subject: Re: [TLS] Consensus Call: FNV vs SHA1
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
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/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: Mon, 10 May 2010 20:42:23 -0000

Joseph Salowey wrote:
> 
> I don't see much new being added to this discussion at this point.  I'd
> like to close on this.  If you have an opinion please indicate if:
> 
> a) You favor SHA-1
> b) You favor FNV-1a


b) I favour FNV-1a


I think that (a) is underexplained, whereas (b) is pretty clear to me.

-Martin

From jwkckid1@ix.netcom.com  Mon May 10 14:08:48 2010
Return-Path: <jwkckid1@ix.netcom.com>
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 435D43A6821 for <tls@core3.amsl.com>; Mon, 10 May 2010 14:08:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.399
X-Spam-Level: 
X-Spam-Status: No, score=-0.399 tagged_above=-999 required=5 tests=[AWL=-0.400, BAYES_50=0.001]
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 0fj4KZODPzmP for <tls@core3.amsl.com>; Mon, 10 May 2010 14:08:47 -0700 (PDT)
Received: from elasmtp-galgo.atl.sa.earthlink.net (elasmtp-galgo.atl.sa.earthlink.net [209.86.89.61]) by core3.amsl.com (Postfix) with ESMTP id D7C7F3A68B5 for <tls@ietf.org>; Mon, 10 May 2010 14:08:39 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=ix.netcom.com; b=O7eK9rEdJzYHlMY4bnAHKtID7qbMlS4/01odGNnVnxnz5aFW4uEIfM7WI2r1ZcTj; h=Message-ID:Date:From:Reply-To:To:Subject:Cc:Mime-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:X-ELNK-Trace:X-Originating-IP;
Received: from [209.86.224.25] (helo=mswamui-backed.atl.sa.earthlink.net) by elasmtp-galgo.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from <jwkckid1@ix.netcom.com>) id 1OBaDE-0003YI-EH; Mon, 10 May 2010 17:08:28 -0400
Received: from 99.93.224.206 by webmail.earthlink.net with HTTP; Mon, 10 May 2010 17:08:28 -0400
Message-ID: <3044251.1273525708331.JavaMail.root@mswamui-backed.atl.sa.earthlink.net>
Date: Mon, 10 May 2010 16:08:28 -0500 (GMT-05:00)
From: "Jeffrey A. Williams" <jwkckid1@ix.netcom.com>
To: mrex@sap.com, Joseph Salowey <jsalowey@cisco.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Mailer: EarthLink Zoo Mail 1.0
X-ELNK-Trace: c8e3929e1e9c87a874cfc7ce3b1ad11381c87f5e51960688248cb5fd4c5811bcdda13654d7f501ee350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c
X-Originating-IP: 209.86.224.25
Cc: tls@ietf.org
Subject: Re: [TLS] Consensus Call: FNV vs SHA1
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: "Jeffrey A. Williams" <jwkckid1@ix.netcom.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/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: Mon, 10 May 2010 21:08:48 -0000

All,

  Given these as the choices, I favour FNV-1a reluctantly.
Nither are adaquate to meet the current challanges...



-----Original Message-----
>From: Martin Rex <mrex@sap.com>
>Sent: May 10, 2010 3:35 PM
>To: Joseph Salowey <jsalowey@cisco.com>
>Cc: tls@ietf.org
>Subject: Re: [TLS] Consensus Call: FNV vs SHA1
>
>Joseph Salowey wrote:
>> 
>> I don't see much new being added to this discussion at this point.  I'd
>> like to close on this.  If you have an opinion please indicate if:
>> 
>> a) You favor SHA-1
>> b) You favor FNV-1a
>
>
>b) I favour FNV-1a
>
>
>I think that (a) is underexplained, whereas (b) is pretty clear to me.
>
>-Martin
>_______________________________________________
>TLS mailing list
>TLS@ietf.org
>https://www.ietf.org/mailman/listinfo/tls

Regards,

Jeffrey A. Williams
Spokesman for INEGroup LLA. - (Over 294k members/stakeholders and growing, strong!)
"Obedience of the law is the greatest freedom" -
   Abraham Lincoln

"Credit should go with the performance of duty and not with what is very
often the accident of glory" - Theodore Roosevelt

"If the probability be called P; the injury, L; and the burden, B; liability
depends upon whether B is less than L multiplied by
P: i.e., whether B is less than PL."
United States v. Carroll Towing  (159 F.2d 169 [2d Cir. 1947]
===============================================================
Updated 1/26/04
CSO/DIR. Internet Network Eng. SR. Eng. Network data security IDNS. div. of
Information Network Eng.  INEG. INC.
ABA member in good standing member ID 01257402 E-Mail jwkckid1@ix.netcom.com
Phone: 214-244-4827


From paul.hoffman@vpnc.org  Mon May 10 14:15:35 2010
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 18FDB3A6C09 for <tls@core3.amsl.com>; Mon, 10 May 2010 14:15:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.758
X-Spam-Level: 
X-Spam-Status: No, score=-0.758 tagged_above=-999 required=5 tests=[AWL=-1.312, BAYES_50=0.001, HELO_MISMATCH_COM=0.553]
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 1luxuU84fAlf for <tls@core3.amsl.com>; Mon, 10 May 2010 14:15:32 -0700 (PDT)
Received: from hoffman.proper.com (Hoffman.Proper.COM [207.182.41.81]) by core3.amsl.com (Postfix) with ESMTP id 6BABF3A6C0E for <tls@ietf.org>; Mon, 10 May 2010 14:14:08 -0700 (PDT)
Received: from [10.20.30.158] (75-101-30-90.dsl.dynamic.sonic.net [75.101.30.90]) (authenticated bits=0) by hoffman.proper.com (8.14.4/8.14.3) with ESMTP id o4ALAbHF093110 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 10 May 2010 14:10:38 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
Mime-Version: 1.0
Message-Id: <p06240816c80e266db104@[10.20.30.158]>
In-Reply-To: <20100510190954.GV9429@oracle.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com> <20100510190954.GV9429@oracle.com>
Date: Mon, 10 May 2010 14:10:35 -0700
To: Nicolas Williams <Nicolas.Williams@oracle.com>, "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
From: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: text/plain; charset="us-ascii"
Cc: tls@ietf.org
Subject: Re: [TLS] Consensus Call: FNV vs SHA1
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: Mon, 10 May 2010 21:15:35 -0000

At 2:09 PM -0500 5/10/10, Nicolas Williams wrote:
>On Mon, May 10, 2010 at 10:39:28AM -0700, Joseph Salowey (jsalowey) wrote:
>> I don't see much new being added to this discussion at this point.  I'd
>> like to close on this.  If you have an opinion please indicate if:
>>
>> a) You favor SHA-1
>> b) You favor FNV-1a
>
>I lean towards (a) from a purely political point of view: I don't think
>it's a good idea to train auditors to act reflexively.  However, from a
>purely technical point of view I have no preference whatsoever at this
>time, but I'd like answers to my questions below.
>
>If the consensus is (b) then I think the following changes should be
>made:
>
> - Add an informative reference to FNV (and expand the acronym).
>
> - Refer to FNV as a checksum (or even hash, or better, non-
>   cryptographic hash) rather than as a digest.
>
>   In the context of TLS )RFC5246), "digest" definitely refers to
>   cryptographic hash functions.  We should not confuse the terminology.
>
> - Add a description of what happens if cached object checksums collide.
>
>   No, the current security considerations section doesn't deal with
>   this, and rightly so _if_ collisions are not a security problem, but
>   what happens when there are collisions?  Do hanshakes fail?
>
>   Also, could caching have been done without reference to hash
>   functions?  E.g., by having servers assign IDs to objects for client
>   caching?  Is it too late to consider this approach?

Again, +1 to what Nico says here. If we're trying to make using FNV sensible for future use as well, let's do the work to get it right here.

--Paul Hoffman, Director
--VPN Consortium

From Nicolas.Williams@oracle.com  Mon May 10 14:32:24 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 78F293A6902 for <tls@core3.amsl.com>; Mon, 10 May 2010 14:32:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.657
X-Spam-Level: 
X-Spam-Status: No, score=-4.657 tagged_above=-999 required=5 tests=[AWL=1.941,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 mvzf02rpmVKg for <tls@core3.amsl.com>; Mon, 10 May 2010 14:32:23 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id A25093A68A9 for <tls@ietf.org>; Mon, 10 May 2010 14:32:23 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4ALW6R0002062 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 10 May 2010 21:32:08 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4AGRbjd025753; Mon, 10 May 2010 21:32:02 GMT
Received: from abhmt017.oracle.com by acsmt355.oracle.com with ESMTP id 229173931273527041; Mon, 10 May 2010 14:30:41 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 10 May 2010 14:30:40 -0700
Date: Mon, 10 May 2010 16:30:36 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Paul Hoffman <paul.hoffman@vpnc.org>
Message-ID: <20100510213035.GX9429@oracle.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com> <20100510190954.GV9429@oracle.com> <p06240816c80e266db104@[10.20.30.158]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <p06240816c80e266db104@[10.20.30.158]>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090203.4BE87B5A.0134:SCFMA922111,ss=1,fgs=0
Cc: tls@ietf.org
Subject: [TLS] Collisions (Re:  Consensus Call: FNV vs SHA1)
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: Mon, 10 May 2010 21:32:24 -0000

On Mon, May 10, 2010 at 02:10:35PM -0700, Paul Hoffman wrote:
> Again, +1 to what Nico says here. If we're trying to make using FNV
> sensible for future use as well, let's do the work to get it right
> here.

Thanks.  Note that I don't see FNV as having a bright future in our
protocols, so that I'm not concerned about making it easier to use in
the future.

I'm, however, concerned that the design of this protocol won't handle
collisions very well, whether FNV or SHA-1.  At first glance it sure
looks that way.  And ISTM that there's a better design that is or can be
impervious to hash collisions.  I could review the document thouroughly
and convince myself one way or the other, but I'm lazy -- I'd rather
hear from the authors, then evaluate their explanations.

Nico
-- 

From stefan@aaa-sec.com  Mon May 10 14:32:42 2010
Return-Path: <stefan@aaa-sec.com>
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 4FEF63A6801 for <tls@core3.amsl.com>; Mon, 10 May 2010 14:32:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.587
X-Spam-Level: 
X-Spam-Status: No, score=-1.587 tagged_above=-999 required=5 tests=[AWL=-0.197, BAYES_20=-0.74, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 j--6KnHynvmI for <tls@core3.amsl.com>; Mon, 10 May 2010 14:32:41 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id 2A4C43A68C0 for <tls@ietf.org>; Mon, 10 May 2010 14:32:39 -0700 (PDT)
Received: from s128.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 5CCFA28E7CE for <tls@ietf.org>; Mon, 10 May 2010 23:32:35 +0200 (CEST)
Received: (qmail 21440 invoked from network); 10 May 2010 21:32:26 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.16]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s128.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <paul.hoffman@vpnc.org>; 10 May 2010 21:32:26 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Mon, 10 May 2010 23:32:24 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: Paul Hoffman <paul.hoffman@vpnc.org>, Nicolas Williams <Nicolas.Williams@oracle.com>, "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
Message-ID: <C80E4808.AB1E%stefan@aaa-sec.com>
Thread-Topic: Nico's suggestions - Re: [TLS] Consensus Call: FNV vs SHA1
Thread-Index: AcrwiEeLJCtpvE8ooU2WO0hRQzipXg==
In-Reply-To: <p06240816c80e266db104@[10.20.30.158]>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: tls@ietf.org
Subject: [TLS] Nico's suggestions - Re:  Consensus Call: FNV vs SHA1
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: Mon, 10 May 2010 21:32:42 -0000

On 10-05-10 11:10 PM, "Paul Hoffman" <paul.hoffman@vpnc.org> wrote:
> At 2:09 PM -0500 5/10/10, Nicolas Williams wrote:
>> On Mon, May 10, 2010 at 10:39:28AM -0700, Joseph Salowey (jsalowey) wrote:
>>> I don't see much new being added to this discussion at this point.  I'd
>>> like to close on this.  If you have an opinion please indicate if:
>>> 
>>> a) You favor SHA-1
>>> b) You favor FNV-1a
>> 
>> I lean towards (a) from a purely political point of view: I don't think
>> it's a good idea to train auditors to act reflexively.  However, from a
>> purely technical point of view I have no preference whatsoever at this
>> time, but I'd like answers to my questions below.
>> 
>> If the consensus is (b) then I think the following changes should be
>> made:
>> 
>> - Add an informative reference to FNV (and expand the acronym).
>> 
>> - Refer to FNV as a checksum (or even hash, or better, non-
>>   cryptographic hash) rather than as a digest.
>> 
>>   In the context of TLS )RFC5246), "digest" definitely refers to
>>   cryptographic hash functions.  We should not confuse the terminology.
>> 
>> - Add a description of what happens if cached object checksums collide.
>> 
>>   No, the current security considerations section doesn't deal with
>>   this, and rightly so _if_ collisions are not a security problem, but
>>   what happens when there are collisions?  Do hanshakes fail?
>> 
>>   Also, could caching have been done without reference to hash
>>   functions?  E.g., by having servers assign IDs to objects for client
>>   caching?  Is it too late to consider this approach?
> 
> Again, +1 to what Nico says here. If we're trying to make using FNV sensible
> for future use as well, let's do the work to get it right here.
> 

I'm OK with everything Nico suggests with respect to FNV (If Joe is fine
with an informational reference to a web page)

On the last question I think the correct answer is: Yes it is possible to do
a variant of the protocol without a hash function but it does not make the
protocol any better. Rather it make it worse. Both in terms of functionality
and complexity.

/Stefan



From prvs=274601dc97=uri@ll.mit.edu  Mon May 10 14:35:35 2010
Return-Path: <prvs=274601dc97=uri@ll.mit.edu>
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 C1CBC3A6801 for <tls@core3.amsl.com>; Mon, 10 May 2010 14:35:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.975
X-Spam-Level: 
X-Spam-Status: No, score=-5.975 tagged_above=-999 required=5 tests=[AWL=0.623,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 Rb1OiveDUh55 for <tls@core3.amsl.com>; Mon, 10 May 2010 14:35:35 -0700 (PDT)
Received: from mx1.ll.mit.edu (MX1.LL.MIT.EDU [129.55.12.45]) by core3.amsl.com (Postfix) with ESMTP id C0FC33A68C0 for <tls@ietf.org>; Mon, 10 May 2010 14:35:34 -0700 (PDT)
Received: from LLE2K7-HUB01.mitll.ad.local (LLE2K7-HUB01.mitll.ad.local) by mx1.ll.mit.edu (unknown) with ESMTP id o4ALZMQc003160; Mon, 10 May 2010 17:35:22 -0400
From: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
To: Nicolas Williams <Nicolas.Williams@oracle.com>, Paul Hoffman <paul.hoffman@vpnc.org>
Date: Mon, 10 May 2010 17:35:20 -0400
Thread-Topic: [TLS] Collisions (Re:  Consensus Call: FNV vs SHA1)
Thread-Index: AcrwiEUX7rzW7AxQTriwdDNSftUILQAAGtbA
Message-ID: <C80DF458.A5A4%uri@ll.mit.edu>
In-Reply-To: <20100510213035.GX9429@oracle.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-Entourage/13.4.0.100208
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-05-10_08:2010-02-06, 2010-05-10, 2010-05-10 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1005100168
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Collisions (Re:  Consensus Call: FNV vs SHA1)
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: Mon, 10 May 2010 21:35:35 -0000

On 5/10/10  17:30 , "Nicolas Williams" <Nicolas.Williams@oracle.com> wrote:
> ...... Note that I don't see FNV as having a bright future in our
> protocols, so that I'm not concerned about making it easier to use in
> the future.

And you see a bright future for SHA-1???

> I'm, however, concerned that the design of this protocol won't handle
> collisions very well, whether FNV or SHA-1.  At first glance it sure
> looks that way.  And ISTM that there's a better design that is or can be
> impervious to hash collisions.  I could review the document thouroughly
> and convince myself one way or the other, but I'm lazy -- I'd rather
> hear from the authors, then evaluate their explanations.

+1
--=20
Regards,
Uri


From Nicolas.Williams@oracle.com  Mon May 10 14:41:26 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 0572B3A6A58 for <tls@core3.amsl.com>; Mon, 10 May 2010 14:41:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.705
X-Spam-Level: 
X-Spam-Status: No, score=-4.705 tagged_above=-999 required=5 tests=[AWL=1.893,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 GdlWMKFIlf29 for <tls@core3.amsl.com>; Mon, 10 May 2010 14:41:25 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 6DB733A69FC for <tls@ietf.org>; Mon, 10 May 2010 14:41:23 -0700 (PDT)
Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4ALf0Ok021952 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 10 May 2010 21:41:01 GMT
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4AKbQ5X009074; Mon, 10 May 2010 21:40:59 GMT
Received: from abhmt006.oracle.com by acsmt355.oracle.com with ESMTP id 252770631273527570; Mon, 10 May 2010 14:39:30 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 10 May 2010 14:39:29 -0700
Date: Mon, 10 May 2010 16:39:25 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Stefan Santesson <stefan@aaa-sec.com>
Message-ID: <20100510213924.GY9429@oracle.com>
References: <p06240816c80e266db104@[10.20.30.158]> <C80E4808.AB1E%stefan@aaa-sec.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <C80E4808.AB1E%stefan@aaa-sec.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: rcsinet13.oracle.com [148.87.113.125]
X-CT-RefId: str=0001.0A090207.4BE87D70.0056:SCFMA4539811,ss=1,fgs=0
Cc: Paul Hoffman <paul.hoffman@vpnc.org>, tls@ietf.org
Subject: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call: FNV vs SHA1)
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: Mon, 10 May 2010 21:41:26 -0000

On Mon, May 10, 2010 at 11:32:24PM +0200, Stefan Santesson wrote:
> I'm OK with everything Nico suggests with respect to FNV (If Joe is fine
> with an informational reference to a web page)

There are many examples of informational references to non-IETF,
non-standard documents.  For example, BCP0106 (remember the RNG thread?)
has an informational reference to "Turbid" in the form of a URL that is
clearly not stable in the same way that an RFC number is.  If you look
around you'll find many information references in RFC to I-Ds (usually
labeled "work in progress").

> On the last question I think the correct answer is: Yes it is possible to do
> a variant of the protocol without a hash function but it does not make the
> protocol any better. Rather it make it worse. Both in terms of functionality
> and complexity.

That's just a statement without an argument; I'm unconvinced.  Convince
us.  If you can show that collisions don't result in failure to complete
a TLS handshake successfully then all will be fine, so start there.
Else I think you should explain how a collision-free protocol would be
worse than the current proposal, then we could weigh the two approaches.

Nico
-- 

From Nicolas.Williams@oracle.com  Mon May 10 14:47:10 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 3342F3A6A58 for <tls@core3.amsl.com>; Mon, 10 May 2010 14:47:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.005
X-Spam-Level: 
X-Spam-Status: No, score=-4.005 tagged_above=-999 required=5 tests=[AWL=1.104,  BAYES_05=-1.11, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 G5COWosHAVqe for <tls@core3.amsl.com>; Mon, 10 May 2010 14:47:09 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 5AB103A69A5 for <tls@ietf.org>; Mon, 10 May 2010 14:47:09 -0700 (PDT)
Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4ALktCG032296 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 10 May 2010 21:46:57 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4AKOD96032119; Mon, 10 May 2010 21:46:54 GMT
Received: from abhmt016.oracle.com by acsmt353.oracle.com with ESMTP id 229207801273527921; Mon, 10 May 2010 14:45:21 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 10 May 2010 14:45:21 -0700
Date: Mon, 10 May 2010 16:45:16 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
Message-ID: <20100510214516.GZ9429@oracle.com>
References: <20100510213035.GX9429@oracle.com> <C80DF458.A5A4%uri@ll.mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <C80DF458.A5A4%uri@ll.mit.edu>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: rcsinet13.oracle.com [148.87.113.125]
X-CT-RefId: str=0001.0A090204.4BE87ED1.0162:SCFMA4539811,ss=1,fgs=0
Cc: Paul Hoffman <paul.hoffman@vpnc.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Collisions (Re:  Consensus Call: FNV vs SHA1)
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: Mon, 10 May 2010 21:47:10 -0000

On Mon, May 10, 2010 at 05:35:20PM -0400, Blumenthal, Uri - 0668 - MITLL wrote:
> On 5/10/10  17:30 , "Nicolas Williams" <Nicolas.Williams@oracle.com> wrote:
> > ...... Note that I don't see FNV as having a bright future in our
> > protocols, so that I'm not concerned about making it easier to use in
> > the future.
> 
> And you see a bright future for SHA-1???

No, for the same reason I don't for FNV: I think we'll generally[*] need
cryptographic hash functions in our protocols.  The fact that FNV is not
a cryptographic hash functions is actually the red flag that started me
wondering about the design of this protocol.

Aside from that, I think FNV is a great hash function.  Its place will
typically not be in Internet protocols, but in implementations.

[*] I _can_ think of non-cryptographic uses of hash functions in
    Internet protocols, starting with the use we made in GS2.  But in
    general I think we'll want to review such uses carefully.  In the
    case of GS2 it saved us the bother of creating a registry of SASL
    mechanism names for GSS-API mechanisms.  Here the hash is used to
    identify cached items, which seems fine provided that collisions are
    well-handled.  In the GS2 case we decided that collisions were not a
    problem for us (after all, we could always assign new OIDs to GSS
    mechanisms that collide).

Nico
-- 

From simon@josefsson.org  Mon May 10 14:48:26 2010
Return-Path: <simon@josefsson.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 4D5343A6AA0 for <tls@core3.amsl.com>; Mon, 10 May 2010 14:48:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.486
X-Spam-Level: 
X-Spam-Status: No, score=-1.486 tagged_above=-999 required=5 tests=[AWL=-0.746, BAYES_20=-0.74]
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 mXiJWMDkhA99 for <tls@core3.amsl.com>; Mon, 10 May 2010 14:48:25 -0700 (PDT)
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39]) by core3.amsl.com (Postfix) with ESMTP id EAF483A6A58 for <tls@ietf.org>; Mon, 10 May 2010 14:48:23 -0700 (PDT)
Received: from mocca (c80-216-25-148.bredband.comhem.se [80.216.25.148]) (authenticated bits=0) by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o4ALm9XU015429 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for <tls@ietf.org>; Mon, 10 May 2010 23:48:10 +0200
From: Simon Josefsson <simon@josefsson.org>
To: tls@ietf.org
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com> <20100510190954.GV9429@oracle.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100510:tls@ietf.org::cSnAxgY8pMB1AEmy:3oJz
X-Hashcash: 1:22:100510:jsalowey@cisco.com::yea5GLeVCjxuVdsc:7wtR
X-Hashcash: 1:22:100510:nicolas.williams@oracle.com::yNRQqzbb5bjP8mQE:HfUv
Date: Mon, 10 May 2010 23:48:09 +0200
In-Reply-To: <20100510190954.GV9429@oracle.com> (Nicolas Williams's message of "Mon, 10 May 2010 14:09:55 -0500")
Message-ID: <87r5lj4eee.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Virus-Scanned: clamav-milter 0.96 at yxa-v
X-Virus-Status: Clean
Subject: Re: [TLS] Consensus Call: FNV vs SHA1
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: Mon, 10 May 2010 21:48:26 -0000

Nicolas Williams <Nicolas.Williams@oracle.com> writes:

>  - Add a description of what happens if cached object checksums collide.
>
>    No, the current security considerations section doesn't deal with
>    this, and rightly so _if_ collisions are not a security problem, but
>    what happens when there are collisions?  Do hanshakes fail?

I agree that it is important to explain this.

If collisions happen, it appears that we do get slightly weaker
semantics of what it means for a handshake to succeed: we aren't
cryptographically certain (in the sense that there is cryptographic
reduction) that the client and server agree on the data used during the
handshake for cached items (CA cert list, server certificate) after the
handshake has concluded.

It seems a server could easily create two pairs of server certificates
that results in the same FNV-1a value but are different certificates.  A
client connecting to a server offering a cached value for the server
certificate would not know which server certificate was intended, even
after completing the handshake.  If correct, that seems surprising.

This requires a conspiring server, so maybe it is irrelevant.

This problem would be solved if the Finished message were computed over
the replaced data rather than the digest value.  Then any data
mismatches would be detected at the TLS Finished computation, and the
handshake fail.  Perhaps this is simpler than introducing a
cryptographic digest.

It is late here, so I may be totally missing some aspect.

/Simon

From Nicolas.Williams@oracle.com  Mon May 10 14:58:09 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 A2DC53A6BA3 for <tls@core3.amsl.com>; Mon, 10 May 2010 14:58:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.475
X-Spam-Level: 
X-Spam-Status: No, score=-3.475 tagged_above=-999 required=5 tests=[AWL=0.523,  BAYES_50=0.001, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 n4vsdWeqYiTP for <tls@core3.amsl.com>; Mon, 10 May 2010 14:58:08 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 131A93A6A07 for <tls@ietf.org>; Mon, 10 May 2010 14:58:08 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4ALvpgS018963 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 10 May 2010 21:57:53 GMT
Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4AGYNEB019329; Mon, 10 May 2010 21:57:49 GMT
Received: from abhmt020.oracle.com by acsmt354.oracle.com with ESMTP id 252810901273528617; Mon, 10 May 2010 14:56:57 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 10 May 2010 14:56:57 -0700
Date: Mon, 10 May 2010 16:56:52 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Simon Josefsson <simon@josefsson.org>
Message-ID: <20100510215652.GA9429@oracle.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com> <20100510190954.GV9429@oracle.com> <87r5lj4eee.fsf@mocca.josefsson.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <87r5lj4eee.fsf@mocca.josefsson.org>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090207.4BE88162.008D:SCFMA922111,ss=1,fgs=0
Cc: tls@ietf.org
Subject: [TLS] Collisions (Re:  Consensus Call: FNV vs SHA1)
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: Mon, 10 May 2010 21:58:09 -0000

On Mon, May 10, 2010 at 11:48:09PM +0200, Simon Josefsson wrote:
> Nicolas Williams <Nicolas.Williams@oracle.com> writes:
> 
> >  - Add a description of what happens if cached object checksums collide.
> >
> >    No, the current security considerations section doesn't deal with
> >    this, and rightly so _if_ collisions are not a security problem, but
> >    what happens when there are collisions?  Do hanshakes fail?
> 
> I agree that it is important to explain this.
> 
> If collisions happen, it appears that we do get slightly weaker
> semantics of what it means for a handshake to succeed: we aren't
> cryptographically certain (in the sense that there is cryptographic
> reduction) that the client and server agree on the data used during the
> handshake for cached items (CA cert list, server certificate) after the
> handshake has concluded.

In the success case I think we are certain that we don't care about
collisions, if there were any: the cryptographic properties of TLS
ensure this.

It's the failure case I'm concerned with.  If failures occur, how do you
recover?  If failures occur, will users want this?

> It seems a server could easily create two pairs of server certificates
> that results in the same FNV-1a value but are different certificates.  A
> client connecting to a server offering a cached value for the server
> certificate would not know which server certificate was intended, even
> after completing the handshake.  If correct, that seems surprising.

If the server figures it out, who cares.  If not, bad.

> This requires a conspiring server, so maybe it is irrelevant.

Or just a CA to issue colliding certs.  Think rollover.

> This problem would be solved if the Finished message were computed over
> the replaced data rather than the digest value.  Then any data
> mismatches would be detected at the TLS Finished computation, and the
> handshake fail.  Perhaps this is simpler than introducing a
> cryptographic digest.

I think modifying the way Finished msgs are computed would make this
protocol way too complicated.  I'd be happier with the server assigning
object IDs to cacheable objects.

Nico
-- 

From Nicolas.Williams@oracle.com  Mon May 10 15:04:01 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 72A103A6C13 for <tls@core3.amsl.com>; Mon, 10 May 2010 15:04:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.787
X-Spam-Level: 
X-Spam-Status: No, score=-4.787 tagged_above=-999 required=5 tests=[AWL=1.811,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 Qun4clqLtHHN for <tls@core3.amsl.com>; Mon, 10 May 2010 15:04:00 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 5622D3A6C00 for <tls@ietf.org>; Mon, 10 May 2010 15:04:00 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4AM3k3V030479 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 10 May 2010 22:03:48 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4AM3if3028342; Mon, 10 May 2010 22:03:44 GMT
Received: from abhmt005.oracle.com by acsmt354.oracle.com with ESMTP id 229271451273529014; Mon, 10 May 2010 15:03:34 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 10 May 2010 15:03:34 -0700
Date: Mon, 10 May 2010 17:03:29 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Simon Josefsson <simon@josefsson.org>
Message-ID: <20100510220329.GB9429@oracle.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com> <20100510190954.GV9429@oracle.com> <87r5lj4eee.fsf@mocca.josefsson.org> <20100510215652.GA9429@oracle.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20100510215652.GA9429@oracle.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090201.4BE882C4.0185:SCFMA922111,ss=1,fgs=0
Cc: tls@ietf.org
Subject: Re: [TLS] Collisions (Re:  Consensus Call: FNV vs SHA1)
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: Mon, 10 May 2010 22:04:01 -0000

On Mon, May 10, 2010 at 04:56:52PM -0500, Nicolas Williams wrote:
> On Mon, May 10, 2010 at 11:48:09PM +0200, Simon Josefsson wrote:
> > Nicolas Williams <Nicolas.Williams@oracle.com> writes:
> > 
> > >  - Add a description of what happens if cached object checksums collide.
> > >
> > >    No, the current security considerations section doesn't deal with
> > >    this, and rightly so _if_ collisions are not a security problem, but
> > >    what happens when there are collisions?  Do hanshakes fail?
> > 
> > I agree that it is important to explain this.
> > 
> > If collisions happen, it appears that we do get slightly weaker
> > semantics of what it means for a handshake to succeed: we aren't
> > cryptographically certain (in the sense that there is cryptographic
> > reduction) that the client and server agree on the data used during the
> > handshake for cached items (CA cert list, server certificate) after the
> > handshake has concluded.
> 
> In the success case I think we are certain that we don't care about
> collisions, if there were any: the cryptographic properties of TLS
> ensure this.

Actually, maybe not!  I think on the server side we won't care about
collisions, but on the client side I think we care very much.  I think
the key is this: the client MUST NOT cache any objects from failed
handshakes.  Anyways, I've not done a careful analysis because I'm lazy
and I'd rather see what the authors have to say first :)

Nico
-- 

From stefan@aaa-sec.com  Mon May 10 15:07:04 2010
Return-Path: <stefan@aaa-sec.com>
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 CB7A93A68AE for <tls@core3.amsl.com>; Mon, 10 May 2010 15:07:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.295
X-Spam-Level: 
X-Spam-Status: No, score=-1.295 tagged_above=-999 required=5 tests=[AWL=-0.460, BAYES_40=-0.185, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 1JrSiddbicbf for <tls@core3.amsl.com>; Mon, 10 May 2010 15:07:03 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id B85B93A6767 for <tls@ietf.org>; Mon, 10 May 2010 15:07:03 -0700 (PDT)
Received: from s19.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 6CFE928A598 for <tls@ietf.org>; Tue, 11 May 2010 00:07:00 +0200 (CEST)
Received: (qmail 27357 invoked from network); 10 May 2010 22:06:51 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.16]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s19.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <Nicolas.Williams@oracle.com>; 10 May 2010 22:06:51 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Tue, 11 May 2010 00:06:48 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: Nicolas Williams <Nicolas.Williams@oracle.com>
Message-ID: <C80E5018.AB2B%stefan@aaa-sec.com>
Thread-Topic: Collisions (Re: Nico's suggestions - Re: [TLS] Consensus Call: FNV vs SHA1)
Thread-Index: AcrwjRXIFxVym9h7e0mtYH83kHWRUA==
In-Reply-To: <20100510213924.GY9429@oracle.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: Paul Hoffman <paul.hoffman@vpnc.org>, tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call: FNV vs SHA1)
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: Mon, 10 May 2010 22:07:04 -0000

On 10-05-10 11:39 PM, "Nicolas Williams" <Nicolas.Williams@oracle.com>
wrote:

>> On the last question I think the correct answer is: Yes it is possible to do
>> a variant of the protocol without a hash function but it does not make the
>> protocol any better. Rather it make it worse. Both in terms of functionality
>> and complexity.
> 
> That's just a statement without an argument; I'm unconvinced.  Convince
> us.  If you can show that collisions don't result in failure to complete
> a TLS handshake successfully then all will be fine, so start there.
> Else I think you should explain how a collision-free protocol would be
> worse than the current proposal, then we could weigh the two approaches.

Yeah I know,

I was hoping I didn't have to since we have been through that debate
already.

If you force the Server to assign identifier you are adding complexity to
the protocol. The server now need to remember the relationship between
identifiers and objects instead of just calculating them when needed.

It also limits functionality since the client now first have to ask each
server about their identifiers, store them (per server) and replay them to
the server. With a hash, the client can try caching directly without first
asking the server for it's identifiers as soon as the client have a guess
about the cached info (e.g. By pulling info from a repository)

What if this is a cluster and two servers give out different identifiers for
the same cached object???  To me this simply smells like a lot of
un-necessary problems.

What if a collision occurs?

That is pretty deterministic too. The server and the client may then agree
on a cached value by mistake. They will then go ahead and try to complete
the handshake with different opinions on a cached security critical value,
such as disagreeing about the server certificate chain. This will inevitably
lead to a handshake failure.

Upon a failed cached handshake, the client and server tries a new handshake
without caching, updates it's cache and moves on with life.

However, the risk that a 64 bit FNV will collide by mistake (not as a result
of a malicious attack) is so small that the risk inconvenience of a
collision is acceptable.

Does this make any sense?

/Stefan




From Nicolas.Williams@oracle.com  Mon May 10 15:16:45 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 CF22F3A6931 for <tls@core3.amsl.com>; Mon, 10 May 2010 15:16:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.083
X-Spam-Level: 
X-Spam-Status: No, score=-4.083 tagged_above=-999 required=5 tests=[AWL=1.026,  BAYES_05=-1.11, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 PZGpwY24mNz5 for <tls@core3.amsl.com>; Mon, 10 May 2010 15:16:44 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id BB7B53A6800 for <tls@ietf.org>; Mon, 10 May 2010 15:16:44 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4AMGOLx020035 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 10 May 2010 22:16:27 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4AMGMlH002103; Mon, 10 May 2010 22:16:23 GMT
Received: from abhmt007.oracle.com by acsmt354.oracle.com with ESMTP id 229325161273529737; Mon, 10 May 2010 15:15:37 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 10 May 2010 15:15:36 -0700
Date: Mon, 10 May 2010 17:15:32 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Stefan Santesson <stefan@aaa-sec.com>
Message-ID: <20100510221531.GC9429@oracle.com>
References: <20100510213924.GY9429@oracle.com> <C80E5018.AB2B%stefan@aaa-sec.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <C80E5018.AB2B%stefan@aaa-sec.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090204.4BE885BC.0077:SCFMA922111,ss=1,fgs=0
Cc: Paul Hoffman <paul.hoffman@vpnc.org>, tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call: FNV vs SHA1)
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: Mon, 10 May 2010 22:16:45 -0000

On Tue, May 11, 2010 at 12:06:48AM +0200, Stefan Santesson wrote:
> On 10-05-10 11:39 PM, "Nicolas Williams" <Nicolas.Williams@oracle.com>
> wrote:
> >> On the last question I think the correct answer is: Yes it is possible to do
> >> a variant of the protocol without a hash function but it does not make the
> >> protocol any better. Rather it make it worse. Both in terms of functionality
> >> and complexity.
> > 
> > That's just a statement without an argument; I'm unconvinced.  Convince
> > us.  If you can show that collisions don't result in failure to complete
> > a TLS handshake successfully then all will be fine, so start there.
> > Else I think you should explain how a collision-free protocol would be
> > worse than the current proposal, then we could weigh the two approaches.
> 
> Yeah I know,
> 
> I was hoping I didn't have to since we have been through that debate
> already.

That's fine: I'd have accepted a URL to that debate.

> If you force the Server to assign identifier you are adding complexity to
> the protocol. The server now need to remember the relationship between
> identifiers and objects instead of just calculating them when needed.

The server sure could use a hash, leaving it to the operator to look for
and address collisions.

> It also limits functionality since the client now first have to ask each
> server about their identifiers, store them (per server) and replay them to
> the server. With a hash, the client can try caching directly without first
> asking the server for it's identifiers as soon as the client have a guess
> about the cached info (e.g. By pulling info from a repository)

True!  That's one thing I was looking for.  It's more than enough for me
to prefer the client-hashes approach to the server-assigns object IDs
approach.

> What if a collision occurs?
> 
> That is pretty deterministic too. The server and the client may then agree
> on a cached value by mistake. They will then go ahead and try to complete
> the handshake with different opinions on a cached security critical value,
> such as disagreeing about the server certificate chain. This will inevitably
> lead to a handshake failure.

That's what I thought.

> Upon a failed cached handshake, the client and server tries a new handshake
> without caching, updates it's cache and moves on with life.

Well...  Many applications might not.  Can the handshake be retried
transparently to the application?  Or will the application have to
close() its socket and re-connect()?

> However, the risk that a 64 bit FNV will collide by mistake (not as a result
> of a malicious attack) is so small that the risk inconvenience of a
> collision is acceptable.
> 
> Does this make any sense?

Just a pair of questions left (see above).

Nico
-- 

From simon@josefsson.org  Mon May 10 15:19:48 2010
Return-Path: <simon@josefsson.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 8C2D43A69FC for <tls@core3.amsl.com>; Mon, 10 May 2010 15:19:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.391
X-Spam-Level: 
X-Spam-Status: No, score=-2.391 tagged_above=-999 required=5 tests=[AWL=0.208,  BAYES_00=-2.599]
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 VENLBIU+MWuC for <tls@core3.amsl.com>; Mon, 10 May 2010 15:19:46 -0700 (PDT)
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39]) by core3.amsl.com (Postfix) with ESMTP id 93B813A6931 for <tls@ietf.org>; Mon, 10 May 2010 15:19:44 -0700 (PDT)
Received: from mocca (c80-216-25-148.bredband.comhem.se [80.216.25.148]) (authenticated bits=0) by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o4AMJTej016091 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 11 May 2010 00:19:31 +0200
From: Simon Josefsson <simon@josefsson.org>
To: Nicolas Williams <Nicolas.Williams@oracle.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com> <20100510190954.GV9429@oracle.com> <87r5lj4eee.fsf@mocca.josefsson.org> <20100510215652.GA9429@oracle.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100510:tls@ietf.org::aDCZWiQ1KG8Rh8gS:2d0l
X-Hashcash: 1:22:100510:nicolas.williams@oracle.com::DT2K0ModQo9dLPpe:FF3r
Date: Tue, 11 May 2010 00:19:29 +0200
In-Reply-To: <20100510215652.GA9429@oracle.com> (Nicolas Williams's message of "Mon, 10 May 2010 16:56:52 -0500")
Message-ID: <87bpcn4cy6.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Virus-Scanned: clamav-milter 0.96 at yxa-v
X-Virus-Status: Clean
Cc: tls@ietf.org
Subject: Re: [TLS] Collisions (Re:  Consensus Call: FNV vs SHA1)
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: Mon, 10 May 2010 22:19:48 -0000

Nicolas Williams <Nicolas.Williams@oracle.com> writes:

> On Mon, May 10, 2010 at 11:48:09PM +0200, Simon Josefsson wrote:
>> Nicolas Williams <Nicolas.Williams@oracle.com> writes:
>> 
>> >  - Add a description of what happens if cached object checksums collide.
>> >
>> >    No, the current security considerations section doesn't deal with
>> >    this, and rightly so _if_ collisions are not a security problem, but
>> >    what happens when there are collisions?  Do hanshakes fail?
>> 
>> I agree that it is important to explain this.
>> 
>> If collisions happen, it appears that we do get slightly weaker
>> semantics of what it means for a handshake to succeed: we aren't
>> cryptographically certain (in the sense that there is cryptographic
>> reduction) that the client and server agree on the data used during the
>> handshake for cached items (CA cert list, server certificate) after the
>> handshake has concluded.
>
> In the success case I think we are certain that we don't care about
> collisions, if there were any: the cryptographic properties of TLS
> ensure this.

Ensures what?  As far as I can see, it doesn't ensure that the server
knows which server certificate the client saw, or that the client knows
which ca-cert-list the server offered.  Both could influence which
client certificate the client selects, which seems potentially bad.

For example, I looked in the document, and I don't see any requirement
that clients only cache information from a server _after_ having
performed a successful handshake against the server.  Without that, an
attacker could setup a fake server that causes clients to cache some
information (different from what the real server would send), fail the
handshake, and let the client re-try against the real server, and the
client would then use the wrong cached information.

> It's the failure case I'm concerned with.  If failures occur, how do you
> recover?  If failures occur, will users want this?

I also want to see these questions (+ answers) covered in the document.
The answers aren't clear to me.

>> This problem would be solved if the Finished message were computed over
>> the replaced data rather than the digest value.  Then any data
>> mismatches would be detected at the TLS Finished computation, and the
>> handshake fail.  Perhaps this is simpler than introducing a
>> cryptographic digest.
>
> I think modifying the way Finished msgs are computed would make this
> protocol way too complicated.  I'd be happier with the server assigning
> object IDs to cacheable objects.

Doesn't this have the same problem with collisions?

/Simon

From stefan@aaa-sec.com  Mon May 10 15:29:56 2010
Return-Path: <stefan@aaa-sec.com>
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 4311F3A69FC for <tls@core3.amsl.com>; Mon, 10 May 2010 15:29:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.471
X-Spam-Level: 
X-Spam-Status: No, score=-2.471 tagged_above=-999 required=5 tests=[AWL=0.778,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 o52btvU9oZ1l for <tls@core3.amsl.com>; Mon, 10 May 2010 15:29:54 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id BCEAD3A69CE for <tls@ietf.org>; Mon, 10 May 2010 15:29:54 -0700 (PDT)
Received: from s24.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id AA17328FD5E for <tls@ietf.org>; Tue, 11 May 2010 00:29:51 +0200 (CEST)
Received: (qmail 86672 invoked from network); 10 May 2010 22:29:42 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.16]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s24.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <Nicolas.Williams@oracle.com>; 10 May 2010 22:29:42 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Tue, 11 May 2010 00:29:39 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: Nicolas Williams <Nicolas.Williams@oracle.com>
Message-ID: <C80E5573.AB33%stefan@aaa-sec.com>
Thread-Topic: Collisions (Re: Nico's suggestions - Re: [TLS] Consensus Call: FNV vs SHA1)
Thread-Index: AcrwkEb2SBWQ8QPpvkC1m1RsaEnXkg==
In-Reply-To: <20100510221531.GC9429@oracle.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: Paul Hoffman <paul.hoffman@vpnc.org>, tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call: FNV vs SHA1)
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: Mon, 10 May 2010 22:29:56 -0000

On 10-05-11 12:15 AM, "Nicolas Williams" <Nicolas.Williams@oracle.com>
wrote:

>> Upon a failed cached handshake, the client and server tries a new handshake
>> without caching, updates it's cache and moves on with life.
> 
> Well...  Many applications might not.  Can the handshake be retried
> transparently to the application?  Or will the application have to
> close() its socket and re-connect()?

I agree that the draft may be underspecified here.

Would it help to say that upon handshake failure using cached information,
client and servers MUST NOT retry the same handshake using the same cached
information.

I would expect this to be totally transparent to a client application above
the socket.

/Stefan  




From Nicolas.Williams@oracle.com  Mon May 10 15:35:30 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 154E33A69CE for <tls@core3.amsl.com>; Mon, 10 May 2010 15:35:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.85
X-Spam-Level: 
X-Spam-Status: No, score=-4.85 tagged_above=-999 required=5 tests=[AWL=1.748,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 bJXciUPQ6HxN for <tls@core3.amsl.com>; Mon, 10 May 2010 15:35:29 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 57A1E3A688C for <tls@ietf.org>; Mon, 10 May 2010 15:35:29 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4AMZATV017045 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 10 May 2010 22:35:12 GMT
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4AGPgSB019945; Mon, 10 May 2010 22:35:09 GMT
Received: from abhmt006.oracle.com by acsmt355.oracle.com with ESMTP id 229368151273530890; Mon, 10 May 2010 15:34:50 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 10 May 2010 15:34:50 -0700
Date: Mon, 10 May 2010 17:34:45 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Stefan Santesson <stefan@aaa-sec.com>
Message-ID: <20100510223445.GD9429@oracle.com>
References: <20100510221531.GC9429@oracle.com> <C80E5573.AB33%stefan@aaa-sec.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <C80E5573.AB33%stefan@aaa-sec.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090203.4BE88A21.0151:SCFMA922111,ss=1,fgs=0
Cc: Paul Hoffman <paul.hoffman@vpnc.org>, tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call: FNV vs SHA1)
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: Mon, 10 May 2010 22:35:30 -0000

On Tue, May 11, 2010 at 12:29:39AM +0200, Stefan Santesson wrote:
> On 10-05-11 12:15 AM, "Nicolas Williams" <Nicolas.Williams@oracle.com>
> wrote:
> >> Upon a failed cached handshake, the client and server tries a new handshake
> >> without caching, updates it's cache and moves on with life.
> > 
> > Well...  Many applications might not.  Can the handshake be retried
> > transparently to the application?  Or will the application have to
> > close() its socket and re-connect()?
> 
> I agree that the draft may be underspecified here.
> 
> Would it help to say that upon handshake failure using cached information,
> client and servers MUST NOT retry the same handshake using the same cached
> information.

That's part of it, yes.

> I would expect this to be totally transparent to a client application above
> the socket.

Really?  So TLS libraries can do N>=1 failed handshakes without the
application noticing, without re-doing the TCP (or whatever) connection?
What about DTLS?

Nico
-- 

From stefan@aaa-sec.com  Mon May 10 15:52:20 2010
Return-Path: <stefan@aaa-sec.com>
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 B005B3A6A92 for <tls@core3.amsl.com>; Mon, 10 May 2010 15:52:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.52
X-Spam-Level: 
X-Spam-Status: No, score=-2.52 tagged_above=-999 required=5 tests=[AWL=0.729,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 sOLoKnjqktTJ for <tls@core3.amsl.com>; Mon, 10 May 2010 15:52:20 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id 891EF3A695F for <tls@ietf.org>; Mon, 10 May 2010 15:51:58 -0700 (PDT)
Received: from s42.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 56BF528CA6F for <tls@ietf.org>; Tue, 11 May 2010 00:51:55 +0200 (CEST)
Received: (qmail 43245 invoked from network); 10 May 2010 22:51:46 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.16]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s42.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <simon@josefsson.org>; 10 May 2010 22:51:46 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Tue, 11 May 2010 00:51:44 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: Simon Josefsson <simon@josefsson.org>, Nicolas Williams <Nicolas.Williams@oracle.com>
Message-ID: <C80E5AA0.AB38%stefan@aaa-sec.com>
Thread-Topic: [TLS] Collisions (Re:  Consensus Call: FNV vs SHA1)
Thread-Index: Acrwk1y5OlnF4kMyZk6FdjhbkjPMjA==
In-Reply-To: <87bpcn4cy6.fsf@mocca.josefsson.org>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Collisions (Re:  Consensus Call: FNV vs SHA1)
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: Mon, 10 May 2010 22:52:20 -0000

On 10-05-11 12:19 AM, "Simon Josefsson" <simon@josefsson.org> wrote:

> (different from what the real server would send), fail the
> handshake, and let the client re-try against the real server, and the
> client would then use the wrong cached information.


And.... ?

I don't mean to be rude, I just want you to complete the threat scenario.

In what way may this serve the attacker?
In what way may this cause serious harm to the victim?

If the client is fooled to cache the wrong server certificate, key
establishment will fail.

If the client is fooled to believe in a false set of acceptable CA names,
then the client may fail to find an acceptable client certificate to use.

Both will cause the handshake to fail (and cause next attempt to be without
caching).


/Stefan



From stefan@aaa-sec.com  Mon May 10 15:58:37 2010
Return-Path: <stefan@aaa-sec.com>
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 887FF3A68E9 for <tls@core3.amsl.com>; Mon, 10 May 2010 15:58:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.563
X-Spam-Level: 
X-Spam-Status: No, score=-2.563 tagged_above=-999 required=5 tests=[AWL=0.686,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 O0KbAKZtyjBQ for <tls@core3.amsl.com>; Mon, 10 May 2010 15:58:36 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id B7D373A6864 for <tls@ietf.org>; Mon, 10 May 2010 15:58:36 -0700 (PDT)
Received: from s24.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id D771528F129 for <tls@ietf.org>; Tue, 11 May 2010 00:58:33 +0200 (CEST)
Received: (qmail 60575 invoked from network); 10 May 2010 22:58:21 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.16]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s24.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <Nicolas.Williams@oracle.com>; 10 May 2010 22:58:21 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Tue, 11 May 2010 00:58:20 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: Nicolas Williams <Nicolas.Williams@oracle.com>
Message-ID: <C80E5C2C.AB3A%stefan@aaa-sec.com>
Thread-Topic: Collisions (Re: Nico's suggestions - Re: [TLS] Consensus Call: FNV vs SHA1)
Thread-Index: AcrwlEjCUDBKoMBMiUKAj6UnTOO53Q==
In-Reply-To: <20100510223445.GD9429@oracle.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: Paul Hoffman <paul.hoffman@vpnc.org>, tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call: FNV vs SHA1)
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: Mon, 10 May 2010 22:58:37 -0000

On 10-05-11 12:34 AM, "Nicolas Williams" <Nicolas.Williams@oracle.com>
wrote:

>> I would expect this to be totally transparent to a client application above
>> the socket.
> 
> Really?  So TLS libraries can do N>=1 failed handshakes without the
> application noticing, without re-doing the TCP (or whatever) connection?
> What about DTLS?


I would expect the logic deciding whether to cache or not, to be transparent
to the application.

/Stefan



From hovav@hovav.net  Mon May 10 20:09:45 2010
Return-Path: <hovav@hovav.net>
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 77DE03A6ABF for <tls@core3.amsl.com>; Mon, 10 May 2010 20:09:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
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 QqU6WJypd+nq for <tls@core3.amsl.com>; Mon, 10 May 2010 20:09:44 -0700 (PDT)
Received: from iport-c2-out.ucsd.edu (iport-c2-out.ucsd.edu [132.239.0.119]) by core3.amsl.com (Postfix) with ESMTP id 419A928C10D for <tls@ietf.org>; Mon, 10 May 2010 20:09:42 -0700 (PDT)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ApsEAGdn6EuE7zNQ/2dsb2JhbACfFbpZhRQEg0E
X-IronPort-AV: E=Sophos;i="4.53,204,1272870000"; d="scan'208";a="251440953"
Received: from csesmtp2.ucsd.edu (HELO cse-smtp.ucsd.edu) ([132.239.51.80]) by iport-c2-out.ucsd.edu with ESMTP/TLS/ADH-AES256-SHA; 10 May 2010 20:09:31 -0700
Received: from [128.54.49.152] (unknown [128.54.49.152]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by cse-smtp.ucsd.edu (Postfix) with ESMTP id 40D845005C for <tls@ietf.org>; Mon, 10 May 2010 20:09:31 -0700 (PDT)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Apple Message framework v1078)
From: Hovav Shacham <hovav@hovav.net>
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com>
Date: Mon, 10 May 2010 20:09:30 -0700
Content-Transfer-Encoding: 7bit
Message-Id: <B1EE4FEB-6E4D-49EB-A24E-9BAE5CE3ECB9@hovav.net>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com>
To: TLS Working Group <tls@ietf.org>
X-Mailer: Apple Mail (2.1078)
Subject: Re: [TLS] Consensus Call: FNV vs SHA1
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: Tue, 11 May 2010 03:09:45 -0000

On May 10, 2010, at 10:39 AM, Joseph Salowey (jsalowey) wrote:

> I don't see much new being added to this discussion at this point.  I'd
> like to close on this.  If you have an opinion please indicate if:
> 
> a) You favor SHA-1
> b) You favor FNV-1a

a) I favor SHA-1.

-hs.

From simon@josefsson.org  Tue May 11 01:03:20 2010
Return-Path: <simon@josefsson.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 D30203A6B1D for <tls@core3.amsl.com>; Tue, 11 May 2010 01:03:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.365
X-Spam-Level: 
X-Spam-Status: No, score=-2.365 tagged_above=-999 required=5 tests=[AWL=0.234,  BAYES_00=-2.599]
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 SxbXoJYoA0fR for <tls@core3.amsl.com>; Tue, 11 May 2010 01:03:19 -0700 (PDT)
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39]) by core3.amsl.com (Postfix) with ESMTP id 2A3A73A6B1B for <tls@ietf.org>; Tue, 11 May 2010 01:00:14 -0700 (PDT)
Received: from mocca (c80-216-25-148.bredband.comhem.se [80.216.25.148]) (authenticated bits=0) by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o4B7xpDr029220 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 11 May 2010 09:59:55 +0200
From: Simon Josefsson <simon@josefsson.org>
To: Stefan Santesson <stefan@aaa-sec.com>
References: <87bpcn4cy6.fsf@mocca.josefsson.org> <C80E5AA0.AB38%stefan@aaa-sec.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100511:stefan@aaa-sec.com::bWm/MkZbLhUtsM3B:jo+
X-Hashcash: 1:22:100511:tls@ietf.org::TZkh5xRDfbH5QCcl:5y8W
X-Hashcash: 1:22:100511:nicolas.williams@oracle.com::dCi9CaoW+CfZohBF:5721
Date: Tue, 11 May 2010 09:59:51 +0200
In-Reply-To: <C80E5AA0.AB38%stefan@aaa-sec.com> (Stefan Santesson's message of "Tue, 11 May 2010 00:51:44 +0200")
Message-ID: <87bpcm3m2w.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Virus-Scanned: clamav-milter 0.96 at yxa-v
X-Virus-Status: Clean
Cc: tls@ietf.org
Subject: Re: [TLS] Collisions (Re:  Consensus Call: FNV vs SHA1)
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: Tue, 11 May 2010 08:03:20 -0000

Stefan Santesson <stefan@aaa-sec.com> writes:

> On 10-05-11 12:19 AM, "Simon Josefsson" <simon@josefsson.org> wrote:
>
>> (different from what the real server would send), fail the
>> handshake, and let the client re-try against the real server, and the
>> client would then use the wrong cached information.
>
>
> And.... ?
>
> I don't mean to be rude, I just want you to complete the threat scenario.
>
> In what way may this serve the attacker?
> In what way may this cause serious harm to the victim?
>
> If the client is fooled to cache the wrong server certificate, key
> establishment will fail.
>
> If the client is fooled to believe in a false set of acceptable CA names,
> then the client may fail to find an acceptable client certificate to use.
>
> Both will cause the handshake to fail (and cause next attempt to be without
> caching).

I'm thinking about two scenarios:

 1) the undetectable modification of the list of acceptable CA names
    cause the client to select and use an unintended certificate.

 2) where multiple server certificates can be used to successfully
    establish the key.  That can happen if two certificates use the same
    public key.  Once connected, the client will not know the server by
    the same identity (certificate) as the server believe the client
    used.

This is not an problem in the sense that an attacker gains some benefit
(for 1 the client chose to proceed with the certificate and for 2 the
attacker needs to know the private key of the server): instead I'm
pointing at a semantic problem because, with the extension, the
historically true invariant that the client, after handshake, will know
which certificate the server used, does not hold strongly.

This doesn't necessarily have to affect the document in any way, but it
is an interesting property.

/Simon

From ynir@checkpoint.com  Tue May 11 02:32:30 2010
Return-Path: <ynir@checkpoint.com>
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 BFBC228C147 for <tls@core3.amsl.com>; Tue, 11 May 2010 02:32:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.851
X-Spam-Level: 
X-Spam-Status: No, score=-2.851 tagged_above=-999 required=5 tests=[AWL=0.748,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 ggKVb-fhbFZ3 for <tls@core3.amsl.com>; Tue, 11 May 2010 02:32:30 -0700 (PDT)
Received: from michael.checkpoint.com (michael.checkpoint.com [194.29.32.68]) by core3.amsl.com (Postfix) with ESMTP id 5017528C128 for <tls@ietf.org>; Tue, 11 May 2010 02:29:04 -0700 (PDT)
X-CheckPoint: {4BE93067-0-1B201DC2-1FFFF}
Received: from il-ex01.ad.checkpoint.com (il-ex01.checkpoint.com [194.29.34.26]) by michael.checkpoint.com (8.12.10+Sun/8.12.10) with ESMTP id o4B9Sfpr014468; Tue, 11 May 2010 12:28:49 +0300 (IDT)
Received: from il-ex01.ad.checkpoint.com ([126.0.0.2]) by il-ex01.ad.checkpoint.com ([126.0.0.2]) with mapi; Tue, 11 May 2010 12:29:18 +0300
From: Yoav Nir <ynir@checkpoint.com>
To: "'Joseph Salowey (jsalowey)'" <jsalowey@cisco.com>, "tls@ietf.org" <tls@ietf.org>
Date: Tue, 11 May 2010 12:29:16 +0300
Thread-Topic: Consensus Call: FNV vs SHA1
Thread-Index: AcrwZ71PRYYRYux+TAK9atVr3xufHAAhJf/g
Message-ID: <006FEB08D9C6444AB014105C9AEB133FB48F1B5A9C@il-ex01.ad.checkpoint.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Subject: Re: [TLS] Consensus Call: FNV vs SHA1
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: Tue, 11 May 2010 09:32:30 -0000

(b) - FNV-1a

-----Original Message-----
From: tls-bounces@ietf.org [mailto:tls-bounces@ietf.org] On Behalf Of Josep=
h Salowey (jsalowey)
Sent: Monday, May 10, 2010 8:39 PM
To: tls@ietf.org
Subject: [TLS] Consensus Call: FNV vs SHA1

I don't see much new being added to this discussion at this point.  I'd
like to close on this.  If you have an opinion please indicate if:

a) You favor SHA-1
b) You favor FNV-1a

Thanks,

Joe
_______________________________________________
TLS mailing list
TLS@ietf.org
https://www.ietf.org/mailman/listinfo/tls

Scanned by Check Point Total Security Gateway.

From mrex@sap.com  Tue May 11 06:41:28 2010
Return-Path: <mrex@sap.com>
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 41C353A68E7 for <tls@core3.amsl.com>; Tue, 11 May 2010 06:41:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.783
X-Spam-Level: 
X-Spam-Status: No, score=-7.783 tagged_above=-999 required=5 tests=[AWL=-0.134, BAYES_50=0.001, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_HI=-8]
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 hwA78ju+jTA3 for <tls@core3.amsl.com>; Tue, 11 May 2010 06:41:27 -0700 (PDT)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.171]) by core3.amsl.com (Postfix) with ESMTP id F16993A68E1 for <tls@ietf.org>; Tue, 11 May 2010 06:40:05 -0700 (PDT)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o4BDdpZ4025787 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 11 May 2010 15:39:51 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201005111339.o4BDdoYQ009725@fs4113.wdf.sap.corp>
To: Nicolas.Williams@oracle.com (Nicolas Williams)
Date: Tue, 11 May 2010 15:39:50 +0200 (MEST)
In-Reply-To: <20100510221531.GC9429@oracle.com> from "Nicolas Williams" at May 10, 10 05:15:32 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal05
X-SAP: out
Cc: paul.hoffman@vpnc.org, tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
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/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: Tue, 11 May 2010 13:41:28 -0000

Nicolas Williams wrote:
> 
> Stefan Santesson wrote:
> > 
> > What if a collision occurs?
> > 
> > That is pretty deterministic too. The server and the client may then agree
> > on a cached value by mistake. They will then go ahead and try to complete
> > the handshake with different opinions on a cached security critical value,
> > such as disagreeing about the server certificate chain. This will inevitably
> > lead to a handshake failure.
> 
> That's what I thought.
> 
> > Upon a failed cached handshake, the client and server tries a new handshake
> > without caching, updates it's cache and moves on with life.
> 
> Well...  Many applications might not.  Can the handshake be retried
> transparently to the application?  Or will the application have to
> close() its socket and re-connect()?

Re-thinking this scenario, I do not think that is a workable approach.

The reason why I originally asked for using a (sha-1) hash value over the
replaced data instead of a simple, server-assigned identifier,
was robustness.  Going through a handshake failure is _NOT_ an option.
I wanted to avoid the cache of the server and client to get out-of-sync,
and the use of a sha-1 hash value over the real data instead of that
data should be sufficiently robust so that the server will send the
real data in case the clients cached value differs from what the
server would normally send.


It is generally impossible to recover from a TLS handshake failure.
It normally requires closure of the existing connection and opening
of a new connection because it is completely unspecified how to
recover from a TLS handshake failure on a connection (and how to
clear the network pipe from unprocessed data from the previous handshake).

If a client-side proxy traversal is involved, a full app-level proxy
handshake is required.  If proxy traversal requires an OTP authentication,
it will be completely impossible without user interaction.


-Martin

From prvs=274770b3e0=uri@ll.mit.edu  Tue May 11 06:54:37 2010
Return-Path: <prvs=274770b3e0=uri@ll.mit.edu>
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 68A2E3A68E1 for <tls@core3.amsl.com>; Tue, 11 May 2010 06:54:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.031
X-Spam-Level: 
X-Spam-Status: No, score=-6.031 tagged_above=-999 required=5 tests=[AWL=0.567,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 v376TzmqeSas for <tls@core3.amsl.com>; Tue, 11 May 2010 06:54:36 -0700 (PDT)
Received: from mx1.ll.mit.edu (MX1.LL.MIT.EDU [129.55.12.45]) by core3.amsl.com (Postfix) with ESMTP id 5DF9E28C0E7 for <tls@ietf.org>; Tue, 11 May 2010 06:54:05 -0700 (PDT)
Received: from LLE2K7-HUB02.mitll.ad.local (LLE2K7-HUB02.mitll.ad.local) by mx1.ll.mit.edu (unknown) with ESMTP id o4BDrKQZ023925; Tue, 11 May 2010 09:53:51 -0400
From: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
To: "'mrex@sap.com'" <mrex@sap.com>, "'Nicolas.Williams@oracle.com'" <Nicolas.Williams@oracle.com>
Date: Tue, 11 May 2010 09:53:49 -0400
Thread-Topic: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
Thread-Index: AcrxD68NF4c41bbDQXG0x59VhByLVAAAbLOz
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-05-11_04:2010-02-06, 2010-05-11, 2010-05-11 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1005110063
Message-Id: <20100511135405.5DF9E28C0E7@core3.amsl.com>
Cc: "'paul.hoffman@vpnc.org'" <paul.hoffman@vpnc.org>, "'tls@ietf.org'" <tls@ietf.org>
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
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: Tue, 11 May 2010 13:54:37 -0000

QXJlIHlvdSBwbGFubmluZyB0byB1c2UgZnVsbCAxNjAgYml0cyBvZiBTSEEtMSBvdXRwdXQ/IElm
IG5vdCAtIHlvdSByZWFsaXplIHRoYXQgcG9zc2liaWxpdHkgb2YgY29sbGlzaW9uIG9uIHRydW5j
YXRlZCBvdXRwdXQgaXMgaGlnaGVyPw0KDQpSZWdhcmRzLA0KVXJpDQoNCi0tLS0tIE9yaWdpbmFs
IE1lc3NhZ2UgLS0tLS0NCkZyb206IHRscy1ib3VuY2VzQGlldGYub3JnIDx0bHMtYm91bmNlc0Bp
ZXRmLm9yZz4NClRvOiBOaWNvbGFzIFdpbGxpYW1zIDxOaWNvbGFzLldpbGxpYW1zQG9yYWNsZS5j
b20+DQpDYzogcGF1bC5ob2ZmbWFuQHZwbmMub3JnIDxwYXVsLmhvZmZtYW5AdnBuYy5vcmc+OyB0
bHNAaWV0Zi5vcmcgPHRsc0BpZXRmLm9yZz4NClNlbnQ6IFR1ZSBNYXkgMTEgMDk6Mzk6NTAgMjAx
MApTdWJqZWN0OiBSZTogW1RMU10gQ29sbGlzaW9ucyAoUmU6IE5pY28ncyBzdWdnZXN0aW9ucyAt
IFJlOiBDb25zZW5zdXMgQ2FsbDoNCg0KTmljb2xhcyBXaWxsaWFtcyB3cm90ZToNCj4gDQo+IFN0
ZWZhbiBTYW50ZXNzb24gd3JvdGU6DQo+ID4gDQo+ID4gV2hhdCBpZiBhIGNvbGxpc2lvbiBvY2N1
cnM/DQo+ID4gDQo+ID4gVGhhdCBpcyBwcmV0dHkgZGV0ZXJtaW5pc3RpYyB0b28uIFRoZSBzZXJ2
ZXIgYW5kIHRoZSBjbGllbnQgbWF5IHRoZW4gYWdyZWUNCj4gPiBvbiBhIGNhY2hlZCB2YWx1ZSBi
eSBtaXN0YWtlLiBUaGV5IHdpbGwgdGhlbiBnbyBhaGVhZCBhbmQgdHJ5IHRvIGNvbXBsZXRlDQo+
ID4gdGhlIGhhbmRzaGFrZSB3aXRoIGRpZmZlcmVudCBvcGluaW9ucyBvbiBhIGNhY2hlZCBzZWN1
cml0eSBjcml0aWNhbCB2YWx1ZSwNCj4gPiBzdWNoIGFzIGRpc2FncmVlaW5nIGFib3V0IHRoZSBz
ZXJ2ZXIgY2VydGlmaWNhdGUgY2hhaW4uIFRoaXMgd2lsbCBpbmV2aXRhYmx5DQo+ID4gbGVhZCB0
byBhIGhhbmRzaGFrZSBmYWlsdXJlLg0KPiANCj4gVGhhdCdzIHdoYXQgSSB0aG91Z2h0Lg0KPiAN
Cj4gPiBVcG9uIGEgZmFpbGVkIGNhY2hlZCBoYW5kc2hha2UsIHRoZSBjbGllbnQgYW5kIHNlcnZl
ciB0cmllcyBhIG5ldyBoYW5kc2hha2UNCj4gPiB3aXRob3V0IGNhY2hpbmcsIHVwZGF0ZXMgaXQn
cyBjYWNoZSBhbmQgbW92ZXMgb24gd2l0aCBsaWZlLg0KPiANCj4gV2VsbC4uLiAgTWFueSBhcHBs
aWNhdGlvbnMgbWlnaHQgbm90LiAgQ2FuIHRoZSBoYW5kc2hha2UgYmUgcmV0cmllZA0KPiB0cmFu
c3BhcmVudGx5IHRvIHRoZSBhcHBsaWNhdGlvbj8gIE9yIHdpbGwgdGhlIGFwcGxpY2F0aW9uIGhh
dmUgdG8NCj4gY2xvc2UoKSBpdHMgc29ja2V0IGFuZCByZS1jb25uZWN0KCk/DQoNClJlLXRoaW5r
aW5nIHRoaXMgc2NlbmFyaW8sIEkgZG8gbm90IHRoaW5rIHRoYXQgaXMgYSB3b3JrYWJsZSBhcHBy
b2FjaC4NCg0KVGhlIHJlYXNvbiB3aHkgSSBvcmlnaW5hbGx5IGFza2VkIGZvciB1c2luZyBhIChz
aGEtMSkgaGFzaCB2YWx1ZSBvdmVyIHRoZQ0KcmVwbGFjZWQgZGF0YSBpbnN0ZWFkIG9mIGEgc2lt
cGxlLCBzZXJ2ZXItYXNzaWduZWQgaWRlbnRpZmllciwNCndhcyByb2J1c3RuZXNzLiAgR29pbmcg
dGhyb3VnaCBhIGhhbmRzaGFrZSBmYWlsdXJlIGlzIF9OT1RfIGFuIG9wdGlvbi4NCkkgd2FudGVk
IHRvIGF2b2lkIHRoZSBjYWNoZSBvZiB0aGUgc2VydmVyIGFuZCBjbGllbnQgdG8gZ2V0IG91dC1v
Zi1zeW5jLA0KYW5kIHRoZSB1c2Ugb2YgYSBzaGEtMSBoYXNoIHZhbHVlIG92ZXIgdGhlIHJlYWwg
ZGF0YSBpbnN0ZWFkIG9mIHRoYXQNCmRhdGEgc2hvdWxkIGJlIHN1ZmZpY2llbnRseSByb2J1c3Qg
c28gdGhhdCB0aGUgc2VydmVyIHdpbGwgc2VuZCB0aGUNCnJlYWwgZGF0YSBpbiBjYXNlIHRoZSBj
bGllbnRzIGNhY2hlZCB2YWx1ZSBkaWZmZXJzIGZyb20gd2hhdCB0aGUNCnNlcnZlciB3b3VsZCBu
b3JtYWxseSBzZW5kLg0KDQoNCkl0IGlzIGdlbmVyYWxseSBpbXBvc3NpYmxlIHRvIHJlY292ZXIg
ZnJvbSBhIFRMUyBoYW5kc2hha2UgZmFpbHVyZS4NCkl0IG5vcm1hbGx5IHJlcXVpcmVzIGNsb3N1
cmUgb2YgdGhlIGV4aXN0aW5nIGNvbm5lY3Rpb24gYW5kIG9wZW5pbmcNCm9mIGEgbmV3IGNvbm5l
Y3Rpb24gYmVjYXVzZSBpdCBpcyBjb21wbGV0ZWx5IHVuc3BlY2lmaWVkIGhvdyB0bw0KcmVjb3Zl
ciBmcm9tIGEgVExTIGhhbmRzaGFrZSBmYWlsdXJlIG9uIGEgY29ubmVjdGlvbiAoYW5kIGhvdyB0
bw0KY2xlYXIgdGhlIG5ldHdvcmsgcGlwZSBmcm9tIHVucHJvY2Vzc2VkIGRhdGEgZnJvbSB0aGUg
cHJldmlvdXMgaGFuZHNoYWtlKS4NCg0KSWYgYSBjbGllbnQtc2lkZSBwcm94eSB0cmF2ZXJzYWwg
aXMgaW52b2x2ZWQsIGEgZnVsbCBhcHAtbGV2ZWwgcHJveHkNCmhhbmRzaGFrZSBpcyByZXF1aXJl
ZC4gIElmIHByb3h5IHRyYXZlcnNhbCByZXF1aXJlcyBhbiBPVFAgYXV0aGVudGljYXRpb24sDQpp
dCB3aWxsIGJlIGNvbXBsZXRlbHkgaW1wb3NzaWJsZSB3aXRob3V0IHVzZXIgaW50ZXJhY3Rpb24u
DQoNCg0KLU1hcnRpbg0KX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX18NClRMUyBtYWlsaW5nIGxpc3QNClRMU0BpZXRmLm9yZw0KaHR0cHM6Ly93d3cuaWV0Zi5v
cmcvbWFpbG1hbi9saXN0aW5mby90bHMNCg==

From Nicolas.Williams@oracle.com  Tue May 11 08:23:07 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 F28C73A6CE3 for <tls@core3.amsl.com>; Tue, 11 May 2010 08:23:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.68
X-Spam-Level: 
X-Spam-Status: No, score=-3.68 tagged_above=-999 required=5 tests=[AWL=0.504,  BAYES_40=-0.185, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 Nah3BTaUjRTY for <tls@core3.amsl.com>; Tue, 11 May 2010 08:23:05 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 336E53A689C for <tls@ietf.org>; Tue, 11 May 2010 08:22:40 -0700 (PDT)
Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4BFMD0r017346 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 May 2010 15:22:14 GMT
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4B7P2F0022096; Tue, 11 May 2010 15:22:10 GMT
Received: from abhmt013.oracle.com by acsmt355.oracle.com with ESMTP id 255168581273591327; Tue, 11 May 2010 08:22:07 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 11 May 2010 08:22:03 -0700
Date: Tue, 11 May 2010 10:21:54 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Martin Rex <mrex@sap.com>
Message-ID: <20100511152153.GF9429@oracle.com>
References: <20100510221531.GC9429@oracle.com> <201005111339.o4BDdoYQ009725@fs4113.wdf.sap.corp>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <201005111339.o4BDdoYQ009725@fs4113.wdf.sap.corp>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: rcsinet15.oracle.com [148.87.113.117]
X-CT-RefId: str=0001.0A090204.4BE97626.0205:SCFMA4539811,ss=1,fgs=0
Cc: paul.hoffman@vpnc.org, tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
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: Tue, 11 May 2010 15:23:07 -0000

On Tue, May 11, 2010 at 03:39:50PM +0200, Martin Rex wrote:
> Nicolas Williams wrote:
> > Well...  Many applications might not.  Can the handshake be retried
> > transparently to the application?  Or will the application have to
> > close() its socket and re-connect()?
> 
> Re-thinking this scenario, I do not think that is a workable approach.
> 
> The reason why I originally asked for using a (sha-1) hash value over the
> replaced data instead of a simple, server-assigned identifier,
> was robustness.  Going through a handshake failure is _NOT_ an option.

That's what I expect as well, that handshake failure is not transparent
to _all_ applications, and that any retry logic will have to be in the
application.  That makes this protocol a bit problematic -- failures
will be rare, no doubt, so rare that we might not care, but when they
happen the application won't know that the failure is not permanent.
For browsers that may not be a problem (the user will just reload); for
non-browser apps (and scripts running in the browser!) this could be a
problem.

> I wanted to avoid the cache of the server and client to get out-of-sync,
> and the use of a sha-1 hash value over the real data instead of that
> data should be sufficiently robust so that the server will send the
> real data in case the clients cached value differs from what the
> server would normally send.

I don't see how to recover from collisions, transparently to apps,
without either adding round-trips, which is supposed to be a big no-no,
or making handshakes retriable (I'm assuming they aren't).

> It is generally impossible to recover from a TLS handshake failure.

Well, the app can retry.

Also, StartTLS protocols might be able to retry without the application
having to disconnect/reconnect.

> It normally requires closure of the existing connection and opening
> of a new connection because it is completely unspecified how to
> recover from a TLS handshake failure on a connection (and how to
> clear the network pipe from unprocessed data from the previous handshake).

It's easy to clear the "pipe" since the records have lengths.

> If a client-side proxy traversal is involved, a full app-level proxy
> handshake is required.  If proxy traversal requires an OTP authentication,
> it will be completely impossible without user interaction.

Is there such a thing as proxies that require OTP for authentication?

Nico
-- 

From stefan@aaa-sec.com  Tue May 11 08:46:10 2010
Return-Path: <stefan@aaa-sec.com>
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 148F53A6995 for <tls@core3.amsl.com>; Tue, 11 May 2010 08:46:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.2
X-Spam-Level: 
X-Spam-Status: No, score=0.2 tagged_above=-999 required=5 tests=[BAYES_05=-1.11, HELO_EQ_SE=0.35, RCVD_IN_BL_SPAMCOP_NET=1.96, RCVD_IN_DNSWL_LOW=-1]
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 bz9K6vpL7dRV for <tls@core3.amsl.com>; Tue, 11 May 2010 08:46:09 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id 111823A68C7 for <tls@ietf.org>; Tue, 11 May 2010 08:46:08 -0700 (PDT)
Received: from s57.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id C90F02AC63B for <tls@ietf.org>; Tue, 11 May 2010 17:46:00 +0200 (CEST)
Received: (qmail 3174 invoked from network); 11 May 2010 15:45:54 -0000
Received: from 77-44-20-79.xdsl.business-dsl.co.uk (HELO [42.33.36.86]) (stefan@fiddler.nu@[77.44.20.79]) (envelope-sender <stefan@aaa-sec.com>) by s57.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <Nicolas.Williams@oracle.com>; 11 May 2010 15:45:54 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Tue, 11 May 2010 16:45:51 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: Nicolas Williams <Nicolas.Williams@oracle.com>, Martin Rex <mrex@sap.com>
Message-ID: <C80F3A3F.AB88%stefan@aaa-sec.com>
Thread-Topic: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
Thread-Index: AcrxIQhcGLPHIQYwnUSfI4LJh/emKg==
In-Reply-To: <20100511152153.GF9429@oracle.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: paul.hoffman@vpnc.org, tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
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: Tue, 11 May 2010 15:46:10 -0000

Wouldn't this be solved automatically if the cache is flushed upon failure?

/Stefan


On 10-05-11 5:21 PM, "Nicolas Williams" <Nicolas.Williams@oracle.com> wrote:

> On Tue, May 11, 2010 at 03:39:50PM +0200, Martin Rex wrote:
>> Nicolas Williams wrote:
>>> Well...  Many applications might not.  Can the handshake be retried
>>> transparently to the application?  Or will the application have to
>>> close() its socket and re-connect()?
>> 
>> Re-thinking this scenario, I do not think that is a workable approach.
>> 
>> The reason why I originally asked for using a (sha-1) hash value over the
>> replaced data instead of a simple, server-assigned identifier,
>> was robustness.  Going through a handshake failure is _NOT_ an option.
> 
> That's what I expect as well, that handshake failure is not transparent
> to _all_ applications, and that any retry logic will have to be in the
> application.  That makes this protocol a bit problematic -- failures
> will be rare, no doubt, so rare that we might not care, but when they
> happen the application won't know that the failure is not permanent.
> For browsers that may not be a problem (the user will just reload); for
> non-browser apps (and scripts running in the browser!) this could be a
> problem.
> 
>> I wanted to avoid the cache of the server and client to get out-of-sync,
>> and the use of a sha-1 hash value over the real data instead of that
>> data should be sufficiently robust so that the server will send the
>> real data in case the clients cached value differs from what the
>> server would normally send.
> 
> I don't see how to recover from collisions, transparently to apps,
> without either adding round-trips, which is supposed to be a big no-no,
> or making handshakes retriable (I'm assuming they aren't).
> 
>> It is generally impossible to recover from a TLS handshake failure.
> 
> Well, the app can retry.
> 
> Also, StartTLS protocols might be able to retry without the application
> having to disconnect/reconnect.
> 
>> It normally requires closure of the existing connection and opening
>> of a new connection because it is completely unspecified how to
>> recover from a TLS handshake failure on a connection (and how to
>> clear the network pipe from unprocessed data from the previous handshake).
> 
> It's easy to clear the "pipe" since the records have lengths.
> 
>> If a client-side proxy traversal is involved, a full app-level proxy
>> handshake is required.  If proxy traversal requires an OTP authentication,
>> it will be completely impossible without user interaction.
> 
> Is there such a thing as proxies that require OTP for authentication?
> 
> Nico



From Nicolas.Williams@oracle.com  Tue May 11 08:58:14 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 B709828C152 for <tls@core3.amsl.com>; Tue, 11 May 2010 08:58:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.968
X-Spam-Level: 
X-Spam-Status: No, score=-3.968 tagged_above=-999 required=5 tests=[AWL=0.771,  BAYES_20=-0.74, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 Cu8XKMYjh4kh for <tls@core3.amsl.com>; Tue, 11 May 2010 08:58:14 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id EBD7E3A6985 for <tls@ietf.org>; Tue, 11 May 2010 08:58:13 -0700 (PDT)
Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4BFvv0T018909 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 May 2010 15:57:58 GMT
Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4BFKCt3023766; Tue, 11 May 2010 15:57:56 GMT
Received: from abhmt012.oracle.com by acsmt355.oracle.com with ESMTP id 255301901273593467; Tue, 11 May 2010 08:57:47 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 11 May 2010 08:57:44 -0700
Date: Tue, 11 May 2010 10:57:38 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Stefan Santesson <stefan@aaa-sec.com>
Message-ID: <20100511155738.GJ9429@oracle.com>
References: <20100511152153.GF9429@oracle.com> <C80F3A3F.AB88%stefan@aaa-sec.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <C80F3A3F.AB88%stefan@aaa-sec.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: rcsinet15.oracle.com [148.87.113.117]
X-CT-RefId: str=0001.0A090203.4BE97E86.01D7:SCFMA4539811,ss=1,fgs=0
Cc: paul.hoffman@vpnc.org, tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
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: Tue, 11 May 2010 15:58:14 -0000

On Tue, May 11, 2010 at 04:45:51PM +0200, Stefan Santesson wrote:
> Wouldn't this be solved automatically if the cache is flushed upon failure?

Not really:

a) the failed handshake will be visible to the application
(handshake_failure is a fatal error);

b) the failure will eventually happen again (since the user will most
likely want to talk to the same servers whose objects' checksums
collided.

I think you'll want to say that the cache must not be flushed, but
rather that objects with colliding checksums must be flagged as such so
that they are never used again via this extension.

Again, I expect this will not often be a problem, but when and if it is
then this problem might be difficult to diagnose and re-occur too often.

I think this argues for a cryptographic hash.  Collisions are not a
security problem here, but they are an operational problem.  IMO this
rules out FNV-1a.  Also, as Uri points out, you will want to have larger
numbers of hash bits (64 is too few for this application).

Nico
-- 

From Nicolas.Williams@oracle.com  Tue May 11 09:05:32 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 DA5203A6D1D for <tls@core3.amsl.com>; Tue, 11 May 2010 09:05:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.913
X-Spam-Level: 
X-Spam-Status: No, score=-4.913 tagged_above=-999 required=5 tests=[AWL=1.685,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 mTUdXz1AVEp9 for <tls@core3.amsl.com>; Tue, 11 May 2010 09:05:32 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id D3EEB3A6D1C for <tls@ietf.org>; Tue, 11 May 2010 09:05:31 -0700 (PDT)
Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4BG5E9K006247 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 May 2010 16:05:16 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4B6Oun1016336; Tue, 11 May 2010 16:05:06 GMT
Received: from abhmt010.oracle.com by acsmt355.oracle.com with ESMTP id 255329951273593883; Tue, 11 May 2010 09:04:43 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 11 May 2010 09:04:39 -0700
Date: Tue, 11 May 2010 11:04:35 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
Message-ID: <20100511160434.GK9429@oracle.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: rcsinet13.oracle.com [148.87.113.125]
X-CT-RefId: str=0001.0A090205.4BE9803D.003D:SCFMA4539811,ss=1,fgs=0
Cc: tls@ietf.org
Subject: Re: [TLS] Consensus Call: FNV vs SHA1
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: Tue, 11 May 2010 16:05:33 -0000

On Mon, May 10, 2010 at 10:39:28AM -0700, Joseph Salowey (jsalowey) wrote:
> I don't see much new being added to this discussion at this point.  I'd
> like to close on this.  If you have an opinion please indicate if:
> 
> a) You favor SHA-1
> b) You favor FNV-1a

Subsequent discussion shows that hash collisions are a problem for this
protocol, though not a security problem.  As such I believe that (b) is
now out of order, and therefore I now favor (a), with less or no
truncation.

I believe additional text is required to explain what to do when
collisions result, and also how to detect collisions (I think collisions
can only be detected heuristically on handshake failure, but can
confirmed on subsequent retry).

I believe too that a protocol design where collisions are avoided
altogether is not desirable.  But something to consider might be to send
not just a checksum/hash of cached objects, but also the name of the
first cert in any cert/cert chain or other nameable object -- this would
make collisions entirely avoidable by having operators check for them
before installing new certs.

Nico
-- 

From stefan@aaa-sec.com  Tue May 11 09:11:42 2010
Return-Path: <stefan@aaa-sec.com>
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 6418B3A691B for <tls@core3.amsl.com>; Tue, 11 May 2010 09:11:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.545
X-Spam-Level: 
X-Spam-Status: No, score=-0.545 tagged_above=-999 required=5 tests=[AWL=0.744,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_BL_SPAMCOP_NET=1.96,  RCVD_IN_DNSWL_LOW=-1]
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 rzQHaYalcUSk for <tls@core3.amsl.com>; Tue, 11 May 2010 09:11:41 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id 28BF93A6936 for <tls@ietf.org>; Tue, 11 May 2010 09:11:40 -0700 (PDT)
Received: from s24.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 31F9229CAE3 for <tls@ietf.org>; Tue, 11 May 2010 18:11:35 +0200 (CEST)
Received: (qmail 33422 invoked from network); 11 May 2010 16:11:28 -0000
Received: from 77-44-20-79.xdsl.business-dsl.co.uk (HELO [42.33.36.86]) (stefan@fiddler.nu@[77.44.20.79]) (envelope-sender <stefan@aaa-sec.com>) by s24.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <Nicolas.Williams@oracle.com>; 11 May 2010 16:11:28 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Tue, 11 May 2010 17:11:23 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: Nicolas Williams <Nicolas.Williams@oracle.com>
Message-ID: <C80F403B.AB91%stefan@aaa-sec.com>
Thread-Topic: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
Thread-Index: AcrxJJmBIuwspOogCUSLktQjT18WAQ==
In-Reply-To: <20100511155738.GJ9429@oracle.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: paul.hoffman@vpnc.org, tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
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: Tue, 11 May 2010 16:11:42 -0000

On 10-05-11 5:57 PM, "Nicolas Williams" <Nicolas.Williams@oracle.com> wrote:

> On Tue, May 11, 2010 at 04:45:51PM +0200, Stefan Santesson wrote:
>> Wouldn't this be solved automatically if the cache is flushed upon failure?
> 
> Not really:
> 
> a) the failed handshake will be visible to the application
> (handshake_failure is a fatal error);
> 

Yes

> b) the failure will eventually happen again (since the user will most
> likely want to talk to the same servers whose objects' checksums
> collided.
> 

Yes, and with the cash for that server flushed, the client will be bound to
retry without caching (since it has no data cached anymore).

The client will then (typically) update it's cache on the next successful
handshake and problem should be fixed.

/Stefan

> I think you'll want to say that the cache must not be flushed, but
> rather that objects with colliding checksums must be flagged as such so
> that they are never used again via this extension.
> 
> Again, I expect this will not often be a problem, but when and if it is
> then this problem might be difficult to diagnose and re-occur too often.
> 
> I think this argues for a cryptographic hash.  Collisions are not a
> security problem here, but they are an operational problem.  IMO this
> rules out FNV-1a.  Also, as Uri points out, you will want to have larger
> numbers of hash bits (64 is too few for this application).
> 
> Nico



From simon@josefsson.org  Tue May 11 09:19:53 2010
Return-Path: <simon@josefsson.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 43D0B3A6A80 for <tls@core3.amsl.com>; Tue, 11 May 2010 09:19:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.371
X-Spam-Level: 
X-Spam-Status: No, score=-2.371 tagged_above=-999 required=5 tests=[AWL=0.228,  BAYES_00=-2.599]
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 5e4eR+Ndz4OP for <tls@core3.amsl.com>; Tue, 11 May 2010 09:19:51 -0700 (PDT)
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39]) by core3.amsl.com (Postfix) with ESMTP id D68773A6A09 for <tls@ietf.org>; Tue, 11 May 2010 09:19:49 -0700 (PDT)
Received: from mocca (c80-216-25-148.bredband.comhem.se [80.216.25.148]) (authenticated bits=0) by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o4BGJS9c012059 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 11 May 2010 18:19:30 +0200
From: Simon Josefsson <simon@josefsson.org>
To: Nicolas Williams <Nicolas.Williams@oracle.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com> <20100511160434.GK9429@oracle.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100511:tls@ietf.org::zLojnIt8qvRy7Eax:76eb
X-Hashcash: 1:22:100511:jsalowey@cisco.com::kJgp6/NYUH9k0yR6:EnsU
X-Hashcash: 1:22:100511:nicolas.williams@oracle.com::GN3HG+HI6ddDTmn7:rwoo
Date: Tue, 11 May 2010 18:19:28 +0200
In-Reply-To: <20100511160434.GK9429@oracle.com> (Nicolas Williams's message of "Tue, 11 May 2010 11:04:35 -0500")
Message-ID: <87y6fqv2b3.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Virus-Scanned: clamav-milter 0.96 at yxa-v
X-Virus-Status: Clean
Cc: tls@ietf.org
Subject: Re: [TLS] Consensus Call: FNV vs SHA1
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: Tue, 11 May 2010 16:19:53 -0000

Nicolas Williams <Nicolas.Williams@oracle.com> writes:

> On Mon, May 10, 2010 at 10:39:28AM -0700, Joseph Salowey (jsalowey) wrote:
>> I don't see much new being added to this discussion at this point.  I'd
>> like to close on this.  If you have an opinion please indicate if:
>> 
>> a) You favor SHA-1
>> b) You favor FNV-1a
>
> Subsequent discussion shows that hash collisions are a problem for this
> protocol, though not a security problem.  As such I believe that (b) is
> now out of order, and therefore I now favor (a), with less or no
> truncation.

I'd like to see the document nail down what properties is required from
the digest, and explain the hash collision problem.  If hash collisions
really is a problem, that prompts the old question if we need hash
agility after all.  It isn't clear to me that moving from FNV-1a to
SHA-1 actually improves anything wrt collisions.

/Simon

From Nicolas.Williams@oracle.com  Tue May 11 09:34:12 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 BBE013A6A80 for <tls@core3.amsl.com>; Tue, 11 May 2010 09:34:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.947
X-Spam-Level: 
X-Spam-Status: No, score=-4.947 tagged_above=-999 required=5 tests=[AWL=1.651,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 NEzzg1bxXgQM for <tls@core3.amsl.com>; Tue, 11 May 2010 09:34:12 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id E36893A68DE for <tls@ietf.org>; Tue, 11 May 2010 09:34:11 -0700 (PDT)
Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4BGXs4Z019190 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 May 2010 16:33:56 GMT
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4BCI6an010760; Tue, 11 May 2010 16:33:52 GMT
Received: from abhmt019.oracle.com by acsmt355.oracle.com with ESMTP id 255439181273595626; Tue, 11 May 2010 09:33:46 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 11 May 2010 09:33:46 -0700
Date: Tue, 11 May 2010 11:33:41 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Stefan Santesson <stefan@aaa-sec.com>
Message-ID: <20100511163339.GL9429@oracle.com>
References: <20100511155738.GJ9429@oracle.com> <C80F403B.AB91%stefan@aaa-sec.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <C80F403B.AB91%stefan@aaa-sec.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: rcsinet15.oracle.com [148.87.113.117]
X-CT-RefId: str=0001.0A090209.4BE986F5.00BF:SCFMA4539811,ss=1,fgs=0
Cc: paul.hoffman@vpnc.org, tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
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: Tue, 11 May 2010 16:34:12 -0000

On Tue, May 11, 2010 at 05:11:23PM +0200, Stefan Santesson wrote:
> On 10-05-11 5:57 PM, "Nicolas Williams" <Nicolas.Williams@oracle.com> wrote:
> > b) the failure will eventually happen again (since the user will most
> > likely want to talk to the same servers whose objects' checksums
> > collided.
> > 
> 
> Yes, and with the cash for that server flushed, the client will be bound to
> retry without caching (since it has no data cached anymore).

It's not a forgone conclusion that the client will retry.  The retry
will have to be at the application layer, and the application might not
be prepared to retry (since it won't know that the fatal error isn't
quite so fatal).

> The client will then (typically) update it's cache on the next successful
> handshake and problem should be fixed.

If one collision arises once, it will arise again, and again, and again
until all or all-but-one of the colliding objects are retired from use.
The client will have to detect collisions and then mark colliding
objects as must-not-use-from-cache.

Detecting collisions is hard.  If the application does not retry then
you can only heuristically decide that fatal errors imply collisions,
which will often not be the case.  If the application does retry then
the collision can be detected.  The server can't detect collisions any
more reliably nor sooner than the client (the server may have less
context than the client), I think.

Nico
-- 

From mike-list@pobox.com  Tue May 11 09:39:00 2010
Return-Path: <mike-list@pobox.com>
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 84F703A69FB for <tls@core3.amsl.com>; Tue, 11 May 2010 09:39:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.555
X-Spam-Level: 
X-Spam-Status: No, score=-0.555 tagged_above=-999 required=5 tests=[AWL=-0.556, BAYES_50=0.001]
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 N9uiiKyy9jmd for <tls@core3.amsl.com>; Tue, 11 May 2010 09:38:59 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id BD2283A6840 for <tls@ietf.org>; Tue, 11 May 2010 09:38:48 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 3FA04B2F43; Tue, 11 May 2010 12:38:37 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=XA7DM8GhCfPX PgMn6JTPUQpAB1k=; b=e3ADEWF9j2bn04A8Xc2RExHLT7IWwYGp0RAcyxSYM31G Kk0g9HilzTeRWAgGSDnRLewSaqapbVCEUp2th5iBoP24d9Sam/7/u0azc6liJtjf D4djlF+ho1Sv5uKSY577+cd5S2EzLiV8MVvXPAKuuBlg0orei8dNwZrgNGFwx/E=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=Q4OCgj SchtBIWqIFFHtBnjwt9hofoajmSBddHaFpMVlbRGrNbjqs7fYA+S3D9XH/hRDmgM +V+tUVtvNDtvcLmIp9eh1h5NXCW6jDoWzdoykf2H9iafGhESzlEXuSxyNo2ztAPv aFaJ2kikm9WToXlurqNH4KcqSM2cxaiVZ9bSM=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 1B817B2F42; Tue, 11 May 2010 12:38:35 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 5BB96B2F3D; Tue, 11 May 2010 12:38:32 -0400 (EDT)
Message-ID: <4BE98807.6070404@pobox.com>
Date: Tue, 11 May 2010 09:38:31 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: Nicolas Williams <Nicolas.Williams@oracle.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com> <20100511160434.GK9429@oracle.com>
In-Reply-To: <20100511160434.GK9429@oracle.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: A48FA770-5D1B-11DF-BE4B-D033EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Consensus Call: FNV vs SHA1
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: Tue, 11 May 2010 16:39:00 -0000

With a birthday collision of 64 bits (thanks Dave for reminding me of
this), you would need about 6 million server certificates to achieve a
probability of 1 in a million that 2 of those 6 million certificates
hash to the same value.  Since servers change certificates about once
a year, and a client doesn't need to remember any hashes of expired
certificates, and there is no problem if the certificates of unrelated
servers collide, this seems to be a non-issue.

The only question is whether FNV is as good of a hash function as is
required to resist the birthday attack.  My simple test showed that it
might be, but IANAC and don't know how to determine that.

Mike



Nicolas Williams wrote:
> On Mon, May 10, 2010 at 10:39:28AM -0700, Joseph Salowey (jsalowey) wrote:
>> I don't see much new being added to this discussion at this point.  I'd
>> like to close on this.  If you have an opinion please indicate if:
>>
>> a) You favor SHA-1
>> b) You favor FNV-1a
> 
> Subsequent discussion shows that hash collisions are a problem for this
> protocol, though not a security problem.  As such I believe that (b) is
> now out of order, and therefore I now favor (a), with less or no
> truncation.
> 
> I believe additional text is required to explain what to do when
> collisions result, and also how to detect collisions (I think collisions
> can only be detected heuristically on handshake failure, but can
> confirmed on subsequent retry).
> 
> I believe too that a protocol design where collisions are avoided
> altogether is not desirable.  But something to consider might be to send
> not just a checksum/hash of cached objects, but also the name of the
> first cert in any cert/cert chain or other nameable object -- this would
> make collisions entirely avoidable by having operators check for them
> before installing new certs.
> 
> Nico

From mrex@sap.com  Tue May 11 09:41:13 2010
Return-Path: <mrex@sap.com>
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 E63C63A69E4 for <tls@core3.amsl.com>; Tue, 11 May 2010 09:41:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.775
X-Spam-Level: 
X-Spam-Status: No, score=-7.775 tagged_above=-999 required=5 tests=[AWL=-0.126, BAYES_50=0.001, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_HI=-8]
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 p0SdrrTfzjtX for <tls@core3.amsl.com>; Tue, 11 May 2010 09:41:12 -0700 (PDT)
Received: from smtpde03.sap-ag.de (smtpde03.sap-ag.de [155.56.68.140]) by core3.amsl.com (Postfix) with ESMTP id 6094C3A6A0A for <tls@ietf.org>; Tue, 11 May 2010 09:41:06 -0700 (PDT)
Received: from mail.sap.corp by smtpde03.sap-ag.de (26) with ESMTP id o4BGerEZ011026 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 11 May 2010 18:40:53 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201005111640.o4BGeqFZ020630@fs4113.wdf.sap.corp>
To: Nicolas.Williams@oracle.com (Nicolas Williams)
Date: Tue, 11 May 2010 18:40:52 +0200 (MEST)
In-Reply-To: <20100511152153.GF9429@oracle.com> from "Nicolas Williams" at May 11, 10 10:21:54 am
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal07
X-SAP: out
Cc: paul.hoffman@vpnc.org, tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
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/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: Tue, 11 May 2010 16:41:14 -0000

Nicolas Williams wrote:
> 
> > I wanted to avoid the cache of the server and client to get out-of-sync,
> > and the use of a sha-1 hash value over the real data instead of that
> > data should be sufficiently robust so that the server will send the
> > real data in case the clients cached value differs from what the
> > server would normally send.
> 
> I don't see how to recover from collisions, transparently to apps,
> without either adding round-trips, which is supposed to be a big no-no,
> or making handshakes retriable (I'm assuming they aren't).

A theoretical possibility would be some kind of "epoch" counter by
the server (or more general "peer", when caching is later extended
to apply to client-side handshake data as well).  The server would
have to bump that counter whenever it knows (or can not rule out)
that the cachable data has changed.

> 
> > It is generally impossible to recover from a TLS handshake failure.
> 
> Well, the app can retry.
> 
> Also, StartTLS protocols might be able to retry without the application
> having to disconnect/reconnect.
> 
> > It normally requires closure of the existing connection and opening
> > of a new connection because it is completely unspecified how to
> > recover from a TLS handshake failure on a connection (and how to
> > clear the network pipe from unprocessed data from the previous handshake).
> 
> It's easy to clear the "pipe" since the records have lengths.

There is *NO* guarantee that there are _only_ valid and complete TLS records
left in the pipe.

Flushing an orphaned closure alert is something that may be used to clear
a TLS connection after successful communication and a closure alert
handshake http://tools.ietf.org/html/rfc5246#section-7.2.1
but the current TLS spec doesn't provide grounds for interoperably clearing
a connection from residue of a failed TLS handshake.  It amounts to
heuristics based on good faith.


> 
> > If a client-side proxy traversal is involved, a full app-level proxy
> > handshake is required.  If proxy traversal requires an OTP authentication,
> > it will be completely impossible without user interaction.
> 
> Is there such a thing as proxies that require OTP for authentication?

I think that SOCKS has been used with OTP authentication.

TLS does't imply HTTP-over-TLS and client-side proxy doesn't imply
HTTP-proxy with CONNECT method and header-based authentication.


-Martin

From DPKemp@missi.ncsc.mil  Tue May 11 09:48:46 2010
Return-Path: <DPKemp@missi.ncsc.mil>
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 0BF3D3A67CC for <tls@core3.amsl.com>; Tue, 11 May 2010 09:48:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.368
X-Spam-Level: 
X-Spam-Status: No, score=-5.368 tagged_above=-999 required=5 tests=[AWL=1.231,  BAYES_00=-2.599, 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 WohreLGgtWER for <tls@core3.amsl.com>; Tue, 11 May 2010 09:48:45 -0700 (PDT)
Received: from stingray.missi.ncsc.mil (stingray.missi.ncsc.mil [144.51.50.20]) by core3.amsl.com (Postfix) with ESMTP id 667A23A691E for <tls@ietf.org>; Tue, 11 May 2010 09:48:44 -0700 (PDT)
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-MimeOLE: Produced By Microsoft Exchange V6.5
Date: Tue, 11 May 2010 12:48:23 -0400
Message-ID: <201005111648.o4BGmPmt001749@stingray.missi.ncsc.mil>
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] Consensus Call: FNV vs SHA1
Thread-Index: AcrwZ71PRYYRYux+TAK9atVr3xufHAAwfsPA
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com>
From: "Kemp, David P." <DPKemp@missi.ncsc.mil>
To: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>, <tls@ietf.org>
X-OriginalArrivalTime: 11 May 2010 16:49:38.0453 (UTC) FILETIME=[F1B3DC50:01CAF129]
Subject: Re: [TLS] Consensus Call: FNV vs SHA1
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: Tue, 11 May 2010 16:48:46 -0000

 b) FNV-1a

From Nicolas.Williams@oracle.com  Tue May 11 10:02:30 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 21E5C3A691E for <tls@core3.amsl.com>; Tue, 11 May 2010 10:02:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.05
X-Spam-Level: 
X-Spam-Status: No, score=-4.05 tagged_above=-999 required=5 tests=[AWL=0.689,  BAYES_20=-0.74, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 Vn6t-epi4MrB for <tls@core3.amsl.com>; Tue, 11 May 2010 10:02:29 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 0E1883A6920 for <tls@ietf.org>; Tue, 11 May 2010 10:02:29 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4BH2BoT022857 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 May 2010 17:02:13 GMT
Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4BCuaqJ030975; Tue, 11 May 2010 17:02:10 GMT
Received: from abhmt017.oracle.com by acsmt354.oracle.com with ESMTP id 232138941273597319; Tue, 11 May 2010 10:01:59 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 11 May 2010 10:01:58 -0700
Date: Tue, 11 May 2010 12:01:52 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Martin Rex <mrex@sap.com>
Message-ID: <20100511170151.GM9429@oracle.com>
References: <20100511152153.GF9429@oracle.com> <201005111640.o4BGeqFZ020630@fs4113.wdf.sap.corp>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <201005111640.o4BGeqFZ020630@fs4113.wdf.sap.corp>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090205.4BE98D97.00BA:SCFMA922111,ss=1,fgs=0
Cc: paul.hoffman@vpnc.org, tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
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: Tue, 11 May 2010 17:02:30 -0000

On Tue, May 11, 2010 at 06:40:52PM +0200, Martin Rex wrote:
> Nicolas Williams wrote:
> > I don't see how to recover from collisions, transparently to apps,
> > without either adding round-trips, which is supposed to be a big no-no,
> > or making handshakes retriable (I'm assuming they aren't).
> 
> A theoretical possibility would be some kind of "epoch" counter by
> the server (or more general "peer", when caching is later extended
> to apply to client-side handshake data as well).  The server would
> have to bump that counter whenever it knows (or can not rule out)
> that the cachable data has changed.

That only helps when colliding objects all come from the same server.

> > > It normally requires closure of the existing connection and opening
> > > of a new connection because it is completely unspecified how to
> > > recover from a TLS handshake failure on a connection (and how to
> > > clear the network pipe from unprocessed data from the previous handshake).
> > 
> > It's easy to clear the "pipe" since the records have lengths.
> 
> There is *NO* guarantee that there are _only_ valid and complete TLS records
> left in the pipe.

Yeah, TLS handshakes are just not retriable.  You could have an
extension that makes them retriable, but if the TLS-GSS extension
foundered on state machine issues resulting from adding round-trips,
then so would an extension that makes handshakes retriable.

Nico
-- 

From Nicolas.Williams@oracle.com  Tue May 11 10:04:59 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 57D683A69CA for <tls@core3.amsl.com>; Tue, 11 May 2010 10:04:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.248
X-Spam-Level: 
X-Spam-Status: No, score=-4.248 tagged_above=-999 required=5 tests=[AWL=0.861,  BAYES_05=-1.11, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 hla85vzoSxzU for <tls@core3.amsl.com>; Tue, 11 May 2010 10:04:57 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 295E03A6985 for <tls@ietf.org>; Tue, 11 May 2010 10:04:57 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4BH4hxI029409 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 May 2010 17:04:44 GMT
Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4BCuasJ030975; Tue, 11 May 2010 17:04:42 GMT
Received: from abhmt012.oracle.com by acsmt353.oracle.com with ESMTP id 232148681273597464; Tue, 11 May 2010 10:04:24 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 11 May 2010 10:04:23 -0700
Date: Tue, 11 May 2010 12:04:19 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: "Michael D'Errico" <mike-list@pobox.com>
Message-ID: <20100511170418.GN9429@oracle.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com> <20100511160434.GK9429@oracle.com> <4BE98807.6070404@pobox.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4BE98807.6070404@pobox.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090201.4BE98E2D.00A7:SCFMA922111,ss=1,fgs=0
Cc: tls@ietf.org
Subject: Re: [TLS] Consensus Call: FNV vs SHA1
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: Tue, 11 May 2010 17:04:59 -0000

On Tue, May 11, 2010 at 09:38:31AM -0700, Michael D'Errico wrote:
> With a birthday collision of 64 bits (thanks Dave for reminding me of
> this), you would need about 6 million server certificates to achieve a
> probability of 1 in a million that 2 of those 6 million certificates
> hash to the same value.  Since servers change certificates about once
> a year, and a client doesn't need to remember any hashes of expired
> certificates, and there is no problem if the certificates of unrelated
> servers collide, this seems to be a non-issue.

I agree that collisions will be extremely unlikely.  My concern is how
to recover from them if they occur.

> The only question is whether FNV is as good of a hash function as is
> required to resist the birthday attack.  My simple test showed that it
> might be, but IANAC and don't know how to determine that.

Based on a gut feeling I'd rather go with a cryptographic hash if
collision resistance is desired.  (Though, of course collision
resistance is not the same thing as having a low rate of collisions
with real world inputs.)

Nico
-- 

From prvs=274770b3e0=uri@ll.mit.edu  Tue May 11 10:15:12 2010
Return-Path: <prvs=274770b3e0=uri@ll.mit.edu>
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 E75ED3A6A15 for <tls@core3.amsl.com>; Tue, 11 May 2010 10:15:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.079
X-Spam-Level: 
X-Spam-Status: No, score=-6.079 tagged_above=-999 required=5 tests=[AWL=0.519,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 Vi0+6K0ZEG9w for <tls@core3.amsl.com>; Tue, 11 May 2010 10:15:12 -0700 (PDT)
Received: from mx1.ll.mit.edu (MX1.LL.MIT.EDU [129.55.12.45]) by core3.amsl.com (Postfix) with ESMTP id 089E73A6A05 for <tls@ietf.org>; Tue, 11 May 2010 10:14:56 -0700 (PDT)
Received: from LLE2K7-HUB01.mitll.ad.local (LLE2K7-HUB01.mitll.ad.local) by mx1.ll.mit.edu (unknown) with ESMTP id o4BHEheH020156; Tue, 11 May 2010 13:14:44 -0400
From: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
To: "'Nicolas.Williams@oracle.com'" <Nicolas.Williams@oracle.com>, "'mike-list@pobox.com'" <mike-list@pobox.com>
Date: Tue, 11 May 2010 13:14:43 -0400
Thread-Topic: [TLS] Consensus Call: FNV vs SHA1
Thread-Index: AcrxLBL0Dwc9iAhBQm2sbAA+t/yBjQAAV+PN
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-05-11_04:2010-02-06, 2010-05-11, 2010-05-11 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1005110096
Message-Id: <20100511171457.089E73A6A05@core3.amsl.com>
Cc: "'tls@ietf.org'" <tls@ietf.org>
Subject: Re: [TLS] Consensus Call: FNV vs SHA1
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: Tue, 11 May 2010 17:15:13 -0000

SWYgeW91J3JlIHRhbGtpbmcgYWJvdXQgQmlydGhkYXkgUGFyYWRveCAtIHRoZW4ganVzdCBmaWd1
cmUgb3V0IGhvdyBtYW55IGJpdHMgb2YgaGFzaCBzdWZmaWNlIHRvIG1pbmltaXplIHRoZSByaXNr
IHRvIGFjY2VwdGFibGUgbGV2ZWwuDQoNCklmIHlvdSdyZSB0YWxraW5nIGFib3V0IEJpcnRoZGF5
IFBhcmFkb3ggQVRUQUNLIC0geW91J3JlIGluIHRoZSBDcnlwdG8gcmVhbG0sIGFuZCBzYXkgIndl
bGNvbWUiIHRvIFNIQTI1NiAod2hpY2ggeW91IHByb2JhYmx5IGFscmVhZHkgaGF2ZSBpbiB5b3Vy
IGNvZGUgOi0pLiBBbmQgZG9uJ3QgZm9yZ2V0IGFsZ29yaXRobSBhZ2lsaXR5Lg0KDQpSZWdhcmRz
LA0KVXJpDQoNCi0tLS0tIE9yaWdpbmFsIE1lc3NhZ2UgLS0tLS0NCkZyb206IHRscy1ib3VuY2Vz
QGlldGYub3JnIDx0bHMtYm91bmNlc0BpZXRmLm9yZz4NClRvOiBNaWNoYWVsIEQnRXJyaWNvIDxt
aWtlLWxpc3RAcG9ib3guY29tPg0KQ2M6IHRsc0BpZXRmLm9yZyA8dGxzQGlldGYub3JnPg0KU2Vu
dDogVHVlIE1heSAxMSAxMzowNDoxOSAyMDEwClN1YmplY3Q6IFJlOiBbVExTXSBDb25zZW5zdXMg
Q2FsbDogRk5WIHZzIFNIQTENCg0KT24gVHVlLCBNYXkgMTEsIDIwMTAgYXQgMDk6Mzg6MzFBTSAt
MDcwMCwgTWljaGFlbCBEJ0VycmljbyB3cm90ZToNCj4gV2l0aCBhIGJpcnRoZGF5IGNvbGxpc2lv
biBvZiA2NCBiaXRzICh0aGFua3MgRGF2ZSBmb3IgcmVtaW5kaW5nIG1lIG9mDQo+IHRoaXMpLCB5
b3Ugd291bGQgbmVlZCBhYm91dCA2IG1pbGxpb24gc2VydmVyIGNlcnRpZmljYXRlcyB0byBhY2hp
ZXZlIGENCj4gcHJvYmFiaWxpdHkgb2YgMSBpbiBhIG1pbGxpb24gdGhhdCAyIG9mIHRob3NlIDYg
bWlsbGlvbiBjZXJ0aWZpY2F0ZXMNCj4gaGFzaCB0byB0aGUgc2FtZSB2YWx1ZS4gIFNpbmNlIHNl
cnZlcnMgY2hhbmdlIGNlcnRpZmljYXRlcyBhYm91dCBvbmNlDQo+IGEgeWVhciwgYW5kIGEgY2xp
ZW50IGRvZXNuJ3QgbmVlZCB0byByZW1lbWJlciBhbnkgaGFzaGVzIG9mIGV4cGlyZWQNCj4gY2Vy
dGlmaWNhdGVzLCBhbmQgdGhlcmUgaXMgbm8gcHJvYmxlbSBpZiB0aGUgY2VydGlmaWNhdGVzIG9m
IHVucmVsYXRlZA0KPiBzZXJ2ZXJzIGNvbGxpZGUsIHRoaXMgc2VlbXMgdG8gYmUgYSBub24taXNz
dWUuDQoNCkkgYWdyZWUgdGhhdCBjb2xsaXNpb25zIHdpbGwgYmUgZXh0cmVtZWx5IHVubGlrZWx5
LiAgTXkgY29uY2VybiBpcyBob3cNCnRvIHJlY292ZXIgZnJvbSB0aGVtIGlmIHRoZXkgb2NjdXIu
DQoNCj4gVGhlIG9ubHkgcXVlc3Rpb24gaXMgd2hldGhlciBGTlYgaXMgYXMgZ29vZCBvZiBhIGhh
c2ggZnVuY3Rpb24gYXMgaXMNCj4gcmVxdWlyZWQgdG8gcmVzaXN0IHRoZSBiaXJ0aGRheSBhdHRh
Y2suICBNeSBzaW1wbGUgdGVzdCBzaG93ZWQgdGhhdCBpdA0KPiBtaWdodCBiZSwgYnV0IElBTkFD
IGFuZCBkb24ndCBrbm93IGhvdyB0byBkZXRlcm1pbmUgdGhhdC4NCg0KQmFzZWQgb24gYSBndXQg
ZmVlbGluZyBJJ2QgcmF0aGVyIGdvIHdpdGggYSBjcnlwdG9ncmFwaGljIGhhc2ggaWYNCmNvbGxp
c2lvbiByZXNpc3RhbmNlIGlzIGRlc2lyZWQuICAoVGhvdWdoLCBvZiBjb3Vyc2UgY29sbGlzaW9u
DQpyZXNpc3RhbmNlIGlzIG5vdCB0aGUgc2FtZSB0aGluZyBhcyBoYXZpbmcgYSBsb3cgcmF0ZSBv
ZiBjb2xsaXNpb25zDQp3aXRoIHJlYWwgd29ybGQgaW5wdXRzLikNCg0KTmljbw0KLS0gDQpfX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXw0KVExTIG1haWxpbmcg
bGlzdA0KVExTQGlldGYub3JnDQpodHRwczovL3d3dy5pZXRmLm9yZy9tYWlsbWFuL2xpc3RpbmZv
L3Rscw0K

From Nicolas.Williams@oracle.com  Tue May 11 10:25:34 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 0E25E3A6D25 for <tls@core3.amsl.com>; Tue, 11 May 2010 10:25:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.009
X-Spam-Level: 
X-Spam-Status: No, score=-5.009 tagged_above=-999 required=5 tests=[AWL=1.589,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 P-GFZ0ZjDOID for <tls@core3.amsl.com>; Tue, 11 May 2010 10:25:33 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 708413A6960 for <tls@ietf.org>; Tue, 11 May 2010 10:23:42 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4BHNRie009881 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 May 2010 17:23:29 GMT
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4B0xRcH017470; Tue, 11 May 2010 17:23:26 GMT
Received: from abhmt009.oracle.com by acsmt355.oracle.com with ESMTP id 232209371273598605; Tue, 11 May 2010 10:23:25 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 11 May 2010 10:23:25 -0700
Date: Tue, 11 May 2010 12:23:20 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
Message-ID: <20100511172320.GP9429@oracle.com>
References: <201005111714.o4BHEm10008512@rcsinet11.oracle.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <201005111714.o4BHEm10008512@rcsinet11.oracle.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090201.4BE99292.0188:SCFMA922111,ss=1,fgs=0
Cc: "'tls@ietf.org'" <tls@ietf.org>
Subject: Re: [TLS] Consensus Call: FNV vs SHA1
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: Tue, 11 May 2010 17:25:34 -0000

On Tue, May 11, 2010 at 01:14:43PM -0400, Blumenthal, Uri - 0668 - MITLL wrote:
> If you're talking about Birthday Paradox - then just figure out how
> many bits of hash suffice to minimize the risk to acceptable level.

Yes.

> If you're talking about Birthday Paradox ATTACK - you're in the Crypto
> realm, and say "welcome" to SHA256 (which you probably already have in
> your code :-). And don't forget algorithm agility.

Well, there's an attack, yes, but it's a _DoS_ attack, and so not really
one we should be too concerned with.  However, if the DoS were
particularly difficult to recover then it'd be a DoS we'd want to
protect against by using a stronger cryptographic hash.  I think this
failure mode will be obnoxious, but not so obnoxious as to require that
we go to SHA-256.

Nico
-- 

From mrex@sap.com  Tue May 11 10:36:43 2010
Return-Path: <mrex@sap.com>
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 0B0663A6D40 for <tls@core3.amsl.com>; Tue, 11 May 2010 10:36:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.767
X-Spam-Level: 
X-Spam-Status: No, score=-7.767 tagged_above=-999 required=5 tests=[AWL=-0.118, BAYES_50=0.001, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_HI=-8]
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 w4xjQgTPkVGc for <tls@core3.amsl.com>; Tue, 11 May 2010 10:36:42 -0700 (PDT)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.171]) by core3.amsl.com (Postfix) with ESMTP id EDDCF3A6A08 for <tls@ietf.org>; Tue, 11 May 2010 10:35:28 -0700 (PDT)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o4BHZFqm005119 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 11 May 2010 19:35:15 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201005111735.o4BHZEl0023818@fs4113.wdf.sap.corp>
To: Nicolas.Williams@oracle.com (Nicolas Williams)
Date: Tue, 11 May 2010 19:35:14 +0200 (MEST)
In-Reply-To: <20100511170151.GM9429@oracle.com> from "Nicolas Williams" at May 11, 10 12:01:52 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal05
X-SAP: out
Cc: paul.hoffman@vpnc.org, tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
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/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: Tue, 11 May 2010 17:36:43 -0000

Nicolas Williams wrote:
> 
> On Tue, May 11, 2010 at 06:40:52PM +0200, Martin Rex wrote:
> > Nicolas Williams wrote:
> > > I don't see how to recover from collisions, transparently to apps,
> > > without either adding round-trips, which is supposed to be a big no-no,
> > > or making handshakes retriable (I'm assuming they aren't).
> > 
> > A theoretical possibility would be some kind of "epoch" counter by
> > the server (or more general "peer", when caching is later extended
> > to apply to client-side handshake data as well).  The server would
> > have to bump that counter whenever it knows (or can not rule out)
> > that the cachable data has changed.
> 
> That only helps when colliding objects all come from the same server.

I assumes that ought to be an implicit requirement,
-- but forgot about the possibility of NAT-style server-side
load-balancing that may send you to a different server on
each connection.

The "prior art" about caching in TLS is TLS session caching,
where the session cache ID is 32-octets...

It appears that in principle, the caching extension should use
mostly the same granularity and scoping as the TLS session cache.


> 
> > > > It normally requires closure of the existing connection and opening
> > > > of a new connection because it is completely unspecified how to
> > > > recover from a TLS handshake failure on a connection (and how to
> > > > clear the network pipe from unprocessed data from the previous handshake).
> > > 
> > > It's easy to clear the "pipe" since the records have lengths.
> > 
> > There is *NO* guarantee that there are _only_ valid and complete TLS records
> > left in the pipe.
> 
> Yeah, TLS handshakes are just not retriable.  You could have an
> extension that makes them retriable, but if the TLS-GSS extension
> foundered on state machine issues resulting from adding round-trips,
> then so would an extension that makes handshakes retriable.


The issue may be more complex.  What about a renegotiation handshake
under protection of a previous ciphersuite?  To what exact state do
you return when the server determines an error trying to process
the clients finished message?  What would it send back, under protection
or without, and what should the client reply, under protection or
without?  To me, that looks like a can of worms.

-Martin

From DPKemp@missi.ncsc.mil  Tue May 11 10:39:00 2010
Return-Path: <DPKemp@missi.ncsc.mil>
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 28B413A6A14 for <tls@core3.amsl.com>; Tue, 11 May 2010 10:39:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.205
X-Spam-Level: 
X-Spam-Status: No, score=-4.205 tagged_above=-999 required=5 tests=[AWL=-0.206, BAYES_50=0.001, 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 M04zz0p+gauU for <tls@core3.amsl.com>; Tue, 11 May 2010 10:38:59 -0700 (PDT)
Received: from stingray.missi.ncsc.mil (stingray.missi.ncsc.mil [144.51.50.20]) by core3.amsl.com (Postfix) with ESMTP id 400793A6A08 for <tls@ietf.org>; Tue, 11 May 2010 10:38:59 -0700 (PDT)
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-MimeOLE: Produced By Microsoft Exchange V6.5
Date: Tue, 11 May 2010 13:38:40 -0400
Message-ID: <201005111738.o4BHchHo004626@stingray.missi.ncsc.mil>
In-Reply-To: <20100510214516.GZ9429@oracle.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] Collisions (Re:  Consensus Call: FNV vs SHA1)
Thread-Index: Acrwilbs+Sjm+lK2Ri2Oc1i9XsV9mAAoEbsA
References: <20100510213035.GX9429@oracle.com> <C80DF458.A5A4%uri@ll.mit.edu> <20100510214516.GZ9429@oracle.com>
From: "Kemp, David P." <DPKemp@missi.ncsc.mil>
To: <tls@ietf.org>
X-OriginalArrivalTime: 11 May 2010 17:39:56.0453 (UTC) FILETIME=[F8921D50:01CAF130]
Subject: Re: [TLS] Collisions (Re:  Consensus Call: FNV vs SHA1)
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: Tue, 11 May 2010 17:39:00 -0000

In general, protocols and standardized data structures may make use of
non-cryptographic hash functions in cases where collisions are
anticipated and well-handled: i.e. as optimizations (optional) rather
than as integrity (required) mechanisms.  PKIX AKI/SKI is an example:

   "The authority key identifier extension provides a means of
   identifying the public key corresponding to the private key=20
   used to sign a CRL. ... This extension is especially useful
   where an issuer has more than one signing key, either due to
   multiple concurrent key pairs or due to changeover."

PKIX suggests two SHA-1 -based methods of generating SKIs (including the
4 bit constant 0100 followed by the 60 least significant bits of the
SHA-1 hash of a public key), and says "Other methods of generating
unique numbers are also acceptable."

The same reflexive "broken algorithm" evaluation concerns may exist for
this use of SHA-1, and FNV would perform the function just as well
without raising any eyebrows.

If a collision did occur, an implementation would have to do an extra
signature validation if it first picked the wrong certificate to
validate a signature.  Not much of a penalty, and one which would have
to be handled anyway for the case where AKI/SKI is not populated at all.

Dave



----- Nico wrote: ----

Aside from that, I think FNV is a great hash function.  Its place will
typically not be in Internet protocols, but in implementations.

[*] I _can_ think of non-cryptographic uses of hash functions in
    Internet protocols, starting with the use we made in GS2.  But in
    general I think we'll want to review such uses carefully.  In the
    case of GS2 it saved us the bother of creating a registry of SASL
    mechanism names for GSS-API mechanisms.  Here the hash is used to
    identify cached items, which seems fine provided that collisions are
    well-handled.  In the GS2 case we decided that collisions were not a
    problem for us (after all, we could always assign new OIDs to GSS
    mechanisms that collide).



From DPKemp@missi.ncsc.mil  Tue May 11 11:04:04 2010
Return-Path: <DPKemp@missi.ncsc.mil>
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 9A3CC3A6BF1 for <tls@core3.amsl.com>; Tue, 11 May 2010 11:04:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.184
X-Spam-Level: 
X-Spam-Status: No, score=-4.184 tagged_above=-999 required=5 tests=[AWL=-0.185, BAYES_50=0.001, 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 cFYYPuH6gPn8 for <tls@core3.amsl.com>; Tue, 11 May 2010 11:04:03 -0700 (PDT)
Received: from stingray.missi.ncsc.mil (stingray.missi.ncsc.mil [144.51.50.20]) by core3.amsl.com (Postfix) with ESMTP id 250CD3A6A83 for <tls@ietf.org>; Tue, 11 May 2010 11:03:59 -0700 (PDT)
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-MimeOLE: Produced By Microsoft Exchange V6.5
Date: Tue, 11 May 2010 14:03:39 -0400
Message-ID: <201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil>
In-Reply-To: <20100511152153.GF9429@oracle.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
Thread-Index: AcrxHeCpHAifkDuWTNmdRxbEEJ5xxgAFKfvQ
References: <20100510221531.GC9429@oracle.com><201005111339.o4BDdoYQ009725@fs4113.wdf.sap.corp> <20100511152153.GF9429@oracle.com>
From: "Kemp, David P." <DPKemp@missi.ncsc.mil>
To: <tls@ietf.org>
X-OriginalArrivalTime: 11 May 2010 18:04:53.0718 (UTC) FILETIME=[75029F60:01CAF134]
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
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: Tue, 11 May 2010 18:04:04 -0000

This sounds like a general problem unrelated to caching.

If a non-browser app cannot recover from failures, what happens when a
bit error gets through multiple layers of detection and correction, or a
DSL connection dies and restarts?   "Stuff happens" all the time, and
humans know how to hit the "retry" button.  An unattended application
that doesn't know how to recover from unexplained errors is not ready
for prime time.

Dave
=20

-----Original Message-----
From: Nicolas Williams

That's what I expect as well, that handshake failure is not transparent
to _all_ applications, and that any retry logic will have to be in the
application.  That makes this protocol a bit problematic -- failures
will be rare, no doubt, so rare that we might not care, but when they
happen the application won't know that the failure is not permanent.
For browsers that may not be a problem (the user will just reload); for
non-browser apps (and scripts running in the browser!) this could be a
problem.


From jwkckid1@ix.netcom.com  Tue May 11 11:08:46 2010
Return-Path: <jwkckid1@ix.netcom.com>
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 B234B3A6A0F for <tls@core3.amsl.com>; Tue, 11 May 2010 11:08:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.332
X-Spam-Level: 
X-Spam-Status: No, score=-0.332 tagged_above=-999 required=5 tests=[AWL=-0.333, BAYES_50=0.001]
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 iI47c3qrLacs for <tls@core3.amsl.com>; Tue, 11 May 2010 11:08:45 -0700 (PDT)
Received: from elasmtp-galgo.atl.sa.earthlink.net (elasmtp-galgo.atl.sa.earthlink.net [209.86.89.61]) by core3.amsl.com (Postfix) with ESMTP id 2551A3A6A83 for <tls@ietf.org>; Tue, 11 May 2010 11:08:44 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=ix.netcom.com; b=NkwaMTRmrmHvo1OwblhFYhPwv+d4IgXy5VSU+30FmelRks9bh9VxqlS7GZZhNXz3; h=Message-ID:Date:From:Reply-To:To:Subject:Mime-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:X-ELNK-Trace:X-Originating-IP;
Received: from [209.86.224.30] (helo=mswamui-chipeau.atl.sa.earthlink.net) by elasmtp-galgo.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from <jwkckid1@ix.netcom.com>) id 1OBtsf-0004qI-NA; Tue, 11 May 2010 14:08:33 -0400
Received: from 99.93.224.206 by webmail.earthlink.net with HTTP; Tue, 11 May 2010 14:08:33 -0400
Message-ID: <262370.1273601313537.JavaMail.root@mswamui-chipeau.atl.sa.earthlink.net>
Date: Tue, 11 May 2010 13:08:33 -0500 (GMT-05:00)
From: "Jeffrey A. Williams" <jwkckid1@ix.netcom.com>
To: "Kemp,David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Mailer: EarthLink Zoo Mail 1.0
X-ELNK-Trace: c8e3929e1e9c87a874cfc7ce3b1ad11381c87f5e519606882e54436c1782f2bd038d8d1cb710e141350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c
X-Originating-IP: 209.86.224.30
Subject: Re: [TLS] Collisions (Re:  Consensus Call: FNV vs SHA1)
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: "Jeffrey A. Williams" <jwkckid1@ix.netcom.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/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: Tue, 11 May 2010 18:08:46 -0000

David and all,

  good points here.  However the consideration of 
continuing the use of SHA-1 is IMO ill advised.  Further
SHA-2 due to key sizes now in question, is also IMO
ill advised.  FNV is fine, but not perfered.  


-----Original Message-----
>From: "Kemp, David P." <DPKemp@missi.ncsc.mil>
>Sent: May 11, 2010 12:38 PM
>To: tls@ietf.org
>Subject: Re: [TLS] Collisions (Re:  Consensus Call: FNV vs SHA1)
>
>In general, protocols and standardized data structures may make use of
>non-cryptographic hash functions in cases where collisions are
>anticipated and well-handled: i.e. as optimizations (optional) rather
>than as integrity (required) mechanisms.  PKIX AKI/SKI is an example:
>
>   "The authority key identifier extension provides a means of
>   identifying the public key corresponding to the private key 
>   used to sign a CRL. ... This extension is especially useful
>   where an issuer has more than one signing key, either due to
>   multiple concurrent key pairs or due to changeover."
>
>PKIX suggests two SHA-1 -based methods of generating SKIs (including the
>4 bit constant 0100 followed by the 60 least significant bits of the
>SHA-1 hash of a public key), and says "Other methods of generating
>unique numbers are also acceptable."
>
>The same reflexive "broken algorithm" evaluation concerns may exist for
>this use of SHA-1, and FNV would perform the function just as well
>without raising any eyebrows.
>
>If a collision did occur, an implementation would have to do an extra
>signature validation if it first picked the wrong certificate to
>validate a signature.  Not much of a penalty, and one which would have
>to be handled anyway for the case where AKI/SKI is not populated at all.
>
>Dave
>
>
>
>----- Nico wrote: ----
>
>Aside from that, I think FNV is a great hash function.  Its place will
>typically not be in Internet protocols, but in implementations.
>
>[*] I _can_ think of non-cryptographic uses of hash functions in
>    Internet protocols, starting with the use we made in GS2.  But in
>    general I think we'll want to review such uses carefully.  In the
>    case of GS2 it saved us the bother of creating a registry of SASL
>    mechanism names for GSS-API mechanisms.  Here the hash is used to
>    identify cached items, which seems fine provided that collisions are
>    well-handled.  In the GS2 case we decided that collisions were not a
>    problem for us (after all, we could always assign new OIDs to GSS
>    mechanisms that collide).
>
>
>_______________________________________________
>TLS mailing list
>TLS@ietf.org
>https://www.ietf.org/mailman/listinfo/tls

Regards,

Jeffrey A. Williams
Spokesman for INEGroup LLA. - (Over 294k members/stakeholders and growing, strong!)
"Obedience of the law is the greatest freedom" -
   Abraham Lincoln

"Credit should go with the performance of duty and not with what is very
often the accident of glory" - Theodore Roosevelt

"If the probability be called P; the injury, L; and the burden, B; liability
depends upon whether B is less than L multiplied by
P: i.e., whether B is less than PL."
United States v. Carroll Towing  (159 F.2d 169 [2d Cir. 1947]
===============================================================
Updated 1/26/04
CSO/DIR. Internet Network Eng. SR. Eng. Network data security IDNS. div. of
Information Network Eng.  INEG. INC.
ABA member in good standing member ID 01257402 E-Mail jwkckid1@ix.netcom.com
Phone: 214-244-4827


From jwkckid1@ix.netcom.com  Tue May 11 11:12:05 2010
Return-Path: <jwkckid1@ix.netcom.com>
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 2470128C1BC for <tls@core3.amsl.com>; Tue, 11 May 2010 11:12:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.378
X-Spam-Level: 
X-Spam-Status: No, score=-0.378 tagged_above=-999 required=5 tests=[AWL=-0.193, BAYES_40=-0.185]
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 94IZeemVAxCR for <tls@core3.amsl.com>; Tue, 11 May 2010 11:12:03 -0700 (PDT)
Received: from elasmtp-kukur.atl.sa.earthlink.net (elasmtp-kukur.atl.sa.earthlink.net [209.86.89.65]) by core3.amsl.com (Postfix) with ESMTP id 40A4228C1B9 for <tls@ietf.org>; Tue, 11 May 2010 11:11:35 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=ix.netcom.com; b=lMpUPI2aBaaZpVlGhI2RsqtgvQHodOeWMnRCB1e8XdlKjiworxk2ueUdpfwY+MEC; h=Message-ID:Date:From:Reply-To:To:Subject:Mime-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:X-ELNK-Trace:X-Originating-IP;
Received: from [209.86.224.30] (helo=mswamui-chipeau.atl.sa.earthlink.net) by elasmtp-kukur.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from <jwkckid1@ix.netcom.com>) id 1OBtvQ-0006kV-Ee; Tue, 11 May 2010 14:11:24 -0400
Received: from 99.93.224.206 by webmail.earthlink.net with HTTP; Tue, 11 May 2010 14:11:22 -0400
Message-ID: <9368889.1273601484464.JavaMail.root@mswamui-chipeau.atl.sa.earthlink.net>
Date: Tue, 11 May 2010 13:11:22 -0500 (GMT-05:00)
From: "Jeffrey A. Williams" <jwkckid1@ix.netcom.com>
To: "Kemp,David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Mailer: EarthLink Zoo Mail 1.0
X-ELNK-Trace: c8e3929e1e9c87a874cfc7ce3b1ad11381c87f5e519606881bd15fed8f902b45243afff1924249b1350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c
X-Originating-IP: 209.86.224.30
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: "Jeffrey A. Williams" <jwkckid1@ix.netcom.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/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: Tue, 11 May 2010 18:12:05 -0000

David and all,

  Well said and fully agreed!  But as you likely know
too many are not yet ready for prime time.


-----Original Message-----
>From: "Kemp, David P." <DPKemp@missi.ncsc.mil>
>Sent: May 11, 2010 1:03 PM
>To: tls@ietf.org
>Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
>
>This sounds like a general problem unrelated to caching.
>
>If a non-browser app cannot recover from failures, what happens when a
>bit error gets through multiple layers of detection and correction, or a
>DSL connection dies and restarts?   "Stuff happens" all the time, and
>humans know how to hit the "retry" button.  An unattended application
>that doesn't know how to recover from unexplained errors is not ready
>for prime time.
>
>Dave
> 
>
>-----Original Message-----
>From: Nicolas Williams
>
>That's what I expect as well, that handshake failure is not transparent
>to _all_ applications, and that any retry logic will have to be in the
>application.  That makes this protocol a bit problematic -- failures
>will be rare, no doubt, so rare that we might not care, but when they
>happen the application won't know that the failure is not permanent.
>For browsers that may not be a problem (the user will just reload); for
>non-browser apps (and scripts running in the browser!) this could be a
>problem.
>
>_______________________________________________
>TLS mailing list
>TLS@ietf.org
>https://www.ietf.org/mailman/listinfo/tls

Regards,

Jeffrey A. Williams
Spokesman for INEGroup LLA. - (Over 294k members/stakeholders and growing, strong!)
"Obedience of the law is the greatest freedom" -
   Abraham Lincoln

"Credit should go with the performance of duty and not with what is very
often the accident of glory" - Theodore Roosevelt

"If the probability be called P; the injury, L; and the burden, B; liability
depends upon whether B is less than L multiplied by
P: i.e., whether B is less than PL."
United States v. Carroll Towing  (159 F.2d 169 [2d Cir. 1947]
===============================================================
Updated 1/26/04
CSO/DIR. Internet Network Eng. SR. Eng. Network data security IDNS. div. of
Information Network Eng.  INEG. INC.
ABA member in good standing member ID 01257402 E-Mail jwkckid1@ix.netcom.com
Phone: 214-244-4827


From marsh@extendedsubset.com  Tue May 11 11:30:59 2010
Return-Path: <marsh@extendedsubset.com>
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 1F9D63A67B2 for <tls@core3.amsl.com>; Tue, 11 May 2010 11:30:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.216
X-Spam-Level: 
X-Spam-Status: No, score=-0.216 tagged_above=-999 required=5 tests=[AWL=-0.217, BAYES_50=0.001]
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 E7ntvPcbKzzO for <tls@core3.amsl.com>; Tue, 11 May 2010 11:30:58 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id B615D3A6D18 for <tls@ietf.org>; Tue, 11 May 2010 11:28:26 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OBuBj-000AHO-LO; Tue, 11 May 2010 18:28:15 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 146DC631D; Tue, 11 May 2010 18:28:12 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX19seNRe/F3wFtbfrKAOlzdlh4mk3pgpA+I=
Message-ID: <4BE9A1BD.9010905@extendedsubset.com>
Date: Tue, 11 May 2010 13:28:13 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: Simon Josefsson <simon@josefsson.org>
References: <87bpcn4cy6.fsf@mocca.josefsson.org>	<C80E5AA0.AB38%stefan@aaa-sec.com> <87bpcm3m2w.fsf@mocca.josefsson.org>
In-Reply-To: <87bpcm3m2w.fsf@mocca.josefsson.org>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Collisions (Re:  Consensus Call: FNV vs SHA1)
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: Tue, 11 May 2010 18:30:59 -0000

On 5/11/2010 2:59 AM, Simon Josefsson wrote:
> 
> I'm thinking about two scenarios:
> 
>  1) the undetectable modification of the list of acceptable CA names
>     cause the client to select and use an unintended certificate.
> 
>  2) where multiple server certificates can be used to successfully
>     establish the key.  That can happen if two certificates use the same
>     public key.  Once connected, the client will not know the server by
>     the same identity (certificate) as the server believe the client
>     used.

Frankly, this scares the hell out of me.

I admit now that part of why I supported the simple 'hashtable' function
was to ensure that this aspect got thoroughly analyzed.

> This is not an problem in the sense that an attacker gains some benefit
> (for 1 the client chose to proceed with the certificate

Hmm, this could enable an attacker to influence the client to choose a
client cert using different information than the server thought he sent,
and in a way which doesn't break the Finished hashes?

Let's say I have separate "administrator" and "normal user" client
certs, both recognized by a server. Could mitm trick me into authing
with the admin cert even if the server app didn't intend to ask for it?

Note MS IIS has a feature for client-cert-to-user mapping, so
theoretically that could end up running code with different actual user
permissions.

> and for 2 the
> attacker needs to know the private key of the server): instead I'm
> pointing at a semantic problem because, with the extension, the
> historically true invariant that the client, after handshake, will know
> which certificate the server used, does not hold strongly.
> 
> This doesn't necessarily have to affect the document in any way, but it
> is an interesting property.

Historically, it has turned out to be notoriously difficult to put
limits on the effects of a violated security guarantee. We may not be so
familiar with all the dependencies and assumptions made in the original
analysis that we can run through them backwards.

I recommend we walk through the security analysis on this again from
scratch. This time with extra focus on an attacker who can trivially
craft collisions.

Also, we should look into how this might interact with running multiple
servers on the same IP address (and same stack) using SNI. Sometimes
things that are secure in isolation do not produce a secure system when
composed.

- Marsh

From Nicolas.Williams@oracle.com  Tue May 11 12:10:23 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 925753A6A0E for <tls@core3.amsl.com>; Tue, 11 May 2010 12:10:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.038
X-Spam-Level: 
X-Spam-Status: No, score=-5.038 tagged_above=-999 required=5 tests=[AWL=1.560,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 6jZFFF4SYAcs for <tls@core3.amsl.com>; Tue, 11 May 2010 12:10:22 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 3040A3A69B1 for <tls@ietf.org>; Tue, 11 May 2010 12:10:18 -0700 (PDT)
Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4BJA5fd007148 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 May 2010 19:10:06 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4BA0MgY001199; Tue, 11 May 2010 19:10:04 GMT
Received: from abhmt001.oracle.com by acsmt355.oracle.com with ESMTP id 232554891273605004; Tue, 11 May 2010 12:10:04 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 11 May 2010 12:10:03 -0700
Date: Tue, 11 May 2010 14:09:58 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: "Kemp, David P." <DPKemp@missi.ncsc.mil>
Message-ID: <20100511190958.GR9429@oracle.com>
References: <20100510221531.GC9429@oracle.com> <201005111339.o4BDdoYQ009725@fs4113.wdf.sap.corp> <20100511152153.GF9429@oracle.com> <201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: rcsinet15.oracle.com [148.87.113.117]
X-CT-RefId: str=0001.0A090209.4BE9AB8F.0045:SCFMA4539811,ss=1,fgs=0
Cc: tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
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: Tue, 11 May 2010 19:10:23 -0000

On Tue, May 11, 2010 at 02:03:39PM -0400, Kemp, David P. wrote:
> This sounds like a general problem unrelated to caching.
> 
> If a non-browser app cannot recover from failures, what happens when a
> bit error gets through multiple layers of detection and correction, or a
> DSL connection dies and restarts?   "Stuff happens" all the time, and
> humans know how to hit the "retry" button.  An unattended application
> that doesn't know how to recover from unexplained errors is not ready
> for prime time.

Fatal errors are fatal.  But the error here isn't quite as fatal.  I
suppose I can agree to view as such though and then there's no real
problem.

Nico
-- 

From Nicolas.Williams@oracle.com  Tue May 11 12:28:22 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 6A12F28C270 for <tls@core3.amsl.com>; Tue, 11 May 2010 12:28:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.767
X-Spam-Level: 
X-Spam-Status: No, score=-3.767 tagged_above=-999 required=5 tests=[AWL=0.231,  BAYES_50=0.001, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 6hzW7AXx6F6N for <tls@core3.amsl.com>; Tue, 11 May 2010 12:28:17 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id CB0AE3A6D0F for <tls@ietf.org>; Tue, 11 May 2010 12:24:52 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4BJOe5t011652 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 May 2010 19:24:41 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4BFs1Yo015141; Tue, 11 May 2010 19:24:36 GMT
Received: from abhmt015.oracle.com by acsmt355.oracle.com with ESMTP id 255935861273605835; Tue, 11 May 2010 12:23:55 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 11 May 2010 12:23:54 -0700
Date: Tue, 11 May 2010 14:23:50 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Simon Josefsson <simon@josefsson.org>
Message-ID: <20100511192350.GS9429@oracle.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com> <20100510190954.GV9429@oracle.com> <87r5lj4eee.fsf@mocca.josefsson.org> <20100510215652.GA9429@oracle.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20100510215652.GA9429@oracle.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090207.4BE9AEF9.01DE:SCFMA922111,ss=1,fgs=0
Cc: tls@ietf.org
Subject: Re: [TLS] Collisions (Re:  Consensus Call: FNV vs SHA1)
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: Tue, 11 May 2010 19:28:22 -0000

On Mon, May 10, 2010 at 04:56:52PM -0500, Nicolas Williams wrote:
> On Mon, May 10, 2010 at 11:48:09PM +0200, Simon Josefsson wrote:
> > It seems a server could easily create two pairs of server certificates
> > that results in the same FNV-1a value but are different certificates.  A
> > client connecting to a server offering a cached value for the server
> > certificate would not know which server certificate was intended, even
> > after completing the handshake.  If correct, that seems surprising.
> 
> If the server figures it out, who cares.  If not, bad.

I didn't think this through yesterday.  Let me try again.

The only way the collision could happen and the handshake succeed is (at
least for the cipher suites I've thought about) if a) the two certs have
the same public key, b) the client had seen one or both server certs
earlier.

And the attack?  I think it could be mostly harmless because the server
thinks the client authenticated the server as one entity name while the
client thinks it authenticated the server as another -- but both server
names must have been reasonably close to equivalent (HUGE assumption;
keep reading).  Sure, the client could get redirected to another server,
but only if the incorrect cert was properly signed, and only if the
client cache learns about that object (more assumptions).

The devil's in the details!

Some of those devilish details:

 - Clients MUST NOT cache objects from failed handshakes.

 - Clients MAY cache objects from succesful handshakes, and only when
   the clients authenticate the server (including validation of the
   server's cert chain to a TA).

 - In particular there MUST NOT be any caching in cases where the server
   is authenticated by the use of pre-shared certificates.

    - There must be no chance of caching objects when a user clicks
      through one of those "give your money to the bad guys?" dialogs.

Any others?  Yes, I should review the document closely now.

Nico
-- 

From marsh@extendedsubset.com  Tue May 11 12:30:28 2010
Return-Path: <marsh@extendedsubset.com>
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 EF64028C297 for <tls@core3.amsl.com>; Tue, 11 May 2010 12:30:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.499
X-Spam-Level: 
X-Spam-Status: No, score=-1.499 tagged_above=-999 required=5 tests=[AWL=1.100,  BAYES_00=-2.599]
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 QIzXd6argM2j for <tls@core3.amsl.com>; Tue, 11 May 2010 12:30:24 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id 0938D3A6D41 for <tls@ietf.org>; Tue, 11 May 2010 12:27:48 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OBv7B-0009Q5-2E; Tue, 11 May 2010 19:27:37 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id D7A10631D; Tue, 11 May 2010 19:27:35 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX19+H5K+By9Ir6kpgJ31c/Cz7rTn+j0bWPs=
Message-ID: <4BE9AFA9.5070607@extendedsubset.com>
Date: Tue, 11 May 2010 14:27:37 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: "Kemp, David P." <DPKemp@missi.ncsc.mil>
References: <20100510221531.GC9429@oracle.com><201005111339.o4BDdoYQ009725@fs4113.wdf.sap.corp>	<20100511152153.GF9429@oracle.com> <201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil>
In-Reply-To: <201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
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: Tue, 11 May 2010 19:30:29 -0000

On 5/11/2010 1:03 PM, Kemp, David P. wrote:
> This sounds like a general problem unrelated to caching.
> 
> If a non-browser app cannot recover from failures, what happens when a
> bit error gets through multiple layers of detection and correction, or a
> DSL connection dies and restarts?   "Stuff happens" all the time, and
> humans know how to hit the "retry" button.  An unattended application
> that doesn't know how to recover from unexplained errors is not ready
> for prime time.

FTP, telnet, and friends were considered to work well enough for a long
time. I think SSH still doesn't have any reconnection support in the
protocol.

- Marsh

From marsh@extendedsubset.com  Tue May 11 12:35:31 2010
Return-Path: <marsh@extendedsubset.com>
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 D164828C2D5 for <tls@core3.amsl.com>; Tue, 11 May 2010 12:35:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.578
X-Spam-Level: 
X-Spam-Status: No, score=-1.578 tagged_above=-999 required=5 tests=[AWL=1.021,  BAYES_00=-2.599]
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 9pkFJPPxYxUL for <tls@core3.amsl.com>; Tue, 11 May 2010 12:35:30 -0700 (PDT)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id 6B5083A6CA5 for <tls@ietf.org>; Tue, 11 May 2010 12:32:30 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OBvBe-000CDQ-Qw; Tue, 11 May 2010 19:32:14 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 5527B631D; Tue, 11 May 2010 19:32:11 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1+hBGeQPiJiZ8WahUuyhyPQBewoJvA4ZuQ=
Message-ID: <4BE9B0BC.2000101@extendedsubset.com>
Date: Tue, 11 May 2010 14:32:12 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: Nicolas Williams <Nicolas.Williams@oracle.com>
References: <20100510221531.GC9429@oracle.com>	<201005111339.o4BDdoYQ009725@fs4113.wdf.sap.corp>	<20100511152153.GF9429@oracle.com>	<201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil> <20100511190958.GR9429@oracle.com>
In-Reply-To: <20100511190958.GR9429@oracle.com>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: "Kemp, David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
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: Tue, 11 May 2010 19:35:31 -0000

On 5/11/2010 2:09 PM, Nicolas Williams wrote:
> 
> Fatal errors are fatal.  But the error here isn't quite as fatal.  I
> suppose I can agree to view as such though and then there's no real
> problem.

1. Caching can't be done on the first handshake (for obvious reasons)

2. Cached info must be thrown out on any failure to successfully
complete a handshake (for security reasons)

So how much better is this caching scheme than what you could have today
with session resumption?

- Marsh

From Nicolas.Williams@oracle.com  Tue May 11 12:49:01 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 8676A3A6D20 for <tls@core3.amsl.com>; Tue, 11 May 2010 12:49:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.071
X-Spam-Level: 
X-Spam-Status: No, score=-5.071 tagged_above=-999 required=5 tests=[AWL=1.527,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 RjQvCbFocH+V for <tls@core3.amsl.com>; Tue, 11 May 2010 12:49:00 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 34B9E3A6D3D for <tls@ietf.org>; Tue, 11 May 2010 12:47:22 -0700 (PDT)
Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4BJl6us001146 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 May 2010 19:47:08 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4BHMUF1029295; Tue, 11 May 2010 19:47:00 GMT
Received: from abhmt012.oracle.com by acsmt354.oracle.com with ESMTP id 256003801273607187; Tue, 11 May 2010 12:46:27 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 11 May 2010 12:46:25 -0700
Date: Tue, 11 May 2010 14:46:21 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Marsh Ray <marsh@extendedsubset.com>
Message-ID: <20100511194620.GU9429@oracle.com>
References: <20100510221531.GC9429@oracle.com> <201005111339.o4BDdoYQ009725@fs4113.wdf.sap.corp> <20100511152153.GF9429@oracle.com> <201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil> <20100511190958.GR9429@oracle.com> <4BE9B0BC.2000101@extendedsubset.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4BE9B0BC.2000101@extendedsubset.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: rcsinet13.oracle.com [148.87.113.125]
X-CT-RefId: str=0001.0A090207.4BE9B43D.00B5:SCFMA4539811,ss=1,fgs=0
Cc: "Kemp, David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
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: Tue, 11 May 2010 19:49:01 -0000

On Tue, May 11, 2010 at 02:32:12PM -0500, Marsh Ray wrote:
> On 5/11/2010 2:09 PM, Nicolas Williams wrote:
> > 
> > Fatal errors are fatal.  But the error here isn't quite as fatal.  I
> > suppose I can agree to view as such though and then there's no real
> > problem.
> 
> 1. Caching can't be done on the first handshake (for obvious reasons)
> 
> 2. Cached info must be thrown out on any failure to successfully
> complete a handshake (for security reasons)
> 
> So how much better is this caching scheme than what you could have today
> with session resumption?

I recall this question being asked long ago.  IIRC the idea is that you
could cache a cert chain for many servers' certs -- if they all have the
same validation chain, then you don't need to get a copy of it every
time you connect to one.  Also, session resumption state does expired,
whether kept as state on the server or via tickets.

Nico
-- 

From marsh@extendedsubset.com  Tue May 11 12:52:27 2010
Return-Path: <marsh@extendedsubset.com>
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 4CFBC3A6896 for <tls@core3.amsl.com>; Tue, 11 May 2010 12:52:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.716
X-Spam-Level: 
X-Spam-Status: No, score=-0.716 tagged_above=-999 required=5 tests=[AWL=0.024,  BAYES_20=-0.74]
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 8o3RQkYk6FeM for <tls@core3.amsl.com>; Tue, 11 May 2010 12:52:26 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id 731393A69CD for <tls@ietf.org>; Tue, 11 May 2010 12:51:37 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OBvUE-000L4q-Fj; Tue, 11 May 2010 19:51:26 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 2CC49631D; Tue, 11 May 2010 19:51:23 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX184V4PzkcA0EHTI7qK+nevZRz0DjpT4bCE=
Message-ID: <4BE9B53C.9060702@extendedsubset.com>
Date: Tue, 11 May 2010 14:51:24 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: Nicolas Williams <Nicolas.Williams@oracle.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com>	<20100510190954.GV9429@oracle.com>	<87r5lj4eee.fsf@mocca.josefsson.org>	<20100510215652.GA9429@oracle.com> <20100511192350.GS9429@oracle.com>
In-Reply-To: <20100511192350.GS9429@oracle.com>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: Simon Josefsson <simon@josefsson.org>, tls@ietf.org
Subject: Re: [TLS] Collisions (Re:  Consensus Call: FNV vs SHA1)
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: Tue, 11 May 2010 19:52:27 -0000

On 5/11/2010 2:23 PM, Nicolas Williams wrote:
> 
> Some of those devilish details:
> 
>  - Clients MUST NOT cache objects from failed handshakes.

Bad guy may see the impending failure and delay the client's recognition
of it arbitrarily.

>  - Clients MAY cache objects from succesful handshakes, and only when
>    the clients authenticate the server (including validation of the
>    server's cert chain to a TA).

It appears that in a large class of client applications, the client TLS
stack may not even know how to fully verify the certificate until he
returns to the application code. Commonly the TLS stack validates that
the server's cert chains to a TA, but the application code queries for
and checks the CN after-the-fact. The method for checking CN is
protocol-specific.

Does the current proposal give more semantic meaning to the exchange of
Finished messages than was expected by such an application?

>  - In particular there MUST NOT be any caching in cases where the server
>    is authenticated by the use of pre-shared certificates.

Sorry if I missed this earlier, what's special about PSK here?

>     - There must be no chance of caching objects when a user clicks
>       through one of those "give your money to the bad guys?" dialogs.

Haven't seen that one.

- Marsh

From Nicolas.Williams@oracle.com  Tue May 11 13:01:02 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 1609928C0F4 for <tls@core3.amsl.com>; Tue, 11 May 2010 13:01:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.168
X-Spam-Level: 
X-Spam-Status: No, score=-4.168 tagged_above=-999 required=5 tests=[AWL=0.571,  BAYES_20=-0.74, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 RaZv9Yd-1Mi7 for <tls@core3.amsl.com>; Tue, 11 May 2010 13:01:00 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 247DE3A69ED for <tls@ietf.org>; Tue, 11 May 2010 13:00:50 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4BK0cBp031966 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 May 2010 20:00:39 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4BFs1c4015141; Tue, 11 May 2010 20:00:37 GMT
Received: from abhmt004.oracle.com by acsmt355.oracle.com with ESMTP id 256040471273608033; Tue, 11 May 2010 13:00:33 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 11 May 2010 13:00:29 -0700
Date: Tue, 11 May 2010 15:00:24 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Marsh Ray <marsh@extendedsubset.com>
Message-ID: <20100511200024.GV9429@oracle.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B479@xmb-sjc-225.amer.cisco.com> <20100510190954.GV9429@oracle.com> <87r5lj4eee.fsf@mocca.josefsson.org> <20100510215652.GA9429@oracle.com> <20100511192350.GS9429@oracle.com> <4BE9B53C.9060702@extendedsubset.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4BE9B53C.9060702@extendedsubset.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090208.4BE9B767.018F:SCFMA922111,ss=1,fgs=0
Cc: Simon Josefsson <simon@josefsson.org>, tls@ietf.org
Subject: Re: [TLS] Collisions (Re:  Consensus Call: FNV vs SHA1)
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: Tue, 11 May 2010 20:01:02 -0000

On Tue, May 11, 2010 at 02:51:24PM -0500, Marsh Ray wrote:
> On 5/11/2010 2:23 PM, Nicolas Williams wrote:
> > 
> > Some of those devilish details:
> > 
> >  - Clients MUST NOT cache objects from failed handshakes.
> 
> Bad guy may see the impending failure and delay the client's recognition
> of it arbitrarily.

I didn't mean that clients could cache objects from in-progress
handshakes.  I realize that I wasn't sufficiently precise.  But thanks
for making that clear.

> >  - Clients MAY cache objects from succesful handshakes, and only when
> >    the clients authenticate the server (including validation of the
> >    server's cert chain to a TA).
> 
> It appears that in a large class of client applications, the client TLS
> stack may not even know how to fully verify the certificate until he
> returns to the application code. Commonly the TLS stack validates that
> the server's cert chains to a TA, but the application code queries for
> and checks the CN after-the-fact. The method for checking CN is
> protocol-specific.

In those cases the application should manage the cache (mostly by
calling TLS APIs that do the dirty work).  The caches for different apps
using different TAs should NOT meet.

> Does the current proposal give more semantic meaning to the exchange of
> Finished messages than was expected by such an application?

Yes, though it doesn't change the computation of the Finished message
(maybe it should!).

> >  - In particular there MUST NOT be any caching in cases where the server
> >    is authenticated by the use of pre-shared certificates.
> 
> Sorry if I missed this earlier, what's special about PSK here?

You're right, I think it isn't.  I think I must have intended to say
that apps using different TA sets (and/or pre-shared certs) must use
different caches as well.

Nico
-- 

From marsh@extendedsubset.com  Tue May 11 13:05:22 2010
Return-Path: <marsh@extendedsubset.com>
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 3C2C83A688D for <tls@core3.amsl.com>; Tue, 11 May 2010 13:05:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.647
X-Spam-Level: 
X-Spam-Status: No, score=-1.647 tagged_above=-999 required=5 tests=[AWL=0.952,  BAYES_00=-2.599]
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 7FkGFYIYbklv for <tls@core3.amsl.com>; Tue, 11 May 2010 13:05:21 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id 106623A69ED for <tls@ietf.org>; Tue, 11 May 2010 13:04:52 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OBvh2-0000wU-A1; Tue, 11 May 2010 20:04:40 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id A50DA631D; Tue, 11 May 2010 20:04:37 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1+ImxYU4ezx6rdFGbyiCgmL+LV40sZ5y20=
Message-ID: <4BE9B856.40000@extendedsubset.com>
Date: Tue, 11 May 2010 15:04:38 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: Nicolas Williams <Nicolas.Williams@oracle.com>
References: <20100510221531.GC9429@oracle.com> <201005111339.o4BDdoYQ009725@fs4113.wdf.sap.corp> <20100511152153.GF9429@oracle.com> <201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil> <20100511190958.GR9429@oracle.com> <4BE9B0BC.2000101@extendedsubset.com> <20100511194620.GU9429@oracle.com>
In-Reply-To: <20100511194620.GU9429@oracle.com>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: "Kemp, David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
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: Tue, 11 May 2010 20:05:22 -0000

On 5/11/2010 2:46 PM, Nicolas Williams wrote:
> On Tue, May 11, 2010 at 02:32:12PM -0500, Marsh Ray wrote:
>> So how much better is this caching scheme than what you could have today
>> with session resumption?
> 
> I recall this question being asked long ago.  IIRC the idea is that you
> could cache a cert chain for many servers' certs

Isn't one of the implications of the choice of a non-collision-resistant
hash that you must use a completely separate cache for each hostname?

> -- if they all have the
> same validation chain, then you don't need to get a copy of it every
> time you connect to one.  Also, session resumption state does expired,
> whether kept as state on the server or via tickets.



- Marsh

From DPKemp@missi.ncsc.mil  Tue May 11 13:05:47 2010
Return-Path: <DPKemp@missi.ncsc.mil>
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 84F763A6A90 for <tls@core3.amsl.com>; Tue, 11 May 2010 13:05:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.168
X-Spam-Level: 
X-Spam-Status: No, score=-4.168 tagged_above=-999 required=5 tests=[AWL=-0.169, BAYES_50=0.001, 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 I+Hfn-Y3ATpI for <tls@core3.amsl.com>; Tue, 11 May 2010 13:05:46 -0700 (PDT)
Received: from stingray.missi.ncsc.mil (stingray.missi.ncsc.mil [144.51.50.20]) by core3.amsl.com (Postfix) with ESMTP id 2A25B28C194 for <tls@ietf.org>; Tue, 11 May 2010 13:05:20 -0700 (PDT)
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-MimeOLE: Produced By Microsoft Exchange V6.5
Date: Tue, 11 May 2010 16:04:46 -0400
Message-ID: <201005112005.o4BK54qO014241@stingray.missi.ncsc.mil>
In-Reply-To: <4BE9AFA9.5070607@extendedsubset.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [POSSIBLE SPAM] Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
Thread-Index: AcrxQAkaJOboZwuNRpW5VAsCKSa1xQAA1Vvg
References: <20100510221531.GC9429@oracle.com><201005111339.o4BDdoYQ009725@fs4113.wdf.sap.corp>	<20100511152153.GF9429@oracle.com> <201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil> <4BE9AFA9.5070607@extendedsubset.com>
From: "Kemp, David P." <DPKemp@missi.ncsc.mil>
To: <tls@ietf.org>
X-OriginalArrivalTime: 11 May 2010 20:06:17.0171 (UTC) FILETIME=[6A495A30:01CAF145]
Subject: Re: [TLS] [POSSIBLE SPAM] Re: Collisions (Re: Nico's suggestions - Re: Consensus Call:
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: Tue, 11 May 2010 20:05:47 -0000

If there is a script to FTP a bunch of files, and one of the files
fails, then either a human or a manifest-understanding application needs
to notice the error and retry.  FTP itself doesn't have to be as
persistent about recovery as wget, but something above it needs to be.
How would FTPS with a cache collision induced failure be different?

Dave


-----Original Message-----
From: Marsh Ray [mailto:marsh@extendedsubset.com]=20
Sent: Tuesday, May 11, 2010 3:28 PM
To: Kemp, David P.
Cc: tls@ietf.org
Subject: [POSSIBLE SPAM] Re: [TLS] Collisions (Re: Nico's suggestions -
Re: Consensus Call:
Importance: Low

On 5/11/2010 1:03 PM, Kemp, David P. wrote:
> This sounds like a general problem unrelated to caching.
>=20
> If a non-browser app cannot recover from failures, what happens when a
> bit error gets through multiple layers of detection and correction, or
a
> DSL connection dies and restarts?   "Stuff happens" all the time, and
> humans know how to hit the "retry" button.  An unattended application
> that doesn't know how to recover from unexplained errors is not ready
> for prime time.

FTP, telnet, and friends were considered to work well enough for a long
time. I think SSH still doesn't have any reconnection support in the
protocol.

- Marsh

From Nicolas.Williams@oracle.com  Tue May 11 13:07:55 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 907A63A6A90 for <tls@core3.amsl.com>; Tue, 11 May 2010 13:07:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.107
X-Spam-Level: 
X-Spam-Status: No, score=-5.107 tagged_above=-999 required=5 tests=[AWL=1.491,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 zSpeupnJIEWq for <tls@core3.amsl.com>; Tue, 11 May 2010 13:07:51 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 379CF3A6987 for <tls@ietf.org>; Tue, 11 May 2010 13:07:51 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4BK7agh013819 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 May 2010 20:07:38 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4BK4o92021610; Tue, 11 May 2010 20:07:35 GMT
Received: from abhmt012.oracle.com by acsmt353.oracle.com with ESMTP id 256065031273608453; Tue, 11 May 2010 13:07:33 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 11 May 2010 13:07:33 -0700
Date: Tue, 11 May 2010 15:07:28 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Marsh Ray <marsh@extendedsubset.com>
Message-ID: <20100511200728.GW9429@oracle.com>
References: <20100510221531.GC9429@oracle.com> <201005111339.o4BDdoYQ009725@fs4113.wdf.sap.corp> <20100511152153.GF9429@oracle.com> <201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil> <20100511190958.GR9429@oracle.com> <4BE9B0BC.2000101@extendedsubset.com> <20100511194620.GU9429@oracle.com> <4BE9B856.40000@extendedsubset.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4BE9B856.40000@extendedsubset.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090209.4BE9B90B.009D:SCFMA922111,ss=1,fgs=0
Cc: "Kemp, David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
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: Tue, 11 May 2010 20:07:55 -0000

On Tue, May 11, 2010 at 03:04:38PM -0500, Marsh Ray wrote:
> On 5/11/2010 2:46 PM, Nicolas Williams wrote:
> > On Tue, May 11, 2010 at 02:32:12PM -0500, Marsh Ray wrote:
> >> So how much better is this caching scheme than what you could have today
> >> with session resumption?
> > 
> > I recall this question being asked long ago.  IIRC the idea is that you
> > could cache a cert chain for many servers' certs
> 
> Isn't one of the implications of the choice of a non-collision-resistant
> hash that you must use a completely separate cache for each hostname?

I don't think that's clear yet.  However, it is clear that making this
extension safe will require more care than it seemed to me the first
time I glanced at it.  It may well be that the answer to your question
is "yes", in which case I think you'd be right that session resumption
is plenty good enough.

From marsh@extendedsubset.com  Tue May 11 13:22:03 2010
Return-Path: <marsh@extendedsubset.com>
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 A0ADE28C15B for <tls@core3.amsl.com>; Tue, 11 May 2010 13:22:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.774
X-Spam-Level: 
X-Spam-Status: No, score=-0.774 tagged_above=-999 required=5 tests=[AWL=-0.034, BAYES_20=-0.74]
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 YG8oMh7Ax0RP for <tls@core3.amsl.com>; Tue, 11 May 2010 13:21:53 -0700 (PDT)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id 374723A6AA2 for <tls@ietf.org>; Tue, 11 May 2010 13:19:24 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OBvv5-0005k2-Pg; Tue, 11 May 2010 20:19:12 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 9D788631D; Tue, 11 May 2010 20:19:10 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX18wj2WXcpUuofrcQmDwBstxMx7RXJh6C0w=
Message-ID: <4BE9BBC0.8070808@extendedsubset.com>
Date: Tue, 11 May 2010 15:19:12 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: "Kemp, David P." <DPKemp@missi.ncsc.mil>
References: <20100510221531.GC9429@oracle.com><201005111339.o4BDdoYQ009725@fs4113.wdf.sap.corp>	<20100511152153.GF9429@oracle.com>	<201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil>	<4BE9AFA9.5070607@extendedsubset.com> <201005112005.o4BK54qO014241@stingray.missi.ncsc.mil>
In-Reply-To: <201005112005.o4BK54qO014241@stingray.missi.ncsc.mil>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] [POSSIBLE SPAM] Re: Collisions (Re: Nico's suggestions -	Re: Consensus Call:
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: Tue, 11 May 2010 20:22:03 -0000

On 5/11/2010 3:04 PM, Kemp, David P. wrote:
> If there is a script to FTP a bunch of files, and one of the files
> fails, then either a human or a manifest-understanding application needs
> to notice the error and retry.  FTP itself doesn't have to be as
> persistent about recovery as wget, but something above it needs to be.

> How would FTPS with a cache collision induced failure be different?

I think that's the right question for us to be asking.

One way in which things are different is that this proposal introduces
the caching of long-term data. We have to ensure that a one-time
drive-by attacker cannot use the feature to cause the caching of
something that might adversely affect some unrelated operation in the
future.

We should also be careful to prevent data leaks. There is the potential
that server 'a' could engineer a probing collision to determine if
you've previously connected to server 'b'.

- Marsh

From DPKemp@missi.ncsc.mil  Tue May 11 14:22:18 2010
Return-Path: <DPKemp@missi.ncsc.mil>
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 2D27B3A6A40 for <tls@core3.amsl.com>; Tue, 11 May 2010 14:22:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.154
X-Spam-Level: 
X-Spam-Status: No, score=-4.154 tagged_above=-999 required=5 tests=[AWL=-0.155, BAYES_50=0.001, 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 hDsuPX67R2lx for <tls@core3.amsl.com>; Tue, 11 May 2010 14:22:16 -0700 (PDT)
Received: from stingray.missi.ncsc.mil (stingray.missi.ncsc.mil [144.51.50.20]) by core3.amsl.com (Postfix) with ESMTP id 04FB63A6942 for <tls@ietf.org>; Tue, 11 May 2010 14:20:38 -0700 (PDT)
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-MimeOLE: Produced By Microsoft Exchange V6.5
Date: Tue, 11 May 2010 17:16:34 -0400
Message-ID: <201005112120.o4BLKLRL016765@stingray.missi.ncsc.mil>
In-Reply-To: <4BE9A1BD.9010905@extendedsubset.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [POSSIBLE SPAM] Re: [TLS] Collisions (Re: Consensus Call: FNV vs SHA1)
Thread-Index: AcrxOCxXY5CzAmJJSbG2pEgds3u+TwAEXShA
References: <87bpcn4cy6.fsf@mocca.josefsson.org>	<C80E5AA0.AB38%stefan@aaa-sec.com><87bpcm3m2w.fsf@mocca.josefsson.org> <4BE9A1BD.9010905@extendedsubset.com>
From: "Kemp, David P." <DPKemp@missi.ncsc.mil>
To: <tls@ietf.org>
X-OriginalArrivalTime: 11 May 2010 21:21:34.0000 (UTC) FILETIME=[EE86C300:01CAF14F]
Subject: Re: [TLS] [POSSIBLE SPAM] Re: Collisions (Re: Consensus Call: FNV vs SHA1)
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: Tue, 11 May 2010 21:22:18 -0000

The security analysis should focus on the bizarre Finished message
calculation rather than on the hash algorithm.  The essence of caching
is that cached data has the same effect as transmitted data, only faster
:-).  Section 4 violates that assumption:

   "The handshake protocol will proceed using the cached data as if it
   was provided in the handshake protocol. The Finished message will
   however be calculated over the actual data exchanged in the handshake
   protocol."

If the Finished message is not calculated as if the data were actually
transmitted, then it cannot ensure the integrity of that data.  Strike
the second sentence and the problem goes away.  The transmitter has to
perform Finished calculations on the original datastream, then
post-process it to substitute hashes where possible.  The receiver first
has to expand hashes into data, and then perform handshake operations
including Finished calculations.

Dave



-----Original Message-----
From: tls-bounces@ietf.org [mailto:tls-bounces@ietf.org] On Behalf Of
Marsh Ray
Sent: Tuesday, May 11, 2010 2:28 PM
To: Simon Josefsson
Cc: tls@ietf.org
Subject: [POSSIBLE SPAM] Re: [TLS] Collisions (Re: Consensus Call: FNV
vs SHA1)
Importance: Low

On 5/11/2010 2:59 AM, Simon Josefsson wrote:
>=20
> I'm thinking about two scenarios:
>=20
>  1) the undetectable modification of the list of acceptable CA names
>     cause the client to select and use an unintended certificate.
>=20
>  2) where multiple server certificates can be used to successfully
>     establish the key.  That can happen if two certificates use the
same
>     public key.  Once connected, the client will not know the server
by
>     the same identity (certificate) as the server believe the client
>     used.

Frankly, this scares the hell out of me.

I admit now that part of why I supported the simple 'hashtable' function
was to ensure that this aspect got thoroughly analyzed.

> This is not an problem in the sense that an attacker gains some
benefit
> (for 1 the client chose to proceed with the certificate

Hmm, this could enable an attacker to influence the client to choose a
client cert using different information than the server thought he sent,
and in a way which doesn't break the Finished hashes?

Let's say I have separate "administrator" and "normal user" client
certs, both recognized by a server. Could mitm trick me into authing
with the admin cert even if the server app didn't intend to ask for it?

Note MS IIS has a feature for client-cert-to-user mapping, so
theoretically that could end up running code with different actual user
permissions.

> and for 2 the
> attacker needs to know the private key of the server): instead I'm
> pointing at a semantic problem because, with the extension, the
> historically true invariant that the client, after handshake, will
know
> which certificate the server used, does not hold strongly.
>=20
> This doesn't necessarily have to affect the document in any way, but
it
> is an interesting property.

Historically, it has turned out to be notoriously difficult to put
limits on the effects of a violated security guarantee. We may not be so
familiar with all the dependencies and assumptions made in the original
analysis that we can run through them backwards.

I recommend we walk through the security analysis on this again from
scratch. This time with extra focus on an attacker who can trivially
craft collisions.

Also, we should look into how this might interact with running multiple
servers on the same IP address (and same stack) using SNI. Sometimes
things that are secure in isolation do not produce a secure system when
composed.

- Marsh
_______________________________________________
TLS mailing list
TLS@ietf.org
https://www.ietf.org/mailman/listinfo/tls

From marsh@extendedsubset.com  Tue May 11 14:31:04 2010
Return-Path: <marsh@extendedsubset.com>
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 80A093A65A6 for <tls@core3.amsl.com>; Tue, 11 May 2010 14:31:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.701
X-Spam-Level: 
X-Spam-Status: No, score=-1.701 tagged_above=-999 required=5 tests=[AWL=0.898,  BAYES_00=-2.599]
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 swj6tlpVB4Km for <tls@core3.amsl.com>; Tue, 11 May 2010 14:31:03 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id 4E7B93A67C2 for <tls@ietf.org>; Tue, 11 May 2010 14:31:00 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OBx2P-000Fx2-Eq; Tue, 11 May 2010 21:30:49 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 37ADD631D; Tue, 11 May 2010 21:30:47 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1+lZOxuJItRy2TOXX8hqutSe+pfFJX+YAY=
Message-ID: <4BE9CC88.6040103@extendedsubset.com>
Date: Tue, 11 May 2010 16:30:48 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: Nicolas Williams <Nicolas.Williams@oracle.com>
References: <20100510221531.GC9429@oracle.com> <201005111339.o4BDdoYQ009725@fs4113.wdf.sap.corp> <20100511152153.GF9429@oracle.com> <201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil> <20100511190958.GR9429@oracle.com> <4BE9B0BC.2000101@extendedsubset.com> <20100511194620.GU9429@oracle.com> <4BE9B856.40000@extendedsubset.com> <20100511200728.GW9429@oracle.com>
In-Reply-To: <20100511200728.GW9429@oracle.com>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: "Kemp, David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
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: Tue, 11 May 2010 21:31:04 -0000

On 5/11/2010 3:07 PM, Nicolas Williams wrote:
> On Tue, May 11, 2010 at 03:04:38PM -0500, Marsh Ray wrote:
>> On 5/11/2010 2:46 PM, Nicolas Williams wrote:
>>> On Tue, May 11, 2010 at 02:32:12PM -0500, Marsh Ray wrote:
>>>> So how much better is this caching scheme than what you could have today
>>>> with session resumption?
>>>
>>> I recall this question being asked long ago.  IIRC the idea is that you
>>> could cache a cert chain for many servers' certs
>>
>> Isn't one of the implications of the choice of a non-collision-resistant
>> hash that you must use a completely separate cache for each hostname?
> 
> I don't think that's clear yet.  However, it is clear that making this
> extension safe will require more care than it seemed to me the first
> time I glanced at it.  It may well be that the answer to your question
> is "yes", in which case I think you'd be right that session resumption
> is plenty good enough.

Note: I didn't say precisely that I thought session resumption was good
enough, nor did I say that cached info isn't the greatest thing since
sliced bread. I just wanted to ask some direct questions.

Alternatively, if we determine that indeed the non-collision-resistance
of the hash function is the root of all remaining concerns that would be
very positive. We could solve them all in one stroke with
s/FNV-1a/SHA-256/g.

*ducks*

- Marsh

From stefan@aaa-sec.com  Tue May 11 15:00:32 2010
Return-Path: <stefan@aaa-sec.com>
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 6BD6F3A6A48 for <tls@core3.amsl.com>; Tue, 11 May 2010 15:00:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.301
X-Spam-Level: 
X-Spam-Status: No, score=-1.301 tagged_above=-999 required=5 tests=[AWL=-0.652, BAYES_50=0.001, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 u01W6LVpk9Ww for <tls@core3.amsl.com>; Tue, 11 May 2010 15:00:31 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id 4F1213A6A88 for <tls@ietf.org>; Tue, 11 May 2010 15:00:29 -0700 (PDT)
Received: from s42.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 002FC28C5B8 for <tls@ietf.org>; Wed, 12 May 2010 00:00:25 +0200 (CEST)
Received: (qmail 59973 invoked from network); 11 May 2010 22:00:16 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.16]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s42.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <Nicolas.Williams@oracle.com>; 11 May 2010 22:00:16 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Tue, 11 May 2010 23:00:15 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: Nicolas Williams <Nicolas.Williams@oracle.com>, Simon Josefsson <simon@josefsson.org>
Message-ID: <C80F91FF.ABD6%stefan@aaa-sec.com>
Thread-Topic: [TLS] Collisions (Re:  Consensus Call: FNV vs SHA1)
Thread-Index: AcrxVVXz9T0b4Y+suUOS5cWL5Yl7Ww==
In-Reply-To: <20100511192350.GS9429@oracle.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Collisions (Re:  Consensus Call: FNV vs SHA1)
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: Tue, 11 May 2010 22:00:32 -0000

Nico,

For there to exist two server certificates with the same public key but
entirely different certificate data, which are crafted to create a hash
collision, you must have at least one bad certificate issued by a dishonest
CA who validates to a root trusted by the client.

If this is the case, then cached info is the least of your problems.

For example, you have real problems if that same bad CA issues the attacker
a certificate (with the same name but another public key) through which the
attacker (having the corresponding private key) actually can fool the client
to authenticate the attacker as the legitimate server.

On the other hand, I would not object to include a requirement that data
should/must only be cached from a successful handshake where the server is
successfully authenticated. That should remove any residue of this issue.

/Stefan



On 10-05-11 9:23 PM, "Nicolas Williams" <Nicolas.Williams@oracle.com> wrote:

> On Mon, May 10, 2010 at 04:56:52PM -0500, Nicolas Williams wrote:
>> On Mon, May 10, 2010 at 11:48:09PM +0200, Simon Josefsson wrote:
>>> It seems a server could easily create two pairs of server certificates
>>> that results in the same FNV-1a value but are different certificates.  A
>>> client connecting to a server offering a cached value for the server
>>> certificate would not know which server certificate was intended, even
>>> after completing the handshake.  If correct, that seems surprising.
>> 
>> If the server figures it out, who cares.  If not, bad.
> 
> I didn't think this through yesterday.  Let me try again.
> 
> The only way the collision could happen and the handshake succeed is (at
> least for the cipher suites I've thought about) if a) the two certs have
> the same public key, b) the client had seen one or both server certs
> earlier.
> 
> And the attack?  I think it could be mostly harmless because the server
> thinks the client authenticated the server as one entity name while the
> client thinks it authenticated the server as another -- but both server
> names must have been reasonably close to equivalent (HUGE assumption;
> keep reading).  Sure, the client could get redirected to another server,
> but only if the incorrect cert was properly signed, and only if the
> client cache learns about that object (more assumptions).
> 
> The devil's in the details!
> 
> Some of those devilish details:
> 
>  - Clients MUST NOT cache objects from failed handshakes.
> 
>  - Clients MAY cache objects from succesful handshakes, and only when
>    the clients authenticate the server (including validation of the
>    server's cert chain to a TA).
> 
>  - In particular there MUST NOT be any caching in cases where the server
>    is authenticated by the use of pre-shared certificates.
> 
>     - There must be no chance of caching objects when a user clicks
>       through one of those "give your money to the bad guys?" dialogs.
> 
> Any others?  Yes, I should review the document closely now.
> 
> Nico



From marsh@extendedsubset.com  Tue May 11 15:02:08 2010
Return-Path: <marsh@extendedsubset.com>
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 61ADF3A6A88 for <tls@core3.amsl.com>; Tue, 11 May 2010 15:02:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.449
X-Spam-Level: 
X-Spam-Status: No, score=-0.449 tagged_above=-999 required=5 tests=[AWL=-0.450, BAYES_50=0.001]
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 HjHmOKG9zLjV for <tls@core3.amsl.com>; Tue, 11 May 2010 15:02:07 -0700 (PDT)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id 9D88D3A69DE for <tls@ietf.org>; Tue, 11 May 2010 15:02:04 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OBxWT-000MZV-OI; Tue, 11 May 2010 22:01:53 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 9556A631D; Tue, 11 May 2010 22:01:52 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1+J5Z8+anPK/Vi9LLrYmLRv2Kx3k1U3pOg=
Message-ID: <4BE9D3D2.8070009@extendedsubset.com>
Date: Tue, 11 May 2010 17:01:54 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: "Kemp, David P." <DPKemp@missi.ncsc.mil>
References: <87bpcn4cy6.fsf@mocca.josefsson.org>	<C80E5AA0.AB38%stefan@aaa-sec.com><87bpcm3m2w.fsf@mocca.josefsson.org>	<4BE9A1BD.9010905@extendedsubset.com> <201005112120.o4BLKLRL016765@stingray.missi.ncsc.mil>
In-Reply-To: <201005112120.o4BLKLRL016765@stingray.missi.ncsc.mil>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] [POSSIBLE SPAM] Re: Collisions (Re: Consensus Call: FNV vs SHA1)
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: Tue, 11 May 2010 22:02:08 -0000

On 5/11/2010 4:16 PM, Kemp, David P. wrote:
> The security analysis should focus on the bizarre Finished message
> calculation rather than on the hash algorithm.  The essence of caching
> is that cached data has the same effect as transmitted data, only faster
> :-).  Section 4 violates that assumption:
> 
>    "The handshake protocol will proceed using the cached data as if it
>    was provided in the handshake protocol. The Finished message will
>    however be calculated over the actual data exchanged in the handshake
>    protocol."

It is definitely a mismatch, but I think it's the simplest and least
inconsistent of the possible ways it could be defined.

> If the Finished message is not calculated as if the data were actually
> transmitted, then it cannot ensure the integrity of that data.

Not as easily and directly, but it can if we can prove either:

A. the values transmitted are perfect equivalents for the values used, or

B. a mismatch (no matter how carefully engineered by the attacker) can
not make a semantic difference to any reasonable application code other
than what would result from an ordinary Finished verify failure.

> Strike
> the second sentence and the problem goes away.

And you gain a harder one in return...

> The transmitter has to
> perform Finished calculations on the original datastream, then
> post-process it to substitute hashes where possible.  The receiver first
> has to expand hashes into data, and then perform handshake operations
> including Finished calculations.

But these things happen at different layers of the protocol.

The Finished messages are calculated on the handshake layer as carried
by the record layer (IIRC this includes the HandshakeType and length
bytes). Currently it can be implemented by keeping a running hash of the
bytes without actually buffering them in memory. That code shouldn't
need to change at all.

Operations like iterating a list of TAs to find a client cert or
validating a server cert are typically going to be performed at a higher
layer in the code that probably already has similar function defined for
processing those items.

If you needed to calculate a Finished message by retroactively modifying
the handshake data stream, it would be harder. You would have to do
things like fix up length fields (potentially recursing up multiple
layers). That would certainly make introducing new
CachedInformationTypes more disruptive. It would also effectively
require implementations to buffer everything until all substitutions
were resolved.

That's why I think the draft does it the best way.

- Marsh

From stefan@aaa-sec.com  Tue May 11 15:16:04 2010
Return-Path: <stefan@aaa-sec.com>
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 0E4D33A697B for <tls@core3.amsl.com>; Tue, 11 May 2010 15:16:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.567
X-Spam-Level: 
X-Spam-Status: No, score=-2.567 tagged_above=-999 required=5 tests=[AWL=0.682,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 KjcuTQea4dmT for <tls@core3.amsl.com>; Tue, 11 May 2010 15:16:02 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id 5C5E93A6BF4 for <tls@ietf.org>; Tue, 11 May 2010 15:15:45 -0700 (PDT)
Received: from s42.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 17AE72917C4 for <tls@ietf.org>; Wed, 12 May 2010 00:15:43 +0200 (CEST)
Received: (qmail 3776 invoked from network); 11 May 2010 22:15:33 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.16]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s42.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <marsh@extendedsubset.com>; 11 May 2010 22:15:33 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Tue, 11 May 2010 23:15:32 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: Marsh Ray <marsh@extendedsubset.com>, Nicolas Williams <Nicolas.Williams@oracle.com>
Message-ID: <C80F9594.ABDA%stefan@aaa-sec.com>
Thread-Topic: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
Thread-Index: AcrxV3iGfhp0i4qCzEq5CCAyWdWIhg==
In-Reply-To: <4BE9CC88.6040103@extendedsubset.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: "Kemp, David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
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: Tue, 11 May 2010 22:16:04 -0000

On 10-05-11 11:30 PM, "Marsh Ray" <marsh@extendedsubset.com> wrote:

> Alternatively, if we determine that indeed the non-collision-resistance
> of the hash function is the root of all remaining concerns that would be
> very positive. We could solve them all in one stroke with
> s/FNV-1a/SHA-256/g.

I'm not convinced this is required, but I could live with it.
I would hate to have to add agility and hash negotiation though.

/Stefan



From marsh@extendedsubset.com  Tue May 11 15:55:52 2010
Return-Path: <marsh@extendedsubset.com>
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 E85B63A69A1 for <tls@core3.amsl.com>; Tue, 11 May 2010 15:55:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.519
X-Spam-Level: 
X-Spam-Status: No, score=-0.519 tagged_above=-999 required=5 tests=[AWL=-0.334, BAYES_40=-0.185]
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 kLQIkdxDC6nV for <tls@core3.amsl.com>; Tue, 11 May 2010 15:55:52 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id 073E93A6853 for <tls@ietf.org>; Tue, 11 May 2010 15:55:51 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OByMX-000KpA-3w; Tue, 11 May 2010 22:55:41 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 52635631D; Tue, 11 May 2010 22:55:37 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1/mPjMZHBrsi7i3jScuzUFEXYPjaVVUXm4=
Message-ID: <4BE9E06B.5000706@extendedsubset.com>
Date: Tue, 11 May 2010 17:55:39 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: Stefan Santesson <stefan@aaa-sec.com>
References: <C80F91FF.ABD6%stefan@aaa-sec.com>
In-Reply-To: <C80F91FF.ABD6%stefan@aaa-sec.com>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: Simon Josefsson <simon@josefsson.org>, tls@ietf.org
Subject: Re: [TLS] Collisions (Re:  Consensus Call: FNV vs SHA1)
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: Tue, 11 May 2010 22:55:53 -0000

On 5/11/2010 4:15 PM, Stefan Santesson wrote:
> On 10-05-11 11:30 PM, "Marsh Ray" <marsh@extendedsubset.com> wrote:
>
>> Alternatively, if we determine that indeed the non-collision-resistance
>> of the hash function is the root of all remaining concerns that would be
>> very positive. We could solve them all in one stroke with
>> s/FNV-1a/SHA-256/g.
>
> I'm not convinced this is required, but I could live with it.
> I would hate to have to add agility and hash negotiation though.

I agree that negotiation of the hash function would be (to put it
mildly) somewhat less than ideal. Really, a successful use of cached
info has only got one shot to work (server hello, client hello).
Negotiating the algorithm at the same time as negotiating the hashed
values sounds like a lot to expect!

If a cryptographically strong hash function turns out to be required, it
ought to follow TLS-1.2's lead and be defined as SHA-256.

On 5/11/2010 4:00 PM, Stefan Santesson wrote:
> Nico,
> 
> For there to exist two server certificates with the same public key but
> entirely different certificate data, which are crafted to create a hash
> collision, you must have at least one bad certificate issued by a dishonest
> CA who validates to a root trusted by the client.

Keep in mind that some implementations don't actually start validating
the cert chain until the Finished message is received. There's some
logic to this: it hasn't really been proven to have not been "adjusted"
by an attacker until that point anyway and there are good reasons to not
give away precisely at what point the handshake was considered to be a
failure. In practice, it's probably more of a "fits with existing
architecture" decision though.

> If this is the case, then cached info is the least of your problems.

Which is not to say it's not a problem or could never happen.

> For example, you have real problems if that same bad CA issues the attacker
> a certificate (with the same name but another public key) through which the
> attacker (having the corresponding private key) actually can fool the client
> to authenticate the attacker as the legitimate server.

What about if the private key were leaked and the cert was subsequently
revoked?

Does this extend then to fully checking against CRLs?

Could oddball types of certs (PSK, static DH, etc) work any differently
in this regard?

Just tossing out questions.

> On the other hand, I would not object to include a requirement that data
> should/must only be cached from a successful handshake where the server is
> successfully authenticated. That should remove any residue of this issue.

If "successfully authenticated" is only fully determined sometime after
returning application code, does that mean that this extension should
never come enabled by default for a TLS library?

- Marsh

From stefan@aaa-sec.com  Tue May 11 16:06:35 2010
Return-Path: <stefan@aaa-sec.com>
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 4AE663A68F0 for <tls@core3.amsl.com>; Tue, 11 May 2010 16:06:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.632
X-Spam-Level: 
X-Spam-Status: No, score=-2.632 tagged_above=-999 required=5 tests=[AWL=0.617,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 HO1YurKeBTGB for <tls@core3.amsl.com>; Tue, 11 May 2010 16:06:34 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id 59A713A6864 for <tls@ietf.org>; Tue, 11 May 2010 16:06:33 -0700 (PDT)
Received: from s60.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 795D7349C20 for <tls@ietf.org>; Wed, 12 May 2010 01:06:05 +0200 (CEST)
Received: (qmail 60645 invoked from network); 11 May 2010 23:05:55 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.16]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s60.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <marsh@extendedsubset.com>; 11 May 2010 23:05:55 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Tue, 11 May 2010 23:05:55 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: Marsh Ray <marsh@extendedsubset.com>
Message-ID: <C80F9353.ABE0%stefan@aaa-sec.com>
Thread-Topic: [TLS] Collisions (Re:  Consensus Call: FNV vs SHA1)
Thread-Index: AcrxXoJfj3Uo0vkWB0OPlW6lTvDRnA==
In-Reply-To: <4BE9E06B.5000706@extendedsubset.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: Simon Josefsson <simon@josefsson.org>, tls@ietf.org
Subject: Re: [TLS] Collisions (Re:  Consensus Call: FNV vs SHA1)
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: Tue, 11 May 2010 23:06:35 -0000

On 10-05-12 12:55 AM, "Marsh Ray" <marsh@extendedsubset.com> wrote:

> 
>> On the other hand, I would not object to include a requirement that data
>> should/must only be cached from a successful handshake where the server is
>> successfully authenticated. That should remove any residue of this issue.
> 
> If "successfully authenticated" is only fully determined sometime after
> returning application code, does that mean that this extension should
> never come enabled by default for a TLS library?

There is a difference between passing path validation, which is done by the
crypto library, and deciding if the certificate subject is an appropriate
entity, which is done by the application.

In this case I think it is enough that the certificate pass path validation
to a trusted root.

/Stefan




From marsh@extendedsubset.com  Tue May 11 20:29:20 2010
Return-Path: <marsh@extendedsubset.com>
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 1650F28C0EC for <tls@core3.amsl.com>; Tue, 11 May 2010 20:29:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.71
X-Spam-Level: 
X-Spam-Status: No, score=-1.71 tagged_above=-999 required=5 tests=[AWL=0.889,  BAYES_00=-2.599]
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 P+QhrNPG356g for <tls@core3.amsl.com>; Tue, 11 May 2010 20:29:19 -0700 (PDT)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id 4300128C0E3 for <tls@ietf.org>; Tue, 11 May 2010 20:29:19 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OC2dA-000NEQ-FD; Wed, 12 May 2010 03:29:08 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 8F0C0631D; Wed, 12 May 2010 03:29:05 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1+rT5q/f2VKJjFQF8++DWZfEK0XvvWPia0=
Message-ID: <4BEA2083.5000509@extendedsubset.com>
Date: Tue, 11 May 2010 22:29:07 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: Stefan Santesson <stefan@aaa-sec.com>
References: <C80F9353.ABE0%stefan@aaa-sec.com>
In-Reply-To: <C80F9353.ABE0%stefan@aaa-sec.com>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: Simon Josefsson <simon@josefsson.org>, tls@ietf.org
Subject: Re: [TLS] Collisions (Re:  Consensus Call: FNV vs SHA1)
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, 12 May 2010 03:29:20 -0000

On 5/11/2010 4:05 PM, Stefan Santesson wrote:
> On 10-05-12 12:55 AM, "Marsh Ray" <marsh@extendedsubset.com> wrote:
> 
>>
>>> On the other hand, I would not object to include a requirement that data
>>> should/must only be cached from a successful handshake where the server is
>>> successfully authenticated. That should remove any residue of this issue.
>>
>> If "successfully authenticated" is only fully determined sometime after
>> returning application code, does that mean that this extension should
>> never come enabled by default for a TLS library?
> 
> There is a difference between passing path validation, which is done by the
> crypto library, and deciding if the certificate subject is an appropriate
> entity, which is done by the application.
> 
> In this case I think it is enough that the certificate pass path validation
> to a trusted root.

Usually something like that is either critical to the security of the
protocol (and thus needs a cryptographic-strength guarantee) or it's not
(in which case whatever is fine).

I don't see what cert validation directly solves here. After all, the
bad guy can get certs signed, too. Why would it matter if the CN is
different if the CN isn't checked?

In the certificate, the "to-be-signed" tbsCertificate subfield is the
only part directly covered by the signature. Is it possible that an
attacker can modify unused bytes, or append any additional junk in the
part that's not signed? For example, it looks like an RSA signature (RFC
2313 PKCS #1 v 1.5) might admit some nul prefix bytes (it's an integer).
It wouldn't take many modifiable bytes to be able to engineer an
arbitrary FNV-1a value.

Of course the trusted_cas type remains trivially collidable.

- Marsh

From simon@josefsson.org  Wed May 12 02:31:04 2010
Return-Path: <simon@josefsson.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 00DFA3A6B07 for <tls@core3.amsl.com>; Wed, 12 May 2010 02:31:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.378
X-Spam-Level: 
X-Spam-Status: No, score=-2.378 tagged_above=-999 required=5 tests=[AWL=0.221,  BAYES_00=-2.599]
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 fovYoAdBn+Em for <tls@core3.amsl.com>; Wed, 12 May 2010 02:31:03 -0700 (PDT)
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39]) by core3.amsl.com (Postfix) with ESMTP id EB4593A6B05 for <tls@ietf.org>; Wed, 12 May 2010 02:31:01 -0700 (PDT)
Received: from mocca (c80-216-25-148.bredband.comhem.se [80.216.25.148]) (authenticated bits=0) by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o4C9UfmD004752 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 12 May 2010 11:30:43 +0200
From: Simon Josefsson <simon@josefsson.org>
To: Marsh Ray <marsh@extendedsubset.com>
References: <20100510221531.GC9429@oracle.com> <201005111339.o4BDdoYQ009725@fs4113.wdf.sap.corp> <20100511152153.GF9429@oracle.com> <201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil> <20100511190958.GR9429@oracle.com> <4BE9B0BC.2000101@extendedsubset.com> <20100511194620.GU9429@oracle.com> <4BE9B856.40000@extendedsubset.com> <20100511200728.GW9429@oracle.com> <4BE9CC88.6040103@extendedsubset.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100512:marsh@extendedsubset.com::3Eil7qMlT0lpVGTM:7sYH
X-Hashcash: 1:22:100512:nicolas.williams@oracle.com::FP46ACNG0MNfVi+8:9rs4
X-Hashcash: 1:22:100512:tls@ietf.org::IfzsfEJGNTYNCPwL:VEng
X-Hashcash: 1:22:100512:dpkemp@missi.ncsc.mil::c7Q6AGp0KIuK+ona:pKo5
Date: Wed, 12 May 2010 11:30:41 +0200
In-Reply-To: <4BE9CC88.6040103@extendedsubset.com> (Marsh Ray's message of "Tue, 11 May 2010 16:30:48 -0500")
Message-ID: <87aas5sbzy.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Virus-Scanned: clamav-milter 0.96 at yxa-v
X-Virus-Status: Clean
Cc: "Kemp, David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
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, 12 May 2010 09:31:04 -0000

Marsh Ray <marsh@extendedsubset.com> writes:

> Alternatively, if we determine that indeed the non-collision-resistance
> of the hash function is the root of all remaining concerns that would be
> very positive. We could solve them all in one stroke with
> s/FNV-1a/SHA-256/g.

If collision-resistance is a required property (I'm not convinced yet),
I believe we need hash agility for the possibility that SHA-256 is weak.

/Simon

From brian@briansmith.org  Wed May 12 07:42:42 2010
Return-Path: <brian@briansmith.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 57B083A6CA1 for <tls@core3.amsl.com>; Wed, 12 May 2010 07:42:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.001
X-Spam-Level: 
X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[BAYES_50=0.001]
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 F7YeNrfttq8A for <tls@core3.amsl.com>; Wed, 12 May 2010 07:42:41 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id EA28028C2BC for <tls@ietf.org>; Wed, 12 May 2010 07:26:52 -0700 (PDT)
Received: from T60 (unknown [70.245.69.20]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id E9893509DD for <tls@ietf.org>; Wed, 12 May 2010 10:26:35 -0400 (EDT)
From: "Brian Smith" <brian@briansmith.org>
To: <tls@ietf.org>
References: <20100510221531.GC9429@oracle.com>	<201005111339.o4BDdoYQ009725@fs4113.wdf.sap.corp>	<20100511152153.GF9429@oracle.com>	<201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil>	<20100511190958.GR9429@oracle.com>	<4BE9B0BC.2000101@extendedsubset.com>	<20100511194620.GU9429@oracle.com> <4BE9B856.40000@extendedsubset.com>	<20100511200728.GW9429@oracle.com>	<4BE9CC88.6040103@extendedsubset.com> <87aas5sbzy.fsf@mocca.josefsson.org>
In-Reply-To: <87aas5sbzy.fsf@mocca.josefsson.org>
Date: Wed, 12 May 2010 09:26:36 -0500
Message-ID: <003601caf1df$24068ad0$6c13a070$@briansmith.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQHHMro8BXdqp6B5/qHhToooO2CPmgFmW+YJAjUmb1cBpAvaegHc4ZdyAZ8bmowBonugeAHLA4UDAW9AI3oCX1cKLwJX6SjDAjZV8Kg=
Content-Language: en-us
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
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, 12 May 2010 14:42:42 -0000

Simon Josefsson wrote:
> Marsh Ray <marsh@extendedsubset.com> writes:
> 
> > Alternatively, if we determine that indeed the
> > non-collision-resistance of the hash function is the root of all
> > remaining concerns that would be very positive. We could solve them
> > all in one stroke with s/FNV-1a/SHA-256/g.
> 
> If collision-resistance is a required property (I'm not convinced yet), I
believe we
> need hash agility for the possibility that SHA-256 is weak.

In that case, it would be better to consider a new design that follows the
session ID / server-public-key-id design, where the server provides a
cryptographically secured (by TLS) opaque identifier (format totally
unspecified) for the cached data that the client can then use in subsequent
connections. 

Somebody earlier in this thread made a good point that you rarely need this
caching extension if you make good use of session resumption. I think it may
be much better to consider extensions to session resumption that make it
safe(r) to keep sessions open indefinitely (many weeks/months/years).
Perhaps we just need a new extension that says "use this ticket to create a
session using the same server certificate and/or client cert CA list that
was used when the session ticket was created."

Regards,
Brian


From marsh@extendedsubset.com  Wed May 12 07:48:44 2010
Return-Path: <marsh@extendedsubset.com>
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 DF15B28C240 for <tls@core3.amsl.com>; Wed, 12 May 2010 07:48:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.751
X-Spam-Level: 
X-Spam-Status: No, score=-1.751 tagged_above=-999 required=5 tests=[AWL=0.848,  BAYES_00=-2.599]
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 NXWFtBMHn8ri for <tls@core3.amsl.com>; Wed, 12 May 2010 07:48:44 -0700 (PDT)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id BA35C28C370 for <tls@ietf.org>; Wed, 12 May 2010 07:33:32 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OCCzu-000Hvl-Uu; Wed, 12 May 2010 14:33:19 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id A3A88631D; Wed, 12 May 2010 14:33:14 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1+S5fwZHyZoDNxnJDqyRk9h/M4suEA03ek=
Message-ID: <4BEABC2C.6090507@extendedsubset.com>
Date: Wed, 12 May 2010 09:33:16 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: Simon Josefsson <simon@josefsson.org>
References: <20100510221531.GC9429@oracle.com>	<201005111339.o4BDdoYQ009725@fs4113.wdf.sap.corp>	<20100511152153.GF9429@oracle.com>	<201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil>	<20100511190958.GR9429@oracle.com>	<4BE9B0BC.2000101@extendedsubset.com>	<20100511194620.GU9429@oracle.com> <4BE9B856.40000@extendedsubset.com>	<20100511200728.GW9429@oracle.com>	<4BE9CC88.6040103@extendedsubset.com> <87aas5sbzy.fsf@mocca.josefsson.org>
In-Reply-To: <87aas5sbzy.fsf@mocca.josefsson.org>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: "Kemp, David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
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, 12 May 2010 14:48:45 -0000

On 5/12/2010 4:30 AM, Simon Josefsson wrote:
> Marsh Ray <marsh@extendedsubset.com> writes:
> 
>> Alternatively, if we determine that indeed the non-collision-resistance
>> of the hash function is the root of all remaining concerns that would be
>> very positive. We could solve them all in one stroke with
>> s/FNV-1a/SHA-256/g.
> 
> If collision-resistance is a required property (I'm not convinced yet),
> I believe we need hash agility for the possibility that SHA-256 is weak.

But perhaps that agility already exists in the form of the protocol
version negotiation.

TLS 1.2 appears to effectively depend on SHA-256 (at least in HMAC form)
for the PRF. If that gets broken, we can probably not trust anything
else negotiated in the handshake and a rev of the base protocol will be
required to fix it anyway.

If bare SHA-256 is a concern, the hash could be defined as something
like hmac_sha256("Cached Info", object_bytes).

Just a thought.

- Marsh

From mike-list@pobox.com  Wed May 12 08:08:12 2010
Return-Path: <mike-list@pobox.com>
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 F18FE28C2D2 for <tls@core3.amsl.com>; Wed, 12 May 2010 08:08:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.762
X-Spam-Level: 
X-Spam-Status: No, score=-1.762 tagged_above=-999 required=5 tests=[AWL=0.837,  BAYES_00=-2.599]
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 xao0lf4asG+p for <tls@core3.amsl.com>; Wed, 12 May 2010 08:08:10 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 84D7428C314 for <tls@ietf.org>; Wed, 12 May 2010 07:56:01 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 2005DB225B; Wed, 12 May 2010 10:55:51 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=CJmru17qnts+ gByVk61PAbohL+U=; b=UjQtdURmkynyrPzx7b4EQRUFFCpb5l6su66R785XPnBt Lbd42cqaEdoovXVvLu91wzPIKD59vTXw7Nu3A07drUWGMs6te7jJPAS6VCPTyexD ppmwiKWu3CSxaW5Y4bSvt7z/9nSikGKslHnasxQFDB7hhhgSpo6/RrthENE4Jhw=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=xkjZHt /MYQ+aEnpdZ3kEcWvJRnMGFVS01eMK3inGKjlBtW8F01s0sU7g7g0h4QAnokQ1rO Qn6h6hgXP9LSmuWs7PRWU4nQyzmNax5BOAYGaFaMqErfg+4PUROnHxFBsPDW4uTT eG8pDau17S+vdCl8qfqD6Lyxy/F8HwxdVciF4=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id E3232B2257; Wed, 12 May 2010 10:55:47 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 2927DB223E; Wed, 12 May 2010 10:55:02 -0400 (EDT)
Message-ID: <4BEAC145.60607@pobox.com>
Date: Wed, 12 May 2010 07:55:01 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: Simon Josefsson <simon@josefsson.org>
References: <20100510221531.GC9429@oracle.com> <201005111339.o4BDdoYQ009725@fs4113.wdf.sap.corp> <20100511152153.GF9429@oracle.com> <201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil> <20100511190958.GR9429@oracle.com> <4BE9B0BC.2000101@extendedsubset.com> <20100511194620.GU9429@oracle.com> <4BE9B856.40000@extendedsubset.com> <20100511200728.GW9429@oracle.com> <4BE9CC88.6040103@extendedsubset.com> <87aas5sbzy.fsf@mocca.josefsson.org>
In-Reply-To: <87aas5sbzy.fsf@mocca.josefsson.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 730CD63A-5DD6-11DF-A96F-D033EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: "Kemp, David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Subject: [TLS] Justification
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, 12 May 2010 15:08:12 -0000

Can someone please remind me why we want cached-info?  It seems that
the problems it creates aren't worth the small optimization it might
provide.

Mike



Simon Josefsson wrote:
> Marsh Ray <marsh@extendedsubset.com> writes:
> 
>> Alternatively, if we determine that indeed the non-collision-resistance
>> of the hash function is the root of all remaining concerns that would be
>> very positive. We could solve them all in one stroke with
>> s/FNV-1a/SHA-256/g.
> 
> If collision-resistance is a required property (I'm not convinced yet),
> I believe we need hash agility for the possibility that SHA-256 is weak.
> 
> /Simon

From simon@josefsson.org  Wed May 12 08:20:35 2010
Return-Path: <simon@josefsson.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 811603A698C for <tls@core3.amsl.com>; Wed, 12 May 2010 08:20:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.299
X-Spam-Level: 
X-Spam-Status: No, score=-2.299 tagged_above=-999 required=5 tests=[AWL=0.300,  BAYES_00=-2.599]
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 uhTlYpH-JmNZ for <tls@core3.amsl.com>; Wed, 12 May 2010 08:20:34 -0700 (PDT)
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39]) by core3.amsl.com (Postfix) with ESMTP id 9129328C1B7 for <tls@ietf.org>; Wed, 12 May 2010 08:06:44 -0700 (PDT)
Received: from [192.168.1.161] (m83-178-246-202.cust.tele2.se [83.178.246.202]) (authenticated bits=0) by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o4CF5oaV014376 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 12 May 2010 17:06:24 +0200
From: Simon Josefsson <simon@josefsson.org>
To: "Michael D'Errico" <mike-list@pobox.com>
In-Reply-To: <4BEAC145.60607@pobox.com>
References: <20100510221531.GC9429@oracle.com> <201005111339.o4BDdoYQ009725@fs4113.wdf.sap.corp> <20100511152153.GF9429@oracle.com> <201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil> <20100511190958.GR9429@oracle.com> <4BE9B0BC.2000101@extendedsubset.com> <20100511194620.GU9429@oracle.com> <4BE9B856.40000@extendedsubset.com> <20100511200728.GW9429@oracle.com> <4BE9CC88.6040103@extendedsubset.com> <87aas5sbzy.fsf@mocca.josefsson.org>  <4BEAC145.60607@pobox.com>
Content-Type: text/plain; charset="UTF-8"
Date: Wed, 12 May 2010 17:05:48 +0200
Message-ID: <1273676748.1486.4.camel@sockerbit>
Mime-Version: 1.0
X-Mailer: Evolution 2.28.3 
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: clamav-milter 0.96 at yxa-v
X-Virus-Status: Clean
Cc: "Kemp, David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Subject: Re: [TLS] Justification
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, 12 May 2010 15:20:35 -0000

ons 2010-05-12 klockan 07:55 -0700 skrev Michael D'Errico:
> Can someone please remind me why we want cached-info?  It seems that
> the problems it creates aren't worth the small optimization it might
> provide.

I still have hope we can rescue the extension.  The use-case I have seen
is that server cert chains and list of trusted CAs can easily make a TLS
30-40kb large.  Caching would reduce this.

However, TLS session resume also solves this problem, and it is
relatively easy to implement in most libraries.

/Simon



From agl@google.com  Wed May 12 08:27:11 2010
Return-Path: <agl@google.com>
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 C74FB28C30A for <tls@core3.amsl.com>; Wed, 12 May 2010 08:27:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.977
X-Spam-Level: 
X-Spam-Status: No, score=-101.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, USER_IN_WHITELIST=-100]
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 j0d52bX0jOhI for <tls@core3.amsl.com>; Wed, 12 May 2010 08:27:11 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.35]) by core3.amsl.com (Postfix) with ESMTP id 6A80C3A698A for <tls@ietf.org>; Wed, 12 May 2010 08:11:40 -0700 (PDT)
Received: from kpbe13.cbf.corp.google.com (kpbe13.cbf.corp.google.com [172.25.105.77]) by smtp-out.google.com with ESMTP id o4CFBSfq001665 for <tls@ietf.org>; Wed, 12 May 2010 08:11:28 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1273677089; bh=qYh/rITk58cnZQEoCby7TruYjck=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type:Content-Transfer-Encoding; b=Uq8UehUgbUnn3IKAgMkeLVF4g7aC6lp3uHPJCA4IRK2CwaC78dSqY1SdaNK7Rk390 r0y+P+ydaq8Gz09zAYqsg==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:content-transfer-encoding:x-system-of-record; b=mJNVxxQC/7PiRfYw1OUtsYGMyl0uh7P9CGWrsETOM4JE8WKFgdP6JXPGuCz2coocx hs25rxYnObYd0mXHkYCzA==
Received: from gwb19 (gwb19.prod.google.com [10.200.2.19]) by kpbe13.cbf.corp.google.com with ESMTP id o4CFBPli025554 for <tls@ietf.org>; Wed, 12 May 2010 08:11:27 -0700
Received: by gwb19 with SMTP id 19so43148gwb.31 for <tls@ietf.org>; Wed, 12 May 2010 08:11:26 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.7.3 with SMTP id 3mr12823759ybg.32.1273677086130; Wed, 12  May 2010 08:11:26 -0700 (PDT)
Received: by 10.150.183.14 with HTTP; Wed, 12 May 2010 08:11:25 -0700 (PDT)
In-Reply-To: <4BEAC145.60607@pobox.com>
References: <20100510221531.GC9429@oracle.com> <201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil> <20100511190958.GR9429@oracle.com> <4BE9B0BC.2000101@extendedsubset.com> <20100511194620.GU9429@oracle.com> <4BE9B856.40000@extendedsubset.com> <20100511200728.GW9429@oracle.com> <4BE9CC88.6040103@extendedsubset.com> <87aas5sbzy.fsf@mocca.josefsson.org> <4BEAC145.60607@pobox.com>
Date: Wed, 12 May 2010 11:11:25 -0400
Message-ID: <n2va84d7bc61005120811o737c2011i27f9d40e88417539@mail.gmail.com>
From: Adam Langley <agl@google.com>
To: "Michael D'Errico" <mike-list@pobox.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-System-Of-Record: true
Cc: Simon Josefsson <simon@josefsson.org>, "Kemp, David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Subject: Re: [TLS] Justification
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, 12 May 2010 15:27:12 -0000

On Wed, May 12, 2010 at 10:55 AM, Michael D'Errico <mike-list@pobox.com> wr=
ote:
> Can someone please remind me why we want cached-info? =C2=A0It seems that
> the problems it creates aren't worth the small optimization it might
> provide.

In order to support multi-ocsp stapling in the future without
overflowing the initcwnd limit.


AGL

From brian@briansmith.org  Wed May 12 09:01:21 2010
Return-Path: <brian@briansmith.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 257313A68BD for <tls@core3.amsl.com>; Wed, 12 May 2010 09:01:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.299
X-Spam-Level: 
X-Spam-Status: No, score=-1.299 tagged_above=-999 required=5 tests=[AWL=1.300,  BAYES_00=-2.599]
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 1v28-r0zhaAY for <tls@core3.amsl.com>; Wed, 12 May 2010 09:01:17 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 42CDC28C16F for <tls@ietf.org>; Wed, 12 May 2010 08:47:58 -0700 (PDT)
Received: from T60 (unknown [70.245.69.20]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 8C831509E8; Wed, 12 May 2010 11:47:41 -0400 (EDT)
From: "Brian Smith" <brian@briansmith.org>
To: "'Adam Langley'" <agl@google.com>, <tls@ietf.org>
References: <20100510221531.GC9429@oracle.com>	<201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil>	<20100511190958.GR9429@oracle.com>	<4BE9B0BC.2000101@extendedsubset.com>	<20100511194620.GU9429@oracle.com> <4BE9B856.40000@extendedsubset.com>	<20100511200728.GW9429@oracle.com>	<4BE9CC88.6040103@extendedsubset.com>	<87aas5sbzy.fsf@mocca.josefsson.org> <4BEAC145.60607@pobox.com> <n2va84d7bc61005120811o737c2011i27f9d40e88417539@mail.gmail.com>
In-Reply-To: <n2va84d7bc61005120811o737c2011i27f9d40e88417539@mail.gmail.com>
Date: Wed, 12 May 2010 10:47:42 -0500
Message-ID: <004901caf1ea$783e23a0$68ba6ae0$@briansmith.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQHHMro8BXdqp6B5/qHhToooO2CPmgGkC9p6Adzhl3IBnxuajAGie6B4AcsDhQMBb0AjegJfVwovAlfpKMMCJx11pQHKrGQ0AUPG67A=
Content-Language: en-us
Subject: Re: [TLS] Justification
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, 12 May 2010 16:01:21 -0000

Adam Langley wrote:
> On Wed, May 12, 2010 at 10:55 AM, Michael D'Errico =
<mike-list@pobox.com>
> wrote:
> > Can someone please remind me why we want cached-info?  It seems that
> > the problems it creates aren't worth the small optimization it might
> > provide.
>=20
> In order to support multi-ocsp stapling in the future without =
overflowing the
> initcwnd limit.

I don't think that a caching mechanism based on hashing the OCSP =
responses is going to be optimal for this. A different caching mechanism =
that allows the client to ask specifically for only *newer* (not just =
*different*) OCSP responses would be much better.

Regards,
Brian


From mike-list@pobox.com  Wed May 12 09:16:58 2010
Return-Path: <mike-list@pobox.com>
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 F12F928C2BC for <tls@core3.amsl.com>; Wed, 12 May 2010 09:16:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.882
X-Spam-Level: 
X-Spam-Status: No, score=-1.882 tagged_above=-999 required=5 tests=[AWL=0.717,  BAYES_00=-2.599]
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 NI7SSdlE-tOs for <tls@core3.amsl.com>; Wed, 12 May 2010 09:16:57 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id D602728C2BD for <tls@ietf.org>; Wed, 12 May 2010 08:58:22 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 3A85BB2E3A; Wed, 12 May 2010 11:58:12 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=HZqF17DJTlKK UJ2fUSSmAFaiENo=; b=NhO4hQLWZAi9K+gFEOgRaQLAtlHeCxEtILmy7WKMPhjx etAc5ClXGsDc69HAdQYmg8UjpMlk9P1Lu16AvTP7OR/pdF1I4k87Z9H/4p3UZRF8 kFYorZSYsYaMzGEEuUPvnby7k8WYzPpl+85FS5qaE1h1Kfvz7G4/5ohVPY2cyBA=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=XKL/yD UqgRN/fZQwhSBiy4MKeoCHCxvh2Erb//57W1l69vSj8M9kf4t0KWqEIsOdGmGuzM xY9YebExkZ7AqQkXfPw7WblXle3GkhOWQZF+BvFrehqcr2e6ALYYxMsQSrCA133x 32euU4H5NtwQ23U9KTDdOgCnZRO8qbfpeP0Rc=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id E1E7DB2E36; Wed, 12 May 2010 11:58:08 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 30BE3B2E33; Wed, 12 May 2010 11:58:05 -0400 (EDT)
Message-ID: <4BEAD00C.6010703@pobox.com>
Date: Wed, 12 May 2010 08:58:04 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: Adam Langley <agl@google.com>
References: <20100510221531.GC9429@oracle.com> <201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil> <20100511190958.GR9429@oracle.com> <4BE9B0BC.2000101@extendedsubset.com> <20100511194620.GU9429@oracle.com> <4BE9B856.40000@extendedsubset.com> <20100511200728.GW9429@oracle.com> <4BE9CC88.6040103@extendedsubset.com> <87aas5sbzy.fsf@mocca.josefsson.org> <4BEAC145.60607@pobox.com> <n2va84d7bc61005120811o737c2011i27f9d40e88417539@mail.gmail.com>
In-Reply-To: <n2va84d7bc61005120811o737c2011i27f9d40e88417539@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 28DB50CE-5DDF-11DF-B028-D033EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: Simon Josefsson <simon@josefsson.org>, "Kemp, David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Subject: Re: [TLS] Justification
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, 12 May 2010 16:16:59 -0000

Adam Langley wrote:
> On Wed, May 12, 2010 at 10:55 AM, Michael D'Errico <mike-list@pobox.com> wrote:
>> Can someone please remind me why we want cached-info?  It seems that
>> the problems it creates aren't worth the small optimization it might
>> provide.
> 
> In order to support multi-ocsp stapling in the future without
> overflowing the initcwnd limit.

I know what OCSP is, but not the rest.  Even so, shouldn't we wait
until this "future" need exists before we try to optimize it?

Or better yet, design multi-ocsp stapling itself to be optimized
the way you want.

Mike

From agl@google.com  Wed May 12 09:17:12 2010
Return-Path: <agl@google.com>
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 C040C28C3B4 for <tls@core3.amsl.com>; Wed, 12 May 2010 09:17:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.933
X-Spam-Level: 
X-Spam-Status: No, score=-103.933 tagged_above=-999 required=5 tests=[AWL=0.556, BAYES_05=-1.11, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
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 cd67sxHpMLtw for <tls@core3.amsl.com>; Wed, 12 May 2010 09:17:11 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id 3468428C2CF for <tls@ietf.org>; Wed, 12 May 2010 08:58:44 -0700 (PDT)
Received: from hpaq3.eem.corp.google.com (hpaq3.eem.corp.google.com [172.25.149.3]) by smtp-out.google.com with ESMTP id o4CFwXlV005685 for <tls@ietf.org>; Wed, 12 May 2010 08:58:33 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1273679913; bh=GTa1n6XS/OJXjOTyPoSNnPNPuy8=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type:Content-Transfer-Encoding; b=dVHVcSIFELmldaGPdfODlZkknPzhg8mE7heyC3qwdnC8LiLOwTG/9e5oqt+eUSl1e jdozKN5yOJoiImNPXdyPw==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:content-transfer-encoding:x-system-of-record; b=W524bweOhvCrQBGF6KljwprHZ5+UZ9OLo2qel54WdCNn4CYyp3PBDU5gxHxPRJonE QRDtmk6mC6X45g9ri5uUA==
Received: from ywh6 (ywh6.prod.google.com [10.192.8.6]) by hpaq3.eem.corp.google.com with ESMTP id o4CFwUbe007786 for <tls@ietf.org>; Wed, 12 May 2010 08:58:31 -0700
Received: by ywh6 with SMTP id 6so42504ywh.16 for <tls@ietf.org>; Wed, 12 May 2010 08:58:30 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.253.18 with SMTP id a18mr11178598ybi.330.1273679910692;  Wed, 12 May 2010 08:58:30 -0700 (PDT)
Received: by 10.150.183.14 with HTTP; Wed, 12 May 2010 08:58:30 -0700 (PDT)
In-Reply-To: <004901caf1ea$783e23a0$68ba6ae0$@briansmith.org>
References: <20100510221531.GC9429@oracle.com> <4BE9B0BC.2000101@extendedsubset.com> <20100511194620.GU9429@oracle.com> <4BE9B856.40000@extendedsubset.com> <20100511200728.GW9429@oracle.com> <4BE9CC88.6040103@extendedsubset.com> <87aas5sbzy.fsf@mocca.josefsson.org> <4BEAC145.60607@pobox.com> <n2va84d7bc61005120811o737c2011i27f9d40e88417539@mail.gmail.com> <004901caf1ea$783e23a0$68ba6ae0$@briansmith.org>
Date: Wed, 12 May 2010 11:58:30 -0400
Message-ID: <p2xa84d7bc61005120858v2ce68cf7xe6ddf559faf4d4b0@mail.gmail.com>
From: Adam Langley <agl@google.com>
To: Brian Smith <brian@briansmith.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-System-Of-Record: true
Cc: tls@ietf.org
Subject: Re: [TLS] Justification
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, 12 May 2010 16:17:12 -0000

On Wed, May 12, 2010 at 11:47 AM, Brian Smith <brian@briansmith.org> wrote:
> I don't think that a caching mechanism based on hashing the OCSP response=
s is going to be optimal for this. A different caching mechanism that allow=
s the client to ask specifically for only *newer* (not just *different*) OC=
SP responses would be much better.

The specific case that I'm worried about is a client connecting to a
server for which the previously cached OCSP responses have expired.

As an example, consider a server which returns two certificates: 806
and 807 bytes long. The OCSP responses for these certs are 1085 bytes
long. So the total return is 3783 bytes, not including the overhead of
the ServerHello etc. This is very close to the three packet limit.


AGL

From marsh@extendedsubset.com  Wed May 12 10:24:48 2010
Return-Path: <marsh@extendedsubset.com>
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 B082E3A6DB3 for <tls@core3.amsl.com>; Wed, 12 May 2010 10:24:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.58
X-Spam-Level: 
X-Spam-Status: No, score=-0.58 tagged_above=-999 required=5 tests=[AWL=-0.395,  BAYES_40=-0.185]
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 AJAvsJD-p2p6 for <tls@core3.amsl.com>; Wed, 12 May 2010 10:24:46 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id B3C273A6CF1 for <tls@ietf.org>; Wed, 12 May 2010 09:59:51 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OCFHZ-000HuQ-7K; Wed, 12 May 2010 16:59:41 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id BED24631D; Wed, 12 May 2010 16:59:36 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1+e1+SZySmiMZEcF7tc9sOZxHmMykdxt6Q=
Message-ID: <4BEADE7A.2070002@extendedsubset.com>
Date: Wed, 12 May 2010 11:59:38 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: Simon Josefsson <simon@josefsson.org>
References: <20100510221531.GC9429@oracle.com>	 <201005111339.o4BDdoYQ009725@fs4113.wdf.sap.corp>	 <20100511152153.GF9429@oracle.com>	 <201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil>	 <20100511190958.GR9429@oracle.com> <4BE9B0BC.2000101@extendedsubset.com>	 <20100511194620.GU9429@oracle.com> <4BE9B856.40000@extendedsubset.com>	 <20100511200728.GW9429@oracle.com> <4BE9CC88.6040103@extendedsubset.com>	 <87aas5sbzy.fsf@mocca.josefsson.org> <4BEAC145.60607@pobox.com> <1273676748.1486.4.camel@sockerbit>
In-Reply-To: <1273676748.1486.4.camel@sockerbit>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Cc: "Kemp, David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Subject: Re: [TLS] Justification
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, 12 May 2010 17:24:48 -0000

On 5/12/2010 10:05 AM, Simon Josefsson wrote:
> ons 2010-05-12 klockan 07:55 -0700 skrev Michael D'Errico:
>> Can someone please remind me why we want cached-info?

It saves KB++ at the beginning of handshakes, which is a really big deal
for some deployments.

>> It seems that
>> the problems it creates aren't worth the small optimization it might
>> provide.
> 
> I still have hope we can rescue the extension.

Me too. It may be as simple as agreeing on the right hash function (or
the minimally functional subset of the extensible set containing all
negotiable choices).

> The use-case I have seen
> is that server cert chains and list of trusted CAs can easily make a TLS
> 30-40kb large.  Caching would reduce this.
> 
> However, TLS session resume also solves this problem, and it is
> relatively easy to implement in most libraries.

The important thing that this _could_ enable, which resumption does not,
is the ability to persist the cached info onto
less-than-perfectly-trusted media. I.e., save it as /tmp files and if
the hard drive is sold on ebay it doesn't represent a disclosure.

Come to think of it, that may be the best argument of all in favor of a
strong hash function: it enables the cache to be kept for arbitrary
lengths of time without special protections or serious security
considerations.

- Marsh

From brian@briansmith.org  Wed May 12 10:26:03 2010
Return-Path: <brian@briansmith.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 AB0B028C160 for <tls@core3.amsl.com>; Wed, 12 May 2010 10:26:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.742
X-Spam-Level: 
X-Spam-Status: No, score=-0.742 tagged_above=-999 required=5 tests=[AWL=-0.557, BAYES_40=-0.185]
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 mgW+tnByaKzN for <tls@core3.amsl.com>; Wed, 12 May 2010 10:26:02 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id E7F4528C184 for <tls@ietf.org>; Wed, 12 May 2010 10:01:23 -0700 (PDT)
Received: from T60 (unknown [70.245.69.20]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 6FEAE509DC; Wed, 12 May 2010 13:01:06 -0400 (EDT)
From: "Brian Smith" <brian@briansmith.org>
To: "'Adam Langley'" <agl@google.com>
References: <20100510221531.GC9429@oracle.com>	 <4BE9B0BC.2000101@extendedsubset.com>	 <20100511194620.GU9429@oracle.com> <4BE9B856.40000@extendedsubset.com>	 <20100511200728.GW9429@oracle.com>	 <4BE9CC88.6040103@extendedsubset.com>	 <87aas5sbzy.fsf@mocca.josefsson.org> <4BEAC145.60607@pobox.com>	 <n2va84d7bc61005120811o737c2011i27f9d40e88417539@mail.gmail.com>	 <004901caf1ea$783e23a0$68ba6ae0$@briansmith.org> <p2xa84d7bc61005120858v2ce68cf7xe6ddf559faf4d4b0@mail.gmail.com>
In-Reply-To: <p2xa84d7bc61005120858v2ce68cf7xe6ddf559faf4d4b0@mail.gmail.com>
Date: Wed, 12 May 2010 12:01:07 -0500
Message-ID: <006501caf1f4$b9ad3150$2d0793f0$@briansmith.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQHHMro8BXdqp6B5/qHhToooO2CPmgGfG5qMAaJ7oHgBywOFAwFvQCN6Al9XCi8CV+kowwInHXWlAcqsZDQBQ8brsAG7bSMGAl3emYc=
Content-Language: en-us
Cc: tls@ietf.org
Subject: Re: [TLS] Justification
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, 12 May 2010 17:26:03 -0000

Adam Langley wrote:
> On Wed, May 12, 2010 at 11:47 AM, Brian Smith <brian@briansmith.org> =
wrote:
> I don't think that a caching mechanism based on hashing the OCSP =
responses is
> going to be optimal for this. A different caching mechanism that =
allows the
> client to ask specifically for only *newer* (not just *different*) =
OCSP responses
> would be much better.
>=20
> The specific case that I'm worried about is a client connecting to a
> server for which the previously cached OCSP responses have expired.
>=20
> As an example, consider a server which returns two certificates: 806
> and 807 bytes long. The OCSP responses for these certs are 1085 bytes
> long. So the total return is 3783 bytes, not including the overhead of
> the ServerHello etc. This is very close to the three packet limit.

Yes, I understand. But, just because the server has a different OCSP =
response, doesn't mean that it's OCSP response is better than the cached =
one. For example, two responses could have different producedAt times =
but the same thisUpdate/nextUpdate times. Or, even thisUpdate might be =
slightly newer, but not enough to make it worthwhile to download it. =
AFAICT, optimally the client would ask for an OCSP response with =
thisUpdate >=3D X, where X is some time significantly later than its =
cached OCSP response's thisUpdate but before its cached OCSP's responses =
nextUpdate.

At any rate, I think it would be better to discuss the optimal way of =
caching OCSP responses first, independent of syntax. Then it would be =
clear whether this syntax or another one would be best.

Regards,
Brian


From DPKemp@missi.ncsc.mil  Wed May 12 10:50:19 2010
Return-Path: <DPKemp@missi.ncsc.mil>
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 CADDF3A6944 for <tls@core3.amsl.com>; Wed, 12 May 2010 10:50:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.142
X-Spam-Level: 
X-Spam-Status: No, score=-4.142 tagged_above=-999 required=5 tests=[AWL=-0.143, BAYES_50=0.001, 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 vV5GDo1nT+K3 for <tls@core3.amsl.com>; Wed, 12 May 2010 10:50:18 -0700 (PDT)
Received: from stingray.missi.ncsc.mil (stingray.missi.ncsc.mil [144.51.50.20]) by core3.amsl.com (Postfix) with ESMTP id A65A83A6CF8 for <tls@ietf.org>; Wed, 12 May 2010 10:26:15 -0700 (PDT)
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-MimeOLE: Produced By Microsoft Exchange V6.5
Date: Wed, 12 May 2010 13:25:48 -0400
Message-ID: <201005121726.o4CHQ0pk025524@stingray.missi.ncsc.mil>
In-Reply-To: <4BE9D3D2.8070009@extendedsubset.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] [POSSIBLE SPAM] Re: Collisions (Re: Consensus Call: FNV vs SHA1)
Thread-Index: AcrxVZWCbzFWSLlLSsWekh0YQm8DvAAnCvdw
References: <87bpcn4cy6.fsf@mocca.josefsson.org>	<C80E5AA0.AB38%stefan@aaa-sec.com><87bpcm3m2w.fsf@mocca.josefsson.org>	<4BE9A1BD.9010905@extendedsubset.com> <201005112120.o4BLKLRL016765@stingray.missi.ncsc.mil> <4BE9D3D2.8070009@extendedsubset.com>
From: "Kemp, David P." <DPKemp@missi.ncsc.mil>
To: <tls@ietf.org>
X-OriginalArrivalTime: 12 May 2010 17:27:13.0109 (UTC) FILETIME=[5BFED050:01CAF1F8]
Subject: Re: [TLS] [POSSIBLE SPAM] Re: Collisions (Re: Consensus Call: FNV vs SHA1)
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, 12 May 2010 17:50:19 -0000

It's not obvious that cache substitution could not be integrated cleanly
into the TLS record layer.  A hypothetical
CompressionMethod.CachedObject algorithm would know nothing about the
specific types of objects being cached, it would just have a
register-object method that creates an equivalence between an opaque
object-id string and an opaque object-content string.

Higher-level code that knows about TAs, certificates, etc would hash the
objects it has cached and register them with the compression algorithm
at application startup, and from that point on the record layer would
match and compress/expand any registered objects encountered in the data
stream (with escaping as necessary).  This should all be invisible to
the handshake layer; I can't think of a reason why it would require
"retroactive" data modification.  It might require modification of the
TLS spec, since currently a compresson algorithm is not permitted to
expand the content length by more than 1024 bytes and the best cached
objects are larger than that.

Of course this is just a napkin sketch; it certainly might turn out to
be impractical to implement.  But I don't see any big impediments yet.

Dave


-----Original Message-----
From: Marsh Ray [mailto:marsh@extendedsubset.com]=20
Sent: Tuesday, May 11, 2010 6:02 PM
To: Kemp, David P.
Cc: tls@ietf.org
Subject: Re: [TLS] [POSSIBLE SPAM] Re: Collisions (Re: Consensus Call:
FNV vs SHA1)
Importance: Low

On 5/11/2010 4:16 PM, Kemp, David P. wrote:
> The security analysis should focus on the bizarre Finished message
> calculation rather than on the hash algorithm.  The essence of caching
> is that cached data has the same effect as transmitted data, only
faster
> :-).  Section 4 violates that assumption:
>=20
>    "The handshake protocol will proceed using the cached data as if it
>    was provided in the handshake protocol. The Finished message will
>    however be calculated over the actual data exchanged in the
handshake
>    protocol."

It is definitely a mismatch, but I think it's the simplest and least
inconsistent of the possible ways it could be defined.

> If the Finished message is not calculated as if the data were actually
> transmitted, then it cannot ensure the integrity of that data.

Not as easily and directly, but it can if we can prove either:

A. the values transmitted are perfect equivalents for the values used,
or

B. a mismatch (no matter how carefully engineered by the attacker) can
not make a semantic difference to any reasonable application code other
than what would result from an ordinary Finished verify failure.

> Strike
> the second sentence and the problem goes away.

And you gain a harder one in return...

> The transmitter has to
> perform Finished calculations on the original datastream, then
> post-process it to substitute hashes where possible.  The receiver
first
> has to expand hashes into data, and then perform handshake operations
> including Finished calculations.

But these things happen at different layers of the protocol.

The Finished messages are calculated on the handshake layer as carried
by the record layer (IIRC this includes the HandshakeType and length
bytes). Currently it can be implemented by keeping a running hash of the
bytes without actually buffering them in memory. That code shouldn't
need to change at all.

Operations like iterating a list of TAs to find a client cert or
validating a server cert are typically going to be performed at a higher
layer in the code that probably already has similar function defined for
processing those items.

If you needed to calculate a Finished message by retroactively modifying
the handshake data stream, it would be harder. You would have to do
things like fix up length fields (potentially recursing up multiple
layers). That would certainly make introducing new
CachedInformationTypes more disruptive. It would also effectively
require implementations to buffer everything until all substitutions
were resolved.

That's why I think the draft does it the best way.

- Marsh

From mike-list@pobox.com  Wed May 12 10:51:03 2010
Return-Path: <mike-list@pobox.com>
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 6880E3A6D54 for <tls@core3.amsl.com>; Wed, 12 May 2010 10:51:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.972
X-Spam-Level: 
X-Spam-Status: No, score=-1.972 tagged_above=-999 required=5 tests=[AWL=0.628,  BAYES_00=-2.599]
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 FJolwhX3SciL for <tls@core3.amsl.com>; Wed, 12 May 2010 10:51:02 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 72B2F28C175 for <tls@ietf.org>; Wed, 12 May 2010 10:26:55 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id B71C6B2E6B; Wed, 12 May 2010 13:26:44 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=OY3XC0XIuoId lFdOWNu8NuSVlNk=; b=rzSHYkqHezALpiW+3Zw5ikz0EDIfjRSnghbN08QIDpU3 wq6BQrjyMFbZ7VFA82xd7ehL9aaDC9dsTW6N3dU15P1x6SzJORbTIHLqVPNensNQ pIIx5ZM/HJuuyacLjuTFG7Yx++n/hlD2i80OFWb1rkv/1BmOyw9bQ8psDod6HYA=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=K4BW80 xqRCBcfGBdwuO/NsVfGxSl8CA03c0ZWsq69OC6W48oh0+iwECpQbBtvQU6NUti+4 ehNtU3MiT6GyyR1sm0RvWlAxHMU7O5bTHXdjoqztCZUEA+FgBXcebptI8KLIAgaK B1QrwSEXMfZwzXMzByGTHkiw0boI5RNLHLvuc=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 93BBDB2E6A; Wed, 12 May 2010 13:26:42 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 031E8B2E68; Wed, 12 May 2010 13:26:39 -0400 (EDT)
Message-ID: <4BEAE4CF.7070205@pobox.com>
Date: Wed, 12 May 2010 10:26:39 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: Adam Langley <agl@google.com>
References: <20100510221531.GC9429@oracle.com> <4BE9B0BC.2000101@extendedsubset.com> <20100511194620.GU9429@oracle.com> <4BE9B856.40000@extendedsubset.com> <20100511200728.GW9429@oracle.com> <4BE9CC88.6040103@extendedsubset.com> <87aas5sbzy.fsf@mocca.josefsson.org> <4BEAC145.60607@pobox.com> <n2va84d7bc61005120811o737c2011i27f9d40e88417539@mail.gmail.com> <004901caf1ea$783e23a0$68ba6ae0$@briansmith.org> <p2xa84d7bc61005120858v2ce68cf7xe6ddf559faf4d4b0@mail.gmail.com>
In-Reply-To: <p2xa84d7bc61005120858v2ce68cf7xe6ddf559faf4d4b0@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 880E7CA4-5DEB-11DF-AF35-D033EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Justification
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, 12 May 2010 17:51:03 -0000

Adam Langley wrote:
 > This is very close to the three packet limit.

What is this three packet limit you speak of?

Mike




Adam Langley wrote:
> On Wed, May 12, 2010 at 11:47 AM, Brian Smith <brian@briansmith.org> wrote:
>> I don't think that a caching mechanism based on hashing the OCSP responses is going to be optimal for this. A different caching mechanism that allows the client to ask specifically for only *newer* (not just *different*) OCSP responses would be much better.
> 
> The specific case that I'm worried about is a client connecting to a
> server for which the previously cached OCSP responses have expired.
> 
> As an example, consider a server which returns two certificates: 806
> and 807 bytes long. The OCSP responses for these certs are 1085 bytes
> long. So the total return is 3783 bytes, not including the overhead of
> the ServerHello etc. This is very close to the three packet limit.
> 
> 
> AGL

From agl@google.com  Wed May 12 10:55:47 2010
Return-Path: <agl@google.com>
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 C3D863A6D94 for <tls@core3.amsl.com>; Wed, 12 May 2010 10:55:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.955
X-Spam-Level: 
X-Spam-Status: No, score=-104.955 tagged_above=-999 required=5 tests=[AWL=1.022, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
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 OuKp1ORWLA76 for <tls@core3.amsl.com>; Wed, 12 May 2010 10:55:46 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id 1AC4D28C3A3 for <tls@ietf.org>; Wed, 12 May 2010 10:33:22 -0700 (PDT)
Received: from wpaz1.hot.corp.google.com (wpaz1.hot.corp.google.com [172.24.198.65]) by smtp-out.google.com with ESMTP id o4CHXBi4012195 for <tls@ietf.org>; Wed, 12 May 2010 10:33:11 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1273685591; bh=fevI6zNv3BDXTPVpk23A6YpEkrk=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=K87R9DQFpwCAIfl7STxEvoqqT44Vxr6dHEtjuoZSt69q6iZ+MmAsM3jHhm2ysK2v5 J8bF4qPgqKLjLtUSWqUkA==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:x-system-of-record; b=Pde5fEoTiGqY0C9/UImFEj9mhrCXSxyTHbMqCQ/jMg4a26uLSAY3xhcXSos9tDoSG Ui47MK9dy2RupY2hYMc2Q==
Received: from ywh2 (ywh2.prod.google.com [10.192.8.2]) by wpaz1.hot.corp.google.com with ESMTP id o4CHWt2n031577 for <tls@ietf.org>; Wed, 12 May 2010 10:33:10 -0700
Received: by ywh2 with SMTP id 2so113090ywh.0 for <tls@ietf.org>; Wed, 12 May 2010 10:33:10 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.151.115.4 with SMTP id s4mr9887456ybm.413.1273685589488; Wed,  12 May 2010 10:33:09 -0700 (PDT)
Received: by 10.150.183.14 with HTTP; Wed, 12 May 2010 10:33:08 -0700 (PDT)
In-Reply-To: <4BEAE4CF.7070205@pobox.com>
References: <20100510221531.GC9429@oracle.com> <4BE9B856.40000@extendedsubset.com> <20100511200728.GW9429@oracle.com> <4BE9CC88.6040103@extendedsubset.com> <87aas5sbzy.fsf@mocca.josefsson.org> <4BEAC145.60607@pobox.com> <n2va84d7bc61005120811o737c2011i27f9d40e88417539@mail.gmail.com> <004901caf1ea$783e23a0$68ba6ae0$@briansmith.org> <p2xa84d7bc61005120858v2ce68cf7xe6ddf559faf4d4b0@mail.gmail.com> <4BEAE4CF.7070205@pobox.com>
Date: Wed, 12 May 2010 13:33:08 -0400
Message-ID: <p2ga84d7bc61005121033n169fc0fdyb2bc94b504f3fc2c@mail.gmail.com>
From: Adam Langley <agl@google.com>
To: "Michael D'Errico" <mike-list@pobox.com>
Content-Type: text/plain; charset=UTF-8
X-System-Of-Record: true
Cc: tls@ietf.org
Subject: Re: [TLS] Justification
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, 12 May 2010 17:55:47 -0000

On Wed, May 12, 2010 at 1:26 PM, Michael D'Errico <mike-list@pobox.com> wrote:
> What is this three packet limit you speak of?

TCP's initial congestion window is three frames (for now). So a TLS
server which needs more than three frames to send ServerHello through
to ServerHelloDone will have to wait additional round trips for
acknowledgments from the client.


AGL

From Nicolas.Williams@oracle.com  Wed May 12 11:03:13 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 9C6533A6DA5 for <tls@core3.amsl.com>; Wed, 12 May 2010 11:03:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.133
X-Spam-Level: 
X-Spam-Status: No, score=-5.133 tagged_above=-999 required=5 tests=[AWL=1.465,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 V+1pqOXeGQKc for <tls@core3.amsl.com>; Wed, 12 May 2010 11:03:10 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 5D2293A6BAF for <tls@ietf.org>; Wed, 12 May 2010 10:40:40 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4CHeQOO010752 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 12 May 2010 17:40:28 GMT
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4CCpLVq022373; Wed, 12 May 2010 17:40:25 GMT
Received: from abhmt008.oracle.com by acsmt353.oracle.com with ESMTP id 235830551273685982; Wed, 12 May 2010 10:39:42 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 12 May 2010 10:39:41 -0700
Date: Wed, 12 May 2010 12:39:35 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Simon Josefsson <simon@josefsson.org>
Message-ID: <20100512173935.GG9429@oracle.com>
References: <201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil> <20100511190958.GR9429@oracle.com> <4BE9B0BC.2000101@extendedsubset.com> <20100511194620.GU9429@oracle.com> <4BE9B856.40000@extendedsubset.com> <20100511200728.GW9429@oracle.com> <4BE9CC88.6040103@extendedsubset.com> <87aas5sbzy.fsf@mocca.josefsson.org> <4BEAC145.60607@pobox.com> <1273676748.1486.4.camel@sockerbit>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1273676748.1486.4.camel@sockerbit>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090208.4BEAE80D.00E2:SCFMA922111,ss=1,fgs=0
Cc: "Kemp, David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Subject: [TLS] Use HTTP (Re:  Justification)
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, 12 May 2010 18:03:13 -0000

On Wed, May 12, 2010 at 05:05:48PM +0200, Simon Josefsson wrote:
> ons 2010-05-12 klockan 07:55 -0700 skrev Michael D'Errico:
> > Can someone please remind me why we want cached-info?  It seems that
> > the problems it creates aren't worth the small optimization it might
> > provide.
> 
> I still have hope we can rescue the extension.  The use-case I have seen
> is that server cert chains and list of trusted CAs can easily make a TLS
> 30-40kb large.  Caching would reduce this.

If we must keep this extension I say:

 - use HTTP to get them and modify the Finished message computation
   modified to include the objects obtained out of band;

 - the URLs would replace the SHA-1/FNV-1a hashes in the protocol.

> However, TLS session resume also solves this problem, and it is
> relatively easy to implement in most libraries.

Yes.

Nico
-- 

From Nicolas.Williams@oracle.com  Wed May 12 11:11:36 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 672BC28C1EE for <tls@core3.amsl.com>; Wed, 12 May 2010 11:11:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.157
X-Spam-Level: 
X-Spam-Status: No, score=-5.157 tagged_above=-999 required=5 tests=[AWL=1.441,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 NgDtDikLCuv7 for <tls@core3.amsl.com>; Wed, 12 May 2010 11:11:35 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id EFAB528C353 for <tls@ietf.org>; Wed, 12 May 2010 10:47:36 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4CHlI2V027970 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 12 May 2010 17:47:21 GMT
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4C8T91n011441; Wed, 12 May 2010 17:47:15 GMT
Received: from abhmt013.oracle.com by acsmt353.oracle.com with ESMTP id 259279171273686395; Wed, 12 May 2010 10:46:35 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 12 May 2010 10:46:34 -0700
Date: Wed, 12 May 2010 12:46:29 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Marsh Ray <marsh@extendedsubset.com>
Message-ID: <20100512174629.GH9429@oracle.com>
References: <20100511190958.GR9429@oracle.com> <4BE9B0BC.2000101@extendedsubset.com> <20100511194620.GU9429@oracle.com> <4BE9B856.40000@extendedsubset.com> <20100511200728.GW9429@oracle.com> <4BE9CC88.6040103@extendedsubset.com> <87aas5sbzy.fsf@mocca.josefsson.org> <4BEAC145.60607@pobox.com> <1273676748.1486.4.camel@sockerbit> <4BEADE7A.2070002@extendedsubset.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4BEADE7A.2070002@extendedsubset.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090203.4BEAE9AA.0163:SCFMA922111,ss=1,fgs=0
Cc: Simon Josefsson <simon@josefsson.org>, "Kemp, David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Subject: Re: [TLS] Justification
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, 12 May 2010 18:11:36 -0000

On Wed, May 12, 2010 at 11:59:38AM -0500, Marsh Ray wrote:
> Come to think of it, that may be the best argument of all in favor of a
> strong hash function: it enables the cache to be kept for arbitrary
> lengths of time without special protections or serious security
> considerations.

It's not the only solution that does.  I just proposed using URLs to
name cacheable objects.  Objects at any URLs would never change; to
change the object you'd change the URL.

The key to making the protocol secure is to add the cached objects as
extra inputs to the Finished message computation.

From mike-list@pobox.com  Wed May 12 11:16:23 2010
Return-Path: <mike-list@pobox.com>
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 1E22F28C3F4 for <tls@core3.amsl.com>; Wed, 12 May 2010 11:16:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.112
X-Spam-Level: 
X-Spam-Status: No, score=-1.112 tagged_above=-999 required=5 tests=[AWL=-0.372, BAYES_20=-0.74]
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 PyY-+MfLtXfa for <tls@core3.amsl.com>; Wed, 12 May 2010 11:16:11 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id C92B328C181 for <tls@ietf.org>; Wed, 12 May 2010 10:51:55 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 86429B2331 for <tls@ietf.org>; Wed, 12 May 2010 13:51:44 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=BIveJ2bC1QNj kqTTb94xmwxJAsY=; b=n8aHvmdnMr1F5RNXspcjcg2JkpssOhNxZtUksYerjNgu n5xRZVjJ8T+rH0UJaeW4YdtEDF0NHbTT5H4WwOK0fLiklsynR1O91CVw8G2DE9fs uBFEMaCm5THQVrsJQKyyBdJrm0ucOu3hHLmmICCj454jcr4TxMuXg5JIYYn09GM=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=fsMqLN q39G0KpNRKlnBXy089NIiJ8D5HIpHT7fP+Lqg9KKqhGkx4sonTi7w3mzxPbRldoI gMnVNbM8inWMFyI913pD6v074cUPrPcJx0NoMcb2XV2az0t3yXI8/uvDo6rB0hbH Od+zexZQXWhC7e7zuORPqWw5ctrTvOmSGeyd0=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 83906B2330 for <tls@ietf.org>; Wed, 12 May 2010 13:51:44 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 3BE22B232F for <tls@ietf.org>; Wed, 12 May 2010 13:51:44 -0400 (EDT)
Message-ID: <4BEAEAAF.6090402@pobox.com>
Date: Wed, 12 May 2010 10:51:43 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: TLS Mailing List <tls@ietf.org>
References: <20100510221531.GC9429@oracle.com>	 <201005111339.o4BDdoYQ009725@fs4113.wdf.sap.corp>	 <20100511152153.GF9429@oracle.com>	 <201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil>	 <20100511190958.GR9429@oracle.com> <4BE9B0BC.2000101@extendedsubset.com>	 <20100511194620.GU9429@oracle.com> <4BE9B856.40000@extendedsubset.com>	 <20100511200728.GW9429@oracle.com> <4BE9CC88.6040103@extendedsubset.com>	 <87aas5sbzy.fsf@mocca.josefsson.org>  <4BEAC145.60607@pobox.com> <1273676748.1486.4.camel@sockerbit> <4BEADE7A.2070002@extendedsubset.com>
In-Reply-To: <4BEADE7A.2070002@extendedsubset.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 0746F99E-5DEF-11DF-B003-D033EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Subject: Re: [TLS] Justification
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, 12 May 2010 18:16:23 -0000

Marsh Ray wrote:
> On 5/12/2010 10:05 AM, Simon Josefsson wrote:
>> ons 2010-05-12 klockan 07:55 -0700 skrev Michael D'Errico:
>>> Can someone please remind me why we want cached-info?
> 
> It saves KB++ at the beginning of handshakes, which is a really big deal
> for some deployments.

Can you point to some real examples?

3G networks operate at 144kbps, so each KB takes 56 ms to download.
That might be sorta slow, but the rollout of 4G is already taking place
and the speeds will be crazy fast at 100Mbps.

If you're concerned about memory use, consider that the 1st generation
iPod touch had 128 MB of RAM; 3rd gen has 256.  Even old Blackberries
had 64 MB of RAM.

What constrained environments exist today that will still be constrained
once they are upgraded to support this cached-info extension?

Mike

From Nicolas.Williams@oracle.com  Wed May 12 11:35:38 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 80FCC3A6A72 for <tls@core3.amsl.com>; Wed, 12 May 2010 11:35:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.181
X-Spam-Level: 
X-Spam-Status: No, score=-5.181 tagged_above=-999 required=5 tests=[AWL=1.417,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 PZESNZ0SFkPW for <tls@core3.amsl.com>; Wed, 12 May 2010 11:35:37 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 9B5C528C0E7 for <tls@ietf.org>; Wed, 12 May 2010 11:08:40 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4CI8M4X024072 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 12 May 2010 18:08:23 GMT
Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4C02IBu032025; Wed, 12 May 2010 18:08:21 GMT
Received: from abhmt012.oracle.com by acsmt353.oracle.com with ESMTP id 235926701273687700; Wed, 12 May 2010 11:08:20 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 12 May 2010 11:08:19 -0700
Date: Wed, 12 May 2010 13:08:14 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Adam Langley <agl@google.com>
Message-ID: <20100512180814.GI9429@oracle.com>
References: <4BE9B856.40000@extendedsubset.com> <20100511200728.GW9429@oracle.com> <4BE9CC88.6040103@extendedsubset.com> <87aas5sbzy.fsf@mocca.josefsson.org> <4BEAC145.60607@pobox.com> <n2va84d7bc61005120811o737c2011i27f9d40e88417539@mail.gmail.com> <004901caf1ea$783e23a0$68ba6ae0$@briansmith.org> <p2xa84d7bc61005120858v2ce68cf7xe6ddf559faf4d4b0@mail.gmail.com> <4BEAE4CF.7070205@pobox.com> <p2ga84d7bc61005121033n169fc0fdyb2bc94b504f3fc2c@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <p2ga84d7bc61005121033n169fc0fdyb2bc94b504f3fc2c@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090204.4BEAEE97.018A:SCFMA922111,ss=1,fgs=0
Cc: tls@ietf.org
Subject: Re: [TLS] Justification
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, 12 May 2010 18:35:38 -0000

On Wed, May 12, 2010 at 01:33:08PM -0400, Adam Langley wrote:
> On Wed, May 12, 2010 at 1:26 PM, Michael D'Errico <mike-list@pobox.com> wrote:
> > What is this three packet limit you speak of?
> 
> TCP's initial congestion window is three frames (for now). So a TLS
> server which needs more than three frames to send ServerHello through
> to ServerHelloDone will have to wait additional round trips for
> acknowledgments from the client.

I think this argues for using URLs for cacheable objects.

Nico
-- 

From mike-list@pobox.com  Wed May 12 11:46:22 2010
Return-Path: <mike-list@pobox.com>
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 2C9EE3A6900 for <tls@core3.amsl.com>; Wed, 12 May 2010 11:46:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.004
X-Spam-Level: 
X-Spam-Status: No, score=-2.004 tagged_above=-999 required=5 tests=[AWL=0.595,  BAYES_00=-2.599]
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 dJ8vRYlYjjUu for <tls@core3.amsl.com>; Wed, 12 May 2010 11:46:21 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id A72673A69A4 for <tls@ietf.org>; Wed, 12 May 2010 11:23:21 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 1A306B28C0; Wed, 12 May 2010 14:23:11 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=V00PJaS2jmC0 V3SgPnTg2xhZ5gM=; b=rydri42vC+W5+EY1OgGX50yIHnG4fvs/BRBR19ZhIcJH IOu10uR3oifzY1RW+KmqVEDB7DaiQgr4o1iBCy45mfbtFtX+r0d+NeZLW5H9ZKhL 3kQdFIkC7Xtj1n/fiDtGSf73DDeWrOcbCARoiRihMzKpxAlB4vA8OlphNB/eC5Y=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=qIjLvN aoJUTW0QZ/qAajUpggRX9+ZKXTaISwkth0rbwk/iMIrn/P/X9U7bcpu/CHxpMQ4R 2X9wZJ70NKbqC8JckrV0LfLKPih3VXrDvFdKN8saYwh3Fm8Kcf/BBOs54nbpwoV2 xesKUAT685s2b6xzTFRzuF5X2FUHraRliq2EU=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 71908B28BD; Wed, 12 May 2010 14:23:08 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 568E6B28B1; Wed, 12 May 2010 14:22:49 -0400 (EDT)
Message-ID: <4BEAF1F8.4030004@pobox.com>
Date: Wed, 12 May 2010 11:22:48 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: Nicolas Williams <Nicolas.Williams@oracle.com>
References: <4BE9B856.40000@extendedsubset.com> <20100511200728.GW9429@oracle.com> <4BE9CC88.6040103@extendedsubset.com> <87aas5sbzy.fsf@mocca.josefsson.org> <4BEAC145.60607@pobox.com> <n2va84d7bc61005120811o737c2011i27f9d40e88417539@mail.gmail.com> <004901caf1ea$783e23a0$68ba6ae0$@briansmith.org> <p2xa84d7bc61005120858v2ce68cf7xe6ddf559faf4d4b0@mail.gmail.com> <4BEAE4CF.7070205@pobox.com> <p2ga84d7bc61005121033n169fc0fdyb2bc94b504f3fc2c@mail.gmail.com> <20100512180814.GI9429@oracle.com>
In-Reply-To: <20100512180814.GI9429@oracle.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 6A2F2B2C-5DF3-11DF-8775-D033EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Justification
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, 12 May 2010 18:46:22 -0000

Would they be https URL's?  Then you would have an infinite-recursion
problem....

Mike



Nicolas Williams wrote:
> On Wed, May 12, 2010 at 01:33:08PM -0400, Adam Langley wrote:
>> On Wed, May 12, 2010 at 1:26 PM, Michael D'Errico <mike-list@pobox.com> wrote:
>>> What is this three packet limit you speak of?
>> TCP's initial congestion window is three frames (for now). So a TLS
>> server which needs more than three frames to send ServerHello through
>> to ServerHelloDone will have to wait additional round trips for
>> acknowledgments from the client.
> 
> I think this argues for using URLs for cacheable objects.
> 
> Nico

From Nicolas.Williams@oracle.com  Wed May 12 11:49:22 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 2530C28C261 for <tls@core3.amsl.com>; Wed, 12 May 2010 11:49:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.203
X-Spam-Level: 
X-Spam-Status: No, score=-5.203 tagged_above=-999 required=5 tests=[AWL=1.395,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 u1j-GxFGjQu8 for <tls@core3.amsl.com>; Wed, 12 May 2010 11:49:21 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 499D728C36F for <tls@ietf.org>; Wed, 12 May 2010 11:30:09 -0700 (PDT)
Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4CITo84024108 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 12 May 2010 18:29:52 GMT
Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4CITmNb009978; Wed, 12 May 2010 18:29:48 GMT
Received: from abhmt014.oracle.com by acsmt353.oracle.com with ESMTP id 235978881273688915; Wed, 12 May 2010 11:28:35 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 12 May 2010 11:28:35 -0700
Date: Wed, 12 May 2010 13:28:28 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: "Michael D'Errico" <mike-list@pobox.com>
Message-ID: <20100512182827.GJ9429@oracle.com>
References: <4BE9CC88.6040103@extendedsubset.com> <87aas5sbzy.fsf@mocca.josefsson.org> <4BEAC145.60607@pobox.com> <n2va84d7bc61005120811o737c2011i27f9d40e88417539@mail.gmail.com> <004901caf1ea$783e23a0$68ba6ae0$@briansmith.org> <p2xa84d7bc61005120858v2ce68cf7xe6ddf559faf4d4b0@mail.gmail.com> <4BEAE4CF.7070205@pobox.com> <p2ga84d7bc61005121033n169fc0fdyb2bc94b504f3fc2c@mail.gmail.com> <20100512180814.GI9429@oracle.com> <4BEAF1F8.4030004@pobox.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4BEAF1F8.4030004@pobox.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: rcsinet15.oracle.com [148.87.113.117]
X-CT-RefId: str=0001.0A090205.4BEAF3A0.0137:SCFMA4539811,ss=1,fgs=0
Cc: tls@ietf.org
Subject: Re: [TLS] Justification
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, 12 May 2010 18:49:22 -0000

On Wed, May 12, 2010 at 11:22:48AM -0700, Michael D'Errico wrote:
> Would they be https URL's?  Then you would have an infinite-recursion
> problem....

No, why should they be?  The data is public, and integrity protection
would be provided by having the objects be added as inputs to the
Finished message computation.

Nico
-- 

From mike-list@pobox.com  Wed May 12 11:53:12 2010
Return-Path: <mike-list@pobox.com>
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 91AE83A6885 for <tls@core3.amsl.com>; Wed, 12 May 2010 11:53:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.058
X-Spam-Level: 
X-Spam-Status: No, score=-2.058 tagged_above=-999 required=5 tests=[AWL=0.541,  BAYES_00=-2.599]
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 raml-jhx9gHc for <tls@core3.amsl.com>; Wed, 12 May 2010 11:53:11 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 22E003A62C1 for <tls@ietf.org>; Wed, 12 May 2010 11:36:50 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id E88DCB2AE0; Wed, 12 May 2010 14:36:39 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=5Mbva85l/teM vwCcnvCTB824D1A=; b=ROuu852ERhLeNiPuMR5dUapkn16aaZDxhghN/hTp4tDA rNoFQbxiiTR/4hK8ZMt+f5YZc2XirJBlw2THFO5AeY6oyK2JMkzf1zQWmlD0MmeO lpH3na8fumVDmkpaToYPUtWi5S+2XYSwiQ6lvdwqa74OR9WjlsgD6rKh9uch60Q=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=An3v3B t47gAubE1NNZpXRPpsD3+tgn1gNpr1PkFkyrM5+LWG1r3ZYV/54oDvq8j4/IPNLd PgolJVRr8t1RnISXD4g9kPoxQVg4BzBIsvuMc4KF32NNQXuNk2yKovuT6WavR298 7hlpidmJVOSBbHMqf2jrkx3LiBOA7jtuZmBIg=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id C4F7AB2ADF; Wed, 12 May 2010 14:36:37 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 7882BB2AC8; Wed, 12 May 2010 14:36:28 -0400 (EDT)
Message-ID: <4BEAF52B.9090801@pobox.com>
Date: Wed, 12 May 2010 11:36:27 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: Nicolas Williams <Nicolas.Williams@oracle.com>
References: <4BE9CC88.6040103@extendedsubset.com> <87aas5sbzy.fsf@mocca.josefsson.org> <4BEAC145.60607@pobox.com> <n2va84d7bc61005120811o737c2011i27f9d40e88417539@mail.gmail.com> <004901caf1ea$783e23a0$68ba6ae0$@briansmith.org> <p2xa84d7bc61005120858v2ce68cf7xe6ddf559faf4d4b0@mail.gmail.com> <4BEAE4CF.7070205@pobox.com> <p2ga84d7bc61005121033n169fc0fdyb2bc94b504f3fc2c@mail.gmail.com> <20100512180814.GI9429@oracle.com> <4BEAF1F8.4030004@pobox.com> <20100512182827.GJ9429@oracle.com>
In-Reply-To: <20100512182827.GJ9429@oracle.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 4C974EE4-5DF5-11DF-8AC9-D033EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Justification
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, 12 May 2010 18:53:12 -0000

Nicolas Williams wrote:
> On Wed, May 12, 2010 at 11:22:48AM -0700, Michael D'Errico wrote:
>> Would they be https URL's?  Then you would have an infinite-recursion
>> problem....
> 
> No, why should they be?  The data is public, and integrity protection
> would be provided by having the objects be added as inputs to the
> Finished message computation.

Whoa, changing the Finished computation?  I understand that that
would work, but we weren't even willing to do that to solve the
exploitable MITM-thru-renegotiation problem.

Mike

From Nicolas.Williams@oracle.com  Wed May 12 11:58:22 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 C102728C16F for <tls@core3.amsl.com>; Wed, 12 May 2010 11:58:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.226
X-Spam-Level: 
X-Spam-Status: No, score=-5.226 tagged_above=-999 required=5 tests=[AWL=1.372,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 4XFtac7F5c0c for <tls@core3.amsl.com>; Wed, 12 May 2010 11:58:21 -0700 (PDT)
Received: from rcsinet11.oracle.com (rcsinet11.oracle.com [148.87.113.123]) by core3.amsl.com (Postfix) with ESMTP id 186703A68E6 for <tls@ietf.org>; Wed, 12 May 2010 11:44:21 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet11.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o4CIi3Os025402 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 12 May 2010 18:44:05 GMT
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4C7D8Dd026951; Wed, 12 May 2010 18:44:02 GMT
Received: from abhmt017.oracle.com by acsmt353.oracle.com with ESMTP id 259475971273689782; Wed, 12 May 2010 11:43:02 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 12 May 2010 11:43:02 -0700
Date: Wed, 12 May 2010 13:42:57 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: "Michael D'Errico" <mike-list@pobox.com>
Message-ID: <20100512184257.GL9429@oracle.com>
References: <4BEAC145.60607@pobox.com> <n2va84d7bc61005120811o737c2011i27f9d40e88417539@mail.gmail.com> <004901caf1ea$783e23a0$68ba6ae0$@briansmith.org> <p2xa84d7bc61005120858v2ce68cf7xe6ddf559faf4d4b0@mail.gmail.com> <4BEAE4CF.7070205@pobox.com> <p2ga84d7bc61005121033n169fc0fdyb2bc94b504f3fc2c@mail.gmail.com> <20100512180814.GI9429@oracle.com> <4BEAF1F8.4030004@pobox.com> <20100512182827.GJ9429@oracle.com> <4BEAF52B.9090801@pobox.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4BEAF52B.9090801@pobox.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Source-IP: acsmt353.oracle.com [141.146.40.153]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090208.4BEAF6F3.0041:SCFMA4539814,ss=1,fgs=0
Cc: tls@ietf.org
Subject: Re: [TLS] Justification
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, 12 May 2010 18:58:22 -0000

On Wed, May 12, 2010 at 11:36:27AM -0700, Michael D'Errico wrote:
> Nicolas Williams wrote:
> >On Wed, May 12, 2010 at 11:22:48AM -0700, Michael D'Errico wrote:
> >>Would they be https URL's?  Then you would have an infinite-recursion
> >>problem....
> >
> >No, why should they be?  The data is public, and integrity protection
> >would be provided by having the objects be added as inputs to the
> >Finished message computation.
> 
> Whoa, changing the Finished computation?  I understand that that
> would work, but we weren't even willing to do that to solve the
> exploitable MITM-thru-renegotiation problem.

Paul Hoffman proposes an extension to add inputs to the Finished message
computation.  There's no objection yet to Paul's proposal on the grounds
you state.

In any case, one of the problems with the caching extension as proposed
result from not binding the cached objects to the Finished message,
which at the very least complicates the security analysis of the
protocol, and possibly compromises it altogether.  We MUST NOT make the
same mistakes we've made before.

Nico
-- 

From ynir@checkpoint.com  Wed May 12 12:26:42 2010
Return-Path: <ynir@checkpoint.com>
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 2FBCE3A68ED for <tls@core3.amsl.com>; Wed, 12 May 2010 12:26:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.58
X-Spam-Level: 
X-Spam-Status: No, score=-1.58 tagged_above=-999 required=5 tests=[AWL=-0.581,  BAYES_50=0.001, RCVD_IN_DNSWL_LOW=-1]
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 eV1HofjaVWXH for <tls@core3.amsl.com>; Wed, 12 May 2010 12:26:41 -0700 (PDT)
Received: from michael.checkpoint.com (michael.checkpoint.com [194.29.32.68]) by core3.amsl.com (Postfix) with ESMTP id B61203A690C for <tls@ietf.org>; Wed, 12 May 2010 12:14:30 -0700 (PDT)
X-CheckPoint: {4BEB0B0E-0-1B201DC2-1FFFF}
Received: from il-ex01.ad.checkpoint.com (il-ex01.checkpoint.com [194.29.34.26]) by michael.checkpoint.com (8.12.10+Sun/8.12.10) with ESMTP id o4CJEJpp007804; Wed, 12 May 2010 22:14:19 +0300 (IDT)
Received: from il-ex01.ad.checkpoint.com ([126.0.0.2]) by il-ex01.ad.checkpoint.com ([126.0.0.2]) with mapi; Wed, 12 May 2010 22:14:47 +0300
From: Yoav Nir <ynir@checkpoint.com>
To: "Michael D'Errico" <mike-list@pobox.com>, TLS Mailing List <tls@ietf.org>
Date: Wed, 12 May 2010 22:13:34 +0300
Thread-Topic: [TLS] Justification
Thread-Index: Acrx/08vOk7//dnkTp6ZNSRpaeH6HgAB+iGS
Message-ID: <006FEB08D9C6444AB014105C9AEB133FB48F19AAA7@il-ex01.ad.checkpoint.com>
References: <20100510221531.GC9429@oracle.com> <201005111339.o4BDdoYQ009725@fs4113.wdf.sap.corp> <20100511152153.GF9429@oracle.com> <201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil> <20100511190958.GR9429@oracle.com>	<4BE9B0BC.2000101@extendedsubset.com> <20100511194620.GU9429@oracle.com> <4BE9B856.40000@extendedsubset.com> <20100511200728.GW9429@oracle.com>	<4BE9CC88.6040103@extendedsubset.com> <87aas5sbzy.fsf@mocca.josefsson.org>  <4BEAC145.60607@pobox.com> <1273676748.1486.4.camel@sockerbit> <4BEADE7A.2070002@extendedsubset.com>,<4BEAEAAF.6090402@pobox.com>
In-Reply-To: <4BEAEAAF.6090402@pobox.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Subject: Re: [TLS] Justification
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, 12 May 2010 19:26:42 -0000

802.15.4 networks operate at 10-40 kbps. A kilobyte takes just under a seco=
nd at low power, or a quarter second at full power.

________________________________________
From: tls-bounces@ietf.org [tls-bounces@ietf.org] On Behalf Of Michael D'Er=
rico [mike-list@pobox.com]
Sent: Wednesday, May 12, 2010 20:51
To: TLS Mailing List
Subject: Re: [TLS] Justification

Marsh Ray wrote:
> On 5/12/2010 10:05 AM, Simon Josefsson wrote:
>> ons 2010-05-12 klockan 07:55 -0700 skrev Michael D'Errico:
>>> Can someone please remind me why we want cached-info?
>
> It saves KB++ at the beginning of handshakes, which is a really big deal
> for some deployments.

Can you point to some real examples?

3G networks operate at 144kbps, so each KB takes 56 ms to download.
That might be sorta slow, but the rollout of 4G is already taking place
and the speeds will be crazy fast at 100Mbps.

If you're concerned about memory use, consider that the 1st generation
iPod touch had 128 MB of RAM; 3rd gen has 256.  Even old Blackberries
had 64 MB of RAM.

What constrained environments exist today that will still be constrained
once they are upgraded to support this cached-info extension?

Mike

From mike-list@pobox.com  Wed May 12 12:27:18 2010
Return-Path: <mike-list@pobox.com>
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 1F9493A69C6 for <tls@core3.amsl.com>; Wed, 12 May 2010 12:27:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.103
X-Spam-Level: 
X-Spam-Status: No, score=-2.103 tagged_above=-999 required=5 tests=[AWL=0.496,  BAYES_00=-2.599]
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 NEPqKQyadlju for <tls@core3.amsl.com>; Wed, 12 May 2010 12:27:16 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 1286528C12E for <tls@ietf.org>; Wed, 12 May 2010 12:15:24 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 7E36DB21F3; Wed, 12 May 2010 15:15:12 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=ZTSJYF+E8z9S Zx4ZWQKfq6lQL+8=; b=mSpFbOgTpOe4q8fy6mMAYjB+ZydE/vtggc6jj4CR+ALX 2T5K4QKLTx9uGXBzn/MJD0MAMXT0BCMtCJDfqOv2NmQzNHslitNrC1XCfTkmCHrm lAA12+MYihRu+wbuv3ylFxhSwD8VFy2eBiWgOodHqKj9iG5utPhxJt+NhTaIlMA=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=u35k5L QSHPMwdqND3/uyWu9ffCCSbktmlMn25iRdfFWN4lyU8ITQRbYiuL4Jss7h3oRDMh shXrAOjZAdJFb8koKejVbLCgBPUwutt3t2oV8CdCXBSFldGyTNiWsjELzyBlRVu4 pPMb5IjSNr2TfpG4H26TDo+yxUZRRTBlqwzl4=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id D4A32B21F1; Wed, 12 May 2010 15:15:09 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 4A231B21F0; Wed, 12 May 2010 15:15:07 -0400 (EDT)
Message-ID: <4BEAFE3A.30600@pobox.com>
Date: Wed, 12 May 2010 12:15:06 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: Nicolas Williams <Nicolas.Williams@oracle.com>
References: <4BEAC145.60607@pobox.com> <n2va84d7bc61005120811o737c2011i27f9d40e88417539@mail.gmail.com> <004901caf1ea$783e23a0$68ba6ae0$@briansmith.org> <p2xa84d7bc61005120858v2ce68cf7xe6ddf559faf4d4b0@mail.gmail.com> <4BEAE4CF.7070205@pobox.com> <p2ga84d7bc61005121033n169fc0fdyb2bc94b504f3fc2c@mail.gmail.com> <20100512180814.GI9429@oracle.com> <4BEAF1F8.4030004@pobox.com> <20100512182827.GJ9429@oracle.com> <4BEAF52B.9090801@pobox.com> <20100512184257.GL9429@oracle.com>
In-Reply-To: <20100512184257.GL9429@oracle.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: AEB07DE4-5DFA-11DF-90F7-D033EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Justification
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, 12 May 2010 19:27:18 -0000

Nicolas Williams wrote:
> 
> Paul Hoffman proposes an extension to add inputs to the Finished message
> computation.  There's no objection yet to Paul's proposal on the grounds
> you state.

Then perhaps it needs to be taken up as a WG item.

> In any case, one of the problems with the caching extension as proposed
> result from not binding the cached objects to the Finished message,
> which at the very least complicates the security analysis of the
> protocol, and possibly compromises it altogether.  We MUST NOT make the
> same mistakes we've made before.

Certainly.  I agree that using the hash value in place of the
actual data could be a huge problem.  Putting the actual data
into the Finished computation probably fixes it.  But the need
to do this takes away all the enthusiasm I originally had for
the cached-info optimization.

Mike

From mrex@sap.com  Wed May 12 12:41:50 2010
Return-Path: <mrex@sap.com>
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 5FEC63A67B2 for <tls@core3.amsl.com>; Wed, 12 May 2010 12:41:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.759
X-Spam-Level: 
X-Spam-Status: No, score=-7.759 tagged_above=-999 required=5 tests=[AWL=-0.110, BAYES_50=0.001, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_HI=-8]
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 Ji4d6HPGMVkr for <tls@core3.amsl.com>; Wed, 12 May 2010 12:41:49 -0700 (PDT)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.171]) by core3.amsl.com (Postfix) with ESMTP id 3857B3A68E7 for <tls@ietf.org>; Wed, 12 May 2010 12:41:39 -0700 (PDT)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o4CJfGnG019183 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 12 May 2010 21:41:16 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201005121941.o4CJfF0O021613@fs4113.wdf.sap.corp>
To: Nicolas.Williams@oracle.com (Nicolas Williams)
Date: Wed, 12 May 2010 21:41:15 +0200 (MEST)
In-Reply-To: <20100512180814.GI9429@oracle.com> from "Nicolas Williams" at May 12, 10 01:08:14 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal06
X-SAP: out
Cc: tls@ietf.org
Subject: Re: [TLS] Justification
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
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/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, 12 May 2010 19:41:50 -0000

Nicolas Williams wrote:
> 
> On Wed, May 12, 2010 at 01:33:08PM -0400, Adam Langley wrote:
> > On Wed, May 12, 2010 at 1:26 PM, Michael D'Errico <mike-list@pobox.com> wrote:
> > > What is this three packet limit you speak of?
> > 
> > TCP's initial congestion window is three frames (for now). So a TLS
> > server which needs more than three frames to send ServerHello through
> > to ServerHelloDone will have to wait additional round trips for
> > acknowledgments from the client.
> 
> I think this argues for using URLs for cacheable objects.

Personally, I strongly dislike this idea, just as much as I dislike
the client-cert-url extension and AIA in X.509v3 certs.
It amounts to out-of-band signaling, which creates a magnitude
larger problems than it solves.

Previously, since the original design conveyed the information only
inband, protected and authenticated with an original TLS session
(I dislike the idea of out-of-band-cache-population), the identification
of the cached data did not need a secure strong agile hash.

If the data is conveyed out-of-band, or even completely unprotected,
then we would have to put the secure strong agile hash over the
*real* data back into the protocol, or it'll be a security problem.


The TCP slow start (result of TCP congestion control) issue is actually
an interesting reminder.  I've seen it affecting the TLS handshake
in a different setup, but don't know the exact details.
There seem to be limits on the number of initial TCP segments as
well that can interact badly with the 200ms delayed ACK in
Windows TCP (at least XP).  I've seen it with a server SSL stack
that did _not_ coalesce the handshake Server->Client handshake messages
ServerHello+Certificate(+ServerKeyExchane+CertificateRequest)+ServerHelloDone
into a single TCP segment.


Is it really about "3 packets" or rather the result of a rather small
"TCP maximum segment size" (MSS) resulting in a fragmentation of the
application write into 2+ TCP segments?


-Martin

From marsh@extendedsubset.com  Wed May 12 12:46:59 2010
Return-Path: <marsh@extendedsubset.com>
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 81E483A67F0 for <tls@core3.amsl.com>; Wed, 12 May 2010 12:46:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.771
X-Spam-Level: 
X-Spam-Status: No, score=-1.771 tagged_above=-999 required=5 tests=[AWL=0.828,  BAYES_00=-2.599]
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 hQe7QZ5pmHrm for <tls@core3.amsl.com>; Wed, 12 May 2010 12:46:58 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id A46A43A6891 for <tls@ietf.org>; Wed, 12 May 2010 12:46:42 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OCHt2-0009UB-7O for tls@ietf.org; Wed, 12 May 2010 19:46:32 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 34418631D for <tls@ietf.org>; Wed, 12 May 2010 19:46:31 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX18esSUSSO0os4ekZrOIXpjFM/LyIv+IpSg=
Message-ID: <4BEB0598.9070209@extendedsubset.com>
Date: Wed, 12 May 2010 14:46:32 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: tls@ietf.org
References: <4BEAC145.60607@pobox.com>	<n2va84d7bc61005120811o737c2011i27f9d40e88417539@mail.gmail.com>	<004901caf1ea$783e23a0$68ba6ae0$@briansmith.org>	<p2xa84d7bc61005120858v2ce68cf7xe6ddf559faf4d4b0@mail.gmail.com>	<4BEAE4CF.7070205@pobox.com>	<p2ga84d7bc61005121033n169fc0fdyb2bc94b504f3fc2c@mail.gmail.com>	<20100512180814.GI9429@oracle.com> <4BEAF1F8.4030004@pobox.com>	<20100512182827.GJ9429@oracle.com> <4BEAF52B.9090801@pobox.com> <20100512184257.GL9429@oracle.com>
In-Reply-To: <20100512184257.GL9429@oracle.com>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [TLS] Justification
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, 12 May 2010 19:46:59 -0000

On 5/12/2010 1:42 PM, Nicolas Williams wrote:
> On Wed, May 12, 2010 at 11:36:27AM -0700, Michael D'Errico wrote:
>>
>> Whoa, changing the Finished computation?  I understand that that
>> would work, but we weren't even willing to do that to solve the
>> exploitable MITM-thru-renegotiation problem.
>
> Paul Hoffman proposes an extension to add inputs to the Finished message
> computation.  There's no objection yet to Paul's proposal on the grounds
> you state.

I'm not sure the discussion got that far, so it's not evidence of much.

> In any case, one of the problems with the caching extension as proposed
> result from not binding the cached objects to the Finished message,
> which at the very least complicates the security analysis of the
> protocol, and possibly compromises it altogether.  We MUST NOT make the
> same mistakes we've made before.

Agreed, but we should be just as careful not to make new ones.

Sorry if you explained this earlier, but how would the "use URLs"
approach be different than an arbitrary server-chosen identifier?

- Marsh

From stefan@aaa-sec.com  Wed May 12 12:48:28 2010
Return-Path: <stefan@aaa-sec.com>
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 EC1833A67F0 for <tls@core3.amsl.com>; Wed, 12 May 2010 12:48:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.36
X-Spam-Level: 
X-Spam-Status: No, score=-1.36 tagged_above=-999 required=5 tests=[AWL=-0.711,  BAYES_50=0.001, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 8Uq1-e8HVaBT for <tls@core3.amsl.com>; Wed, 12 May 2010 12:48:28 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id 3D17F3A67B5 for <tls@ietf.org>; Wed, 12 May 2010 12:48:25 -0700 (PDT)
Received: from s19.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id A8C8628E8CE for <tls@ietf.org>; Wed, 12 May 2010 21:48:19 +0200 (CEST)
Received: (qmail 6377 invoked from network); 12 May 2010 19:48:09 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.8]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s19.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <mike-list@pobox.com>; 12 May 2010 19:48:09 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Wed, 12 May 2010 19:47:57 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: Michael D'Errico <mike-list@pobox.com>, Nicolas Williams <Nicolas.Williams@oracle.com>
Message-ID: <C810B66D.AC68%stefan@aaa-sec.com>
Thread-Topic: [TLS] Justification
Thread-Index: AcryDATy/tY9Qn2pWE6NFJpLj9SshQ==
In-Reply-To: <4BEAFE3A.30600@pobox.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Justification
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, 12 May 2010 19:48:29 -0000

IMO, changing the finished calculation is a bad idea.

Its way more complex to implement than using a secure hash function.
Using a secure hash function binds securely the actual data to the finished
calculation.

I'm still not convinced we have a security problem, but no matter that,
using a secure hash is always simpler than changing the finished
calculation.

This is also why I don't like using URLs, since it increase the argument for
changing the finished calculation.

/Stefan




On 10-05-12 9:15 PM, "Michael D'Errico" <mike-list@pobox.com> wrote:

> Nicolas Williams wrote:
>> 
>> Paul Hoffman proposes an extension to add inputs to the Finished message
>> computation.  There's no objection yet to Paul's proposal on the grounds
>> you state.
> 
> Then perhaps it needs to be taken up as a WG item.
> 
>> In any case, one of the problems with the caching extension as proposed
>> result from not binding the cached objects to the Finished message,
>> which at the very least complicates the security analysis of the
>> protocol, and possibly compromises it altogether.  We MUST NOT make the
>> same mistakes we've made before.
> 
> Certainly.  I agree that using the hash value in place of the
> actual data could be a huge problem.  Putting the actual data
> into the Finished computation probably fixes it.  But the need
> to do this takes away all the enthusiasm I originally had for
> the cached-info optimization.
> 
> Mike
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls



From mrex@sap.com  Wed May 12 14:32:28 2010
Return-Path: <mrex@sap.com>
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 3606B3A68FE for <tls@core3.amsl.com>; Wed, 12 May 2010 14:32:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.754
X-Spam-Level: 
X-Spam-Status: No, score=-7.754 tagged_above=-999 required=5 tests=[AWL=-0.105, BAYES_50=0.001, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_HI=-8]
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 N1XPJgkGNrog for <tls@core3.amsl.com>; Wed, 12 May 2010 14:32:27 -0700 (PDT)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.171]) by core3.amsl.com (Postfix) with ESMTP id 761623A691B for <tls@ietf.org>; Wed, 12 May 2010 14:32:25 -0700 (PDT)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o4CLW7Wv005724 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 12 May 2010 23:32:07 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201005122132.o4CLW63B028276@fs4113.wdf.sap.corp>
To: ynir@checkpoint.com (Yoav Nir)
Date: Wed, 12 May 2010 23:32:06 +0200 (MEST)
In-Reply-To: <006FEB08D9C6444AB014105C9AEB133FB48F19AAA7@il-ex01.ad.checkpoint.com> from "Yoav Nir" at May 12, 10 10:13:34 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal07
X-SAP: out
Cc: tls@ietf.org
Subject: Re: [TLS] Justification
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
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/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, 12 May 2010 21:32:28 -0000

Yoav Nir wrote:
> 
> 802.15.4 networks operate at 10-40 kbps. A kilobyte takes just
> under a second at low power, or a quarter second at full power.

There is the theoretical maximum bandwith and there is reality.

When I try to exchanges files between my laptop (XP) and my desktop (XP)
through Remote desktop via 54-bit WLan at home I get only ~250KByte/s.
So I keep plugging an RJ45 cable between the gigabit lan sockets whenever
I need to transfer serious amounts of data (which yields ~7 MByte/s)


-Martin

From ynir@checkpoint.com  Thu May 13 00:18:13 2010
Return-Path: <ynir@checkpoint.com>
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 5B7283A6AB1 for <tls@core3.amsl.com>; Thu, 13 May 2010 00:18:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.559
X-Spam-Level: 
X-Spam-Status: No, score=-1.559 tagged_above=-999 required=5 tests=[AWL=-0.560, BAYES_50=0.001, RCVD_IN_DNSWL_LOW=-1]
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 am0adou083rO for <tls@core3.amsl.com>; Thu, 13 May 2010 00:18:10 -0700 (PDT)
Received: from michael.checkpoint.com (michael.checkpoint.com [194.29.32.68]) by core3.amsl.com (Postfix) with ESMTP id 462D83A6ABD for <tls@ietf.org>; Thu, 13 May 2010 00:16:01 -0700 (PDT)
X-CheckPoint: {4BEBB423-0-1B201DC2-1FFFF}
Received: from il-ex01.ad.checkpoint.com (il-ex01.checkpoint.com [194.29.34.26]) by michael.checkpoint.com (8.12.10+Sun/8.12.10) with ESMTP id o4D7F9pp006099; Thu, 13 May 2010 10:15:09 +0300 (IDT)
Received: from il-ex01.ad.checkpoint.com ([126.0.0.2]) by il-ex01.ad.checkpoint.com ([126.0.0.2]) with mapi; Thu, 13 May 2010 10:15:37 +0300
From: Yoav Nir <ynir@checkpoint.com>
To: "'Marsh Ray'" <marsh@extendedsubset.com>, Simon Josefsson <simon@josefsson.org>
Date: Thu, 13 May 2010 10:15:36 +0300
Thread-Topic: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
Thread-Index: Acrx4kge2BcBmY74R7+Kap33WvFRwwAh/jWw
Message-ID: <006FEB08D9C6444AB014105C9AEB133FB48F1B5ABA@il-ex01.ad.checkpoint.com>
References: <20100510221531.GC9429@oracle.com> <201005111339.o4BDdoYQ009725@fs4113.wdf.sap.corp> <20100511152153.GF9429@oracle.com> <201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil> <20100511190958.GR9429@oracle.com>	<4BE9B0BC.2000101@extendedsubset.com> <20100511194620.GU9429@oracle.com>	<4BE9B856.40000@extendedsubset.com> <20100511200728.GW9429@oracle.com>	<4BE9CC88.6040103@extendedsubset.com> <87aas5sbzy.fsf@mocca.josefsson.org> <4BEABC2C.6090507@extendedsubset.com>
In-Reply-To: <4BEABC2C.6090507@extendedsubset.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "Kemp, David P." <DPKemp@missi.ncsc.mil>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
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: Thu, 13 May 2010 07:18:13 -0000

I kind of fail to see where the discussion shifted. In fact we have NOT det=
ermined that *malicious* collision resistance is a concern.

A client connects to a server and caches the credentials. Next time it conn=
ects to the *same* server, it shows an extension that proves knowledge of t=
he credentials. Assuming the credentials haven't changed, the server can sk=
ip sending the credentials, but still has to prove ownership by signing som=
ething or by decrypting the pre-master secret. So what could an attacker do=
?

- It can hijack the connection, and not accept the cached credentials, but =
then it would need to present credentials of its own. Fail.

- It can hijack the connection, and accept the cached credentials, but assu=
ming it doesn't have the same public/private key pair, it will then not be =
able to sign or decrypt. If it does have the same public/private key pair, =
it could use the legitimate server's credentials anyway. Fail again.

- It could get the client to connect to his malicious server first. In some=
 magical way he has acceptable credentials, which the client caches. What h=
appens next is not relevant, because the attacker has already won, but for =
the sake of argument, let's go on. The next time, the client connects to th=
e legitimate server. It tries to use the cached credentials, which somehow =
collide with the attackers' even though the public key is different (I don'=
t think we could attack even CRC this way). So the legitimate server accept=
s the cached credentials, but the handshake fails, and the client clears th=
e cache.=20

The third thing seems to succeed, but it depends on being able to predict a=
 CA signature to such an extent, that you can make two certificates with a =
different public key collide in FNV, and it depends on being able to at lea=
st once dupe the client into thinking your server is the legitimate one. An=
d all you get is a one-time DoS.

OK. So where's the real attack?


-----Original Message-----
From: tls-bounces@ietf.org [mailto:tls-bounces@ietf.org] On Behalf of Marsh=
 Ray
Sent: Wednesday, May 12, 2010 5:33 PM
To: Simon Josefsson
Cc: Kemp, David P.; tls@ietf.org
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:

On 5/12/2010 4:30 AM, Simon Josefsson wrote:
> Marsh Ray <marsh@extendedsubset.com> writes:
>=20
>> Alternatively, if we determine that indeed the non-collision-resistance
>> of the hash function is the root of all remaining concerns that would be
>> very positive. We could solve them all in one stroke with
>> s/FNV-1a/SHA-256/g.
>=20
> If collision-resistance is a required property (I'm not convinced yet),
> I believe we need hash agility for the possibility that SHA-256 is weak.

But perhaps that agility already exists in the form of the protocol
version negotiation.

TLS 1.2 appears to effectively depend on SHA-256 (at least in HMAC form)
for the PRF. If that gets broken, we can probably not trust anything
else negotiated in the handshake and a rev of the base protocol will be
required to fix it anyway.

If bare SHA-256 is a concern, the hash could be defined as something
like hmac_sha256("Cached Info", object_bytes).

Just a thought.

- Marsh


From stefan@aaa-sec.com  Thu May 13 01:01:44 2010
Return-Path: <stefan@aaa-sec.com>
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 3778C3A6B7E for <tls@core3.amsl.com>; Thu, 13 May 2010 01:01:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.655
X-Spam-Level: 
X-Spam-Status: No, score=-2.655 tagged_above=-999 required=5 tests=[AWL=0.594,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 BgMyCXMuZGsB for <tls@core3.amsl.com>; Thu, 13 May 2010 01:01:43 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id 2BCDA3A6B9A for <tls@ietf.org>; Thu, 13 May 2010 01:01:07 -0700 (PDT)
Received: from s29.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id BF28937AC3E for <tls@ietf.org>; Thu, 13 May 2010 10:00:59 +0200 (CEST)
Received: (qmail 41120 invoked from network); 13 May 2010 08:00:56 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.8]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s29.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <ynir@checkpoint.com>; 13 May 2010 08:00:56 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Thu, 13 May 2010 08:00:53 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: Yoav Nir <ynir@checkpoint.com>, 'Marsh Ray' <marsh@extendedsubset.com>, Simon Josefsson <simon@josefsson.org>
Message-ID: <C8116235.ACB4%stefan@aaa-sec.com>
Thread-Topic: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
Thread-Index: Acrx4kge2BcBmY74R7+Kap33WvFRwwAh/jWwAAIJ71o=
In-Reply-To: <006FEB08D9C6444AB014105C9AEB133FB48F1B5ABA@il-ex01.ad.checkpoint.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: "Kemp, David P." <DPKemp@missi.ncsc.mil>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
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: Thu, 13 May 2010 08:01:44 -0000

Very well put.
This is my thinking as well.

For the sake of completeness there is also the scenario:

- It can hijack the connection as a MITM and try to replace the list of
acceptable CAs to the client with another which somehow has a colliding
hash. This will however lead to handshake failure since finished calculation
will fail and nothing will be cached. Fail.

/Stefan


On 10-05-13 9:15 AM, "Yoav Nir" <ynir@checkpoint.com> wrote:

> I kind of fail to see where the discussion shifted. In fact we have NOT
> determined that *malicious* collision resistance is a concern.
> 
> A client connects to a server and caches the credentials. Next time it
> connects to the *same* server, it shows an extension that proves knowledge of
> the credentials. Assuming the credentials haven't changed, the server can skip
> sending the credentials, but still has to prove ownership by signing something
> or by decrypting the pre-master secret. So what could an attacker do?
> 
> - It can hijack the connection, and not accept the cached credentials, but
> then it would need to present credentials of its own. Fail.
> 
> - It can hijack the connection, and accept the cached credentials, but
> assuming it doesn't have the same public/private key pair, it will then not be
> able to sign or decrypt. If it does have the same public/private key pair, it
> could use the legitimate server's credentials anyway. Fail again.
> 
> - It could get the client to connect to his malicious server first. In some
> magical way he has acceptable credentials, which the client caches. What
> happens next is not relevant, because the attacker has already won, but for
> the sake of argument, let's go on. The next time, the client connects to the
> legitimate server. It tries to use the cached credentials, which somehow
> collide with the attackers' even though the public key is different (I don't
> think we could attack even CRC this way). So the legitimate server accepts the
> cached credentials, but the handshake fails, and the client clears the cache.
> 
> The third thing seems to succeed, but it depends on being able to predict a CA
> signature to such an extent, that you can make two certificates with a
> different public key collide in FNV, and it depends on being able to at least
> once dupe the client into thinking your server is the legitimate one. And all
> you get is a one-time DoS.
> 
> OK. So where's the real attack?
> 
> 
> -----Original Message-----
> From: tls-bounces@ietf.org [mailto:tls-bounces@ietf.org] On Behalf of Marsh
> Ray
> Sent: Wednesday, May 12, 2010 5:33 PM
> To: Simon Josefsson
> Cc: Kemp, David P.; tls@ietf.org
> Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
> 
> On 5/12/2010 4:30 AM, Simon Josefsson wrote:
>> Marsh Ray <marsh@extendedsubset.com> writes:
>> 
>>> Alternatively, if we determine that indeed the non-collision-resistance
>>> of the hash function is the root of all remaining concerns that would be
>>> very positive. We could solve them all in one stroke with
>>> s/FNV-1a/SHA-256/g.
>> 
>> If collision-resistance is a required property (I'm not convinced yet),
>> I believe we need hash agility for the possibility that SHA-256 is weak.
> 
> But perhaps that agility already exists in the form of the protocol
> version negotiation.
> 
> TLS 1.2 appears to effectively depend on SHA-256 (at least in HMAC form)
> for the PRF. If that gets broken, we can probably not trust anything
> else negotiated in the handshake and a rev of the base protocol will be
> required to fix it anyway.
> 
> If bare SHA-256 is a concern, the hash could be defined as something
> like hmac_sha256("Cached Info", object_bytes).
> 
> Just a thought.
> 
> - Marsh
> 
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls



From marsh@extendedsubset.com  Thu May 13 07:42:41 2010
Return-Path: <marsh@extendedsubset.com>
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 CFBFB3A6B67 for <tls@core3.amsl.com>; Thu, 13 May 2010 07:42:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.875
X-Spam-Level: 
X-Spam-Status: No, score=-0.875 tagged_above=-999 required=5 tests=[AWL=-0.135, BAYES_20=-0.74]
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 liJUTb2GutdM for <tls@core3.amsl.com>; Thu, 13 May 2010 07:42:40 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id 239B93A6B65 for <tls@ietf.org>; Thu, 13 May 2010 07:42:37 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OCZcI-0000zo-Th; Thu, 13 May 2010 14:42:27 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 3E7F56456; Thu, 13 May 2010 14:42:22 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX18m1z+vsXWZYX5xiDLM+fQoVd7mgm1n2m8=
Message-ID: <4BEC0FCF.9010302@extendedsubset.com>
Date: Thu, 13 May 2010 09:42:23 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: Yoav Nir <ynir@checkpoint.com>
References: <20100510221531.GC9429@oracle.com>	<201005111339.o4BDdoYQ009725@fs4113.wdf.sap.corp>	<20100511152153.GF9429@oracle.com>	<201005111803.o4BI3fhO006065@stingray.missi.ncsc.mil>	<20100511190958.GR9429@oracle.com>	<4BE9B0BC.2000101@extendedsubset.com>	<20100511194620.GU9429@oracle.com>	<4BE9B856.40000@extendedsubset.com>	<20100511200728.GW9429@oracle.com>	<4BE9CC88.6040103@extendedsubset.com>	<87aas5sbzy.fsf@mocca.josefsson.org> <4BEABC2C.6090507@extendedsubset.com> <006FEB08D9C6444AB014105C9AEB133FB48F1B5ABA@il-ex01.ad.checkpoint.com>
In-Reply-To: <006FEB08D9C6444AB014105C9AEB133FB48F1B5ABA@il-ex01.ad.checkpoint.com>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: Simon Josefsson <simon@josefsson.org>, "Kemp, David P." <DPKemp@missi.ncsc.mil>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Collisions (Re: Nico's suggestions - Re: Consensus Call:
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: Thu, 13 May 2010 14:42:41 -0000

On 5/13/2010 2:15 AM, Yoav Nir wrote:
> I kind of fail to see where the discussion shifted. In fact we have
> NOT determined that *malicious* collision resistance is a concern.

I have determined that I am concerned about malicious collisions, until
I get a comfortable feeling that they're not a problem. It's certainly
not anyone else's job to make me feel a certain way, but I hope you
don't mind if I ask a bunch of questions.

We should also keep in mind that the extension only addresses two types
of cached data at this time, but could possibly later include more. If
security analysis needs to based on the particulars of a given cached
item type that should get written down somewhere in the draft.

> A client connects to a server and caches the credentials. Next time
> it connects to the *same* server,

The client may intend to connect to the same server, but we can't assume
it actually *is* connecting to the same server at this point in the
handshake. Proving that it actually is the same server is the #1 goal of
the handshake, and can't be considered a success until the Finished
message is checked.

> it shows an extension that proves
> knowledge of the credentials.

How does it do that?

The extension is sent in-the-clear so it's not a shared secret. I don't
see any signing operation either.

Without collision resistance, attacker may have arranged for the client
to cache something different with the same hash. Client and server may
be using the same hash to talk about different things.

> Assuming the credentials haven't
> changed, the server can skip sending the credentials, but still has
> to prove ownership by signing something or by decrypting the
> pre-master secret. So what could an attacker do?

Are we discussing only the certificate_chain caching right now?

There's also the trusted_cas type and any defined in the future (if in
fact this is a general extensible facility).

- Marsh

From dean@av8.com  Thu May 13 17:24:09 2010
Return-Path: <dean@av8.com>
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 62E4D3A67C1 for <tls@core3.amsl.com>; Thu, 13 May 2010 17:24:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.536
X-Spam-Level: 
X-Spam-Status: No, score=-0.536 tagged_above=-999 required=5 tests=[AWL=-0.537, BAYES_50=0.001]
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 p8mkv6Kq0Ksr for <tls@core3.amsl.com>; Thu, 13 May 2010 17:24:08 -0700 (PDT)
Received: from cirrus.av8.net (cirrus.av8.net [130.105.36.66]) by core3.amsl.com (Postfix) with ESMTP id 2DBF43A6D16 for <tls@ietf.org>; Thu, 13 May 2010 17:23:57 -0700 (PDT)
Received: from citation2.av8.net (citation2.av8.net [130.105.12.10]) (authenticated bits=0) by cirrus.av8.net (8.12.11/8.12.11) with ESMTP id o4E0NX6U017601 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 13 May 2010 20:23:43 -0400
Date: Thu, 13 May 2010 20:23:33 -0400 (EDT)
From: Dean Anderson <dean@av8.com>
X-X-Sender: dean@citation2.av8.net
To: "Michael D'Errico" <mike-list@pobox.com>
In-Reply-To: <4BEAC145.60607@pobox.com>
Message-ID: <Pine.LNX.4.44.1005132018460.13071-100000@citation2.av8.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Cc: Simon Josefsson <simon@josefsson.org>, "Kemp, David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Subject: Re: [TLS] Justification
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: Fri, 14 May 2010 00:24:09 -0000

I rather thought the objective of caching was to have faster startup by
having to move less data around, particularly when its already been
moved before. But I haven't been following the extension too closely. 

I am only concerned when I see suggestions that 'http be used to get TLS
data. I'm not sure whether to those were serious or tongue-in-cheek.  
HTTP secured by and depends on TLS, so you can't draw on HTTP to solve
HTTP-TLS-HTTP without looping or creating security holes.

		--Dean

On Wed, 12 May 2010, Michael D'Errico wrote:

> Can someone please remind me why we want cached-info?  It seems that
> the problems it creates aren't worth the small optimization it might
> provide.
> 
> Mike
> 
> 
> 
> Simon Josefsson wrote:
> > Marsh Ray <marsh@extendedsubset.com> writes:
> > 
> >> Alternatively, if we determine that indeed the non-collision-resistance
> >> of the hash function is the root of all remaining concerns that would be
> >> very positive. We could solve them all in one stroke with
> >> s/FNV-1a/SHA-256/g.
> > 
> > If collision-resistance is a required property (I'm not convinced yet),
> > I believe we need hash agility for the possibility that SHA-256 is weak.
> > 
> > /Simon
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
> 
> 

-- 
Av8 Internet   Prepared to pay a premium for better service?
www.av8.net         faster, more reliable, better service
617 256 5494



From henrik@henriknordstrom.net  Fri May 14 02:24:33 2010
Return-Path: <henrik@henriknordstrom.net>
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 73C7A3A6AA8 for <tls@core3.amsl.com>; Fri, 14 May 2010 02:24:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.712
X-Spam-Level: 
X-Spam-Status: No, score=-2.712 tagged_above=-999 required=5 tests=[AWL=-6.529, BAYES_40=-0.185, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HOST_EQ_STATIC=1.172, MIME_8BIT_HEADER=0.3,  RCVD_IN_SORBS_DUL=0.877]
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 dM-tr-RaLx14 for <tls@core3.amsl.com>; Fri, 14 May 2010 02:24:32 -0700 (PDT)
Received: from vps1.henriknordstrom.net (vps1.henriknordstrom.net [IPv6:2a02:750:7::d0a]) by core3.amsl.com (Postfix) with ESMTP id 491893A6ABC for <tls@ietf.org>; Fri, 14 May 2010 02:22:50 -0700 (PDT)
Received: from henriknordstrom.net (183.159.216.81.static.tb.siw.siwnet.net [81.216.159.183]) by vps1.henriknordstrom.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id o4E9fS06017981; Fri, 14 May 2010 09:41:28 GMT
Received: from [127.0.0.1] (localhost [127.0.0.1]) by henriknordstrom.net (8.12.11.20060308/8.12.8) with ESMTP id o4E9MVs6008843; Fri, 14 May 2010 11:22:31 +0200
From: Henrik =?ISO-8859-1?Q?Nordstr=F6m?= <henrik@henriknordstrom.net>
To: Story Henry <henry.story@bblfish.net>
In-Reply-To: <BE3A063A-34C7-47B4-886E-F8FB369159E3@bblfish.net>
References: <BE3A063A-34C7-47B4-886E-F8FB369159E3@bblfish.net>
Content-Type: text/plain; charset="UTF-8"
Date: Fri, 14 May 2010 11:22:31 +0200
Message-Id: <1273828951.7134.46.camel@localhost.localdomain>
Mime-Version: 1.0
X-Mailer: Evolution 2.26.3 (2.26.3-1.fc11) 
Content-Transfer-Encoding: 8bit
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (vps1.henriknordstrom.net [195.20.207.177]); Fri, 14 May 2010 09:41:29 +0000 (UTC)
X-Mailman-Approved-At: Fri, 14 May 2010 12:18:38 -0700
Cc: Semantic Web <semantic-web@w3.org>, tls@ietf.org, Working Group HTTP <ietf-http-wg@w3.org>
Subject: Re: [TLS] one time passwords from private keys
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: Fri, 14 May 2010 09:24:34 -0000

sÃ¶n 2010-02-28 klockan 15:51 +0100 skrev Story Henry:
> Hello,
> 
>    I am looking around to see if anyone knows an algorithm to allow one to produce a one time password [1] from the private key part of an asymmetric key pair. 

Any of the publik key crypto methods + a challenge from the server can
produce this by simply encrypting the challenge using the private key,
and is explained well in the paper you quoted.

There need to be a challenge sent by the server as it's only this the
server can use to verify the one-time aspect.

Regards
Henrik


From d3e3e3@gmail.com  Fri May 14 19:22:26 2010
Return-Path: <d3e3e3@gmail.com>
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 26BE63A6823 for <tls@core3.amsl.com>; Fri, 14 May 2010 19:22:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.312
X-Spam-Level: 
X-Spam-Status: No, score=-0.312 tagged_above=-999 required=5 tests=[AWL=-0.313, BAYES_50=0.001]
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 cLEfhHTHWMvO for <tls@core3.amsl.com>; Fri, 14 May 2010 19:22:25 -0700 (PDT)
Received: from mail-ww0-f44.google.com (mail-ww0-f44.google.com [74.125.82.44]) by core3.amsl.com (Postfix) with ESMTP id 830483A67B3 for <tls@ietf.org>; Fri, 14 May 2010 19:22:04 -0700 (PDT)
Received: by wwb28 with SMTP id 28so1215251wwb.31 for <tls@ietf.org>; Fri, 14 May 2010 19:21:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=GPV3/Lqttgm4vJxsNtnL4WxSY4amPWcJ5afihaUosko=; b=dc7C910lxEE6OT3+6YXj2gOQKiNUUx0P6BsydmSN3heRxrHY+uv61dVF1tsVwPttJQ ufvHDcKc7BgiM1TdRFZpkutyIRIXwk8oYRioubGMue27XNk0FQC9Hi7+kJL21PtwNn0Q alcm/YdISmSuKYTOjjRYIlZvI9Uv41w+lqv0c=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=IUGW+cT7LV1e3pwNv2thrTjrjE+pY5qje6p1cqbl9MCHRtVb9WByz/0kGcfuf9KFF4 Z0zEez6+j1F0Xq0QuL+BRXPTaTDmA1BWWV4SkZ86N9Fmks48FOMA3iYHYBqPRMJTrIpV EsxuFfGciI0IKHkMU43javJkVGl0qjKIyd5Mk=
MIME-Version: 1.0
Received: by 10.216.90.130 with SMTP id e2mr1298111wef.210.1273890110836; Fri,  14 May 2010 19:21:50 -0700 (PDT)
Received: by 10.216.89.72 with HTTP; Fri, 14 May 2010 19:21:50 -0700 (PDT)
In-Reply-To: <808FD6E27AD4884E94820BC333B2DB775B82DD0CE1@NOK-EUMSG-01.mgdnok.nokia.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B2D7@xmb-sjc-225.amer.cisco.com> <808FD6E27AD4884E94820BC333B2DB775B82DD0CE1@NOK-EUMSG-01.mgdnok.nokia.com>
Date: Fri, 14 May 2010 22:21:50 -0400
Message-ID: <AANLkTikvkuR5_6kHnpwM19PxSvtBv4qrC1_QldxMnOWE@mail.gmail.com>
From: Donald Eastlake <d3e3e3@gmail.com>
To: tls@ietf.org
Content-Type: text/plain; charset=ISO-8859-1
Subject: Re: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
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: Sat, 15 May 2010 02:22:26 -0000

There having been no objections to the changes posted at the beginning
of this thread, I've gone ahead and made them.

Thanks,
Donald
=============================
 Donald E. Eastlake 3rd   +1-508-333-2270 (cell)
 155 Beaver Street   +1-508-634-2066 (home)
 Milford, MA 01757 USA
 d3e3e3@gmail.com

From root@core3.amsl.com  Fri May 14 19:30:02 2010
Return-Path: <root@core3.amsl.com>
X-Original-To: tls@ietf.org
Delivered-To: tls@core3.amsl.com
Received: by core3.amsl.com (Postfix, from userid 0) id 5A9AF3A67AD; Fri, 14 May 2010 19:30:02 -0700 (PDT)
From: Internet-Drafts@ietf.org
To: i-d-announce@ietf.org
Content-Type: Multipart/Mixed; Boundary="NextPart"
Mime-Version: 1.0
Message-Id: <20100515023002.5A9AF3A67AD@core3.amsl.com>
Date: Fri, 14 May 2010 19:30:02 -0700 (PDT)
Cc: tls@ietf.org
Subject: [TLS] I-D Action:draft-ietf-tls-rfc4366-bis-07.txt
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: Sat, 15 May 2010 02:30:02 -0000

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Transport Layer Security Working Group of the IETF.


	Title           : Transport Layer Security (TLS) Extensions: Extension Definitions
	Author(s)       : D. Eastlake 3rd
	Filename        : draft-ietf-tls-rfc4366-bis-07.txt
	Pages           : 30
	Date            : 2010-05-14

This document provides specifications for existing TLS extensions. It
is a companion document for the TLS 1.2 specification [RFC5246]. The
extensions specified are server_name, max_fragment_length,
client_certificate_url, trusted_ca_keys, truncated_hmac, and
status_request.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-tls-rfc4366-bis-07.txt

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/

Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Message/External-body;
	name="draft-ietf-tls-rfc4366-bis-07.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID: <2010-05-14192403.I-D@ietf.org>


--NextPart--

From mike-list@pobox.com  Fri May 14 20:02:19 2010
Return-Path: <mike-list@pobox.com>
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 E7A833A67FE for <tls@core3.amsl.com>; Fri, 14 May 2010 20:02:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.841
X-Spam-Level: 
X-Spam-Status: No, score=-0.841 tagged_above=-999 required=5 tests=[AWL=-0.842, BAYES_50=0.001]
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 7PK2K72zHvFu for <tls@core3.amsl.com>; Fri, 14 May 2010 20:02:18 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id ABA063A67EB for <tls@ietf.org>; Fri, 14 May 2010 20:02:17 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 7D3C1B3B11; Fri, 14 May 2010 23:02:07 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=Gk5aMLZpNEIw hnsAn7djb+nVC0U=; b=IKEiU+oUcqn6Gxvypet9vfVTnIEyxvxb78c3jItm7ZHp AZUZqMd8cDnAVifT6jALz9A/r/ewra+vl/eIeU2l96n1SzDZIqdZJzDHXdu3rg9M V6/3zvB/knbshcfan85lTi2Yh1Iu+HVeselOhPOxl8ZrUOnb8cOc/ykzWVM5O+Y=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=J09ne5 p4OxHJqzMksJuYonHjCQrQBJV7l46SNB69Yh82d2u21b8a2lv/QugXI74OAoJUFp bYeAurPuaDzvw760I7b9Uow8H4ogdTKPUTSJHEu2ptpMTvgNaL/4CVuIgSpEdHLj GluNobSRtA+Un8aJLenyaUeMye8gixTYyN1o8=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 6A5B9B3B0F; Fri, 14 May 2010 23:02:06 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id E6911B3B0E; Fri, 14 May 2010 23:02:04 -0400 (EDT)
Message-ID: <4BEE0EAB.5030806@pobox.com>
Date: Fri, 14 May 2010 20:02:03 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: Donald Eastlake <d3e3e3@gmail.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B2D7@xmb-sjc-225.amer.cisco.com> <808FD6E27AD4884E94820BC333B2DB775B82DD0CE1@NOK-EUMSG-01.mgdnok.nokia.com> <AANLkTikvkuR5_6kHnpwM19PxSvtBv4qrC1_QldxMnOWE@mail.gmail.com>
In-Reply-To: <AANLkTikvkuR5_6kHnpwM19PxSvtBv4qrC1_QldxMnOWE@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 3EB08504-5FCE-11DF-9351-D033EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
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: Sat, 15 May 2010 03:02:20 -0000

Donald Eastlake wrote:
> There having been no objections to the changes posted at the beginning
> of this thread, I've gone ahead and made them.

Sorry, I've been busy.  One of the things added was:

    Add to section 3 before the last paragraph to clarify session
    resumption behavior:

    "When the server resumes a session, the server_name extension
    is ignored."

I have not yet done it, but I plan to have my session resumption
logic look at the SNI to see if it matches the name used for the
cached session.  If they don't match, a full handshake will be
completed.  We already have to verify that TLS version, cipher
suite, and compression method are compatible with the hello
parameters.  I don't see why the SNI is any less important.

Does the above text suggest that my plan would be non-compliant?

Thanks,

Mike



> Thanks,
> Donald
> =============================
>  Donald E. Eastlake 3rd   +1-508-333-2270 (cell)
>  155 Beaver Street   +1-508-634-2066 (home)
>  Milford, MA 01757 USA
>  d3e3e3@gmail.com

From marsh@extendedsubset.com  Fri May 14 20:56:36 2010
Return-Path: <marsh@extendedsubset.com>
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 15A113A686D for <tls@core3.amsl.com>; Fri, 14 May 2010 20:56:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.499
X-Spam-Level: 
X-Spam-Status: No, score=-0.499 tagged_above=-999 required=5 tests=[AWL=-0.500, BAYES_50=0.001]
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 xvIgv0umDlSz for <tls@core3.amsl.com>; Fri, 14 May 2010 20:56:35 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id 52A3B3A67D4 for <tls@ietf.org>; Fri, 14 May 2010 20:56:35 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OD8UD-000OMX-UA; Sat, 15 May 2010 03:56:25 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id B20EB6456; Sat, 15 May 2010 03:56:24 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX18G1K49iIyMMVO4bik/dXSPE5KE71bYhPo=
Message-ID: <4BEE1B68.7060406@extendedsubset.com>
Date: Fri, 14 May 2010 22:56:24 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: Michael D'Errico <mike-list@pobox.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B2D7@xmb-sjc-225.amer.cisco.com>	<808FD6E27AD4884E94820BC333B2DB775B82DD0CE1@NOK-EUMSG-01.mgdnok.nokia.com>	<AANLkTikvkuR5_6kHnpwM19PxSvtBv4qrC1_QldxMnOWE@mail.gmail.com> <4BEE0EAB.5030806@pobox.com>
In-Reply-To: <4BEE0EAB.5030806@pobox.com>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
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: Sat, 15 May 2010 03:56:36 -0000

On 5/14/2010 10:02 PM, Michael D'Errico wrote:
>
>    "When the server resumes a session, the server_name extension
>    is ignored."

Conversely, the act of considering (i.e., not ignoring) the SNI
prohibits the server from resuming the session.

So this wording would seem to eliminate the possibility of having
multiple TLS server stacks selected by SNI.

Might rule out some interesting "reverse" proxy hardware on a
technicality. Or, more likely, the rule would just be ignored if the
design works in practice.

- Marsh

From jsalowey@cisco.com  Sun May 16 21:43:20 2010
Return-Path: <jsalowey@cisco.com>
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 4BA513A6CAD for <tls@core3.amsl.com>; Sun, 16 May 2010 21:43:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.865
X-Spam-Level: 
X-Spam-Status: No, score=-8.865 tagged_above=-999 required=5 tests=[AWL=-0.866, BAYES_50=0.001, RCVD_IN_DNSWL_HI=-8]
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 dVgk9yjSHxS3 for <tls@core3.amsl.com>; Sun, 16 May 2010 21:43:19 -0700 (PDT)
Received: from sj-iport-1.cisco.com (sj-iport-1.cisco.com [171.71.176.70]) by core3.amsl.com (Postfix) with ESMTP id 84F5A3A6C96 for <tls@ietf.org>; Sun, 16 May 2010 21:43:18 -0700 (PDT)
Authentication-Results: sj-iport-1.cisco.com; dkim=neutral (message not signed) header.i=none
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvsEADNm8EurR7Hu/2dsb2JhbACeAHGhBphZgnWCGwSDQA
X-IronPort-AV: E=Sophos;i="4.53,245,1272844800"; d="scan'208";a="326475069"
Received: from sj-core-5.cisco.com ([171.71.177.238]) by sj-iport-1.cisco.com with ESMTP; 17 May 2010 04:43:10 +0000
Received: from xbh-sjc-231.amer.cisco.com (xbh-sjc-231.cisco.com [128.107.191.100]) by sj-core-5.cisco.com (8.13.8/8.14.3) with ESMTP id o4H4hAqs028279; Mon, 17 May 2010 04:43:10 GMT
Received: from xmb-sjc-225.amer.cisco.com ([128.107.191.38]) by xbh-sjc-231.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.3959);  Sun, 16 May 2010 21:43:10 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Sun, 16 May 2010 21:43:08 -0700
Message-ID: <AC1CFD94F59A264488DC2BEC3E890DE50A67C235@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <4BEE0EAB.5030806@pobox.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
Thread-Index: Acrz2wikfOLOAyuBTOCsnB5B06DAQQBn5OXA
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B2D7@xmb-sjc-225.amer.cisco.com><808FD6E27AD4884E94820BC333B2DB775B82DD0CE1@NOK-EUMSG-01.mgdnok.nokia.com><AANLkTikvkuR5_6kHnpwM19PxSvtBv4qrC1_QldxMnOWE@mail.gmail.com> <4BEE0EAB.5030806@pobox.com>
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: "Michael D'Errico" <mike-list@pobox.com>, "Donald Eastlake" <d3e3e3@gmail.com>
X-OriginalArrivalTime: 17 May 2010 04:43:10.0436 (UTC) FILETIME=[73B2CA40:01CAF57B]
Cc: tls@ietf.org
Subject: Re: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
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: Mon, 17 May 2010 04:43:20 -0000

This clarification is consistent with existing text in the draft and in
RFC 4366.=20

" Note also that all the extensions defined in this section are
   relevant only when a session is initiated. ...=20

-  If, on the other hand, the older session is resumed, then the
      server MUST ignore the extensions and send a server hello
      containing none of the extension types.  In this case, the
      functionality of these extensions negotiated during the original
      session initiation is applied to the resumed session."

Joe

> -----Original Message-----
> From: tls-bounces@ietf.org [mailto:tls-bounces@ietf.org] On Behalf Of
> Michael D'Errico
> Sent: Friday, May 14, 2010 8:02 PM
> To: Donald Eastlake
> Cc: tls@ietf.org
> Subject: Re: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
>=20
> Donald Eastlake wrote:
> > There having been no objections to the changes posted at the
beginning
> > of this thread, I've gone ahead and made them.
>=20
> Sorry, I've been busy.  One of the things added was:
>=20
>     Add to section 3 before the last paragraph to clarify session
>     resumption behavior:
>=20
>     "When the server resumes a session, the server_name extension
>     is ignored."
>=20
> I have not yet done it, but I plan to have my session resumption
> logic look at the SNI to see if it matches the name used for the
> cached session.  If they don't match, a full handshake will be
> completed.  We already have to verify that TLS version, cipher
> suite, and compression method are compatible with the hello
> parameters.  I don't see why the SNI is any less important.
>=20
> Does the above text suggest that my plan would be non-compliant?
>=20
> Thanks,
>=20
> Mike
>=20
>=20
>=20
> > Thanks,
> > Donald
> > =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> >  Donald E. Eastlake 3rd   +1-508-333-2270 (cell)
> >  155 Beaver Street   +1-508-634-2066 (home)
> >  Milford, MA 01757 USA
> >  d3e3e3@gmail.com
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls

From mike-list@pobox.com  Sun May 16 22:34:24 2010
Return-Path: <mike-list@pobox.com>
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 39EAE3A6D00 for <tls@core3.amsl.com>; Sun, 16 May 2010 22:34:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.781
X-Spam-Level: 
X-Spam-Status: No, score=-0.781 tagged_above=-999 required=5 tests=[AWL=-0.782, BAYES_50=0.001]
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 9x30nS82PZ2V for <tls@core3.amsl.com>; Sun, 16 May 2010 22:34:22 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 6B9273A6D0C for <tls@ietf.org>; Sun, 16 May 2010 22:30:27 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id B92C5B46B3; Mon, 17 May 2010 01:30:18 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=mbda/SzlVYwB KiX3FITB9fvxyZM=; b=m8UunSmWyDBw9Qj8mSyzgR9js4BiAakzvynffbA4MVtn 5WZsmSBX7mhiwWb0J3/o34QcaWgysv/xOagdxsiKb5i/ydVKEfGa8GgL+rMNM4jj 19I3lrseEV9lJzd0WZiBp1ZjnIl3OJS3iwFwstbu9EEY0n/ZHd8z2UdUJ/ZhjXI=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=kQIzul SjCLg4YGBEGPmrGWQr/g/+dvrInVEjkmeYSPbZHj/N7Bm/+P4oFmO0yjEZZcFBc2 MXREln4EnPi+Bsyv5He5ohQf9DXt5RF/8HDtsvAUOEonHXQhA2pfNuNcVD1EBIFC seIm/Z7ssVq1ulzqagOcvp2gl0q2BiBAu0kzk=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 95282B46B2; Mon, 17 May 2010 01:30:16 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 0B22EB46B1; Mon, 17 May 2010 01:30:12 -0400 (EDT)
Message-ID: <4BF0D459.4010806@pobox.com>
Date: Sun, 16 May 2010 22:30:01 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A43B2D7@xmb-sjc-225.amer.cisco.com><808FD6E27AD4884E94820BC333B2DB775B82DD0CE1@NOK-EUMSG-01.mgdnok.nokia.com><AANLkTikvkuR5_6kHnpwM19PxSvtBv4qrC1_QldxMnOWE@mail.gmail.com> <4BEE0EAB.5030806@pobox.com> <AC1CFD94F59A264488DC2BEC3E890DE50A67C235@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A67C235@xmb-sjc-225.amer.cisco.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 4679075E-6175-11DF-98A7-D033EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
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: Mon, 17 May 2010 05:34:24 -0000

I understand the mechanics are that the server doesn't send the
extensions when it's resumed a session.

My question is whether the spec. disallows taking the SNI into
consideration when deciding whether to resume or not.  Suppose
my server handles foo.edu and bar.org at the same IP address
and uses SNI to determine which set of certificates and options
to choose from.

A client might establish a session using SNI=foo.edu.  Later,
it may try to resume that session, but send SNI=bar.org.  Which
should take precedence?  The client may cache sessions based
solely on the IP address and think that it can reuse any session
it's established on that machine in the past.

What if foo.edu doesn't care so much about security and just
wants all connections to work, so its cipher suite list is huge
and it doesn't care if RI is sent, etc.  But bar.org has strong
security and privacy requirements, so its cipher suite list is
short and contains only the best crypto available, and RI is a
must even for initial handshakes.

Would it make sense for the server to resume the old session
from foo.edu and hand it off to the bar.org application?  I'd
say absolutely not.  So in my software, I plan to check for a
match of the SNI prior to allowing a session to be resumed.

I would hate for this to be considered "illegal."

Mike



Joseph Salowey (jsalowey) wrote:
> This clarification is consistent with existing text in the draft and in
> RFC 4366. 
> 
> " Note also that all the extensions defined in this section are
>    relevant only when a session is initiated. ... 
> 
> -  If, on the other hand, the older session is resumed, then the
>       server MUST ignore the extensions and send a server hello
>       containing none of the extension types.  In this case, the
>       functionality of these extensions negotiated during the original
>       session initiation is applied to the resumed session."
> 
> Joe
> 
>> -----Original Message-----
>> From: tls-bounces@ietf.org [mailto:tls-bounces@ietf.org] On Behalf Of
>> Michael D'Errico
>> Sent: Friday, May 14, 2010 8:02 PM
>> To: Donald Eastlake
>> Cc: tls@ietf.org
>> Subject: Re: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
>>
>> Donald Eastlake wrote:
>>> There having been no objections to the changes posted at the
> beginning
>>> of this thread, I've gone ahead and made them.
>> Sorry, I've been busy.  One of the things added was:
>>
>>     Add to section 3 before the last paragraph to clarify session
>>     resumption behavior:
>>
>>     "When the server resumes a session, the server_name extension
>>     is ignored."
>>
>> I have not yet done it, but I plan to have my session resumption
>> logic look at the SNI to see if it matches the name used for the
>> cached session.  If they don't match, a full handshake will be
>> completed.  We already have to verify that TLS version, cipher
>> suite, and compression method are compatible with the hello
>> parameters.  I don't see why the SNI is any less important.
>>
>> Does the above text suggest that my plan would be non-compliant?
>>
>> Thanks,
>>
>> Mike
>>
>>
>>
>>> Thanks,
>>> Donald
>>> =============================
>>>  Donald E. Eastlake 3rd   +1-508-333-2270 (cell)
>>>  155 Beaver Street   +1-508-634-2066 (home)
>>>  Milford, MA 01757 USA
>>>  d3e3e3@gmail.com

From mrex@sap.com  Mon May 17 06:26:18 2010
Return-Path: <mrex@sap.com>
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 24E193A6BCF for <tls@core3.amsl.com>; Mon, 17 May 2010 06:26:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.737
X-Spam-Level: 
X-Spam-Status: No, score=-7.737 tagged_above=-999 required=5 tests=[AWL=-0.088, BAYES_50=0.001, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_HI=-8]
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 F6iZ+X8BYMGG for <tls@core3.amsl.com>; Mon, 17 May 2010 06:26:17 -0700 (PDT)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.171]) by core3.amsl.com (Postfix) with ESMTP id 630D93A6C9C for <tls@ietf.org>; Mon, 17 May 2010 06:22:00 -0700 (PDT)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o4HDLho7023914 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 17 May 2010 15:21:43 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201005171321.o4HDLgmX018711@fs4113.wdf.sap.corp>
To: jsalowey@cisco.com (Joseph Salowey)
Date: Mon, 17 May 2010 15:21:42 +0200 (MEST)
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A67C235@xmb-sjc-225.amer.cisco.com> from "Joseph Salowey" at May 16, 10 09:43:08 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal08
X-SAP: out
Cc: tls@ietf.org
Subject: Re: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
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/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: Mon, 17 May 2010 13:26:18 -0000

Joseph Salowey wrote:
> 
> This clarification is consistent with existing text in the draft and in
> RFC 4366. 

The way it is written appears somewhat misleading, and the resulting
change to 4366 indicates that we need to come up with a better description.

> 
> " Note also that all the extensions defined in this section are
>    relevant only when a session is initiated. ... 
> 
> -  If, on the other hand, the older session is resumed, then the
>       server MUST ignore the extensions and send a server hello
>       containing none of the extension types.  In this case, the
>       functionality of these extensions negotiated during the original
>       session initiation is applied to the resumed session."
>
> Michael D'Errico wrote:
> >
> >    Add to section 3 before the last paragraph to clarify session
> >    resumption behavior:
> >
> >    "When the server resumes a session, the server_name extension
> >    is ignored."
> >
> > I have not yet done it, but I plan to have my session resumption
> > logic look at the SNI to see if it matches the name used for the
> > cached session.  If they don't match, a full handshake will be
> > completed.  We already have to verify that TLS version, cipher
> > suite, and compression method are compatible with the hello
> > parameters.  I don't see why the SNI is any less important.


Your intended behaviour sounds perfectly fine and sensible.

> 
> > Does the above text suggest that my plan would be non-compliant?


No.  Your intention is to determine whether a suitable cached session
exist for resumption.  Once you have determined that, you resume without
SNI affecting the characteristics of the resumed session.


But your confusion suggests that this should probably be rephrased 
in order clarify what is meant.


There are two entirely seperate issues that ought to be distinguished.

(1) criteria which the server considers in his decision whether to
    resume a TLS session from the cache by performing an abbreviated
    TLS handshake for the TLS session ID proposed by the TLS client in
    the ClientHello handshake message.

(2) effects of parameters in ClientHello (regular or through extensions)
    on the characteristics of the established TLS session.


What Joe an the new text says is only about (2).  When the server decides
to resumt a TLS session from cache, then it must be resumed as-is, none
of the parameters or extensions in the ClientHello is allowed to modify
the characteristics of the resumed TLS session.


(1) is a totally different beast.  Whether or not the server resumes a
TLS session proposed by the TLS client is completely at the
discretion of the server.  IMHO, it makes perfect sense for the
server to check whether the attributes that the client requests
through all those parameters in regular ClientHello plus TLS extension
actually match the characteristics of proposed cached session,
and to go through a full TLS handshake if they don't.
A server can also expire a session from his session cache whenever
it sees a need to do so.


In some implementations, the TLS session cache may be shared among
several processes on a host, not just a single application that tries
to offer virtual hosting with TLS through the server name indication (SNI)
TLS extension.  That correct client implementations shouldn't be
proposing to resume TLS sessions across "virtual hosts" boundaries is
not relevant for the server's decision.  The server should not try to
make any assumptions on client desire or behaviour, but instead act
deterministically based on the parameters in the supplied ClientHello
handshake message.



-Martin

From stefan@aaa-sec.com  Mon May 17 06:58:22 2010
Return-Path: <stefan@aaa-sec.com>
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 D43D83A69BB for <tls@core3.amsl.com>; Mon, 17 May 2010 06:58:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.4
X-Spam-Level: 
X-Spam-Status: No, score=-1.4 tagged_above=-999 required=5 tests=[AWL=-0.751,  BAYES_50=0.001, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 10NrYViPK4XF for <tls@core3.amsl.com>; Mon, 17 May 2010 06:58:22 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id EC7DE3A682D for <tls@ietf.org>; Mon, 17 May 2010 06:58:19 -0700 (PDT)
Received: from s29.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id C6AA928D750 for <tls@ietf.org>; Mon, 17 May 2010 15:58:15 +0200 (CEST)
Received: (qmail 11955 invoked from network); 17 May 2010 13:58:10 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.8]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s29.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <tls@ietf.org>; 17 May 2010 13:58:10 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Mon, 17 May 2010 15:58:08 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: <tls@ietf.org>
Message-ID: <C8171810.ADE4%stefan@aaa-sec.com>
Thread-Topic: Wrapping up cached info
Thread-Index: Acr1yPqXX9nCr/2ZD02C5ih5zz1aVA==
In-Reply-To: <Pine.LNX.4.44.1005132018460.13071-100000@citation2.av8.net>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Subject: [TLS] Wrapping up cached info
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: Mon, 17 May 2010 13:58:22 -0000

I would like to wrap up the discussion about cached info, if possible.

I have to admit that I'm stuck as editor. I have a draft that I think is
done with a possible amendment to the security considerations and some
additional informational references to FNV.

I don't think the discussion has shown that the security assumptions are
wrong, I.e. That any alteration of cached data in the sense that the server
and the client are in disagreement of what the cached data is, will lead to
a handshake failure.

Threats are therefore reduced to inconveniences upon handshake failures (as
far as discussion has showed.

However, there is still a possible alteration of the security properties of
the finished calculation. That is, it is possible upon a FNV collision to
disagree on the cached data without failing the finished calculation.

I can't see any practical exploit of this fact. If this is considered a
blocking problem, then it is easiest solved by using a secure hash (SHA-256)
which effectively restores the security properties of the finished
calculation. This is best done by s/FNV/SHA-256. No agility.

I will not lead an effort to specify a variant of this protocol where the
server provides the identifiers, either as any random identifier or in the
form of a URI. If that is the desire of the WG, I will be happy to hand over
editorship to anyone, assigned by the chairs, who wants to take over.

I request WG chair guidance on how to proceed, if at all with this document.

/Stefan



From Nicolas.Williams@oracle.com  Mon May 17 07:58:31 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 CAB0C3A6A7C for <tls@core3.amsl.com>; Mon, 17 May 2010 07:58:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.533
X-Spam-Level: 
X-Spam-Status: No, score=-4.533 tagged_above=-999 required=5 tests=[AWL=0.576,  BAYES_05=-1.11, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 Vj0eL3UGcomX for <tls@core3.amsl.com>; Mon, 17 May 2010 07:58:30 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 222383A6A77 for <tls@ietf.org>; Mon, 17 May 2010 07:58:26 -0700 (PDT)
Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4HEwBOK007440 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 17 May 2010 14:58:13 GMT
Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4HBBv19015305; Mon, 17 May 2010 14:58:10 GMT
Received: from abhmt007.oracle.com by acsmt355.oracle.com with ESMTP id 270920411274108265; Mon, 17 May 2010 07:57:45 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 17 May 2010 07:57:44 -0700
Date: Mon, 17 May 2010 09:57:38 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Stefan Santesson <stefan@aaa-sec.com>
Message-ID: <20100517145738.GQ9429@oracle.com>
References: <Pine.LNX.4.44.1005132018460.13071-100000@citation2.av8.net> <C8171810.ADE4%stefan@aaa-sec.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <C8171810.ADE4%stefan@aaa-sec.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: rcsinet15.oracle.com [148.87.113.117]
X-CT-RefId: str=0001.0A090203.4BF15985.018D:SCFMA4539811,ss=1,fgs=0
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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: Mon, 17 May 2010 14:58:31 -0000

On Mon, May 17, 2010 at 03:58:08PM +0200, Stefan Santesson wrote:
> I don't think the discussion has shown that the security assumptions are
> wrong, I.e. That any alteration of cached data in the sense that the server
> and the client are in disagreement of what the cached data is, will lead to
> a handshake failure.

If only "any alteration of cached data" in that sense were to lead to
handshake failure, then the protocol would be secure.  The fact that
we've not shown as much means that the protocol is suspect.

We should not be concerned with DoS attacks here because DoS attacks on
handshakes can't be defended against by TLS.  We're concerned with all
other active attacks, and these matter a lot more than DoS attacks.

I believe the only obvious and simple way to prevent such attacks and,
crucially, simplify the security analysis of this protocol, is to bind
the cached objects' data into the handshake, almost as if they'd not
been cached in the first place.

Nico
-- 

From simon@josefsson.org  Mon May 17 08:19:34 2010
Return-Path: <simon@josefsson.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 9DEA03A6A74 for <tls@core3.amsl.com>; Mon, 17 May 2010 08:19:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.384
X-Spam-Level: 
X-Spam-Status: No, score=-2.384 tagged_above=-999 required=5 tests=[AWL=0.215,  BAYES_00=-2.599]
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 iEUp8+reWMej for <tls@core3.amsl.com>; Mon, 17 May 2010 08:19:31 -0700 (PDT)
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39]) by core3.amsl.com (Postfix) with ESMTP id B31CC28C12C for <tls@ietf.org>; Mon, 17 May 2010 08:17:31 -0700 (PDT)
Received: from mocca (c80-216-25-148.bredband.comhem.se [80.216.25.148]) (authenticated bits=0) by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o4HFHHxf009696 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 17 May 2010 17:17:18 +0200
From: Simon Josefsson <simon@josefsson.org>
To: Nicolas Williams <Nicolas.Williams@oracle.com>
References: <Pine.LNX.4.44.1005132018460.13071-100000@citation2.av8.net> <C8171810.ADE4%stefan@aaa-sec.com> <20100517145738.GQ9429@oracle.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100517:stefan@aaa-sec.com::bYj6xAy1CUMZRNK6:2gfX
X-Hashcash: 1:22:100517:tls@ietf.org::oPBFSvhjSJOzBrn9:A1b4
X-Hashcash: 1:22:100517:nicolas.williams@oracle.com::j5lPvtQZiw27/rzy:UeQe
Date: Mon, 17 May 2010 17:17:17 +0200
In-Reply-To: <20100517145738.GQ9429@oracle.com> (Nicolas Williams's message of "Mon, 17 May 2010 09:57:38 -0500")
Message-ID: <87tyq6woaq.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Virus-Scanned: clamav-milter 0.96 at yxa-v
X-Virus-Status: Clean
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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: Mon, 17 May 2010 15:19:34 -0000

Nicolas Williams <Nicolas.Williams@oracle.com> writes:

> I believe the only obvious and simple way to prevent such attacks and,
> crucially, simplify the security analysis of this protocol, is to bind
> the cached objects' data into the handshake, almost as if they'd not
> been cached in the first place.

+1.  I think this is a good extension for Paul's additional random input
framework.

/Simon

From Nicolas.Williams@oracle.com  Mon May 17 08:26:10 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 24D693A69FF for <tls@core3.amsl.com>; Mon, 17 May 2010 08:26:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.986
X-Spam-Level: 
X-Spam-Status: No, score=-3.986 tagged_above=-999 required=5 tests=[AWL=0.012,  BAYES_50=0.001, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 UmrtCRH9QkZF for <tls@core3.amsl.com>; Mon, 17 May 2010 08:26:08 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 6FB1D28C11B for <tls@ietf.org>; Mon, 17 May 2010 08:20:53 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4HFKZCn025781 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 17 May 2010 15:20:37 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4HBuH0Z008418; Mon, 17 May 2010 15:20:34 GMT
Received: from abhmt019.oracle.com by acsmt353.oracle.com with ESMTP id 247115761274109625; Mon, 17 May 2010 08:20:25 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 17 May 2010 08:20:18 -0700
Date: Mon, 17 May 2010 10:20:12 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Dean Anderson <dean@av8.com>
Message-ID: <20100517152011.GR9429@oracle.com>
References: <4BEAC145.60607@pobox.com> <Pine.LNX.4.44.1005132018460.13071-100000@citation2.av8.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.LNX.4.44.1005132018460.13071-100000@citation2.av8.net>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090205.4BF15EC6.00D7:SCFMA922111,ss=1,fgs=0
Cc: Simon Josefsson <simon@josefsson.org>, "Kemp, David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Subject: Re: [TLS] Justification
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: Mon, 17 May 2010 15:26:10 -0000

On Thu, May 13, 2010 at 08:23:33PM -0400, Dean Anderson wrote:
> I rather thought the objective of caching was to have faster startup by
> having to move less data around, particularly when its already been
> moved before. But I haven't been following the extension too closely. 
> 
> I am only concerned when I see suggestions that 'http be used to get TLS
> data. I'm not sure whether to those were serious or tongue-in-cheek.  

First, HTTP already is used to get what you might call TLS data, such as
CRLs.

Second, I only want to assign URIs to cacheable TLS data, not so much
make it fetchable via URIs.  This is a variant of my earlier suggestion
of server-side object IDs; this variant can result in efficient caching
of the same objects used by many servers (e.g., certification chains).

> HTTP secured by and depends on TLS, so you can't draw on HTTP to solve
> HTTP-TLS-HTTP without looping or creating security holes.

You clearly didn't read what I'd written.  The key problem with this
extension is that the cached objects aren't bound into the handshake.
IMO regardless of how the cached object IDs are obtained, whether by
SHA-1 hashing, FNV-1a hashing, server-assigned IDs, or URIs, the object
data must be bound into the handshake.  Given such binding then it
doesn't matter how you retrieve these objects (which are, for the most
part, public data).

Nico
-- 

From marsh@extendedsubset.com  Mon May 17 08:34:40 2010
Return-Path: <marsh@extendedsubset.com>
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 ECEAB3A6A98 for <tls@core3.amsl.com>; Mon, 17 May 2010 08:34:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.48
X-Spam-Level: 
X-Spam-Status: No, score=-0.48 tagged_above=-999 required=5 tests=[AWL=-0.481,  BAYES_50=0.001]
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 2-euY02LSlJy for <tls@core3.amsl.com>; Mon, 17 May 2010 08:34:40 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id EB3FF3A6D3C for <tls@ietf.org>; Mon, 17 May 2010 08:30:46 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OE2H8-000D9F-2S; Mon, 17 May 2010 15:30:38 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id EAC3E6048; Mon, 17 May 2010 15:30:35 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX19uc5B0yNhctJ5Ogj8TmUjbyyj0eezScpY=
Message-ID: <4BF1611C.3090005@extendedsubset.com>
Date: Mon, 17 May 2010 10:30:36 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: Stefan Santesson <stefan@aaa-sec.com>
References: <C8171810.ADE4%stefan@aaa-sec.com>
In-Reply-To: <C8171810.ADE4%stefan@aaa-sec.com>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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: Mon, 17 May 2010 15:34:41 -0000

On 5/17/2010 8:58 AM, Stefan Santesson wrote:
> I would like to wrap up the discussion about cached info, if possible.

For the record, I think this could be a really useful extension that
saves huge amounts of aggregate bandwidth and latency in specific
circumstances.

It would be a shame for it to be dropped basically just because of the
lack of obvious choice of a hash function at the current time.

> I have to admit that I'm stuck as editor. I have a draft that I think is
> done with a possible amendment to the security considerations and some
> additional informational references to FNV.
> 
> I don't think the discussion has shown that the security assumptions are
> wrong, I.e. That any alteration of cached data in the sense that the server
> and the client are in disagreement of what the cached data is, will lead to
> a handshake failure.
> 
> Threats are therefore reduced to inconveniences upon handshake failures (as
> far as discussion has showed.
> 
> However, there is still a possible alteration of the security properties of
> the finished calculation. That is, it is possible upon a FNV collision to
> disagree on the cached data without failing the finished calculation.
> 
> I can't see any practical exploit of this fact.

Specifically:

1. Bad guy can, without detection, cause the client to consider a
different set of options when selecting a client certificate. He could
cause the client to be unable to select a client certificate when it
should, or cause it to select a different one than it would have. This
is clearly an unanticipated semantic change for application code and may
introduce a vulnerability somewhere.

2. Bad guy can cause a collision to be cached an indefinite length of
time and thus arrange for a failure to occur at some point in a future
handshake, possibly as a drive-by without even being a MitM. Since
recovery from failure requires coordination between the TLS stack and
the application managing the underlying transport, it's impractical for
this WG to gauge the likely success of the reconnect. This represents an
escalation of the attacker's capability over the status quo.

3. Much of this draft is written as if a generic facility is proposed,
yet the security analysis is only addressing the two specific cases. Any
future object types would need their own analysis concerning the lack of
collision resistance, or perhaps they would need yet another mechanism.

> If this is considered a
> blocking problem, then it is easiest solved by using a secure hash (SHA-256)
> which effectively restores the security properties of the finished
> calculation. This is best done by s/FNV/SHA-256. No agility.

+1

This also has the effect of "binding the cached objects' data into the
handshake" as Nico had wanted, without modifications to the calculation
of the Finished messages.

- Marsh

From prvs=27533dd80c=uri@ll.mit.edu  Mon May 17 08:37:01 2010
Return-Path: <prvs=27533dd80c=uri@ll.mit.edu>
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 7FE6D28C180 for <tls@core3.amsl.com>; Mon, 17 May 2010 08:37:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.819
X-Spam-Level: 
X-Spam-Status: No, score=-4.819 tagged_above=-999 required=5 tests=[AWL=-0.821, BAYES_50=0.001, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 K-FAoXUkmQKF for <tls@core3.amsl.com>; Mon, 17 May 2010 08:37:00 -0700 (PDT)
Received: from mx1.ll.mit.edu (MX1.LL.MIT.EDU [129.55.12.45]) by core3.amsl.com (Postfix) with ESMTP id 57C673A6D30 for <tls@ietf.org>; Mon, 17 May 2010 08:33:50 -0700 (PDT)
Received: from LLE2K7-HUB02.mitll.ad.local (LLE2K7-HUB02.mitll.ad.local) by mx1.ll.mit.edu (unknown) with ESMTP id o4HFXWN9031401; Mon, 17 May 2010 11:33:34 -0400
From: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
To: Stefan Santesson <stefan@aaa-sec.com>, "tls@ietf.org" <tls@ietf.org>
Date: Mon, 17 May 2010 11:33:25 -0400
Thread-Topic: [TLS] Wrapping up cached info
Thread-Index: Acr1yPqXX9nCr/2ZD02C5ih5zz1aVAADU+YL
Message-ID: <C816DA05.66DF%uri@ll.mit.edu>
In-Reply-To: <C8171810.ADE4%stefan@aaa-sec.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-Entourage/13.4.0.100208
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-05-17_02:2010-02-06, 2010-05-17, 2010-05-17 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1005170091
Subject: Re: [TLS] Wrapping up cached info
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: Mon, 17 May 2010 15:37:01 -0000

Stefan,

There is one problem.

If it turns out that you need SHA256 for security reasons - then you'll als=
o
need algorithm agility because nobody can guarantee that SHA256 will hold
(remember - MD4, MD5, SHA1...? :-).

Also, do you care how many bits the hash outputs, and how many of those bit=
s
you use?=20

Let's provide the analysis and hope that it shows no security issues here.


On 5/17/10 09:58 , "Stefan Santesson" <stefan@aaa-sec.com> wrote:

> I would like to wrap up the discussion about cached info, if possible.
>=20
> I have to admit that I'm stuck as editor. I have a draft that I think is
> done with a possible amendment to the security considerations and some
> additional informational references to FNV.
>=20
> I don't think the discussion has shown that the security assumptions are
> wrong, I.e. That any alteration of cached data in the sense that the serv=
er
> and the client are in disagreement of what the cached data is, will lead =
to
> a handshake failure.
>=20
> Threats are therefore reduced to inconveniences upon handshake failures (=
as
> far as discussion has showed.
>=20
> However, there is still a possible alteration of the security properties =
of
> the finished calculation. That is, it is possible upon a FNV collision to
> disagree on the cached data without failing the finished calculation.
>=20
> I can't see any practical exploit of this fact. If this is considered a
> blocking problem, then it is easiest solved by using a secure hash (SHA-2=
56)
> which effectively restores the security properties of the finished
> calculation. This is best done by s/FNV/SHA-256. No agility.
>=20
> I will not lead an effort to specify a variant of this protocol where the
> server provides the identifiers, either as any random identifier or in th=
e
> form of a URI. If that is the desire of the WG, I will be happy to hand o=
ver
> editorship to anyone, assigned by the chairs, who wants to take over.
>=20
> I request WG chair guidance on how to proceed, if at all with this docume=
nt.
>=20
> /Stefan
>=20
>=20
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls


From Nicolas.Williams@oracle.com  Mon May 17 08:38:08 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 6073728C18F for <tls@core3.amsl.com>; Mon, 17 May 2010 08:38:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.541
X-Spam-Level: 
X-Spam-Status: No, score=-4.541 tagged_above=-999 required=5 tests=[AWL=0.568,  BAYES_05=-1.11, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 StthnCy4lQ-8 for <tls@core3.amsl.com>; Mon, 17 May 2010 08:38:07 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id F009B28C198 for <tls@ietf.org>; Mon, 17 May 2010 08:35:08 -0700 (PDT)
Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4HFYuAO003448 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 17 May 2010 15:34:58 GMT
Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4HBBv4l015305; Mon, 17 May 2010 15:34:55 GMT
Received: from abhmt005.oracle.com by acsmt355.oracle.com with ESMTP id 271081101274110488; Mon, 17 May 2010 08:34:48 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 17 May 2010 08:34:47 -0700
Date: Mon, 17 May 2010 10:34:40 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Stefan Santesson <stefan@aaa-sec.com>
Message-ID: <20100517153440.GT9429@oracle.com>
References: <Pine.LNX.4.44.1005132018460.13071-100000@citation2.av8.net> <C8171810.ADE4%stefan@aaa-sec.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <C8171810.ADE4%stefan@aaa-sec.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: rcsinet15.oracle.com [148.87.113.117]
X-CT-RefId: str=0001.0A090201.4BF16222.007B:SCFMA4539811,ss=1,fgs=0
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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: Mon, 17 May 2010 15:38:08 -0000

On Mon, May 17, 2010 at 03:58:08PM +0200, Stefan Santesson wrote:
> I will not lead an effort to specify a variant of this protocol where the
> server provides the identifiers, either as any random identifier or in the
> form of a URI. If that is the desire of the WG, I will be happy to hand over
> editorship to anyone, assigned by the chairs, who wants to take over.

I don't care how the cached objects are identified.

It's not clear to me either how collisions in the cached object
checksums can be exploited, but it is clear that the security analysis
of the protocol is much simpler if you bind the cached objects into the
handshake.  Which is why I strongly encourage you to add such a binding
to the protocol.  I may well be alone in this, in which case I'd settle
for a requirement that one be able to disable caching in all
implementations.

If the WG agrees to proceed without adding such a binding, then I'd also
like to see a detailed analysis of possible attacks and why they either
cannot happen or are of no value to the attacker.

Nico
-- 

From stefan@aaa-sec.com  Mon May 17 08:38:26 2010
Return-Path: <stefan@aaa-sec.com>
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 925D528C1AE for <tls@core3.amsl.com>; Mon, 17 May 2010 08:38:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.673
X-Spam-Level: 
X-Spam-Status: No, score=-2.673 tagged_above=-999 required=5 tests=[AWL=0.577,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 auXMTyjfH53z for <tls@core3.amsl.com>; Mon, 17 May 2010 08:38:25 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id 3DDC03A6CBE for <tls@ietf.org>; Mon, 17 May 2010 08:35:34 -0700 (PDT)
Received: from s128.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 5E1CB2941B4 for <tls@ietf.org>; Mon, 17 May 2010 17:35:31 +0200 (CEST)
Received: (qmail 47195 invoked from network); 17 May 2010 15:35:24 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.8]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s128.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <Nicolas.Williams@oracle.com>; 17 May 2010 15:35:24 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Mon, 17 May 2010 17:35:24 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: Nicolas Williams <Nicolas.Williams@oracle.com>, Dean Anderson <dean@av8.com>
Message-ID: <C8172EDC.ADF2%stefan@aaa-sec.com>
Thread-Topic: [TLS] Justification
Thread-Index: Acr11pEe8y2G4k1nYUOOE1sHXlztZA==
In-Reply-To: <20100517152011.GR9429@oracle.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: Simon Josefsson <simon@josefsson.org>, "Kemp, David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Subject: Re: [TLS] Justification
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: Mon, 17 May 2010 15:38:26 -0000

On 10-05-17 5:20 PM, "Nicolas Williams" <Nicolas.Williams@oracle.com> wrote:

> The key problem with this
> extension is that the cached objects aren't bound into the handshake.
> IMO regardless of how the cached object IDs are obtained, whether by
> SHA-1 hashing, FNV-1a hashing, server-assigned IDs, or URIs, the object
> data must be bound into the handshake.

How can the cached data NOT be bound to the handshake if they are hashed
with a secure hash which in turn are included in the finished calculation?




From jsalowey@cisco.com  Mon May 17 08:44:47 2010
Return-Path: <jsalowey@cisco.com>
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 ECDB83A6D56 for <tls@core3.amsl.com>; Mon, 17 May 2010 08:44:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.174
X-Spam-Level: 
X-Spam-Status: No, score=-9.174 tagged_above=-999 required=5 tests=[AWL=-0.434, BAYES_20=-0.74, RCVD_IN_DNSWL_HI=-8]
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 3hFmsTteDrMP for <tls@core3.amsl.com>; Mon, 17 May 2010 08:44:46 -0700 (PDT)
Received: from sj-iport-2.cisco.com (sj-iport-2.cisco.com [171.71.176.71]) by core3.amsl.com (Postfix) with ESMTP id 9B34528C170 for <tls@ietf.org>; Mon, 17 May 2010 08:42:43 -0700 (PDT)
Authentication-Results: sj-iport-2.cisco.com; dkim=neutral (message not signed) header.i=none
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvsEAB4B8UurR7Ht/2dsb2JhbACdc3GiX5lChRAEg0A
X-IronPort-AV: E=Sophos;i="4.53,247,1272844800"; d="scan'208";a="256288412"
Received: from sj-core-1.cisco.com ([171.71.177.237]) by sj-iport-2.cisco.com with ESMTP; 17 May 2010 15:42:35 +0000
Received: from xbh-sjc-231.amer.cisco.com (xbh-sjc-231.cisco.com [128.107.191.100]) by sj-core-1.cisco.com (8.13.8/8.14.3) with ESMTP id o4HFgZQC029016; Mon, 17 May 2010 15:42:35 GMT
Received: from xmb-sjc-225.amer.cisco.com ([128.107.191.38]) by xbh-sjc-231.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.3959);  Mon, 17 May 2010 08:42:25 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Mon, 17 May 2010 08:42:24 -0700
Message-ID: <AC1CFD94F59A264488DC2BEC3E890DE50A67C2D6@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <201005171321.o4HDLgmX018711@fs4113.wdf.sap.corp>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
Thread-Index: Acr1w+tAAbWc1QMHQzGum/6F/eAlEAADi4Hg
References: <AC1CFD94F59A264488DC2BEC3E890DE50A67C235@xmb-sjc-225.amer.cisco.com> from "Joseph Salowey" at May 16, 10 09:43:08 pm <201005171321.o4HDLgmX018711@fs4113.wdf.sap.corp>
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: <mrex@sap.com>
X-OriginalArrivalTime: 17 May 2010 15:42:25.0749 (UTC) FILETIME=[8C809050:01CAF5D7]
Cc: tls@ietf.org
Subject: Re: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
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: Mon, 17 May 2010 15:44:48 -0000

I do not think the behavior that Mike describes is strictly compliant
with RFC 4366 as it states that the SNI should be ignored when resuming
a session. From an interop point of view I think it is important to
clarify that the server does not use the SNI extension in the look-up
the session ID in the session cache.  If the session is resumed and
client presents an SNI extension in the resumption attempt it should get
the same result as if it did not.  The client should not attempt to use
a different SNI in the resumption as it is ambiguous. =20

How about the following text:

"When the server resumes a session, the server_name extension is ignored
and not used in the lookup of the session in the session cache.  If the
session is resumed, the server will always use the server name
associated with the cached session. The server MUST NOT include a
server_name extension in the server hello. When resuming a session the
client MUST NOT use a different server name than the one used in
establishing the original session.  The client MAY omit the server_name
extension during session resumption. "=20

Joe

> -----Original Message-----
> From: Martin Rex [mailto:mrex@sap.com]
> Sent: Monday, May 17, 2010 6:22 AM
> To: Joseph Salowey (jsalowey)
> Cc: mike-list@pobox.com; d3e3e3@gmail.com; tls@ietf.org
> Subject: Re: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
>=20
> Joseph Salowey wrote:
> >
> > This clarification is consistent with existing text in the draft and
in
> > RFC 4366.
>=20
> The way it is written appears somewhat misleading, and the resulting
> change to 4366 indicates that we need to come up with a better
> description.
>=20
> >
> > " Note also that all the extensions defined in this section are
> >    relevant only when a session is initiated. ...
> >
> > -  If, on the other hand, the older session is resumed, then the
> >       server MUST ignore the extensions and send a server hello
> >       containing none of the extension types.  In this case, the
> >       functionality of these extensions negotiated during the
original
> >       session initiation is applied to the resumed session."
> >
> > Michael D'Errico wrote:
> > >
> > >    Add to section 3 before the last paragraph to clarify session
> > >    resumption behavior:
> > >
> > >    "When the server resumes a session, the server_name extension
> > >    is ignored."
> > >
> > > I have not yet done it, but I plan to have my session resumption
> > > logic look at the SNI to see if it matches the name used for the
> > > cached session.  If they don't match, a full handshake will be
> > > completed.  We already have to verify that TLS version, cipher
> > > suite, and compression method are compatible with the hello
> > > parameters.  I don't see why the SNI is any less important.
>=20
>=20
> Your intended behaviour sounds perfectly fine and sensible.
>=20
> >
> > > Does the above text suggest that my plan would be non-compliant?
>=20
>=20
> No.  Your intention is to determine whether a suitable cached session
> exist for resumption.  Once you have determined that, you resume
without
> SNI affecting the characteristics of the resumed session.
>=20
>=20
> But your confusion suggests that this should probably be rephrased
> in order clarify what is meant.
>=20
>=20
> There are two entirely seperate issues that ought to be distinguished.
>=20
> (1) criteria which the server considers in his decision whether to
>     resume a TLS session from the cache by performing an abbreviated
>     TLS handshake for the TLS session ID proposed by the TLS client in
>     the ClientHello handshake message.
>=20
> (2) effects of parameters in ClientHello (regular or through
extensions)
>     on the characteristics of the established TLS session.
>=20
>=20
> What Joe an the new text says is only about (2).  When the server
decides
> to resumt a TLS session from cache, then it must be resumed as-is,
none
> of the parameters or extensions in the ClientHello is allowed to
modify
> the characteristics of the resumed TLS session.
>=20
>=20
> (1) is a totally different beast.  Whether or not the server resumes a
> TLS session proposed by the TLS client is completely at the
> discretion of the server.  IMHO, it makes perfect sense for the
> server to check whether the attributes that the client requests
> through all those parameters in regular ClientHello plus TLS extension
> actually match the characteristics of proposed cached session,
> and to go through a full TLS handshake if they don't.
> A server can also expire a session from his session cache whenever
> it sees a need to do so.
>=20
>=20
> In some implementations, the TLS session cache may be shared among
> several processes on a host, not just a single application that tries
> to offer virtual hosting with TLS through the server name indication
(SNI)
> TLS extension.  That correct client implementations shouldn't be
> proposing to resume TLS sessions across "virtual hosts" boundaries is
> not relevant for the server's decision.  The server should not try to
> make any assumptions on client desire or behaviour, but instead act
> deterministically based on the parameters in the supplied ClientHello
> handshake message.
>=20
>=20
>=20
> -Martin

From Nicolas.Williams@oracle.com  Mon May 17 08:46:57 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 8E1803A6D4C for <tls@core3.amsl.com>; Mon, 17 May 2010 08:46:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.994
X-Spam-Level: 
X-Spam-Status: No, score=-3.994 tagged_above=-999 required=5 tests=[AWL=0.004,  BAYES_50=0.001, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 enHafB2oktKQ for <tls@core3.amsl.com>; Mon, 17 May 2010 08:46:56 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id DE49C3A6D4D for <tls@ietf.org>; Mon, 17 May 2010 08:44:31 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4HFiLmq027093 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 17 May 2010 15:44:22 GMT
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4HEv8ei009425; Mon, 17 May 2010 15:44:17 GMT
Received: from abhmt017.oracle.com by acsmt355.oracle.com with ESMTP id 247215481274111002; Mon, 17 May 2010 08:43:22 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 17 May 2010 08:43:19 -0700
Date: Mon, 17 May 2010 10:43:15 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Marsh Ray <marsh@extendedsubset.com>
Message-ID: <20100517154314.GU9429@oracle.com>
References: <004901caf1ea$783e23a0$68ba6ae0$@briansmith.org> <p2xa84d7bc61005120858v2ce68cf7xe6ddf559faf4d4b0@mail.gmail.com> <4BEAE4CF.7070205@pobox.com> <p2ga84d7bc61005121033n169fc0fdyb2bc94b504f3fc2c@mail.gmail.com> <20100512180814.GI9429@oracle.com> <4BEAF1F8.4030004@pobox.com> <20100512182827.GJ9429@oracle.com> <4BEAF52B.9090801@pobox.com> <20100512184257.GL9429@oracle.com> <4BEB0598.9070209@extendedsubset.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4BEB0598.9070209@extendedsubset.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090207.4BF16457.00A2:SCFMA922111,ss=1,fgs=0
Cc: tls@ietf.org
Subject: Re: [TLS] Justification
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: Mon, 17 May 2010 15:46:57 -0000

On Wed, May 12, 2010 at 02:46:32PM -0500, Marsh Ray wrote:
> On 5/12/2010 1:42 PM, Nicolas Williams wrote:
> > Paul Hoffman proposes an extension to add inputs to the Finished message
> > computation.  There's no objection yet to Paul's proposal on the grounds
> > you state.
> 
> I'm not sure the discussion got that far, so it's not evidence of much.

Fair enough.

> > In any case, one of the problems with the caching extension as proposed
> > result from not binding the cached objects to the Finished message,
> > which at the very least complicates the security analysis of the
> > protocol, and possibly compromises it altogether.  We MUST NOT make the
> > same mistakes we've made before.
> 
> Agreed, but we should be just as careful not to make new ones.

How could binding the cached objects into the handshake be a new mistake
given that we bind them in now?

> Sorry if you explained this earlier, but how would the "use URLs"
> approach be different than an arbitrary server-chosen identifier?

URIs would be useable across many servers, as opposed to server-assigned
IDs.  But this is not important.

I don't care how the objects are named.  I care only that they be bound
into the handshake.

(Earlier I had thought that we could avoid the SHA-1 vs. FNV-1a issue by
having server-assigned object IDs, however, that was incorrect.  It's
not how we name the objects but how we agree that two peers have the
same cached/cacheable objects that matters.  I'm sorry I even mentioned
server-assigned object IDs.  If I'd thought about it longer I'd have
understood the real problem earlier and avoided this little detour.)

Nico
-- 

From Nicolas.Williams@oracle.com  Mon May 17 08:53:49 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 98FE83A698B for <tls@core3.amsl.com>; Mon, 17 May 2010 08:53:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.294
X-Spam-Level: 
X-Spam-Status: No, score=-5.294 tagged_above=-999 required=5 tests=[AWL=1.304,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 b3PW6gnlxW6K for <tls@core3.amsl.com>; Mon, 17 May 2010 08:53:48 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 7F7283A6A8D for <tls@ietf.org>; Mon, 17 May 2010 08:52:09 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4HFpj41018506 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 17 May 2010 15:51:49 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4HF8Hd2022296; Mon, 17 May 2010 15:51:44 GMT
Received: from abhmt002.oracle.com by acsmt354.oracle.com with ESMTP id 247244641274111497; Mon, 17 May 2010 08:51:37 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 17 May 2010 08:51:35 -0700
Date: Mon, 17 May 2010 10:51:24 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Stefan Santesson <stefan@aaa-sec.com>
Message-ID: <20100517155122.GW9429@oracle.com>
References: <20100517152011.GR9429@oracle.com> <C8172EDC.ADF2%stefan@aaa-sec.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <C8172EDC.ADF2%stefan@aaa-sec.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090202.4BF16616.00FB:SCFMA922111,ss=1,fgs=0
Cc: Simon Josefsson <simon@josefsson.org>, "Kemp, David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Subject: Re: [TLS] Justification
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: Mon, 17 May 2010 15:53:49 -0000

On Mon, May 17, 2010 at 05:35:24PM +0200, Stefan Santesson wrote:
> On 10-05-17 5:20 PM, "Nicolas Williams" <Nicolas.Williams@oracle.com> wrote:
> > The key problem with this
> > extension is that the cached objects aren't bound into the handshake.
> > IMO regardless of how the cached object IDs are obtained, whether by
> > SHA-1 hashing, FNV-1a hashing, server-assigned IDs, or URIs, the object
> > data must be bound into the handshake.
> 
> How can the cached data NOT be bound to the handshake if they are hashed
> with a secure hash which in turn are included in the finished calculation?

They are certainly NOT bound if we use FNV-1a, which is the proposal on
the table.

Plus, if we agree that we need this binding and we want to keep the
current proposal more or less as-is, then we'll need hash agility, which
complicates the protocol.

I'd rather we do something along these lines instead:

 - use FNV-1a (or whatever) to _name_ the objects by checksum;

 - locally hash all the objects' data using the (rather, a) hash
   function used by TLS's Finished message computation and add this hash
   as an input to the Finished message computation:

    - this could be done without modifying the Finished message
      computation by adding a message bearing the hash of all cached
      objects' data to be sent before the first Finished message (then,
      by virtue of being a handshake message, this new message will be
      bound into the Finished messages).

On collision the handshake then fails.  The client should cache
handshake failure information so that on retry it can forgo caching and
then detect collisions.

Nico
-- 

From marsh@extendedsubset.com  Mon May 17 09:03:55 2010
Return-Path: <marsh@extendedsubset.com>
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 4B3343A6D5D for <tls@core3.amsl.com>; Mon, 17 May 2010 09:03:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.463
X-Spam-Level: 
X-Spam-Status: No, score=-0.463 tagged_above=-999 required=5 tests=[AWL=-0.464, BAYES_50=0.001]
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 5AJe8lMi9lOu for <tls@core3.amsl.com>; Mon, 17 May 2010 09:03:54 -0700 (PDT)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id 8FCBB3A6D0C for <tls@ietf.org>; Mon, 17 May 2010 09:02:53 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OE2mD-000MR1-97; Mon, 17 May 2010 16:02:45 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 3E3DD6048; Mon, 17 May 2010 16:02:43 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1/+m32wr1XePpLyZsskJl2UiFf8nLEbnGw=
Message-ID: <4BF168A3.40409@extendedsubset.com>
Date: Mon, 17 May 2010 11:02:43 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
References: <C816DA05.66DF%uri@ll.mit.edu>
In-Reply-To: <C816DA05.66DF%uri@ll.mit.edu>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Wrapping up cached info
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: Mon, 17 May 2010 16:03:55 -0000

On 5/17/2010 10:33 AM, Blumenthal, Uri - 0668 - MITLL wrote:
> Stefan,
> 
> There is one problem.
> 
> If it turns out that you need SHA256 for security reasons - then you'll also
> need algorithm agility because nobody can guarantee that SHA256 will hold
> (remember - MD4, MD5, SHA1...? :-).
>

At some point, you have to trust something. After all, any capability
negotiated in the handshake is only as good as the hash which covers it.
TLS 1.2 seems to trust hmac_SHA256.

If, worst-case, SHA-256 turns out to be completely broken, the world
could switch to a stronger scheme for generating those 256 bits
relatively easily.

> Also, do you care how many bits the hash outputs, and how many of
> those bits you use?

I think that's probably the more important thing to fix in the spec.
It's probably a bit easier (should the unfortunate need arise) for
existing implementations to use a different hash of the same width than
it is to change the width of protocol elements.

> Let's provide the analysis and hope that it shows no security issues here.

We don't have to use SHA-256, but it sounds to me like the easiest
choice to explain (and thus get agreement on).

A quick glance at Wikipedia
http://en.wikipedia.org/wiki/Comparison_of_cryptographic_hash_functions
lists the only attack against SHA-256 to be against an egregiously
weakened (24 instead of 64 rounds) variant.

- Marsh

From jsalowey@cisco.com  Mon May 17 09:34:30 2010
Return-Path: <jsalowey@cisco.com>
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 36B993A6AAB for <tls@core3.amsl.com>; Mon, 17 May 2010 09:34:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.33
X-Spam-Level: 
X-Spam-Status: No, score=-9.33 tagged_above=-999 required=5 tests=[AWL=-0.220,  BAYES_05=-1.11, RCVD_IN_DNSWL_HI=-8]
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 FCjctfIe4N6t for <tls@core3.amsl.com>; Mon, 17 May 2010 09:34:28 -0700 (PDT)
Received: from sj-iport-5.cisco.com (sj-iport-5.cisco.com [171.68.10.87]) by core3.amsl.com (Postfix) with ESMTP id DC15428C18E for <tls@ietf.org>; Mon, 17 May 2010 09:29:53 -0700 (PDT)
Authentication-Results: sj-iport-5.cisco.com; dkim=neutral (message not signed) header.i=none
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvsEACIM8UurR7Ht/2dsb2JhbACdeXGiZZlLglmCNwSDQIt8
X-IronPort-AV: E=Sophos;i="4.53,248,1272844800"; d="scan'208";a="198474086"
Received: from sj-core-1.cisco.com ([171.71.177.237]) by sj-iport-5.cisco.com with ESMTP; 17 May 2010 16:29:46 +0000
Received: from xbh-sjc-231.amer.cisco.com (xbh-sjc-231.cisco.com [128.107.191.100]) by sj-core-1.cisco.com (8.13.8/8.14.3) with ESMTP id o4HGTkPf018926; Mon, 17 May 2010 16:29:46 GMT
Received: from xmb-sjc-225.amer.cisco.com ([128.107.191.38]) by xbh-sjc-231.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.3959);  Mon, 17 May 2010 09:29:46 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Mon, 17 May 2010 09:29:44 -0700
Message-ID: <AC1CFD94F59A264488DC2BEC3E890DE50A67C326@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <4BF168A3.40409@extendedsubset.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] Wrapping up cached info
Thread-Index: Acr12oyVh6LZskrwQJqy0Mb6pFK61wAAq/DA
References: <C816DA05.66DF%uri@ll.mit.edu> <4BF168A3.40409@extendedsubset.com>
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: "Marsh Ray" <marsh@extendedsubset.com>, "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
X-OriginalArrivalTime: 17 May 2010 16:29:46.0059 (UTC) FILETIME=[297579B0:01CAF5DE]
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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: Mon, 17 May 2010 16:34:30 -0000

I agree with Uri, that if you determine you need SHA-256 then you should
plan for hash agility.  TLS 1.2 plans for hash agility. =20

What about Nico's proposal where a checksum is used to identify the
cached data and the actual handshake contains the actual data hashed
with the algorithm used in the PRF negotiated with the cipher suite?=20

This way we don't have to introduce hash agility into the extension, but
we have cryptographic hash agility where it matters in the Finished
computation.  Does it solve the problem? =20

Joe

> -----Original Message-----
> From: tls-bounces@ietf.org [mailto:tls-bounces@ietf.org] On Behalf Of
> Marsh Ray
> Sent: Monday, May 17, 2010 9:03 AM
> To: Blumenthal, Uri - 0668 - MITLL
> Cc: tls@ietf.org
> Subject: Re: [TLS] Wrapping up cached info
>=20
> On 5/17/2010 10:33 AM, Blumenthal, Uri - 0668 - MITLL wrote:
> > Stefan,
> >
> > There is one problem.
> >
> > If it turns out that you need SHA256 for security reasons - then
you'll
> also
> > need algorithm agility because nobody can guarantee that SHA256 will
> hold
> > (remember - MD4, MD5, SHA1...? :-).
> >
>=20
> At some point, you have to trust something. After all, any capability
> negotiated in the handshake is only as good as the hash which covers
it.
> TLS 1.2 seems to trust hmac_SHA256.
>=20
> If, worst-case, SHA-256 turns out to be completely broken, the world
> could switch to a stronger scheme for generating those 256 bits
> relatively easily.
>=20
> > Also, do you care how many bits the hash outputs, and how many of
> > those bits you use?
>=20
> I think that's probably the more important thing to fix in the spec.
> It's probably a bit easier (should the unfortunate need arise) for
> existing implementations to use a different hash of the same width
than
> it is to change the width of protocol elements.
>=20
> > Let's provide the analysis and hope that it shows no security issues
> here.
>=20
> We don't have to use SHA-256, but it sounds to me like the easiest
> choice to explain (and thus get agreement on).
>=20
> A quick glance at Wikipedia
>
http://en.wikipedia.org/wiki/Comparison_of_cryptographic_hash_functions
> lists the only attack against SHA-256 to be against an egregiously
> weakened (24 instead of 64 rounds) variant.
>=20
> - Marsh
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls

From mike-list@pobox.com  Mon May 17 09:40:21 2010
Return-Path: <mike-list@pobox.com>
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 962423A6A6E for <tls@core3.amsl.com>; Mon, 17 May 2010 09:40:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.729
X-Spam-Level: 
X-Spam-Status: No, score=-0.729 tagged_above=-999 required=5 tests=[AWL=-0.730, BAYES_50=0.001]
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 3mC9B9mzSX36 for <tls@core3.amsl.com>; Mon, 17 May 2010 09:40:20 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 700C83A6AC8 for <tls@ietf.org>; Mon, 17 May 2010 09:38:41 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 19636B3B13; Mon, 17 May 2010 12:38:33 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=1Cpk+g4QPxHh WgcTxeQQ/Wu3a38=; b=QWeSbQn/csHnEpBOqlQJZrl9F91AcUSmu2MFadgbzHzX HEvK4YBeFl7etGHonUEoDB20cWvxrlTHjPTB7OfCHLSvxVsVer3SHzPdls3jj3HG c1Ua2Log1gi2tLBQXUjqxIlWex+TXeOdWEk8wKv6u+AhNUHUDJIFdp4LVHi2ra4=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=IPUq7w Fw7pSQ8H3iZ/N5NSY5W/Yg0QUYpIhD9FdysTI0+OrmWjtIH3Cxea6GIQQHA8SCq7 m3FtpXkdLTsl/XsC51mdmZhhfRtRCsh/eWnYsZJ5LCqdY4OsY11KX0IfCMDGW2Td F36NItFBN9guH+eDgZwEJw4QilWPL/jjDcWBA=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id CADFBB3B11; Mon, 17 May 2010 12:38:29 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id DFD04B3B0D; Mon, 17 May 2010 12:38:23 -0400 (EDT)
Message-ID: <4BF170FE.9090506@pobox.com>
Date: Mon, 17 May 2010 09:38:22 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A67C235@xmb-sjc-225.amer.cisco.com> from "Joseph Salowey" at May 16, 10 09:43:08 pm <201005171321.o4HDLgmX018711@fs4113.wdf.sap.corp> <AC1CFD94F59A264488DC2BEC3E890DE50A67C2D6@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A67C2D6@xmb-sjc-225.amer.cisco.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 9FDDB4B8-61D2-11DF-A4EA-D033EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
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: Mon, 17 May 2010 16:40:21 -0000

Joseph Salowey (jsalowey) wrote:
> I do not think the behavior that Mike describes is strictly compliant
> with RFC 4366 as it states that the SNI should be ignored when resuming
> a session.

Right.  And I think that statement is a problem which should be
clarified.

> From an interop point of view I think it is important to
> clarify that the server does not use the SNI extension in the look-up
> the session ID in the session cache.  If the session is resumed and
> client presents an SNI extension in the resumption attempt it should get
> the same result as if it did not.  The client should not attempt to use
> a different SNI in the resumption as it is ambiguous.  

I agree that the client should not attempt to use a different SNI when
resuming a session.  In fact I'd say it MUST NOT.

But when a server is presented with an SNI and a cached session, why
wouldn't the server be allowed to check for consistency?  In fact, by
restricting a server to not be allowed to check, you are compromising
the security of the domain listed in the SNI.

> How about the following text:
> 
> "When the server resumes a session, the server_name extension is ignored
> and not used in the lookup of the session in the session cache.  If the
> session is resumed, the server will always use the server name
> associated with the cached session. The server MUST NOT include a
> server_name extension in the server hello. When resuming a session the
> client MUST NOT use a different server name than the one used in
> establishing the original session.  The client MAY omit the server_name
> extension during session resumption. " 

I think part of the problem is that you are viewing SNI as an optional
feature useful only for convenience.  In my software it is critical to
the entire operation.  You can set up any number of virtual servers,
each of which has its own collection of certificate chains and keys,
options (such as whether to allow renegotiation, whether to request a
client certificate, etc.), and a list of domain names that map to the
virtual server.

When the SNI is received, it is used to figure out which virtual server
the client wants to connect to.  Once the particular virtual server is
chosen, all of the parameters including list of allowed cipher suites
and other options are installed.

So when a client offers to resume a session for one of my virtual
servers, but has also included an SNI for a different virtual server,
it is clear that it's either a mistake or possibly even malicious.

In my code, I've decided that the SNI is more important, so the session
is not resumed even if it is still in the session cache.  Thus a full
handshake occurs using the SNI from the client hello, and the client
ends up talking to the correct virtual server.

Mike



> Joe
> 
>> -----Original Message-----
>> From: Martin Rex [mailto:mrex@sap.com]
>> Sent: Monday, May 17, 2010 6:22 AM
>> To: Joseph Salowey (jsalowey)
>> Cc: mike-list@pobox.com; d3e3e3@gmail.com; tls@ietf.org
>> Subject: Re: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
>>
>> Joseph Salowey wrote:
>>> This clarification is consistent with existing text in the draft and
> in
>>> RFC 4366.
>> The way it is written appears somewhat misleading, and the resulting
>> change to 4366 indicates that we need to come up with a better
>> description.
>>
>>> " Note also that all the extensions defined in this section are
>>>    relevant only when a session is initiated. ...
>>>
>>> -  If, on the other hand, the older session is resumed, then the
>>>       server MUST ignore the extensions and send a server hello
>>>       containing none of the extension types.  In this case, the
>>>       functionality of these extensions negotiated during the
> original
>>>       session initiation is applied to the resumed session."
>>>
>>> Michael D'Errico wrote:
>>>>    Add to section 3 before the last paragraph to clarify session
>>>>    resumption behavior:
>>>>
>>>>    "When the server resumes a session, the server_name extension
>>>>    is ignored."
>>>>
>>>> I have not yet done it, but I plan to have my session resumption
>>>> logic look at the SNI to see if it matches the name used for the
>>>> cached session.  If they don't match, a full handshake will be
>>>> completed.  We already have to verify that TLS version, cipher
>>>> suite, and compression method are compatible with the hello
>>>> parameters.  I don't see why the SNI is any less important.
>>
>> Your intended behaviour sounds perfectly fine and sensible.
>>
>>>> Does the above text suggest that my plan would be non-compliant?
>>
>> No.  Your intention is to determine whether a suitable cached session
>> exist for resumption.  Once you have determined that, you resume
> without
>> SNI affecting the characteristics of the resumed session.
>>
>>
>> But your confusion suggests that this should probably be rephrased
>> in order clarify what is meant.
>>
>>
>> There are two entirely seperate issues that ought to be distinguished.
>>
>> (1) criteria which the server considers in his decision whether to
>>     resume a TLS session from the cache by performing an abbreviated
>>     TLS handshake for the TLS session ID proposed by the TLS client in
>>     the ClientHello handshake message.
>>
>> (2) effects of parameters in ClientHello (regular or through
> extensions)
>>     on the characteristics of the established TLS session.
>>
>>
>> What Joe an the new text says is only about (2).  When the server
> decides
>> to resumt a TLS session from cache, then it must be resumed as-is,
> none
>> of the parameters or extensions in the ClientHello is allowed to
> modify
>> the characteristics of the resumed TLS session.
>>
>>
>> (1) is a totally different beast.  Whether or not the server resumes a
>> TLS session proposed by the TLS client is completely at the
>> discretion of the server.  IMHO, it makes perfect sense for the
>> server to check whether the attributes that the client requests
>> through all those parameters in regular ClientHello plus TLS extension
>> actually match the characteristics of proposed cached session,
>> and to go through a full TLS handshake if they don't.
>> A server can also expire a session from his session cache whenever
>> it sees a need to do so.
>>
>>
>> In some implementations, the TLS session cache may be shared among
>> several processes on a host, not just a single application that tries
>> to offer virtual hosting with TLS through the server name indication
> (SNI)
>> TLS extension.  That correct client implementations shouldn't be
>> proposing to resume TLS sessions across "virtual hosts" boundaries is
>> not relevant for the server's decision.  The server should not try to
>> make any assumptions on client desire or behaviour, but instead act
>> deterministically based on the parameters in the supplied ClientHello
>> handshake message.
>>
>>
>>
>> -Martin
> 

From jsalowey@cisco.com  Mon May 17 09:59:30 2010
Return-Path: <jsalowey@cisco.com>
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 94E223A68F5 for <tls@core3.amsl.com>; Mon, 17 May 2010 09:59:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.061
X-Spam-Level: 
X-Spam-Status: No, score=-10.061 tagged_above=-999 required=5 tests=[AWL=0.538, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
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 PZ5VbKrlxY1L for <tls@core3.amsl.com>; Mon, 17 May 2010 09:59:29 -0700 (PDT)
Received: from sj-iport-1.cisco.com (sj-iport-1.cisco.com [171.71.176.70]) by core3.amsl.com (Postfix) with ESMTP id 596D73A6783 for <tls@ietf.org>; Mon, 17 May 2010 09:59:29 -0700 (PDT)
Authentication-Results: sj-iport-1.cisco.com; dkim=neutral (message not signed) header.i=none
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvsEAHsS8UurR7H+/2dsb2JhbACdeXGidZlNhRAEg0A
X-IronPort-AV: E=Sophos;i="4.53,248,1272844800"; d="scan'208";a="326668211"
Received: from sj-core-2.cisco.com ([171.71.177.254]) by sj-iport-1.cisco.com with ESMTP; 17 May 2010 16:59:21 +0000
Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by sj-core-2.cisco.com (8.13.8/8.14.3) with ESMTP id o4HGxLS9023693; Mon, 17 May 2010 16:59:21 GMT
Received: from xmb-sjc-225.amer.cisco.com ([128.107.191.38]) by xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.3959);  Mon, 17 May 2010 09:59:21 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Mon, 17 May 2010 09:59:20 -0700
Message-ID: <AC1CFD94F59A264488DC2BEC3E890DE50A67C355@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <4BF170FE.9090506@pobox.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
Thread-Index: Acr134J5DfocT2MbTH+oFsAUkmcxcQAAWOKQ
References: <AC1CFD94F59A264488DC2BEC3E890DE50A67C235@xmb-sjc-225.amer.cisco.com> from "Joseph Salowey" at May 16, 10 09:43:08 pm <201005171321.o4HDLgmX018711@fs4113.wdf.sap.corp> <AC1CFD94F59A264488DC2BEC3E890DE50A67C2D6@xmb-sjc-225.amer.cisco.com> <4BF170FE.9090506@pobox.com>
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: "Michael D'Errico" <mike-list@pobox.com>
X-OriginalArrivalTime: 17 May 2010 16:59:21.0464 (UTC) FILETIME=[4BAEC780:01CAF5E2]
Cc: tls@ietf.org
Subject: Re: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
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: Mon, 17 May 2010 16:59:30 -0000

> -----Original Message-----
> From: Michael D'Errico [mailto:mike-list@pobox.com]
> Sent: Monday, May 17, 2010 9:38 AM
> To: Joseph Salowey (jsalowey)
> Cc: mrex@sap.com; d3e3e3@gmail.com; tls@ietf.org
> Subject: Re: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
>=20
> Joseph Salowey (jsalowey) wrote:
> > I do not think the behavior that Mike describes is strictly
compliant
> > with RFC 4366 as it states that the SNI should be ignored when
resuming
> > a session.
>=20
> Right.  And I think that statement is a problem which should be
> clarified.
>=20
> > From an interop point of view I think it is important to
> > clarify that the server does not use the SNI extension in the
look-up
> > the session ID in the session cache.  If the session is resumed and
> > client presents an SNI extension in the resumption attempt it should
get
> > the same result as if it did not.  The client should not attempt to
use
> > a different SNI in the resumption as it is ambiguous.
>=20
> I agree that the client should not attempt to use a different SNI when
> resuming a session.  In fact I'd say it MUST NOT.
>=20
> But when a server is presented with an SNI and a cached session, why
> wouldn't the server be allowed to check for consistency?  In fact, by
> restricting a server to not be allowed to check, you are compromising
> the security of the domain listed in the SNI.
>=20
[Joe]  If the server is always going to use the name that is cached then
the name is consistent.  It's not clear that the consistency check adds
anything.  The text below does restrict the client to not change the
SNI, so if you do the consistency check it should not cause interop
problems with compliant clients.   I think we could explicitly allow the
server to perform a consistency check, but that's not quite the same as
the ignore text that is in 4366.  =20

> > How about the following text:
> >
> > "When the server resumes a session, the server_name extension is
ignored
> > and not used in the lookup of the session in the session cache.  If
the
> > session is resumed, the server will always use the server name
> > associated with the cached session. The server MUST NOT include a
> > server_name extension in the server hello. When resuming a session
the
> > client MUST NOT use a different server name than the one used in
> > establishing the original session.  The client MAY omit the
server_name
> > extension during session resumption. "
>=20
> I think part of the problem is that you are viewing SNI as an optional
> feature useful only for convenience.  In my software it is critical to
> the entire operation.  You can set up any number of virtual servers,
> each of which has its own collection of certificate chains and keys,
> options (such as whether to allow renegotiation, whether to request a
> client certificate, etc.), and a list of domain names that map to the
> virtual server.
>=20
> When the SNI is received, it is used to figure out which virtual
server
> the client wants to connect to.  Once the particular virtual server is
> chosen, all of the parameters including list of allowed cipher suites
> and other options are installed.
>=20
> So when a client offers to resume a session for one of my virtual
> servers, but has also included an SNI for a different virtual server,
> it is clear that it's either a mistake or possibly even malicious.
>=20
> In my code, I've decided that the SNI is more important, so the
session
> is not resumed even if it is still in the session cache.  Thus a full
> handshake occurs using the SNI from the client hello, and the client
> ends up talking to the correct virtual server.
>=20
[Joe] From this description it sounds like we need to make a bigger
change to the section to accommodate this behavior.  What happens if the
client does not present an SNI during resumption?  Will this cause a
problem contacting the correct virtual server?  Is the SNI required by
your implementation during session resumption. =20


> Mike
>=20
>=20
>=20
> > Joe
> >
> >> -----Original Message-----
> >> From: Martin Rex [mailto:mrex@sap.com]
> >> Sent: Monday, May 17, 2010 6:22 AM
> >> To: Joseph Salowey (jsalowey)
> >> Cc: mike-list@pobox.com; d3e3e3@gmail.com; tls@ietf.org
> >> Subject: Re: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
> >>
> >> Joseph Salowey wrote:
> >>> This clarification is consistent with existing text in the draft
and
> > in
> >>> RFC 4366.
> >> The way it is written appears somewhat misleading, and the
resulting
> >> change to 4366 indicates that we need to come up with a better
> >> description.
> >>
> >>> " Note also that all the extensions defined in this section are
> >>>    relevant only when a session is initiated. ...
> >>>
> >>> -  If, on the other hand, the older session is resumed, then the
> >>>       server MUST ignore the extensions and send a server hello
> >>>       containing none of the extension types.  In this case, the
> >>>       functionality of these extensions negotiated during the
> > original
> >>>       session initiation is applied to the resumed session."
> >>>
> >>> Michael D'Errico wrote:
> >>>>    Add to section 3 before the last paragraph to clarify session
> >>>>    resumption behavior:
> >>>>
> >>>>    "When the server resumes a session, the server_name extension
> >>>>    is ignored."
> >>>>
> >>>> I have not yet done it, but I plan to have my session resumption
> >>>> logic look at the SNI to see if it matches the name used for the
> >>>> cached session.  If they don't match, a full handshake will be
> >>>> completed.  We already have to verify that TLS version, cipher
> >>>> suite, and compression method are compatible with the hello
> >>>> parameters.  I don't see why the SNI is any less important.
> >>
> >> Your intended behaviour sounds perfectly fine and sensible.
> >>
> >>>> Does the above text suggest that my plan would be non-compliant?
> >>
> >> No.  Your intention is to determine whether a suitable cached
session
> >> exist for resumption.  Once you have determined that, you resume
> > without
> >> SNI affecting the characteristics of the resumed session.
> >>
> >>
> >> But your confusion suggests that this should probably be rephrased
> >> in order clarify what is meant.
> >>
> >>
> >> There are two entirely seperate issues that ought to be
distinguished.
> >>
> >> (1) criteria which the server considers in his decision whether to
> >>     resume a TLS session from the cache by performing an
abbreviated
> >>     TLS handshake for the TLS session ID proposed by the TLS client
in
> >>     the ClientHello handshake message.
> >>
> >> (2) effects of parameters in ClientHello (regular or through
> > extensions)
> >>     on the characteristics of the established TLS session.
> >>
> >>
> >> What Joe an the new text says is only about (2).  When the server
> > decides
> >> to resumt a TLS session from cache, then it must be resumed as-is,
> > none
> >> of the parameters or extensions in the ClientHello is allowed to
> > modify
> >> the characteristics of the resumed TLS session.
> >>
> >>
> >> (1) is a totally different beast.  Whether or not the server
resumes a
> >> TLS session proposed by the TLS client is completely at the
> >> discretion of the server.  IMHO, it makes perfect sense for the
> >> server to check whether the attributes that the client requests
> >> through all those parameters in regular ClientHello plus TLS
extension
> >> actually match the characteristics of proposed cached session,
> >> and to go through a full TLS handshake if they don't.
> >> A server can also expire a session from his session cache whenever
> >> it sees a need to do so.
> >>
> >>
> >> In some implementations, the TLS session cache may be shared among
> >> several processes on a host, not just a single application that
tries
> >> to offer virtual hosting with TLS through the server name
indication
> > (SNI)
> >> TLS extension.  That correct client implementations shouldn't be
> >> proposing to resume TLS sessions across "virtual hosts" boundaries
is
> >> not relevant for the server's decision.  The server should not try
to
> >> make any assumptions on client desire or behaviour, but instead act
> >> deterministically based on the parameters in the supplied
ClientHello
> >> handshake message.
> >>
> >>
> >>
> >> -Martin
> >

From marsh@extendedsubset.com  Mon May 17 10:03:11 2010
Return-Path: <marsh@extendedsubset.com>
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 ED2713A6956 for <tls@core3.amsl.com>; Mon, 17 May 2010 10:03:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.447
X-Spam-Level: 
X-Spam-Status: No, score=-0.447 tagged_above=-999 required=5 tests=[AWL=-0.448, BAYES_50=0.001]
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 BKiZlPr6zNtU for <tls@core3.amsl.com>; Mon, 17 May 2010 10:03:11 -0700 (PDT)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id 7BC4C3A68AD for <tls@ietf.org>; Mon, 17 May 2010 10:03:06 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OE3iS-000O0g-H1; Mon, 17 May 2010 17:02:57 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id E5D426048; Mon, 17 May 2010 17:02:54 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX19ZK+I3tMfJoygFeo7TlvvRtyqrblLOnVc=
Message-ID: <4BF176BF.8020000@extendedsubset.com>
Date: Mon, 17 May 2010 12:02:55 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
References: <C816DA05.66DF%uri@ll.mit.edu> <4BF168A3.40409@extendedsubset.com> <AC1CFD94F59A264488DC2BEC3E890DE50A67C326@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A67C326@xmb-sjc-225.amer.cisco.com>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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: Mon, 17 May 2010 17:03:12 -0000

On 5/17/2010 11:29 AM, Joseph Salowey (jsalowey) wrote:
> I agree with Uri, that if you determine you need SHA-256 then you should
> plan for hash agility.  TLS 1.2 plans for hash agility.  
> 
> What about Nico's proposal where a checksum is used to identify the
> cached data and the actual handshake contains the actual data hashed
> with the algorithm used in the PRF negotiated with the cipher suite? 
> 
> This way we don't have to introduce hash agility into the extension, but
> we have cryptographic hash agility where it matters in the Finished
> computation.  Does it solve the problem?  

It could perhaps be made to solve the problem, but IMHO it would require
so much additional complexity (aka attack surface) that it wouldn't be
worth it.

While I don't like to reject anything out-of-hand, injecting data into
the calculation of the Finished messages raises a lot of concerns. The
way it currently works (the data interpreted logically is just the bytes
as seen in the hanshake records) has a certain elegant simplicity that
would be a shame to lose. The consequence of the loss of integrity in
the calculation of the Finished messages is pretty much a complete
compromise of the security.

For example, how will the injected data be wrapped? (It must be
delimited somehow or ambiguities may be possible). If they are replaced
as in-line substitutions will lengths of enclosing objects be fixed up?
If there are multiple substitutions, in what order will the replacements
be injected? For an attacker who can efficiently create checksum
collisions does it make any precomputed attacks easier? Will this
require changes in any commonly used APIs (PKCS#11, Schannel, etc)?

- Marsh

From Nicolas.Williams@oracle.com  Mon May 17 10:10:46 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 B4DC63A6A93 for <tls@core3.amsl.com>; Mon, 17 May 2010 10:10:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.105
X-Spam-Level: 
X-Spam-Status: No, score=-4.105 tagged_above=-999 required=5 tests=[AWL=0.079,  BAYES_40=-0.185, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 UeWP-sgZswCP for <tls@core3.amsl.com>; Mon, 17 May 2010 10:10:45 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 5635D3A6A27 for <tls@ietf.org>; Mon, 17 May 2010 10:10:38 -0700 (PDT)
Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4HHAKLd007794 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 17 May 2010 17:10:21 GMT
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4HGxN1K009814; Mon, 17 May 2010 17:10:13 GMT
Received: from abhmt005.oracle.com by acsmt355.oracle.com with ESMTP id 247487231274116097; Mon, 17 May 2010 10:08:17 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 17 May 2010 10:08:16 -0700
Date: Mon, 17 May 2010 12:08:10 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Marsh Ray <marsh@extendedsubset.com>
Message-ID: <20100517170810.GY9429@oracle.com>
References: <C816DA05.66DF%uri@ll.mit.edu> <4BF168A3.40409@extendedsubset.com> <AC1CFD94F59A264488DC2BEC3E890DE50A67C326@xmb-sjc-225.amer.cisco.com> <4BF176BF.8020000@extendedsubset.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4BF176BF.8020000@extendedsubset.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: rcsinet15.oracle.com [148.87.113.117]
X-CT-RefId: str=0001.0A090207.4BF17882.0068:SCFMA4539811,ss=1,fgs=0
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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: Mon, 17 May 2010 17:10:46 -0000

On Mon, May 17, 2010 at 12:02:55PM -0500, Marsh Ray wrote:
> On 5/17/2010 11:29 AM, Joseph Salowey (jsalowey) wrote:
> > I agree with Uri, that if you determine you need SHA-256 then you should
> > plan for hash agility.  TLS 1.2 plans for hash agility.  
> > 
> > What about Nico's proposal where a checksum is used to identify the
> > cached data and the actual handshake contains the actual data hashed
> > with the algorithm used in the PRF negotiated with the cipher suite? 
> > 
> > This way we don't have to introduce hash agility into the extension, but
> > we have cryptographic hash agility where it matters in the Finished
> > computation.  Does it solve the problem?  
> 
> It could perhaps be made to solve the problem, but IMHO it would require
> so much additional complexity (aka attack surface) that it wouldn't be
> worth it.

Really?  It'd be a single extra message consisting of the hash of all
the objects' data, concatenated in some canonical order (or maybe the
hash of the XOR of the object data hashes, to avoid having to define a
canonical order), that the first node to sent a Finished message would
have to send, and which the other node would have to check.  Where's all
that additional complexity, and how does it compare with the complexity
of the protocol's security analysis as it stands now?

> While I don't like to reject anything out-of-hand, injecting data into

But you just did.

> the calculation of the Finished messages raises a lot of concerns. The

You mis-read.  Re-read.


From mrex@sap.com  Mon May 17 10:12:08 2010
Return-Path: <mrex@sap.com>
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 E6FD33A6AA4 for <tls@core3.amsl.com>; Mon, 17 May 2010 10:12:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.734
X-Spam-Level: 
X-Spam-Status: No, score=-7.734 tagged_above=-999 required=5 tests=[AWL=-0.085, BAYES_50=0.001, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_HI=-8]
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 Eywa-+u4Pzn0 for <tls@core3.amsl.com>; Mon, 17 May 2010 10:12:06 -0700 (PDT)
Received: from smtpde03.sap-ag.de (smtpde03.sap-ag.de [155.56.68.140]) by core3.amsl.com (Postfix) with ESMTP id 5404D28C110 for <tls@ietf.org>; Mon, 17 May 2010 10:11:32 -0700 (PDT)
Received: from mail.sap.corp by smtpde03.sap-ag.de (26) with ESMTP id o4HHBIka017396 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 17 May 2010 19:11:18 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201005171711.o4HHBHNg001424@fs4113.wdf.sap.corp>
To: jsalowey@cisco.com (Joseph Salowey)
Date: Mon, 17 May 2010 19:11:17 +0200 (MEST)
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A67C2D6@xmb-sjc-225.amer.cisco.com> from "Joseph Salowey" at May 17, 10 08:42:24 am
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal08
X-SAP: out
Cc: tls@ietf.org
Subject: Re: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
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/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: Mon, 17 May 2010 17:12:08 -0000

Joseph Salowey wrote:
> 
> I do not think the behavior that Mike describes is strictly compliant
> with RFC 4366 as it states that the SNI should be ignored when resuming
> a session.

I would really like to you distinguish the details more carefully.

"ignored when resuming a session" is something that applies
_after_ the server's decision to resume a proposed TLS session.


>
>                From an interop point of view I think it is important to
> clarify that the server does not use the SNI extension in the look-up
> the session ID in the session cache.

It is just the opposite.  If a Server _supports_ SNI, it ought to make
the chosen value from the previous handshake part of the cached TLS session,
and re-validate any SNI values supplied by the client in ClientHello
on every session resumption.


>
> If the session is resumed and client presents an SNI extension in the
> resumption attempt it should get the same result as if it did not.

Full agreement here.


>
> The client should not attempt to use a different SNI in the
> resumption as it is ambiguous.  

Although I'm also in full agreement on the client's behaviour,
this ought not to have any relevance for the server's decision.
The server is supposed to act on data that is actually present in
ClientHello.  The server should not try to guess what the client
may have desired and potentially mis-represented in ClientHello params.

> 
> How about the following text:
> 
> "When the server resumes a session, the server_name extension is ignored
> and not used in the lookup of the session in the session cache.  If the
> session is resumed, the server will always use the server name
> associated with the cached session. The server MUST NOT include a
> server_name extension in the server hello. When resuming a session the
> client MUST NOT use a different server name than the one used in
> establishing the original session.  The client MAY omit the server_name
> extension during session resumption. " 


I'd like to see instead something more like this:

"If a server implements _and_ confirms the use of a server_name extension
 proposed by a TLS client on a full TLS handshake, then the server MUST
 validate the contents of the server_name extension on all attempts of
 the TLS client to later resume this TLS session from the TLS session
 cache in an abbreviated handshake.  If a validation is necessary,
 and that validation fails, the server MUST perform a full TLS handshake.

 TLS clients that want to propose TLS session resumption, SHOULD provide
 the same parameters in ClientHello (including TLS extensions) as in the
 original handshake, because the server is supposed to validate these
 parameters against the characteristics of the cached session from the
 original full TLS handshake, and the server is supposed to perform
 a full TLS handshake instead of a TLS session resumption if that
 validation of the ClientHello parameters determines that it will
 result in a TLS session with different characteristics."

-Martin


From benl@google.com  Mon May 17 10:19:22 2010
Return-Path: <benl@google.com>
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 DCA263A67FB for <tls@core3.amsl.com>; Mon, 17 May 2010 10:19:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -100.117
X-Spam-Level: 
X-Spam-Status: No, score=-100.117 tagged_above=-999 required=5 tests=[BAYES_20=-0.74, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, USER_IN_WHITELIST=-100]
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 9wusUB0XIvhW for <tls@core3.amsl.com>; Mon, 17 May 2010 10:19:20 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.35]) by core3.amsl.com (Postfix) with ESMTP id C7A213A6A91 for <tls@ietf.org>; Mon, 17 May 2010 10:18:32 -0700 (PDT)
Received: from hpaq5.eem.corp.google.com (hpaq5.eem.corp.google.com [172.25.149.5]) by smtp-out.google.com with ESMTP id o4HHIFNu023280 for <tls@ietf.org>; Mon, 17 May 2010 10:18:15 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1274116695; bh=yi/OjtpqSCTfkxpv+VUGYq3/WNA=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=KcMDXULNIKkOjzpySDLYFEstDLgzE6pV/3leZYP8AV8QDqC7bT5M/ewL1gUB0YOTV qBbmMvAPIkkWUpDCgP7jg==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:x-system-of-record; b=OggVma5Ly8YXJBzh7zxpc4spoPv4ccEMkag37owjPgmnWznG4pb0KNWuwm1CQ5FbC DFOTaV78fEeUJfn0UmsGA==
Received: from gya1 (gya1.prod.google.com [10.243.49.1]) by hpaq5.eem.corp.google.com with ESMTP id o4HHHruB030553 for <tls@ietf.org>; Mon, 17 May 2010 10:18:02 -0700
Received: by gya1 with SMTP id 1so2154982gya.6 for <tls@ietf.org>; Mon, 17 May 2010 10:17:47 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.165.1 with SMTP id n1mr6551195ybe.253.1274116657083; Mon,  17 May 2010 10:17:37 -0700 (PDT)
Received: by 10.150.188.9 with HTTP; Mon, 17 May 2010 10:17:37 -0700 (PDT)
In-Reply-To: <20100517170810.GY9429@oracle.com>
References: <C816DA05.66DF%uri@ll.mit.edu> <4BF168A3.40409@extendedsubset.com> <AC1CFD94F59A264488DC2BEC3E890DE50A67C326@xmb-sjc-225.amer.cisco.com> <4BF176BF.8020000@extendedsubset.com> <20100517170810.GY9429@oracle.com>
Date: Mon, 17 May 2010 18:17:37 +0100
Message-ID: <AANLkTimyy-PoErKMSAnpjT3bZGi_GN2t4h61XsZNtqY_@mail.gmail.com>
From: Ben Laurie <benl@google.com>
To: Nicolas Williams <Nicolas.Williams@oracle.com>
Content-Type: multipart/alternative; boundary=000e0cd5c4eabf76cb0486cd663f
X-System-Of-Record: true
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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: Mon, 17 May 2010 17:19:22 -0000

--000e0cd5c4eabf76cb0486cd663f
Content-Type: text/plain; charset=ISO-8859-1

On 17 May 2010 18:08, Nicolas Williams <Nicolas.Williams@oracle.com> wrote:

> On Mon, May 17, 2010 at 12:02:55PM -0500, Marsh Ray wrote:
> > On 5/17/2010 11:29 AM, Joseph Salowey (jsalowey) wrote:
> > > I agree with Uri, that if you determine you need SHA-256 then you
> should
> > > plan for hash agility.  TLS 1.2 plans for hash agility.
> > >
> > > What about Nico's proposal where a checksum is used to identify the
> > > cached data and the actual handshake contains the actual data hashed
> > > with the algorithm used in the PRF negotiated with the cipher suite?
> > >
> > > This way we don't have to introduce hash agility into the extension,
> but
> > > we have cryptographic hash agility where it matters in the Finished
> > > computation.  Does it solve the problem?
> >
> > It could perhaps be made to solve the problem, but IMHO it would require
> > so much additional complexity (aka attack surface) that it wouldn't be
> > worth it.
>
> Really?  It'd be a single extra message consisting of the hash of all
> the objects' data, concatenated in some canonical order (or maybe the
> hash of the XOR of the object data hashes, to avoid having to define a
> canonical order), that the first node to sent a Finished message would
> have to send, and which the other node would have to check.  Where's all
> that additional complexity, and how does it compare with the complexity
> of the protocol's security analysis as it stands now?
>

This is, of course, equivalent to using the hashes as identifiers in the
first place :-)

Why is agility a problem, though - could we not say that any hash that is
currently required as a signature hash can be used, and identify the hash in
the extension message?


>
> > While I don't like to reject anything out-of-hand, injecting data into
>
> But you just did.
>
> > the calculation of the Finished messages raises a lot of concerns. The
>
> You mis-read.  Re-read.
>
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
>

--000e0cd5c4eabf76cb0486cd663f
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote">On 17 May 2010 18:08, Nicolas Williams <=
span dir=3D"ltr">&lt;<a href=3D"mailto:Nicolas.Williams@oracle.com">Nicolas=
.Williams@oracle.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex=
;">
<div class=3D"im">On Mon, May 17, 2010 at 12:02:55PM -0500, Marsh Ray wrote=
:<br>
&gt; On 5/17/2010 11:29 AM, Joseph Salowey (jsalowey) wrote:<br>
&gt; &gt; I agree with Uri, that if you determine you need SHA-256 then you=
 should<br>
&gt; &gt; plan for hash agility. =A0TLS 1.2 plans for hash agility.<br>
&gt; &gt;<br>
&gt; &gt; What about Nico&#39;s proposal where a checksum is used to identi=
fy the<br>
&gt; &gt; cached data and the actual handshake contains the actual data has=
hed<br>
&gt; &gt; with the algorithm used in the PRF negotiated with the cipher sui=
te?<br>
&gt; &gt;<br>
&gt; &gt; This way we don&#39;t have to introduce hash agility into the ext=
ension, but<br>
&gt; &gt; we have cryptographic hash agility where it matters in the Finish=
ed<br>
&gt; &gt; computation. =A0Does it solve the problem?<br>
&gt;<br>
&gt; It could perhaps be made to solve the problem, but IMHO it would requi=
re<br>
&gt; so much additional complexity (aka attack surface) that it wouldn&#39;=
t be<br>
&gt; worth it.<br>
<br>
</div>Really? =A0It&#39;d be a single extra message consisting of the hash =
of all<br>
the objects&#39; data, concatenated in some canonical order (or maybe the<b=
r>
hash of the XOR of the object data hashes, to avoid having to define a<br>
canonical order), that the first node to sent a Finished message would<br>
have to send, and which the other node would have to check. =A0Where&#39;s =
all<br>
that additional complexity, and how does it compare with the complexity<br>
of the protocol&#39;s security analysis as it stands now?<br></blockquote><=
div><br></div><div>This is, of course, equivalent to using the hashes as id=
entifiers in the first place :-)</div><div><br></div><div>Why is agility a =
problem, though - could we not say that any hash that is currently required=
 as a signature hash can be used, and identify the hash in the extension me=
ssage?</div>
<div>=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;=
border-left:1px #ccc solid;padding-left:1ex;">
<div class=3D"im"><br>
&gt; While I don&#39;t like to reject anything out-of-hand, injecting data =
into<br>
<br>
</div>But you just did.<br>
<div class=3D"im"><br>
&gt; the calculation of the Finished messages raises a lot of concerns. The=
<br>
<br>
</div>You mis-read. =A0Re-read.<br>
<div><div></div><div class=3D"h5"><br>
_______________________________________________<br>
TLS mailing list<br>
<a href=3D"mailto:TLS@ietf.org">TLS@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/tls" target=3D"_blank">htt=
ps://www.ietf.org/mailman/listinfo/tls</a><br>
</div></div></blockquote></div><br>

--000e0cd5c4eabf76cb0486cd663f--

From benl@google.com  Mon May 17 10:26:24 2010
Return-Path: <benl@google.com>
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 81B473A6A93 for <tls@core3.amsl.com>; Mon, 17 May 2010 10:26:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -100.117
X-Spam-Level: 
X-Spam-Status: No, score=-100.117 tagged_above=-999 required=5 tests=[BAYES_20=-0.74, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, USER_IN_WHITELIST=-100]
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 l9F3U0MxzAlW for <tls@core3.amsl.com>; Mon, 17 May 2010 10:26:24 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id 75EB13A6AAA for <tls@ietf.org>; Mon, 17 May 2010 10:24:38 -0700 (PDT)
Received: from hpaq11.eem.corp.google.com (hpaq11.eem.corp.google.com [172.25.149.11]) by smtp-out.google.com with ESMTP id o4HHOKQb028736 for <tls@ietf.org>; Mon, 17 May 2010 10:24:20 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1274117060; bh=yi/OjtpqSCTfkxpv+VUGYq3/WNA=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=TTEQxsDhFrUo0XpZJtdJkw9ijIOSHtlVonRrzsJxF1SUcpNSM24PW0F4AlQchoDks oAeqBZF79JeOwG4MIl6JQ==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:x-system-of-record; b=OggVma5Ly8YXJBzh7zxpc4spoPv4ccEMkag37owjPgmnWznG4pb0KNWuwm1CQ5FbC DFOTaV78fEeUJfn0UmsGA==
Received: from ywh5 (ywh5.prod.google.com [10.192.8.5]) by hpaq11.eem.corp.google.com with ESMTP id o4HHOI8B017074 for <tls@ietf.org>; Mon, 17 May 2010 10:24:18 -0700
Received: by ywh5 with SMTP id 5so2778886ywh.13 for <tls@ietf.org>; Mon, 17 May 2010 10:24:18 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.165.1 with SMTP id n1mr6551195ybe.253.1274116657083; Mon,  17 May 2010 10:17:37 -0700 (PDT)
Received: by 10.150.188.9 with HTTP; Mon, 17 May 2010 10:17:37 -0700 (PDT)
In-Reply-To: <20100517170810.GY9429@oracle.com>
References: <C816DA05.66DF%uri@ll.mit.edu> <4BF168A3.40409@extendedsubset.com> <AC1CFD94F59A264488DC2BEC3E890DE50A67C326@xmb-sjc-225.amer.cisco.com> <4BF176BF.8020000@extendedsubset.com> <20100517170810.GY9429@oracle.com>
Date: Mon, 17 May 2010 18:17:37 +0100
Message-ID: <AANLkTimyy-PoErKMSAnpjT3bZGi_GN2t4h61XsZNtqY_@mail.gmail.com>
From: Ben Laurie <benl@google.com>
To: Nicolas Williams <Nicolas.Williams@oracle.com>
Content-Type: multipart/alternative; boundary=000e0cd5c4eabf76cb0486cd663f
X-System-Of-Record: true
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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: Mon, 17 May 2010 17:26:24 -0000

--000e0cd5c4eabf76cb0486cd663f
Content-Type: text/plain; charset=ISO-8859-1

On 17 May 2010 18:08, Nicolas Williams <Nicolas.Williams@oracle.com> wrote:

> On Mon, May 17, 2010 at 12:02:55PM -0500, Marsh Ray wrote:
> > On 5/17/2010 11:29 AM, Joseph Salowey (jsalowey) wrote:
> > > I agree with Uri, that if you determine you need SHA-256 then you
> should
> > > plan for hash agility.  TLS 1.2 plans for hash agility.
> > >
> > > What about Nico's proposal where a checksum is used to identify the
> > > cached data and the actual handshake contains the actual data hashed
> > > with the algorithm used in the PRF negotiated with the cipher suite?
> > >
> > > This way we don't have to introduce hash agility into the extension,
> but
> > > we have cryptographic hash agility where it matters in the Finished
> > > computation.  Does it solve the problem?
> >
> > It could perhaps be made to solve the problem, but IMHO it would require
> > so much additional complexity (aka attack surface) that it wouldn't be
> > worth it.
>
> Really?  It'd be a single extra message consisting of the hash of all
> the objects' data, concatenated in some canonical order (or maybe the
> hash of the XOR of the object data hashes, to avoid having to define a
> canonical order), that the first node to sent a Finished message would
> have to send, and which the other node would have to check.  Where's all
> that additional complexity, and how does it compare with the complexity
> of the protocol's security analysis as it stands now?
>

This is, of course, equivalent to using the hashes as identifiers in the
first place :-)

Why is agility a problem, though - could we not say that any hash that is
currently required as a signature hash can be used, and identify the hash in
the extension message?


>
> > While I don't like to reject anything out-of-hand, injecting data into
>
> But you just did.
>
> > the calculation of the Finished messages raises a lot of concerns. The
>
> You mis-read.  Re-read.
>
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
>

--000e0cd5c4eabf76cb0486cd663f
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote">On 17 May 2010 18:08, Nicolas Williams <=
span dir=3D"ltr">&lt;<a href=3D"mailto:Nicolas.Williams@oracle.com">Nicolas=
.Williams@oracle.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex=
;">
<div class=3D"im">On Mon, May 17, 2010 at 12:02:55PM -0500, Marsh Ray wrote=
:<br>
&gt; On 5/17/2010 11:29 AM, Joseph Salowey (jsalowey) wrote:<br>
&gt; &gt; I agree with Uri, that if you determine you need SHA-256 then you=
 should<br>
&gt; &gt; plan for hash agility. =A0TLS 1.2 plans for hash agility.<br>
&gt; &gt;<br>
&gt; &gt; What about Nico&#39;s proposal where a checksum is used to identi=
fy the<br>
&gt; &gt; cached data and the actual handshake contains the actual data has=
hed<br>
&gt; &gt; with the algorithm used in the PRF negotiated with the cipher sui=
te?<br>
&gt; &gt;<br>
&gt; &gt; This way we don&#39;t have to introduce hash agility into the ext=
ension, but<br>
&gt; &gt; we have cryptographic hash agility where it matters in the Finish=
ed<br>
&gt; &gt; computation. =A0Does it solve the problem?<br>
&gt;<br>
&gt; It could perhaps be made to solve the problem, but IMHO it would requi=
re<br>
&gt; so much additional complexity (aka attack surface) that it wouldn&#39;=
t be<br>
&gt; worth it.<br>
<br>
</div>Really? =A0It&#39;d be a single extra message consisting of the hash =
of all<br>
the objects&#39; data, concatenated in some canonical order (or maybe the<b=
r>
hash of the XOR of the object data hashes, to avoid having to define a<br>
canonical order), that the first node to sent a Finished message would<br>
have to send, and which the other node would have to check. =A0Where&#39;s =
all<br>
that additional complexity, and how does it compare with the complexity<br>
of the protocol&#39;s security analysis as it stands now?<br></blockquote><=
div><br></div><div>This is, of course, equivalent to using the hashes as id=
entifiers in the first place :-)</div><div><br></div><div>Why is agility a =
problem, though - could we not say that any hash that is currently required=
 as a signature hash can be used, and identify the hash in the extension me=
ssage?</div>
<div>=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;=
border-left:1px #ccc solid;padding-left:1ex;">
<div class=3D"im"><br>
&gt; While I don&#39;t like to reject anything out-of-hand, injecting data =
into<br>
<br>
</div>But you just did.<br>
<div class=3D"im"><br>
&gt; the calculation of the Finished messages raises a lot of concerns. The=
<br>
<br>
</div>You mis-read. =A0Re-read.<br>
<div><div></div><div class=3D"h5"><br>
_______________________________________________<br>
TLS mailing list<br>
<a href=3D"mailto:TLS@ietf.org">TLS@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/tls" target=3D"_blank">htt=
ps://www.ietf.org/mailman/listinfo/tls</a><br>
</div></div></blockquote></div><br>

--000e0cd5c4eabf76cb0486cd663f--

From Nicolas.Williams@oracle.com  Mon May 17 10:29:18 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 C94823A6A47 for <tls@core3.amsl.com>; Mon, 17 May 2010 10:29:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.313
X-Spam-Level: 
X-Spam-Status: No, score=-5.313 tagged_above=-999 required=5 tests=[AWL=1.285,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 7qusy401hr9r for <tls@core3.amsl.com>; Mon, 17 May 2010 10:29:18 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 53FF23A6D08 for <tls@ietf.org>; Mon, 17 May 2010 10:28:26 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4HHS8iC022884 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 17 May 2010 17:28:11 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4H1T5tY015377; Mon, 17 May 2010 17:27:58 GMT
Received: from abhmt001.oracle.com by acsmt353.oracle.com with ESMTP id 247573521274117262; Mon, 17 May 2010 10:27:42 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 17 May 2010 10:27:41 -0700
Date: Mon, 17 May 2010 12:27:36 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Ben Laurie <benl@google.com>
Message-ID: <20100517172736.GA9429@oracle.com>
References: <C816DA05.66DF%uri@ll.mit.edu> <4BF168A3.40409@extendedsubset.com> <AC1CFD94F59A264488DC2BEC3E890DE50A67C326@xmb-sjc-225.amer.cisco.com> <4BF176BF.8020000@extendedsubset.com> <20100517170810.GY9429@oracle.com> <AANLkTimyy-PoErKMSAnpjT3bZGi_GN2t4h61XsZNtqY_@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <AANLkTimyy-PoErKMSAnpjT3bZGi_GN2t4h61XsZNtqY_@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090202.4BF17CAB.0141:SCFMA922111,ss=1,fgs=0
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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: Mon, 17 May 2010 17:29:18 -0000

On Mon, May 17, 2010 at 06:17:37PM +0100, Ben Laurie wrote:
> On 17 May 2010 18:08, Nicolas Williams <Nicolas.Williams@oracle.com> wrote:
> > ...
> 
> This is, of course, equivalent to using the hashes as identifiers in the
> first place :-)

Almost!  Using the object ID hashes for this before we negotiate a hash
function creates a hash agility issue.  There's also the problem that
using secure hashes to ID the objects means using up more bits on the
wire, as Uri points out.  There's also the problem that if the client
and server disagree as to what hash to use to ID cacheable objects then
objects aren't cached at all.

If we do it the way I propose we: a) don't have to think about agility,
b) don't have to think too much about security analysis, c) never have
to change the hash function we use for naming objects (unless FNV proves
to be deeply unsatisfying), d) barely change the protocol (though the
changes to implementations are somewhat larger).

Nico
-- 

From marsh@extendedsubset.com  Mon May 17 10:50:31 2010
Return-Path: <marsh@extendedsubset.com>
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 03BF23A6A51 for <tls@core3.amsl.com>; Mon, 17 May 2010 10:50:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.432
X-Spam-Level: 
X-Spam-Status: No, score=-0.432 tagged_above=-999 required=5 tests=[AWL=-0.433, BAYES_50=0.001]
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 I0GzLgAGNdOc for <tls@core3.amsl.com>; Mon, 17 May 2010 10:50:30 -0700 (PDT)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id E32D83A68DC for <tls@ietf.org>; Mon, 17 May 2010 10:50:29 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OE4SL-000IZb-Ga; Mon, 17 May 2010 17:50:21 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 16C836048; Mon, 17 May 2010 17:50:20 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX19uwu3j5m2pkI4kE2E1Sz7GK79Jq6+a6Rs=
Message-ID: <4BF181DC.2010809@extendedsubset.com>
Date: Mon, 17 May 2010 12:50:20 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: Nicolas Williams <Nicolas.Williams@oracle.com>
References: <C816DA05.66DF%uri@ll.mit.edu> <4BF168A3.40409@extendedsubset.com> <AC1CFD94F59A264488DC2BEC3E890DE50A67C326@xmb-sjc-225.amer.cisco.com> <4BF176BF.8020000@extendedsubset.com> <20100517170810.GY9429@oracle.com>
In-Reply-To: <20100517170810.GY9429@oracle.com>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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: Mon, 17 May 2010 17:50:31 -0000

On 5/17/2010 12:08 PM, Nicolas Williams wrote:
> On Mon, May 17, 2010 at 12:02:55PM -0500, Marsh Ray wrote:
>> It could perhaps be made to solve the problem, but IMHO it would require
>> so much additional complexity (aka attack surface) that it wouldn't be
>> worth it.
> 
> Really?  It'd be a single extra message consisting of the hash of all
> the objects' data, concatenated in some canonical order (or maybe the
> hash of the XOR of the object data hashes, to avoid having to define a
> canonical order), that the first node to sent a Finished message would
> have to send, and which the other node would have to check.  Where's all
> that additional complexity, and how does it compare with the complexity
> of the protocol's security analysis as it stands now?

Try this: write up that "single extra message" in unambiguous RFC form.
The protocol message definition, the canonical order, server behavior,
client behavior, how to require per-server client caches when the server
hasn't yet been authenticated, etc. Security considerations for future
cached object types. Consider writing code to implement it including
test cases with actual checksum collisions.

Then put after it "... or we could just use a collision resistant hash
function."

>> While I don't like to reject anything out-of-hand, injecting data into
> 
> But you just did.

Sorry if it sounds that way. I didn't reject it, I said "It could
perhaps be made to solve the problem" and asked a bunch of pointed, but
answerable, questions. This is my way of saying that I could accept the
idea and inviting others to overcome those objections.

If I'd really wanted to reject it, I would have made just one
unanswerable objection like "I spoke to secret government cryptographers
who will not go on record and they said it was insecure" (again, this
did not happen just an example).

>> the calculation of the Finished messages raises a lot of concerns. The
> 
> You mis-read.  Re-read.

Which part? I don't get it.

- Marsh

From marsh@extendedsubset.com  Mon May 17 11:15:33 2010
Return-Path: <marsh@extendedsubset.com>
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 CFB2C3A6AD3 for <tls@core3.amsl.com>; Mon, 17 May 2010 11:15:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.418
X-Spam-Level: 
X-Spam-Status: No, score=-0.418 tagged_above=-999 required=5 tests=[AWL=-0.419, BAYES_50=0.001]
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 5-a+NgvnKgB0 for <tls@core3.amsl.com>; Mon, 17 May 2010 11:15:32 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id CF1EA3A6AC1 for <tls@ietf.org>; Mon, 17 May 2010 11:15:07 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OE4qB-000E48-9h; Mon, 17 May 2010 18:14:59 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id F1B0B6048; Mon, 17 May 2010 18:14:56 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1/Z9KuM8l+0KMsrprDQlkwD4+Yj6CMjpS4=
Message-ID: <4BF187A0.3090408@extendedsubset.com>
Date: Mon, 17 May 2010 13:14:56 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: Ben Laurie <benl@google.com>
References: <C816DA05.66DF%uri@ll.mit.edu> <4BF168A3.40409@extendedsubset.com>	 <AC1CFD94F59A264488DC2BEC3E890DE50A67C326@xmb-sjc-225.amer.cisco.com>	 <4BF176BF.8020000@extendedsubset.com>	 <20100517170810.GY9429@oracle.com> <AANLkTimyy-PoErKMSAnpjT3bZGi_GN2t4h61XsZNtqY_@mail.gmail.com>
In-Reply-To: <AANLkTimyy-PoErKMSAnpjT3bZGi_GN2t4h61XsZNtqY_@mail.gmail.com>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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: Mon, 17 May 2010 18:15:34 -0000

On 5/17/2010 12:17 PM, Ben Laurie wrote:
> 
> Why is agility a problem, though - could we not say that any hash that is
> currently required as a signature hash can be used, and identify the hash in
> the extension message?

Sure we could, but is it worth the cost?

Client Hello and Server Hello offer one shot to negotiate the use of
caching and the identifiers being used. Having it also negotiate the
hash algorithm at the same time raises the difficulty a bit!

As I see it, here are some challenges raised by hash agility:

1. TLS implementations will have to implement all the schemes or risk
interoperability issues or at least missed caching opportunities.

2. Probably just one scheme will be used in practice anyway. It's likely
not to be the most secure of the defined choices. The other schemes may
get little testing.

3. Clients and servers will be required to maintain multiple hashes for
every cacheable object.

4. Clients will likely have to send multiple hash formats until it sees
what kinds the specific target server can work with.

5. The "cross-hashfn collision" attack must now be considered. E.g. a
preimage of one hash fn could collide with a value from another, unless
the algorithm id is somehow incorporated into the hash value itself.

6. Bad guy may be able to influence client and server to use his choice
of hash functions for caching. He could inject phony failures for
example. This could create a "weakest link" situation where the attacker
can choose the weakest hash function among all supported alternatives.

All in all, good clean fun. :-) I just don't want a reflexive "gotta
have agility" to make the proposal inelegant and unwieldy so it has
trouble gaining widespread acceptance.

- Marsh

From benl@google.com  Mon May 17 11:30:00 2010
Return-Path: <benl@google.com>
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 0D7403A6AA8 for <tls@core3.amsl.com>; Mon, 17 May 2010 11:30:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.376
X-Spam-Level: 
X-Spam-Status: No, score=-103.376 tagged_above=-999 required=5 tests=[BAYES_50=0.001, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
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 wFUq+5zeXhhE for <tls@core3.amsl.com>; Mon, 17 May 2010 11:29:59 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id CEE1F3A6A92 for <tls@ietf.org>; Mon, 17 May 2010 11:29:58 -0700 (PDT)
Received: from kpbe16.cbf.corp.google.com (kpbe16.cbf.corp.google.com [172.25.105.80]) by smtp-out.google.com with ESMTP id o4HITmQ9013309 for <tls@ietf.org>; Mon, 17 May 2010 11:29:49 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1274120989; bh=7wZDOZhTI1Rx8Zh3tq48/HK3X/U=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=E46yK3HfvdjJ/mYbrN2Mtk6LrBOQMQH3T7n0Ft3vDrP4ZueRawZaT5OoEHVnpE5QU HpYO3nokmijmdJRQacuOg==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:x-system-of-record; b=i3isw16q3Al+zSgFlvaqbakGBFYtp0G/gPij7MceZC/3YodzhTE+QIUCawP+utoiN T5RxUgYnBnkTDEgKnT6tQ==
Received: from gyg8 (gyg8.prod.google.com [10.243.50.136]) by kpbe16.cbf.corp.google.com with ESMTP id o4HITE9P013353 for <tls@ietf.org>; Mon, 17 May 2010 11:29:46 -0700
Received: by gyg8 with SMTP id 8so2373689gyg.26 for <tls@ietf.org>; Mon, 17 May 2010 11:29:46 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.118.14 with SMTP id q14mr7239040ybc.291.1274120986291;  Mon, 17 May 2010 11:29:46 -0700 (PDT)
Received: by 10.150.188.9 with HTTP; Mon, 17 May 2010 11:29:46 -0700 (PDT)
In-Reply-To: <4BF187A0.3090408@extendedsubset.com>
References: <C816DA05.66DF%uri@ll.mit.edu> <4BF168A3.40409@extendedsubset.com> <AC1CFD94F59A264488DC2BEC3E890DE50A67C326@xmb-sjc-225.amer.cisco.com> <4BF176BF.8020000@extendedsubset.com> <20100517170810.GY9429@oracle.com> <AANLkTimyy-PoErKMSAnpjT3bZGi_GN2t4h61XsZNtqY_@mail.gmail.com> <4BF187A0.3090408@extendedsubset.com>
Date: Mon, 17 May 2010 19:29:46 +0100
Message-ID: <AANLkTin1mLU-jl8CaKUqTkQhJ5D_udvzkmR5DrOQPuAO@mail.gmail.com>
From: Ben Laurie <benl@google.com>
To: Marsh Ray <marsh@extendedsubset.com>
Content-Type: multipart/alternative; boundary=000e0cd70ed0c9eeab0486ce681c
X-System-Of-Record: true
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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: Mon, 17 May 2010 18:30:00 -0000

--000e0cd70ed0c9eeab0486ce681c
Content-Type: text/plain; charset=ISO-8859-1

On 17 May 2010 19:14, Marsh Ray <marsh@extendedsubset.com> wrote:

> On 5/17/2010 12:17 PM, Ben Laurie wrote:
> >
> > Why is agility a problem, though - could we not say that any hash that is
> > currently required as a signature hash can be used, and identify the hash
> in
> > the extension message?
>
> Sure we could, but is it worth the cost?
>
> Client Hello and Server Hello offer one shot to negotiate the use of
> caching and the identifiers being used. Having it also negotiate the
> hash algorithm at the same time raises the difficulty a bit!
>

I am not suggesting negotiation, I am suggesting a statement. Since the hash
is already required elsewhere in the protocol, there is no need to
negotiate.


> As I see it, here are some challenges raised by hash agility:
>
> 1. TLS implementations will have to implement all the schemes or risk
> interoperability issues or at least missed caching opportunities.
>
> 2. Probably just one scheme will be used in practice anyway. It's likely
> not to be the most secure of the defined choices. The other schemes may
> get little testing.
>
> 3. Clients and servers will be required to maintain multiple hashes for
> every cacheable object.
>
> 4. Clients will likely have to send multiple hash formats until it sees
> what kinds the specific target server can work with.
>
> 5. The "cross-hashfn collision" attack must now be considered. E.g. a
> preimage of one hash fn could collide with a value from another, unless
> the algorithm id is somehow incorporated into the hash value itself.
>
> 6. Bad guy may be able to influence client and server to use his choice
> of hash functions for caching. He could inject phony failures for
> example. This could create a "weakest link" situation where the attacker
> can choose the weakest hash function among all supported alternatives.
>
> All in all, good clean fun. :-) I just don't want a reflexive "gotta
> have agility" to make the proposal inelegant and unwieldy so it has
> trouble gaining widespread acceptance.
>
> - Marsh
>

--000e0cd70ed0c9eeab0486ce681c
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote">On 17 May 2010 19:14, Marsh Ray <span di=
r=3D"ltr">&lt;<a href=3D"mailto:marsh@extendedsubset.com">marsh@extendedsub=
set.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D=
"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class=3D"im">On 5/17/2010 12:17 PM, Ben Laurie wrote:<br>
&gt;<br>
&gt; Why is agility a problem, though - could we not say that any hash that=
 is<br>
&gt; currently required as a signature hash can be used, and identify the h=
ash in<br>
&gt; the extension message?<br>
<br>
</div>Sure we could, but is it worth the cost?<br>
<br>
Client Hello and Server Hello offer one shot to negotiate the use of<br>
caching and the identifiers being used. Having it also negotiate the<br>
hash algorithm at the same time raises the difficulty a bit!<br></blockquot=
e><div><br></div><div>I am not suggesting negotiation, I am suggesting a st=
atement. Since the hash is already required elsewhere in the protocol, ther=
e is no need to negotiate.</div>
<div>=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;=
border-left:1px #ccc solid;padding-left:1ex;">
As I see it, here are some challenges raised by hash agility:<br>
<br>
1. TLS implementations will have to implement all the schemes or risk<br>
interoperability issues or at least missed caching opportunities.<br>
<br>
2. Probably just one scheme will be used in practice anyway. It&#39;s likel=
y<br>
not to be the most secure of the defined choices. The other schemes may<br>
get little testing.<br>
<br>
3. Clients and servers will be required to maintain multiple hashes for<br>
every cacheable object.<br>
<br>
4. Clients will likely have to send multiple hash formats until it sees<br>
what kinds the specific target server can work with.<br>
<br>
5. The &quot;cross-hashfn collision&quot; attack must now be considered. E.=
g. a<br>
preimage of one hash fn could collide with a value from another, unless<br>
the algorithm id is somehow incorporated into the hash value itself.<br>
<br>
6. Bad guy may be able to influence client and server to use his choice<br>
of hash functions for caching. He could inject phony failures for<br>
example. This could create a &quot;weakest link&quot; situation where the a=
ttacker<br>
can choose the weakest hash function among all supported alternatives.<br>
<br>
All in all, good clean fun. :-) I just don&#39;t want a reflexive &quot;got=
ta<br>
have agility&quot; to make the proposal inelegant and unwieldy so it has<br=
>
trouble gaining widespread acceptance.<br>
<font color=3D"#888888"><br>
- Marsh<br>
</font></blockquote></div><br>

--000e0cd70ed0c9eeab0486ce681c--

From mike-list@pobox.com  Mon May 17 11:40:40 2010
Return-Path: <mike-list@pobox.com>
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 3E2863A6AA8 for <tls@core3.amsl.com>; Mon, 17 May 2010 11:40:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.983
X-Spam-Level: 
X-Spam-Status: No, score=-1.983 tagged_above=-999 required=5 tests=[AWL=0.616,  BAYES_00=-2.599]
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 RGx-usY74JS1 for <tls@core3.amsl.com>; Mon, 17 May 2010 11:40:39 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 19FEB3A6A84 for <tls@ietf.org>; Mon, 17 May 2010 11:40:39 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id C4A35B4F88; Mon, 17 May 2010 14:40:30 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=rjEAjs3jvlly eJBNbrMZn28N9pc=; b=uuWdN7/fd5i1yfrS7pv/ZoyhU47tTtYKlFfdhOb32X6f FfTP/xOd7RJI2FEdm1Hn6uZpsO6YzFJiXo4ZHuAPl4gIbH7yKSTi4+Q2mfHxXvjR EIv8AKNr1w/X2hnTpnswZw6xjSU6qsVQdHjq5/yGtM0RR4jQLWokL+B3gFMEpBo=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=FIBmO7 Qadrp4VjMmC1u6vydQWw2Z/3bBk5G1f8fWEoAFLt9zEmM7Ru/8tkg2tjjPTXNIqF xraQJ2uZrsXDg7BrfHJcGRhDHGdXVx71OFAgKfi5vk4t+5MCYBGKB9s9soaFszuu s0rhT8eBJEnq8mS/iuWTtNrD+VBvJgZdIZMBI=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 8D07BB4F86; Mon, 17 May 2010 14:40:27 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id A5784B4F84; Mon, 17 May 2010 14:40:23 -0400 (EDT)
Message-ID: <4BF18D96.5040602@pobox.com>
Date: Mon, 17 May 2010 11:40:22 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A67C235@xmb-sjc-225.amer.cisco.com> from "Joseph Salowey" at May 16, 10 09:43:08 pm <201005171321.o4HDLgmX018711@fs4113.wdf.sap.corp> <AC1CFD94F59A264488DC2BEC3E890DE50A67C2D6@xmb-sjc-225.amer.cisco.com> <4BF170FE.9090506@pobox.com> <AC1CFD94F59A264488DC2BEC3E890DE50A67C355@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A67C355@xmb-sjc-225.amer.cisco.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: A9982676-61E3-11DF-B1BA-D033EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
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: Mon, 17 May 2010 18:40:40 -0000

Joseph Salowey (jsalowey) wrote:
> 
>> -----Original Message-----
>> From: Michael D'Errico [mailto:mike-list@pobox.com]
>> Sent: Monday, May 17, 2010 9:38 AM
>> To: Joseph Salowey (jsalowey)
>> Cc: mrex@sap.com; d3e3e3@gmail.com; tls@ietf.org
>> Subject: Re: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
>>
>> [snip]
>>
>> In my code, I've decided that the SNI is more important, so the
> session
>> is not resumed even if it is still in the session cache.  Thus a full
>> handshake occurs using the SNI from the client hello, and the client
>> ends up talking to the correct virtual server.
>>
> [Joe] From this description it sounds like we need to make a bigger
> change to the section to accommodate this behavior.  What happens if the
> client does not present an SNI during resumption?  Will this cause a
> problem contacting the correct virtual server?  Is the SNI required by
> your implementation during session resumption.  

I accommodate an empty SNI by allowing the configuration of a
default virtual server.  When there is no SNI sent by the client
or if it doesn't match anything, the default is selected.

The case where a client attempts to resume a session without
sending an SNI is a problem for the client to fix.  It can not
assume the session will be resumed, so it isn't providing enough
information to the server.

I just checked my code and if the client omits the SNI on resume,
it will force a full handshake using the default virtual server
(if configured).

Mike

From mrex@sap.com  Mon May 17 12:16:43 2010
Return-Path: <mrex@sap.com>
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 0FE0F3A6AE9 for <tls@core3.amsl.com>; Mon, 17 May 2010 12:16:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.031
X-Spam-Level: 
X-Spam-Status: No, score=-9.031 tagged_above=-999 required=5 tests=[AWL=1.218,  BAYES_00=-2.599, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_HI=-8]
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 QIM9KmprvbiN for <tls@core3.amsl.com>; Mon, 17 May 2010 12:16:42 -0700 (PDT)
Received: from smtpde03.sap-ag.de (smtpde03.sap-ag.de [155.56.68.140]) by core3.amsl.com (Postfix) with ESMTP id D47C03A6AEA for <tls@ietf.org>; Mon, 17 May 2010 12:16:16 -0700 (PDT)
Received: from mail.sap.corp by smtpde03.sap-ag.de (26) with ESMTP id o4HJG25w025684 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 17 May 2010 21:16:02 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201005171916.o4HJG1Io008515@fs4113.wdf.sap.corp>
To: jsalowey@cisco.com (Joseph Salowey)
Date: Mon, 17 May 2010 21:16:01 +0200 (MEST)
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A67C326@xmb-sjc-225.amer.cisco.com> from "Joseph Salowey" at May 17, 10 09:29:44 am
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal05
X-SAP: out
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
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/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: Mon, 17 May 2010 19:16:43 -0000

Joseph Salowey wrote:
> 
> I agree with Uri, that if you determine you need SHA-256 then you should
> plan for hash agility.  TLS 1.2 plans for hash agility.  
> 
> What about Nico's proposal where a checksum is used to identify the
> cached data and the actual handshake contains the actual data hashed
> with the algorithm used in the PRF negotiated with the cipher suite? 
> 
> This way we don't have to introduce hash agility into the extension, but
> we have cryptographic hash agility where it matters in the Finished
> computation.  Does it solve the problem?  

Yes, I think so.
This approach should solve the issue at the technical level.

Going more into detail, one would hash/mac only the data that got
actually replaced in the handshake, each prefixed by a (locally computed)
length field.

-Martin

From mike-list@pobox.com  Mon May 17 12:21:56 2010
Return-Path: <mike-list@pobox.com>
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 CBB9828C123 for <tls@core3.amsl.com>; Mon, 17 May 2010 12:21:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.72
X-Spam-Level: 
X-Spam-Status: No, score=-0.72 tagged_above=-999 required=5 tests=[AWL=-0.721,  BAYES_50=0.001]
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 p7HnYbOSCAGG for <tls@core3.amsl.com>; Mon, 17 May 2010 12:21:55 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 101FF28C0F6 for <tls@ietf.org>; Mon, 17 May 2010 12:21:18 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id E10BAB465C; Mon, 17 May 2010 15:21:09 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=eTeU5SR4bUIf Ct/bivkh9nhNC2Q=; b=W1WYhjLpl/cIqanYiE0MpuZNTtKKJXkE5O5BcdSIuqUS 1eaVkGmhvtYKnMTcZaF2j18gmA4hzBFVkjnwEuqSdVXnnNUShOE6oxWtljTf8SF1 et68gsvxOB5CU2ZuZ/I9YSd9Iqu34G54lVjKkTo3N05cDdBNSL+r180fiaXXdFc=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=tLxoeE 0zN5P1RDIcnqxvH7newjssPPkHfmWIYqcnoMonVyTnYV+ZakcNofRv5j00g4kFnk af5Q60vLEzuvOJqA9KtjHJce2V/5iDeKXHlF8YU0QfL+pGerXEo63DaUb7wxSbZx nbkuweDpEkuoT6dkMmhxtiGayzDusgkBuaiO0=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id BA152B4659; Mon, 17 May 2010 15:21:08 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 115AEB4654; Mon, 17 May 2010 15:21:06 -0400 (EDT)
Message-ID: <4BF19721.8050005@pobox.com>
Date: Mon, 17 May 2010 12:21:05 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: Stefan Santesson <stefan@aaa-sec.com>
References: <C8171810.ADE4%stefan@aaa-sec.com>
In-Reply-To: <C8171810.ADE4%stefan@aaa-sec.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 58AB686C-61E9-11DF-8ECF-D033EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: [TLS] Possible alternative to current cached info draft
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: Mon, 17 May 2010 19:21:56 -0000

It just hit me that we might be able to do caching in a different
way, similar to the http If-Modified-Since header (and ETag -- see
the last paragraph).

The server would keep track of the time at which its certificate
chain (or CA list) was configured.  This could be determined by
looking at the modification time in the filesystem, or even just
by keeping track of when the server was started or was told to
reconfigure itself.

A connecting client would tell the server, "I have a certificate
chain with this timestamp," and the server would either respond
saying that the timestamp matches the current chain, or not.  If
it matched, the certificate message sent by the server would be
empty.

A client that has never connected to a server would request the
server's timestamps by sending an empty extension.  The server
would respond with the current type/timestamp pairs it supports.

When reconnecting, the client lists its type/timestamp pairs and
the server responds with its list.  Any timestamps that matched
would cause the server to omit the data.

But probably we'd also need to have id's for the objects similar
to the ETag header to disambiguate things, especially when the
server handles more than one virtual domain.  The server could
generate those either using a hash (no agility needed) or some
other way, with the only requirement being that the type-id-
timestamp triple would need to be unique.

Mike



Stefan Santesson wrote:
> I would like to wrap up the discussion about cached info, if possible.
> 
> I have to admit that I'm stuck as editor. I have a draft that I think is
> done with a possible amendment to the security considerations and some
> additional informational references to FNV.
> 
> I don't think the discussion has shown that the security assumptions are
> wrong, I.e. That any alteration of cached data in the sense that the server
> and the client are in disagreement of what the cached data is, will lead to
> a handshake failure.
> 
> Threats are therefore reduced to inconveniences upon handshake failures (as
> far as discussion has showed.
> 
> However, there is still a possible alteration of the security properties of
> the finished calculation. That is, it is possible upon a FNV collision to
> disagree on the cached data without failing the finished calculation.
> 
> I can't see any practical exploit of this fact. If this is considered a
> blocking problem, then it is easiest solved by using a secure hash (SHA-256)
> which effectively restores the security properties of the finished
> calculation. This is best done by s/FNV/SHA-256. No agility.
> 
> I will not lead an effort to specify a variant of this protocol where the
> server provides the identifiers, either as any random identifier or in the
> form of a URI. If that is the desire of the WG, I will be happy to hand over
> editorship to anyone, assigned by the chairs, who wants to take over.
> 
> I request WG chair guidance on how to proceed, if at all with this document.
> 
> /Stefan

From DPKemp@missi.ncsc.mil  Mon May 17 12:45:37 2010
Return-Path: <DPKemp@missi.ncsc.mil>
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 D31B03A6AC2 for <tls@core3.amsl.com>; Mon, 17 May 2010 12:45:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.277
X-Spam-Level: 
X-Spam-Status: No, score=-4.277 tagged_above=-999 required=5 tests=[AWL=-0.278, BAYES_50=0.001, 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 NYNxJZCWZggb for <tls@core3.amsl.com>; Mon, 17 May 2010 12:45:36 -0700 (PDT)
Received: from stingray.missi.ncsc.mil (stingray.missi.ncsc.mil [144.51.50.20]) by core3.amsl.com (Postfix) with ESMTP id 7B4373A6A5E for <tls@ietf.org>; Mon, 17 May 2010 12:45:36 -0700 (PDT)
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-MimeOLE: Produced By Microsoft Exchange V6.5
Date: Mon, 17 May 2010 15:45:19 -0400
Message-ID: <201005171945.o4HJjNtp008322@stingray.missi.ncsc.mil>
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A67C326@xmb-sjc-225.amer.cisco.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] Wrapping up cached info (and PRF WTF)
Thread-Index: Acr12oyVh6LZskrwQJqy0Mb6pFK61wAAq/DAAAQgc1A=
References: <C816DA05.66DF%uri@ll.mit.edu> <4BF168A3.40409@extendedsubset.com> <AC1CFD94F59A264488DC2BEC3E890DE50A67C326@xmb-sjc-225.amer.cisco.com>
From: "Kemp, David P." <DPKemp@missi.ncsc.mil>
To: <tls@ietf.org>
X-OriginalArrivalTime: 17 May 2010 19:46:37.0468 (UTC) FILETIME=[A99B75C0:01CAF5F9]
Subject: Re: [TLS] Wrapping up cached info (and PRF WTF)
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: Mon, 17 May 2010 19:45:37 -0000

>> [Nico] Paul Hoffman proposes an extension to add inputs to the
Finished=20
>> message computation.  There's no objection yet to Paul's proposal on=20
>> the grounds you state.
>
> [Marsh] I'm not sure the discussion got that far, so it's not evidence
of much.


Was this a verbal proposal?  Paul has submitted the following I-Ds:

draft-hoffman-tls-additional-random-ext-01  -- Additional Random
Extension to TLS
draft-hoffman-tls-master-secret-input-01    -- Additional Master Secret
Inputs for TLS

but nothing that would add inputs to the Finished computation other than
what was actually transmitted over the wire.

I agree with using a checksum to identify the cached data while
including the actual data in the finished calculation.   I don't see any
mechanism for doing that using either of the Hoffman drafts, but I still
think it could be done in a relatively straightforward manner by
defining a "CachedObject" compression algorithm that would "compress"
and "expand" by direct substitution of checksums for data.

----------

And on a different topic, What is This Function?


RFC 5246 section 4.3 defines the notation for two types of vectors:
  Fixed length:     T T'[n];
  Variable length:  T T'<floor..ceiling>;

and section 7.4.9 defines the structure of the Finished message:

      struct {
          opaque verify_data[verify_data_length];
      } Finished;

      verify_data
         PRF(master_secret, finished_label, Hash(handshake_messages))
            [0..verify_data_length-1];


What sort of notation is a function PRF() followed by a floor and
ceiling expression enclosed in square brackets []?

Assuming it means that the PRF output is truncated to some variable
number of bytes, why is the floor 0 bytes and the ceiling 11 bytes when
all verify_data vectors MUST be either exactly 12 (current ciphersuites)
or at least 12 (future ciphersuites) bytes???

Dave



-----Original Message-----
From: tls-bounces@ietf.org [mailto:tls-bounces@ietf.org] On Behalf Of
Joseph Salowey (jsalowey)
Sent: Monday, May 17, 2010 12:30 PM
To: Marsh Ray; Blumenthal, Uri - 0668 - MITLL
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info

I agree with Uri, that if you determine you need SHA-256 then you should
plan for hash agility.  TLS 1.2 plans for hash agility. =20

What about Nico's proposal where a checksum is used to identify the
cached data and the actual handshake contains the actual data hashed
with the algorithm used in the PRF negotiated with the cipher suite?=20

This way we don't have to introduce hash agility into the extension, but
we have cryptographic hash agility where it matters in the Finished
computation.  Does it solve the problem? =20

Joe


From mrex@sap.com  Mon May 17 13:18:48 2010
Return-Path: <mrex@sap.com>
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 D47083A6B38 for <tls@core3.amsl.com>; Mon, 17 May 2010 13:18:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.769
X-Spam-Level: 
X-Spam-Status: No, score=-7.769 tagged_above=-999 required=5 tests=[AWL=-0.120, BAYES_50=0.001, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_HI=-8]
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 Q1mIEbVbAocQ for <tls@core3.amsl.com>; Mon, 17 May 2010 13:18:47 -0700 (PDT)
Received: from smtpde03.sap-ag.de (smtpde03.sap-ag.de [155.56.68.140]) by core3.amsl.com (Postfix) with ESMTP id D29C33A6BA2 for <tls@ietf.org>; Mon, 17 May 2010 13:18:33 -0700 (PDT)
Received: from mail.sap.corp by smtpde03.sap-ag.de (26) with ESMTP id o4HKINK3010683 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 17 May 2010 22:18:23 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201005172018.o4HKIMbR011949@fs4113.wdf.sap.corp>
To: DPKemp@missi.ncsc.mil (Kemp David P.)
Date: Mon, 17 May 2010 22:18:22 +0200 (MEST)
In-Reply-To: <201005171945.o4HJjNtp008322@stingray.missi.ncsc.mil> from "Kemp, David P." at May 17, 10 03:45:19 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal07
X-SAP: out
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info (and PRF WTF)
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
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/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: Mon, 17 May 2010 20:18:48 -0000

Kemp, David P. wrote:
> 
> And on a different topic, What is This Function?
> 
> 
> RFC 5246 section 4.3 defines the notation for two types of vectors:
>   Fixed length:     T T'[n];
>   Variable length:  T T'<floor..ceiling>;
> 
> and section 7.4.9 defines the structure of the Finished message:
> 
>       struct {
>           opaque verify_data[verify_data_length];
>       } Finished;
> 
>       verify_data
>          PRF(master_secret, finished_label, Hash(handshake_messages))
>             [0..verify_data_length-1];
> 
> 
> What sort of notation is a function PRF() followed by a floor and
> ceiling expression enclosed in square brackets []?

The output of the PRF() is substantially larger than the size
of the finished message.  The notation is probbly meant to
refer to the initial verify_data_length octets from the
opaque result of PRF().

The "verify_data" vector in the finished message has a fixed size,
which means that it is encoded without a seperate length field.

But since the verify_data is also the only content of the finished
handshake message, the size of verify_data is the same as the
sized handshake message body given in the handshake message header.


> 
> Assuming it means that the PRF output is truncated to some variable
> number of bytes, why is the floor 0 bytes and the ceiling 11 bytes when
> all verify_data vectors MUST be either exactly 12 (current ciphersuites)
> or at least 12 (future ciphersuites) bytes???

The existing spec does not allow verify_data to be of variable size.
(variable size objects would require an additional length field
 preceding the value).

verify_data must always be fixed size, but that fixed size can be defined
in the specification of a cipher suite to be larger than 12 octets.

-Martin

From stefan@aaa-sec.com  Mon May 17 13:38:50 2010
Return-Path: <stefan@aaa-sec.com>
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 872C628C0F7 for <tls@core3.amsl.com>; Mon, 17 May 2010 13:38:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.393
X-Spam-Level: 
X-Spam-Status: No, score=-1.393 tagged_above=-999 required=5 tests=[AWL=-0.744, BAYES_50=0.001, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 lxvEaB8hfJ+l for <tls@core3.amsl.com>; Mon, 17 May 2010 13:38:49 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id 5FBA428C164 for <tls@ietf.org>; Mon, 17 May 2010 13:34:51 -0700 (PDT)
Received: from s24.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 3A21737D2DC for <tls@ietf.org>; Mon, 17 May 2010 22:34:50 +0200 (CEST)
Received: (qmail 71792 invoked from network); 17 May 2010 20:34:42 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.8]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s24.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <mrex@sap.com>; 17 May 2010 20:34:42 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Mon, 17 May 2010 22:34:39 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: <mrex@sap.com>, Joseph Salowey <jsalowey@cisco.com>
Message-ID: <C81774FF.AE31%stefan@aaa-sec.com>
Thread-Topic: [TLS] Wrapping up cached info
Thread-Index: Acr2AF8iO6bF6i2yM0up48R7QWj7GQ==
In-Reply-To: <201005171916.o4HJG1Io008515@fs4113.wdf.sap.corp>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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: Mon, 17 May 2010 20:38:50 -0000

Guys,

Where I come from we have a say "don't cross the river to get to the water".
And to me this proposal to change the finished calculation is just that.

Look at it.

The proposal is to bind the cached data by adding a hash of the cached data
to the finished calculation.

The proposal is further to avoid hash agility by picking the hash algorithm
used by TLS's Finished message computation.


Now there are two ways to achieve this goal.

1) The crossing the river to get water approach:  Exchange FNV hashes of the
cached data in the handshake protocol exchange and then inject hashes of the
same data into the finished calculation through an alteration of the TLS
protocol.


2) The simple approach: Use the hash algorithm of the finished calculation
to hash the cached data (according to the current draft).


Alternative 2 securely bind the hashed data into the finished message
calculation without altering the algorithm.

Alternative 2 requires at most a hash algorithm identifier added to the
protocol, if at all. We don't need to add negotiation since we always use
the hash of the finished message calculation. Adding this identifier would
be the only change made to the current draft.

Alternative 2 don't require additional security analysis. If the hash used
to calculate the finished message is broken, then we are screwed anyway.

/Stefan









On 10-05-17 9:16 PM, "Martin Rex" <mrex@sap.com> wrote:

> Joseph Salowey wrote:
>> 
>> I agree with Uri, that if you determine you need SHA-256 then you should
>> plan for hash agility.  TLS 1.2 plans for hash agility.
>> 
>> What about Nico's proposal where a checksum is used to identify the
>> cached data and the actual handshake contains the actual data hashed
>> with the algorithm used in the PRF negotiated with the cipher suite?
>> 
>> This way we don't have to introduce hash agility into the extension, but
>> we have cryptographic hash agility where it matters in the Finished
>> computation.  Does it solve the problem?
> 
> Yes, I think so.
> This approach should solve the issue at the technical level.
> 
> Going more into detail, one would hash/mac only the data that got
> actually replaced in the handshake, each prefixed by a (locally computed)
> length field.
> 
> -Martin
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls



From Nicolas.Williams@oracle.com  Mon May 17 13:46:10 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 0F37528C123 for <tls@core3.amsl.com>; Mon, 17 May 2010 13:46:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.364
X-Spam-Level: 
X-Spam-Status: No, score=-5.364 tagged_above=-999 required=5 tests=[AWL=1.234,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 Mr6-t+-4sYFp for <tls@core3.amsl.com>; Mon, 17 May 2010 13:46:09 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 2508028C0F7 for <tls@ietf.org>; Mon, 17 May 2010 13:46:09 -0700 (PDT)
Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4HKjw60004576 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 17 May 2010 20:45:59 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4HIqmPG000895; Mon, 17 May 2010 20:45:57 GMT
Received: from abhmt019.oracle.com by acsmt353.oracle.com with ESMTP id 272060271274129055; Mon, 17 May 2010 13:44:15 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 17 May 2010 13:44:14 -0700
Date: Mon, 17 May 2010 15:44:09 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: "Kemp, David P." <DPKemp@missi.ncsc.mil>
Message-ID: <20100517204409.GE9429@oracle.com>
References: <C816DA05.66DF%uri@ll.mit.edu> <4BF168A3.40409@extendedsubset.com> <AC1CFD94F59A264488DC2BEC3E890DE50A67C326@xmb-sjc-225.amer.cisco.com> <201005171945.o4HJjNtp008322@stingray.missi.ncsc.mil>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <201005171945.o4HJjNtp008322@stingray.missi.ncsc.mil>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: rcsinet15.oracle.com [148.87.113.117]
X-CT-RefId: str=0001.0A090205.4BF1AB08.007A:SCFMA4539811,ss=1,fgs=0
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info (and PRF WTF)
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: Mon, 17 May 2010 20:46:10 -0000

On Mon, May 17, 2010 at 03:45:19PM -0400, Kemp, David P. wrote:
> >> [Nico] Paul Hoffman proposes an extension to add inputs to the
> Finished 
> >> message computation.  There's no objection yet to Paul's proposal on 
> >> the grounds you state.
> >
> > [Marsh] I'm not sure the discussion got that far, so it's not evidence
> of much.
> 
> 
> Was this a verbal proposal?  Paul has submitted the following I-Ds:
> 
> draft-hoffman-tls-additional-random-ext-01  -- Additional Random
> Extension to TLS
> draft-hoffman-tls-master-secret-input-01    -- Additional Master Secret
> Inputs for TLS

draft-hoffman-tls-master-secret-input-01.

> but nothing that would add inputs to the Finished computation other than
> what was actually transmitted over the wire.

It changes the computation of the master secret, therefore it changes
the computation of the Finished message.

But none of that matters now because IMO the simplest fix here is to add
a handshake message that has a cryptographic hash of all the cached
objects' data -- or something along those lines.

Nico
-- 

From stefan@aaa-sec.com  Mon May 17 15:25:00 2010
Return-Path: <stefan@aaa-sec.com>
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 330D13A69DF for <tls@core3.amsl.com>; Mon, 17 May 2010 15:25:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.367
X-Spam-Level: 
X-Spam-Status: No, score=-1.367 tagged_above=-999 required=5 tests=[AWL=-0.718, BAYES_50=0.001, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 LHBtfpqchfQN for <tls@core3.amsl.com>; Mon, 17 May 2010 15:24:59 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id BDEDC3A6907 for <tls@ietf.org>; Mon, 17 May 2010 15:24:20 -0700 (PDT)
Received: from s42.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id EB53F28BC64 for <tls@ietf.org>; Tue, 18 May 2010 00:24:19 +0200 (CEST)
Received: (qmail 86608 invoked from network); 17 May 2010 22:24:08 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.8]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s42.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <stefan@aaa-sec.com>; 17 May 2010 22:24:08 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Tue, 18 May 2010 00:24:06 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: Stefan Santesson <stefan@aaa-sec.com>, <mrex@sap.com>, Joseph Salowey <jsalowey@cisco.com>
Message-ID: <C8178EA6.AE48%stefan@aaa-sec.com>
Thread-Topic: [TLS] Wrapping up cached info
Thread-Index: Acr2AF8iO6bF6i2yM0up48R7QWj7GQAD0o9p
In-Reply-To: <C81774FF.AE31%stefan@aaa-sec.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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: Mon, 17 May 2010 22:25:00 -0000

As Martin pointed out to me privately, the hash used in the finished
calculation becomes known to the client only after receiving the serer
hello.

It would therefore be natural for the client to use the hash function used
to calculate the finished message at the time when the data was cached.

The client would then indicate which hash algorithm it used and upon
acceptance, the server will honor the request.

/Stefan


On 10-05-17 10:34 PM, "Stefan Santesson" <stefan@aaa-sec.com> wrote:

> Guys,
> 
> Where I come from we have a say "don't cross the river to get to the water".
> And to me this proposal to change the finished calculation is just that.
> 
> Look at it.
> 
> The proposal is to bind the cached data by adding a hash of the cached data
> to the finished calculation.
> 
> The proposal is further to avoid hash agility by picking the hash algorithm
> used by TLS's Finished message computation.
> 
> 
> Now there are two ways to achieve this goal.
> 
> 1) The crossing the river to get water approach:  Exchange FNV hashes of the
> cached data in the handshake protocol exchange and then inject hashes of the
> same data into the finished calculation through an alteration of the TLS
> protocol.
> 
> 
> 2) The simple approach: Use the hash algorithm of the finished calculation
> to hash the cached data (according to the current draft).
> 
> 
> Alternative 2 securely bind the hashed data into the finished message
> calculation without altering the algorithm.
> 
> Alternative 2 requires at most a hash algorithm identifier added to the
> protocol, if at all. We don't need to add negotiation since we always use
> the hash of the finished message calculation. Adding this identifier would
> be the only change made to the current draft.
> 
> Alternative 2 don't require additional security analysis. If the hash used
> to calculate the finished message is broken, then we are screwed anyway.
> 
> /Stefan
> 
> 
> 
> 
> 
> 
> 
> 
> 
> On 10-05-17 9:16 PM, "Martin Rex" <mrex@sap.com> wrote:
> 
>> Joseph Salowey wrote:
>>> 
>>> I agree with Uri, that if you determine you need SHA-256 then you should
>>> plan for hash agility.  TLS 1.2 plans for hash agility.
>>> 
>>> What about Nico's proposal where a checksum is used to identify the
>>> cached data and the actual handshake contains the actual data hashed
>>> with the algorithm used in the PRF negotiated with the cipher suite?
>>> 
>>> This way we don't have to introduce hash agility into the extension, but
>>> we have cryptographic hash agility where it matters in the Finished
>>> computation.  Does it solve the problem?
>> 
>> Yes, I think so.
>> This approach should solve the issue at the technical level.
>> 
>> Going more into detail, one would hash/mac only the data that got
>> actually replaced in the handshake, each prefixed by a (locally computed)
>> length field.
>> 
>> -Martin
>> _______________________________________________
>> TLS mailing list
>> TLS@ietf.org
>> https://www.ietf.org/mailman/listinfo/tls
> 
> 
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls



From jsalowey@cisco.com  Mon May 17 22:05:40 2010
Return-Path: <jsalowey@cisco.com>
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 14CDA3A6BFE for <tls@core3.amsl.com>; Mon, 17 May 2010 22:05:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.348
X-Spam-Level: 
X-Spam-Status: No, score=-9.348 tagged_above=-999 required=5 tests=[AWL=-0.238, BAYES_05=-1.11, RCVD_IN_DNSWL_HI=-8]
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 pcXgUUCNY24T for <tls@core3.amsl.com>; Mon, 17 May 2010 22:05:39 -0700 (PDT)
Received: from sj-iport-5.cisco.com (sj-iport-5.cisco.com [171.68.10.87]) by core3.amsl.com (Postfix) with ESMTP id 149B53A6BFC for <tls@ietf.org>; Mon, 17 May 2010 22:05:39 -0700 (PDT)
Authentication-Results: sj-iport-5.cisco.com; dkim=neutral (message not signed) header.i=none
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvsEAFO98UurRN+K/2dsb2JhbACdeXGhdpl5hRAEg0A
X-IronPort-AV: E=Sophos;i="4.53,252,1272844800"; d="scan'208";a="198771781"
Received: from sj-core-4.cisco.com ([171.68.223.138]) by sj-iport-5.cisco.com with ESMTP; 18 May 2010 05:05:31 +0000
Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com [128.107.191.63]) by sj-core-4.cisco.com (8.13.8/8.14.3) with ESMTP id o4I55Vpf013405; Tue, 18 May 2010 05:05:31 GMT
Received: from xmb-sjc-225.amer.cisco.com ([128.107.191.38]) by xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.3959);  Mon, 17 May 2010 22:05:31 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Mon, 17 May 2010 22:05:30 -0700
Message-ID: <AC1CFD94F59A264488DC2BEC3E890DE50A67C6D0@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <4BF18D96.5040602@pobox.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
Thread-Index: Acr18HHnROJKqronQGmk7mOcVH51iAARm02A
References: <AC1CFD94F59A264488DC2BEC3E890DE50A67C235@xmb-sjc-225.amer.cisco.com> from "Joseph Salowey" at May 16, 10 09:43:08 pm <201005171321.o4HDLgmX018711@fs4113.wdf.sap.corp> <AC1CFD94F59A264488DC2BEC3E890DE50A67C2D6@xmb-sjc-225.amer.cisco.com> <4BF170FE.9090506@pobox.com> <AC1CFD94F59A264488DC2BEC3E890DE50A67C355@xmb-sjc-225.amer.cisco.com> <4BF18D96.5040602@pobox.com>
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: "Michael D'Errico" <mike-list@pobox.com>
X-OriginalArrivalTime: 18 May 2010 05:05:31.0593 (UTC) FILETIME=[BD80DB90:01CAF647]
Cc: tls@ietf.org
Subject: Re: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
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: Tue, 18 May 2010 05:05:40 -0000

So while I think what you say below seems reasonable, the "ignoring the
SNI on a resumed session" in section 3 of RFC 4366 could be interpreted
not to allow this behavior.  In your implementation the server uses the
SNI during the process of resolving the session ID to a session.  Are
others in favor of clarifying the specification to support this?=20

In order to clarify this behavior we would change the session resume
behavior for SNI to something like:

"When the server resumes a session, the server_name extension may be
used in the lookup of the session in the session cache.  The client MUST
include the same server_name extension during session resumption as it
did in the full handshake that established the session. If the
server_name extension differs from what was included in the original
handshake the server MUST NOT allow the session to be resumed.  Instead,
it proceeds with a full handshake to establish a new session. When
resuming a session, the server MUST NOT include a server_name extension
in the server hello."=20
  =20
Text at the end of section 1.1 will need to change to add SNI as an
exception. =20

> >> [snip]
> >>
> >> In my code, I've decided that the SNI is more important, so the
> > session
> >> is not resumed even if it is still in the session cache.  Thus a
full
> >> handshake occurs using the SNI from the client hello, and the
client
> >> ends up talking to the correct virtual server.
> >>
> > [Joe] From this description it sounds like we need to make a bigger
> > change to the section to accommodate this behavior.  What happens if
the
> > client does not present an SNI during resumption?  Will this cause a
> > problem contacting the correct virtual server?  Is the SNI required
by
> > your implementation during session resumption.
>=20
> I accommodate an empty SNI by allowing the configuration of a
> default virtual server.  When there is no SNI sent by the client
> or if it doesn't match anything, the default is selected.
>=20
> The case where a client attempts to resume a session without
> sending an SNI is a problem for the client to fix.  It can not
> assume the session will be resumed, so it isn't providing enough
> information to the server.
>=20
> I just checked my code and if the client omits the SNI on resume,
> it will force a full handshake using the default virtual server
> (if configured).
>

=20
> Mike

From mike-list@pobox.com  Tue May 18 08:50:45 2010
Return-Path: <mike-list@pobox.com>
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 1E97D3A6A64 for <tls@core3.amsl.com>; Tue, 18 May 2010 08:50:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.98
X-Spam-Level: 
X-Spam-Status: No, score=-1.98 tagged_above=-999 required=5 tests=[AWL=0.619,  BAYES_00=-2.599]
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 BfiviDHHPcQc for <tls@core3.amsl.com>; Tue, 18 May 2010 08:50:44 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 4C58B3A6A86 for <tls@ietf.org>; Tue, 18 May 2010 08:50:32 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 4285AB4D9E; Tue, 18 May 2010 11:50:24 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=VDLRwA5bkqSx KPlc1iAuxa/rRP0=; b=GpNmzQKv25EmPaHJbTNosnDIw5jaaLObDCn0r5zWW0O4 4glqIs7OSwsDM1pH+RWPlfYCn3xZdBKeUcgGs2pM+HzM1jOk67Dst/4nbH8uDa6E F0psJWFFMETbxknN+NHcyT2QoQdQQ2M+bWTIC3iOPjY8h7Ggr95gUJB52e6XRis=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=JA6UTx ddpYXbBHuplnZ//W0w2cMuK5oqM/2HhtuWo5f9HPOfR+tP33ZpSKn+WBqb9/M9zu yhZbaiy6MLHDxMKzIezAJmiSFP8hMad2veiTngpOWYHFa6/VI5l7/IsfhVZUqai6 ZrEvycOSykD91g4TUbluuH4Z28i0x2cfvsn5E=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 1039CB4D9D; Tue, 18 May 2010 11:50:21 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 64927B4D9C; Tue, 18 May 2010 11:50:15 -0400 (EDT)
Message-ID: <4BF2B736.50708@pobox.com>
Date: Tue, 18 May 2010 08:50:14 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A67C235@xmb-sjc-225.amer.cisco.com> from "Joseph Salowey" at May 16, 10 09:43:08 pm <201005171321.o4HDLgmX018711@fs4113.wdf.sap.corp> <AC1CFD94F59A264488DC2BEC3E890DE50A67C2D6@xmb-sjc-225.amer.cisco.com> <4BF170FE.9090506@pobox.com> <AC1CFD94F59A264488DC2BEC3E890DE50A67C355@xmb-sjc-225.amer.cisco.com> <4BF18D96.5040602@pobox.com> <AC1CFD94F59A264488DC2BEC3E890DE50A67C6D0@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A67C6D0@xmb-sjc-225.amer.cisco.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 107801B6-6295-11DF-A333-D033EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Proposed changes to draft-ietf-tls-rfc4366-bis
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: Tue, 18 May 2010 15:50:45 -0000

Joseph Salowey (jsalowey) wrote:
> 
> "When the server resumes a session, the server_name extension may be
> used in the lookup of the session in the session cache.  The client MUST
> include the same server_name extension during session resumption as it
> did in the full handshake that established the session. If the
> server_name extension differs from what was included in the original
> handshake the server MUST NOT allow the session to be resumed.  Instead,
> it proceeds with a full handshake to establish a new session. When
> resuming a session, the server MUST NOT include a server_name extension
> in the server hello." 

Your proposed text looks good.

Mike

From stefan@aaa-sec.com  Wed May 19 06:47:06 2010
Return-Path: <stefan@aaa-sec.com>
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 0E5013A6C21 for <tls@core3.amsl.com>; Wed, 19 May 2010 06:47:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.349
X-Spam-Level: 
X-Spam-Status: No, score=-0.349 tagged_above=-999 required=5 tests=[AWL=0.300,  BAYES_50=0.001, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 r-zQqFYJI3w1 for <tls@core3.amsl.com>; Wed, 19 May 2010 06:47:05 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id 335E73A6C22 for <tls@ietf.org>; Wed, 19 May 2010 06:43:08 -0700 (PDT)
Received: from s128.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 04A8429C344 for <tls@ietf.org>; Wed, 19 May 2010 15:42:44 +0200 (CEST)
Received: (qmail 85686 invoked from network); 19 May 2010 13:42:38 -0000
Received: from unknown (HELO [192.168.1.3]) (stefan@fiddler.nu@[85.235.2.114]) (envelope-sender <stefan@aaa-sec.com>) by s128.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <stefan@aaa-sec.com>; 19 May 2010 13:42:38 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Wed, 19 May 2010 15:42:37 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: Stefan Santesson <stefan@aaa-sec.com>, <mrex@sap.com>, Joseph Salowey <jsalowey@cisco.com>
Message-ID: <C819B76D.AF2B%stefan@aaa-sec.com>
Thread-Topic: [TLS] Wrapping up cached info
Thread-Index: Acr2AF8iO6bF6i2yM0up48R7QWj7GQAD0o9pAFJeyFw=
In-Reply-To: <C8178EA6.AE48%stefan@aaa-sec.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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, 19 May 2010 13:47:06 -0000

Not sure how I should interpret the silence?

I guess it means that everyone agrees with me :)

To repeat in short. Here is what I suggest based on the latest traffic:

1) A client, caching information also caches what hash algorithm was used to
calculate the finished message at the time of caching.

2) On repeated connections, the client indicate cached info by sending a
hash of the cached object using the cached hash algorithm. (No use of FNV
hash)

3) The server accepts by returning the received hash instead of the cached
data.

4) The only hash agility provided is that the client will send a hash
algorithm identifier with the hash.

5) The client MUST NOT send more than one hash per cached object, and MUST
used the cached hash algorithm.


This solves all issues raised (securely binds the cached data to the
finished calculation) and removes the need for hash agility
Syntactically it just requires adding a hash identifier and adjusting the
vector length for hash data.

So I basically wander:
- Would this be acceptable?
- Who could NOT live with this solution?
- Who think it is worth the effort to agree on a better solution, and why?

Regards
 



On 10-05-18 12:24 AM, "Stefan Santesson" <stefan@aaa-sec.com> wrote:

> As Martin pointed out to me privately, the hash used in the finished
> calculation becomes known to the client only after receiving the serer
> hello.
> 
> It would therefore be natural for the client to use the hash function used
> to calculate the finished message at the time when the data was cached.
> 
> The client would then indicate which hash algorithm it used and upon
> acceptance, the server will honor the request.
> 
> /Stefan
> 
> 
> On 10-05-17 10:34 PM, "Stefan Santesson" <stefan@aaa-sec.com> wrote:
> 
>> Guys,
>> 
>> Where I come from we have a say "don't cross the river to get to the water".
>> And to me this proposal to change the finished calculation is just that.
>> 
>> Look at it.
>> 
>> The proposal is to bind the cached data by adding a hash of the cached data
>> to the finished calculation.
>> 
>> The proposal is further to avoid hash agility by picking the hash algorithm
>> used by TLS's Finished message computation.
>> 
>> 
>> Now there are two ways to achieve this goal.
>> 
>> 1) The crossing the river to get water approach:  Exchange FNV hashes of the
>> cached data in the handshake protocol exchange and then inject hashes of the
>> same data into the finished calculation through an alteration of the TLS
>> protocol.
>> 
>> 
>> 2) The simple approach: Use the hash algorithm of the finished calculation
>> to hash the cached data (according to the current draft).
>> 
>> 
>> Alternative 2 securely bind the hashed data into the finished message
>> calculation without altering the algorithm.
>> 
>> Alternative 2 requires at most a hash algorithm identifier added to the
>> protocol, if at all. We don't need to add negotiation since we always use
>> the hash of the finished message calculation. Adding this identifier would
>> be the only change made to the current draft.
>> 
>> Alternative 2 don't require additional security analysis. If the hash used
>> to calculate the finished message is broken, then we are screwed anyway.
>> 
>> /Stefan
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> On 10-05-17 9:16 PM, "Martin Rex" <mrex@sap.com> wrote:
>> 
>>> Joseph Salowey wrote:
>>>> 
>>>> I agree with Uri, that if you determine you need SHA-256 then you should
>>>> plan for hash agility.  TLS 1.2 plans for hash agility.
>>>> 
>>>> What about Nico's proposal where a checksum is used to identify the
>>>> cached data and the actual handshake contains the actual data hashed
>>>> with the algorithm used in the PRF negotiated with the cipher suite?
>>>> 
>>>> This way we don't have to introduce hash agility into the extension, but
>>>> we have cryptographic hash agility where it matters in the Finished
>>>> computation.  Does it solve the problem?
>>> 
>>> Yes, I think so.
>>> This approach should solve the issue at the technical level.
>>> 
>>> Going more into detail, one would hash/mac only the data that got
>>> actually replaced in the handshake, each prefixed by a (locally computed)
>>> length field.
>>> 
>>> -Martin
>>> _______________________________________________
>>> TLS mailing list
>>> TLS@ietf.org
>>> https://www.ietf.org/mailman/listinfo/tls
>> 
>> 
>> _______________________________________________
>> TLS mailing list
>> TLS@ietf.org
>> https://www.ietf.org/mailman/listinfo/tls
> 
> 



From jsalowey@cisco.com  Wed May 19 07:20:56 2010
Return-Path: <jsalowey@cisco.com>
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 302C83A6C74 for <tls@core3.amsl.com>; Wed, 19 May 2010 07:20:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.779
X-Spam-Level: 
X-Spam-Status: No, score=-8.779 tagged_above=-999 required=5 tests=[AWL=-0.780, BAYES_50=0.001, RCVD_IN_DNSWL_HI=-8]
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 ieNO0rSpE9cT for <tls@core3.amsl.com>; Wed, 19 May 2010 07:20:54 -0700 (PDT)
Received: from sj-iport-1.cisco.com (sj-iport-1.cisco.com [171.71.176.70]) by core3.amsl.com (Postfix) with ESMTP id AD4B128C0E5 for <tls@ietf.org>; Wed, 19 May 2010 07:19:12 -0700 (PDT)
Authentication-Results: sj-iport-1.cisco.com; dkim=neutral (message not signed) header.i=none
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvsEADOQ80urR7Ht/2dsb2JhbACeFXGjZpl1glmCNwSDQA
X-IronPort-AV: E=Sophos;i="4.53,263,1272844800"; d="scan'208";a="327392775"
Received: from sj-core-1.cisco.com ([171.71.177.237]) by sj-iport-1.cisco.com with ESMTP; 19 May 2010 14:19:02 +0000
Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com [128.107.191.63]) by sj-core-1.cisco.com (8.13.8/8.14.3) with ESMTP id o4JEJ2Lt022849; Wed, 19 May 2010 14:19:02 GMT
Received: from xmb-sjc-225.amer.cisco.com ([128.107.191.38]) by xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.3959);  Wed, 19 May 2010 07:19:02 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Wed, 19 May 2010 07:19:00 -0700
Message-ID: <AC1CFD94F59A264488DC2BEC3E890DE50A67CBEF@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <C819B76D.AF2B%stefan@aaa-sec.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] Wrapping up cached info
Thread-Index: Acr2AF8iO6bF6i2yM0up48R7QWj7GQAD0o9pAFJeyFwAAPJioA==
References: <C8178EA6.AE48%stefan@aaa-sec.com> <C819B76D.AF2B%stefan@aaa-sec.com>
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: "Stefan Santesson" <stefan@aaa-sec.com>, <mrex@sap.com>
X-OriginalArrivalTime: 19 May 2010 14:19:02.0169 (UTC) FILETIME=[3AF65890:01CAF75E]
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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, 19 May 2010 14:20:56 -0000

Hi Stefan,

To me this sounds like a good approach.  I have some questions on
whether the hash chosen is dependent upon the cipher suite used below.


> -----Original Message-----
> From: Stefan Santesson [mailto:stefan@aaa-sec.com]
> Sent: Wednesday, May 19, 2010 6:43 AM
> To: Stefan Santesson; mrex@sap.com; Joseph Salowey (jsalowey)
> Cc: tls@ietf.org
> Subject: Re: [TLS] Wrapping up cached info
>=20
> Not sure how I should interpret the silence?
>=20
> I guess it means that everyone agrees with me :)
>=20
> To repeat in short. Here is what I suggest based on the latest
traffic:
>=20
> 1) A client, caching information also caches what hash algorithm was
used
> to
> calculate the finished message at the time of caching.
>=20
[Joe] Will this be the same as the hash function used in the PRF of the
cipher suite?  It seems that using the same hash might make security
analysis a little easier.=20

> 2) On repeated connections, the client indicate cached info by sending
a
> hash of the cached object using the cached hash algorithm. (No use of
FNV
> hash)
>=20
> 3) The server accepts by returning the received hash instead of the
cached
> data.
>=20
[Joe] In the event that a different cipher suite is used with a
different hash would the cached hash still be valid? =20

> 4) The only hash agility provided is that the client will send a hash
> algorithm identifier with the hash.
>=20
[Joe] This seems sufficient.=20

> 5) The client MUST NOT send more than one hash per cached object, and
MUST
> used the cached hash algorithm.
>=20
>=20
> This solves all issues raised (securely binds the cached data to the
> finished calculation) and removes the need for hash agility
> Syntactically it just requires adding a hash identifier and adjusting
the
> vector length for hash data.
>=20
> So I basically wander:
> - Would this be acceptable?
> - Who could NOT live with this solution?
> - Who think it is worth the effort to agree on a better solution, and
why?
>=20
> Regards
>=20
>=20
>=20
>=20
> On 10-05-18 12:24 AM, "Stefan Santesson" <stefan@aaa-sec.com> wrote:
>=20
> > As Martin pointed out to me privately, the hash used in the finished
> > calculation becomes known to the client only after receiving the
serer
> > hello.
> >
> > It would therefore be natural for the client to use the hash
function
> used
> > to calculate the finished message at the time when the data was
cached.
> >
> > The client would then indicate which hash algorithm it used and upon
> > acceptance, the server will honor the request.
> >
> > /Stefan
> >
> >
> > On 10-05-17 10:34 PM, "Stefan Santesson" <stefan@aaa-sec.com> wrote:
> >
> >> Guys,
> >>
> >> Where I come from we have a say "don't cross the river to get to
the
> water".
> >> And to me this proposal to change the finished calculation is just
> that.
> >>
> >> Look at it.
> >>
> >> The proposal is to bind the cached data by adding a hash of the
cached
> data
> >> to the finished calculation.
> >>
> >> The proposal is further to avoid hash agility by picking the hash
> algorithm
> >> used by TLS's Finished message computation.
> >>
> >>
> >> Now there are two ways to achieve this goal.
> >>
> >> 1) The crossing the river to get water approach:  Exchange FNV
hashes
> of the
> >> cached data in the handshake protocol exchange and then inject
hashes
> of the
> >> same data into the finished calculation through an alteration of
the
> TLS
> >> protocol.
> >>
> >>
> >> 2) The simple approach: Use the hash algorithm of the finished
> calculation
> >> to hash the cached data (according to the current draft).
> >>
> >>
> >> Alternative 2 securely bind the hashed data into the finished
message
> >> calculation without altering the algorithm.
> >>
> >> Alternative 2 requires at most a hash algorithm identifier added to
the
> >> protocol, if at all. We don't need to add negotiation since we
always
> use
> >> the hash of the finished message calculation. Adding this
identifier
> would
> >> be the only change made to the current draft.
> >>
> >> Alternative 2 don't require additional security analysis. If the
hash
> used
> >> to calculate the finished message is broken, then we are screwed
> anyway.
> >>
> >> /Stefan
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> On 10-05-17 9:16 PM, "Martin Rex" <mrex@sap.com> wrote:
> >>
> >>> Joseph Salowey wrote:
> >>>>
> >>>> I agree with Uri, that if you determine you need SHA-256 then you
> should
> >>>> plan for hash agility.  TLS 1.2 plans for hash agility.
> >>>>
> >>>> What about Nico's proposal where a checksum is used to identify
the
> >>>> cached data and the actual handshake contains the actual data
hashed
> >>>> with the algorithm used in the PRF negotiated with the cipher
suite?
> >>>>
> >>>> This way we don't have to introduce hash agility into the
extension,
> but
> >>>> we have cryptographic hash agility where it matters in the
Finished
> >>>> computation.  Does it solve the problem?
> >>>
> >>> Yes, I think so.
> >>> This approach should solve the issue at the technical level.
> >>>
> >>> Going more into detail, one would hash/mac only the data that got
> >>> actually replaced in the handshake, each prefixed by a (locally
> computed)
> >>> length field.
> >>>
> >>> -Martin
> >>> _______________________________________________
> >>> TLS mailing list
> >>> TLS@ietf.org
> >>> https://www.ietf.org/mailman/listinfo/tls
> >>
> >>
> >> _______________________________________________
> >> TLS mailing list
> >> TLS@ietf.org
> >> https://www.ietf.org/mailman/listinfo/tls
> >
> >
>=20


From stefan@aaa-sec.com  Wed May 19 07:34:41 2010
Return-Path: <stefan@aaa-sec.com>
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 ACE243A68CC for <tls@core3.amsl.com>; Wed, 19 May 2010 07:34:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.343
X-Spam-Level: 
X-Spam-Status: No, score=-1.343 tagged_above=-999 required=5 tests=[AWL=-0.694, BAYES_50=0.001, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 Oi1ShV9epEAd for <tls@core3.amsl.com>; Wed, 19 May 2010 07:34:40 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id DA8E93A69F6 for <tls@ietf.org>; Wed, 19 May 2010 07:34:36 -0700 (PDT)
Received: from s42.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 7FC002919CB for <tls@ietf.org>; Wed, 19 May 2010 16:32:07 +0200 (CEST)
Received: (qmail 16418 invoked from network); 19 May 2010 14:32:01 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.8]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s42.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <jsalowey@cisco.com>; 19 May 2010 14:32:01 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Wed, 19 May 2010 16:32:00 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>, <mrex@sap.com>
Message-ID: <C819C300.AF39%stefan@aaa-sec.com>
Thread-Topic: [TLS] Wrapping up cached info
Thread-Index: Acr2AF8iO6bF6i2yM0up48R7QWj7GQAD0o9pAFJeyFwAAPJioAAAxyPM
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A67CBEF@xmb-sjc-225.amer.cisco.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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, 19 May 2010 14:34:41 -0000

The thought is that you would apply the same rules as you do when choosing
hah for the finished calculation.

To the extent that choice is dependent on the prf, then choice of this hash
will also be dependent on the prf.

There is no reason to chose any different hash algorithm than the one used
for the finished calculation since the security aspects of this is tied to
the finished calculation anyway. That is, you can't do better than the hash
of the finished calculation, and if you pick the same hash, you can't do
worse. Analysis is therefore easy.

Since the hash chosen to calculate the finished message is known only after
receiving the server hello, the client have to choose the one used on a
previous handshake, i.e. The one when the data was cached.

Yes, I think it would be OK for the server to not accept the choice of a
hash algorithm if it is less secure than the one used in the finished
calculation, but I see no reason to demand it. It could be left to the
server to decide based on local policy, but I would not object to require
the server to reject the cached data if that is the general preference.

/Stefan








On 10-05-19 4:19 PM, "Joseph Salowey (jsalowey)" <jsalowey@cisco.com> wrote:

> Hi Stefan,
> 
> To me this sounds like a good approach.  I have some questions on
> whether the hash chosen is dependent upon the cipher suite used below.
> 
> 
>> -----Original Message-----
>> From: Stefan Santesson [mailto:stefan@aaa-sec.com]
>> Sent: Wednesday, May 19, 2010 6:43 AM
>> To: Stefan Santesson; mrex@sap.com; Joseph Salowey (jsalowey)
>> Cc: tls@ietf.org
>> Subject: Re: [TLS] Wrapping up cached info
>> 
>> Not sure how I should interpret the silence?
>> 
>> I guess it means that everyone agrees with me :)
>> 
>> To repeat in short. Here is what I suggest based on the latest
> traffic:
>> 
>> 1) A client, caching information also caches what hash algorithm was
> used
>> to
>> calculate the finished message at the time of caching.
>> 
> [Joe] Will this be the same as the hash function used in the PRF of the
> cipher suite?  It seems that using the same hash might make security
> analysis a little easier.
> 
>> 2) On repeated connections, the client indicate cached info by sending
> a
>> hash of the cached object using the cached hash algorithm. (No use of
> FNV
>> hash)
>> 
>> 3) The server accepts by returning the received hash instead of the
> cached
>> data.
>> 
> [Joe] In the event that a different cipher suite is used with a
> different hash would the cached hash still be valid?
> 
>> 4) The only hash agility provided is that the client will send a hash
>> algorithm identifier with the hash.
>> 
> [Joe] This seems sufficient.
> 
>> 5) The client MUST NOT send more than one hash per cached object, and
> MUST
>> used the cached hash algorithm.
>> 
>> 
>> This solves all issues raised (securely binds the cached data to the
>> finished calculation) and removes the need for hash agility
>> Syntactically it just requires adding a hash identifier and adjusting
> the
>> vector length for hash data.
>> 
>> So I basically wander:
>> - Would this be acceptable?
>> - Who could NOT live with this solution?
>> - Who think it is worth the effort to agree on a better solution, and
> why?
>> 
>> Regards
>> 
>> 
>> 
>> 
>> On 10-05-18 12:24 AM, "Stefan Santesson" <stefan@aaa-sec.com> wrote:
>> 
>>> As Martin pointed out to me privately, the hash used in the finished
>>> calculation becomes known to the client only after receiving the
> serer
>>> hello.
>>> 
>>> It would therefore be natural for the client to use the hash
> function
>> used
>>> to calculate the finished message at the time when the data was
> cached.
>>> 
>>> The client would then indicate which hash algorithm it used and upon
>>> acceptance, the server will honor the request.
>>> 
>>> /Stefan
>>> 
>>> 
>>> On 10-05-17 10:34 PM, "Stefan Santesson" <stefan@aaa-sec.com> wrote:
>>> 
>>>> Guys,
>>>> 
>>>> Where I come from we have a say "don't cross the river to get to
> the
>> water".
>>>> And to me this proposal to change the finished calculation is just
>> that.
>>>> 
>>>> Look at it.
>>>> 
>>>> The proposal is to bind the cached data by adding a hash of the
> cached
>> data
>>>> to the finished calculation.
>>>> 
>>>> The proposal is further to avoid hash agility by picking the hash
>> algorithm
>>>> used by TLS's Finished message computation.
>>>> 
>>>> 
>>>> Now there are two ways to achieve this goal.
>>>> 
>>>> 1) The crossing the river to get water approach:  Exchange FNV
> hashes
>> of the
>>>> cached data in the handshake protocol exchange and then inject
> hashes
>> of the
>>>> same data into the finished calculation through an alteration of
> the
>> TLS
>>>> protocol.
>>>> 
>>>> 
>>>> 2) The simple approach: Use the hash algorithm of the finished
>> calculation
>>>> to hash the cached data (according to the current draft).
>>>> 
>>>> 
>>>> Alternative 2 securely bind the hashed data into the finished
> message
>>>> calculation without altering the algorithm.
>>>> 
>>>> Alternative 2 requires at most a hash algorithm identifier added to
> the
>>>> protocol, if at all. We don't need to add negotiation since we
> always
>> use
>>>> the hash of the finished message calculation. Adding this
> identifier
>> would
>>>> be the only change made to the current draft.
>>>> 
>>>> Alternative 2 don't require additional security analysis. If the
> hash
>> used
>>>> to calculate the finished message is broken, then we are screwed
>> anyway.
>>>> 
>>>> /Stefan
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> On 10-05-17 9:16 PM, "Martin Rex" <mrex@sap.com> wrote:
>>>> 
>>>>> Joseph Salowey wrote:
>>>>>> 
>>>>>> I agree with Uri, that if you determine you need SHA-256 then you
>> should
>>>>>> plan for hash agility.  TLS 1.2 plans for hash agility.
>>>>>> 
>>>>>> What about Nico's proposal where a checksum is used to identify
> the
>>>>>> cached data and the actual handshake contains the actual data
> hashed
>>>>>> with the algorithm used in the PRF negotiated with the cipher
> suite?
>>>>>> 
>>>>>> This way we don't have to introduce hash agility into the
> extension,
>> but
>>>>>> we have cryptographic hash agility where it matters in the
> Finished
>>>>>> computation.  Does it solve the problem?
>>>>> 
>>>>> Yes, I think so.
>>>>> This approach should solve the issue at the technical level.
>>>>> 
>>>>> Going more into detail, one would hash/mac only the data that got
>>>>> actually replaced in the handshake, each prefixed by a (locally
>> computed)
>>>>> length field.
>>>>> 
>>>>> -Martin
>>>>> _______________________________________________
>>>>> TLS mailing list
>>>>> TLS@ietf.org
>>>>> https://www.ietf.org/mailman/listinfo/tls
>>>> 
>>>> 
>>>> _______________________________________________
>>>> TLS mailing list
>>>> TLS@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/tls
>>> 
>>> 
>> 
> 



From mike-list@pobox.com  Wed May 19 08:03:11 2010
Return-Path: <mike-list@pobox.com>
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 2B5113A68C5 for <tls@core3.amsl.com>; Wed, 19 May 2010 08:03:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.712
X-Spam-Level: 
X-Spam-Status: No, score=-0.712 tagged_above=-999 required=5 tests=[AWL=-0.713, BAYES_50=0.001]
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 0sHfCWAHdxon for <tls@core3.amsl.com>; Wed, 19 May 2010 08:03:06 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 5E55E3A66B4 for <tls@ietf.org>; Wed, 19 May 2010 08:03:06 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id F36A5B4698; Wed, 19 May 2010 11:02:58 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=g5pKl6rX/BAY qLK9PFGr8gAtiQk=; b=oBvJYFc5rnUq3V6Bh0YxMGBv52pLpYGqcdG67TAhS9cs U8ZZp46tVkLTjyqhwVI2FdEgYSFhbcad9E5GBWRbnATw0MhGA2N57bI3VZhLgYv9 JeIBkRbLVmLMciXl0J/IlZRj7l6cslzkY8z/VK5QjoLNLPgpcYzLXtSLBfqqyRM=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=faD2dL rpnKVkMSvzkqEo+QNX6/aqGwUL+Jvs6d4Cgz7WVCN0OiWhrtEcGK7kS5kkrD1dgG cq2iSytFBaOKgJ9I6FKyeP8NTmFfiuFOUU2j0kd0px91Q7/7mNCtUEgPh48OjN4L QVa1jlKTjVLQB0kKGAE70nW8vwUu0vZCvZ4kY=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id D952AB4697; Wed, 19 May 2010 11:02:57 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id C93A9B468F; Wed, 19 May 2010 11:02:55 -0400 (EDT)
Message-ID: <4BF3FD9C.3040206@pobox.com>
Date: Wed, 19 May 2010 08:02:52 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: Stefan Santesson <stefan@aaa-sec.com>
References: <C819B76D.AF2B%stefan@aaa-sec.com>
In-Reply-To: <C819B76D.AF2B%stefan@aaa-sec.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 9C37A81A-6357-11DF-B8C9-D033EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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, 19 May 2010 15:03:11 -0000

Stefan Santesson wrote:
> Not sure how I should interpret the silence?
> 
> I guess it means that everyone agrees with me :)

Then by that logic everyone also agrees with me to use http caching
as the model!

Seriously, I think that the current draft might be too simple.  For
example, consider caching the list of certificate_authorities in a
CertificateRequest message.  A web application might have several
different lists of certificate_authorities based on what the resource
is and who is trying to access it.  If cached-info can only cache one
object of any particular type, then it will not be very helpful for
such an application.

Also, exactly how would you hash the Diffie-Hellman parameters in a
ServerKeyExchange message?  You can't just hash the message since it
also contains a unique Ys which changes frequently if not every
handshake.

Allowing the server to instead name the objects, and keep track of
timestamps for each object, allows you to handle these two cases.  In
the multiple-CA-list example above, the server might have USER and
ADMIN lists.  If it can't be sure when exactly those lists were
created, the timestamp can simply be when the server was started or
when it last read its configuration.

When the server forces the client to renegotiate when accessing a
protected resource as an ADMIN for example, the server's cached info
extension would contain:

     type=cert_req_ca_list,name=ADMIN,timestamp=20100519123456789

When requesting a less-sensitive, but not public resource, the server
would send:

     type=cert_req_ca_list,name=USER,timestamp=20100519123456789

If the client's cached-info extension contained an exact match, then
the server would omit that data from the handshake.

This is sort of like cipher suite selection.  The client sends a list
of possible matches and the server selects one from the list.  It
differs in that there might be no match, in which case the server just
sends the info for the object it decided to send in the handshake.

I'm sure there are more details to be worked out, but I think it would
be a good idea to entertain this approach.

Mike



> To repeat in short. Here is what I suggest based on the latest traffic:
> 
> 1) A client, caching information also caches what hash algorithm was used to
> calculate the finished message at the time of caching.
> 
> 2) On repeated connections, the client indicate cached info by sending a
> hash of the cached object using the cached hash algorithm. (No use of FNV
> hash)
> 
> 3) The server accepts by returning the received hash instead of the cached
> data.
> 
> 4) The only hash agility provided is that the client will send a hash
> algorithm identifier with the hash.
> 
> 5) The client MUST NOT send more than one hash per cached object, and MUST
> used the cached hash algorithm.
> 
> 
> This solves all issues raised (securely binds the cached data to the
> finished calculation) and removes the need for hash agility
> Syntactically it just requires adding a hash identifier and adjusting the
> vector length for hash data.
> 
> So I basically wander:
> - Would this be acceptable?
> - Who could NOT live with this solution?
> - Who think it is worth the effort to agree on a better solution, and why?
> 
> Regards
>  
> 
> 
> 
> On 10-05-18 12:24 AM, "Stefan Santesson" <stefan@aaa-sec.com> wrote:
> 
>> As Martin pointed out to me privately, the hash used in the finished
>> calculation becomes known to the client only after receiving the serer
>> hello.
>>
>> It would therefore be natural for the client to use the hash function used
>> to calculate the finished message at the time when the data was cached.
>>
>> The client would then indicate which hash algorithm it used and upon
>> acceptance, the server will honor the request.
>>
>> /Stefan
>>
>>
>> On 10-05-17 10:34 PM, "Stefan Santesson" <stefan@aaa-sec.com> wrote:
>>
>>> Guys,
>>>
>>> Where I come from we have a say "don't cross the river to get to the water".
>>> And to me this proposal to change the finished calculation is just that.
>>>
>>> Look at it.
>>>
>>> The proposal is to bind the cached data by adding a hash of the cached data
>>> to the finished calculation.
>>>
>>> The proposal is further to avoid hash agility by picking the hash algorithm
>>> used by TLS's Finished message computation.
>>>
>>>
>>> Now there are two ways to achieve this goal.
>>>
>>> 1) The crossing the river to get water approach:  Exchange FNV hashes of the
>>> cached data in the handshake protocol exchange and then inject hashes of the
>>> same data into the finished calculation through an alteration of the TLS
>>> protocol.
>>>
>>>
>>> 2) The simple approach: Use the hash algorithm of the finished calculation
>>> to hash the cached data (according to the current draft).
>>>
>>>
>>> Alternative 2 securely bind the hashed data into the finished message
>>> calculation without altering the algorithm.
>>>
>>> Alternative 2 requires at most a hash algorithm identifier added to the
>>> protocol, if at all. We don't need to add negotiation since we always use
>>> the hash of the finished message calculation. Adding this identifier would
>>> be the only change made to the current draft.
>>>
>>> Alternative 2 don't require additional security analysis. If the hash used
>>> to calculate the finished message is broken, then we are screwed anyway.
>>>
>>> /Stefan
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On 10-05-17 9:16 PM, "Martin Rex" <mrex@sap.com> wrote:
>>>
>>>> Joseph Salowey wrote:
>>>>> I agree with Uri, that if you determine you need SHA-256 then you should
>>>>> plan for hash agility.  TLS 1.2 plans for hash agility.
>>>>>
>>>>> What about Nico's proposal where a checksum is used to identify the
>>>>> cached data and the actual handshake contains the actual data hashed
>>>>> with the algorithm used in the PRF negotiated with the cipher suite?
>>>>>
>>>>> This way we don't have to introduce hash agility into the extension, but
>>>>> we have cryptographic hash agility where it matters in the Finished
>>>>> computation.  Does it solve the problem?
>>>> Yes, I think so.
>>>> This approach should solve the issue at the technical level.
>>>>
>>>> Going more into detail, one would hash/mac only the data that got
>>>> actually replaced in the handshake, each prefixed by a (locally computed)
>>>> length field.
>>>>
>>>> -Martin
>>>> _______________________________________________
>>>> TLS mailing list
>>>> TLS@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/tls
>>>
>>> _______________________________________________
>>> TLS mailing list
>>> TLS@ietf.org
>>> https://www.ietf.org/mailman/listinfo/tls
>>
> 
> 
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
> 

From marsh@extendedsubset.com  Wed May 19 09:01:32 2010
Return-Path: <marsh@extendedsubset.com>
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 0BC2E3A6C14 for <tls@core3.amsl.com>; Wed, 19 May 2010 09:01:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.405
X-Spam-Level: 
X-Spam-Status: No, score=-0.405 tagged_above=-999 required=5 tests=[AWL=-0.406, BAYES_50=0.001]
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 Q6C3t+QnRYG0 for <tls@core3.amsl.com>; Wed, 19 May 2010 09:01:28 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id 401D33A6B89 for <tls@ietf.org>; Wed, 19 May 2010 09:01:26 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OElhu-000C2O-Oy for tls@ietf.org; Wed, 19 May 2010 16:01:18 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id C537C6048 for <tls@ietf.org>; Wed, 19 May 2010 16:01:17 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1/VLMOjrd+p5kdSsaC3g1cIg64e/3yIRzg=
Message-ID: <4BF40B4E.20702@extendedsubset.com>
Date: Wed, 19 May 2010 11:01:18 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: tls@ietf.org
References: <C819B76D.AF2B%stefan@aaa-sec.com> <4BF3FD9C.3040206@pobox.com>
In-Reply-To: <4BF3FD9C.3040206@pobox.com>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [TLS] Wrapping up cached info
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, 19 May 2010 16:01:32 -0000

On 5/19/2010 10:02 AM, Michael D'Errico wrote:
> Stefan Santesson wrote:
>> Not sure how I should interpret the silence?
>>
>> I guess it means that everyone agrees with me :)
> 
> Then by that logic everyone also agrees with me to use http caching
> as the model!

Then by that logic, everyone agrees with everyone. Problem solved!

HTTP caching:
http://tools.ietf.org/html/rfc2616#section-13

> Seriously, I think that the current draft might be too simple.

I am more concerned that it will become too complex!

> For
> example, consider caching the list of certificate_authorities in a
> CertificateRequest message.  A web application might have several
> different lists of certificate_authorities based on what the resource
> is and who is trying to access it.

Web servers can certainly be configured that way.

> If cached-info can only cache one
> object of any particular type, then it will not be very helpful for
> such an application.

Can we agree on the explicit non-requirement that the solution must work
for everything?

> Also, exactly how would you hash the Diffie-Hellman parameters in a
> ServerKeyExchange message?  You can't just hash the message since it
> also contains a unique Ys which changes frequently if not every
> handshake.

Should we even try?

> Allowing the server to instead name the objects, and keep track of
> timestamps for each object, allows you to handle these two cases.

Go read the specs and mailing lists for HTTP caching. (I bet you have
already :-)

Having names, timestamps, invalidation rules, etc can introduce a little
bit of complexity.

http://www.google.com/search?q=squid+cache+weird+problem
http://www.google.com/search?q=squid+cache+strange+problem

> In
> the multiple-CA-list example above, the server might have USER and
> ADMIN lists.  If it can't be sure when exactly those lists were
> created, the timestamp can simply be when the server was started or
> when it last read its configuration.

Does this introduce a new requirement for clients and/or servers to
maintain an accurate clock?

What failure modes are possible when a clock is not accurate?

- Marsh




> When the server forces the client to renegotiate when accessing a
> protected resource as an ADMIN for example, the server's cached info
> extension would contain:
> 
>     type=cert_req_ca_list,name=ADMIN,timestamp=20100519123456789
> 
> When requesting a less-sensitive, but not public resource, the server
> would send:
> 
>     type=cert_req_ca_list,name=USER,timestamp=20100519123456789
> 
> If the client's cached-info extension contained an exact match, then
> the server would omit that data from the handshake.
> 
> This is sort of like cipher suite selection.  The client sends a list
> of possible matches and the server selects one from the list.  It
> differs in that there might be no match, in which case the server just
> sends the info for the object it decided to send in the handshake.
> 
> I'm sure there are more details to be worked out, but I think it would
> be a good idea to entertain this approach.
> 
> Mike
> 
> 
> 
>> To repeat in short. Here is what I suggest based on the latest traffic:
>>
>> 1) A client, caching information also caches what hash algorithm was
>> used to
>> calculate the finished message at the time of caching.
>>
>> 2) On repeated connections, the client indicate cached info by sending a
>> hash of the cached object using the cached hash algorithm. (No use of FNV
>> hash)
>>
>> 3) The server accepts by returning the received hash instead of the
>> cached
>> data.
>>
>> 4) The only hash agility provided is that the client will send a hash
>> algorithm identifier with the hash.
>>
>> 5) The client MUST NOT send more than one hash per cached object, and
>> MUST
>> used the cached hash algorithm.
>>
>>
>> This solves all issues raised (securely binds the cached data to the
>> finished calculation) and removes the need for hash agility
>> Syntactically it just requires adding a hash identifier and adjusting the
>> vector length for hash data.
>>
>> So I basically wander:
>> - Would this be acceptable?
>> - Who could NOT live with this solution?
>> - Who think it is worth the effort to agree on a better solution, and
>> why?
>>
>> Regards
>>  
>>
>>
>>
>> On 10-05-18 12:24 AM, "Stefan Santesson" <stefan@aaa-sec.com> wrote:
>>
>>> As Martin pointed out to me privately, the hash used in the finished
>>> calculation becomes known to the client only after receiving the serer
>>> hello.
>>>
>>> It would therefore be natural for the client to use the hash function
>>> used
>>> to calculate the finished message at the time when the data was cached.
>>>
>>> The client would then indicate which hash algorithm it used and upon
>>> acceptance, the server will honor the request.
>>>
>>> /Stefan
>>>
>>>
>>> On 10-05-17 10:34 PM, "Stefan Santesson" <stefan@aaa-sec.com> wrote:
>>>
>>>> Guys,
>>>>
>>>> Where I come from we have a say "don't cross the river to get to the
>>>> water".
>>>> And to me this proposal to change the finished calculation is just
>>>> that.
>>>>
>>>> Look at it.
>>>>
>>>> The proposal is to bind the cached data by adding a hash of the
>>>> cached data
>>>> to the finished calculation.
>>>>
>>>> The proposal is further to avoid hash agility by picking the hash
>>>> algorithm
>>>> used by TLS's Finished message computation.
>>>>
>>>>
>>>> Now there are two ways to achieve this goal.
>>>>
>>>> 1) The crossing the river to get water approach:  Exchange FNV
>>>> hashes of the
>>>> cached data in the handshake protocol exchange and then inject
>>>> hashes of the
>>>> same data into the finished calculation through an alteration of the
>>>> TLS
>>>> protocol.
>>>>
>>>>
>>>> 2) The simple approach: Use the hash algorithm of the finished
>>>> calculation
>>>> to hash the cached data (according to the current draft).
>>>>
>>>>
>>>> Alternative 2 securely bind the hashed data into the finished message
>>>> calculation without altering the algorithm.
>>>>
>>>> Alternative 2 requires at most a hash algorithm identifier added to the
>>>> protocol, if at all. We don't need to add negotiation since we
>>>> always use
>>>> the hash of the finished message calculation. Adding this identifier
>>>> would
>>>> be the only change made to the current draft.
>>>>
>>>> Alternative 2 don't require additional security analysis. If the
>>>> hash used
>>>> to calculate the finished message is broken, then we are screwed
>>>> anyway.
>>>>
>>>> /Stefan
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On 10-05-17 9:16 PM, "Martin Rex" <mrex@sap.com> wrote:
>>>>
>>>>> Joseph Salowey wrote:
>>>>>> I agree with Uri, that if you determine you need SHA-256 then you
>>>>>> should
>>>>>> plan for hash agility.  TLS 1.2 plans for hash agility.
>>>>>>
>>>>>> What about Nico's proposal where a checksum is used to identify the
>>>>>> cached data and the actual handshake contains the actual data hashed
>>>>>> with the algorithm used in the PRF negotiated with the cipher suite?
>>>>>>
>>>>>> This way we don't have to introduce hash agility into the
>>>>>> extension, but
>>>>>> we have cryptographic hash agility where it matters in the Finished
>>>>>> computation.  Does it solve the problem?
>>>>> Yes, I think so.
>>>>> This approach should solve the issue at the technical level.
>>>>>
>>>>> Going more into detail, one would hash/mac only the data that got
>>>>> actually replaced in the handshake, each prefixed by a (locally
>>>>> computed)
>>>>> length field.
>>>>>
>>>>> -Martin
>>>>> _______________________________________________
>>>>> TLS mailing list
>>>>> TLS@ietf.org
>>>>> https://www.ietf.org/mailman/listinfo/tls
>>>>
>>>> _______________________________________________
>>>> TLS mailing list
>>>> TLS@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/tls
>>>
>>
>>
>> _______________________________________________
>> TLS mailing list
>> TLS@ietf.org
>> https://www.ietf.org/mailman/listinfo/tls
>>
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls


From jsalowey@cisco.com  Wed May 19 09:19:00 2010
Return-Path: <jsalowey@cisco.com>
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 2C6403A69E3 for <tls@core3.amsl.com>; Wed, 19 May 2010 09:19:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.038
X-Spam-Level: 
X-Spam-Status: No, score=-10.038 tagged_above=-999 required=5 tests=[AWL=0.561, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
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 6Bh22bSgpYs9 for <tls@core3.amsl.com>; Wed, 19 May 2010 09:18:58 -0700 (PDT)
Received: from sj-iport-2.cisco.com (sj-iport-2.cisco.com [171.71.176.71]) by core3.amsl.com (Postfix) with ESMTP id CD2E93A6BEE for <tls@ietf.org>; Wed, 19 May 2010 09:17:53 -0700 (PDT)
Authentication-Results: sj-iport-2.cisco.com; dkim=neutral (message not signed) header.i=none
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvsEAFys80urR7Ht/2dsb2JhbACddHGkcJl2glmCNwSDQA
X-IronPort-AV: E=Sophos;i="4.53,264,1272844800"; d="scan'208";a="256781994"
Received: from sj-core-1.cisco.com ([171.71.177.237]) by sj-iport-2.cisco.com with ESMTP; 19 May 2010 16:17:44 +0000
Received: from xbh-sjc-231.amer.cisco.com (xbh-sjc-231.cisco.com [128.107.191.100]) by sj-core-1.cisco.com (8.13.8/8.14.3) with ESMTP id o4JGHiZe027130; Wed, 19 May 2010 16:17:44 GMT
Received: from xmb-sjc-225.amer.cisco.com ([128.107.191.38]) by xbh-sjc-231.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.3959);  Wed, 19 May 2010 09:17:44 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Wed, 19 May 2010 09:17:43 -0700
Message-ID: <AC1CFD94F59A264488DC2BEC3E890DE50A67CC62@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <C819C300.AF39%stefan@aaa-sec.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] Wrapping up cached info
Thread-Index: Acr2AF8iO6bF6i2yM0up48R7QWj7GQAD0o9pAFJeyFwAAPJioAAAxyPMAAOlX8A=
References: <AC1CFD94F59A264488DC2BEC3E890DE50A67CBEF@xmb-sjc-225.amer.cisco.com> <C819C300.AF39%stefan@aaa-sec.com>
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: "Stefan Santesson" <stefan@aaa-sec.com>, <mrex@sap.com>
X-OriginalArrivalTime: 19 May 2010 16:17:44.0618 (UTC) FILETIME=[D045D0A0:01CAF76E]
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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, 19 May 2010 16:19:00 -0000

If there was a short discussion of this in the document, I'd be happy
with this approach. =20

Joe

> -----Original Message-----
> From: Stefan Santesson [mailto:stefan@aaa-sec.com]
> Sent: Wednesday, May 19, 2010 7:32 AM
> To: Joseph Salowey (jsalowey); mrex@sap.com
> Cc: tls@ietf.org
> Subject: Re: [TLS] Wrapping up cached info
>=20
> The thought is that you would apply the same rules as you do when
choosing
> hah for the finished calculation.
>=20
> To the extent that choice is dependent on the prf, then choice of this
> hash
> will also be dependent on the prf.
>=20
> There is no reason to chose any different hash algorithm than the one
used
> for the finished calculation since the security aspects of this is
tied to
> the finished calculation anyway. That is, you can't do better than the
> hash
> of the finished calculation, and if you pick the same hash, you can't
do
> worse. Analysis is therefore easy.
>=20
> Since the hash chosen to calculate the finished message is known only
> after
> receiving the server hello, the client have to choose the one used on
a
> previous handshake, i.e. The one when the data was cached.
>=20
> Yes, I think it would be OK for the server to not accept the choice of
a
> hash algorithm if it is less secure than the one used in the finished
> calculation, but I see no reason to demand it. It could be left to the
> server to decide based on local policy, but I would not object to
require
> the server to reject the cached data if that is the general
preference.
>=20
> /Stefan
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
> On 10-05-19 4:19 PM, "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
> wrote:
>=20
> > Hi Stefan,
> >
> > To me this sounds like a good approach.  I have some questions on
> > whether the hash chosen is dependent upon the cipher suite used
below.
> >
> >
> >> -----Original Message-----
> >> From: Stefan Santesson [mailto:stefan@aaa-sec.com]
> >> Sent: Wednesday, May 19, 2010 6:43 AM
> >> To: Stefan Santesson; mrex@sap.com; Joseph Salowey (jsalowey)
> >> Cc: tls@ietf.org
> >> Subject: Re: [TLS] Wrapping up cached info
> >>
> >> Not sure how I should interpret the silence?
> >>
> >> I guess it means that everyone agrees with me :)
> >>
> >> To repeat in short. Here is what I suggest based on the latest
> > traffic:
> >>
> >> 1) A client, caching information also caches what hash algorithm
was
> > used
> >> to
> >> calculate the finished message at the time of caching.
> >>
> > [Joe] Will this be the same as the hash function used in the PRF of
the
> > cipher suite?  It seems that using the same hash might make security
> > analysis a little easier.
> >
> >> 2) On repeated connections, the client indicate cached info by
sending
> > a
> >> hash of the cached object using the cached hash algorithm. (No use
of
> > FNV
> >> hash)
> >>
> >> 3) The server accepts by returning the received hash instead of the
> > cached
> >> data.
> >>
> > [Joe] In the event that a different cipher suite is used with a
> > different hash would the cached hash still be valid?
> >
> >> 4) The only hash agility provided is that the client will send a
hash
> >> algorithm identifier with the hash.
> >>
> > [Joe] This seems sufficient.
> >
> >> 5) The client MUST NOT send more than one hash per cached object,
and
> > MUST
> >> used the cached hash algorithm.
> >>
> >>
> >> This solves all issues raised (securely binds the cached data to
the
> >> finished calculation) and removes the need for hash agility
> >> Syntactically it just requires adding a hash identifier and
adjusting
> > the
> >> vector length for hash data.
> >>
> >> So I basically wander:
> >> - Would this be acceptable?
> >> - Who could NOT live with this solution?
> >> - Who think it is worth the effort to agree on a better solution,
and
> > why?
> >>
> >> Regards
> >>
> >>
> >>
> >>
> >> On 10-05-18 12:24 AM, "Stefan Santesson" <stefan@aaa-sec.com>
wrote:
> >>
> >>> As Martin pointed out to me privately, the hash used in the
finished
> >>> calculation becomes known to the client only after receiving the
> > serer
> >>> hello.
> >>>
> >>> It would therefore be natural for the client to use the hash
> > function
> >> used
> >>> to calculate the finished message at the time when the data was
> > cached.
> >>>
> >>> The client would then indicate which hash algorithm it used and
upon
> >>> acceptance, the server will honor the request.
> >>>
> >>> /Stefan
> >>>
> >>>
> >>> On 10-05-17 10:34 PM, "Stefan Santesson" <stefan@aaa-sec.com>
wrote:
> >>>
> >>>> Guys,
> >>>>
> >>>> Where I come from we have a say "don't cross the river to get to
> > the
> >> water".
> >>>> And to me this proposal to change the finished calculation is
just
> >> that.
> >>>>
> >>>> Look at it.
> >>>>
> >>>> The proposal is to bind the cached data by adding a hash of the
> > cached
> >> data
> >>>> to the finished calculation.
> >>>>
> >>>> The proposal is further to avoid hash agility by picking the hash
> >> algorithm
> >>>> used by TLS's Finished message computation.
> >>>>
> >>>>
> >>>> Now there are two ways to achieve this goal.
> >>>>
> >>>> 1) The crossing the river to get water approach:  Exchange FNV
> > hashes
> >> of the
> >>>> cached data in the handshake protocol exchange and then inject
> > hashes
> >> of the
> >>>> same data into the finished calculation through an alteration of
> > the
> >> TLS
> >>>> protocol.
> >>>>
> >>>>
> >>>> 2) The simple approach: Use the hash algorithm of the finished
> >> calculation
> >>>> to hash the cached data (according to the current draft).
> >>>>
> >>>>
> >>>> Alternative 2 securely bind the hashed data into the finished
> > message
> >>>> calculation without altering the algorithm.
> >>>>
> >>>> Alternative 2 requires at most a hash algorithm identifier added
to
> > the
> >>>> protocol, if at all. We don't need to add negotiation since we
> > always
> >> use
> >>>> the hash of the finished message calculation. Adding this
> > identifier
> >> would
> >>>> be the only change made to the current draft.
> >>>>
> >>>> Alternative 2 don't require additional security analysis. If the
> > hash
> >> used
> >>>> to calculate the finished message is broken, then we are screwed
> >> anyway.
> >>>>
> >>>> /Stefan
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> On 10-05-17 9:16 PM, "Martin Rex" <mrex@sap.com> wrote:
> >>>>
> >>>>> Joseph Salowey wrote:
> >>>>>>
> >>>>>> I agree with Uri, that if you determine you need SHA-256 then
you
> >> should
> >>>>>> plan for hash agility.  TLS 1.2 plans for hash agility.
> >>>>>>
> >>>>>> What about Nico's proposal where a checksum is used to identify
> > the
> >>>>>> cached data and the actual handshake contains the actual data
> > hashed
> >>>>>> with the algorithm used in the PRF negotiated with the cipher
> > suite?
> >>>>>>
> >>>>>> This way we don't have to introduce hash agility into the
> > extension,
> >> but
> >>>>>> we have cryptographic hash agility where it matters in the
> > Finished
> >>>>>> computation.  Does it solve the problem?
> >>>>>
> >>>>> Yes, I think so.
> >>>>> This approach should solve the issue at the technical level.
> >>>>>
> >>>>> Going more into detail, one would hash/mac only the data that
got
> >>>>> actually replaced in the handshake, each prefixed by a (locally
> >> computed)
> >>>>> length field.
> >>>>>
> >>>>> -Martin
> >>>>> _______________________________________________
> >>>>> TLS mailing list
> >>>>> TLS@ietf.org
> >>>>> https://www.ietf.org/mailman/listinfo/tls
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> TLS mailing list
> >>>> TLS@ietf.org
> >>>> https://www.ietf.org/mailman/listinfo/tls
> >>>
> >>>
> >>
> >
>=20


From jsalowey@cisco.com  Wed May 19 09:21:46 2010
Return-Path: <jsalowey@cisco.com>
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 559523A6B85 for <tls@core3.amsl.com>; Wed, 19 May 2010 09:21:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.066
X-Spam-Level: 
X-Spam-Status: No, score=-10.066 tagged_above=-999 required=5 tests=[AWL=0.533, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
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 qeKwofEdQL63 for <tls@core3.amsl.com>; Wed, 19 May 2010 09:21:44 -0700 (PDT)
Received: from sj-iport-4.cisco.com (sj-iport-4.cisco.com [171.68.10.86]) by core3.amsl.com (Postfix) with ESMTP id 4F4FF3A6A58 for <tls@ietf.org>; Wed, 19 May 2010 09:21:33 -0700 (PDT)
Authentication-Results: sj-iport-4.cisco.com; dkim=neutral (message not signed) header.i=none
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvsEAAet80urR7H+/2dsb2JhbACddHGkcpl2glmCNwSDQA
X-IronPort-AV: E=Sophos;i="4.53,264,1272844800"; d="scan'208";a="131888139"
Received: from sj-core-2.cisco.com ([171.71.177.254]) by sj-iport-4.cisco.com with ESMTP; 19 May 2010 16:21:26 +0000
Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by sj-core-2.cisco.com (8.13.8/8.14.3) with ESMTP id o4JGLQ2i021209; Wed, 19 May 2010 16:21:26 GMT
Received: from xmb-sjc-225.amer.cisco.com ([128.107.191.38]) by xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.3959);  Wed, 19 May 2010 09:21:26 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Wed, 19 May 2010 09:21:25 -0700
Message-ID: <AC1CFD94F59A264488DC2BEC3E890DE50A67CC6B@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <4BF3FD9C.3040206@pobox.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] Wrapping up cached info
Thread-Index: Acr3ZG6PoJIRtjH8QaKgtLpQCL5sDwACpBJA
References: <C819B76D.AF2B%stefan@aaa-sec.com> <4BF3FD9C.3040206@pobox.com>
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: "Michael D'Errico" <mike-list@pobox.com>, "Stefan Santesson" <stefan@aaa-sec.com>
X-OriginalArrivalTime: 19 May 2010 16:21:26.0297 (UTC) FILETIME=[54675890:01CAF76F]
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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, 19 May 2010 16:21:46 -0000

This approach seems equivalent to the server assigns name approach that
has been brought up several times previously and not received enough
support to replace the current mechanism.  In addition, it doesn't seem
to solve the issue of how to hash the objects that the working group is
currently struggling with. =20

Joe

> -----Original Message-----
> From: tls-bounces@ietf.org [mailto:tls-bounces@ietf.org] On Behalf Of
> Michael D'Errico
> Sent: Wednesday, May 19, 2010 8:03 AM
> To: Stefan Santesson
> Cc: tls@ietf.org
> Subject: Re: [TLS] Wrapping up cached info
>=20
> Stefan Santesson wrote:
> > Not sure how I should interpret the silence?
> >
> > I guess it means that everyone agrees with me :)
>=20
> Then by that logic everyone also agrees with me to use http caching
> as the model!
>=20
> Seriously, I think that the current draft might be too simple.  For
> example, consider caching the list of certificate_authorities in a
> CertificateRequest message.  A web application might have several
> different lists of certificate_authorities based on what the resource
> is and who is trying to access it.  If cached-info can only cache one
> object of any particular type, then it will not be very helpful for
> such an application.
>=20
> Also, exactly how would you hash the Diffie-Hellman parameters in a
> ServerKeyExchange message?  You can't just hash the message since it
> also contains a unique Ys which changes frequently if not every
> handshake.
>=20
> Allowing the server to instead name the objects, and keep track of
> timestamps for each object, allows you to handle these two cases.  In
> the multiple-CA-list example above, the server might have USER and
> ADMIN lists.  If it can't be sure when exactly those lists were
> created, the timestamp can simply be when the server was started or
> when it last read its configuration.
>=20
> When the server forces the client to renegotiate when accessing a
> protected resource as an ADMIN for example, the server's cached info
> extension would contain:
>=20
>      =
type=3Dcert_req_ca_list,name=3DADMIN,timestamp=3D20100519123456789
>=20
> When requesting a less-sensitive, but not public resource, the server
> would send:
>=20
>      type=3Dcert_req_ca_list,name=3DUSER,timestamp=3D20100519123456789
>=20
> If the client's cached-info extension contained an exact match, then
> the server would omit that data from the handshake.
>=20
> This is sort of like cipher suite selection.  The client sends a list
> of possible matches and the server selects one from the list.  It
> differs in that there might be no match, in which case the server just
> sends the info for the object it decided to send in the handshake.
>=20
> I'm sure there are more details to be worked out, but I think it would
> be a good idea to entertain this approach.
>=20
> Mike
>=20
>=20
>=20
> > To repeat in short. Here is what I suggest based on the latest
traffic:
> >
> > 1) A client, caching information also caches what hash algorithm was
> used to
> > calculate the finished message at the time of caching.
> >
> > 2) On repeated connections, the client indicate cached info by
sending a
> > hash of the cached object using the cached hash algorithm. (No use
of
> FNV
> > hash)
> >
> > 3) The server accepts by returning the received hash instead of the
> cached
> > data.
> >
> > 4) The only hash agility provided is that the client will send a
hash
> > algorithm identifier with the hash.
> >
> > 5) The client MUST NOT send more than one hash per cached object,
and
> MUST
> > used the cached hash algorithm.
> >
> >
> > This solves all issues raised (securely binds the cached data to the
> > finished calculation) and removes the need for hash agility
> > Syntactically it just requires adding a hash identifier and
adjusting
> the
> > vector length for hash data.
> >
> > So I basically wander:
> > - Would this be acceptable?
> > - Who could NOT live with this solution?
> > - Who think it is worth the effort to agree on a better solution,
and
> why?
> >
> > Regards
> >
> >
> >
> >
> > On 10-05-18 12:24 AM, "Stefan Santesson" <stefan@aaa-sec.com> wrote:
> >
> >> As Martin pointed out to me privately, the hash used in the
finished
> >> calculation becomes known to the client only after receiving the
serer
> >> hello.
> >>
> >> It would therefore be natural for the client to use the hash
function
> used
> >> to calculate the finished message at the time when the data was
cached.
> >>
> >> The client would then indicate which hash algorithm it used and
upon
> >> acceptance, the server will honor the request.
> >>
> >> /Stefan
> >>
> >>
> >> On 10-05-17 10:34 PM, "Stefan Santesson" <stefan@aaa-sec.com>
wrote:
> >>
> >>> Guys,
> >>>
> >>> Where I come from we have a say "don't cross the river to get to
the
> water".
> >>> And to me this proposal to change the finished calculation is just
> that.
> >>>
> >>> Look at it.
> >>>
> >>> The proposal is to bind the cached data by adding a hash of the
cached
> data
> >>> to the finished calculation.
> >>>
> >>> The proposal is further to avoid hash agility by picking the hash
> algorithm
> >>> used by TLS's Finished message computation.
> >>>
> >>>
> >>> Now there are two ways to achieve this goal.
> >>>
> >>> 1) The crossing the river to get water approach:  Exchange FNV
hashes
> of the
> >>> cached data in the handshake protocol exchange and then inject
hashes
> of the
> >>> same data into the finished calculation through an alteration of
the
> TLS
> >>> protocol.
> >>>
> >>>
> >>> 2) The simple approach: Use the hash algorithm of the finished
> calculation
> >>> to hash the cached data (according to the current draft).
> >>>
> >>>
> >>> Alternative 2 securely bind the hashed data into the finished
message
> >>> calculation without altering the algorithm.
> >>>
> >>> Alternative 2 requires at most a hash algorithm identifier added
to
> the
> >>> protocol, if at all. We don't need to add negotiation since we
always
> use
> >>> the hash of the finished message calculation. Adding this
identifier
> would
> >>> be the only change made to the current draft.
> >>>
> >>> Alternative 2 don't require additional security analysis. If the
hash
> used
> >>> to calculate the finished message is broken, then we are screwed
> anyway.
> >>>
> >>> /Stefan
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> On 10-05-17 9:16 PM, "Martin Rex" <mrex@sap.com> wrote:
> >>>
> >>>> Joseph Salowey wrote:
> >>>>> I agree with Uri, that if you determine you need SHA-256 then
you
> should
> >>>>> plan for hash agility.  TLS 1.2 plans for hash agility.
> >>>>>
> >>>>> What about Nico's proposal where a checksum is used to identify
the
> >>>>> cached data and the actual handshake contains the actual data
hashed
> >>>>> with the algorithm used in the PRF negotiated with the cipher
suite?
> >>>>>
> >>>>> This way we don't have to introduce hash agility into the
extension,
> but
> >>>>> we have cryptographic hash agility where it matters in the
Finished
> >>>>> computation.  Does it solve the problem?
> >>>> Yes, I think so.
> >>>> This approach should solve the issue at the technical level.
> >>>>
> >>>> Going more into detail, one would hash/mac only the data that got
> >>>> actually replaced in the handshake, each prefixed by a (locally
> computed)
> >>>> length field.
> >>>>
> >>>> -Martin
> >>>> _______________________________________________
> >>>> TLS mailing list
> >>>> TLS@ietf.org
> >>>> https://www.ietf.org/mailman/listinfo/tls
> >>>
> >>> _______________________________________________
> >>> TLS mailing list
> >>> TLS@ietf.org
> >>> https://www.ietf.org/mailman/listinfo/tls
> >>
> >
> >
> > _______________________________________________
> > TLS mailing list
> > TLS@ietf.org
> > https://www.ietf.org/mailman/listinfo/tls
> >
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls

From marsh@extendedsubset.com  Wed May 19 09:48:44 2010
Return-Path: <marsh@extendedsubset.com>
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 464A03A6B1E for <tls@core3.amsl.com>; Wed, 19 May 2010 09:48:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.693
X-Spam-Level: 
X-Spam-Status: No, score=-1.693 tagged_above=-999 required=5 tests=[AWL=0.906,  BAYES_00=-2.599]
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 WtExutd28NYS for <tls@core3.amsl.com>; Wed, 19 May 2010 09:48:43 -0700 (PDT)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id 66A203A6AAE for <tls@ietf.org>; Wed, 19 May 2010 09:48:42 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OEmRc-000Gur-GT; Wed, 19 May 2010 16:48:32 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id D21FF6048; Wed, 19 May 2010 16:48:29 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX18iC9VvitbXQfmGVpi+/qdfVLWnZ51rxBs=
Message-ID: <4BF4165E.4020404@extendedsubset.com>
Date: Wed, 19 May 2010 11:48:30 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
MIME-Version: 1.0
To: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
References: <C819B76D.AF2B%stefan@aaa-sec.com> <4BF3FD9C.3040206@pobox.com> <AC1CFD94F59A264488DC2BEC3E890DE50A67CC6B@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A67CC6B@xmb-sjc-225.amer.cisco.com>
X-Enigmail-Version: 1.0.1
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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, 19 May 2010 16:48:44 -0000

On 5/19/2010 11:21 AM, Joseph Salowey (jsalowey) wrote:
> This approach seems equivalent to the server assigns name approach that
> has been brought up several times previously and not received enough
> support to replace the current mechanism.  In addition, it doesn't seem
> to solve the issue of how to hash the objects that the working group is
> currently struggling with.  

One option is to put off this proposal pending the results of the NIST
SHA-3 selection process.

- Marsh

From Nicolas.Williams@oracle.com  Wed May 19 09:53:41 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 BA02B3A6BEE for <tls@core3.amsl.com>; Wed, 19 May 2010 09:53:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.409
X-Spam-Level: 
X-Spam-Status: No, score=-5.409 tagged_above=-999 required=5 tests=[AWL=1.189,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 Up3DVFWGPGWu for <tls@core3.amsl.com>; Wed, 19 May 2010 09:53:38 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 93A2A3A69F9 for <tls@ietf.org>; Wed, 19 May 2010 09:53:38 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4JGrLOB016719 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 19 May 2010 16:53:24 GMT
Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4JGrI6j008223; Wed, 19 May 2010 16:53:18 GMT
Received: from abhmt006.oracle.com by acsmt355.oracle.com with ESMTP id 281644721274287952; Wed, 19 May 2010 09:52:32 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 19 May 2010 09:52:31 -0700
Date: Wed, 19 May 2010 11:52:27 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
Message-ID: <20100519165226.GG9605@oracle.com>
References: <C8178EA6.AE48%stefan@aaa-sec.com> <C819B76D.AF2B%stefan@aaa-sec.com> <AC1CFD94F59A264488DC2BEC3E890DE50A67CBEF@xmb-sjc-225.amer.cisco.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A67CBEF@xmb-sjc-225.amer.cisco.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090207.4BF41785.01DD:SCFMA922111,ss=1,fgs=0
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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, 19 May 2010 16:53:41 -0000

On Wed, May 19, 2010 at 07:19:00AM -0700, Joseph Salowey (jsalowey) wrote:
> To me this sounds like a good approach.  I have some questions on
> whether the hash chosen is dependent upon the cipher suite used below.

I agree, this works for me, provided the hashes are not truncated.
("This" == the client caches the choice of hash function and uses that
in its hello; if the hash function changes then the client cannot cache
that one time, but can cache subsequently.)

Nico
-- 

From stefan@aaa-sec.com  Wed May 19 10:23:14 2010
Return-Path: <stefan@aaa-sec.com>
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 E1A413A688E for <tls@core3.amsl.com>; Wed, 19 May 2010 10:23:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.621
X-Spam-Level: 
X-Spam-Status: No, score=-2.621 tagged_above=-999 required=5 tests=[AWL=0.628,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 JiTltCR6YApq for <tls@core3.amsl.com>; Wed, 19 May 2010 10:23:14 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id 6C3583A67CF for <tls@ietf.org>; Wed, 19 May 2010 10:23:11 -0700 (PDT)
Received: from s42.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 4F02528F6E2 for <tls@ietf.org>; Wed, 19 May 2010 19:23:10 +0200 (CEST)
Received: (qmail 73061 invoked from network); 19 May 2010 17:23:03 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.8]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s42.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <Nicolas.Williams@oracle.com>; 19 May 2010 17:23:03 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Wed, 19 May 2010 19:23:01 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: Nicolas Williams <Nicolas.Williams@oracle.com>, "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
Message-ID: <C819EB15.AF55%stefan@aaa-sec.com>
Thread-Topic: [TLS] Wrapping up cached info
Thread-Index: Acr3d+6egZdGzuT38EGx5U6ojAwAVQ==
In-Reply-To: <20100519165226.GG9605@oracle.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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, 19 May 2010 17:23:15 -0000

I agree. I would rather not truncate the hash.

I will, provided that this seems acceptable still in a few days from now,
write up a new draft that captures the changes which then hopefully can be
ready for a WGLC.

/Stefan


On 10-05-19 6:52 PM, "Nicolas Williams" <Nicolas.Williams@oracle.com> wrote:

> On Wed, May 19, 2010 at 07:19:00AM -0700, Joseph Salowey (jsalowey) wrote:
>> To me this sounds like a good approach.  I have some questions on
>> whether the hash chosen is dependent upon the cipher suite used below.
> 
> I agree, this works for me, provided the hashes are not truncated.
> ("This" == the client caches the choice of hash function and uses that
> in its hello; if the hash function changes then the client cannot cache
> that one time, but can cache subsequently.)
> 
> Nico



From mike-list@pobox.com  Wed May 19 10:26:26 2010
Return-Path: <mike-list@pobox.com>
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 42FC53A69B2 for <tls@core3.amsl.com>; Wed, 19 May 2010 10:26:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[AWL=0.622,  BAYES_00=-2.599]
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 nCaN+vpfz4TR for <tls@core3.amsl.com>; Wed, 19 May 2010 10:26:24 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 575A33A67AE for <tls@ietf.org>; Wed, 19 May 2010 10:26:17 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id A7266B4089; Wed, 19 May 2010 13:26:09 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=loBYM/bLpVA+ FcctSrzcIh7hr5k=; b=mSxJ1gaGRLoSrbGOjgJaCoaT/tlNcvPTaxx22rzhiAHH jPQv2f6dv5PZKNQ4aoS21XtQK3EoZDAT1yQ01WRCZdNtkv/v8dhK7JSjV1hJ3J6U Sts5CCJ4yYX2Ajws7RIjgNDJIZ512Zd68V4I7vgaPQyvM9X3tUlXMGuU+UbzzVQ=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=sDsaRf sen0Jd78rhL8lcEUtKo1KtA5loLzfAs8Axy4Ur4z90sw4Ur867reXQVXiGdYEGaK /tcC2oMvf/05Ik0WrBBbDA0w9kYoZ+C1ZHbxaH6/UA0RK4CuQpD38GhdUzWpJ9KY CeZGmCsSoyfU0LgjSDhxZlcq4GiBPECJGCRvU=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 7E9E3B4084; Wed, 19 May 2010 13:26:06 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 35BB9B407B; Wed, 19 May 2010 13:26:02 -0400 (EDT)
Message-ID: <4BF41F29.6080409@pobox.com>
Date: Wed, 19 May 2010 10:26:01 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
References: <C819B76D.AF2B%stefan@aaa-sec.com> <4BF3FD9C.3040206@pobox.com> <AC1CFD94F59A264488DC2BEC3E890DE50A67CC6B@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A67CC6B@xmb-sjc-225.amer.cisco.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 9B67037C-636B-11DF-A8E7-D033EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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, 19 May 2010 17:26:26 -0000

It is better than server-assigns-name because a server doesn't
need to keep track of names in stable storage if that's not
convenient for it.  It can instead create a convenient name (which
doesn't even need to be a hash of the object) and use the time at
which the server was launched as the timestamp.

The combination of name and timestamp provides a lot of flexibility
for the server since it could use a unique name for something, e.g.
MODP-1536 for the 1536-bit IKE DH parameters, or a combination of a
name and a timestamp.  The timestamp could be based off of the file
modification time of a certificate for instance.  Or the server can
just use the time it last loaded its configuration as the timestamp
to avoid any possible clashes with previous names.

Also there is no need for hashing at all and thus no hash agility.
I think that alone makes this worth considering.

Mike



Joseph Salowey (jsalowey) wrote:
> This approach seems equivalent to the server assigns name approach that
> has been brought up several times previously and not received enough
> support to replace the current mechanism.  In addition, it doesn't seem
> to solve the issue of how to hash the objects that the working group is
> currently struggling with.  
> 
> Joe
> 
>> -----Original Message-----
>> From: tls-bounces@ietf.org [mailto:tls-bounces@ietf.org] On Behalf Of
>> Michael D'Errico
>> Sent: Wednesday, May 19, 2010 8:03 AM
>> To: Stefan Santesson
>> Cc: tls@ietf.org
>> Subject: Re: [TLS] Wrapping up cached info
>>
>> Stefan Santesson wrote:
>>> Not sure how I should interpret the silence?
>>>
>>> I guess it means that everyone agrees with me :)
>> Then by that logic everyone also agrees with me to use http caching
>> as the model!
>>
>> Seriously, I think that the current draft might be too simple.  For
>> example, consider caching the list of certificate_authorities in a
>> CertificateRequest message.  A web application might have several
>> different lists of certificate_authorities based on what the resource
>> is and who is trying to access it.  If cached-info can only cache one
>> object of any particular type, then it will not be very helpful for
>> such an application.
>>
>> Also, exactly how would you hash the Diffie-Hellman parameters in a
>> ServerKeyExchange message?  You can't just hash the message since it
>> also contains a unique Ys which changes frequently if not every
>> handshake.
>>
>> Allowing the server to instead name the objects, and keep track of
>> timestamps for each object, allows you to handle these two cases.  In
>> the multiple-CA-list example above, the server might have USER and
>> ADMIN lists.  If it can't be sure when exactly those lists were
>> created, the timestamp can simply be when the server was started or
>> when it last read its configuration.
>>
>> When the server forces the client to renegotiate when accessing a
>> protected resource as an ADMIN for example, the server's cached info
>> extension would contain:
>>
>>      type=cert_req_ca_list,name=ADMIN,timestamp=20100519123456789
>>
>> When requesting a less-sensitive, but not public resource, the server
>> would send:
>>
>>      type=cert_req_ca_list,name=USER,timestamp=20100519123456789
>>
>> If the client's cached-info extension contained an exact match, then
>> the server would omit that data from the handshake.
>>
>> This is sort of like cipher suite selection.  The client sends a list
>> of possible matches and the server selects one from the list.  It
>> differs in that there might be no match, in which case the server just
>> sends the info for the object it decided to send in the handshake.
>>
>> I'm sure there are more details to be worked out, but I think it would
>> be a good idea to entertain this approach.
>>
>> Mike
>>
>>
>>
>>> To repeat in short. Here is what I suggest based on the latest
> traffic:
>>> 1) A client, caching information also caches what hash algorithm was
>> used to
>>> calculate the finished message at the time of caching.
>>>
>>> 2) On repeated connections, the client indicate cached info by
> sending a
>>> hash of the cached object using the cached hash algorithm. (No use
> of
>> FNV
>>> hash)
>>>
>>> 3) The server accepts by returning the received hash instead of the
>> cached
>>> data.
>>>
>>> 4) The only hash agility provided is that the client will send a
> hash
>>> algorithm identifier with the hash.
>>>
>>> 5) The client MUST NOT send more than one hash per cached object,
> and
>> MUST
>>> used the cached hash algorithm.
>>>
>>>
>>> This solves all issues raised (securely binds the cached data to the
>>> finished calculation) and removes the need for hash agility
>>> Syntactically it just requires adding a hash identifier and
> adjusting
>> the
>>> vector length for hash data.
>>>
>>> So I basically wander:
>>> - Would this be acceptable?
>>> - Who could NOT live with this solution?
>>> - Who think it is worth the effort to agree on a better solution,
> and
>> why?
>>> Regards
>>>
>>>
>>>
>>>
>>> On 10-05-18 12:24 AM, "Stefan Santesson" <stefan@aaa-sec.com> wrote:
>>>
>>>> As Martin pointed out to me privately, the hash used in the
> finished
>>>> calculation becomes known to the client only after receiving the
> serer
>>>> hello.
>>>>
>>>> It would therefore be natural for the client to use the hash
> function
>> used
>>>> to calculate the finished message at the time when the data was
> cached.
>>>> The client would then indicate which hash algorithm it used and
> upon
>>>> acceptance, the server will honor the request.
>>>>
>>>> /Stefan
>>>>
>>>>
>>>> On 10-05-17 10:34 PM, "Stefan Santesson" <stefan@aaa-sec.com>
> wrote:
>>>>> Guys,
>>>>>
>>>>> Where I come from we have a say "don't cross the river to get to
> the
>> water".
>>>>> And to me this proposal to change the finished calculation is just
>> that.
>>>>> Look at it.
>>>>>
>>>>> The proposal is to bind the cached data by adding a hash of the
> cached
>> data
>>>>> to the finished calculation.
>>>>>
>>>>> The proposal is further to avoid hash agility by picking the hash
>> algorithm
>>>>> used by TLS's Finished message computation.
>>>>>
>>>>>
>>>>> Now there are two ways to achieve this goal.
>>>>>
>>>>> 1) The crossing the river to get water approach:  Exchange FNV
> hashes
>> of the
>>>>> cached data in the handshake protocol exchange and then inject
> hashes
>> of the
>>>>> same data into the finished calculation through an alteration of
> the
>> TLS
>>>>> protocol.
>>>>>
>>>>>
>>>>> 2) The simple approach: Use the hash algorithm of the finished
>> calculation
>>>>> to hash the cached data (according to the current draft).
>>>>>
>>>>>
>>>>> Alternative 2 securely bind the hashed data into the finished
> message
>>>>> calculation without altering the algorithm.
>>>>>
>>>>> Alternative 2 requires at most a hash algorithm identifier added
> to
>> the
>>>>> protocol, if at all. We don't need to add negotiation since we
> always
>> use
>>>>> the hash of the finished message calculation. Adding this
> identifier
>> would
>>>>> be the only change made to the current draft.
>>>>>
>>>>> Alternative 2 don't require additional security analysis. If the
> hash
>> used
>>>>> to calculate the finished message is broken, then we are screwed
>> anyway.
>>>>> /Stefan
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 10-05-17 9:16 PM, "Martin Rex" <mrex@sap.com> wrote:
>>>>>
>>>>>> Joseph Salowey wrote:
>>>>>>> I agree with Uri, that if you determine you need SHA-256 then
> you
>> should
>>>>>>> plan for hash agility.  TLS 1.2 plans for hash agility.
>>>>>>>
>>>>>>> What about Nico's proposal where a checksum is used to identify
> the
>>>>>>> cached data and the actual handshake contains the actual data
> hashed
>>>>>>> with the algorithm used in the PRF negotiated with the cipher
> suite?
>>>>>>> This way we don't have to introduce hash agility into the
> extension,
>> but
>>>>>>> we have cryptographic hash agility where it matters in the
> Finished
>>>>>>> computation.  Does it solve the problem?
>>>>>> Yes, I think so.
>>>>>> This approach should solve the issue at the technical level.
>>>>>>
>>>>>> Going more into detail, one would hash/mac only the data that got
>>>>>> actually replaced in the handshake, each prefixed by a (locally
>> computed)
>>>>>> length field.
>>>>>>
>>>>>> -Martin
>>>>>> _______________________________________________
>>>>>> TLS mailing list
>>>>>> TLS@ietf.org
>>>>>> https://www.ietf.org/mailman/listinfo/tls
>>>>> _______________________________________________
>>>>> TLS mailing list
>>>>> TLS@ietf.org
>>>>> https://www.ietf.org/mailman/listinfo/tls
>>>
>>> _______________________________________________
>>> TLS mailing list
>>> TLS@ietf.org
>>> https://www.ietf.org/mailman/listinfo/tls
>>>
>> _______________________________________________
>> TLS mailing list
>> TLS@ietf.org
>> https://www.ietf.org/mailman/listinfo/tls
> 

From mike-list@pobox.com  Wed May 19 10:34:42 2010
Return-Path: <mike-list@pobox.com>
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 083E03A6A50 for <tls@core3.amsl.com>; Wed, 19 May 2010 10:34:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.077
X-Spam-Level: 
X-Spam-Status: No, score=-1.077 tagged_above=-999 required=5 tests=[AWL=-0.337, BAYES_20=-0.74]
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 7J83BHz9uJNm for <tls@core3.amsl.com>; Wed, 19 May 2010 10:34:40 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 8FCB63A69B2 for <tls@ietf.org>; Wed, 19 May 2010 10:34:40 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id B5EE2B4251; Wed, 19 May 2010 13:34:33 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=N+ffevLoow4W Yz/xOGOAX6UDPu4=; b=klG+lmwrZHyYu2PXPB7URiwS6erQ/aeV20Y8NIiMS091 ZcriYVQTKm/beIwS9A7eBoFTzxpH1F/Iyo3N4YKYc1Xi8IGwWFn0qr4KovNnpHVM HyxJ3nv3GjZkeds4nTigokLwU2N+L0RKCTyqfiEiSGSDPNBy5RHoHOGwDwS8jHw=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=RK7tlS 2yiNK6RIbIiPYw7SzSBt1rOkRlREMoQeHUczw6K96paq9dZWWnF7uHZwh1RjTbFw K79U+Ba71877IJF8afrHwBigUMKLp6NMJg+WQngawy5vdqi3M+1gCgN/buzrkUs2 v9qX3PHosfxLaVr5Q8vQaC3+/T4tqlpzhzbNE=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 9D92DB424F; Wed, 19 May 2010 13:34:32 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id C6173B424A; Wed, 19 May 2010 13:34:30 -0400 (EDT)
Message-ID: <4BF42125.9020600@pobox.com>
Date: Wed, 19 May 2010 10:34:29 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: Marsh Ray <marsh@extendedsubset.com>
References: <C819B76D.AF2B%stefan@aaa-sec.com> <4BF3FD9C.3040206@pobox.com> <4BF40B4E.20702@extendedsubset.com>
In-Reply-To: <4BF40B4E.20702@extendedsubset.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: C91C51B8-636C-11DF-825D-D033EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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, 19 May 2010 17:34:42 -0000

Marsh Ray wrote:
> On 5/19/2010 10:02 AM, Michael D'Errico wrote:
> 
>> I think that the current draft might be too simple.
> 
> I am more concerned that it will become too complex!

I think avoiding any need for hashing and hash agility is worth it.

>> For
>> example, consider caching the list of certificate_authorities in a
>> CertificateRequest message.  A web application might have several
>> different lists of certificate_authorities based on what the resource
>> is and who is trying to access it.
> 
> Web servers can certainly be configured that way.
> 
>> If cached-info can only cache one
>> object of any particular type, then it will not be very helpful for
>> such an application.
> 
> Can we agree on the explicit non-requirement that the solution must work
> for everything?

Sure, but if we end up with something that works for everything,
that's not a bad thing.

>> Also, exactly how would you hash the Diffie-Hellman parameters in a
>> ServerKeyExchange message?  You can't just hash the message since it
>> also contains a unique Ys which changes frequently if not every
>> handshake.
> 
> Should we even try?

We might get it for free.

> Does this introduce a new requirement for clients and/or servers to
> maintain an accurate clock?

Not a new requirement.  Think certificate validity periods.

> What failure modes are possible when a clock is not accurate?

You might consider an expired certificate as valid?

With the timestamp approach, it would require an exact-match,
otherwise the items would be considered different.  An attacker
would have to be able to stop a server, change the time, and
restart it, all to get a cached datum to collide.  Wouldn't you
have much bigger problems than that?

Mike


> - Marsh
> 
> 
> 
> 
>> When the server forces the client to renegotiate when accessing a
>> protected resource as an ADMIN for example, the server's cached info
>> extension would contain:
>>
>>     type=cert_req_ca_list,name=ADMIN,timestamp=20100519123456789
>>
>> When requesting a less-sensitive, but not public resource, the server
>> would send:
>>
>>     type=cert_req_ca_list,name=USER,timestamp=20100519123456789
>>
>> If the client's cached-info extension contained an exact match, then
>> the server would omit that data from the handshake.
>>
>> This is sort of like cipher suite selection.  The client sends a list
>> of possible matches and the server selects one from the list.  It
>> differs in that there might be no match, in which case the server just
>> sends the info for the object it decided to send in the handshake.
>>
>> I'm sure there are more details to be worked out, but I think it would
>> be a good idea to entertain this approach.
>>
>> Mike
>>
>>
>>
>>> To repeat in short. Here is what I suggest based on the latest traffic:
>>>
>>> 1) A client, caching information also caches what hash algorithm was
>>> used to
>>> calculate the finished message at the time of caching.
>>>
>>> 2) On repeated connections, the client indicate cached info by sending a
>>> hash of the cached object using the cached hash algorithm. (No use of FNV
>>> hash)
>>>
>>> 3) The server accepts by returning the received hash instead of the
>>> cached
>>> data.
>>>
>>> 4) The only hash agility provided is that the client will send a hash
>>> algorithm identifier with the hash.
>>>
>>> 5) The client MUST NOT send more than one hash per cached object, and
>>> MUST
>>> used the cached hash algorithm.
>>>
>>>
>>> This solves all issues raised (securely binds the cached data to the
>>> finished calculation) and removes the need for hash agility
>>> Syntactically it just requires adding a hash identifier and adjusting the
>>> vector length for hash data.
>>>
>>> So I basically wander:
>>> - Would this be acceptable?
>>> - Who could NOT live with this solution?
>>> - Who think it is worth the effort to agree on a better solution, and
>>> why?
>>>
>>> Regards
>>>  
>>>
>>>
>>>
>>> On 10-05-18 12:24 AM, "Stefan Santesson" <stefan@aaa-sec.com> wrote:
>>>
>>>> As Martin pointed out to me privately, the hash used in the finished
>>>> calculation becomes known to the client only after receiving the serer
>>>> hello.
>>>>
>>>> It would therefore be natural for the client to use the hash function
>>>> used
>>>> to calculate the finished message at the time when the data was cached.
>>>>
>>>> The client would then indicate which hash algorithm it used and upon
>>>> acceptance, the server will honor the request.
>>>>
>>>> /Stefan
>>>>
>>>>
>>>> On 10-05-17 10:34 PM, "Stefan Santesson" <stefan@aaa-sec.com> wrote:
>>>>
>>>>> Guys,
>>>>>
>>>>> Where I come from we have a say "don't cross the river to get to the
>>>>> water".
>>>>> And to me this proposal to change the finished calculation is just
>>>>> that.
>>>>>
>>>>> Look at it.
>>>>>
>>>>> The proposal is to bind the cached data by adding a hash of the
>>>>> cached data
>>>>> to the finished calculation.
>>>>>
>>>>> The proposal is further to avoid hash agility by picking the hash
>>>>> algorithm
>>>>> used by TLS's Finished message computation.
>>>>>
>>>>>
>>>>> Now there are two ways to achieve this goal.
>>>>>
>>>>> 1) The crossing the river to get water approach:  Exchange FNV
>>>>> hashes of the
>>>>> cached data in the handshake protocol exchange and then inject
>>>>> hashes of the
>>>>> same data into the finished calculation through an alteration of the
>>>>> TLS
>>>>> protocol.
>>>>>
>>>>>
>>>>> 2) The simple approach: Use the hash algorithm of the finished
>>>>> calculation
>>>>> to hash the cached data (according to the current draft).
>>>>>
>>>>>
>>>>> Alternative 2 securely bind the hashed data into the finished message
>>>>> calculation without altering the algorithm.
>>>>>
>>>>> Alternative 2 requires at most a hash algorithm identifier added to the
>>>>> protocol, if at all. We don't need to add negotiation since we
>>>>> always use
>>>>> the hash of the finished message calculation. Adding this identifier
>>>>> would
>>>>> be the only change made to the current draft.
>>>>>
>>>>> Alternative 2 don't require additional security analysis. If the
>>>>> hash used
>>>>> to calculate the finished message is broken, then we are screwed
>>>>> anyway.
>>>>>
>>>>> /Stefan
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 10-05-17 9:16 PM, "Martin Rex" <mrex@sap.com> wrote:
>>>>>
>>>>>> Joseph Salowey wrote:
>>>>>>> I agree with Uri, that if you determine you need SHA-256 then you
>>>>>>> should
>>>>>>> plan for hash agility.  TLS 1.2 plans for hash agility.
>>>>>>>
>>>>>>> What about Nico's proposal where a checksum is used to identify the
>>>>>>> cached data and the actual handshake contains the actual data hashed
>>>>>>> with the algorithm used in the PRF negotiated with the cipher suite?
>>>>>>>
>>>>>>> This way we don't have to introduce hash agility into the
>>>>>>> extension, but
>>>>>>> we have cryptographic hash agility where it matters in the Finished
>>>>>>> computation.  Does it solve the problem?
>>>>>> Yes, I think so.
>>>>>> This approach should solve the issue at the technical level.
>>>>>>
>>>>>> Going more into detail, one would hash/mac only the data that got
>>>>>> actually replaced in the handshake, each prefixed by a (locally
>>>>>> computed)
>>>>>> length field.
>>>>>>
>>>>>> -Martin
>>>>>> _______________________________________________
>>>>>> TLS mailing list
>>>>>> TLS@ietf.org
>>>>>> https://www.ietf.org/mailman/listinfo/tls
>>>>> _______________________________________________
>>>>> TLS mailing list
>>>>> TLS@ietf.org
>>>>> https://www.ietf.org/mailman/listinfo/tls
>>>
>>> _______________________________________________
>>> TLS mailing list
>>> TLS@ietf.org
>>> https://www.ietf.org/mailman/listinfo/tls
>>>
>> _______________________________________________
>> TLS mailing list
>> TLS@ietf.org
>> https://www.ietf.org/mailman/listinfo/tls
> 
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
> 

From DPKemp@missi.ncsc.mil  Wed May 19 10:44:09 2010
Return-Path: <DPKemp@missi.ncsc.mil>
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 A42373A698E for <tls@core3.amsl.com>; Wed, 19 May 2010 10:44:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.261
X-Spam-Level: 
X-Spam-Status: No, score=-4.261 tagged_above=-999 required=5 tests=[AWL=-0.262, BAYES_50=0.001, 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 raOiAmZXimBL for <tls@core3.amsl.com>; Wed, 19 May 2010 10:44:08 -0700 (PDT)
Received: from stingray.missi.ncsc.mil (stingray.missi.ncsc.mil [144.51.50.20]) by core3.amsl.com (Postfix) with ESMTP id B395B3A697A for <tls@ietf.org>; Wed, 19 May 2010 10:44:06 -0700 (PDT)
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-MimeOLE: Produced By Microsoft Exchange V6.5
Date: Wed, 19 May 2010 13:43:52 -0400
Message-ID: <201005191743.o4JHhsgS005542@stingray.missi.ncsc.mil>
In-Reply-To: <20100519165226.GG9605@oracle.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] Wrapping up cached info
Thread-Index: Acr3c9ljpwexeKxgTLafwyMWDQZxvQAA3FUg
References: <C8178EA6.AE48%stefan@aaa-sec.com><C819B76D.AF2B%stefan@aaa-sec.com><AC1CFD94F59A264488DC2BEC3E890DE50A67CBEF@xmb-sjc-225.amer.cisco.com> <20100519165226.GG9605@oracle.com>
From: "Kemp, David P." <DPKemp@missi.ncsc.mil>
To: <tls@ietf.org>
X-OriginalArrivalTime: 19 May 2010 17:45:09.0078 (UTC) FILETIME=[0636E760:01CAF77B]
Subject: Re: [TLS] Wrapping up cached info
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, 19 May 2010 17:44:09 -0000

This will work as long as there is high "cache reuse ratio", i.e.,
repeated handshakes with a server will not result in many cached objects
of any type.

If multiple handshakes with a server could cache different objects of a
given type, then the list in step 2 (client sends hash value of every
object it has collected) could get very large and a more traditional
cache miss approach would be needed.

The FNV collision discussion brought up cases where more than one cached
object could be valid.  The same cases should be considered in
estimating how long the list of cached objects might become.  If
collisions in a 64 bit checksum are a real concern, that list could
potentially be enormous.

Dave



-----Original Message-----
From: tls-bounces@ietf.org [mailto:tls-bounces@ietf.org] On Behalf Of
Nicolas Williams
Sent: Wednesday, May 19, 2010 12:52 PM
To: Joseph Salowey (jsalowey)
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info

On Wed, May 19, 2010 at 07:19:00AM -0700, Joseph Salowey (jsalowey)
wrote:
> To me this sounds like a good approach.  I have some questions on
> whether the hash chosen is dependent upon the cipher suite used below.

I agree, this works for me, provided the hashes are not truncated.
("This" =3D=3D the client caches the choice of hash function and uses =
that
in its hello; if the hash function changes then the client cannot cache
that one time, but can cache subsequently.)

Nico
--=20
_______________________________________________
TLS mailing list
TLS@ietf.org
https://www.ietf.org/mailman/listinfo/tls

From Nicolas.Williams@oracle.com  Wed May 19 10:59:40 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 DEA843A6AD1 for <tls@core3.amsl.com>; Wed, 19 May 2010 10:59:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.124
X-Spam-Level: 
X-Spam-Status: No, score=-4.124 tagged_above=-999 required=5 tests=[AWL=-0.126, BAYES_50=0.001, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 Rty3lFdLd+5u for <tls@core3.amsl.com>; Wed, 19 May 2010 10:59:38 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id B55D63A6891 for <tls@ietf.org>; Wed, 19 May 2010 10:59:38 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4JHxQtW019986 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 19 May 2010 17:59:28 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4JBjRtU009378; Wed, 19 May 2010 17:59:23 GMT
Received: from abhmt010.oracle.com by acsmt355.oracle.com with ESMTP id 251414671274291910; Wed, 19 May 2010 10:58:30 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 19 May 2010 10:58:30 -0700
Date: Wed, 19 May 2010 12:58:25 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: "Kemp, David P." <DPKemp@missi.ncsc.mil>
Message-ID: <20100519175825.GI9605@oracle.com>
References: <C8178EA6.AE48%stefan@aaa-sec.com> <C819B76D.AF2B%stefan@aaa-sec.com> <AC1CFD94F59A264488DC2BEC3E890DE50A67CBEF@xmb-sjc-225.amer.cisco.com> <20100519165226.GG9605@oracle.com> <201005191743.o4JHhsgS005542@stingray.missi.ncsc.mil>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <201005191743.o4JHhsgS005542@stingray.missi.ncsc.mil>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090201.4BF42702.00AB:SCFMA922111,ss=1,fgs=0
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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, 19 May 2010 17:59:41 -0000

On Wed, May 19, 2010 at 01:43:52PM -0400, Kemp, David P. wrote:
> This will work as long as there is high "cache reuse ratio", i.e.,
> repeated handshakes with a server will not result in many cached objects
> of any type.

I think this is very likely.

> If multiple handshakes with a server could cache different objects of a
> given type, then the list in step 2 (client sends hash value of every
> object it has collected) could get very large and a more traditional
> cache miss approach would be needed.

I think this is unlikely.  I'm not sure how one might design an
extension to provide for caching that can handle this possibility
without adding round-trips to the handshake and without using HTTP (or
some such protocol) to fetch cacheable items.  The no-extra-round-trips
constraint is almost certainly non-negotiable.  Downloading cacheable
items out of band would greatly complicate implementations and would
introduce more failure points.

You might demand real-world data on cacheability and predictability of
caching opportunities.  But I think it should be fairly obvious that: a)
the items in question change infrequently, b) the handshakes between any
one {client, server} pair will generally all look the same, with very
few variations (initial vs. session resumption, outer handshake vs.
inner re-negotiation).  Moreover, clients could observe that use of this
extension provides no benefit and cache that to avoid using it
subsequently (much like rsync, the client could compute a "speedup"
ratio of data that would have been transfered to data actually
transfered).

Nico
-- 

From ynir@checkpoint.com  Wed May 19 21:41:53 2010
Return-Path: <ynir@checkpoint.com>
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 644FA3A6876 for <tls@core3.amsl.com>; Wed, 19 May 2010 21:41:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.539
X-Spam-Level: 
X-Spam-Status: No, score=-1.539 tagged_above=-999 required=5 tests=[AWL=-0.540, BAYES_50=0.001, RCVD_IN_DNSWL_LOW=-1]
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 dnS8KU-tHqZ6 for <tls@core3.amsl.com>; Wed, 19 May 2010 21:41:52 -0700 (PDT)
Received: from michael.checkpoint.com (michael.checkpoint.com [194.29.32.68]) by core3.amsl.com (Postfix) with ESMTP id B841F3A6C60 for <tls@ietf.org>; Wed, 19 May 2010 21:41:49 -0700 (PDT)
X-CheckPoint: {4BF4CA35-0-1B201DC2-1FFFF}
Received: from il-ex01.ad.checkpoint.com (il-ex01.checkpoint.com [194.29.34.26]) by michael.checkpoint.com (8.12.10+Sun/8.12.10) with ESMTP id o4K4fbpp004731; Thu, 20 May 2010 07:41:37 +0300 (IDT)
Received: from il-ex01.ad.checkpoint.com ([126.0.0.2]) by il-ex01.ad.checkpoint.com ([126.0.0.2]) with mapi; Thu, 20 May 2010 07:42:04 +0300
From: Yoav Nir <ynir@checkpoint.com>
To: "'Stefan Santesson'" <stefan@aaa-sec.com>, "mrex@sap.com" <mrex@sap.com>,  Joseph Salowey <jsalowey@cisco.com>
Date: Thu, 20 May 2010 07:42:03 +0300
Thread-Topic: [TLS] Wrapping up cached info
Thread-Index: Acr2AF8iO6bF6i2yM0up48R7QWj7GQAD0o9pAFJeyFwAH1U8gA==
Message-ID: <006FEB08D9C6444AB014105C9AEB133FB48F1B5AE0@il-ex01.ad.checkpoint.com>
References: <C8178EA6.AE48%stefan@aaa-sec.com> <C819B76D.AF2B%stefan@aaa-sec.com>
In-Reply-To: <C819B76D.AF2B%stefan@aaa-sec.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Wrapping up cached info
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: Thu, 20 May 2010 04:41:53 -0000

In my case the silence means a national holiday.

I still don't see why we need a secure cryptographic hash there as well. Th=
ere has still not been any outline of an attack even in the presence of col=
lisions.

Given this, I don't see any reason to move away from FNV-1a.

-----Original Message-----
From: tls-bounces@ietf.org [mailto:tls-bounces@ietf.org] On Behalf Of Stefa=
n Santesson
Sent: Wednesday, May 19, 2010 4:43 PM
To: Stefan Santesson; mrex@sap.com; Joseph Salowey
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info

Not sure how I should interpret the silence?

I guess it means that everyone agrees with me :)

To repeat in short. Here is what I suggest based on the latest traffic:

1) A client, caching information also caches what hash algorithm was used t=
o
calculate the finished message at the time of caching.

2) On repeated connections, the client indicate cached info by sending a
hash of the cached object using the cached hash algorithm. (No use of FNV
hash)

3) The server accepts by returning the received hash instead of the cached
data.

4) The only hash agility provided is that the client will send a hash
algorithm identifier with the hash.

5) The client MUST NOT send more than one hash per cached object, and MUST
used the cached hash algorithm.


This solves all issues raised (securely binds the cached data to the
finished calculation) and removes the need for hash agility
Syntactically it just requires adding a hash identifier and adjusting the
vector length for hash data.

So I basically wander:
- Would this be acceptable?
- Who could NOT live with this solution?
- Who think it is worth the effort to agree on a better solution, and why?

Regards
=20



On 10-05-18 12:24 AM, "Stefan Santesson" <stefan@aaa-sec.com> wrote:

> As Martin pointed out to me privately, the hash used in the finished
> calculation becomes known to the client only after receiving the serer
> hello.
>=20
> It would therefore be natural for the client to use the hash function use=
d
> to calculate the finished message at the time when the data was cached.
>=20
> The client would then indicate which hash algorithm it used and upon
> acceptance, the server will honor the request.
>=20
> /Stefan
>=20
>=20
> On 10-05-17 10:34 PM, "Stefan Santesson" <stefan@aaa-sec.com> wrote:
>=20
>> Guys,
>>=20
>> Where I come from we have a say "don't cross the river to get to the wat=
er".
>> And to me this proposal to change the finished calculation is just that.
>>=20
>> Look at it.
>>=20
>> The proposal is to bind the cached data by adding a hash of the cached d=
ata
>> to the finished calculation.
>>=20
>> The proposal is further to avoid hash agility by picking the hash algori=
thm
>> used by TLS's Finished message computation.
>>=20
>>=20
>> Now there are two ways to achieve this goal.
>>=20
>> 1) The crossing the river to get water approach:  Exchange FNV hashes of=
 the
>> cached data in the handshake protocol exchange and then inject hashes of=
 the
>> same data into the finished calculation through an alteration of the TLS
>> protocol.
>>=20
>>=20
>> 2) The simple approach: Use the hash algorithm of the finished calculati=
on
>> to hash the cached data (according to the current draft).
>>=20
>>=20
>> Alternative 2 securely bind the hashed data into the finished message
>> calculation without altering the algorithm.
>>=20
>> Alternative 2 requires at most a hash algorithm identifier added to the
>> protocol, if at all. We don't need to add negotiation since we always us=
e
>> the hash of the finished message calculation. Adding this identifier wou=
ld
>> be the only change made to the current draft.
>>=20
>> Alternative 2 don't require additional security analysis. If the hash us=
ed
>> to calculate the finished message is broken, then we are screwed anyway.
>>=20
>> /Stefan
>>=20
>>=20
>>=20
>>=20
>>=20
>>=20
>>=20
>>=20
>>=20
>> On 10-05-17 9:16 PM, "Martin Rex" <mrex@sap.com> wrote:
>>=20
>>> Joseph Salowey wrote:
>>>>=20
>>>> I agree with Uri, that if you determine you need SHA-256 then you shou=
ld
>>>> plan for hash agility.  TLS 1.2 plans for hash agility.
>>>>=20
>>>> What about Nico's proposal where a checksum is used to identify the
>>>> cached data and the actual handshake contains the actual data hashed
>>>> with the algorithm used in the PRF negotiated with the cipher suite?
>>>>=20
>>>> This way we don't have to introduce hash agility into the extension, b=
ut
>>>> we have cryptographic hash agility where it matters in the Finished
>>>> computation.  Does it solve the problem?
>>>=20
>>> Yes, I think so.
>>> This approach should solve the issue at the technical level.
>>>=20
>>> Going more into detail, one would hash/mac only the data that got
>>> actually replaced in the handshake, each prefixed by a (locally compute=
d)
>>> length field.
>>>=20
>>> -Martin
>>> _______________________________________________


From jsalowey@cisco.com  Wed May 19 22:17:13 2010
Return-Path: <jsalowey@cisco.com>
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 B88143A6C80 for <tls@core3.amsl.com>; Wed, 19 May 2010 22:17:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.885
X-Spam-Level: 
X-Spam-Status: No, score=-8.885 tagged_above=-999 required=5 tests=[AWL=-0.700, BAYES_40=-0.185, RCVD_IN_DNSWL_HI=-8]
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 1uIhhjVfxEA8 for <tls@core3.amsl.com>; Wed, 19 May 2010 22:17:10 -0700 (PDT)
Received: from sj-iport-4.cisco.com (sj-iport-4.cisco.com [171.68.10.86]) by core3.amsl.com (Postfix) with ESMTP id 929C13A6CC1 for <tls@ietf.org>; Wed, 19 May 2010 22:15:27 -0700 (PDT)
Authentication-Results: sj-iport-4.cisco.com; dkim=neutral (message not signed) header.i=none
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: As8KAKpi9EurR7H+/2dsb2JhbACOPoM1jA9xowWZSIURBINA
X-IronPort-AV: E=Sophos;i="4.53,268,1272844800"; d="scan'208";a="132208132"
Received: from sj-core-2.cisco.com ([171.71.177.254]) by sj-iport-4.cisco.com with ESMTP; 20 May 2010 05:15:08 +0000
Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com [128.107.191.63]) by sj-core-2.cisco.com (8.13.8/8.14.3) with ESMTP id o4K5F8Qt000601 for <tls@ietf.org>; Thu, 20 May 2010 05:15:08 GMT
Received: from xmb-sjc-225.amer.cisco.com ([128.107.191.38]) by xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.3959);  Wed, 19 May 2010 22:15:08 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Wed, 19 May 2010 22:15:06 -0700
Message-ID: <AC1CFD94F59A264488DC2BEC3E890DE50A67D09A@xmb-sjc-225.amer.cisco.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Text for draft-ietf-tls-rfc4366-bis
Thread-Index: Acr322kSN3wNGMqhRZKxHPre59iMKQ==
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: <tls@ietf.org>
X-OriginalArrivalTime: 20 May 2010 05:15:08.0601 (UTC) FILETIME=[6A40CA90:01CAF7DB]
Subject: [TLS] Text for draft-ietf-tls-rfc4366-bis
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: Thu, 20 May 2010 05:17:13 -0000

Below is some proposed text for inclusion in section 3 of
draft-ietf-tls-rfc4366-bis. The text now clarifies that the server name
can be used by the server in looking up the cached session.   Please
respond to the list with any issues or improvements to the text. =20

Thanks,

Joe

New text in section 3 to replace "When the server resumes a session, the
server_name extension is ignored.":

"When the server resumes a session, the contents of server_name
extension may be used in the lookup of the session in the session cache.
The client SHOULD include the same server_name extension during session
resumption as it did in the full handshake that established the session.
The client MAY omit the extension, in which case, if the server chooses
to resume the session it must use the server name cached from the
original full handshake.  The client MUST NOT include a different server
name than what is included in the original full handshake.  If the
server_name extension contains a different name the server MUST NOT
allow the session to be resumed.  Instead, it proceeds with a full
handshake to establish a new session. When resuming a session, the
server MUST NOT include a server_name extension in the server hello."

In addition the end of section 1.1 needs some modification to the last
paragraph and bullet points:=20

"Note also that all the extensions defined in this document are
 relevant only when a session is initiated.  When a client includes
 one or more of the defined extension types in an extended client
 hello while requesting session resumption:

      -  If the resumption request is denied, the use of the extensions
         is negotiated as normal.

	-  The server name indication extension MAY be used during the=20
         lookup of a cached session as described in section 3.=20

      -  If, on the other hand, the older session is resumed, then the
         server MUST ignore the extensions and send a server hello
         containing none of the extension types.  In this case, the
         functionality of these extensions negotiated during the
         original session initiation is applied to the resumed session."

Cheers,

Joe

From ietfc@btconnect.com  Thu May 20 06:33:34 2010
Return-Path: <ietfc@btconnect.com>
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 905FE3A6D63 for <tls@core3.amsl.com>; Thu, 20 May 2010 06:33:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.844
X-Spam-Level: 
X-Spam-Status: No, score=-1.844 tagged_above=-999 required=5 tests=[AWL=-0.889, BAYES_50=0.001, DATE_IN_PAST_03_06=0.044, RCVD_IN_DNSWL_LOW=-1]
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 m+LmkViGKRNM for <tls@core3.amsl.com>; Thu, 20 May 2010 06:33:33 -0700 (PDT)
Received: from c2beaomr04.btconnect.com (c2beaomr04.btconnect.com [213.123.26.182]) by core3.amsl.com (Postfix) with ESMTP id 6CB263A6C51 for <tls@ietf.org>; Thu, 20 May 2010 06:29:47 -0700 (PDT)
Received: from pc6 (host86-172-78-59.range86-172.btcentralplus.com [86.172.78.59]) by c2beaomr04.btconnect.com with SMTP id CCZ32908; Thu, 20 May 2010 14:29:36 +0100 (BST)
X-Mirapoint-IP-Reputation: reputation=Fair-1, source=Queried, refid=0001.0A0B0301.4BF53940.00D0, actions=tag
Message-ID: <003701caf817$b4754140$4001a8c0@gateway.2wire.net>
From: "t.petch" <ietfc@btconnect.com>
To: "Joseph Salowey \(jsalowey\)" <jsalowey@cisco.com>, <tls@ietf.org>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A67D09A@xmb-sjc-225.amer.cisco.com>
Date: Thu, 20 May 2010 12:03:44 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Junkmail-Status: score=10/50, host=c2beaomr04.btconnect.com
X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A0B0208.4BF53942.00AF,ss=1,fgs=0, ip=0.0.0.0, so=2009-07-20 21:54:04, dmn=5.7.1/2009-08-27, mode=single engine
X-Junkmail-IWF: false
Subject: Re: [TLS] Text for draft-ietf-tls-rfc4366-bis
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: Thu, 20 May 2010 13:33:34 -0000

Joe

I think that it still avoids the point that has been raised.

Setting aside my dislike of using 'session resumption':-), I think that
the new text should split out the decision as to whether or not to
accept such a request from the subsequent mechanics ie the first
sentence must be along the lines of

"When the server is deciding whether or not to accept a request to resume a
session, the contents of a server_name extension may be used in the lookup of
the session in the session cache."
followed by such as
"The client SHOULD include the same server_name extension during session
resumption request as it did in the full handshake that established the session.
If the server_name extension contains a different name, the server MUST NOT
accept the request to resume the session. Instead, it proceeds with a full
handshake to establish a new session

" The client MAY omit the extension, in which case, if the server chooses
to resume the session, it must use the server name cached from the
original full handshake.

"When resuming a session, the server MUST NOT include a server_name extension in
the server hello."
etc

Tom Petch

----- Original Message -----
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: <tls@ietf.org>
Sent: Thursday, May 20, 2010 7:15 AM
Subject: [TLS] Text for draft-ietf-tls-rfc4366-bis


> Below is some proposed text for inclusion in section 3 of
> draft-ietf-tls-rfc4366-bis. The text now clarifies that the server name
> can be used by the server in looking up the cached session.   Please
> respond to the list with any issues or improvements to the text.
>
> Thanks,
>
> Joe
>
> New text in section 3 to replace "When the server resumes a session, the
> server_name extension is ignored.":
>
> "When the server resumes a session, the contents of server_name
> extension may be used in the lookup of the session in the session cache.
> The client SHOULD include the same server_name extension during session
> resumption as it did in the full handshake that established the session.
> The client MAY omit the extension, in which case, if the server chooses
> to resume the session it must use the server name cached from the
> original full handshake.  The client MUST NOT include a different server
> name than what is included in the original full handshake.  If the
> server_name extension contains a different name the server MUST NOT
> allow the session to be resumed.  Instead, it proceeds with a full
> handshake to establish a new session. When resuming a session, the
> server MUST NOT include a server_name extension in the server hello."
>
> In addition the end of section 1.1 needs some modification to the last
> paragraph and bullet points:
>
> "Note also that all the extensions defined in this document are
>  relevant only when a session is initiated.  When a client includes
>  one or more of the defined extension types in an extended client
>  hello while requesting session resumption:
>
>       -  If the resumption request is denied, the use of the extensions
>          is negotiated as normal.
>
> -  The server name indication extension MAY be used during the
>          lookup of a cached session as described in section 3.
>
>       -  If, on the other hand, the older session is resumed, then the
>          server MUST ignore the extensions and send a server hello
>          containing none of the extension types.  In this case, the
>          functionality of these extensions negotiated during the
>          original session initiation is applied to the resumed session."
>
> Cheers,
>
> Joe
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls


From jsalowey@cisco.com  Thu May 20 08:29:35 2010
Return-Path: <jsalowey@cisco.com>
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 282733A66B4 for <tls@core3.amsl.com>; Thu, 20 May 2010 08:29:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.46
X-Spam-Level: 
X-Spam-Status: No, score=-8.46 tagged_above=-999 required=5 tests=[AWL=-1.061,  BAYES_50=0.001, J_CHICKENPOX_15=0.6, RCVD_IN_DNSWL_HI=-8]
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 uVDBSGrsbvPL for <tls@core3.amsl.com>; Thu, 20 May 2010 08:29:34 -0700 (PDT)
Received: from sj-iport-6.cisco.com (sj-iport-6.cisco.com [171.71.176.117]) by core3.amsl.com (Postfix) with ESMTP id 2082F3A67AB for <tls@ietf.org>; Thu, 20 May 2010 08:29:34 -0700 (PDT)
Authentication-Results: sj-iport-6.cisco.com; dkim=neutral (message not signed) header.i=none
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AuYKAKPx9EurR7Ht/2dsb2JhbACOP49FcaREmVaFEgSDQA
X-IronPort-AV: E=Sophos;i="4.53,272,1272844800"; d="scan'208";a="532720905"
Received: from sj-core-1.cisco.com ([171.71.177.237]) by sj-iport-6.cisco.com with ESMTP; 20 May 2010 15:29:27 +0000
Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by sj-core-1.cisco.com (8.13.8/8.14.3) with ESMTP id o4KFTFmo019351; Thu, 20 May 2010 15:29:27 GMT
Received: from xmb-sjc-225.amer.cisco.com ([128.107.191.38]) by xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.3959);  Thu, 20 May 2010 08:29:22 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Thu, 20 May 2010 08:29:21 -0700
Message-ID: <AC1CFD94F59A264488DC2BEC3E890DE50A67D0FA@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <003701caf817$b4754140$4001a8c0@gateway.2wire.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] Text for draft-ietf-tls-rfc4366-bis
Thread-Index: Acr4IIZ/PiPUc5BCTiKcjQiW2ZN4ywADB1WQ
References: <AC1CFD94F59A264488DC2BEC3E890DE50A67D09A@xmb-sjc-225.amer.cisco.com> <003701caf817$b4754140$4001a8c0@gateway.2wire.net>
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: "t.petch" <ietfc@btconnect.com>, <tls@ietf.org>
X-OriginalArrivalTime: 20 May 2010 15:29:22.0783 (UTC) FILETIME=[390EAEF0:01CAF831]
Subject: Re: [TLS] Text for draft-ietf-tls-rfc4366-bis
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: Thu, 20 May 2010 15:29:35 -0000

Good suggestion, thanks for the text, here is the text reworked:

"When the server is deciding whether or not to accept a request to
resume
 a session, the contents of a server_name extension may be used in=20
 the lookup of the session in the session cache.  The client SHOULD=20
 include the same server_name extension in session resumption=20
 request as it did in the full handshake that established the
 session.  If the server_name extension contains a different name,=20
 the server MUST NOT accept the request to resume the session.=20
 Instead, it proceeds with a full handshake to establish a new=20
 Session.  The client MAY omit the extension, in which case, if=20
 the server chooses to resume the session, it must use the server=20
 name cached from the original full handshake. When resuming a=20
 session, the server MUST NOT include a server_name extension in
 the server hello."

Changes to section 1.1

"Note also that all the extensions defined in this document are
 relevant only when a session is initiated.  When a client includes
 one or more of the defined extension types in an extended client
 hello while requesting session resumption:

	-  The server name indication extension MAY be used by the=20
         server when deciding whether or not to resume a session=20
         as described in section 3.

      -  If the resumption request is denied, the use of the extensions
         is negotiated as normal.

      -  If, on the other hand, the older session is resumed, then the
         server MUST ignore the extensions and send a server hello
         containing none of the extension types.  In this case, the
         functionality of these extensions negotiated during the
         original session initiation is applied to the resumed session."

> -----Original Message-----
> From: t.petch [mailto:ietfc@btconnect.com]
> Sent: Thursday, May 20, 2010 3:04 AM
> To: Joseph Salowey (jsalowey); tls@ietf.org
> Subject: Re: [TLS] Text for draft-ietf-tls-rfc4366-bis
>=20
> Joe
>=20
> I think that it still avoids the point that has been raised.
>=20
> Setting aside my dislike of using 'session resumption':-), I think
that
> the new text should split out the decision as to whether or not to
> accept such a request from the subsequent mechanics ie the first
> sentence must be along the lines of
>=20
> "When the server is deciding whether or not to accept a request to
resume
> a
> session, the contents of a server_name extension may be used in the
lookup
> of
> the session in the session cache."
> followed by such as
> "The client SHOULD include the same server_name extension during
session
> resumption request as it did in the full handshake that established
the
> session.
> If the server_name extension contains a different name, the server
MUST
> NOT
> accept the request to resume the session. Instead, it proceeds with a
full
> handshake to establish a new session
>=20
> " The client MAY omit the extension, in which case, if the server
chooses
> to resume the session, it must use the server name cached from the
> original full handshake.
>=20
> "When resuming a session, the server MUST NOT include a server_name
> extension in
> the server hello."
> etc
>=20
> Tom Petch
>=20
> ----- Original Message -----
> From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
> To: <tls@ietf.org>
> Sent: Thursday, May 20, 2010 7:15 AM
> Subject: [TLS] Text for draft-ietf-tls-rfc4366-bis
>=20
>=20
> > Below is some proposed text for inclusion in section 3 of
> > draft-ietf-tls-rfc4366-bis. The text now clarifies that the server
name
> > can be used by the server in looking up the cached session.   Please
> > respond to the list with any issues or improvements to the text.
> >
> > Thanks,
> >
> > Joe
> >
> > New text in section 3 to replace "When the server resumes a session,
the
> > server_name extension is ignored.":
> >
> > "When the server resumes a session, the contents of server_name
> > extension may be used in the lookup of the session in the session
cache.
> > The client SHOULD include the same server_name extension during
session
> > resumption as it did in the full handshake that established the
session.
> > The client MAY omit the extension, in which case, if the server
chooses
> > to resume the session it must use the server name cached from the
> > original full handshake.  The client MUST NOT include a different
server
> > name than what is included in the original full handshake.  If the
> > server_name extension contains a different name the server MUST NOT
> > allow the session to be resumed.  Instead, it proceeds with a full
> > handshake to establish a new session. When resuming a session, the
> > server MUST NOT include a server_name extension in the server
hello."
> >
> > In addition the end of section 1.1 needs some modification to the
last
> > paragraph and bullet points:
> >
> > "Note also that all the extensions defined in this document are
> >  relevant only when a session is initiated.  When a client includes
> >  one or more of the defined extension types in an extended client
> >  hello while requesting session resumption:
> >
> >       -  If the resumption request is denied, the use of the
extensions
> >          is negotiated as normal.
> >
> > -  The server name indication extension MAY be used during the
> >          lookup of a cached session as described in section 3.
> >
> >       -  If, on the other hand, the older session is resumed, then
the
> >          server MUST ignore the extensions and send a server hello
> >          containing none of the extension types.  In this case, the
> >          functionality of these extensions negotiated during the
> >          original session initiation is applied to the resumed
session."
> >
> > Cheers,
> >
> > Joe
> > _______________________________________________
> > TLS mailing list
> > TLS@ietf.org
> > https://www.ietf.org/mailman/listinfo/tls


From mike-list@pobox.com  Thu May 20 08:36:43 2010
Return-Path: <mike-list@pobox.com>
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 45BAF3A6C84 for <tls@core3.amsl.com>; Thu, 20 May 2010 08:36:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.691
X-Spam-Level: 
X-Spam-Status: No, score=-0.691 tagged_above=-999 required=5 tests=[AWL=-0.692, BAYES_50=0.001]
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 44iqoEIVmd9c for <tls@core3.amsl.com>; Thu, 20 May 2010 08:36:42 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 59FA23A6C4F for <tls@ietf.org>; Thu, 20 May 2010 08:36:41 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 5D803B5AC7; Thu, 20 May 2010 11:36:34 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=tuo8RacPUhpt 7/JCFUuwII1exxs=; b=QP+q69J0qyo5pYqauaYFfHpWW1vA6zSO1aMD8e4pL2qY ehWEORvfWOmV+x++EuFWiZQ4oXkkNOUsLRg1CJ8iHDcdXxmFlPzdxKJigmlyehio qVwgDWL4A1xQJnv7kN2j0L2/5wFnlpDlJRiKeQFy/skFbDo5ttMsg85lCPwpwUU=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=itrKHS ZSUv8ezyS0fA6vU5c31zTho0nJT/BhNhJ0GvUOGetovVBhi/gMTSM2BjnoyKnC/b P/Os9JB0BGX87/j/BRWPK3lxZwErbyjQVYsUNGA7yQ6A/b0NP+vZmV+sV/IN85xX bqEqlPRn/7Sfqw62YMBdwfBZccOWiEyHcPflA=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 3A39FB5AC5; Thu, 20 May 2010 11:36:32 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id EA851B5AC0; Thu, 20 May 2010 11:36:25 -0400 (EDT)
Message-ID: <4BF556F8.60206@pobox.com>
Date: Thu, 20 May 2010 08:36:24 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A67D09A@xmb-sjc-225.amer.cisco.com> <003701caf817$b4754140$4001a8c0@gateway.2wire.net> <AC1CFD94F59A264488DC2BEC3E890DE50A67D0FA@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A67D0FA@xmb-sjc-225.amer.cisco.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 774688A4-6425-11DF-BFC1-D033EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Text for draft-ietf-tls-rfc4366-bis
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: Thu, 20 May 2010 15:36:43 -0000

Joe - the new text looks good to me.

Mike



Joseph Salowey (jsalowey) wrote:
> Good suggestion, thanks for the text, here is the text reworked:
> 
> "When the server is deciding whether or not to accept a request to
> resume
>  a session, the contents of a server_name extension may be used in 
>  the lookup of the session in the session cache.  The client SHOULD 
>  include the same server_name extension in session resumption 
>  request as it did in the full handshake that established the
>  session.  If the server_name extension contains a different name, 
>  the server MUST NOT accept the request to resume the session. 
>  Instead, it proceeds with a full handshake to establish a new 
>  Session.  The client MAY omit the extension, in which case, if 
>  the server chooses to resume the session, it must use the server 
>  name cached from the original full handshake. When resuming a 
>  session, the server MUST NOT include a server_name extension in
>  the server hello."
> 
> Changes to section 1.1
> 
> "Note also that all the extensions defined in this document are
>  relevant only when a session is initiated.  When a client includes
>  one or more of the defined extension types in an extended client
>  hello while requesting session resumption:
> 
> 	-  The server name indication extension MAY be used by the 
>          server when deciding whether or not to resume a session 
>          as described in section 3.
> 
>       -  If the resumption request is denied, the use of the extensions
>          is negotiated as normal.
> 
>       -  If, on the other hand, the older session is resumed, then the
>          server MUST ignore the extensions and send a server hello
>          containing none of the extension types.  In this case, the
>          functionality of these extensions negotiated during the
>          original session initiation is applied to the resumed session."
> 

From Nicolas.Williams@oracle.com  Thu May 20 09:22:07 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 2C1743A6AA2 for <tls@core3.amsl.com>; Thu, 20 May 2010 09:22:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.122
X-Spam-Level: 
X-Spam-Status: No, score=-4.122 tagged_above=-999 required=5 tests=[AWL=-0.124, BAYES_50=0.001, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 xd9A3Cpri3tp for <tls@core3.amsl.com>; Thu, 20 May 2010 09:22:05 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id BAEBA3A69E1 for <tls@ietf.org>; Thu, 20 May 2010 09:22:04 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4KGLgUL031511 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 20 May 2010 16:21:44 GMT
Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4KFxorE003346; Thu, 20 May 2010 16:21:40 GMT
Received: from abhmt015.oracle.com by acsmt355.oracle.com with ESMTP id 285116281274372498; Thu, 20 May 2010 09:21:38 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 20 May 2010 09:21:38 -0700
Date: Thu, 20 May 2010 11:21:32 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Yoav Nir <ynir@checkpoint.com>
Message-ID: <20100520162131.GO9605@oracle.com>
References: <C8178EA6.AE48%stefan@aaa-sec.com> <C819B76D.AF2B%stefan@aaa-sec.com> <006FEB08D9C6444AB014105C9AEB133FB48F1B5AE0@il-ex01.ad.checkpoint.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <006FEB08D9C6444AB014105C9AEB133FB48F1B5AE0@il-ex01.ad.checkpoint.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090202.4BF56199.011E:SCFMA922111,ss=1,fgs=0
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Wrapping up cached info
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: Thu, 20 May 2010 16:22:07 -0000

On Thu, May 20, 2010 at 07:42:03AM +0300, Yoav Nir wrote:
> I still don't see why we need a secure cryptographic hash there as
> well. There has still not been any outline of an attack even in the
> presence of collisions.

I'd rather use a more conservative procedure.  Given a lack of
cryptographic protection of relevant protocol elements, it should be the
proponents' job to provide the analysis showing that the missing
protection does not create security problems.  Such an approach will
result in more conservative protocol designs, but also it will result in
lower review burden for reviewers.  Reviewer resources are finite;
making efficient use of them is important.

Providing unnecessary protection to such protocol elements is generally
harmless from a security point of view (always, if we ignore traffic
analysis issues, which we do in this context).  While not providing
necessary protection to such protocol elements is a sure way to get into
trouble.

The burden of analysis may shift onto reviewers when a conservative
protocol design presents significant performance or complexity
trade-offs.  In this case we seem to have settled on a design (proposed
by Stefan) that does not impose significant performance nor complexity
costs and which does provide the cryptographic protection that some
reviewers (yours truly included) have requested.  Sounds like a win-win
to me.

Nico
-- 

From benl@google.com  Thu May 20 09:40:09 2010
Return-Path: <benl@google.com>
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 24BEB3A685E for <tls@core3.amsl.com>; Thu, 20 May 2010 09:40:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.376
X-Spam-Level: 
X-Spam-Status: No, score=-103.376 tagged_above=-999 required=5 tests=[BAYES_50=0.001, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
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 lJFmfQ8tZ4SF for <tls@core3.amsl.com>; Thu, 20 May 2010 09:40:06 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id E6DBE3A67E5 for <tls@ietf.org>; Thu, 20 May 2010 09:40:04 -0700 (PDT)
Received: from hpaq2.eem.corp.google.com (hpaq2.eem.corp.google.com [172.25.149.2]) by smtp-out.google.com with ESMTP id o4KGdv4m027954 for <tls@ietf.org>; Thu, 20 May 2010 09:39:57 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1274373598; bh=wFBjL/dZZwXiHVRqbrq93L2e2mY=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=ciXknlSDV0xtBxXFIkQXQjfRiEeukvdcuY8CjjarJ06f6geNdCrWRt7CytekSLXn+ ra2B7tuVnbihXW0kb30pg==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:x-system-of-record; b=OCO+7H6Q+bneSiZUp3+W/XwCw5Pv+vvE1O29QgpFg5iNHYVPP1TlGXEIPNxJobLoM tpVi+WQdZj3/RrPrkN71g==
Received: from gwj23 (gwj23.prod.google.com [10.200.10.23]) by hpaq2.eem.corp.google.com with ESMTP id o4KGdtxR019234 for <tls@ietf.org>; Thu, 20 May 2010 09:39:56 -0700
Received: by gwj23 with SMTP id 23so11272gwj.3 for <tls@ietf.org>; Thu, 20 May 2010 09:39:55 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.65.4 with SMTP id n4mr1677554yba.63.1274373595173; Thu, 20  May 2010 09:39:55 -0700 (PDT)
Received: by 10.150.188.9 with HTTP; Thu, 20 May 2010 09:39:55 -0700 (PDT)
In-Reply-To: <20100520162131.GO9605@oracle.com>
References: <C8178EA6.AE48%stefan@aaa-sec.com> <C819B76D.AF2B%stefan@aaa-sec.com> <006FEB08D9C6444AB014105C9AEB133FB48F1B5AE0@il-ex01.ad.checkpoint.com> <20100520162131.GO9605@oracle.com>
Date: Thu, 20 May 2010 17:39:55 +0100
Message-ID: <AANLkTinVgRCvnJOOWZsaZVIJAe3Og7JHPF65t5brn0SO@mail.gmail.com>
From: Ben Laurie <benl@google.com>
To: Nicolas Williams <Nicolas.Williams@oracle.com>
Content-Type: multipart/alternative; boundary=000e0cd5a1ba7394660487093962
X-System-Of-Record: true
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Wrapping up cached info
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: Thu, 20 May 2010 16:40:09 -0000

--000e0cd5a1ba7394660487093962
Content-Type: text/plain; charset=ISO-8859-1

On 20 May 2010 17:21, Nicolas Williams <Nicolas.Williams@oracle.com> wrote:

> On Thu, May 20, 2010 at 07:42:03AM +0300, Yoav Nir wrote:
> > I still don't see why we need a secure cryptographic hash there as
> > well. There has still not been any outline of an attack even in the
> > presence of collisions.
>
> I'd rather use a more conservative procedure.  Given a lack of
> cryptographic protection of relevant protocol elements, it should be the
> proponents' job to provide the analysis showing that the missing
> protection does not create security problems.  Such an approach will
> result in more conservative protocol designs, but also it will result in
> lower review burden for reviewers.  Reviewer resources are finite;
> making efficient use of them is important.
>
> Providing unnecessary protection to such protocol elements is generally
> harmless from a security point of view (always, if we ignore traffic
> analysis issues, which we do in this context).  While not providing
> necessary protection to such protocol elements is a sure way to get into
> trouble.
>
> The burden of analysis may shift onto reviewers when a conservative
> protocol design presents significant performance or complexity
> trade-offs.  In this case we seem to have settled on a design (proposed
> by Stefan) that does not impose significant performance nor complexity
> costs and which does provide the cryptographic protection that some
> reviewers (yours truly included) have requested.  Sounds like a win-win
> to me.
>

+1.


>
> Nico
> --
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
>

--000e0cd5a1ba7394660487093962
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote">On 20 May 2010 17:21, Nicolas Williams <=
span dir=3D"ltr">&lt;<a href=3D"mailto:Nicolas.Williams@oracle.com">Nicolas=
.Williams@oracle.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex=
;">
<div class=3D"im">On Thu, May 20, 2010 at 07:42:03AM +0300, Yoav Nir wrote:=
<br>
&gt; I still don&#39;t see why we need a secure cryptographic hash there as=
<br>
&gt; well. There has still not been any outline of an attack even in the<br=
>
&gt; presence of collisions.<br>
<br>
</div>I&#39;d rather use a more conservative procedure. =A0Given a lack of<=
br>
cryptographic protection of relevant protocol elements, it should be the<br=
>
proponents&#39; job to provide the analysis showing that the missing<br>
protection does not create security problems. =A0Such an approach will<br>
result in more conservative protocol designs, but also it will result in<br=
>
lower review burden for reviewers. =A0Reviewer resources are finite;<br>
making efficient use of them is important.<br>
<br>
Providing unnecessary protection to such protocol elements is generally<br>
harmless from a security point of view (always, if we ignore traffic<br>
analysis issues, which we do in this context). =A0While not providing<br>
necessary protection to such protocol elements is a sure way to get into<br=
>
trouble.<br>
<br>
The burden of analysis may shift onto reviewers when a conservative<br>
protocol design presents significant performance or complexity<br>
trade-offs. =A0In this case we seem to have settled on a design (proposed<b=
r>
by Stefan) that does not impose significant performance nor complexity<br>
costs and which does provide the cryptographic protection that some<br>
reviewers (yours truly included) have requested. =A0Sounds like a win-win<b=
r>
to me.<br></blockquote><div><br></div><div>+1.</div><div>=A0</div><blockquo=
te class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc so=
lid;padding-left:1ex;">
<br>
Nico<br>
<font color=3D"#888888">--<br>
</font><div><div></div><div class=3D"h5">__________________________________=
_____________<br>
TLS mailing list<br>
<a href=3D"mailto:TLS@ietf.org">TLS@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/tls" target=3D"_blank">htt=
ps://www.ietf.org/mailman/listinfo/tls</a><br>
</div></div></blockquote></div><br>

--000e0cd5a1ba7394660487093962--

From ietfc@btconnect.com  Thu May 20 10:31:43 2010
Return-Path: <ietfc@btconnect.com>
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 5F3963A69D1 for <tls@core3.amsl.com>; Thu, 20 May 2010 10:31:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.289
X-Spam-Level: 
X-Spam-Status: No, score=-1.289 tagged_above=-999 required=5 tests=[AWL=-0.890, BAYES_50=0.001, J_CHICKENPOX_15=0.6, RCVD_IN_DNSWL_LOW=-1]
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 kAv0awbYrlmA for <tls@core3.amsl.com>; Thu, 20 May 2010 10:31:41 -0700 (PDT)
Received: from c2bthomr14.btconnect.com (c2bthomr14.btconnect.com [213.123.20.132]) by core3.amsl.com (Postfix) with ESMTP id 598EA3A6844 for <tls@ietf.org>; Thu, 20 May 2010 10:31:41 -0700 (PDT)
Received: from pc6 (host86-172-78-59.range86-172.btcentralplus.com [86.172.78.59]) by c2bthomr14.btconnect.com with SMTP id FKG85981; Thu, 20 May 2010 18:31:16 +0100 (BST)
X-Mirapoint-IP-Reputation: reputation=Fair-1, source=Queried, refid=0001.0A0B0301.4BF571E4.01CB, actions=tag
Message-ID: <006901caf839$788225a0$4001a8c0@gateway.2wire.net>
From: "t.petch" <ietfc@btconnect.com>
To: "Joseph Salowey \(jsalowey\)" <jsalowey@cisco.com>, <tls@ietf.org>
References: <AC1CFD94F59A264488DC2BEC3E890DE50A67D09A@xmb-sjc-225.amer.cisco.com> <003701caf817$b4754140$4001a8c0@gateway.2wire.net> <AC1CFD94F59A264488DC2BEC3E890DE50A67D0FA@xmb-sjc-225.amer.cisco.com>
Date: Thu, 20 May 2010 18:28:17 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Junkmail-Status: score=10/50, host=c2bthomr14.btconnect.com
X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A0B0208.4BF571E9.00DA,ss=1,fgs=0, ip=0.0.0.0, so=2009-07-20 21:54:04, dmn=5.7.1/2009-08-27, mode=single engine
X-Junkmail-IWF: false
Subject: Re: [TLS] Text for draft-ietf-tls-rfc4366-bis
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: Thu, 20 May 2010 17:31:43 -0000

yes, works for me.
Tom Petch

----- Original Message ----- 
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: "t.petch" <ietfc@btconnect.com>; <tls@ietf.org>
Sent: Thursday, May 20, 2010 5:29 PM
Subject: RE: [TLS] Text for draft-ietf-tls-rfc4366-bis


Good suggestion, thanks for the text, here is the text reworked:

"When the server is deciding whether or not to accept a request to
resume
 a session, the contents of a server_name extension may be used in 
 the lookup of the session in the session cache.  The client SHOULD 
 include the same server_name extension in session resumption 
 request as it did in the full handshake that established the
 session.  If the server_name extension contains a different name, 
 the server MUST NOT accept the request to resume the session. 
 Instead, it proceeds with a full handshake to establish a new 
 Session.  The client MAY omit the extension, in which case, if 
 the server chooses to resume the session, it must use the server 
 name cached from the original full handshake. When resuming a 
 session, the server MUST NOT include a server_name extension in
 the server hello."

Changes to section 1.1

"Note also that all the extensions defined in this document are
 relevant only when a session is initiated.  When a client includes
 one or more of the defined extension types in an extended client
 hello while requesting session resumption:

-  The server name indication extension MAY be used by the 
         server when deciding whether or not to resume a session 
         as described in section 3.

      -  If the resumption request is denied, the use of the extensions
         is negotiated as normal.

      -  If, on the other hand, the older session is resumed, then the
         server MUST ignore the extensions and send a server hello
         containing none of the extension types.  In this case, the
         functionality of these extensions negotiated during the
         original session initiation is applied to the resumed session."

> -----Original Message-----
> From: t.petch [mailto:ietfc@btconnect.com]
> Sent: Thursday, May 20, 2010 3:04 AM
> To: Joseph Salowey (jsalowey); tls@ietf.org
> Subject: Re: [TLS] Text for draft-ietf-tls-rfc4366-bis
> 
> Joe
> 
> I think that it still avoids the point that has been raised.
> 
> Setting aside my dislike of using 'session resumption':-), I think
that
> the new text should split out the decision as to whether or not to
> accept such a request from the subsequent mechanics ie the first
> sentence must be along the lines of
> 
> "When the server is deciding whether or not to accept a request to
resume
> a
> session, the contents of a server_name extension may be used in the
lookup
> of
> the session in the session cache."
> followed by such as
> "The client SHOULD include the same server_name extension during
session
> resumption request as it did in the full handshake that established
the
> session.
> If the server_name extension contains a different name, the server
MUST
> NOT
> accept the request to resume the session. Instead, it proceeds with a
full
> handshake to establish a new session
> 
> " The client MAY omit the extension, in which case, if the server
chooses
> to resume the session, it must use the server name cached from the
> original full handshake.
> 
> "When resuming a session, the server MUST NOT include a server_name
> extension in
> the server hello."
> etc
> 
> Tom Petch
> 
> ----- Original Message -----
> From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
> To: <tls@ietf.org>
> Sent: Thursday, May 20, 2010 7:15 AM
> Subject: [TLS] Text for draft-ietf-tls-rfc4366-bis
> 
> 
> > Below is some proposed text for inclusion in section 3 of
> > draft-ietf-tls-rfc4366-bis. The text now clarifies that the server
name
> > can be used by the server in looking up the cached session.   Please
> > respond to the list with any issues or improvements to the text.
> >
> > Thanks,
> >
> > Joe
> >
> > New text in section 3 to replace "When the server resumes a session,
the
> > server_name extension is ignored.":
> >
> > "When the server resumes a session, the contents of server_name
> > extension may be used in the lookup of the session in the session
cache.
> > The client SHOULD include the same server_name extension during
session
> > resumption as it did in the full handshake that established the
session.
> > The client MAY omit the extension, in which case, if the server
chooses
> > to resume the session it must use the server name cached from the
> > original full handshake.  The client MUST NOT include a different
server
> > name than what is included in the original full handshake.  If the
> > server_name extension contains a different name the server MUST NOT
> > allow the session to be resumed.  Instead, it proceeds with a full
> > handshake to establish a new session. When resuming a session, the
> > server MUST NOT include a server_name extension in the server
hello."
> >
> > In addition the end of section 1.1 needs some modification to the
last
> > paragraph and bullet points:
> >
> > "Note also that all the extensions defined in this document are
> >  relevant only when a session is initiated.  When a client includes
> >  one or more of the defined extension types in an extended client
> >  hello while requesting session resumption:
> >
> >       -  If the resumption request is denied, the use of the
extensions
> >          is negotiated as normal.
> >
> > -  The server name indication extension MAY be used during the
> >          lookup of a cached session as described in section 3.
> >
> >       -  If, on the other hand, the older session is resumed, then
the
> >          server MUST ignore the extensions and send a server hello
> >          containing none of the extension types.  In this case, the
> >          functionality of these extensions negotiated during the
> >          original session initiation is applied to the resumed
session."
> >
> > Cheers,
> >
> > Joe
> > _______________________________________________
> > TLS mailing list
> > TLS@ietf.org
> > https://www.ietf.org/mailman/listinfo/tls


From mrex@sap.com  Thu May 20 11:11:16 2010
Return-Path: <mrex@sap.com>
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 5C4803A6A60 for <tls@core3.amsl.com>; Thu, 20 May 2010 11:11:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.753
X-Spam-Level: 
X-Spam-Status: No, score=-7.753 tagged_above=-999 required=5 tests=[AWL=-0.104, BAYES_50=0.001, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_HI=-8]
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 YZgbFga6NVyH for <tls@core3.amsl.com>; Thu, 20 May 2010 11:11:15 -0700 (PDT)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.171]) by core3.amsl.com (Postfix) with ESMTP id 0DE3A3A69CD for <tls@ietf.org>; Thu, 20 May 2010 11:11:10 -0700 (PDT)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o4KIAxch023576 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 20 May 2010 20:11:00 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201005201810.o4KIAx6L005366@fs4113.wdf.sap.corp>
To: jsalowey@cisco.com (Joseph Salowey)
Date: Thu, 20 May 2010 20:10:58 +0200 (MEST)
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A67D0FA@xmb-sjc-225.amer.cisco.com> from "Joseph Salowey" at May 20, 10 08:29:21 am
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal06
X-SAP: out
Cc: tls@ietf.org
Subject: Re: [TLS] Text for draft-ietf-tls-rfc4366-bis
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
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/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: Thu, 20 May 2010 18:11:16 -0000

Joseph Salowey wrote:
> 
> Good suggestion, thanks for the text, here is the text reworked:
> 
> "When the server is deciding whether or not to accept a request to
>  resume a session, the contents of a server_name extension may be used
>  in the lookup of the session in the session cache.  The client SHOULD 
>  include the same server_name extension in session resumption 
>  request as it did in the full handshake that established the
>  session.  If the server_name extension contains a different name, 
>  the server MUST NOT accept the request to resume the session. 
>  Instead, it proceeds with a full handshake to establish a new 
>  Session.  The client MAY omit the extension, in which case, if 
>  the server chooses to resume the session, it must use the server 
>  name cached from the original full handshake. When resuming a 
>  session, the server MUST NOT include a server_name extension in
>  the server hello."

The requirements appear somewhat imbalanced to me.
In order to conform to the requirement

   If the server_name extension contains a different name,
   the server MUST NOT accept the request to resume the session.

every server must (a) implement server_name extension and (b)
memorize the content from the initial handshake in the TLS session
cache.  At that point the "may be used in the lookup of the session"
effectively becomes a MUST be used in the lookup of the session,
because the contents will always have to be verified before agreeing
a session resumption, even if the server_name contents isn't
technically used as a "lookup key" into the cache.


This MUST NOT would need to be scoped to the implementors of the
"MAY be used in the lookup of the session", and the MAY in the
first sentence probably be uppercased.


>From the architecture point of view, I see the following issues
to consider about interaction of ClientHello parameters and
session resumption:

 -  ClientHello parameters from the session resumption request
    MUST NOT affect the session within the session cache at all
    (except possibly deleting the session on a failed resumption)

 -  ClientHello parameters from the session resumption request
    MUST affect connection parameters only in documented fashion
    (derivation of keying material e.g. through additional PRF input,
     renegotiation_info extension)

 -  ClientHello parameters MUST be checked for compatibility with
    the characteristics of the cached session before resumption,
    but this check is limited to those parameters that the server
    actually implements/supports.

 -  In addition, a server may decide that ClientHello parameters
    provides characteristics that the server would prefer over the
    characteristics of the cached session and go for a full handshake


-Martin

From jsalowey@cisco.com  Thu May 20 14:22:20 2010
Return-Path: <jsalowey@cisco.com>
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 0DD0C3A68B1 for <tls@core3.amsl.com>; Thu, 20 May 2010 14:22:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.014
X-Spam-Level: 
X-Spam-Status: No, score=-10.014 tagged_above=-999 required=5 tests=[AWL=0.585, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
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 8UHEIWZBrtOO for <tls@core3.amsl.com>; Thu, 20 May 2010 14:22:13 -0700 (PDT)
Received: from sj-iport-5.cisco.com (sj-iport-5.cisco.com [171.68.10.87]) by core3.amsl.com (Postfix) with ESMTP id 75C9A3A68AA for <tls@ietf.org>; Thu, 20 May 2010 14:22:13 -0700 (PDT)
Authentication-Results: sj-iport-5.cisco.com; dkim=neutral (message not signed) header.i=none
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvsEANdE9UurRN+J/2dsb2JhbACeGnGlXJlVhRIEg0A
X-IronPort-AV: E=Sophos;i="4.53,273,1272844800"; d="scan'208";a="200424627"
Received: from sj-core-3.cisco.com ([171.68.223.137]) by sj-iport-5.cisco.com with ESMTP; 20 May 2010 21:22:07 +0000
Received: from xbh-sjc-231.amer.cisco.com (xbh-sjc-231.cisco.com [128.107.191.100]) by sj-core-3.cisco.com (8.13.8/8.14.3) with ESMTP id o4KLM7Ls012653; Thu, 20 May 2010 21:22:07 GMT
Received: from xmb-sjc-225.amer.cisco.com ([128.107.191.38]) by xbh-sjc-231.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.3959);  Thu, 20 May 2010 14:22:07 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Thu, 20 May 2010 14:22:01 -0700
Message-ID: <AC1CFD94F59A264488DC2BEC3E890DE50A7828B9@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <201005201810.o4KIAx6L005366@fs4113.wdf.sap.corp>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] Text for draft-ietf-tls-rfc4366-bis
Thread-Index: Acr4R9Gvyg7jXV7qRN+VZMquRXZYUQAGZzFA
References: <AC1CFD94F59A264488DC2BEC3E890DE50A67D0FA@xmb-sjc-225.amer.cisco.com> from "Joseph Salowey" at May 20, 10 08:29:21 am <201005201810.o4KIAx6L005366@fs4113.wdf.sap.corp>
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: <mrex@sap.com>
X-OriginalArrivalTime: 20 May 2010 21:22:07.0140 (UTC) FILETIME=[7FFF4640:01CAF862]
Cc: tls@ietf.org
Subject: Re: [TLS] Text for draft-ietf-tls-rfc4366-bis
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: Thu, 20 May 2010 21:22:20 -0000

Hi Martin,

Thanks, I think I captured your suggestion below. =20

"When the server is deciding whether or not to accept a request to
resume a session, the contents of a server_name extension MAY be used in
the lookup of the session in the session cache.  The client SHOULD
include the same server_name extension in session resumption request as
it did in the full handshake that established the session.  A server
that implements this extension MUST NOT accept the request to resume the
session if the server_name extension contains a different name.
Instead, it proceeds with a full handshake to establish a new session.
The client MAY omit the extension, in which case, if  the server chooses
to resume the session, it must use the server name cached from the
original full handshake. When resuming a  session, the server MUST NOT
include a server_name extension in  the server hello."

> -----Original Message-----
> From: Martin Rex [mailto:mrex@sap.com]
> Sent: Thursday, May 20, 2010 11:11 AM
> To: Joseph Salowey (jsalowey)
> Cc: ietfc@btconnect.com; tls@ietf.org
> Subject: Re: [TLS] Text for draft-ietf-tls-rfc4366-bis
>=20
> Joseph Salowey wrote:
> >
> > Good suggestion, thanks for the text, here is the text reworked:
> >
> > "When the server is deciding whether or not to accept a request to
> >  resume a session, the contents of a server_name extension may be
used
> >  in the lookup of the session in the session cache.  The client
SHOULD
> >  include the same server_name extension in session resumption
> >  request as it did in the full handshake that established the
> >  session.  If the server_name extension contains a different name,
> >  the server MUST NOT accept the request to resume the session.
> >  Instead, it proceeds with a full handshake to establish a new
> >  Session.  The client MAY omit the extension, in which case, if
> >  the server chooses to resume the session, it must use the server
> >  name cached from the original full handshake. When resuming a
> >  session, the server MUST NOT include a server_name extension in
> >  the server hello."
>=20
> The requirements appear somewhat imbalanced to me.
> In order to conform to the requirement
>=20
>    If the server_name extension contains a different name,
>    the server MUST NOT accept the request to resume the session.
>=20
> every server must (a) implement server_name extension and (b)
> memorize the content from the initial handshake in the TLS session
> cache.  At that point the "may be used in the lookup of the session"
> effectively becomes a MUST be used in the lookup of the session,
> because the contents will always have to be verified before agreeing
> a session resumption, even if the server_name contents isn't
> technically used as a "lookup key" into the cache.
>=20
>=20
> This MUST NOT would need to be scoped to the implementors of the
> "MAY be used in the lookup of the session", and the MAY in the
> first sentence probably be uppercased.
>=20
>=20
> From the architecture point of view, I see the following issues
> to consider about interaction of ClientHello parameters and
> session resumption:
>=20
>  -  ClientHello parameters from the session resumption request
>     MUST NOT affect the session within the session cache at all
>     (except possibly deleting the session on a failed resumption)
>=20
>  -  ClientHello parameters from the session resumption request
>     MUST affect connection parameters only in documented fashion
>     (derivation of keying material e.g. through additional PRF input,
>      renegotiation_info extension)
>=20
>  -  ClientHello parameters MUST be checked for compatibility with
>     the characteristics of the cached session before resumption,
>     but this check is limited to those parameters that the server
>     actually implements/supports.
>=20
>  -  In addition, a server may decide that ClientHello parameters
>     provides characteristics that the server would prefer over the
>     characteristics of the cached session and go for a full handshake
>=20
>=20
> -Martin

From jsalowey@cisco.com  Fri May 21 15:01:03 2010
Return-Path: <jsalowey@cisco.com>
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 CAF0A3A68C0 for <tls@core3.amsl.com>; Fri, 21 May 2010 15:01:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.738
X-Spam-Level: 
X-Spam-Status: No, score=-8.738 tagged_above=-999 required=5 tests=[AWL=-0.739, BAYES_50=0.001, RCVD_IN_DNSWL_HI=-8]
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 jCwER53NKMLx for <tls@core3.amsl.com>; Fri, 21 May 2010 15:01:02 -0700 (PDT)
Received: from sj-iport-4.cisco.com (sj-iport-4.cisco.com [171.68.10.86]) by core3.amsl.com (Postfix) with ESMTP id 7B21B3A68B1 for <tls@ietf.org>; Fri, 21 May 2010 15:01:02 -0700 (PDT)
Authentication-Results: sj-iport-4.cisco.com; dkim=neutral (message not signed) header.i=none
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvsEAPSf9kurRN+J/2dsb2JhbACeFXGlOplThRIEg0E
X-IronPort-AV: E=Sophos;i="4.53,280,1272844800"; d="scan'208";a="133250478"
Received: from sj-core-3.cisco.com ([171.68.223.137]) by sj-iport-4.cisco.com with ESMTP; 21 May 2010 22:00:56 +0000
Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com [128.107.191.63]) by sj-core-3.cisco.com (8.13.8/8.14.3) with ESMTP id o4LM0u5F027692; Fri, 21 May 2010 22:00:56 GMT
Received: from xmb-sjc-225.amer.cisco.com ([128.107.191.38]) by xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.3959);  Fri, 21 May 2010 15:00:56 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Fri, 21 May 2010 15:00:51 -0700
Message-ID: <AC1CFD94F59A264488DC2BEC3E890DE50A782CE1@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A7828B9@xmb-sjc-225.amer.cisco.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] Text for draft-ietf-tls-rfc4366-bis
Thread-Index: Acr4R9Gvyg7jXV7qRN+VZMquRXZYUQAGZzFAADNmxnA=
References: <AC1CFD94F59A264488DC2BEC3E890DE50A67D0FA@xmb-sjc-225.amer.cisco.com>from "Joseph Salowey" at May 20, 10 08:29:21 am <201005201810.o4KIAx6L005366@fs4113.wdf.sap.corp> <AC1CFD94F59A264488DC2BEC3E890DE50A7828B9@xmb-sjc-225.amer.cisco.com>
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>, <mrex@sap.com>
X-OriginalArrivalTime: 21 May 2010 22:00:56.0254 (UTC) FILETIME=[16AB9DE0:01CAF931]
Cc: tls@ietf.org
Subject: Re: [TLS] Text for draft-ietf-tls-rfc4366-bis
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: Fri, 21 May 2010 22:01:03 -0000

After an offline discussion with Martin I think we really should remove
the sentence " The client MAY omit the extension..." Omitting the
extension seems like a really bad idea, because if the session is not
resumed the client may establish a session with different
characteristics than what was intended. So now we have:

"When the server is deciding whether or not to accept a request to
resume a session, the contents of a server_name extension MAY be used in
the lookup of the session in the session cache.  The client SHOULD
include the same server_name extension in session resumption request as
it did in the full handshake that established the session.  A server
that implements this extension MUST NOT accept the request to resume the
session if the server_name extension contains a different name. Instead,
it proceeds with a full handshake to establish a new session. When
resuming a session, the server MUST NOT include a server_name extension
in  the server hello."=20

I think it is also worthwhile to include the guidance from section
7.4.1.4 in RFC 5246 in the paragraph at the end of section 1.1.:

"Note also that all the extensions defined in this document are
relevant only when a session is initiated.  A client that requests
session resumption does not in general know whether the server will
accept this request, and therefore it SHOULD send the same extensions as
it would send if it were not attempting resumption. When a client
includes  one or more of the defined extension types in an extended
client  hello while requesting session resumption:

	-  The server name indication extension MAY be used by the=20
         server when deciding whether or not to resume a session=20
         as described in section 3.

      -  If the resumption request is denied, the use of the extensions
         is negotiated as normal.

      -  If, on the other hand, the older session is resumed, then the
         server MUST ignore the extensions and send a server hello
         containing none of the extension types.  In this case, the
         functionality of these extensions negotiated during the
         original session initiation is applied to the resumed session."

Joe

> -----Original Message-----
> From: tls-bounces@ietf.org [mailto:tls-bounces@ietf.org] On Behalf Of
> Joseph Salowey (jsalowey)
> Sent: Thursday, May 20, 2010 2:22 PM
> To: mrex@sap.com
> Cc: tls@ietf.org
> Subject: Re: [TLS] Text for draft-ietf-tls-rfc4366-bis
>=20
> Hi Martin,
>=20
> Thanks, I think I captured your suggestion below.
>=20
> "When the server is deciding whether or not to accept a request to
> resume a session, the contents of a server_name extension MAY be used
in
> the lookup of the session in the session cache.  The client SHOULD
> include the same server_name extension in session resumption request
as
> it did in the full handshake that established the session.  A server
> that implements this extension MUST NOT accept the request to resume
the
> session if the server_name extension contains a different name.
> Instead, it proceeds with a full handshake to establish a new session.
> The client MAY omit the extension, in which case, if  the server
chooses
> to resume the session, it must use the server name cached from the
> original full handshake. When resuming a  session, the server MUST NOT
> include a server_name extension in  the server hello."
>=20
> > -----Original Message-----
> > From: Martin Rex [mailto:mrex@sap.com]
> > Sent: Thursday, May 20, 2010 11:11 AM
> > To: Joseph Salowey (jsalowey)
> > Cc: ietfc@btconnect.com; tls@ietf.org
> > Subject: Re: [TLS] Text for draft-ietf-tls-rfc4366-bis
> >
> > Joseph Salowey wrote:
> > >
> > > Good suggestion, thanks for the text, here is the text reworked:
> > >
> > > "When the server is deciding whether or not to accept a request to
> > >  resume a session, the contents of a server_name extension may be
> used
> > >  in the lookup of the session in the session cache.  The client
> SHOULD
> > >  include the same server_name extension in session resumption
> > >  request as it did in the full handshake that established the
> > >  session.  If the server_name extension contains a different name,
> > >  the server MUST NOT accept the request to resume the session.
> > >  Instead, it proceeds with a full handshake to establish a new
> > >  Session.  The client MAY omit the extension, in which case, if
> > >  the server chooses to resume the session, it must use the server
> > >  name cached from the original full handshake. When resuming a
> > >  session, the server MUST NOT include a server_name extension in
> > >  the server hello."
> >
> > The requirements appear somewhat imbalanced to me.
> > In order to conform to the requirement
> >
> >    If the server_name extension contains a different name,
> >    the server MUST NOT accept the request to resume the session.
> >
> > every server must (a) implement server_name extension and (b)
> > memorize the content from the initial handshake in the TLS session
> > cache.  At that point the "may be used in the lookup of the session"
> > effectively becomes a MUST be used in the lookup of the session,
> > because the contents will always have to be verified before agreeing
> > a session resumption, even if the server_name contents isn't
> > technically used as a "lookup key" into the cache.
> >
> >
> > This MUST NOT would need to be scoped to the implementors of the
> > "MAY be used in the lookup of the session", and the MAY in the
> > first sentence probably be uppercased.
> >
> >
> > From the architecture point of view, I see the following issues
> > to consider about interaction of ClientHello parameters and
> > session resumption:
> >
> >  -  ClientHello parameters from the session resumption request
> >     MUST NOT affect the session within the session cache at all
> >     (except possibly deleting the session on a failed resumption)
> >
> >  -  ClientHello parameters from the session resumption request
> >     MUST affect connection parameters only in documented fashion
> >     (derivation of keying material e.g. through additional PRF
input,
> >      renegotiation_info extension)
> >
> >  -  ClientHello parameters MUST be checked for compatibility with
> >     the characteristics of the cached session before resumption,
> >     but this check is limited to those parameters that the server
> >     actually implements/supports.
> >
> >  -  In addition, a server may decide that ClientHello parameters
> >     provides characteristics that the server would prefer over the
> >     characteristics of the cached session and go for a full
handshake
> >
> >
> > -Martin
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls

From brian@briansmith.org  Sun May 23 14:40:57 2010
Return-Path: <brian@briansmith.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 97B0A3A6D16 for <tls@core3.amsl.com>; Sun, 23 May 2010 14:40:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.463
X-Spam-Level: 
X-Spam-Status: No, score=-0.463 tagged_above=-999 required=5 tests=[AWL=-0.464, BAYES_50=0.001]
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 q1KJPGUHkqrv for <tls@core3.amsl.com>; Sun, 23 May 2010 14:40:56 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id A70333A6D1C for <tls@ietf.org>; Sun, 23 May 2010 14:40:56 -0700 (PDT)
Received: from T60 (unknown [70.245.69.20]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id AD3D2509DB; Sun, 23 May 2010 17:40:42 -0400 (EDT)
From: "Brian Smith" <brian@briansmith.org>
To: "'Stefan Santesson'" <stefan@aaa-sec.com>, <tls@ietf.org>
References: <20100519165226.GG9605@oracle.com> <C819EB15.AF55%stefan@aaa-sec.com>
In-Reply-To: <C819EB15.AF55%stefan@aaa-sec.com>
Date: Sun, 23 May 2010 16:40:41 -0500
Message-ID: <003201cafac0$9a75d9c0$cf618d40$@briansmith.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Content-Language: en-us
Thread-Index: AQLQ7/4q/KLQVzxL8sxVWEl+M5k3YwIitPLtAc+v0M0=
Subject: Re: [TLS] Wrapping up cached info
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: Sun, 23 May 2010 21:40:57 -0000

Stefan Santesson wrote:
> I will, provided that this seems acceptable still in a few days from now,
> write up a new draft that captures the changes which then hopefully can be
> ready for a WGLC.

There's another issue still. If the server sends the client an information
item X after the change cipher suite message, then the client must not send
a hash of that information item in its client hello message on another
connection, until it has verified the identity of the server on that second
connection. In other words, the client must ensure that it doesn't leak
information that would otherwise be confidential--including even certificate
messages and client certificate cipher suite messages that were received
over an encrypted connection.

Regards,
Brian


From stefan@aaa-sec.com  Sun May 23 22:39:01 2010
Return-Path: <stefan@aaa-sec.com>
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 DA3BA3A69B7 for <tls@core3.amsl.com>; Sun, 23 May 2010 22:39:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.369
X-Spam-Level: 
X-Spam-Status: No, score=-1.369 tagged_above=-999 required=5 tests=[AWL=-0.720, BAYES_50=0.001, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_LOW=-1]
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 1Zhb579wgzPG for <tls@core3.amsl.com>; Sun, 23 May 2010 22:39:01 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id DC6A03A6A6F for <tls@ietf.org>; Sun, 23 May 2010 22:39:00 -0700 (PDT)
Received: from s128.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id CAFB238E713 for <tls@ietf.org>; Mon, 24 May 2010 07:22:58 +0200 (CEST)
Received: (qmail 90828 invoked from network); 24 May 2010 05:22:57 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.8]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s128.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <brian@briansmith.org>; 24 May 2010 05:22:57 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Mon, 24 May 2010 07:22:56 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: Brian Smith <brian@briansmith.org>, <tls@ietf.org>
Message-ID: <C81FD9D0.B086%stefan@aaa-sec.com>
Thread-Topic: [TLS] Wrapping up cached info
Thread-Index: AQLQ7/4q/KLQVzxL8sxVWEl+M5k3YwIitPLtAc+v0M2QNI8y5w==
In-Reply-To: <003201cafac0$9a75d9c0$cf618d40$@briansmith.org>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Subject: Re: [TLS] Wrapping up cached info
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: Mon, 24 May 2010 05:39:02 -0000

Could you explain why?
What is the attack scenario?

/Stefan


On 10-05-23 11:40 PM, "Brian Smith" <brian@briansmith.org> wrote:

> Stefan Santesson wrote:
>> I will, provided that this seems acceptable still in a few days from now,
>> write up a new draft that captures the changes which then hopefully can be
>> ready for a WGLC.
> 
> There's another issue still. If the server sends the client an information
> item X after the change cipher suite message, then the client must not send
> a hash of that information item in its client hello message on another
> connection, until it has verified the identity of the server on that second
> connection. In other words, the client must ensure that it doesn't leak
> information that would otherwise be confidential--including even certificate
> messages and client certificate cipher suite messages that were received
> over an encrypted connection.
> 
> Regards,
> Brian
> 



From yngve@opera.com  Tue May 25 06:43:30 2010
Return-Path: <yngve@opera.com>
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 540763A6B0C for <tls@core3.amsl.com>; Tue, 25 May 2010 06:43:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.999
X-Spam-Level: 
X-Spam-Status: No, score=-3.999 tagged_above=-999 required=5 tests=[BAYES_50=0.001, 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 Z6Y2IinweV73 for <tls@core3.amsl.com>; Tue, 25 May 2010 06:43:29 -0700 (PDT)
Received: from smtp.opera.com (smtp.opera.com [213.236.208.81]) by core3.amsl.com (Postfix) with ESMTP id 89AA93A6BCF for <tls@ietf.org>; Tue, 25 May 2010 06:43:28 -0700 (PDT)
Received: from killashandra.oslo.osa (pat-tdc.opera.com [213.236.208.22]) by smtp.opera.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o4PDhG5V002618 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for <tls@ietf.org>; Tue, 25 May 2010 13:43:17 GMT
Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes
To: tls@ietf.org
Date: Tue, 25 May 2010 15:42:42 +0200
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
From: "Yngve Nysaeter Pettersen" <yngve@opera.com>
Organization: Opera Software
Message-ID: <op.vc9kdggnvqd7e2@killashandra.oslo.osa>
User-Agent: Opera Mail/10.53 (Win32)
Subject: [TLS] RFC-4366-bis and the unrecognized_name(112) alert
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: yngve@opera.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/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: Tue, 25 May 2010 13:43:30 -0000

Hello all,

In the past few of weeks a couple of servers supporting SNI has come to my  
attention because they send the Warning alert "unrecognized_name" (112) in  
response to their actual name (that is, it should have recognized the  
name, and not sent that Warning).

It seems like these servers have started to use the SNI functionality in  
the underlying TLS implementation, but that there is a problem with  
configuring the handling of the extension and keeping it in sync with the  
rest of the configuration. That is a problem for the vendor.

RFC 4366-bis currently says:

    If the server understood the client hello extension but
    does not recognize any of the server names, it SHOULD send an
    unrecognized_name(112) alert (which MAY be fatal).

My question is: What should a client do if it receives this alert as a  
Warning?

AFAICT there are several options:

   - Ignore it (several clients appears to do this currently). If so, what  
is the use-case for this warning?

   - Always ask the user. He or she probably won't understand the issue,  
and will click through anyway.

   - Check the certificate, and either warn the user if it does not match  
(which all browsers would do anyway without the alert; so why need the  
alert?), or escalate to Fatal.

   - Always escalate to Fatal (which is what Opera currently does)

What was the original reasoning for making the alert only optionally  
Fatal? Why not always Fatal, or always Warning?

May I suggest that the spec is updated with some advice for how a client  
should behave when it receives the alert as a Warning?


-- 
Sincerely,
Yngve N. Pettersen
********************************************************************
Senior Developer		     Email: yngve@opera.com
Opera Software ASA                   http://www.opera.com/
Phone:  +47 24 16 42 60              Fax:    +47 24 16 40 01
********************************************************************

From mrex@sap.com  Tue May 25 06:47:16 2010
Return-Path: <mrex@sap.com>
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 CD1FD3A6E2D for <tls@core3.amsl.com>; Tue, 25 May 2010 06:47:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.445
X-Spam-Level: 
X-Spam-Status: No, score=-7.445 tagged_above=-999 required=5 tests=[AWL=-0.396, BAYES_50=0.001, HELO_EQ_DE=0.35, J_CHICKENPOX_66=0.6, RCVD_IN_DNSWL_HI=-8]
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 b0fqPXn0Meer for <tls@core3.amsl.com>; Tue, 25 May 2010 06:47:16 -0700 (PDT)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.171]) by core3.amsl.com (Postfix) with ESMTP id B18073A6BF9 for <tls@ietf.org>; Tue, 25 May 2010 06:47:15 -0700 (PDT)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o4PDkw3r003247 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 25 May 2010 15:46:59 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201005251346.o4PDkvJT024708@fs4113.wdf.sap.corp>
To: brian@briansmith.org (Brian Smith)
Date: Tue, 25 May 2010 15:46:57 +0200 (MEST)
In-Reply-To: <003201cafac0$9a75d9c0$cf618d40$@briansmith.org> from "Brian Smith" at May 23, 10 04:40:41 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal05
X-SAP: out
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
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/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: Tue, 25 May 2010 13:47:16 -0000

Brian Smith wrote:
> 
> Stefan Santesson wrote:
> > I will, provided that this seems acceptable still in a few days from now,
> > write up a new draft that captures the changes which then hopefully can be
> > ready for a WGLC.
> 
> There's another issue still. If the server sends the client an information
> item X after the change cipher suite message, then the client must not send
> a hash of that information item in its client hello message on another
> connection, until it has verified the identity of the server on that second
> connection. In other words, the client must ensure that it doesn't leak
> information that would otherwise be confidential--including even certificate
> messages and client certificate cipher suite messages that were received
> over an encrypted connection.


I think that should be described in the Security Considerations that
a client or client&server that perform renegotiation for the purpose
of client identity protection may want to tag their cached values
so that when that value was established on an encrypted handshake,
it is not going to be proposed by the client on a successor
plaintext handshake.

-Martin

From mike-list@pobox.com  Tue May 25 08:41:30 2010
Return-Path: <mike-list@pobox.com>
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 AF49B3A69B0 for <tls@core3.amsl.com>; Tue, 25 May 2010 08:41:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.754
X-Spam-Level: 
X-Spam-Status: No, score=-0.754 tagged_above=-999 required=5 tests=[AWL=-0.569, BAYES_40=-0.185]
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 Snvy1A-kkkx9 for <tls@core3.amsl.com>; Tue, 25 May 2010 08:41:29 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 3B5703A6916 for <tls@ietf.org>; Tue, 25 May 2010 08:41:29 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 6B1F7B695D; Tue, 25 May 2010 11:41:20 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=qsl1y2kXWle2 4bPvJlm+KUPYrTY=; b=vhN+4ityf3p7mDaI+dX9XZZqfZa1wXpQUCi3cvgkU80W uK2wL+QkP1QV0FvtVrevbBBerp54zOVLOxtJK+8RV12iBMzGdZddotB8eD16l/o3 nIiXSalxYdlE3T60cVxzzqmvA1SdikA/mtjdyFaRroFRFsP0nADHfeDTIs/vzOg=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=M/82Zf YomK3YwZeNWBmsuJu46DI/wlVFJVSZhCW2MYYDSs9/YNI1qC8GvyLK0lt5f+QNVc mfeV22w8BsCLt4G7g7jEvAPvnv/sI0mopK9+yxMVj7Zyl95/gVkh+EfGu+r+jaFq GKWBMenTWi4WCyzW/5I85PKDt0jUm7EcLnC1s=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 57290B695B; Tue, 25 May 2010 11:41:19 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id F3500B6959; Tue, 25 May 2010 11:41:16 -0400 (EDT)
Message-ID: <4BFBEF9B.6070602@pobox.com>
Date: Tue, 25 May 2010 08:41:15 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: yngve@opera.com
References: <op.vc9kdggnvqd7e2@killashandra.oslo.osa>
In-Reply-To: <op.vc9kdggnvqd7e2@killashandra.oslo.osa>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: F67A226A-6813-11DF-A7F8-6730EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] RFC-4366-bis and the unrecognized_name(112) alert
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: Tue, 25 May 2010 15:41:30 -0000

In my server code, the SNI is checked to see if there is a matching
virtual host with that domain name.  If there is, then no alert is
sent.  If there is no matching virtual host, then it checks whether
there is a default virtual host set up.  If there is a default, then
an unrecognized_name alert is sent with the warning level.  When no
default is configured, the alert sent is fatal since the handshake
can not continue.

The warning lets the client know that there was not a match, but that
the server can still continue using its default.

Mike



Yngve Nysaeter Pettersen wrote:
> Hello all,
> 
> In the past few of weeks a couple of servers supporting SNI has come to 
> my attention because they send the Warning alert "unrecognized_name" 
> (112) in response to their actual name (that is, it should have 
> recognized the name, and not sent that Warning).
> 
> It seems like these servers have started to use the SNI functionality in 
> the underlying TLS implementation, but that there is a problem with 
> configuring the handling of the extension and keeping it in sync with 
> the rest of the configuration. That is a problem for the vendor.
> 
> RFC 4366-bis currently says:
> 
>    If the server understood the client hello extension but
>    does not recognize any of the server names, it SHOULD send an
>    unrecognized_name(112) alert (which MAY be fatal).
> 
> My question is: What should a client do if it receives this alert as a 
> Warning?
> 
> AFAICT there are several options:
> 
>   - Ignore it (several clients appears to do this currently). If so, 
> what is the use-case for this warning?
> 
>   - Always ask the user. He or she probably won't understand the issue, 
> and will click through anyway.
> 
>   - Check the certificate, and either warn the user if it does not match 
> (which all browsers would do anyway without the alert; so why need the 
> alert?), or escalate to Fatal.
> 
>   - Always escalate to Fatal (which is what Opera currently does)
> 
> What was the original reasoning for making the alert only optionally 
> Fatal? Why not always Fatal, or always Warning?
> 
> May I suggest that the spec is updated with some advice for how a client 
> should behave when it receives the alert as a Warning?


From mrex@sap.com  Tue May 25 09:57:48 2010
Return-Path: <mrex@sap.com>
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 DB1E33A6ABE for <tls@core3.amsl.com>; Tue, 25 May 2010 09:57:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.734
X-Spam-Level: 
X-Spam-Status: No, score=-7.734 tagged_above=-999 required=5 tests=[AWL=-0.085, BAYES_50=0.001, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_HI=-8]
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 nac+3lu4B1Nh for <tls@core3.amsl.com>; Tue, 25 May 2010 09:57:47 -0700 (PDT)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.171]) by core3.amsl.com (Postfix) with ESMTP id 8B69A3A6AE1 for <tls@ietf.org>; Tue, 25 May 2010 09:57:46 -0700 (PDT)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o4PGvbdE022994 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 25 May 2010 18:57:37 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201005251657.o4PGvZkE006346@fs4113.wdf.sap.corp>
To: mike-list@pobox.com (Michael D'Errico)
Date: Tue, 25 May 2010 18:57:35 +0200 (MEST)
In-Reply-To: <4BFBEF9B.6070602@pobox.com> from "Michael D'Errico" at May 25, 10 08:41:15 am
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal07
X-SAP: out
Cc: tls@ietf.org
Subject: Re: [TLS] RFC-4366-bis and the unrecognized_name(112) alert
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
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/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: Tue, 25 May 2010 16:57:49 -0000

Michael D'Errico wrote:
> 
> In my server code, the SNI is checked to see if there is a matching
> virtual host with that domain name.  If there is, then no alert is
> sent.  If there is no matching virtual host, then it checks whether
> there is a default virtual host set up.  If there is a default, then
> an unrecognized_name alert is sent with the warning level.  When no
> default is configured, the alert sent is fatal since the handshake
> can not continue.
> 
> The warning lets the client know that there was not a match, but that
> the server can still continue using its default.


While this behaviour appears quite sensible/plausible, it will lead
to the behaviour in the wild that Yngve is reporting.

Support for SNI is something that will at some point be adopted by
a server TLS stack, and it can easily happen before the application
(server) above is able to configure it appropriately.

This is particularly likely to happen if an updated TLS implementation is
made a drop-in replacement for a previous version without it and one
is distributing the updated TLS implementation into an installed base,
i.e. the TLS implementation is updated without touching application
code or configuration.

Usually, this indicates an avoidable and unnecessary backwards interop
problem created by the server TLS implementation.  An application which
does not configure any SNI characteristics, is not using SNI, and
for these, the server TLS implementation should _NOT_ be sending
SNI mismatch TLS alerts unless the application explicitly requests so.

There are other unnecessary interop problems created by TLS implementations
that are sloppy.  Like TLS implementations sending out-of-order
certificate_list elements in Certificate handshake messages or
sending incomplete certification chains, that (server) lack more
that just a self-signed root certificate or that (client) do not
end at one of the trusted issuers announced by the server in the
certificate_authorities list of the CertificateRequest handshake
message.  While such behaviour might be helpful for automated
testing, it ought _NOT_ to be the default behaviour and only be
used when _explicitly_ requested by the calling application.

It is not a good idea for a protocol implementation to make a
remote peer suffer for a configuration problem that can be
only be fixed locally, in particular when it can be easily
detected locally.


-Martin

From mike-list@pobox.com  Tue May 25 10:58:34 2010
Return-Path: <mike-list@pobox.com>
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 B65583A6974 for <tls@core3.amsl.com>; Tue, 25 May 2010 10:58:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.937
X-Spam-Level: 
X-Spam-Status: No, score=-1.937 tagged_above=-999 required=5 tests=[AWL=0.662,  BAYES_00=-2.599]
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 i7ff+rIg1+i9 for <tls@core3.amsl.com>; Tue, 25 May 2010 10:58:33 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 6FE6A3A6918 for <tls@ietf.org>; Tue, 25 May 2010 10:58:33 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 864B7B6F62; Tue, 25 May 2010 13:58:24 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=MW3AMMV9qllH jBz0syBKwwujUgc=; b=TLCoOGVVBsl76ffWegULz4fLWt7WrVqAx49wy7ErIL8V fDq7+v52RZCKf3omU+sKGF3fN0JAM/oenJVf2TpD8TzYKqcCDc3dV3VzlBnF3s+x mAotVgOPULDmQpGP/rxhZxAepMjVjAtvUI7TpiYAjxlEazK2Ijg4EDlABGpQvjY=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=qYkD2g /hxn2WsLi33PeIbuAVcNZ3AGC3Wo3Ryt6HNlwyadNTCUm+Yz2ZrxyYIwMMwH4e4+ r9v4WZQuXyX1uYAjG6wg46+w+1rNlzEfCrzKUt+XsU0hLHqJM/x+6J1DxJLfKVTI 3Agv8q6H3pQMBLmB+0FYyi2PWYqjdEHqXLo3c=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 5FCA9B6F61; Tue, 25 May 2010 13:58:22 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id E31D9B6F5F; Tue, 25 May 2010 13:58:18 -0400 (EDT)
Message-ID: <4BFC0FB9.5030908@pobox.com>
Date: Tue, 25 May 2010 10:58:17 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: mrex@sap.com
References: <201005251657.o4PGvZkE006346@fs4113.wdf.sap.corp>
In-Reply-To: <201005251657.o4PGvZkE006346@fs4113.wdf.sap.corp>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 1BC8509C-6827-11DF-A751-6730EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] RFC-4366-bis and the unrecognized_name(112) alert
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: Tue, 25 May 2010 17:58:34 -0000

Martin Rex wrote:
> Michael D'Errico wrote:
>> In my server code, the SNI is checked to see if there is a matching
>> virtual host with that domain name.  If there is, then no alert is
>> sent.  If there is no matching virtual host, then it checks whether
>> there is a default virtual host set up.  If there is a default, then
>> an unrecognized_name alert is sent with the warning level.  When no
>> default is configured, the alert sent is fatal since the handshake
>> can not continue.
>>
>> The warning lets the client know that there was not a match, but that
>> the server can still continue using its default.
> 
> 
> While this behaviour appears quite sensible/plausible, it will lead
> to the behaviour in the wild that Yngve is reporting.
> 
> An application which
> does not configure any SNI characteristics, is not using SNI, and
> for these, the server TLS implementation should _NOT_ be sending
> SNI mismatch TLS alerts unless the application explicitly requests so.

My server code will not send an alert unless the client (a) sent an
SNI and (b) that SNI did not map to a virtual host.

So that should not cause a problem.

It might be a good idea to clarify when sending an unrecognized_name
alert would be appropriate and clarify that it can be just a warning
and what that means.

Mike

From juhovh@iki.fi  Thu May 27 08:29:29 2010
Return-Path: <juhovh@iki.fi>
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 A8DF03A6947 for <tls@core3.amsl.com>; Thu, 27 May 2010 08:29:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.699
X-Spam-Level: 
X-Spam-Status: No, score=-3.699 tagged_above=-999 required=5 tests=[BAYES_50=0.001, MIME_8BIT_HEADER=0.3, 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 9K-WB1lkrd+v for <tls@core3.amsl.com>; Thu, 27 May 2010 08:29:28 -0700 (PDT)
Received: from smtp-3.hut.fi (smtp-3.hut.fi [130.233.228.93]) by core3.amsl.com (Postfix) with ESMTP id 234F53A6955 for <tls@ietf.org>; Thu, 27 May 2010 08:29:27 -0700 (PDT)
Received: from localhost (katosiko.hut.fi [130.233.228.115]) by smtp-3.hut.fi (8.13.6/8.12.10) with ESMTP id o4RFTEDI028872 for <tls@ietf.org>; Thu, 27 May 2010 18:29:14 +0300
Received: from smtp-3.hut.fi ([130.233.228.93]) by localhost (katosiko.hut.fi [130.233.228.115]) (amavisd-new, port 10024) with LMTP id 21577-970 for <tls@ietf.org>; Thu, 27 May 2010 18:29:14 +0300 (EEST)
Received: from [130.233.194.249] (vbwin.cs.hut.fi [130.233.194.249]) by smtp-3.hut.fi (8.13.6/8.12.10) with ESMTP id o4RFTAut028851 for <tls@ietf.org>; Thu, 27 May 2010 18:29:10 +0300
Message-ID: <4BFE8FC5.4070509@iki.fi>
Date: Thu, 27 May 2010 18:29:09 +0300
From: =?ISO-8859-1?Q?Juho_V=E4h=E4-Herttua?= <juhovh@iki.fi>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; fi; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4
MIME-Version: 1.0
To: tls@ietf.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-TKK-Virus-Scanned: by amavisd-new-2.1.2-hutcc at katosiko.hut.fi
Subject: [TLS] About TLS 1.2 AEAD ciphers definition
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: Thu, 27 May 2010 15:29:29 -0000

Hi,

I'm implementing TLS (including v1.2) and went through the 6.2.3.3. 
chapter of AEAD ciphers definition. The following puzzles me:

       additional_data = seq_num + TLSCompressed.type +
                         TLSCompressed.version + TLSCompressed.length;

       AEADEncrypted = AEAD-Encrypt(write_key, nonce, plaintext,
                                    additional_data)

       TLSCompressed.fragment = AEAD-Decrypt(write_key, nonce,
                                             AEADEncrypted,
                                             additional_data


This seems to be strange in case of AEAD-Decrypt, because 
additional_data contains TLSCompressed information, which is not 
available before decryption. I started to trace it down and found out it 
was changed in draft-ietf-tls-rfc4346-bis-05 back in 2007. To find some 
reason for this change, I noticed the following email:

http://www.ietf.org/mail-archive/web/tls/current/msg01870.html

It seems to me that the change was made after this email and probably as 
a response to it. Before the change AEAD-Encrypt was using 
TLSCompressed.length and AEAD-Decrypt was using TLSCiphertext.length, 
which may be different if the AEAD cipher adds some own padding to it.

So I'm curious to know how is AEAD actually handled and how to find out 
the TLSCompressed.length when constructing additional_data for 
AEAD-Decrypt? I'm sure there are more experienced people here who can 
tell me the answer. Thank you in advance.


Juho


From brian@briansmith.org  Thu May 27 08:38:33 2010
Return-Path: <brian@briansmith.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 40A1A3A6960 for <tls@core3.amsl.com>; Thu, 27 May 2010 08:38:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.601
X-Spam-Level: 
X-Spam-Status: No, score=0.601 tagged_above=-999 required=5 tests=[BAYES_50=0.001, J_CHICKENPOX_66=0.6]
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 OvxT8XFBbnpN for <tls@core3.amsl.com>; Thu, 27 May 2010 08:38:28 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 381453A6950 for <tls@ietf.org>; Thu, 27 May 2010 08:38:28 -0700 (PDT)
Received: from T60 (unknown [70.245.69.20]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id B1547509DA; Thu, 27 May 2010 11:38:11 -0400 (EDT)
From: "Brian Smith" <brian@briansmith.org>
To: <mrex@sap.com>
References: <003201cafac0$9a75d9c0$cf618d40$@briansmith.org> from "Brian Smith" at May 23, 10 04:40:41 pm <201005251346.o4PDkvJT024708@fs4113.wdf.sap.corp>
In-Reply-To: <201005251346.o4PDkvJT024708@fs4113.wdf.sap.corp>
Date: Thu, 27 May 2010 10:38:09 -0500
Message-ID: <000301cafdb2$9f59f800$de0de800$@briansmith.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQHPr9DNi55j7moazUDWaBpt75m2CQMEn5zqAjgegDw=
Content-Language: en-us
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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: Thu, 27 May 2010 15:38:33 -0000

Martin Rex wrote:
> Brian Smith wrote:
> > There's another issue still. If the server sends the client an
information
> > item X after the change cipher suite message, then the client must not
send
> > a hash of that information item in its client hello message on another
> > connection, until it has verified the identity of the server on that
second
> > connection. In other words, the client must ensure that it doesn't leak
> > information that would otherwise be confidential--including even
certificate
> > messages and client certificate cipher suite messages that were received
> > over an encrypted connection.
> 
> I think that should be described in the Security Considerations that
> a client or client&server that perform renegotiation for the purpose
> of client identity protection may want to tag their cached values
> so that when that value was established on an encrypted handshake,
> it is not going to be proposed by the client on a successor
> plaintext handshake.

How would the server indicate this to the client?

Regards,
Brian



From Nicolas.Williams@oracle.com  Thu May 27 08:48:20 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 1967B3A6968 for <tls@core3.amsl.com>; Thu, 27 May 2010 08:48:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.565
X-Spam-Level: 
X-Spam-Status: No, score=-4.565 tagged_above=-999 required=5 tests=[AWL=-1.167, BAYES_50=0.001, J_CHICKENPOX_66=0.6, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 GA4vr2Tb0BKO for <tls@core3.amsl.com>; Thu, 27 May 2010 08:48:18 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 7DDAD3A6359 for <tls@ietf.org>; Thu, 27 May 2010 08:48:18 -0700 (PDT)
Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4RFm5o1010194 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 27 May 2010 15:48:06 GMT
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4REgOH9029490; Thu, 27 May 2010 15:48:03 GMT
Received: from abhmt021.oracle.com by acsmt355.oracle.com with ESMTP id 274105631274975244; Thu, 27 May 2010 08:47:24 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 27 May 2010 08:47:22 -0700
Date: Thu, 27 May 2010 10:47:17 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Brian Smith <brian@briansmith.org>
Message-ID: <20100527154717.GQ9605@oracle.com>
References: <003201cafac0$9a75d9c0$cf618d40$@briansmith.org> <201005251346.o4PDkvJT024708@fs4113.wdf.sap.corp> <000301cafdb2$9f59f800$de0de800$@briansmith.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <000301cafdb2$9f59f800$de0de800$@briansmith.org>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: rcsinet13.oracle.com [148.87.113.125]
X-CT-RefId: str=0001.0A090203.4BFE9437.00F2:SCFMA4539811,ss=1,fgs=0
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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: Thu, 27 May 2010 15:48:20 -0000

On Thu, May 27, 2010 at 10:38:09AM -0500, Brian Smith wrote:
> Martin Rex wrote:
> > I think that should be described in the Security Considerations that
> > a client or client&server that perform renegotiation for the purpose
> > of client identity protection may want to tag their cached values
> > so that when that value was established on an encrypted handshake,
> > it is not going to be proposed by the client on a successor
> > plaintext handshake.

Yes.

> How would the server indicate this to the client?

There's no need for the server to indicate anything to the client here.

If a client wouldn't attempt user authentication w/o re-negotiation then
it shouldn't send a hash of its user cert / cert chain in the initial
handshake.  If a server considers user cert TAs to be confidential
(highly unlikely, but let's suppose) then the server shouldn't list
their hashes in initial handshakes.  It's that simple.

Nico
-- 

From stefan@aaa-sec.com  Thu May 27 09:00:12 2010
Return-Path: <stefan@aaa-sec.com>
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 0BBDE3A6B2C for <tls@core3.amsl.com>; Thu, 27 May 2010 09:00:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.349
X-Spam-Level: 
X-Spam-Status: No, score=0.349 tagged_above=-999 required=5 tests=[AWL=0.398,  BAYES_50=0.001, HELO_EQ_SE=0.35, J_CHICKENPOX_66=0.6, RCVD_IN_DNSWL_LOW=-1]
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 JnKo6c9lREvF for <tls@core3.amsl.com>; Thu, 27 May 2010 09:00:10 -0700 (PDT)
Received: from s87.loopia.se (s87.loopia.se [194.9.94.112]) by core3.amsl.com (Postfix) with ESMTP id 0BACD3A6B28 for <tls@ietf.org>; Thu, 27 May 2010 09:00:09 -0700 (PDT)
Received: from s19.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 2420828AA75 for <tls@ietf.org>; Thu, 27 May 2010 18:00:04 +0200 (CEST)
Received: (qmail 34620 invoked from network); 27 May 2010 15:59:58 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.8]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s19.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <tls@ietf.org>; 27 May 2010 15:59:58 -0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Thu, 27 May 2010 17:59:57 +0200
From: Stefan Santesson <stefan@aaa-sec.com>
To: <tls@ietf.org>
Message-ID: <C824639D.B1F6%stefan@aaa-sec.com>
Thread-Topic: [TLS] Wrapping up cached info
Thread-Index: Acr9tac6Fnujif/7VEO9ewTneWDB8Q==
In-Reply-To: <20100527154717.GQ9605@oracle.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Subject: Re: [TLS] Wrapping up cached info
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: Thu, 27 May 2010 16:00:12 -0000

I will try to provide a revised draft next week, incorporating the "agreed"
changes.

/Stefan


On 10-05-27 5:47 PM, "Nicolas Williams" <Nicolas.Williams@oracle.com> wrote:

> On Thu, May 27, 2010 at 10:38:09AM -0500, Brian Smith wrote:
>> Martin Rex wrote:
>>> I think that should be described in the Security Considerations that
>>> a client or client&server that perform renegotiation for the purpose
>>> of client identity protection may want to tag their cached values
>>> so that when that value was established on an encrypted handshake,
>>> it is not going to be proposed by the client on a successor
>>> plaintext handshake.
> 
> Yes.
> 
>> How would the server indicate this to the client?
> 
> There's no need for the server to indicate anything to the client here.
> 
> If a client wouldn't attempt user authentication w/o re-negotiation then
> it shouldn't send a hash of its user cert / cert chain in the initial
> handshake.  If a server considers user cert TAs to be confidential
> (highly unlikely, but let's suppose) then the server shouldn't list
> their hashes in initial handshakes.  It's that simple.
> 
> Nico



From brian@briansmith.org  Thu May 27 09:02:43 2010
Return-Path: <brian@briansmith.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 1B05B3A6B1C for <tls@core3.amsl.com>; Thu, 27 May 2010 09:02:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.301
X-Spam-Level: 
X-Spam-Status: No, score=0.301 tagged_above=-999 required=5 tests=[AWL=0.300,  BAYES_50=0.001]
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 Jjtw9SKwiOnx for <tls@core3.amsl.com>; Thu, 27 May 2010 09:02:42 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 28D9B3A6982 for <tls@ietf.org>; Thu, 27 May 2010 09:02:42 -0700 (PDT)
Received: from T60 (unknown [70.245.69.20]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id DD02B509DC; Thu, 27 May 2010 12:02:31 -0400 (EDT)
From: "Brian Smith" <brian@briansmith.org>
To: "'Stefan Santesson'" <stefan@aaa-sec.com>, <tls@ietf.org>
References: <003201cafac0$9a75d9c0$cf618d40$@briansmith.org> <C81FD9D0.B086%stefan@aaa-sec.com>
In-Reply-To: <C81FD9D0.B086%stefan@aaa-sec.com>
Date: Thu, 27 May 2010 11:02:29 -0500
Message-ID: <000401cafdb6$032063d0$09612b70$@briansmith.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQHPr9DNi55j7moazUDWaBpt75m2CQGJ0qXpAs36B9Y=
Content-Language: en-us
Subject: Re: [TLS] Wrapping up cached info
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: Thu, 27 May 2010 16:02:43 -0000

Stefan Santesson wrote:
> Could you explain why?
> What is the attack scenario?

Here are some issues I have come up with regarding this extension:

1. If the server went through the trouble of establishing a secure channel
before sending an information item, then doesn't that mean that the server
wants that information item to be kept confidential? If the client sends an
unencrypted hash of a confidential information item to the server, then it
creates an opportunity for known-plaintext attacks on that information item.
In particular, this would negatively affect any server that authenticates
the client and then renegotiates with its "real" certificate and/or other
handshake information.

2. Let's say you go to site A and cache site A's cert list. Then you send a
hash of that to site B. Then, site B can use that hash to recognize that the
user has previously been to site A. This if an information leak very similar
to the HTTP referrer header. For this reason, clients must be careful not to
send a hash of an information item to any site other than the one that sent
it to them. But this creates a problem, since the client hello happens
before authentication. This is worse than TLS session IDs and TLS session
tickets because both of the TLS session resumption mechanisms can be done in
such a way that it is impossible to map a session ID/ticket to the source
server.
 
3. Let's say that a server generates a unique trusted CA list record for
every new session. Then the client's hash of the trusted CA list will act
like a HTTP cookie, much like TLS session IDs and tickets. Clients will have
to ensure that they clear their cached info cache similarly to the way they
clear HTTP cookie caches and TLS session caches.

Regards,
Brian

> 
> On 10-05-23 11:40 PM, "Brian Smith" <brian@briansmith.org> wrote:
> 
> > Stefan Santesson wrote:
> >> I will, provided that this seems acceptable still in a few days from
now,
> >> write up a new draft that captures the changes which then hopefully can
be
> >> ready for a WGLC.
> >
> > There's another issue still. If the server sends the client an
information
> > item X after the change cipher suite message, then the client must not
send
> > a hash of that information item in its client hello message on another
> > connection, until it has verified the identity of the server on that
second
> > connection. In other words, the client must ensure that it doesn't leak
> > information that would otherwise be confidential--including even
certificate
> > messages and client certificate cipher suite messages that were received
> > over an encrypted connection.
> >
> > Regards,
> > Brian
> >
> 



From alangley@gmail.com  Thu May 27 09:04:59 2010
Return-Path: <alangley@gmail.com>
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 6248D3A6B2B for <tls@core3.amsl.com>; Thu, 27 May 2010 09:04:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.737
X-Spam-Level: 
X-Spam-Status: No, score=0.737 tagged_above=-999 required=5 tests=[BAYES_40=-0.185, FM_FORGED_GMAIL=0.622, MIME_8BIT_HEADER=0.3]
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 SrJNjB3Zm6uZ for <tls@core3.amsl.com>; Thu, 27 May 2010 09:04:58 -0700 (PDT)
Received: from mail-vw0-f44.google.com (mail-vw0-f44.google.com [209.85.212.44]) by core3.amsl.com (Postfix) with ESMTP id 763B23A6B1A for <tls@ietf.org>; Thu, 27 May 2010 09:04:58 -0700 (PDT)
Received: by vws14 with SMTP id 14so100247vws.31 for <tls@ietf.org>; Thu, 27 May 2010 09:04:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=3qd7x8eb7+Fxo4mjOn2rAiLJwzxOB2bJTohIiXAAj18=; b=cRp+EBRO7ob4pJUE7ZvSQIa4LKsGLu9RykR3k7jQXNkOUpVLz+g8FJDPPjjLL8Lu5z 8vEdghSpyTe+BJ6/wXeYD3M2QGut4bbtbB+AqyD2nMExs+40NrRXTykbk+SJR1sMivN+ E3RHnOAFn+hjP1f2djSQGaVY6UQZ0HMiT4AV8=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=uA2KJfzlWtTxdqDQrStoh/eaBVXal+VusbqhNRWyQQtDMxFLcCee4mLqdhpv7Mp7Yk wW9ixQa3QJA81hopJ1OQIc4MJhi+8Vwh5S0nD92bALmI5M47Nrm+3qh4RakUmkK/K8k/ E/tdmxNt16vk9Cof8jAsI41dsRkS1OEp/gpaM=
MIME-Version: 1.0
Received: by 10.220.88.81 with SMTP id z17mr7699730vcl.174.1274976285096; Thu,  27 May 2010 09:04:45 -0700 (PDT)
Sender: alangley@gmail.com
Received: by 10.220.123.16 with HTTP; Thu, 27 May 2010 09:04:44 -0700 (PDT)
In-Reply-To: <4BFE8FC5.4070509@iki.fi>
References: <4BFE8FC5.4070509@iki.fi>
Date: Thu, 27 May 2010 12:04:44 -0400
X-Google-Sender-Auth: 8CD79I0peLnhPy0bcWL52kxDNbo
Message-ID: <AANLkTilTmkQh6RzCX50L35Jt2IkQq8mzylIkQbnDY7gS@mail.gmail.com>
From: Adam Langley <agl@imperialviolet.org>
To: =?UTF-8?B?SnVobyBWw6Row6QtSGVydHR1YQ==?= <juhovh@iki.fi>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Cc: tls@ietf.org
Subject: Re: [TLS] About TLS 1.2 AEAD ciphers definition
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: Thu, 27 May 2010 16:04:59 -0000

On Thu, May 27, 2010 at 11:29 AM, Juho V=C3=A4h=C3=A4-Herttua <juhovh@iki.f=
i> wrote:
> So I'm curious to know how is AEAD actually handled and how to find out t=
he
> TLSCompressed.length when constructing additional_data for AEAD-Decrypt? =
I'm
> sure there are more experienced people here who can tell me the answer.
> Thank you in advance.

I believe that none of the currently defined AEAD ciphers introduce
padding, so it's pretty easy for the moment.

The use of TLSCompressed.length mirrors the behaviour of the CBC mode.
I can imagine an AEAD cipher where it would be nicer if the additional
data covered the TLSCiphertext.length and may it should be changed,
although it's all a little nebulous when we don't have an actual
example of an AEAD cipher which needs it.



AGL

--=20
Adam Langley agl@imperialviolet.org http://www.imperialviolet.org

From brian@briansmith.org  Thu May 27 09:10:44 2010
Return-Path: <brian@briansmith.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 E4EA93A6B3C for <tls@core3.amsl.com>; Thu, 27 May 2010 09:10:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.451
X-Spam-Level: 
X-Spam-Status: No, score=0.451 tagged_above=-999 required=5 tests=[AWL=-0.150,  BAYES_50=0.001, J_CHICKENPOX_66=0.6]
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 rRCCEMWcsv17 for <tls@core3.amsl.com>; Thu, 27 May 2010 09:10:40 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id EFAAA3A6B3A for <tls@ietf.org>; Thu, 27 May 2010 09:10:39 -0700 (PDT)
Received: from T60 (unknown [70.245.69.20]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id F0C4F509B4; Thu, 27 May 2010 12:10:23 -0400 (EDT)
From: "Brian Smith" <brian@briansmith.org>
To: "'Nicolas Williams'" <Nicolas.Williams@oracle.com>
References: <003201cafac0$9a75d9c0$cf618d40$@briansmith.org> <201005251346.o4PDkvJT024708@fs4113.wdf.sap.corp> <000301cafdb2$9f59f800$de0de800$@briansmith.org> <20100527154717.GQ9605@oracle.com>
In-Reply-To: <20100527154717.GQ9605@oracle.com>
Date: Thu, 27 May 2010 11:10:21 -0500
Message-ID: <000501cafdb7$1ee6b8c0$5cb42a40$@briansmith.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQHPr9DNi55j7moazUDWaBpt75m2CQMEn5zqAjgegDwBv6QvOAI2OQtA
Content-Language: en-us
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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: Thu, 27 May 2010 16:10:44 -0000

Nicolas Williams wrote:
> On Thu, May 27, 2010 at 10:38:09AM -0500, Brian Smith wrote:
> > Martin Rex wrote:
> > > I think that should be described in the Security Considerations that
> > > a client or client&server that perform renegotiation for the purpose
> > > of client identity protection may want to tag their cached values
> > > so that when that value was established on an encrypted handshake,
> > > it is not going to be proposed by the client on a successor
> > > plaintext handshake.
> 
> Yes.
> 
> > How would the server indicate this to the client?
> 
> There's no need for the server to indicate anything to the client here.
> 
> If a client wouldn't attempt user authentication w/o re-negotiation then
> it shouldn't send a hash of its user cert / cert chain in the initial
> handshake.  If a server considers user cert TAs to be confidential
> (highly unlikely, but let's suppose) then the server shouldn't list
> their hashes in initial handshakes.  It's that simple.

AFAICT, that wouldn't stop a compliant (to the current draft) client from
sending the hashes. Even if the server previously indicated that it didn't
support the extension and/or didn't support caching certain information
items, a complaint (to the current draft) client is still allowed to send
those hashes:

     A cached_information extension provided in the server hello has the
     following semantics:

     o An empty cached_information extension indicates that the server
       supports information caching but provides no information about
       what information types it supports.

     o A non-empty cached information extension indicates that the
       server supports only those CachedInformationType types that are
       identified by each present CachedObject.

     o A CachedObject with an empty digest_value indicates that the
       server supports caching of the specified object type
       (CachedInformationType), but does not specify any digest values
       it will accept.

Regards,
Brian


From Nicolas.Williams@oracle.com  Thu May 27 09:17:44 2010
Return-Path: <Nicolas.Williams@oracle.com>
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 80E813A6AEE for <tls@core3.amsl.com>; Thu, 27 May 2010 09:17:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.829
X-Spam-Level: 
X-Spam-Status: No, score=-4.829 tagged_above=-999 required=5 tests=[AWL=-0.090, BAYES_20=-0.74, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 QfmMDtOob6kP for <tls@core3.amsl.com>; Thu, 27 May 2010 09:17:34 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 553FF3A6B36 for <tls@ietf.org>; Thu, 27 May 2010 09:17:32 -0700 (PDT)
Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4RGGxkd021366 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 27 May 2010 16:17:05 GMT
Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4RB8Cdw010503; Thu, 27 May 2010 16:16:57 GMT
Received: from abhmt005.oracle.com by acsmt354.oracle.com with ESMTP id 303122421274977011; Thu, 27 May 2010 09:16:51 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 27 May 2010 09:16:51 -0700
Date: Thu, 27 May 2010 11:16:45 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Brian Smith <brian@briansmith.org>
Message-ID: <20100527161645.GU9605@oracle.com>
References: <003201cafac0$9a75d9c0$cf618d40$@briansmith.org> <201005251346.o4PDkvJT024708@fs4113.wdf.sap.corp> <000301cafdb2$9f59f800$de0de800$@briansmith.org> <20100527154717.GQ9605@oracle.com> <000501cafdb7$1ee6b8c0$5cb42a40$@briansmith.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <000501cafdb7$1ee6b8c0$5cb42a40$@briansmith.org>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: rcsinet15.oracle.com [148.87.113.117]
X-CT-RefId: str=0001.0A090207.4BFE9B06.016C:SCFMA4539811,ss=1,fgs=0
Cc: tls@ietf.org
Subject: Re: [TLS] Wrapping up cached info
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: Thu, 27 May 2010 16:17:44 -0000

On Thu, May 27, 2010 at 11:10:21AM -0500, Brian Smith wrote:
> Nicolas Williams wrote:
> > > How would the server indicate this to the client?
> > 
> > There's no need for the server to indicate anything to the client here.
> > 
> > If a client wouldn't attempt user authentication w/o re-negotiation then
> > it shouldn't send a hash of its user cert / cert chain in the initial
> > handshake.  If a server considers user cert TAs to be confidential
> > (highly unlikely, but let's suppose) then the server shouldn't list
> > their hashes in initial handshakes.  It's that simple.
> 
> AFAICT, that wouldn't stop a compliant (to the current draft) client from
> sending the hashes. Even if the server previously indicated that it didn't
> support the extension and/or didn't support caching certain information
> items, a complaint (to the current draft) client is still allowed to send
> those hashes:

The client can do stupid things, of course.  The point is to have text
that says "the client MUST NOT" do stupid things.

Neither the client nor the server should send all their cached hashes on
initial handshakes.  For one, that could be an enormous amount of
useless data.  Only possibly-relevant cached object hashes should be
exchanged.  The "possibly-relevant" part includes the consideration of
whether a cached object is relevant to initial vs. re-negotiation
handshakes.  I don't think we need to change the protocol to get this
right; at most we'll need to add text about this.

Nico
-- 

From juhovh@iki.fi  Thu May 27 09:42:31 2010
Return-Path: <juhovh@iki.fi>
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 C574E3A6AFA for <tls@core3.amsl.com>; Thu, 27 May 2010 09:42:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.301
X-Spam-Level: 
X-Spam-Status: No, score=0.301 tagged_above=-999 required=5 tests=[BAYES_50=0.001, MIME_8BIT_HEADER=0.3]
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 5sUy3fNg+b0X for <tls@core3.amsl.com>; Thu, 27 May 2010 09:42:31 -0700 (PDT)
Received: from smtp-3.tky.hut.fi (smtp03.tky.fi [82.130.63.73]) by core3.amsl.com (Postfix) with SMTP id A119C3A6B24 for <tls@ietf.org>; Thu, 27 May 2010 09:42:29 -0700 (PDT)
Received: from smtp.vaha-herttua.fi ([82.130.46.36]) by smtp-3.tky.hut.fi (SMSSMTP 4.1.9.35) with SMTP id M2010052719421718985 ; Thu, 27 May 2010 19:42:17 +0300
Received: from vagabond.lan (qer2.kyla.fi [82.130.46.10]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.vaha-herttua.fi (Postfix) with ESMTPSA id EBCAF1813D; Thu, 27 May 2010 19:42:17 +0300 (EEST)
Mime-Version: 1.0 (Apple Message framework v1078)
Content-Type: text/plain; charset=iso-8859-1
From: =?iso-8859-1?Q?Juho_V=E4h=E4-Herttua?= <juhovh@iki.fi>
In-Reply-To: <AANLkTilTmkQh6RzCX50L35Jt2IkQq8mzylIkQbnDY7gS@mail.gmail.com>
Date: Thu, 27 May 2010 19:42:18 +0300
Content-Transfer-Encoding: quoted-printable
Message-Id: <0CB6D965-5252-4112-A933-D3F390EB0F9A@iki.fi>
References: <4BFE8FC5.4070509@iki.fi> <AANLkTilTmkQh6RzCX50L35Jt2IkQq8mzylIkQbnDY7gS@mail.gmail.com>
To: Adam Langley <agl@imperialviolet.org>
X-Mailer: Apple Mail (2.1078)
Cc: tls@ietf.org
Subject: Re: [TLS] About TLS 1.2 AEAD ciphers definition
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: Thu, 27 May 2010 16:42:31 -0000

On 27.5.2010, at 19.04, Adam Langley wrote:
> On Thu, May 27, 2010 at 11:29 AM, Juho V=E4h=E4-Herttua =
<juhovh@iki.fi> wrote:
>> So I'm curious to know how is AEAD actually handled and how to find =
out the
>> TLSCompressed.length when constructing additional_data for =
AEAD-Decrypt? I'm
>> sure there are more experienced people here who can tell me the =
answer.
>> Thank you in advance.
>=20
> I believe that none of the currently defined AEAD ciphers introduce
> padding, so it's pretty easy for the moment.

The only currently defined AEAD ciphers seem to be AES_128_GCM and =
AES_256_GCM defined by RFC 5288. I'm a bit surprised that AES encryption =
doesn't introduce padding though, it might be just me misunderstanding =
the GCM process but I thought it still needs to pad the input data to =
match the block size, doesn't it? The TLSv1 explicit padding of CBC =
ciphers is not present in the AEAD ciphers at all. RFC 5288 doesn't =
define any kind of padding either, which makes me wonder how it is =
actually implemented...=20

Also, if the TLSCompressed.length and TLSCiphertext.length are equal, =
how is it possible that the AEAD ciphers provide authentication? =
Shouldn't it at least add the Auth Tag to the message after encryption? =
Adding authentication without increasing the data length at all sounds a =
bit difficult. I'm actually more confused after this answer than I was =
before it.

> The use of TLSCompressed.length mirrors the behaviour of the CBC mode.
> I can imagine an AEAD cipher where it would be nicer if the additional
> data covered the TLSCiphertext.length and may it should be changed,
> although it's all a little nebulous when we don't have an actual
> example of an AEAD cipher which needs it.

If the additional data covered the TLSCiphertext.length, it would be =
quite difficult to give it to AEAD-Encrypt, because the =
TLSCiphertext.length is not known before encryption just like =
TLSCompressed.length is not known before decryption. So I don't think it =
would solve anything either.

Sorry if my questions are stupid, but it's better to ask than do =
something incompatible. I would especially be interested in hearing from =
someone who has implemented the AES GCM mode cipher suites.



Juho


From alangley@gmail.com  Thu May 27 10:11:41 2010
Return-Path: <alangley@gmail.com>
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 BD4143A6B55 for <tls@core3.amsl.com>; Thu, 27 May 2010 10:11:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.83
X-Spam-Level: 
X-Spam-Status: No, score=0.83 tagged_above=-999 required=5 tests=[AWL=-0.093,  BAYES_50=0.001, FM_FORGED_GMAIL=0.622, MIME_8BIT_HEADER=0.3]
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 LekjoIo3su15 for <tls@core3.amsl.com>; Thu, 27 May 2010 10:11:40 -0700 (PDT)
Received: from mail-vw0-f44.google.com (mail-vw0-f44.google.com [209.85.212.44]) by core3.amsl.com (Postfix) with ESMTP id 216323A6B89 for <tls@ietf.org>; Thu, 27 May 2010 10:11:39 -0700 (PDT)
Received: by vws14 with SMTP id 14so171149vws.31 for <tls@ietf.org>; Thu, 27 May 2010 10:11:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=dyBijrqXBWtKqh+Sw6uxqlPM2G/XZIUevPdiBsRNF98=; b=PsnVHG5OuHtFF0pvuW/DnTDs4gkIWxppymmXqh57TfsoeeuLVUZ6+2z6LqYftQ064G AhMSdK4wN608wh9x43gFG7EMkABoi1zH242FHZld+0bYhoZQvhow4aVQDosaytk2NrFf 6kqUbprfxlL7bKzLQk8kV+MjaOelI22lY9JHI=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=RLxpH53kw6SmrJxHvssRDnOary0gpRZts4qf/iKulCTstw6m3HjM8lHJHG76WdF1ti 8OnEGAdVBFCyI6w46ROYzb/5ufpkyWdpO87a54zuxp5qopW4NrCOUQ2/A+lGCUgc8HR4 M3KCqAfGwu7YRy4xIuOnM8XFgP0ZW23XGYxt8=
MIME-Version: 1.0
Received: by 10.220.62.204 with SMTP id y12mr7717487vch.206.1274980286468;  Thu, 27 May 2010 10:11:26 -0700 (PDT)
Sender: alangley@gmail.com
Received: by 10.220.123.16 with HTTP; Thu, 27 May 2010 10:11:26 -0700 (PDT)
In-Reply-To: <0CB6D965-5252-4112-A933-D3F390EB0F9A@iki.fi>
References: <4BFE8FC5.4070509@iki.fi> <AANLkTilTmkQh6RzCX50L35Jt2IkQq8mzylIkQbnDY7gS@mail.gmail.com> <0CB6D965-5252-4112-A933-D3F390EB0F9A@iki.fi>
Date: Thu, 27 May 2010 13:11:26 -0400
X-Google-Sender-Auth: gYHPEiU4DY9Qd2XcswCFMzejmoU
Message-ID: <AANLkTink409Nw256N_804EJEIO3LOh4Ozj9P1WgpjmIB@mail.gmail.com>
From: Adam Langley <agl@imperialviolet.org>
To: =?UTF-8?B?SnVobyBWw6Row6QtSGVydHR1YQ==?= <juhovh@iki.fi>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Cc: tls@ietf.org
Subject: Re: [TLS] About TLS 1.2 AEAD ciphers definition
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: Thu, 27 May 2010 17:11:41 -0000

On Thu, May 27, 2010 at 12:42 PM, Juho V=C3=A4h=C3=A4-Herttua <juhovh@iki.f=
i> wrote:

> Also, if the TLSCompressed.length and TLSCiphertext.length are equal, how=
 is it possible that the AEAD ciphers provide authentication? Shouldn't it =
at least add the Auth Tag to the message after encryption? Adding authentic=
ation without increasing the data length at all sounds a bit difficult. I'm=
 actually more confused after this answer than I was before it.

Sorry, I meant that the ciphertext length is equal to the plaintext
length. You're correct that, in TLS speak, TLSCiphertext.length also
includes the MAC. But the MAC is a known length.

> The only currently defined AEAD ciphers seem to be AES_128_GCM and AES_25=
6_GCM defined by RFC 5288. I'm a bit surprised that AES encryption doesn't =
introduce padding though, it might be just me misunderstanding the GCM proc=
ess but I thought it still needs to pad the input data to match the block s=
ize, doesn't it?

GCM doesn't require padding since the encryption is a counter mode.


AGL

--=20
Adam Langley agl@imperialviolet.org http://www.imperialviolet.org

From Joshua.Davies@travelocity.com  Thu May 27 10:14:32 2010
Return-Path: <Joshua.Davies@travelocity.com>
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 426FA3A688C for <tls@core3.amsl.com>; Thu, 27 May 2010 10:14:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.998
X-Spam-Level: 
X-Spam-Status: No, score=-103.998 tagged_above=-999 required=5 tests=[BAYES_50=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
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 yeG9HKJnNu6n for <tls@core3.amsl.com>; Thu, 27 May 2010 10:14:26 -0700 (PDT)
Received: from sgtulmg01-out.sabre.com (sgtulmg01-out.sabre.com [151.193.220.17]) by core3.amsl.com (Postfix) with ESMTP id 1E4E43A6B55 for <tls@ietf.org>; Thu, 27 May 2010 10:14:24 -0700 (PDT)
X-ExtLoop1: From 10.12.64.16
X-IronPort-AV: E=Sophos;i="4.53,312,1272862800";  d="scan'208,217";a="707007188"
Received: from unknown (HELO sghdqbh01.Global.ad.sabre.com) ([10.12.64.16]) by sgtulmg01-out.sabre.com with ESMTP; 27 May 2010 12:14:13 -0500
Received: from sgtulmsp06.Global.ad.sabre.com ([10.12.64.145]) by sghdqbh01.Global.ad.sabre.com with Microsoft SMTPSVC(6.0.3790.3959);  Thu, 27 May 2010 12:14:13 -0500
Received: from localhost.localdomain ([10.16.53.33]) by sgtulmsp06.Global.ad.sabre.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 27 May 2010 12:14:13 -0500
Message-ID: <4BFEA808.3030704@travelocity.com>
Date: Thu, 27 May 2010 12:12:40 -0500
From: Joshua Davies <joshua.davies@travelocity.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4
MIME-Version: 1.0
To: tls@ietf.org
References: <4BFE8FC5.4070509@iki.fi>	<AANLkTilTmkQh6RzCX50L35Jt2IkQq8mzylIkQbnDY7gS@mail.gmail.com> <0CB6D965-5252-4112-A933-D3F390EB0F9A@iki.fi>
In-Reply-To: <0CB6D965-5252-4112-A933-D3F390EB0F9A@iki.fi>
Content-Type: multipart/alternative; boundary="------------040708000004050008060400"
X-OriginalArrivalTime: 27 May 2010 17:14:13.0159 (UTC) FILETIME=[074E2370:01CAFDC0]
Subject: Re: [TLS] About TLS 1.2 AEAD ciphers definition
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: Thu, 27 May 2010 17:14:32 -0000

This is a multi-part message in MIME format.
--------------040708000004050008060400
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

On 05/27/2010 11:42 AM, Juho Vähä-Herttua wrote:
> On 27.5.2010, at 19.04, Adam Langley wrote:
>    
>> On Thu, May 27, 2010 at 11:29 AM, Juho Vähä-Herttua<juhovh@iki.fi>  wrote:
>>      
>>> So I'm curious to know how is AEAD actually handled and how to find out the
>>> TLSCompressed.length when constructing additional_data for AEAD-Decrypt? I'm
>>> sure there are more experienced people here who can tell me the answer.
>>> Thank you in advance.
>>>        
>> I believe that none of the currently defined AEAD ciphers introduce
>> padding, so it's pretty easy for the moment.
>>      
> The only currently defined AEAD ciphers seem to be AES_128_GCM and AES_256_GCM defined by RFC 5288. I'm a bit surprised that AES encryption doesn't introduce padding though, it might be just me misunderstanding the GCM process but I thought it still needs to pad the input data to match the block size, doesn't it? The TLSv1 explicit padding of CBC ciphers is not present in the AEAD ciphers at all. RFC 5288 doesn't define any kind of padding either, which makes me wonder how it is actually implemented...
>    
Aren't all AEAD ciphers derivatives of "COUNTER" mode?  My understanding 
of "COUNTER" mode was that it flipped the initialization vector around 
(encrypted the IV rather than the input block) so that no padding was 
ever necessary.

	



<http://twiki.dev.sabre.com/twiki/bin/view/Travelocity/TVLYArchitecture>


--------------040708000004050008060400
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 05/27/2010 11:42 AM, Juho V&auml;h&auml;-Herttua wrote:
<blockquote cite="mid:0CB6D965-5252-4112-A933-D3F390EB0F9A@iki.fi"
 type="cite">
  <pre wrap="">On 27.5.2010, at 19.04, Adam Langley wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">On Thu, May 27, 2010 at 11:29 AM, Juho V&auml;h&auml;-Herttua <a class="moz-txt-link-rfc2396E" href="mailto:juhovh@iki.fi">&lt;juhovh@iki.fi&gt;</a> wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">So I'm curious to know how is AEAD actually handled and how to find out the
TLSCompressed.length when constructing additional_data for AEAD-Decrypt? I'm
sure there are more experienced people here who can tell me the answer.
Thank you in advance.
      </pre>
    </blockquote>
    <pre wrap="">
I believe that none of the currently defined AEAD ciphers introduce
padding, so it's pretty easy for the moment.
    </pre>
  </blockquote>
  <pre wrap="">
The only currently defined AEAD ciphers seem to be AES_128_GCM and AES_256_GCM defined by RFC 5288. I'm a bit surprised that AES encryption doesn't introduce padding though, it might be just me misunderstanding the GCM process but I thought it still needs to pad the input data to match the block size, doesn't it? The TLSv1 explicit padding of CBC ciphers is not present in the AEAD ciphers at all. RFC 5288 doesn't define any kind of padding either, which makes me wonder how it is actually implemented... 
  </pre>
</blockquote>
Aren't all AEAD ciphers derivatives of "COUNTER" mode?&nbsp; My
understanding of "COUNTER" mode was that it flipped the initialization
vector around (encrypted the IV rather than the input block) so that no
padding was ever necessary.<br>
<div class="moz-signature">
<div class="moz-signature">
<div class="moz-signature">
<table>
  <tbody>
    <tr>
      <td width="20%"><br>
      </td>
      <td>
      <table>
        <tbody>
          <tr>
            <td align="center"><br>
            </td>
          </tr>
          <tr>
            <td align="center"><br>
            </td>
          </tr>
          <tr>
            <td align="center"><br>
            </td>
          </tr>
          <tr>
            <td align="center"><a
 href="http://twiki.dev.sabre.com/twiki/bin/view/Travelocity/TVLYArchitecture"></a>
            <br>
            </td>
          </tr>
        </tbody>
      </table>
      </td>
    </tr>
  </tbody>
</table>
</div>
</div>
</div>
</body>
</html>

--------------040708000004050008060400--

From mrex@sap.com  Thu May 27 10:26:57 2010
Return-Path: <mrex@sap.com>
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 B56FB3A6B0B for <tls@core3.amsl.com>; Thu, 27 May 2010 10:26:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.499
X-Spam-Level: 
X-Spam-Status: No, score=-7.499 tagged_above=-999 required=5 tests=[AWL=-0.150, BAYES_50=0.001, HELO_EQ_DE=0.35, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_HI=-8]
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 Yoh8Z+pMXJna for <tls@core3.amsl.com>; Thu, 27 May 2010 10:26:54 -0700 (PDT)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.171]) by core3.amsl.com (Postfix) with ESMTP id 6ABB63A68BB for <tls@ietf.org>; Thu, 27 May 2010 10:26:54 -0700 (PDT)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o4RHQhfZ009626 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 27 May 2010 19:26:43 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201005271726.o4RHQgJU026485@fs4113.wdf.sap.corp>
To: juhovh@iki.fi (=?iso-8859-1?Q?Juho_V=E4h=E4-Herttua?=)
Date: Thu, 27 May 2010 19:26:42 +0200 (MEST)
In-Reply-To: <0CB6D965-5252-4112-A933-D3F390EB0F9A@iki.fi> from "=?iso-8859-1?Q?Juho_V=E4h=E4-Herttua?=" at May 27, 10 07:42:18 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal05
X-SAP: out
Cc: agl@imperialviolet.org, tls@ietf.org
Subject: Re: [TLS] About TLS 1.2 AEAD ciphers definition
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
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/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: Thu, 27 May 2010 17:26:57 -0000

=?iso-8859-1?Q?Juho_V=E4h=E4-Herttua?= wrote:
> 
> The only currently defined AEAD ciphers seem to be AES_128_GCM and
> AES_256_GCM defined by RFC 5288. I'm a bit surprised that AES
> encryption doesn't introduce padding though, it might be just me
> misunderstanding the GCM process but I thought it still needs to pad
> the input data to match the block size, doesn't it?

Yes, that is likely a misunderstanding.

http://en.wikipedia.org/wiki/Counter_mode#Counter_.28CTR.29

Counter mode turns a block cipher into a generator of a (pseudo) random pad,
Essentially, the _application_data_ is encrypted by XORing it with
that (pseudo) random pad exactly like a stream cipher such as RC4 would
do it.

Only when the application data is encrypted with the block cipher function
it is necessary to pad the data up to the full block size, as with the more
traditional modes of operation for block ciphers such as CBC or ECB.

-Martin

From juhovh@iki.fi  Thu May 27 10:56:53 2010
Return-Path: <juhovh@iki.fi>
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 8400C3A6783 for <tls@core3.amsl.com>; Thu, 27 May 2010 10:56:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.301
X-Spam-Level: 
X-Spam-Status: No, score=0.301 tagged_above=-999 required=5 tests=[BAYES_50=0.001, MIME_8BIT_HEADER=0.3]
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 9v4nNnvfpDAN for <tls@core3.amsl.com>; Thu, 27 May 2010 10:56:52 -0700 (PDT)
Received: from smtp-3.tky.hut.fi (smtp03.tky.fi [82.130.63.73]) by core3.amsl.com (Postfix) with SMTP id 757D73A693B for <tls@ietf.org>; Thu, 27 May 2010 10:56:52 -0700 (PDT)
Received: from smtp.vaha-herttua.fi ([82.130.46.36]) by smtp-3.tky.hut.fi (SMSSMTP 4.1.9.35) with SMTP id M2010052720564024752 ; Thu, 27 May 2010 20:56:40 +0300
Received: from vagabond.lan (qer2.kyla.fi [82.130.46.10]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.vaha-herttua.fi (Postfix) with ESMTPSA id 449591810A; Thu, 27 May 2010 20:56:41 +0300 (EEST)
Mime-Version: 1.0 (Apple Message framework v1078)
Content-Type: text/plain; charset=iso-8859-1
From: =?iso-8859-1?Q?Juho_V=E4h=E4-Herttua?= <juhovh@iki.fi>
In-Reply-To: <AANLkTink409Nw256N_804EJEIO3LOh4Ozj9P1WgpjmIB@mail.gmail.com>
Date: Thu, 27 May 2010 20:56:41 +0300
Content-Transfer-Encoding: quoted-printable
Message-Id: <2194F326-567F-4704-A37A-90F9A8EB3C2D@iki.fi>
References: <4BFE8FC5.4070509@iki.fi> <AANLkTilTmkQh6RzCX50L35Jt2IkQq8mzylIkQbnDY7gS@mail.gmail.com> <0CB6D965-5252-4112-A933-D3F390EB0F9A@iki.fi> <AANLkTink409Nw256N_804EJEIO3LOh4Ozj9P1WgpjmIB@mail.gmail.com>
To: Adam Langley <agl@imperialviolet.org>
X-Mailer: Apple Mail (2.1078)
Cc: tls@ietf.org
Subject: Re: [TLS] About TLS 1.2 AEAD ciphers definition
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: Thu, 27 May 2010 17:56:53 -0000

On 27.5.2010, at 20.11, Adam Langley wrote:
> On Thu, May 27, 2010 at 12:42 PM, Juho V=E4h=E4-Herttua =
<juhovh@iki.fi> wrote:
>> Also, if the TLSCompressed.length and TLSCiphertext.length are equal, =
how is it possible that the AEAD ciphers provide authentication? =
Shouldn't it at least add the Auth Tag to the message after encryption? =
Adding authentication without increasing the data length at all sounds a =
bit difficult. I'm actually more confused after this answer than I was =
before it.
>=20
> Sorry, I meant that the ciphertext length is equal to the plaintext
> length. You're correct that, in TLS speak, TLSCiphertext.length also
> includes the MAC. But the MAC is a known length.

Well, not quite equal to plaintext length either, since plaintext in TLS =
speak would equal to the decompressed original record. But it indeed =
includes the MAC, and also the IV/nonce and padding when relevant.

To conclude, in case of AEAD I should assume that it is using a =
non-padding cipher (like the CCM and GCM modes mentioned) and should =
also assume that TLSCiphertext.length is always exactly =
SecurityParameters.record_iv_length + TLSCompressed.length + =
SecurityParameters.mac_length. It does make sense, but is against the =
specification which says:

   The aead_output consists of the ciphertext output by the AEAD
   encryption operation.  The length will generally be larger than
   TLSCompressed.length, but by an amount that varies with the AEAD
   cipher.  Since the ciphers might incorporate padding, the amount of
   overhead could vary with different TLSCompressed.length values.

With this definition I find it quite hard to write a compatible =
implementation and would rather consider dropping at least the AEAD part =
from TLSv1.2 completely. Downside is that if most implementations decide =
to do the same, it will never be widely used.

>> The only currently defined AEAD ciphers seem to be AES_128_GCM and =
AES_256_GCM defined by RFC 5288. I'm a bit surprised that AES encryption =
doesn't introduce padding though, it might be just me misunderstanding =
the GCM process but I thought it still needs to pad the input data to =
match the block size, doesn't it?
>=20
> GCM doesn't require padding since the encryption is a counter mode.

True, leftover output bytes in counter mode can of course be dropped as =
irrelevant. This is already becoming more popular question to answer =
than the others, so nothing more about that. :)=20


Juho


From mrex@sap.com  Thu May 27 11:13:28 2010
Return-Path: <mrex@sap.com>
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 4816B3A67ED for <tls@core3.amsl.com>; Thu, 27 May 2010 11:13:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.599
X-Spam-Level: 
X-Spam-Status: No, score=-7.599 tagged_above=-999 required=5 tests=[AWL=0.050,  BAYES_50=0.001, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_HI=-8]
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 ZEaAafbsSchW for <tls@core3.amsl.com>; Thu, 27 May 2010 11:13:24 -0700 (PDT)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.171]) by core3.amsl.com (Postfix) with ESMTP id 19E453A67EE for <tls@ietf.org>; Thu, 27 May 2010 11:13:23 -0700 (PDT)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o4RIDAOU028138 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 27 May 2010 20:13:10 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201005271813.o4RIDACs029100@fs4113.wdf.sap.corp>
To: jsalowey@cisco.com (Joseph Salowey)
Date: Thu, 27 May 2010 20:13:10 +0200 (MEST)
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50A782CE1@xmb-sjc-225.amer.cisco.com> from "Joseph Salowey" at May 21, 10 03:00:51 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal08
X-SAP: out
Cc: tls@ietf.org
Subject: Re: [TLS] Text for draft-ietf-tls-rfc4366-bis
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
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/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: Thu, 27 May 2010 18:13:28 -0000

Joseph Salowey wrote:
> 
> After an offline discussion with Martin I think we really should remove
> the sentence " The client MAY omit the extension..." Omitting the
> extension seems like a really bad idea, because if the session is not
> resumed the client may establish a session with different
> characteristics than what was intended. So now we have:

Thank you for you efforts.

I'm fine with this clarification.


-Martin

PS: maybe some others (in particular who discussed this particular
    topic) could provide their feedback so that Joe gets somewhat more
    than deafening silence to determine whether there is consensus.  ;-)

From mike-list@pobox.com  Thu May 27 13:45:42 2010
Return-Path: <mike-list@pobox.com>
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 71D0A3A6866 for <tls@core3.amsl.com>; Thu, 27 May 2010 13:45:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.001
X-Spam-Level: 
X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[BAYES_50=0.001]
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 7N2HuYaL5jTb for <tls@core3.amsl.com>; Thu, 27 May 2010 13:45:41 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 572643A67A6 for <tls@ietf.org>; Thu, 27 May 2010 13:45:41 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 3DE88B629C; Thu, 27 May 2010 16:45:31 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=+3eKYwwhbp0Q tlTxve8ynzOf750=; b=VHLP8IbOo2E+RPx+D7PylF5pbT61XpTPcx4nDFIKGo2a O4OlhKRMAnb09ljhD3Ta2ws9zDH3Rd8Thi9dKSHdVS/m3V8y1CaczEtBzCvtAtBa j9z8y6SD8gXzJF74H1HohBgKc8RHNPK5etk38XdVT2FYFZJVdpVo56pp10MtHwQ=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=xBYv3Q gVJGy+VDn99Vm13tcAQDBofFcef6O8SynaAsX+NPlV2iKKA840+5kwmkQl+IkNLN CY33ebmT7ugnpckxMdyAZSuZKHDSExqhlq5/IHdcRxL28Adsr6apdHGaz7atTXIm zs2vXthyqmq43e2cmvsmZs+dcBs9B+TVGYl8k=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 13BF7B6299; Thu, 27 May 2010 16:45:29 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 5D0EEB6292; Thu, 27 May 2010 16:45:25 -0400 (EDT)
Message-ID: <4BFED9E4.20004@pobox.com>
Date: Thu, 27 May 2010 13:45:24 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: mrex@sap.com
References: <201005271813.o4RIDACs029100@fs4113.wdf.sap.corp>
In-Reply-To: <201005271813.o4RIDACs029100@fs4113.wdf.sap.corp>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: C8FBB678-69D0-11DF-AC10-6730EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Text for draft-ietf-tls-rfc4366-bis
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: Thu, 27 May 2010 20:45:42 -0000

I advocated this from the beginning, but others thought that it
wouldn't be backward-compatible.  I was willing to accept the
"MAY omit" as a compromise, but if we want to do it right, the
client really does need to send the same SNI when attempting to
resume a previous session.

I think we should still keep the text that explains what a server
should do IF the client omits the SNI when trying to resume a past
session (use the same name that was sent in the original handshake).

Mike



Martin Rex wrote:
> Joseph Salowey wrote:
>> After an offline discussion with Martin I think we really should remove
>> the sentence " The client MAY omit the extension..." Omitting the
>> extension seems like a really bad idea, because if the session is not
>> resumed the client may establish a session with different
>> characteristics than what was intended. So now we have:
> 
> Thank you for you efforts.
> 
> I'm fine with this clarification.
> 
> 
> -Martin
> 
> PS: maybe some others (in particular who discussed this particular
>     topic) could provide their feedback so that Joe gets somewhat more
>     than deafening silence to determine whether there is consensus.  ;-)

From mickgray@au1.ibm.com  Thu May 27 14:04:55 2010
Return-Path: <mickgray@au1.ibm.com>
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 E89383A6980 for <tls@core3.amsl.com>; Thu, 27 May 2010 14:04:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.299
X-Spam-Level: 
X-Spam-Status: No, score=-6.299 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, MIME_8BIT_HEADER=0.3, 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 YsNx46B7j4dh for <tls@core3.amsl.com>; Thu, 27 May 2010 14:04:54 -0700 (PDT)
Received: from e23smtp05.au.ibm.com (e23smtp05.au.ibm.com [202.81.31.147]) by core3.amsl.com (Postfix) with ESMTP id 957383A68FD for <tls@ietf.org>; Thu, 27 May 2010 14:04:53 -0700 (PDT)
Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [202.81.31.247]) by e23smtp05.au.ibm.com (8.14.3/8.13.1) with ESMTP id o4RL0isR014858 for <tls@ietf.org>; Fri, 28 May 2010 07:00:44 +1000
Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o4RL4gOo1642588 for <tls@ietf.org>; Fri, 28 May 2010 07:04:42 +1000
Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id o4RL4gRO025044 for <tls@ietf.org>; Fri, 28 May 2010 07:04:42 +1000
Received: from d23ml003.au.ibm.com (d23ml003.au.ibm.com [9.190.250.22]) by d23av04.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id o4RL4gE9025041; Fri, 28 May 2010 07:04:42 +1000
In-Reply-To: <0CB6D965-5252-4112-A933-D3F390EB0F9A@iki.fi>
To: =?ISO-8859-1?Q?Juho_V=E4h=E4-Herttua?= <juhovh@iki.fi>
X-Mailer: Lotus Notes Release 7.0 HF277 June 21, 2006
Message-ID: <OF2A2EE598.0E4EB2D2-ON4A257730.00738D5A-4A257730.0073C5A3@au1.ibm.com>
From: Michael Gray <mickgray@au1.ibm.com>
Date: Fri, 28 May 2010 07:04:32 +1000
X-MIMETrack: Serialize by Router on d23ml003/23/M/IBM(Release 7.0.2FP3HF80 | July 14, 2008) at 28/05/2010 07:05:45
MIME-Version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: quoted-printable
Cc: Adam Langley <agl@imperialviolet.org>, tls@ietf.org
Subject: Re: [TLS] About TLS 1.2 AEAD ciphers definition
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: Thu, 27 May 2010 21:04:56 -0000

Juho V=E4h=E4-Herttua wrote on 28/05/2010 02:42:18 AM:

>
> The only currently defined AEAD ciphers seem to be AES_128_GCM and
> AES_256_GCM defined by RFC 5288. I'm a bit surprised that AES
> encryption doesn't introduce padding though, it might be just me
> misunderstanding the GCM process but I thought it still needs to pad
> the input data to match the block size, doesn't it? The TLSv1
> explicit padding of CBC ciphers is not present in the AEAD ciphers
> at all. RFC 5288 doesn't define any kind of padding either, which
> makes me wonder how it is actually implemented...

RFC 5289 Defines additional ECC GCM Cipher Suites

Mick

>
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls=



From rwilliams@certicom.com  Fri May 28 04:41:35 2010
Return-Path: <rwilliams@certicom.com>
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 3C7D73A69B8 for <tls@core3.amsl.com>; Fri, 28 May 2010 04:41:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.489
X-Spam-Level: 
X-Spam-Status: No, score=-2.489 tagged_above=-999 required=5 tests=[BAYES_40=-0.185, MIME_8BIT_HEADER=0.3, MIME_QP_LONG_LINE=1.396,  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 ge7w5PedeEeI for <tls@core3.amsl.com>; Fri, 28 May 2010 04:41:34 -0700 (PDT)
Received: from mhs04ykf.rim.net (mhs04ykf.rim.net [216.9.243.82]) by core3.amsl.com (Postfix) with ESMTP id 2E62E3A6781 for <tls@ietf.org>; Fri, 28 May 2010 04:41:33 -0700 (PDT)
X-AuditID: 0a666446-b7becae00000701c-ad-4bffabe21ee5
Received: from XCH138CNC.rim.net ( [10.65.20.127]) by mhs04ykf.rim.net (RIM Mail) with SMTP id 92.75.28700.2EBAFFB4; Fri, 28 May 2010 07:41:22 -0400 (EDT)
Received: from XCH57YKF.rim.net ([10.64.31.54]) by XCH138CNC.rim.net with Microsoft SMTPSVC(6.0.3790.3959); Fri, 28 May 2010 07:41:23 -0400
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
content-transfer-encoding: quoted-printable
Date: Fri, 28 May 2010 07:41:22 -0400
Message-ID: <7E1DF37F1F42AB4E877E492C308E6AC405F1BE9F@XCH57YKF.rim.net>
In-Reply-To: <OF2A2EE598.0E4EB2D2-ON4A257730.00738D5A-4A257730.0073C5A3@au1.ibm.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] About TLS 1.2 AEAD ciphers definition
Thread-Index: Acr94D7GZ2EmhlSGSKi5zxjpa0zuOQAej0vg
References: <0CB6D965-5252-4112-A933-D3F390EB0F9A@iki.fi> <OF2A2EE598.0E4EB2D2-ON4A257730.00738D5A-4A257730.0073C5A3@au1.ibm.com>
From: "Rob P Williams" <rwilliams@certicom.com>
To: "Michael Gray" <mickgray@au1.ibm.com>, =?iso-8859-1?Q?Juho_V=E4h=E4-Herttua?= <juhovh@iki.fi>
X-OriginalArrivalTime: 28 May 2010 11:41:23.0127 (UTC) FILETIME=[B2A6D470:01CAFE5A]
X-Brightmail-Tracker: AAAAAQAAAZE=
Cc: Adam Langley <agl@imperialviolet.org>, tls@ietf.org
Subject: Re: [TLS] About TLS 1.2 AEAD ciphers definition
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: Fri, 28 May 2010 11:41:35 -0000

Michael Gray wrote on Thursday, May 27, 2010 5:05 PM

> Juho V=E4h=E4-Herttua wrote on 28/05/2010 02:42:18 AM:
>
> >
> > The only currently defined AEAD ciphers seem to be AES_128_GCM and
> > AES_256_GCM defined by RFC 5288. I'm a bit surprised that AES
> > encryption doesn't introduce padding though, it might be just me
> > misunderstanding the GCM process but I thought it still needs to pad
> > the input data to match the block size, doesn't it? The TLSv1
> > explicit padding of CBC ciphers is not present in the AEAD ciphers
> > at all. RFC 5288 doesn't define any kind of padding either, which
> > makes me wonder how it is actually implemented...

> RFC 5289 Defines additional ECC GCM Cipher Suites

They are all still AES_128/256_GCM...

---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential infor=
mation, privileged material (including material protected by the solicitor-c=
lient or other applicable privileges), or constitute non-public information.=
 Any use of this information by anyone other than the intended recipient is=
 prohibited. If you have received this transmission in error, please immedia=
tely reply to the sender and delete this information from your system. Use,=
 dissemination, distribution, or reproduction of this transmission by uninte=
nded recipients is not authorized and may be unlawful.

From housley@vigilsec.com  Fri May 28 07:13:38 2010
Return-Path: <housley@vigilsec.com>
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 17AB53A6A2F for <tls@core3.amsl.com>; Fri, 28 May 2010 07:13:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -100.287
X-Spam-Level: 
X-Spam-Status: No, score=-100.287 tagged_above=-999 required=5 tests=[AWL=0.823, BAYES_05=-1.11, USER_IN_WHITELIST=-100]
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 9+eKvjeE-rHv for <tls@core3.amsl.com>; Fri, 28 May 2010 07:13:35 -0700 (PDT)
Received: from odin.smetech.net (mail.smetech.net [208.254.26.82]) by core3.amsl.com (Postfix) with ESMTP id 27F083A6912 for <tls@ietf.org>; Fri, 28 May 2010 07:13:35 -0700 (PDT)
Received: from localhost (unknown [208.254.26.81]) by odin.smetech.net (Postfix) with ESMTP id A453B9A4743 for <tls@ietf.org>; Fri, 28 May 2010 10:13:25 -0400 (EDT)
X-Virus-Scanned: amavisd-new at smetech.net
Received: from odin.smetech.net ([208.254.26.82]) by localhost (ronin.smetech.net [208.254.26.81]) (amavisd-new, port 10024) with ESMTP id qcS4iVBsUqZL for <tls@ietf.org>; Fri, 28 May 2010 10:13:24 -0400 (EDT)
Received: from [192.168.2.100] (pool-96-255-145-51.washdc.fios.verizon.net [96.255.145.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by odin.smetech.net (Postfix) with ESMTP id 12E0B9A4728 for <tls@ietf.org>; Fri, 28 May 2010 10:13:25 -0400 (EDT)
Message-ID: <4BFFCF9F.8040703@vigilsec.com>
Date: Fri, 28 May 2010 10:13:51 -0400
From: Russ Housley <housley@vigilsec.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4
MIME-Version: 1.0
To: tls@ietf.org
References: <4BFE8FC5.4070509@iki.fi>	<AANLkTilTmkQh6RzCX50L35Jt2IkQq8mzylIkQbnDY7gS@mail.gmail.com>	<0CB6D965-5252-4112-A933-D3F390EB0F9A@iki.fi> <4BFEA808.3030704@travelocity.com>
In-Reply-To: <4BFEA808.3030704@travelocity.com>
X-Enigmail-Version: 1.0.1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [TLS] About TLS 1.2 AEAD ciphers definition
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: Fri, 28 May 2010 14:13:38 -0000

>> The only currently defined AEAD ciphers seem to be AES_128_GCM and
>> AES_256_GCM defined by RFC 5288. I'm a bit surprised that AES
>> encryption doesn't introduce padding though, it might be just me
>> misunderstanding the GCM process but I thought it still needs to
>> pad the input data to match the block size, doesn't it? The TLSv1
>> explicit padding of CBC ciphers is not present in the AEAD ciphers
>> at all. RFC 5288 doesn't define any kind of padding either, which
>> makes me wonder how it is actually implemented...
>
> Aren't all AEAD ciphers derivatives of "COUNTER" mode?  My understanding
> of "COUNTER" mode was that it flipped the initialization vector around
> (encrypted the IV rather than the input block) so that no padding was
> ever necessary.

No, not all AEAD ciphers use counter mode.  However, all AEAD ciphers
that are used to protect the data stream in TLS at this moment make use
of counter mode for the encryption.

AES-CCM and AES-GCM both used counter mode for encryption, but they get
authentication in very different ways.

AES-Key-Wrap and AES-Key-Wrap-with-Pad are both AEAD ciphers, and they
do not use counter mode.

Russ

From Xuelei.Fan@Sun.COM  Fri May 28 18:17:48 2010
Return-Path: <Xuelei.Fan@Sun.COM>
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 9A4C53A6A94 for <tls@core3.amsl.com>; Fri, 28 May 2010 18:17:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.998
X-Spam-Level: 
X-Spam-Status: No, score=-3.998 tagged_above=-999 required=5 tests=[BAYES_50=0.001, RCVD_IN_DNSWL_MED=-4, WEIRD_PORT=0.001]
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 0KsuaKetzOid for <tls@core3.amsl.com>; Fri, 28 May 2010 18:17:47 -0700 (PDT)
Received: from gmp-eb-inf-1.sun.com (gmp-eb-inf-1.sun.com [192.18.6.21]) by core3.amsl.com (Postfix) with ESMTP id 93F063A68DE for <tls@ietf.org>; Fri, 28 May 2010 18:17:47 -0700 (PDT)
Received: from fe-emea-13.sun.com (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged)) by gmp-eb-inf-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id o4T1Haa7029108 for <tls@ietf.org>; Sat, 29 May 2010 01:17:36 GMT
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Content-type: text/plain; CHARSET=US-ASCII
Received: from conversion-daemon.fe-emea-13.sun.com by fe-emea-13.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0L3500H00PNEML00@fe-emea-13.sun.com> for tls@ietf.org; Sat, 29 May 2010 02:17:11 +0100 (BST)
Received: from [192.168.1.103] ([unknown] [123.120.205.128]) by fe-emea-13.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0L3500HU8Q831S60@fe-emea-13.sun.com> for tls@ietf.org; Sat, 29 May 2010 02:17:11 +0100 (BST)
Date: Sat, 29 May 2010 09:16:44 +0800
From: Xuelei Fan <Xuelei.Fan@Sun.COM>
Sender: Xuelei.Fan@Sun.COM
To: tls@ietf.org
Message-id: <4C006AFC.4020200@Sun.COM>
X-Enigmail-Version: 1.0.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4
Subject: [TLS] Java Platform , Standard Edition (Java SE) RFC5746 Interop Test Server
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: Sat, 29 May 2010 01:17:48 -0000

Java Platform , Standard Edition (Java SE) has created a TLS
interoperability test server to provide a testbed for the RFC 5746
Renegotiation Indication Extension (RI) and the Signaling Cipher Suite
Value (SCSV), a simple SSL/TLS/HTTPS connection, and a secure
renegotiation.

You can get the server description and instructions from
http://soltemp1.eu.sun.com:10080/.

In the front page, http://soltemp1.eu.sun.com:10080/, a simple secure
renegotiation is tested.

In the extended compatibility test page,
http://soltemp1.eu.sun.com:10080/compatibility, more test cases are
covered, including initial handshaking, session resume and full
renegotiation.

In the additional compatibility test page,
http://soltemp1.eu.sun.com:10080/specifics, even more test cases are
covered, including client authentication, etc. Note that in this page,
because the browser normally need to kick start a lot threads to visit
the server, so some of the tests may be timeout and failed. If it
happened, please click the "Manual Test URL" under the image to test it
separately.

Our test pages are friendly for major browsers that enable javascript.
But the test server also works well with other HTTPS clients, such as
"wget". If you want to test a HTTPS client other than the current
browser manually, please get the URL from the corresponding linkage:
Manual Test URL.

Please let me know your testing result.

We plan to close the test by Wed next week (June 2, 2010), let me know
if you need longer.

Xuelei
Java Security/Network Group

From d3e3e3@gmail.com  Sat May 29 12:55:07 2010
Return-Path: <d3e3e3@gmail.com>
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 56C453A68B1 for <tls@core3.amsl.com>; Sat, 29 May 2010 12:55:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.553
X-Spam-Level: 
X-Spam-Status: No, score=-0.553 tagged_above=-999 required=5 tests=[AWL=-0.554, BAYES_50=0.001]
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 fslcxg2ZSCnV for <tls@core3.amsl.com>; Sat, 29 May 2010 12:55:06 -0700 (PDT)
Received: from mail-ww0-f44.google.com (mail-ww0-f44.google.com [74.125.82.44]) by core3.amsl.com (Postfix) with ESMTP id 4D0263A68A5 for <tls@ietf.org>; Sat, 29 May 2010 12:55:06 -0700 (PDT)
Received: by wwb39 with SMTP id 39so223150wwb.31 for <tls@ietf.org>; Sat, 29 May 2010 12:54:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=9RvNJExrvq/4KhuP0wrMyg1QJaHu+7TStUn91m159eI=; b=bxvwJ5J6EUlz1t+U3JKa4RUmf2A+slMdCsQOkalGaYEpawUL70Mtxom7qGskpj5tX1 SwQtc2836auFH9oSPsh0EgSwjbr0RMUeGgtkUCbkbWQrjS+N3hXenM5lJ1JmpWuebXVq 9gmik8wsm12bqtY+SkKWI1RR8AKemVCxsffBk=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=krA0CZ0FNNnkB8B9csLeToaQBgIUyyr5jEa1kZlpQucOWTb5tFZKyvFdM7+Ak+KVta EYC9GHtF62YzjANooOx1nTRa7N/oNS9FssoGd0sMIGXRXiX5kcb6DJPoWglPDEHhgk2K 3qJGOzdpuwxJqKEvYksXreRPAycewq98Wz3lw=
MIME-Version: 1.0
Received: by 10.216.85.2 with SMTP id t2mr45246wee.97.1275162892510; Sat, 29  May 2010 12:54:52 -0700 (PDT)
Received: by 10.216.229.210 with HTTP; Sat, 29 May 2010 12:54:52 -0700 (PDT)
In-Reply-To: <4BFED9E4.20004@pobox.com>
References: <201005271813.o4RIDACs029100@fs4113.wdf.sap.corp> <4BFED9E4.20004@pobox.com>
Date: Sat, 29 May 2010 15:54:52 -0400
Message-ID: <AANLkTikkRBnCg21nCcwHCiPWcCxRUnBQGtgsHWEja2nZ@mail.gmail.com>
From: Donald Eastlake <d3e3e3@gmail.com>
To: tls@ietf.org
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Subject: Re: [TLS] Text for draft-ietf-tls-rfc4366-bis
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: Sat, 29 May 2010 19:55:07 -0000

Since we seem to have reached stable text, I have updated the draft
and will post a new version.

Thanks,
Donald
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
 Donald E. Eastlake 3rd   +1-508-333-2270 (cell)
 155 Beaver Street   +1-508-634-2066 (home)
 Milford, MA 01757 USA
 d3e3e3@gmail.com



On Thu, May 27, 2010 at 4:45 PM, Michael D'Errico <mike-list@pobox.com> wro=
te:
> I advocated this from the beginning, but others thought that it
> wouldn't be backward-compatible. =A0I was willing to accept the
> "MAY omit" as a compromise, but if we want to do it right, the
> client really does need to send the same SNI when attempting to
> resume a previous session.
>
> I think we should still keep the text that explains what a server
> should do IF the client omits the SNI when trying to resume a past
> session (use the same name that was sent in the original handshake).
>
> Mike
>
>
>
> Martin Rex wrote:
>>
>> Joseph Salowey wrote:
>>>
>>> After an offline discussion with Martin I think we really should remove
>>> the sentence " The client MAY omit the extension..." Omitting the
>>> extension seems like a really bad idea, because if the session is not
>>> resumed the client may establish a session with different
>>> characteristics than what was intended. So now we have:
>>
>> Thank you for you efforts.
>>
>> I'm fine with this clarification.
>>
>>
>> -Martin
>>
>> PS: maybe some others (in particular who discussed this particular
>> =A0 =A0topic) could provide their feedback so that Joe gets somewhat mor=
e
>> =A0 =A0than deafening silence to determine whether there is consensus. =
=A0;-)
>
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
>
