
From mrex@sap.com  Mon Feb  1 09:37:40 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 57C503A696A; Mon,  1 Feb 2010 09:37:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.22
X-Spam-Level: 
X-Spam-Status: No, score=-10.22 tagged_above=-999 required=5 tests=[AWL=0.029,  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 IHrG049j7v7A; Mon,  1 Feb 2010 09:37:39 -0800 (PST)
Received: from smtpde03.sap-ag.de (smtpde03.sap-ag.de [155.56.68.140]) by core3.amsl.com (Postfix) with ESMTP id 599DE3A688B; Mon,  1 Feb 2010 09:37:38 -0800 (PST)
Received: from mail.sap.corp by smtpde03.sap-ag.de (26) with ESMTP id o11Hc3Ho015661 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 1 Feb 2010 18:38:08 +0100 (MET)
From: Martin Rex <mrex@sap.com>
Message-Id: <201002011738.o11Hc2rd010643@fs4113.wdf.sap.corp>
To: marsh@extendedsubset.com (Marsh Ray)
Date: Mon, 1 Feb 2010 18:38:02 +0100 (MET)
In-Reply-To: <4B64ADEF.2020501@extendedsubset.com> from "Marsh Ray" at Jan 30, 10 04:08:47 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, ietf@ietf.org
Subject: Re: [TLS] Metadiscussion on changes in draft-ietf-tls-renegotiation
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, 01 Feb 2010 17:37:40 -0000

Marsh Ray wrote:
> 
> > 
> > No matter how hard I try, I can't find the security problem and I can't find
> > the interoperability advantage.
> >
> > Hence, the "MUST abort" requirement seems like an unmotivated restriction.
> > I'm not saying that we have to change the current draft, I'm just curious to
> > understand the real benefits of this requirement.
> 
> In a sense it allows a consistent definition of the semantics of SCSV:
> The presence of SCSV is equivalent to an empty RI extension. Under such
> a definition, the presence of multiple conflicting RIs (especially an
> empty RI during a renegotiation) is clearly an abort-able offense!

Baloney.

This ludicrous explanation is a silly excuse for a proven technical mistake.

-Martin

From brian@briansmith.org  Tue Feb  2 00:49:46 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 F2D293A6AEB for <tls@core3.amsl.com>; Tue,  2 Feb 2010 00:49:45 -0800 (PST)
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 nWb2Nw0O7vhB for <tls@core3.amsl.com>; Tue,  2 Feb 2010 00:49:45 -0800 (PST)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id C502D3A6AEA for <tls@ietf.org>; Tue,  2 Feb 2010 00:49:44 -0800 (PST)
Received: from T60 (unknown [70.245.64.181]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 74C4B509B4 for <tls@ietf.org>; Tue,  2 Feb 2010 03:50:15 -0500 (EST)
From: "Brian Smith" <brian@briansmith.org>
To: <tls@ietf.org>
Date: Tue, 2 Feb 2010 02:50:15 -0600
Message-ID: <001901caa3e4$c0363750$40a2a5f0$@org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 12.0
Content-Language: en-us
Thread-Index: Acqj5L0WrvrvoyYbQTWjGIIV/BxgVg==
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
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, 02 Feb 2010 08:49:46 -0000

I am very interested in the ideas that motivate the cached info extension.
It obviously makes sense for the client to tell the server that it already
knows the certificate, so that the server doesn't have to send the
certificate. But, if the client already knows the certificate, then it
already knows the server's public key. Consequently, it is wasteful for the
client NOT to send the ClientKeyExchange along with the client hello.
Without the ability to include the ClientKeyExchange with the ClientHello,
the cached-info extension would usually only slightly decrease the bandwidth
needed for handshaking--by zero to two packets in the majority of cases,
AFAICT. At the same time, it would provide no effect on latency. Latency
from the extra round-trips required by TLS is a much worse problem than the
handshake bandwidth for a lot of applications, especially mobile
applications.

Back in April, Martin Rex said that including the ClientKeyExchange
immediately after the ClientHello was a bad idea, because it made it
difficult for the server to fall back to a full handshake (see his message
quoted below). I agree, but there is a simple workaround: embed the
ClientKeyExchange (and/or the client Certificate message) in a hello
extension. 

I attempted to do this, reusing as much of the infrastructure from the
cached info extension as possible. In particular, I added the following
CachedInformationTypes in order to support :

   enum { ..., dh_p(3), dh_g(4), ... } 
        CachedInformationType;

dh_p and dh_g would be for the hash of the cached values of the DH group
from the server's ServerKeyExchange for EDH key exchange. Then, I created a
new hello extension that is simply a wrapper around the ClientKeyExchange:

   Enum { ..., early_client_key_exchange, 
               early_certificate, ... } ExtensionType;

For EDH key exchange: The client includes cached dh_p and dh_g values, and
includes the early_client_key_exchange extension. If the server agrees to
use the same dh_p and dh_g as the client cached, then it can omit those
values from its ServerKeyExchange message's ServerDHParams; the
ServerDHParams in its ServerKeyExchange would then just contain dh_Ys.
Further, since the server already has the client's server_key_exchange
message, it can compute the master_secret, so it can send its
ChangeCipherSpec and Finished messages immediately after ServerKeyExchange.
If the server doesn't want to use the cached dh_p and dh_g, then it would
fall back to a full ServerKeyExchange. If the client sees the
ServerKeyExchange it knows it needs to generate its own ClientKeyExchange;
otherwise it knows to omit it. RSA key exchange is similar, except the
cached dh_p, dh_g (if any) would be ignored, and ServerKeyExchange obviously
would not be sent.

I noticed that a hash isn't always the best representative of the cached
information. For example, for EDH key exchange, it would be better if there
was the option of identifying well-known Diffie-Hellman groups by their
16-bit IANA id, for servers that use the IKE Diffie-Hellman groups. Then a
client could realistically include the IDs of all the IANA-registered DH
groups it supports in every (initial) ClientHello; using hashes for this
would be unrealistic because they would make the ClientHello too big--in
particular, the ClientHello would be much more likely to spill over into
another packet. As another example, if the client "knows" the server will
ask for a certificate, then it can preemptively/opportunistically include
its certificate chain in another hello extension. In that case, it might
wish to compress and/or (as is often requested) encrypt it's cert chain when
it is wrapped in the hello extension. Or, the client and server could work
together to mint a RFC4366 URL to use as the cached identifier for the
client certificate chain. Consequently, I'm not sure that standardizing on a
generic mechanism that only supports/requires hashes as identifiers for
cached data is a good idea.

Also, IMO, something should be done so that a client never needs to send
multiple hashes of the same cached value in a ClientHello. For example, the
client could tell the server which hash algorithms it will support caching
for, and then the server can select which ONE of those algorithms it will
support, and tell the client (just like it does for cipher suites). Or, the
choice of algorithm could be fixed to be the same as the hash algorithm used
for the signature of the certificate itself; the client is guaranteed to
support and trust that algorithm if it is going to work with that server at
all.

Regards,
Brian

On *Wed, 29 Apr 2009* (a long time ago), Martin Rex wrote:
> Nagendra Modadugu wrote:
>> I'm joining the discussion a little bit late.  Is there still time to
>> consider 1-RTT version of the full-handshake described in "Fast-Track"
>> paper? (i.e. client sends the ClientKeyExchange message speculatively
before
>> receiving the ServerHello).
> 
> To me, this looks more like a flawed assumption rather than a
> "speculative action", because it is impossible to recover.
> 
> The idea behind the short cuts is that the server can continue
> with the full handshake if the shortcut is not available for
> whatever reason.  Sending a ClientKeyExchange based on
> assumptions what the contents of the ServerHello will be
> precludes the Server from making decisions to which it is
> entiteled in the original TLS protocol, and the result can
> easily be a fatal error, which means that the network communication
> channel must be closed and reopened -- a recovery at the
> TLS protocol level is impossible.
> 
> Having the Client send (protected) application data optimistically
> following the Client Finished message without waiting for the
> Server Finished seems like an acceptable optimization
> if you badly need to cut down the number of round trips.
> 
> Such an optimization, however, may have a significant impact
> on the semantics of SSL_connect for APIs like that of OpenSSL.
> 
> -Martin



From simon@josefsson.org  Tue Feb  2 05:19: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 D682E3A6940 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 05:19:26 -0800 (PST)
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 sHvnB2Dd+36Y for <tls@core3.amsl.com>; Tue,  2 Feb 2010 05:19:24 -0800 (PST)
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39]) by core3.amsl.com (Postfix) with ESMTP id EA5CE3A6885 for <tls@ietf.org>; Tue,  2 Feb 2010 05:19:21 -0800 (PST)
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99]) (authenticated bits=0) by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o12DJmC0015842 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 2 Feb 2010 14:19:51 +0100
From: Simon Josefsson <simon@josefsson.org>
To: "Brian Smith" <brian@briansmith.org>
References: <001901caa3e4$c0363750$40a2a5f0$@org>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100202:brian@briansmith.org::UduBA4NKoh3v/IYb:DJ7b
X-Hashcash: 1:22:100202:tls@ietf.org::sYXNGrha77tgDvsL:Jpdq
Date: Tue, 02 Feb 2010 14:19:48 +0100
In-Reply-To: <001901caa3e4$c0363750$40a2a5f0$@org> (Brian Smith's message of "Tue, 2 Feb 2010 02:50:15 -0600")
Message-ID: <874olzn5aj.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.95.3 at yxa-v
X-Virus-Status: Clean
Cc: tls@ietf.org
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
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, 02 Feb 2010 13:19:27 -0000

"Brian Smith" <brian@briansmith.org> writes:

> I am very interested in the ideas that motivate the cached info extension.

Stefan can speak for his reasons, but I see significant advantage in
being able to cache the list of trusted CA certs that is sent from
server to client.  For whatever reasons (which likely include poor
server configuration), I've seen TLS handshakes in the wild that are as
large as 30-40kb which cause some operational pains.

The server certificate _chain_ (note that it is the entire chain that is
cached, not just the server certificate) also has potential of being
large (and growing over time, it seems, as more and more interesting
X.509 extensions are added).

I'm not sure how this relates to the rest of your e-mail though...

/Simon

From agl@google.com  Tue Feb  2 05:44:55 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 33B1028C0F2 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 05:44:55 -0800 (PST)
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 zbXJG+sLSSyu for <tls@core3.amsl.com>; Tue,  2 Feb 2010 05:44:54 -0800 (PST)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id 56FE528C132 for <tls@ietf.org>; Tue,  2 Feb 2010 05:44:54 -0800 (PST)
Received: from kpbe15.cbf.corp.google.com (kpbe15.cbf.corp.google.com [172.25.105.79]) by smtp-out.google.com with ESMTP id o12DjVGh008751 for <tls@ietf.org>; Tue, 2 Feb 2010 05:45:31 -0800
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1265118332; bh=PKqCjB33nf6Kpyta2IuP6CBDNpQ=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=ujbbhXmF019KyqegOTbZ63jv2QSWb4DPXzpW7k+BZVmYPs9UV5eZ1P2DNeWKXguzU 2THE09j14aATRCY60hKuw==
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=GKLXZmhUKXBVrMAfq+raUGMpScWeWO1B7VlYdXkVxIbhMzeXii43+fRKRHYabp6Dw Sq0Z37Xiqsy294KWTUpVA==
Received: from pzk30 (pzk30.prod.google.com [10.243.19.158]) by kpbe15.cbf.corp.google.com with ESMTP id o12DiwPB008784 for <tls@ietf.org>; Tue, 2 Feb 2010 05:45:30 -0800
Received: by pzk30 with SMTP id 30so63188pzk.11 for <tls@ietf.org>; Tue, 02 Feb 2010 05:45:30 -0800 (PST)
MIME-Version: 1.0
Received: by 10.142.119.9 with SMTP id r9mr489708wfc.201.1265118330531; Tue,  02 Feb 2010 05:45:30 -0800 (PST)
In-Reply-To: <001901caa3e4$c0363750$40a2a5f0$@org>
References: <001901caa3e4$c0363750$40a2a5f0$@org>
Date: Tue, 2 Feb 2010 08:45:30 -0500
Message-ID: <a84d7bc61002020545n4a29f141na182b463d1de7ece@mail.gmail.com>
From: Adam Langley <agl@google.com>
To: Brian Smith <brian@briansmith.org>
Content-Type: text/plain; charset=UTF-8
X-System-Of-Record: true
Cc: tls@ietf.org
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
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, 02 Feb 2010 13:44:55 -0000

On Tue, Feb 2, 2010 at 3:50 AM, Brian Smith <brian@briansmith.org> wrote:
> I am very interested in the ideas that motivate the cached info extension.
> It obviously makes sense for the client to tell the server that it already
> knows the certificate, so that the server doesn't have to send the
> certificate.

Indeed. I've been bugging the author of this draft to update it
somewhat(*) and repost here. I've also written implementations for
OpenSSL and NSS. Hopefully life can be injected into this draft.

(* Martin Rex requested that the server inform the client of the
degree of its support for cached-info, to save the clients uselessly
caching information. This seems like a good idea)

> But, if the client already knows the certificate, then it
> already knows the server's public key. Consequently, it is wasteful for the
> client NOT to send the ClientKeyExchange along with the client hello.

Given a client-speaks-first protocol like HTTP (which I happen to be
mostly concerned with), this could cut the full handshake from two to
one round trips.

However, there's a much easier way of doing this: cut through mode. In
this scheme the client starts sending application data records without
waiting for the server's Finished message so long as the ciphersuite
is sufficiently strong. Android already does this.

However, with cached certificates it's possible to get a full
handshake down to 0-RTT if the client can choose the server's random.
This means that the server has to be able to assert that it will never
reuse the same random, but that's doable if you assume some degree of
clock synchronisation and client-cached epoch values.

This idea has been banging about for a while now and you're the second
person that I've seen mention something similar in a week. I intend to
start experimenting with this, hopefully this quarter.


AGL

From simon@josefsson.org  Tue Feb  2 06:37:22 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 9752A28C101 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 06:37:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.562
X-Spam-Level: 
X-Spam-Status: No, score=-1.562 tagged_above=-999 required=5 tests=[AWL=-0.963, BAYES_00=-2.599, SARE_RAND_1=2]
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 c7BkBLocjroq for <tls@core3.amsl.com>; Tue,  2 Feb 2010 06:37:21 -0800 (PST)
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39]) by core3.amsl.com (Postfix) with ESMTP id 6429E28C247 for <tls@ietf.org>; Tue,  2 Feb 2010 06:30:02 -0800 (PST)
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99]) (authenticated bits=0) by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o12EUZq8018916 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 2 Feb 2010 15:30:37 +0100
From: Simon Josefsson <simon@josefsson.org>
To: Paul Hoffman <paul.hoffman@vpnc.org>
References: <p0624089bc78922bdaddd@[10.20.30.158]>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100202:tls@ietf.org::atAT7AJ5KCOssdlE:9pRK
X-Hashcash: 1:22:100202:paul.hoffman@vpnc.org::vpCcyR/ktCG8HmuR:Tsq3
Date: Tue, 02 Feb 2010 15:30:34 +0100
In-Reply-To: <p0624089bc78922bdaddd@[10.20.30.158]> (Paul Hoffman's message of "Fri\, 29 Jan 2010 15\:42\:26 -0800")
Message-ID: <87fx5jk8vp.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.95.3 at yxa-v
X-Virus-Status: Clean
Cc: tls@ietf.org
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Feb 2010 14:37:22 -0000

I have read these two documents and believe they are generally fine.  As
far as I can tell, they are not backwards compatible with earlier
proposals.  But that is not important.

There is one thing in draft-hoffman-tls-additional-random-ext-00.txt
that bothers me: There is no requirement that additional random data is
generated using cryptographic principles.  This means the extension can
be used as a general-purpose extension mechanism to exchange data that
has meaning to, for example, some middle-ware that sits between the
client and server.

Is this the intention?  I'm assuming no, and that the
additional_random_value actually are intended to be, well, just an
additional random value.

Therefor, I would suggest that a new requirement is added:

   The client and server MUST generate the additional_random_value data
   using a secure random number generator.  [RANDOM] provides guidance
   on the generation of random values.
...
   [RANDOM]   Eastlake, D., 3rd, Schiller, J., and S. Crocker,
              "Randomness Requirements for Security", BCP 106, RFC 4086,
              June 2005.

This is similar to what's in RFC 5246 says about the random_bytes field:

7.4.1.2.  Client Hello
...
      random_bytes
         28 bytes generated by a secure random number generator.

/Simon

From brian@briansmith.org  Tue Feb  2 07:16:02 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 197263A6839 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 07:16:02 -0800 (PST)
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 TKVJPGWPpA-P for <tls@core3.amsl.com>; Tue,  2 Feb 2010 07:15:58 -0800 (PST)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id A7D9E3A6801 for <tls@ietf.org>; Tue,  2 Feb 2010 07:15:57 -0800 (PST)
Received: from T60 (unknown [70.245.64.181]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id E2EBE509DE; Tue,  2 Feb 2010 10:16:26 -0500 (EST)
From: "Brian Smith" <brian@briansmith.org>
To: "'Simon Josefsson'" <simon@josefsson.org>
References: <001901caa3e4$c0363750$40a2a5f0$@org> <874olzn5aj.fsf@mocca.josefsson.org>
In-Reply-To: <874olzn5aj.fsf@mocca.josefsson.org>
Date: Tue, 2 Feb 2010 09:16:23 -0600
Message-ID: <000301caa41a$b4fe2560$1efa7020$@org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 12.0
Content-Language: en-us
Thread-Index: AcqkCmqvI0oiP3nSQte8t65pPK0DhQADwrQQ
Cc: tls@ietf.org
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
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, 02 Feb 2010 15:16:02 -0000

Simon Josefsson wrote:
> "Brian Smith" <brian@briansmith.org> writes:
> 
> > I am very interested in the ideas that motivate the cached info
> > extension.
> 
> Stefan can speak for his reasons, but I see significant advantage in
> being able to cache the list of trusted CA certs that is sent from
> server to client.  For whatever reasons (which likely include poor
> server configuration), I've seen TLS handshakes in the wild that are as
> large as 30-40kb which cause some operational pains.

I didn't phrase this clearly. What I meant to say is "I find the cached info
extension interesting because optimizing the handshake is very important to
me."

> The server certificate _chain_ (note that it is the entire chain that
> is cached, not just the server certificate) also has potential of being
> large (and growing over time, it seems, as more and more interesting
> X.509 extensions are added).

Agreed. My suggestion is really just trying to extend the usefulness of this
extension to the case where the certificate chain is not large.

Cheers,
Brian


From n.mavrogiannopoulos@gmail.com  Tue Feb  2 07:39:14 2010
Return-Path: <n.mavrogiannopoulos@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 1D6AD3A6B1E for <tls@core3.amsl.com>; Tue,  2 Feb 2010 07:39:14 -0800 (PST)
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 kQgfSypPNoJV for <tls@core3.amsl.com>; Tue,  2 Feb 2010 07:39:13 -0800 (PST)
Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by core3.amsl.com (Postfix) with ESMTP id E4CF73A6B19 for <tls@ietf.org>; Tue,  2 Feb 2010 07:39:12 -0800 (PST)
Received: by ey-out-2122.google.com with SMTP id 22so52903eye.51 for <tls@ietf.org>; Tue, 02 Feb 2010 07:39:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:openpgp:content-type:content-transfer-encoding; bh=2YZS6ao1qhDRizTQqNenktCfc0IOFSi7v8uv2Z3JjdI=; b=gpFY7HF3LXoRu58tivtDzYagu8shHpiNHxL50YbS+bWvoqV8rbhKuaPaR5ORe6a/K+ Z5ruuT+fMIM4F+v+AetQ92bwVzQ8EZQKeq/bsYgD74ZTqFqeuoFok602oLQLXP8NLdR3 y2HjS/tBz6z9vBfJmvQb5IOf49XehCNiTne64=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:openpgp:content-type :content-transfer-encoding; b=WoLGOwrX90ZGvzj7LVRIDlcAAlufOTVMUPRvQsOjSa0TYEQnVudwVlbg+zEui9C+uL vSwsJD6X5QUc7BdFf/+6EVt9FT37NRwa/8m0DQqvtGX7t4F75lK3/bZynepMSPdGKkd3 wgvySGPZKeYdz8KeCM6gn7BjmM1VlBPFWVEv4=
Received: by 10.213.100.129 with SMTP id y1mr926212ebn.47.1265124730763; Tue, 02 Feb 2010 07:32:10 -0800 (PST)
Received: from ?10.100.2.14? (78-23-67-218.access.telenet.be [78.23.67.218]) by mx.google.com with ESMTPS id 16sm4587927ewy.2.2010.02.02.07.32.08 (version=SSLv3 cipher=RC4-MD5); Tue, 02 Feb 2010 07:32:09 -0800 (PST)
Sender: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
Message-ID: <4B684577.10603@gnutls.org>
Date: Tue, 02 Feb 2010 16:32:07 +0100
From: Nikos Mavrogiannopoulos <nmav@gnutls.org>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Adam Langley <agl@google.com>
References: <001901caa3e4$c0363750$40a2a5f0$@org> <a84d7bc61002020545n4a29f141na182b463d1de7ece@mail.gmail.com>
In-Reply-To: <a84d7bc61002020545n4a29f141na182b463d1de7ece@mail.gmail.com>
X-Enigmail-Version: 0.95.7
OpenPGP: id=96865171
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
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, 02 Feb 2010 15:39:14 -0000

Adam Langley wrote:
[...]
> Given a client-speaks-first protocol like HTTP (which I happen to be
> mostly concerned with), this could cut the full handshake from two to
> one round trips.
> 
> However, there's a much easier way of doing this: cut through mode. In
> this scheme the client starts sending application data records without
> waiting for the server's Finished message so long as the ciphersuite
> is sufficiently strong. Android already does this.

What if I modify the server's messages, so you negotiate to a
ciphersuite I can break, or I can derive information from (say the
length of the plaintext data you send- as with rc4). You will not detect
my attack until you receive the server's finished message, wouldn't you?

I think this mode is walking on the edge.

regards,
Nikos

From agl@google.com  Tue Feb  2 07:40:37 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 951543A6B1E for <tls@core3.amsl.com>; Tue,  2 Feb 2010 07:40:37 -0800 (PST)
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 Qy8H7bkHgDYl for <tls@core3.amsl.com>; Tue,  2 Feb 2010 07:40:36 -0800 (PST)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id 67E2E3A6B19 for <tls@ietf.org>; Tue,  2 Feb 2010 07:40:34 -0800 (PST)
Received: from kpbe14.cbf.corp.google.com (kpbe14.cbf.corp.google.com [172.25.105.78]) by smtp-out.google.com with ESMTP id o12FfBT8022971 for <tls@ietf.org>; Tue, 2 Feb 2010 07:41:12 -0800
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1265125272; bh=w0F02cd4bK68pA087QpU3sl/81g=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=YAC86dOw89Km+CDg+E9HFN2LWGXpNRTi+m3/yXxWZ8mzQL89BUTVSVCuLI6eoQ9J/ rTd3QtAq5XfzcShtt5NDQ==
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=tVLftp6v/qkYxNz+Nb/wyW9QgjfB/kxhrD8BKZ2f78lmbdtkhoDCjkAXrYCGS4w6u NN1ooVKkCvermcR4/hxsg==
Received: from pzk1 (pzk1.prod.google.com [10.243.19.129]) by kpbe14.cbf.corp.google.com with ESMTP id o12FdkQj014819 for <tls@ietf.org>; Tue, 2 Feb 2010 07:41:11 -0800
Received: by pzk1 with SMTP id 1so278029pzk.16 for <tls@ietf.org>; Tue, 02 Feb 2010 07:41:10 -0800 (PST)
MIME-Version: 1.0
Received: by 10.143.26.33 with SMTP id d33mr4116768wfj.38.1265125267593; Tue,  02 Feb 2010 07:41:07 -0800 (PST)
In-Reply-To: <4B684577.10603@gnutls.org>
References: <001901caa3e4$c0363750$40a2a5f0$@org> <a84d7bc61002020545n4a29f141na182b463d1de7ece@mail.gmail.com> <4B684577.10603@gnutls.org>
Date: Tue, 2 Feb 2010 10:41:07 -0500
Message-ID: <a84d7bc61002020741y5d42af6btbdf5ae0dcb97916b@mail.gmail.com>
From: Adam Langley <agl@google.com>
To: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Content-Type: text/plain; charset=UTF-8
X-System-Of-Record: true
Cc: tls@ietf.org
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
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, 02 Feb 2010 15:40:37 -0000

On Tue, Feb 2, 2010 at 10:32 AM, Nikos Mavrogiannopoulos
<nmav@gnutls.org> wrote:
> What if I modify the server's messages, so you negotiate to a
> ciphersuite I can break, or I can derive information from (say the
> length of the plaintext data you send- as with rc4). You will not detect
> my attack until you receive the server's finished message, wouldn't you?
>
> I think this mode is walking on the edge.

Obviously, if the server can cause the client to use a NULL cipher (or
something very weak) then cut through should not be used. For Android,
cut through mode will not be used if the cipher key length is less
than 128 bits.

The length of the application data records are observable on the wire
in any case. The only advantage that an attacker could gain here is to
choose a cipher that doesn't pad records to get a slighter more
accurate length.

Given how extremely valuable saving a round trip is, we choose to make
this tradeoff.


AGL

From mike-list@pobox.com  Tue Feb  2 07:48:48 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 8B8213A6B30 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 07:48:48 -0800 (PST)
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=[AWL=0.000,  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 hCH2WOTCA-MH for <tls@core3.amsl.com>; Tue,  2 Feb 2010 07:48:47 -0800 (PST)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 960AD3A687B for <tls@ietf.org>; Tue,  2 Feb 2010 07:48:46 -0800 (PST)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 8F2E39656F for <tls@ietf.org>; Tue,  2 Feb 2010 10:49:24 -0500 (EST)
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=a0K9ssHozB5g gKYu93cVtOt5IDU=; b=vw/cZNih3K+0Fow4abVzZMHnwz59JSRV+4fDHAy/Ptm/ sLbvCLsIHwLCR04z8IwAYwZ09F3aO4rKuMD8LU3wYeZ1H2O+At5RvKDbzRaEiFF3 hdITnbv2QLN6cUenzzsxHLJW2xfl3x71mfRe/tCkefeYTZ+2046SHlz7bqwp5So=
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=Mh6wY2 edV+ICS9gOWHHXQKn2PPJqXeiAWK9LilfyPEF3WNFohzRc2QrCkGZgXsiRtXt3LC UL9BGj0ue3I25FMcctCquHimWlVVEqZOHc/YeCwgUXjq9PjLa94EPVTpJqgnmUoo SPk33dWjr1MUiubmEhCtQKkKx8st9dS+jK3Xw=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 8AF7E9656E for <tls@ietf.org>; Tue,  2 Feb 2010 10:49:24 -0500 (EST)
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 45F779656D for <tls@ietf.org>; Tue,  2 Feb 2010 10:49:24 -0500 (EST)
Message-ID: <4B684A58.2010508@pobox.com>
Date: Tue, 02 Feb 2010 07:52:56 -0800
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: tls@ietf.org
References: <001901caa3e4$c0363750$40a2a5f0$@org> <a84d7bc61002020545n4a29f141na182b463d1de7ece@mail.gmail.com>
In-Reply-To: <a84d7bc61002020545n4a29f141na182b463d1de7ece@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 896BEB62-1012-11DF-8C3E-6AF7ED7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
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, 02 Feb 2010 15:48:48 -0000

Adam Langley wrote:
> On Tue, Feb 2, 2010 at 3:50 AM, Brian Smith <brian@briansmith.org> wrote:
> 
>> But, if the client already knows the certificate, then it
>> already knows the server's public key. Consequently, it is wasteful for the
>> client NOT to send the ClientKeyExchange along with the client hello.
> 
> Given a client-speaks-first protocol like HTTP (which I happen to be
> mostly concerned with), this could cut the full handshake from two to
> one round trips.
> 
> However, there's a much easier way of doing this: cut through mode. In
> this scheme the client starts sending application data records without
> waiting for the server's Finished message so long as the ciphersuite
> is sufficiently strong. Android already does this.

I'm not a cryptographer, but it seems to me that sending data over
the connection before it is validated is a very bad idea.  On my
test server, people have established connections in less than 40 ms
using a full handshake.  Most handshakes from around the world
complete in less than half a second.  Don't get too carried away
trying to optimize this, especially if you're not able to maintain
the security guarantees.

Mike

From n.mavrogiannopoulos@gmail.com  Tue Feb  2 08:18:21 2010
Return-Path: <n.mavrogiannopoulos@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 457EF3A68E8 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 08:18:21 -0800 (PST)
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 YrTcok9HOxH8 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 08:18:20 -0800 (PST)
Received: from mail-ew0-f228.google.com (mail-ew0-f228.google.com [209.85.219.228]) by core3.amsl.com (Postfix) with ESMTP id 07BAB3A6B36 for <tls@ietf.org>; Tue,  2 Feb 2010 08:18:18 -0800 (PST)
Received: by ewy28 with SMTP id 28so59169ewy.28 for <tls@ietf.org>; Tue, 02 Feb 2010 08:18:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:openpgp:content-type:content-transfer-encoding; bh=y0Mf9DUil7HGco3xJVgKzVEwT0OO8nel068qohS/ZZk=; b=Pkt1YDVd72a2XqiJvb6F8oDMQ4u2RXJTuSQIEOKHgqW1O9zuKxVLZlqlu2ktUMcBZj uwGOK23eUhA574we/AIqRkjMxd0CYERmVw+wcROTIEybqtgTHnIQcAWajT4gg0w0vMkU F7Ax3ESkz4AjmP0pi/SAKUlwfsXPjVtpZi8EA=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:openpgp:content-type :content-transfer-encoding; b=f2vpljA+1PTiKEC0mkMsEqZyrfsXH8ZWF+Ps9Y/fTC1yI9OPseqwgyraCAHfT2ty7z 5sLemej+b39Jk1/GJgSsZ9MOuVKq1h7yev3lCB3lvsahGB79AY+165HR3AH6lzNEfiNn 5Dy0bapU0CmOaRTcN4HhHmpwFRsn9o3tSjQWs=
Received: by 10.213.109.199 with SMTP id k7mr920776ebp.66.1265127534200; Tue, 02 Feb 2010 08:18:54 -0800 (PST)
Received: from ?10.100.2.14? (78-23-67-218.access.telenet.be [78.23.67.218]) by mx.google.com with ESMTPS id 16sm4618054ewy.14.2010.02.02.08.18.52 (version=SSLv3 cipher=RC4-MD5); Tue, 02 Feb 2010 08:18:52 -0800 (PST)
Sender: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
Message-ID: <4B68506A.7010804@gnutls.org>
Date: Tue, 02 Feb 2010 17:18:50 +0100
From: Nikos Mavrogiannopoulos <nmav@gnutls.org>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Adam Langley <agl@google.com>
References: <001901caa3e4$c0363750$40a2a5f0$@org>	 <a84d7bc61002020545n4a29f141na182b463d1de7ece@mail.gmail.com>	 <4B684577.10603@gnutls.org> <a84d7bc61002020741y5d42af6btbdf5ae0dcb97916b@mail.gmail.com>
In-Reply-To: <a84d7bc61002020741y5d42af6btbdf5ae0dcb97916b@mail.gmail.com>
X-Enigmail-Version: 0.95.7
OpenPGP: id=96865171
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
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, 02 Feb 2010 16:18:21 -0000

Adam Langley wrote:

> The length of the application data records are observable on the wire
> in any case. The only advantage that an attacker could gain here is to
> choose a cipher that doesn't pad records to get a slighter more
> accurate length.

TLS uses random padding in block cipher thus length is typically not
observable unless of course if random padding is not used.

regards,
Nikos

From brian@briansmith.org  Tue Feb  2 08:19:26 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 80E903A682A for <tls@core3.amsl.com>; Tue,  2 Feb 2010 08:19:26 -0800 (PST)
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=[AWL=0.000,  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 NvfeBLlqdUou for <tls@core3.amsl.com>; Tue,  2 Feb 2010 08:19:25 -0800 (PST)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 4305B3A67CF for <tls@ietf.org>; Tue,  2 Feb 2010 08:19:25 -0800 (PST)
Received: from T60 (unknown [70.245.64.181]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 27598509DB; Tue,  2 Feb 2010 11:19:57 -0500 (EST)
From: "Brian Smith" <brian@briansmith.org>
To: "'Adam Langley'" <agl@google.com>
References: <001901caa3e4$c0363750$40a2a5f0$@org> <a84d7bc61002020545n4a29f141na182b463d1de7ece@mail.gmail.com>
In-Reply-To: <a84d7bc61002020545n4a29f141na182b463d1de7ece@mail.gmail.com>
Date: Tue, 2 Feb 2010 10:19:57 -0600
Message-ID: <000a01caa423$92dc1d30$b8945790$@org>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Office Outlook 12.0
Content-Language: en-us
Thread-Index: AcqkDf2dC81nPusETtufhZ+h+sc+4AADP5ug
Cc: tls@ietf.org
Subject: Re: [TLS] Android's cut-through mode & "RequestTickets" extension ([was draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted)
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, 02 Feb 2010 16:19:26 -0000

Adam Langley wrote:
> On Tue, Feb 2, 2010 at 3:50 AM, Brian Smith <brian@briansmith.org>
> wrote:
> > But, if the client already knows the certificate, then it
> > already knows the server's public key. Consequently, it is
> > wasteful for the client NOT to send the ClientKeyExchange
> > along with the client hello.
>=20
> Given a client-speaks-first protocol like HTTP (which I happen to be
> mostly concerned with), this could cut the full handshake from two to
> one round trips.
>=20
> However, there's a much easier way of doing this: cut through mode. In
> this scheme the client starts sending application data records without
> waiting for the server's Finished message so long as the ciphersuite
> is sufficiently strong. Android already does this.

Interesting. Please send me links to some info about the Android way, if =
you have any. In particular, have you run into any compatibility =
problems with this approach? AFAICT, my (private) implementation would =
abort the connection if there was anything following the ClientHello =
before it sent its ServerHello.

I am more interested the ephemeral modes, which would always require one =
round-trip even in cut-through mode. That is why I think The =
"cut-through" mode Android is using says "I don't care if the =
ServerHello was tampered with, because the parts that affect security =
(ciphersuite, protocol version) are good enough for me." I agree that =
seems like a safe optimization in many cases. However, I think the exact =
details have to be very thoroughly researched and documented very well =
if this is an optimization that we are going to encourage. I feel my =
suggestion is preferable because it has NO material effect on the =
security properties of TLS at all. Plus, it works for =
server-speaks-first protocols like SMTP and IMAP (also relevant for you, =
AFAICT) where the server speaks first.

More below.

> However, with cached certificates it's possible to get a full
> handshake down to 0-RTT if the client can choose the server's random.
> This means that the server has to be able to assert that it will never
> reuse the same random, but that's doable if you assume some degree of
> clock synchronisation and client-cached epoch values.

Hopefully soon I will get around to proposing another extension: the =
"RequestTickets" extension. Basically, the client includes an empty =
extension with extension_type=3DRequestTicket in ClientHello. The server =
responses with the same in its ServerHello if it supports it. If the =
server does so, then at any time *AFTER* the ChangeCipherSpec messages, =
the client can send a message with record_type=3DRequestTickets, which =
contains a single byte, <N>. That byte indicates that the client wants =
the server to give it <N> RFC5077 session tickets. The server responds =
with its own RequestTickets record, which contains a vector of RFC5077 =
session tickets for use on subsequent connections. The purpose of this =
extension is to allow a client to resume a session with a server, =
without outside observers being able to tell *which* session is being =
resumed (IMO, this is a major flaw with RFC5077; I don't understand why =
RFC5077 didn't at least put the NewSessionTicket handshake message after =
the server change_cipher_spec message).

You could easily extend this RequestTickets mechanism so that the server =
returns a vector of (ServerRandom, Session Ticket) pairs. Then the =
server could still choose its own random value, but it would do so ahead =
of time. The session ticket should include an authenticator for the =
ServerRandom. Then, resuming connections would include an =
"early_server_random" extension alongside the SessionTicket extension, =
and the client could send =
client_hello||change_cipher_spec||finished||application_data in its =
resuming connections. But, then you are open to replay attacks, AFAICT.

> This idea has been banging about for a while now and you're the second
> person that I've seen mention something similar in a week. I intend to
> start experimenting with this, hopefully this quarter.

Keep in touch. Sometime this quarter I hope to do a proof-of-concept =
implementation server implementation for OpenSSL.

Regards,
Brian



From brian@briansmith.org  Tue Feb  2 09:37:24 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 9E69B3A6828 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 09:37:24 -0800 (PST)
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 rCkf4h5QyaD8 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 09:37:23 -0800 (PST)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 93C203A672E for <tls@ietf.org>; Tue,  2 Feb 2010 09:37:23 -0800 (PST)
Received: from T60 (unknown [70.245.64.181]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id BA7D4509DB; Tue,  2 Feb 2010 12:37:55 -0500 (EST)
From: "Brian Smith" <brian@briansmith.org>
To: "'Adam Langley'" <agl@google.com>
References: <001901caa3e4$c0363750$40a2a5f0$@org>	 <a84d7bc61002020545n4a29f141na182b463d1de7ece@mail.gmail.com>	 <000a01caa423$92dc1d30$b8945790$@org> <a84d7bc61002020856m24f4975bib5dbc0073a0bfbfc@mail.gmail.com>
In-Reply-To: <a84d7bc61002020856m24f4975bib5dbc0073a0bfbfc@mail.gmail.com>
Date: Tue, 2 Feb 2010 11:37:56 -0600
Message-ID: <000b01caa42e$7761f600$6625e200$@org>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Office Outlook 12.0
Content-Language: en-us
Thread-Index: AcqkKLcJ7d2NA02bRVuGZ+F2oNXp1AAApPxg
Cc: tls@ietf.org
Subject: [TLS] Stream multiplexing extension RE: SPDY / Next protocol negotiation
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, 02 Feb 2010 17:37:24 -0000

Adam,

Besides SPDY, the next protocol extension is useful for another case: =
Running HTTP, SMTP, and/or IMAP services on the same port (usually 443). =
For example, it could be used to make it difficult to tell if a user is =
sending (SMTP) or receiving (IMAP) email, if padding is done =
appropriately. I think this is a very valuable addition. It is hard to =
do without a TLS extension because HTTP is a client-speaks-first =
protocol, and SMTP and IMAP are server-speaks-first protocols.

My understanding is that SPDY will always require TLS, right? If so, =
then TLS w/ TLS compression + HTTP pipelining seem to offer most/all of =
the benefits of SPDY except (a) the simplified HTTP header parsing, and =
(b) the multiplexing. I don't really see the advantage of the HTTP =
header syntax changes considering the large amount of computation needed =
for (de)compression and (de/en)cryption. So, why not recast SPDY as a =
"canonical HTTP header lexical syntax" profile + HTTP pipelining + TLS + =
TLS w/ TLS compression + a TLS stream multiplexing extension?

IMO, a stream multiplexing extension would be generally useful because =
it frustrates traffic analysis, and it could be used for more effective =
padding than the minimal/inefficient padding that TLS CBC mode offers =
(simply multiplex a no-op stream along with your real data streams). =
Also, AFAICT, TLS doesn't provide any padding facility at all for stream =
(e.g. RC4) or AEAD cipher suites (AES-GCM in particular).

Regards,
Brian


From paul.hoffman@vpnc.org  Tue Feb  2 09:37:36 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 EE49128C0D7 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 09:37:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.084
X-Spam-Level: 
X-Spam-Status: No, score=-5.084 tagged_above=-999 required=5 tests=[AWL=-1.038, BAYES_00=-2.599, HELO_MISMATCH_COM=0.553, RCVD_IN_DNSWL_MED=-4, SARE_RAND_1=2]
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 nK7OsRfWGTfa for <tls@core3.amsl.com>; Tue,  2 Feb 2010 09:37:36 -0800 (PST)
Received: from balder-227.proper.com (Balder-227.Proper.COM [192.245.12.227]) by core3.amsl.com (Postfix) with ESMTP id 2E31628C0CE for <tls@ietf.org>; Tue,  2 Feb 2010 09:37:36 -0800 (PST)
Received: from [75.101.18.87] (75-101-30-90.dsl.dynamic.sonic.net [75.101.30.90]) (authenticated bits=0) by balder-227.proper.com (8.14.2/8.14.2) with ESMTP id o12HcCdT061028 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Feb 2010 10:38:14 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
Mime-Version: 1.0
Message-Id: <p06240813c78e116da3f6@[75.101.18.87]>
In-Reply-To: <87fx5jk8vp.fsf@mocca.josefsson.org>
References: <p0624089bc78922bdaddd@[10.20.30.158]> <87fx5jk8vp.fsf@mocca.josefsson.org>
Date: Tue, 2 Feb 2010 09:38:11 -0800
To: Simon Josefsson <simon@josefsson.org>
From: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: text/plain; charset="us-ascii"
Cc: tls@ietf.org
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Feb 2010 17:37:37 -0000

At 3:30 PM +0100 2/2/10, Simon Josefsson wrote:
>I have read these two documents and believe they are generally fine.  As
>far as I can tell, they are not backwards compatible with earlier
>proposals. 

Correct.

>But that is not important.

I believe that is the case as well. The changes only are needed if both parties agree to use a TLS/DTLS extension that need the changes, and that negotiation is completely explicit. If an implementation doesn't support any such extension, there is no reason for it to support the changes either.

>There is one thing in draft-hoffman-tls-additional-random-ext-00.txt
>that bothers me: There is no requirement that additional random data is
>generated using cryptographic principles.  This means the extension can
>be used as a general-purpose extension mechanism to exchange data that
>has meaning to, for example, some middle-ware that sits between the
>client and server.
>
>Is this the intention?  I'm assuming no, and that the
>additional_random_value actually are intended to be, well, just an
>additional random value.

Correct. That's why the document says:
   The recipient of an additional_random extension MUST NOT try to parse
   the additional_random_value.

>Therefor, I would suggest that a new requirement is added:
>
>   The client and server MUST generate the additional_random_value data
>   using a secure random number generator.  [RANDOM] provides guidance
>   on the generation of random values.
>...
>   [RANDOM]   Eastlake, D., 3rd, Schiller, J., and S. Crocker,
>              "Randomness Requirements for Security", BCP 106, RFC 4086,
>              June 2005.

This is a great addition, thanks. It will be in the -01.

--Paul Hoffman, Director
--VPN Consortium

From brian@briansmith.org  Tue Feb  2 10:05:38 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 D1D4A28C101 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 10:05:38 -0800 (PST)
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, J_CHICKENPOX_43=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 UOIfLOMFSAAa for <tls@core3.amsl.com>; Tue,  2 Feb 2010 10:05:38 -0800 (PST)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 0ABB73A6975 for <tls@ietf.org>; Tue,  2 Feb 2010 10:05:37 -0800 (PST)
Received: from T60 (unknown [70.245.64.181]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id E33E6509DE; Tue,  2 Feb 2010 13:06:15 -0500 (EST)
From: "Brian Smith" <brian@briansmith.org>
To: "'Michael D'Errico'" <mike-list@pobox.com>
References: <001901caa3e4$c0363750$40a2a5f0$@org>	<a84d7bc61002020545n4a29f141na182b463d1de7ece@mail.gmail.com> <4B684A58.2010508@pobox.com>
In-Reply-To: <4B684A58.2010508@pobox.com>
Date: Tue, 2 Feb 2010 12:06:16 -0600
Message-ID: <000c01caa432$6a6d52b0$3f47f810$@org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 12.0
Content-Language: en-us
Thread-Index: AcqkH0+b1J8FlI1zQ++3BbK2RgitDwAEKTbQ
Cc: tls@ietf.org
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
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, 02 Feb 2010 18:05:38 -0000

Michael D'Errico wrote:
> Adam Langley wrote:
> > However, there's a much easier way of doing this: cut through mode.
> > In this scheme the client starts sending application data records
> > without waiting for the server's Finished message so long as the
> > ciphersuite is sufficiently strong. Android already does this.
> 
> I'm not a cryptographer, but it seems to me that sending data over
> the connection before it is validated is a very bad idea.  On my
> test server, people have established connections in less than 40 ms
> using a full handshake.  Most handshakes from around the world
> complete in less than half a second.  Don't get too carried away
> trying to optimize this, especially if you're not able to maintain
> the security guarantees.

Half a second is not an acceptable latency for many applications, especially
over GPRS (even "3G"/"4G") connections. I developed my own HTTP+TLS stack
for a mobile app just to reduce the latency to acceptable levels. Plus,
ephemeral key exchange can add noticeable latency when the client's
processor is weak--which again is the case especially for mobile apps. (The
OS's TLS stack didn't provide adequate control over the session cache,
didn't support compression, and didn't support session tickets.) 

Latency concerns seem to be a strong motivation for people to develop new
protocols less secure than TLS like OAuth, and to choose non-ephemeral
key-exchange over ephemeral key exchange. A safe zero-roundtrip
handshake--even just for resumption--would make TLS practical for many more
applications and would reduce pressure for apps to provide the user a switch
to "turn off security" as many mobile apps are doing. If Adam or anybody
else has already tried to work out a mechanism for that, I'd love to hear
about it.

Cheers,
Brian


From simon@josefsson.org  Tue Feb  2 11:27:27 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 070DA3A68D0 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 11:27:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.407
X-Spam-Level: 
X-Spam-Status: No, score=-1.407 tagged_above=-999 required=5 tests=[AWL=-0.808, BAYES_00=-2.599, SARE_RAND_1=2]
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 CiQvpJZoPP2y for <tls@core3.amsl.com>; Tue,  2 Feb 2010 11:27:26 -0800 (PST)
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39]) by core3.amsl.com (Postfix) with ESMTP id EFE503A68C3 for <tls@ietf.org>; Tue,  2 Feb 2010 11:27:25 -0800 (PST)
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99]) (authenticated bits=0) by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o12JS0LY025486 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 2 Feb 2010 20:28:02 +0100
From: Simon Josefsson <simon@josefsson.org>
To: Paul Hoffman <paul.hoffman@vpnc.org>
References: <p0624089bc78922bdaddd@[10.20.30.158]> <87fx5jk8vp.fsf@mocca.josefsson.org> <p06240813c78e116da3f6@[75.101.18.87]>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100202:tls@ietf.org::W7vTeI4niZyeINuu:REn5
X-Hashcash: 1:22:100202:paul.hoffman@vpnc.org::fQl4EGC2nLk5lpZs:IRzm
Date: Tue, 02 Feb 2010 20:28:00 +0100
In-Reply-To: <p06240813c78e116da3f6@[75.101.18.87]> (Paul Hoffman's message of "Tue\, 2 Feb 2010 09\:38\:11 -0800")
Message-ID: <871vh3igjj.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.95.3 at yxa-v
X-Virus-Status: Clean
Cc: tls@ietf.org
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Feb 2010 19:27:27 -0000

Paul Hoffman <paul.hoffman@vpnc.org> writes:

>>There is one thing in draft-hoffman-tls-additional-random-ext-00.txt
>>that bothers me: There is no requirement that additional random data is
>>generated using cryptographic principles.  This means the extension can
>>be used as a general-purpose extension mechanism to exchange data that
>>has meaning to, for example, some middle-ware that sits between the
>>client and server.
>>
>>Is this the intention?  I'm assuming no, and that the
>>additional_random_value actually are intended to be, well, just an
>>additional random value.
>
> Correct. That's why the document says:
>    The recipient of an additional_random extension MUST NOT try to parse
>    the additional_random_value.

I noticed that, but as I (perhaps incorrectly) interpreted "recipient"
to mean "client or server", I was left with an uncertainty whether or
not the extension was intended for transporting data (e.g.,
authorization information) intended for middle-ware.

>>Therefor, I would suggest that a new requirement is added:
>>
>>   The client and server MUST generate the additional_random_value data
>>   using a secure random number generator.  [RANDOM] provides guidance
>>   on the generation of random values.
>>...
>>   [RANDOM]   Eastlake, D., 3rd, Schiller, J., and S. Crocker,
>>              "Randomness Requirements for Security", BCP 106, RFC 4086,
>>              June 2005.
>
> This is a great addition, thanks. It will be in the -01.

That solves my issues with two documents, and I support their
publication.

Thanks,
Simon

From brian@briansmith.org  Tue Feb  2 12:02:34 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 47A673A6A46 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 12:02:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.549
X-Spam-Level: 
X-Spam-Status: No, score=-1.549 tagged_above=-999 required=5 tests=[AWL=-0.950, BAYES_00=-2.599, SARE_RAND_1=2]
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 SAUm55TqBMqQ for <tls@core3.amsl.com>; Tue,  2 Feb 2010 12:02:33 -0800 (PST)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 685713A6A3C for <tls@ietf.org>; Tue,  2 Feb 2010 12:02:33 -0800 (PST)
Received: from T60 (unknown [70.245.64.181]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id D21D8509DF; Tue,  2 Feb 2010 15:03:05 -0500 (EST)
From: "Brian Smith" <brian@briansmith.org>
To: "'Paul Hoffman'" <paul.hoffman@vpnc.org>
References: <p0624089bc78922bdaddd@[10.20.30.158]>	<87fx5jk8vp.fsf@mocca.josefsson.org> <p06240813c78e116da3f6@[75.101.18.87]>
In-Reply-To: <p06240813c78e116da3f6@[75.101.18.87]>
Date: Tue, 2 Feb 2010 14:03:05 -0600
Message-ID: <001001caa442$beefbde0$3ccf39a0$@org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 12.0
Content-Language: en-us
Thread-Index: AcqkLoWT7xt7+EDrRx67KJiJLEnvUwAELCkw
Cc: tls@ietf.org
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Feb 2010 20:02:34 -0000

Paul Hoffman wrote:
> At 3:30 PM +0100 2/2/10, Simon Josefsson wrote:
> >There is one thing in draft-hoffman-tls-additional-random-ext-00.txt
> >that bothers me: There is no requirement that additional random data
> >is generated using cryptographic principles.  This means the extension
> >can be used as a general-purpose extension mechanism to exchange data
> >that has meaning to, for example, some middle-ware that sits between
> >the client and server.
> >
> >Is this the intention?  I'm assuming no, and that the
> >additional_random_value actually are intended to be, well, just an
> >additional random value.
> 
> Correct. That's why the document says:
>    The recipient of an additional_random extension MUST NOT try to
>    parse the additional_random_value.
> 
> >Therefor, I would suggest that a new requirement is added:
> >
> >   The client and server MUST generate the additional_random_value
> >   data using a secure random number generator.  [RANDOM] provides
> >   guidance on the generation of random values.
> 
> This is a great addition, thanks. It will be in the -01.

 (a) Why does the intro say that extensions want to mix "particular data"
into the calculation of the master secret? I think "additional random data"
would be clearer.

(b) Why does there need to be more than one kind of additional input type?
It seems like the sending side could just concatenate all the additional
input into a single "additional_input" extension before it sends it. I think
it's because this foundational work for channel binding mechanism. In that
case, the IETF should treat the this mechanism and the channel binding
mechanism as a single item to be accepted/rejected together--if channel
binding gets rejected then there's no need (AFAICT) for multiple
additional_input extensions.

(c) Besides channel binding, an implementation might support this to help
ensure a certain level of entropy was used for the pseudorandom inputs to
the PRF for calculating the master secret. Why not include the definition of
this extension in the same document, instead of requiring a separate
document to define it?

(d) Wouldn't it be better to use the normal master_secret calculations to
establish a secure channel, and then send the parameters for modifying the
master secret over that secure connection? This would reduce the amount of
data sent in the clear, so that an outside observer could not tell if/which
channels are bound together. And it would reduce DoS on the entropy source
of the PRNGs of each party, by allowing each party to authenticate the other
before processing the extension. Finally, it would keep ClientHello messages
small, which is important for improving latency.

Regards,
Brian


From mike-list@pobox.com  Tue Feb  2 12:11: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 C19063A6B4B for <tls@core3.amsl.com>; Tue,  2 Feb 2010 12:11:11 -0800 (PST)
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, J_CHICKENPOX_43=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 QWOisGKABEz4 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 12:11:10 -0800 (PST)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 2010F3A6B47 for <tls@ietf.org>; Tue,  2 Feb 2010 12:11:06 -0800 (PST)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 41CCB963E9 for <tls@ietf.org>; Tue,  2 Feb 2010 15:11:45 -0500 (EST)
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=McL6xGcj645B Sn2MDXrU0BDPZHU=; b=Wnk9rj/1rspsZxO2roY0GetHCFrYaobPNe6ygKv9Zkqp gib8YxvsppLrqK89VInCHhZYXGopq/Tv+mp6wcidI2ClHZrHnNkVhEXH5WVeiHeq 2TIext83Q9J5BQMRbu+OyG4BCH1jOPd8NXUDVn4ny7OgPyv0Ip17JUaRxQNFkFc=
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=eXaBRD qLewXs823pUYcqKTdkfVq2NX97VtQkcdJhP7GhvqeLUMoEWvJEnWawAVL1KDzLlQ QlIw/T4uY2Qa/hQ5B+px44cdGSixA9AwNdWzY/lTJSQ8QGPYFuabgjMFSJYzzpjz 02mdxJ8wwJEAFqMpVxrLcSFBPqhmWcClcEzzs=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 3B442963E7 for <tls@ietf.org>; Tue,  2 Feb 2010 15:11:45 -0500 (EST)
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 BDA3E963E3 for <tls@ietf.org>; Tue,  2 Feb 2010 15:11:44 -0500 (EST)
Message-ID: <4B6887D5.1030207@pobox.com>
Date: Tue, 02 Feb 2010 12:15:17 -0800
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: tls@ietf.org
References: <001901caa3e4$c0363750$40a2a5f0$@org> <a84d7bc61002020545n4a29f141na182b463d1de7ece@mail.gmail.com> <4B684A58.2010508@pobox.com> <000c01caa432$6a6d52b0$3f47f810$@org>
In-Reply-To: <000c01caa432$6a6d52b0$3f47f810$@org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 2F978FAE-1037-11DF-A64C-6AF7ED7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Subject: [TLS] TLS Performance (was Re: draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted)
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, 02 Feb 2010 20:11:12 -0000

Brian Smith wrote:
> Michael D'Errico wrote:
>> On my
>> test server, people have established connections in less than 40 ms
>> using a full handshake.  Most handshakes from around the world
>> complete in less than half a second.  Don't get too carried away
>> trying to optimize this, especially if you're not able to maintain
>> the security guarantees.
> 
> Half a second is not an acceptable latency for many applications, especially
> over GPRS (even "3G"/"4G") connections. I developed my own HTTP+TLS stack
> for a mobile app just to reduce the latency to acceptable levels. Plus,
> ephemeral key exchange can add noticeable latency when the client's
> processor is weak--which again is the case especially for mobile apps. (The
> OS's TLS stack didn't provide adequate control over the session cache,
> didn't support compression, and didn't support session tickets.) 

I'm only in control of one side of the TLS connection in the numbers I
presented, so some of the delay can be attributed to the client software.

I just did some tests on my MacBookPro to eliminate the uncertainty of
the client software and the network latency factor.  Here are the times
to establish a full handshake for a few cipher suites:

     003D - RSA (1024) AES-256 SHA-256 + session ticket:            10 ms
     003D - RSA (1024) AES-256 SHA-256 (normal session):           8.5 ms

     006B - DHE_RSA (1024/1024) AES-256 SHA-256 + session ticket:   72 ms
     006B - DHE_RSA (1024/1024) AES-256 SHA-256:                    71 ms

     006A - DHE_DSS (1024/1024) AES-256 SHA-256 + session ticket:   72 ms
     006A - DHE_DSS (1024/1024) AES-256 SHA-256:                    71 ms

when the DH parameters are 1536-bit:

     006B - DHE_RSA (1536/1024) AES-256 SHA-256 + session ticket:  202 ms
     006B - DHE_RSA (1536/1024) AES-256 SHA-256:                   201 ms

So you can see that forward secrecy costs a lot in terms of latency, even
for a fast processor.

The timing for session resumption is independent of the key exchange
mechanism:

     AES-256 SHA-256 + session ticket:        4.2 ms
     AES-256 SHA-256:                         1.2 ms

Here you can see that server-side session caches are considerably faster
than session ticket resumption (at least in my code).

> Latency concerns seem to be a strong motivation for people to develop new
> protocols less secure than TLS like OAuth, and to choose non-ephemeral
> key-exchange over ephemeral key exchange. A safe zero-roundtrip
> handshake--even just for resumption--would make TLS practical for many more
> applications and would reduce pressure for apps to provide the user a switch
> to "turn off security" as many mobile apps are doing. If Adam or anybody
> else has already tried to work out a mechanism for that, I'd love to hear
> about it.

What you are trying to do is not bad, but it doesn't seem to fit well
with the existing TLS protocol.  It seems like you want the client to
send a "packet" to the server, which simultaneously authenticates the
server, establishes the keys, and delivers a payload.  I'm not sure
that trying to twist TLS into this shape is the correct approach.

Mike

From paul.hoffman@vpnc.org  Tue Feb  2 12:19:04 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 1423A3A6B53 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 12:19:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.051
X-Spam-Level: 
X-Spam-Status: No, score=-6.051 tagged_above=-999 required=5 tests=[AWL=-0.005, BAYES_00=-2.599, HELO_MISMATCH_COM=0.553, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yBFX8yrq5p4d for <tls@core3.amsl.com>; Tue,  2 Feb 2010 12:19:03 -0800 (PST)
Received: from balder-227.proper.com (Balder-227.Proper.COM [192.245.12.227]) by core3.amsl.com (Postfix) with ESMTP id 98D1F28C0E1 for <tls@ietf.org>; Tue,  2 Feb 2010 12:18:54 -0800 (PST)
Received: from [75.101.18.87] (75-101-30-90.dsl.dynamic.sonic.net [75.101.30.90]) (authenticated bits=0) by balder-227.proper.com (8.14.2/8.14.2) with ESMTP id o12KJT7T070934 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Feb 2010 13:19:31 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
Mime-Version: 1.0
Message-Id: <p06240829c78e37e5a850@[75.101.18.87]>
In-Reply-To: <001001caa442$beefbde0$3ccf39a0$@org>
References: <p0624089bc78922bdaddd@[10.20.30.158]> <87fx5jk8vp.fsf@mocca.josefsson.org> <p06240813c78e116da3f6@[75.101.18.87]> <001001caa442$beefbde0$3ccf39a0$@org>
Date: Tue, 2 Feb 2010 12:19:28 -0800
To: "Brian Smith" <brian@briansmith.org>
From: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: text/plain; charset="us-ascii"
Cc: tls@ietf.org
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Feb 2010 20:19:04 -0000

At 2:03 PM -0600 2/2/10, Brian Smith wrote:
> (a) Why does the intro say that extensions want to mix "particular data"
>into the calculation of the master secret? I think "additional random data"
>would be clearer.

That phrase appears in the introduction to draft-hoffman-tls-master-secret-input, *not* in draft-hoffman-tls-additional-random-ext. The former is the description of how to make extensions that mix particular data into the master secret; the latter is the definition of one such extension.

>(b) Why does there need to be more than one kind of additional input type?
>It seems like the sending side could just concatenate all the additional
>input into a single "additional_input" extension before it sends it. I think
>it's because this foundational work for channel binding mechanism. In that
>case, the IETF should treat the this mechanism and the channel binding
>mechanism as a single item to be accepted/rejected together--if channel
>binding gets rejected then there's no need (AFAICT) for multiple
>additional_input extensions.

There needs to be more than one additional input type because different parties might want to use different extensions. For example, if someone comes up with an extension for mixing in user identities (I'm using this as an example, not a suggestion), they might not want to mix in additional random. Thus, the extensions should remain separate.

And, to be clear, this is not "foundational work for channel binding mechanism". It is orthogonal to the work that has been proposed in that area. Note that the term "channel binding" does not appear in the drafts. 

>(c) Besides channel binding, an implementation might support this to help
>ensure a certain level of entropy was used for the pseudorandom inputs to
>the PRF for calculating the master secret. Why not include the definition of
>this extension in the same document, instead of requiring a separate
>document to define it?

Pasi Eronen, the AD, preferred the two proposals be split into two separate documents.

>(d) Wouldn't it be better to use the normal master_secret calculations to
>establish a secure channel, and then send the parameters for modifying the
>master secret over that secure connection? This would reduce the amount of
>data sent in the clear, so that an outside observer could not tell if/which
>channels are bound together. And it would reduce DoS on the entropy source
>of the PRNGs of each party, by allowing each party to authenticate the other
>before processing the extension. Finally, it would keep ClientHello messages
>small, which is important for improving latency.

Again, this presumes that the purpose is channel binding, and it is not.

--Paul Hoffman, Director
--VPN Consortium

From brian@briansmith.org  Tue Feb  2 13:03:10 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 017DD3A6B72 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 13:03:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.413
X-Spam-Level: 
X-Spam-Status: No, score=-2.413 tagged_above=-999 required=5 tests=[AWL=0.186,  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 YZbqkIqfVKGb for <tls@core3.amsl.com>; Tue,  2 Feb 2010 13:03:09 -0800 (PST)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id E93CB3A69A1 for <tls@ietf.org>; Tue,  2 Feb 2010 13:03:08 -0800 (PST)
Received: from T60 (unknown [70.245.64.181]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 76C23509DD; Tue,  2 Feb 2010 16:03:41 -0500 (EST)
From: "Brian Smith" <brian@briansmith.org>
To: "'Paul Hoffman'" <paul.hoffman@vpnc.org>
References: <p0624089bc78922bdaddd@[10.20.30.158]> <87fx5jk8vp.fsf@mocca.josefsson.org> <p06240813c78e116da3f6@[75.101.18.87]> <001001caa442$beefbde0$3ccf39a0$@org> <p06240829c78e37e5a850@[75.101.18.87]>
In-Reply-To: <p06240829c78e37e5a850@[75.101.18.87]>
Date: Tue, 2 Feb 2010 15:03:41 -0600
Message-ID: <001101caa44b$35f6f540$a1e4dfc0$@org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 12.0
Content-Language: en-us
Thread-Index: AcqkRQjAtL7ljGpeSQCvkxWcS991UwAAVV6w
Cc: tls@ietf.org
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Feb 2010 21:03:10 -0000

Paul Hoffman wrote:
> That phrase appears in the introduction to draft-hoffman-tls-master-
> secret-input, *not* in draft-hoffman-tls-additional-random-ext. The
> former is the description of how to make extensions that mix particular
> data into the master secret; the latter is the definition of one such
> extension.

> There needs to be more than one additional input type because different
> parties might want to use different extensions. For example, if someone
> comes up with an extension for mixing in user identities (I'm using
> this as an example, not a suggestion), they might not want to mix in
> additional random. Thus, the extensions should remain separate.

I misunderstood how the extensions work. Thanks for the clarification.
But...

> At 2:03 PM -0600 2/2/10, Brian Smith wrote:
> >(d) Wouldn't it be better to use the normal master_secret calculations
> to establish a secure channel, and then send the parameters for modifying
> the master secret over that secure connection? This would reduce the
> amount of data sent in the clear, so that an outside observer could not
> tell if/which channels are bound together. And it would reduce DoS on
> the entropy source of the PRNGs of each party, by allowing each party
> to authenticate the other before processing the extension. Finally,
> it would keep ClientHello messages small, which is important for
> improving latency.
> 
> Again, this presumes that the purpose is channel binding, and it is
> not.

OK, I shouldn't have said "channel binding," but all of the concerns still
stand, AFAICT. If the additional inputs are random data then it may be OK to
send them in the clear. However, other kinds of additional inputs like user
identities would be better off protected. And, it is better not to increase
the size/processing of the hello messages required before each party gets to
see the other's certificate. If these additional inputs appear in hello
messages then the only way to protect them is with the handshake/renegotiate
anti-pattern, which makes connection latency even worse by adding more round
trips.

Any  extensions that contain non-trivial amounts of data and/or possibly
sensitive information should be transmitted after change_cipher_spec
messages--not in hello messages--whenever practical. When a hello extension
does contain non-trivial amounts of information or sensitive information,
then the security considerations section of its specification should explain
why the extension cannot be moved to after the change_cipher_spec messages. 

Anyway, please disregard my mention of channel binding. What I really meant
is that it's hard to understand and evaluate
draft-hoffman-tls-master-secret-input without seeing the definitions of the
other kinds of additional input--in particular, whether or not those kinds
of additional input are better put before or after the first
change_cipher_spec message (consequently, before or after an initial master
secret is calculated).

Regards,
Brian


From mrex@sap.com  Tue Feb  2 13:54:34 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 026AD3A6933 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 13:54:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.222
X-Spam-Level: 
X-Spam-Status: No, score=-10.222 tagged_above=-999 required=5 tests=[AWL=0.027, 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 5UMqhid7NrLW for <tls@core3.amsl.com>; Tue,  2 Feb 2010 13:54:33 -0800 (PST)
Received: from smtpde03.sap-ag.de (smtpde03.sap-ag.de [155.56.68.140]) by core3.amsl.com (Postfix) with ESMTP id DA89E3A67E9 for <tls@ietf.org>; Tue,  2 Feb 2010 13:54:32 -0800 (PST)
Received: from mail.sap.corp by smtpde03.sap-ag.de (26) with ESMTP id o12Lt73j011342 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Feb 2010 22:55:08 +0100 (MET)
From: Martin Rex <mrex@sap.com>
Message-Id: <201002022155.o12Lt6sO028731@fs4113.wdf.sap.corp>
To: brian@briansmith.org (Brian Smith)
Date: Tue, 2 Feb 2010 22:55:06 +0100 (MET)
In-Reply-To: <001101caa44b$35f6f540$a1e4dfc0$@org> from "Brian Smith" at Feb 2, 10 03:03:41 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: paul.hoffman@vpnc.org, tls@ietf.org
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
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, 02 Feb 2010 21:54:34 -0000

Brian Smith wrote:
> 
> Any  extensions that contain non-trivial amounts of data and/or possibly
> sensitive information should be transmitted after change_cipher_spec
> messages--not in hello messages--whenever practical. When a hello extension
> does contain non-trivial amounts of information or sensitive information,
> then the security considerations section of its specification should explain
> why the extension cannot be moved to after the change_cipher_spec messages. 

As far as I understand, the proposals are about adding entropy into
the TLS MasterSecret computation, not about adding sensitive information.

When using an extension, that additional entropy could also be used
for deriving new keying material (connection parameters) on
TLS session resumption (because these handshake messages do exist
in the abbreviated handshake), but since the existing proposal are
specific about MasterSecret computation, that seems not to be an
issue here (session resumption does _not_ change the session's
MasterSecret).

Currently, the entropy depends on the ClientHello.Random
and ServerHello.Random (28 bytes for use available for each peer),
plus the result of the keyExchange algorithm (with plain RSA ciphersuites,
the client gets to chose/generate all that data/randomness)

In the existing TLS architecture, it is not allowed to send
any message between ChangeCipherSpec and Finished, and Finished
is also the very first message protected under the connection
parameters for the newly created TLS session based on the
sessions MasterSecret.

Before the transmission of the ClientKeyExchange handshake message,
there are no common cryptographic parameters that could be used
for protection at all.

If you wanted to get some sensitive data transfered within the
initial TLS handshake, it would have to be done after ClientKeyExchange
(and if we ever come up with a scheme to protect the client identity
in TLS already in the initial handshake, the (client's) Certificate
and ClientKeyExchange handshake message would have to change their
places in order from where they are currently sent.


What puzzles me a little is that why the existing 28 bytes of
Random in both Hello handshake messages should not be sufficient
for the purpose.  Is there problem in "compressing" large amount
of low-entropy data into that 28-byte of randomness (lack of
suitable compression function)?


Technically, I could conceive that a TLS implementation offers to
application callers a possibility to supply extra entropy that the
TLS implementation will "consume" when producing the 28 bytes
of Hello.Random.  That could be done immediately at the discretion
of every TLS implementation and not require any protocol changes
at all.


-Martin

From paul.hoffman@vpnc.org  Tue Feb  2 13:55:42 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 082DD28C10C for <tls@core3.amsl.com>; Tue,  2 Feb 2010 13:55:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.05
X-Spam-Level: 
X-Spam-Status: No, score=-6.05 tagged_above=-999 required=5 tests=[AWL=-0.004,  BAYES_00=-2.599, HELO_MISMATCH_COM=0.553, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OzdUKo4BfcWK for <tls@core3.amsl.com>; Tue,  2 Feb 2010 13:55:41 -0800 (PST)
Received: from balder-227.proper.com (Balder-227.Proper.COM [192.245.12.227]) by core3.amsl.com (Postfix) with ESMTP id 5227D28C10A for <tls@ietf.org>; Tue,  2 Feb 2010 13:55:41 -0800 (PST)
Received: from [75.101.18.87] (75-101-30-90.dsl.dynamic.sonic.net [75.101.30.90]) (authenticated bits=0) by balder-227.proper.com (8.14.2/8.14.2) with ESMTP id o12LuH3G076621 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Feb 2010 14:56:18 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
Mime-Version: 1.0
Message-Id: <p06240831c78e4f0e15ee@[75.101.18.87]>
In-Reply-To: <001101caa44b$35f6f540$a1e4dfc0$@org>
References: <p0624089bc78922bdaddd@[10.20.30.158]> <87fx5jk8vp.fsf@mocca.josefsson.org> <p06240813c78e116da3f6@[75.101.18.87]> <001001caa442$beefbde0$3ccf39a0$@org> <p06240829c78e37e5a850@[75.101.18.87]> <001101caa44b$35f6f540$a1e4dfc0$@org>
Date: Tue, 2 Feb 2010 13:56:15 -0800
To: "Brian Smith" <brian@briansmith.org>
From: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: text/plain; charset="us-ascii"
Cc: tls@ietf.org
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Feb 2010 21:55:42 -0000

At 3:03 PM -0600 2/2/10, Brian Smith wrote:
>Anyway, please disregard my mention of channel binding. What I really meant
>is that it's hard to understand and evaluate
>draft-hoffman-tls-master-secret-input without seeing the definitions of the
>other kinds of additional input--in particular, whether or not those kinds
>of additional input are better put before or after the first
>change_cipher_spec message (consequently, before or after an initial master
>secret is calculated).

Nothing in draft-hoffman-tls-master-secret-input prevents someone from writing an extension that uses data exchange after the change_cipher_spec message. Folks have been welcome to write such extensions before now, and will continue to be welcome to after this. This proposed protocol change is only relevant to scenarios where there is a cryptographic reason to mix inherently non-sensitive data passed before the change_cipher_spec message into the master secret.

--Paul Hoffman, Director
--VPN Consortium

From marsh@extendedsubset.com  Tue Feb  2 17:50: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 B560D3A67B2 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 17:50:04 -0800 (PST)
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=[AWL=0.000,  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 9uC-BegcUoZO for <tls@core3.amsl.com>; Tue,  2 Feb 2010 17:50:04 -0800 (PST)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id E9D6828C13F for <tls@ietf.org>; Tue,  2 Feb 2010 17:50:03 -0800 (PST)
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 1NcUOB-000JAq-Pb; Wed, 03 Feb 2010 01:50:43 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 7894A64F2; Wed,  3 Feb 2010 01:50:42 +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/8GpRkC9iNLLGCLR2F3vEkBwbmXTgb2Hc=
Message-ID: <4B68D672.2060609@extendedsubset.com>
Date: Tue, 02 Feb 2010 19:50:42 -0600
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: Paul Hoffman <paul.hoffman@vpnc.org>
References: <p0624089bc78922bdaddd@[10.20.30.158]>	<87fx5jk8vp.fsf@mocca.josefsson.org>	<p06240813c78e116da3f6@[75.101.18.87]>	<001001caa442$beefbde0$3ccf39a0$@org>	<p06240829c78e37e5a850@[75.101.18.87]>	<001101caa44b$35f6f540$a1e4dfc0$@org> <p06240831c78e4f0e15ee@[75.101.18.87]>
In-Reply-To: <p06240831c78e4f0e15ee@[75.101.18.87]>
X-Enigmail-Version: 0.96.0
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Feb 2010 01:50:04 -0000

Paul Hoffman wrote:
> 
> This proposed protocol change is only relevant to scenarios where
> there is a cryptographic reason to mix inherently non-sensitive data
> passed before the change_cipher_spec message into the master secret.

I don't get it. (Sorry I am a little dense sometimes)

You said the data is "not sensitive" and it is sent in plain text. So an
attacker has it as soon as the endpoints do.

What does this accomplish over just hashing your extra data into the 28
byte random field? (which would not require a new protocol structure)

224 bits of from each endpoint ... is 448 bits really not enough entropy
somehow? 448 bits ought to be enough for anybody :-)

It looks to me (but IANAC) like the PRF maxes out at 672 bits of entropy
doing key block expansion (master_secret[48]*8 + 128md5 + 160sha), so
you can only effectively add 224 bits (only 50% more) from any source.

How big were you planning to make those symmetric keys anyway?

- Marsh


From mrex@sap.com  Tue Feb  2 18:17:33 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 A85213A6BB6 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 18:17:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.923
X-Spam-Level: 
X-Spam-Status: No, score=-9.923 tagged_above=-999 required=5 tests=[AWL=-0.274, BAYES_00=-2.599, HELO_EQ_DE=0.35, J_CHICKENPOX_54=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 6pUyj4eZHaRN for <tls@core3.amsl.com>; Tue,  2 Feb 2010 18:17:32 -0800 (PST)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.171]) by core3.amsl.com (Postfix) with ESMTP id 731D43A6BB2 for <tls@ietf.org>; Tue,  2 Feb 2010 18:17:32 -0800 (PST)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o132I7em012808 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 3 Feb 2010 03:18:07 +0100 (MET)
From: Martin Rex <mrex@sap.com>
Message-Id: <201002030218.o132I6Y2014454@fs4113.wdf.sap.corp>
To: marsh@extendedsubset.com (Marsh Ray)
Date: Wed, 3 Feb 2010 03:18:06 +0100 (MET)
In-Reply-To: <4B68D672.2060609@extendedsubset.com> from "Marsh Ray" at Feb 2, 10 07:50:42 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: paul.hoffman@vpnc.org, tls@ietf.org
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
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, 03 Feb 2010 02:17:33 -0000

Marsh Ray wrote:
> 
> Paul Hoffman wrote:
> > 
> > This proposed protocol change is only relevant to scenarios where
> > there is a cryptographic reason to mix inherently non-sensitive data
> > passed before the change_cipher_spec message into the master secret.
> 
> You said the data is "not sensitive" and it is sent in plain text. So an
> attacker has it as soon as the endpoints do.
> 
> What does this accomplish over just hashing your extra data into the 28
> byte random field? (which would not require a new protocol structure)

I had the same thought.  Have the endpoints hash it into the
random fields that are sent in the ClientHellos.

Adding extra data onto every TLS handshake that will _only_ be
used during full handshake and completely useless for all session
resumptions seems like a waste.  (For large&busy servers, a
session resumption rate of >95% is desired).


> 
> 224 bits of from each endpoint ... is 448 bits really not enough entropy
> somehow? 448 bits ought to be enough for anybody :-)
> 
> It looks to me (but IANAC) like the PRF maxes out at 672 bits of entropy
> doing key block expansion (master_secret[48]*8 + 128md5 + 160sha), so
> you can only effectively add 224 bits (only 50% more) from any source.

The PRF will have to do some kind of compression of all the entropy
from the inputs.


> 
> How big were you planning to make those symmetric keys anyway?

I would prefer to _not_ call anything "key" that is going to
travel in the clear.  Personally, I always think of "keys" being
secret or even private information.   I would prefer the term
"random" or "entropy".


-Martin

From paul.hoffman@vpnc.org  Tue Feb  2 18:19:39 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 D76BF3A687C for <tls@core3.amsl.com>; Tue,  2 Feb 2010 18:19:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.05
X-Spam-Level: 
X-Spam-Status: No, score=-6.05 tagged_above=-999 required=5 tests=[AWL=-0.004,  BAYES_00=-2.599, HELO_MISMATCH_COM=0.553, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bsq0l931zGmI for <tls@core3.amsl.com>; Tue,  2 Feb 2010 18:19:38 -0800 (PST)
Received: from balder-227.proper.com (Balder-227.Proper.COM [192.245.12.227]) by core3.amsl.com (Postfix) with ESMTP id 755663A6BAB for <tls@ietf.org>; Tue,  2 Feb 2010 18:19:38 -0800 (PST)
Received: from [75.101.18.87] (75-101-30-90.dsl.dynamic.sonic.net [75.101.30.90]) (authenticated bits=0) by balder-227.proper.com (8.14.2/8.14.2) with ESMTP id o132KFL6091211 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Feb 2010 19:20:17 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
Mime-Version: 1.0
Message-Id: <p0624083bc78e8c1563cc@[75.101.18.87]>
In-Reply-To: <4B68D672.2060609@extendedsubset.com>
References: <p0624089bc78922bdaddd@[10.20.30.158]> <87fx5jk8vp.fsf@mocca.josefsson.org> <p06240813c78e116da3f6@[75.101.18.87]> <001001caa442$beefbde0$3ccf39a0$@org> <p06240829c78e37e5a850@[75.101.18.87]> <001101caa44b$35f6f540$a1e4dfc0$@org> <p06240831c78e4f0e15ee@[75.101.18.87]> <4B68D672.2060609@extendedsubset.com>
Date: Tue, 2 Feb 2010 18:20:13 -0800
To: Marsh Ray <marsh@extendedsubset.com>
From: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: text/plain; charset="us-ascii"
Cc: tls@ietf.org
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Feb 2010 02:19:40 -0000

At 7:50 PM -0600 2/2/10, Marsh Ray wrote:
>Paul Hoffman wrote:
>>
>> This proposed protocol change is only relevant to scenarios where
>> there is a cryptographic reason to mix inherently non-sensitive data
>> passed before the change_cipher_spec message into the master secret.
>
>I don't get it. (Sorry I am a little dense sometimes)
>
>You said the data is "not sensitive" and it is sent in plain text. So an
>attacker has it as soon as the endpoints do.

Of course.

>What does this accomplish over just hashing your extra data into the 28
>byte random field? (which would not require a new protocol structure)

You get more random bits mixed into the master secret. This gives you better cryptographic properties if your PRF has an output that is larger than 28 bytes, such as SHA-256 and SHA-384 (but not SHA-1, of course).

>224 bits of from each endpoint ... is 448 bits really not enough entropy
>somehow? 448 bits ought to be enough for anybody :-)

That's one opinion, maybe that of the people who wrote the current key mechanism. There is also an explicit assumption there that both users have good sources of randomness; if one doesn't, then it sure looks more like 224 bits total, which is not good enough for some people. This extension allows each party to introduce enough randomness to the master secret to overcome a complete failure of their peer's RNG.

>It looks to me (but IANAC) like the PRF maxes out at 672 bits of entropy
>doing key block expansion (master_secret[48]*8 + 128md5 + 160sha), so
>you can only effectively add 224 bits (only 50% more) from any source.

Adding 224 bits to your earlier 224 bits should, indeed, be enough for most people's security needs.

>How big were you planning to make those symmetric keys anyway?

48 bytes, as shown in the document.

--Paul Hoffman, Director
--VPN Consortium

From marsh@extendedsubset.com  Tue Feb  2 18:24: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 108A628C140 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 18:24:08 -0800 (PST)
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=[AWL=0.000,  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 ODCziEu5-sk9 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 18:24:07 -0800 (PST)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id 4520628C0F0 for <tls@ietf.org>; Tue,  2 Feb 2010 18:24:07 -0800 (PST)
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 1NcUv8-000AmR-9j for tls@ietf.org; Wed, 03 Feb 2010 02:24:46 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 3110364F2 for <tls@ietf.org>; Wed,  3 Feb 2010 02:24:45 +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+3Q8RQh+fNv/KtLg0/lEobp2+mXbYoh6Y=
Message-ID: <4B68DE6D.1050404@extendedsubset.com>
Date: Tue, 02 Feb 2010 20:24:45 -0600
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: tls@ietf.org
References: <201002030218.o132I6Y2014454@fs4113.wdf.sap.corp>
In-Reply-To: <201002030218.o132I6Y2014454@fs4113.wdf.sap.corp>
X-Enigmail-Version: 0.96.0
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Feb 2010 02:24:08 -0000

Martin Rex wrote:
> Marsh Ray wrote:
>> How big were you planning to make those symmetric keys anyway?
> 
> I would prefer to _not_ call anything "key" that is going to
> travel in the clear.  Personally, I always think of "keys" being
> secret or even private information.   I would prefer the term
> "random" or "entropy".

Sorry if this wasn't clear. I was referring to the actual keys that are
used for the symmetric algorithm. Negotiating these is one of the main
goals of the handshake process.

The point is that it seems like a bit of overkill to require
more than 448 bits of entropy to generate a key for AES-128.

- Marsh

From mrex@sap.com  Tue Feb  2 18:59:41 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 F1A613A69F3 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 18:59:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.212
X-Spam-Level: 
X-Spam-Status: No, score=-10.212 tagged_above=-999 required=5 tests=[AWL=0.038, 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 7KGNbbBnidNe for <tls@core3.amsl.com>; Tue,  2 Feb 2010 18:59:41 -0800 (PST)
Received: from smtpde03.sap-ag.de (smtpde03.sap-ag.de [155.56.68.140]) by core3.amsl.com (Postfix) with ESMTP id DEC473A69B3 for <tls@ietf.org>; Tue,  2 Feb 2010 18:59:40 -0800 (PST)
Received: from mail.sap.corp by smtpde03.sap-ag.de (26) with ESMTP id o1330HPF004407 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 3 Feb 2010 04:00:17 +0100 (MET)
From: Martin Rex <mrex@sap.com>
Message-Id: <201002030300.o1330GLi017169@fs4113.wdf.sap.corp>
To: marsh@extendedsubset.com (Marsh Ray)
Date: Wed, 3 Feb 2010 04:00:16 +0100 (MET)
In-Reply-To: <4B68DE6D.1050404@extendedsubset.com> from "Marsh Ray" at Feb 2, 10 08:24:45 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] New drafts: adding input to the TLS master secret
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, 03 Feb 2010 02:59:42 -0000

Marsh Ray wrote:
> 
> Martin Rex wrote:
> > Marsh Ray wrote:
> >> How big were you planning to make those symmetric keys anyway?
> > 
> > I would prefer to _not_ call anything "key" that is going to
> > travel in the clear.  Personally, I always think of "keys" being
> > secret or even private information.   I would prefer the term
> > "random" or "entropy".
> 
> Sorry if this wasn't clear. I was referring to the actual keys that are
> used for the symmetric algorithm. Negotiating these is one of the main
> goals of the handshake process.
> 
> The point is that it seems like a bit of overkill to require
> more than 448 bits of entropy to generate a key for AES-128.

The useful limit here is probably the size of the MasterSecret (48 bytes)
as Paul indicated.

I share his concern that some TLS peers (those operating in
constrained environments, like small devices, including
handheld devices like PDAs or phones) do not necessarily
have good sources of randomness.

But then, asking them to deplete their pools of randomness
with every SSL handshake and sending that data in the clear
over the network doesn't seem to improve that.


In theory, it would be OK if e.g. such a constrained client
would indicate to the server that it has little randomness
to offer (and itself send an empty extension), and the server
could then take this offer and return additional entropy in
the ServerHello when _NOT_ doing session resumption
(and ignore the extension when doing session resumption),


However, it is not clear to me how this could make up for the lack
of true entropy that goes into the keyexchange performed by the client.


-Martin

From paul.hoffman@vpnc.org  Tue Feb  2 19:13:51 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 BCE553A69C9 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 19:13:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.05
X-Spam-Level: 
X-Spam-Status: No, score=-6.05 tagged_above=-999 required=5 tests=[AWL=-0.004,  BAYES_00=-2.599, HELO_MISMATCH_COM=0.553, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gDzBRQifMKZr for <tls@core3.amsl.com>; Tue,  2 Feb 2010 19:13:39 -0800 (PST)
Received: from balder-227.proper.com (Balder-227.Proper.COM [192.245.12.227]) by core3.amsl.com (Postfix) with ESMTP id C34B328C0E0 for <tls@ietf.org>; Tue,  2 Feb 2010 19:13:37 -0800 (PST)
Received: from [75.101.18.87] (75-101-30-90.dsl.dynamic.sonic.net [75.101.30.90]) (authenticated bits=0) by balder-227.proper.com (8.14.2/8.14.2) with ESMTP id o133EEcB094856 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Feb 2010 20:14:15 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
Mime-Version: 1.0
Message-Id: <p0624083cc78e981d35bf@[75.101.18.87]>
In-Reply-To: <201002030218.o132I6Y2014454@fs4113.wdf.sap.corp>
References: <201002030218.o132I6Y2014454@fs4113.wdf.sap.corp>
Date: Tue, 2 Feb 2010 19:14:13 -0800
To: mrex@sap.com, marsh@extendedsubset.com (Marsh Ray)
From: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: text/plain; charset="us-ascii"
Cc: tls@ietf.org
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Feb 2010 03:13:54 -0000

At 3:18 AM +0100 2/3/10, Martin Rex wrote:
>Marsh Ray wrote:
>>
>> Paul Hoffman wrote:
>> >
>> > This proposed protocol change is only relevant to scenarios where
>> > there is a cryptographic reason to mix inherently non-sensitive data
>> > passed before the change_cipher_spec message into the master secret.
>>
>> You said the data is "not sensitive" and it is sent in plain text. So an
>> attacker has it as soon as the endpoints do.
>>
>> What does this accomplish over just hashing your extra data into the 28
>> byte random field? (which would not require a new protocol structure)
>
>I had the same thought.  Have the endpoints hash it into the
>random fields that are sent in the ClientHellos.

This makes no sense from a cryptographic standpoint. The ClientHello has a fixed size of 28 bytes, so you have 28 bytes of randomness. Combining that with more random data, hashing, and truncating to 28 bytes leaves you with exactly 28 bytes of randomness: you don't gain anything. This isn't a protocol issue, it's a cryptographic fact.

>Adding extra data onto every TLS handshake that will _only_ be
>used during full handshake and completely useless for all session
>resumptions seems like a waste.

This is incorrect. Session resumption uses the original master key. Therefore, whatever data was mixed in to the original master key is mixed into all future keys as well. Or are you saying that the security analysis in F.1.4 of RFC 5246 is wrong in some way?

> > How big were you planning to make those symmetric keys anyway?
>
>I would prefer to _not_ call anything "key" that is going to
>travel in the clear.  Personally, I always think of "keys" being
>secret or even private information.   I would prefer the term
>"random" or "entropy".

Ah, I didn't see that Marsh meant "random input" when he said "key" there. Martin is correct about the terminology. These are *not* keys, and nothing in the draft suggests that they are.

--Paul Hoffman, Director
--VPN Consortium

From marsh@extendedsubset.com  Tue Feb  2 19:26: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 8FDCF3A6829 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 19:26:08 -0800 (PST)
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 YiefCX28iW3F for <tls@core3.amsl.com>; Tue,  2 Feb 2010 19:26:07 -0800 (PST)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id A39923A6809 for <tls@ietf.org>; Tue,  2 Feb 2010 19:26:07 -0800 (PST)
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 1NcVt9-000Oco-Ns; Wed, 03 Feb 2010 03:26:47 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id EE80C64F2; Wed,  3 Feb 2010 03:26:44 +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: U2FsdGVkX19TqR57EDBaqPAr3zhUS/p8gdYqHMCmfno=
Message-ID: <4B68ECF3.5030707@extendedsubset.com>
Date: Tue, 02 Feb 2010 21:26:43 -0600
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: Paul Hoffman <paul.hoffman@vpnc.org>, "tls@ietf.org" <tls@ietf.org>
References: <p0624089bc78922bdaddd@[10.20.30.158]> <87fx5jk8vp.fsf@mocca.josefsson.org> <p06240813c78e116da3f6@[75.101.18.87]> <001001caa442$beefbde0$3ccf39a0$@org> <p06240829c78e37e5a850@[75.101.18.87]> <001101caa44b$35f6f540$a1e4dfc0$@org> <p06240831c78e4f0e15ee@[75.101.18.87]> <4B68D672.2060609@extendedsubset.com> <p0624083bc78e8c1563cc@[75.101.18.87]>
In-Reply-To: <p0624083bc78e8c1563cc@[75.101.18.87]>
X-Enigmail-Version: 0.96.0
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Feb 2010 03:26:08 -0000

Paul Hoffman wrote:
> At 7:50 PM -0600 2/2/10, Marsh Ray wrote:
>> What does this accomplish over just hashing your extra data into
>> the 28 byte random field? (which would not require a new protocol
>> structure)
> 
> You get more random bits mixed into the master secret. This gives you
> better cryptographic properties if your PRF has an output that is
> larger than 28 bytes, such as SHA-256 and SHA-384 (but not SHA-1, of
> course).
> 
>> 224 bits of from each endpoint ... is 448 bits really not enough
>> entropy somehow? 448 bits ought to be enough for anybody :-)
> 
> That's one opinion, maybe that of the people who wrote the current
> key mechanism. There is also an explicit assumption there that both
> users have good sources of randomness; if one doesn't, then it sure
> looks more like 224 bits total, which is not good enough for some
> people. This extension allows each party to introduce enough
> randomness to the master secret to overcome a complete failure of
> their peer's RNG.

Let's say the server has a perfect RNG and the client is broken Debian Etch.

The client provides 15 bits of usable entropy in the Client Hello, the
server provides 224.

RSA key exchange is negotiated.

The client generates the 48-byte premaster secret with an effective
entropy of less than 15 bits (his first handshake since power on).

Game over, right?

I think similar effects apply with DHE key exchange.

>> It looks to me (but IANAC) like the PRF maxes out at 672 bits of
>> entropy doing key block expansion (master_secret[48]*8 + 128md5 +
>> 160sha), so you can only effectively add 224 bits (only 50% more)
>> from any source.
> 
> Adding 224 bits to your earlier 224 bits should, indeed, be enough
> for most people's security needs.
> 
>> How big were you planning to make those symmetric keys anyway?
> 
> 48 bytes, as shown in the document.

So at best there are 384 bits of entropy in play?

Assuming the server supplies his expected 224, our Debian Etch client
only has to pull together 160 usable BoE for them to hit that limit.

I do appreciate a healthy safety margin, but there is some complexity
overhead and potential security risk.

Your point about "potentially would allow an attacker who had partially
compromised the inputs to the master secret calculation greater scope
for influencing the output" is significant. Some kinds of hash attacks
let the attacker mess with the bytes earlier in the handshake by placing
colliding blocks in the Hello Extensions.

It also requires clients and servers to buffer the stuff and later
implement a sorting algorithm based on type order. Lots could go wrong
with that. Pathological sort order DoS attacks, etc.

I like the idea of increasing the available entropy on principle, but it
also looks like other internal limits are too close for an whole
extension framework to be worth the additional complexity. Hate to say
it, but it sounds like a core engineering change for a future version of
TLS to widen the path end-to-end.

- Marsh

From ravi@findravi.com  Tue Feb  2 20:11:31 2010
Return-Path: <ravi@findravi.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 B9BF73A699C for <tls@core3.amsl.com>; Tue,  2 Feb 2010 20:11:31 -0800 (PST)
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=[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 62W9IWd9oLzD for <tls@core3.amsl.com>; Tue,  2 Feb 2010 20:11:30 -0800 (PST)
Received: from mail-pz0-f179.google.com (mail-pz0-f179.google.com [209.85.222.179]) by core3.amsl.com (Postfix) with ESMTP id 54E6B3A694E for <tls@ietf.org>; Tue,  2 Feb 2010 20:11:30 -0800 (PST)
Received: by pzk9 with SMTP id 9so944950pzk.31 for <tls@ietf.org>; Tue, 02 Feb 2010 20:12:09 -0800 (PST)
MIME-Version: 1.0
Received: by 10.114.243.14 with SMTP id q14mr4680399wah.168.1265170328235;  Tue, 02 Feb 2010 20:12:08 -0800 (PST)
Date: Tue, 2 Feb 2010 20:12:08 -0800
Message-ID: <3561bdcc1002022012s2867aac2vaa154013b62e8489@mail.gmail.com>
From: Ravi Ganesan <ravi@findravi.com>
To: tls@ietf.org
Content-Type: text/plain; charset=UTF-8
Subject: [TLS] Single round trip abbreviated handshake
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Feb 2010 04:11:32 -0000

Hi,

I was hoping to make an RFC out of this with those in this list who
think alike and then post, but since the discussion has started
thought I'd join in the fun and  send on this link below.

http://www.safemashups.com/downloads/Optimizing_the_SSL_and_MashSSL_Handshakes.pdf

Basically, we ran into the 'ssl handshakes need at least two
roundtrips' about a year ago in our work in MashSSL (see
www.mashssl.org). Almost all MashSSL handshakes will be "abbreviated
handshakes" (aka session resumption), and since our "transport" was
HTTP, we were in the awkward position of having to do two HTTP
requests to complete the handshake.  This is awkward for us not just
from a latency perspective, but it would be very nice if the initial
request came with all the information needed for the Server to figure
out who is on the other end. (e.g. a cross domain XHR request).

So here is what we came up with. The abbreviated handshake is:

C   ->  Client Hello (including client-random and unix_gmt)  -> S
(neither party know who is at other end at this point)

C   <-   Server Finished (including server-random and unix_gmt)  <- S
(client has auth server at this point)

C   ->  Client Finished     -> S
(only now does server authenticate client)

If we want to reduce this to a single round trip, then the C needs to
send the Client Finished in first message.
BUT the Client Finished depends on the server-random and unix_gmt
response from S which C does not know.

So the idea is for the C to SUGGEST a server-random, and if the S
accepts the suggestion then for the S to use the suggested
server_random and the same unix_gmt as sent by the C (after ensuring
it is within some range; hence loose clock synchronization).

Now, having the counter party in an auth protocol suggest which
'random' number you should use is on the surface utterly preposterous.
 So I went about trying to understand WHY we have these random numbers
in the abbreviated handshake (keep in mind that at this point both
sides have a shared master_secret). The SSL history here was not
entirely clear, but if you see the Schneier and Kocher papers from
that time you can start trying to reconstruct the rationale for them.
And, my analysis was that you can get away with not having the
server-random be truly random, as long as you constrain it.

Anyway, after weighing the unknown RISK introduced against the HUGE
benefits for reducing the number of round trips, our thinking is that,
different apps should be allowed to make different decisions on the
risk/reward trade-off.

(i) the Client should be able to SUGGEST (in an extension) that the
Server use a particular server-random, and then send along the
client-finished optimistically assuming the Server will cooperate.
(ii) the Server can be nice and cooperate, or coldly ignore the Client
and respond as if the extension was not there (taking care either way
to construct the running hashes with only the appropriate messages).

As protection one does not want to let the Client suggest ANY
server-random. Rather, we probably limit attacks (if any) caused by
this model, by setting server-random = function(client-random,
unix_gmt).

Adam/Google was going down this road independently. Adam has suggested
server-random = function(client-random, unix-gmt, epoch) where last
value is derived from Server cert.

Adam has also suggested this can work for full handshake as well. In
the rough paper I reference above we actually considered that
possibility but to put it bluntly 'chickened out'.

(and yes the backing out of data sent etc., reversing change cipher
specs, etc. is not elegant, but its ok if the plumbing looks ugly as
along as it works real fast...!)

If you truly hate this thinking I suspect you will say so; but then do
also consider proposing an alternative. I think the world NEEDS a one
round trip abbreviated handshake (and perhaps to Adam's point, a full
handshake also).  We can either meet that need within the umbrella of
the TLS we know and love, or else the world will eventually come up
with a completely new alternative which will not take advantage of the
15 years of SSL analysis and the SSL trust infrastructure. I am not
sure why latter is better alternative.

Cheers,

Ravi

From ravi@findravi.com  Tue Feb  2 20:21:48 2010
Return-Path: <ravi@findravi.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 608E13A69D3 for <tls@core3.amsl.com>; Tue,  2 Feb 2010 20:21:48 -0800 (PST)
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=[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 oGWLu4Amb-uN for <tls@core3.amsl.com>; Tue,  2 Feb 2010 20:21:47 -0800 (PST)
Received: from mail-px0-f186.google.com (mail-px0-f186.google.com [209.85.216.186]) by core3.amsl.com (Postfix) with ESMTP id ADEFD3A6862 for <tls@ietf.org>; Tue,  2 Feb 2010 20:21:47 -0800 (PST)
Received: by pxi16 with SMTP id 16so901081pxi.29 for <tls@ietf.org>; Tue, 02 Feb 2010 20:22:26 -0800 (PST)
MIME-Version: 1.0
Received: by 10.115.132.6 with SMTP id j6mr3889602wan.180.1265170945547; Tue,  02 Feb 2010 20:22:25 -0800 (PST)
Date: Tue, 2 Feb 2010 20:22:25 -0800
Message-ID: <3561bdcc1002022022l1734b663wd8cfdb29d9be899@mail.gmail.com>
From: Ravi Ganesan <ravi@findravi.com>
To: tls@ietf.org
Content-Type: text/plain; charset=UTF-8
Subject: [TLS] Also, on client-random and server-random
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Feb 2010 04:21:48 -0000

FWIW, in my deconstruction of why these values exist, it seemed to me
that if you ran the full handshake with only the server-random, and
the abbreviated handshake with only the client-random, you were ok
against the attacks known. (not suggesting one run it without both;
just making an observation as it helps us analyze the importance of
the server-random in abbreviated hanshake).

From paul.hoffman@vpnc.org  Tue Feb  2 20:47:16 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 C55F53A67FA for <tls@core3.amsl.com>; Tue,  2 Feb 2010 20:47:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.05
X-Spam-Level: 
X-Spam-Status: No, score=-6.05 tagged_above=-999 required=5 tests=[AWL=-0.004,  BAYES_00=-2.599, HELO_MISMATCH_COM=0.553, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e1t44WSCxvCp for <tls@core3.amsl.com>; Tue,  2 Feb 2010 20:47:15 -0800 (PST)
Received: from balder-227.proper.com (Balder-227.Proper.COM [192.245.12.227]) by core3.amsl.com (Postfix) with ESMTP id D278C3A67A8 for <tls@ietf.org>; Tue,  2 Feb 2010 20:47:15 -0800 (PST)
Received: from [75.101.18.87] (75-101-30-90.dsl.dynamic.sonic.net [75.101.30.90]) (authenticated bits=0) by balder-227.proper.com (8.14.2/8.14.2) with ESMTP id o134lrfA099866 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Feb 2010 21:47:54 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
Mime-Version: 1.0
Message-Id: <p0624083ec78eaacd96fa@[75.101.18.87]>
In-Reply-To: <4B68ECF3.5030707@extendedsubset.com>
References: <p0624089bc78922bdaddd@[10.20.30.158]> <87fx5jk8vp.fsf@mocca.josefsson.org> <p06240813c78e116da3f6@[75.101.18.87]> <001001caa442$beefbde0$3ccf39a0$@org> <p06240829c78e37e5a850@[75.101.18.87]> <001101caa44b$35f6f540$a1e4dfc0$@org> <p06240831c78e4f0e15ee@[75.101.18.87]> <4B68D672.2060609@extendedsubset.com> <p0624083bc78e8c1563cc@[75.101.18.87]> <4B68ECF3.5030707@extendedsubset.com>
Date: Tue, 2 Feb 2010 20:47:51 -0800
To: Marsh Ray <marsh@extendedsubset.com>, "tls@ietf.org" <tls@ietf.org>
From: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: text/plain; charset="us-ascii"
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Feb 2010 04:47:16 -0000

At 9:26 PM -0600 2/2/10, Marsh Ray wrote:
>Let's say the server has a perfect RNG and the client is broken Debian Etch.
>
>The client provides 15 bits of usable entropy in the Client Hello, the
>server provides 224.
>
>RSA key exchange is negotiated.
>
>The client generates the 48-byte premaster secret with an effective
>entropy of less than 15 bits (his first handshake since power on).
>
>Game over, right?

Wrong. The master secret (the only one that matters for channel security) gets the advantage of all the randomness added by the client *and* the server. Without this extension, that is still probably acceptable for some uses; with the extension (if the server contributes more randomness), for all uses. Look again at section 8.1 in RFC 5246.

>I think similar effects apply with DHE key exchange.

Indeed. You will get half the expected randomness in the master secret.

> >> How big were you planning to make those symmetric keys anyway?
>>
>> 48 bytes, as shown in the document.
>
>So at best there are 384 bits of entropy in play?

Yes.

>Assuming the server supplies his expected 224, our Debian Etch client
>only has to pull together 160 usable BoE for them to hit that limit.

Or the server can contribute all that is needed, if you are using the proposed extension.

>I do appreciate a healthy safety margin, but there is some complexity
>overhead and potential security risk.

The complexity overhead is only paid for in systems that want to use these kinds of extensions. (Did I already say that?)

>Your point about "potentially would allow an attacker who had partially
>compromised the inputs to the master secret calculation greater scope
>for influencing the output" is significant.

So does the sentence that follows it: "Hash-based PRFs like the one used in TLS master secret calculations are designed to be fairly indifferent to the input size."

>Some kinds of hash attacks
>let the attacker mess with the bytes earlier in the handshake by placing
>colliding blocks in the Hello Extensions.

Are you saying that that affects the HMAC-based PRF calculation in TLS 1.2? If so, this is a pretty significant flaw in TLS that no one else has noticed. Note that there have been papers by well-known cryptographers saying that the HMAC construction does not have the weakness you ascribe to it here.

>It also requires clients and servers to buffer the stuff and later
>implement a sorting algorithm based on type order.

By "later" you mean "still within the same handshake sequence" and by "sorting algorithm" you mean "ascending order of two-byte numbers", yes?

>Lots could go wrong
>with that. Pathological sort order DoS attacks, etc.

Please explain further. The TLS spec says that you can only have one instance of an extension in a handshake. Thus, all TLS implementations today already should be looking for multiple instances of the same extension. What is left is a relatively small number of extension values, each of which has a unique two-byte number associated with it. Where does "pathological sort order DoS attacks" or "etc" come in?

--Paul Hoffman, Director
--VPN Consortium

From stefan@aaa-sec.com  Wed Feb  3 02:08: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 922CC3A6BFD for <tls@core3.amsl.com>; Wed,  3 Feb 2010 02:08:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.249
X-Spam-Level: 
X-Spam-Status: No, score=-2.249 tagged_above=-999 required=5 tests=[AWL=0.000,  BAYES_00=-2.599, HELO_EQ_SE=0.35]
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 l+FwuiMR2hp6 for <tls@core3.amsl.com>; Wed,  3 Feb 2010 02:08:01 -0800 (PST)
Received: from s87.loopia.se (s87.loopia.se [194.9.95.114]) by core3.amsl.com (Postfix) with ESMTP id CB0673A6BF9 for <tls@ietf.org>; Wed,  3 Feb 2010 02:07:59 -0800 (PST)
Received: from s42.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 8B24F365534 for <tls@ietf.org>; Wed,  3 Feb 2010 11:06:21 +0100 (CET)
Received: (qmail 34331 invoked from network); 3 Feb 2010 10:06:18 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.15]) (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 <agl@google.com>; 3 Feb 2010 10:06:18 -0000
User-Agent: Microsoft-Entourage/12.23.0.091001
Date: Wed, 03 Feb 2010 11:06:10 +0100
From: Stefan Santesson <stefan@aaa-sec.com>
To: Adam Langley <agl@google.com>, Brian Smith <brian@briansmith.org>
Message-ID: <C78F0922.80F9%stefan@aaa-sec.com>
Thread-Topic: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
Thread-Index: AcqkuIJFyzL9MhuFe0acTuGWrzttlw==
In-Reply-To: <a84d7bc61002020545n4a29f141na182b463d1de7ece@mail.gmail.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Feb 2010 10:08:01 -0000

Adam,

On 10-02-02 2:45 PM, "Adam Langley" <agl@google.com> wrote:

> Indeed. I've been bugging the author of this draft to update it
> somewhat(*) and repost here. I've also written implementations for
> OpenSSL and NSS. Hopefully life can be injected into this draft.

I asked the WG chairs to proceed and WG last call this document around last
IETF in Hiroshima, to find out if its done or whether it needs more WG
processing.

The reason this has not happened is because Joe wanted to give the
renegotiation issue all the focus of the WG.

I'm happy to bring this draft into completion and publication.

I will comment on the technical issues separately.

/Stefan



From agl@google.com  Wed Feb  3 02:16:10 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 334C73A6C02 for <tls@core3.amsl.com>; Wed,  3 Feb 2010 02:16:10 -0800 (PST)
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 Ih7+v5H92MFs for <tls@core3.amsl.com>; Wed,  3 Feb 2010 02:16:09 -0800 (PST)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id 38AA43A6C01 for <tls@ietf.org>; Wed,  3 Feb 2010 02:16:09 -0800 (PST)
Received: from kpbe14.cbf.corp.google.com (kpbe14.cbf.corp.google.com [172.25.105.78]) by smtp-out.google.com with ESMTP id o13AGngd016719 for <tls@ietf.org>; Wed, 3 Feb 2010 02:16:49 -0800
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1265192210; bh=0+HQO4DIS/OD6L0+/0b8PWMd2Zs=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=UCCYPtJvLak9v8wV3HelCPeVuX4rKyarUVaxOe0wIPdaJ3ARjmMLjqs8dCKZUjT4m AcJhIk10hgvh0XBdwbJjQ==
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=x3wQefL0X+t97n33IjTSMP/kskadmDW2OkskK9HB6m3hOx9mlBBeQFjC3MXIwoa13 aOvunz1BKJKK1uYW5vPQA==
Received: from pzk31 (pzk31.prod.google.com [10.243.19.159]) by kpbe14.cbf.corp.google.com with ESMTP id o13AGSKR000301 for <tls@ietf.org>; Wed, 3 Feb 2010 02:16:48 -0800
Received: by pzk31 with SMTP id 31so1311856pzk.1 for <tls@ietf.org>; Wed, 03 Feb 2010 02:16:48 -0800 (PST)
MIME-Version: 1.0
Received: by 10.142.202.14 with SMTP id z14mr1404068wff.248.1265192208606;  Wed, 03 Feb 2010 02:16:48 -0800 (PST)
In-Reply-To: <3561bdcc1002022022l1734b663wd8cfdb29d9be899@mail.gmail.com>
References: <3561bdcc1002022022l1734b663wd8cfdb29d9be899@mail.gmail.com>
Date: Wed, 3 Feb 2010 05:16:48 -0500
Message-ID: <a84d7bc61002030216p378256b1q308b6d7e8bc84b02@mail.gmail.com>
From: Adam Langley <agl@google.com>
To: Ravi Ganesan <ravi@findravi.com>
Content-Type: text/plain; charset=UTF-8
X-System-Of-Record: true
Cc: tls@ietf.org
Subject: Re: [TLS] Also, on client-random and server-random
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Feb 2010 10:16:10 -0000

On Tue, Feb 2, 2010 at 11:22 PM, Ravi Ganesan <ravi@findravi.com> wrote:
> FWIW, in my deconstruction of why these values exist, it seemed to me
> that if you ran the full handshake with only the server-random [...] you were ok

Consider a TLS connection using DH that I just sniffed from the network.

If there's no client random then what stops me from intercepting
future connections from the same client, to the same server and
replaying the server's side to the client? The server random would be
the same, as would the DH value and signature. I think, from a quick
thought experiment, that the master secret would end up the same and
the client would accept it. There's no reason that the client is
required to use a different DH public value.


AGL

From agl@google.com  Wed Feb  3 02:18:07 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 1C66128C155 for <tls@core3.amsl.com>; Wed,  3 Feb 2010 02:18:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.977
X-Spam-Level: 
X-Spam-Status: No, score=-103.977 tagged_above=-999 required=5 tests=[AWL=2.000, 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 NHtsRI2Vc8NF for <tls@core3.amsl.com>; Wed,  3 Feb 2010 02:18:06 -0800 (PST)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.33.17]) by core3.amsl.com (Postfix) with ESMTP id 8B4B528C14E for <tls@ietf.org>; Wed,  3 Feb 2010 02:18:05 -0800 (PST)
Received: from spaceape7.eur.corp.google.com (spaceape7.eur.corp.google.com [172.28.16.141]) by smtp-out.google.com with ESMTP id o13AIiUN004025 for <tls@ietf.org>; Wed, 3 Feb 2010 10:18:45 GMT
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1265192325; bh=+VUaEoAGlRsSGy76CXZ29EWd5rs=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=m5D6KGfigGsBEwNQRZ/3MR1/YxUdEZ5zvR5Yzms/X4xEEgJ2rzytcf6tdwFggjvi1 xrm1Fcr4Aao53ajnp8Y/g==
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=DyC1S516i3iT/09xaO7hrvOc0XqyexCfKuks24HCVIjliR5eDRJJyjlRvg+LJlCl2 1MVZ8AsDm80JcTxLJEFXQ==
Received: from pzk40 (pzk40.prod.google.com [10.243.19.168]) by spaceape7.eur.corp.google.com with ESMTP id o13AIhbG005208 for <tls@ietf.org>; Wed, 3 Feb 2010 02:18:43 -0800
Received: by pzk40 with SMTP id 40so1212887pzk.7 for <tls@ietf.org>; Wed, 03 Feb 2010 02:18:43 -0800 (PST)
MIME-Version: 1.0
Received: by 10.142.249.19 with SMTP id w19mr4901628wfh.194.1265192322943;  Wed, 03 Feb 2010 02:18:42 -0800 (PST)
In-Reply-To: <C78F0922.80F9%stefan@aaa-sec.com>
References: <a84d7bc61002020545n4a29f141na182b463d1de7ece@mail.gmail.com> <C78F0922.80F9%stefan@aaa-sec.com>
Date: Wed, 3 Feb 2010 05:18:41 -0500
Message-ID: <a84d7bc61002030218l6fb36c86q6f1064e35b5d1900@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
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Feb 2010 10:18:07 -0000

On Wed, Feb 3, 2010 at 5:06 AM, Stefan Santesson <stefan@aaa-sec.com> wrote:
> I'm happy to bring this draft into completion and publication.

I came off as a lot more grouchy than I had intended in the above,
sorry about that!


AGL

From agl@google.com  Wed Feb  3 03:40:02 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 A0C0E3A6C28 for <tls@core3.amsl.com>; Wed,  3 Feb 2010 03:40:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.477
X-Spam-Level: 
X-Spam-Status: No, score=-104.477 tagged_above=-999 required=5 tests=[AWL=1.500, 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 DV8gGavhOr8s for <tls@core3.amsl.com>; Wed,  3 Feb 2010 03:40:01 -0800 (PST)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.33.17]) by core3.amsl.com (Postfix) with ESMTP id B9C413A6C2B for <tls@ietf.org>; Wed,  3 Feb 2010 03:40:00 -0800 (PST)
Received: from wpaz13.hot.corp.google.com (wpaz13.hot.corp.google.com [172.24.198.77]) by smtp-out.google.com with ESMTP id o13Beewi007173 for <tls@ietf.org>; Wed, 3 Feb 2010 11:40:41 GMT
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1265197241; bh=tjCtNgrCrre5y5xuH/gVEDEfOh0=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=dln4dqjpZvSPVskXovuD4qMyCvaYldhSH0+wHQbW1B8GltaHAVMwFBvemCIpQ6ZZU zbLxoOVz3q+exa4pq0T9g==
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=qGihKrOe+q2vuWR1tjjKnMninFRj7l+BjZhV907ipLraVGehlq0chmnBE3FmxtiOT wursR0RT80cHJmX9drZqQ==
Received: from pxi8 (pxi8.prod.google.com [10.243.27.8]) by wpaz13.hot.corp.google.com with ESMTP id o13BeJTc031478 for <tls@ietf.org>; Wed, 3 Feb 2010 03:40:39 -0800
Received: by pxi8 with SMTP id 8so1175284pxi.19 for <tls@ietf.org>; Wed, 03 Feb 2010 03:40:39 -0800 (PST)
MIME-Version: 1.0
Received: by 10.142.119.9 with SMTP id r9mr1419492wfc.201.1265197238321; Wed,  03 Feb 2010 03:40:38 -0800 (PST)
In-Reply-To: <3561bdcc1002022012s2867aac2vaa154013b62e8489@mail.gmail.com>
References: <3561bdcc1002022012s2867aac2vaa154013b62e8489@mail.gmail.com>
Date: Wed, 3 Feb 2010 06:40:38 -0500
Message-ID: <a84d7bc61002030340l43de0f6cw2b92b5ab39d82b7f@mail.gmail.com>
From: Adam Langley <agl@google.com>
To: Ravi Ganesan <ravi@findravi.com>
Content-Type: text/plain; charset=UTF-8
X-System-Of-Record: true
Cc: tls@ietf.org
Subject: Re: [TLS] Single round trip abbreviated handshake
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Feb 2010 11:40:02 -0000

On Tue, Feb 2, 2010 at 11:12 PM, Ravi Ganesan <ravi@findravi.com> wrote:
> Adam/Google was going down this road independently. Adam has suggested
> server-random = function(client-random, unix-gmt, epoch) where last
> value is derived from Server cert.

At the moment, OCSP disk caches and OCSP stapling are the low hanging
latency fruit, but this idea has been knocked around at Google.

However, I didn't explain the 'epoch' bit very well in my emails to
Ravi so I'll try again.

The goal is to give the server an nonce. If the server chooses a long
random string then the job is obviously done. However, if the server
promises to only accept each nonce once, for all time, then we have an
nonce via another route. In order for the server to do this it needs
to bound its storage. Loose clock synchronisation gets us that. The
server can make a trade off between how loose and how much storage.

The epoch value was intended to be learnt by the client (since the
clients need to know the server's certificate before hand anyway) and
used to segment the nonce space. Consider two different clusters on
different sides of the world, both using the same certificate. Without
an epoch value (which would be specific to each cluster) they would
have to synchronise with each other for every new nonce.

Also, it's very expensive to provide durable transactions for
frequently changing data. If we kept the "used nonce" store in memory
then we would need a way to invalidate all previous nonces in the
event of a power failure or other data loss. Changing the epoch value
would suffice here.

However, having the server's nonce be non-fresh leads to this attack:

Client (A) performs a 0-RTT setup to a server (B). This means that it
sends (somehow) enough information for a valid server to extract
application data with no additional round trips. An attacker (M)
intercepts A's traffic and stops it. A sees a timeout as B never
replies. However, the nonce was never used, so M can replay A's
message at a later time.

This suggests that 0-RTT techniques could only be used when the
request is side-effect free (as GETs are supposed to be in HTTP).

That rather scary and we shant be rushing into anything here.


AGL

From ravi@findravi.com  Wed Feb  3 04:15:23 2010
Return-Path: <ravi@findravi.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 ADFE728C163 for <tls@core3.amsl.com>; Wed,  3 Feb 2010 04:15:23 -0800 (PST)
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=[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 ze3PWzFn9Vij for <tls@core3.amsl.com>; Wed,  3 Feb 2010 04:15:22 -0800 (PST)
Received: from mail-pz0-f179.google.com (mail-pz0-f179.google.com [209.85.222.179]) by core3.amsl.com (Postfix) with ESMTP id B364828C15E for <tls@ietf.org>; Wed,  3 Feb 2010 04:15:22 -0800 (PST)
Received: by pzk9 with SMTP id 9so1440927pzk.31 for <tls@ietf.org>; Wed, 03 Feb 2010 04:16:02 -0800 (PST)
MIME-Version: 1.0
Received: by 10.114.248.14 with SMTP id v14mr4938673wah.194.1265199360168;  Wed, 03 Feb 2010 04:16:00 -0800 (PST)
In-Reply-To: <a84d7bc61002030216p378256b1q308b6d7e8bc84b02@mail.gmail.com>
References: <3561bdcc1002022022l1734b663wd8cfdb29d9be899@mail.gmail.com> <a84d7bc61002030216p378256b1q308b6d7e8bc84b02@mail.gmail.com>
Date: Wed, 3 Feb 2010 04:16:00 -0800
Message-ID: <3561bdcc1002030416w2e329529kb0b1b4f097f35ba4@mail.gmail.com>
From: Ravi Ganesan <ravi@findravi.com>
To: Adam Langley <agl@google.com>
Content-Type: text/plain; charset=UTF-8
Cc: tls@ietf.org
Subject: Re: [TLS] Also, on client-random and server-random
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Feb 2010 12:15:23 -0000

Sorry my comments were
i) only meant to apply to RSA based ciphersuites (all we support as
yet in MashSSL).
ii) And, I said it exactly backwards.

In the abbreviated handshake as S does not know who C is upon getting
a client-hello, if you did not have the server-random, then a
malicious client could (if there were no other checks), get the server
to provide a large number of server-finisheds to carefully chosen
client-randoms, w/o completing the protocol.

Conversely, in the full handshake as C does not know who S is when
computing certificate-verify (assuming it is requested), a malicious
server could (if there were no other checks), get the client to
provide a large number of certificate-verifies on carefully chosen
server-randoms w/o completing the protocol.

Again, there was a time in SSL when these two random numbers were NOT
in protocol, (see this description of SSL 2.0
http://www.mozilla.org/projects/security/pki/nss/ssl/draft02.html for
instance) and then they appear. I was trying to understand the
motivation for why they were added in, and the above two reasons were
all I could find.


On Wed, Feb 3, 2010 at 2:16 AM, Adam Langley <agl@google.com> wrote:
> On Tue, Feb 2, 2010 at 11:22 PM, Ravi Ganesan <ravi@findravi.com> wrote:
>> FWIW, in my deconstruction of why these values exist, it seemed to me
>> that if you ran the full handshake with only the server-random [...] you were ok
>
> Consider a TLS connection using DH that I just sniffed from the network.
>
> If there's no client random then what stops me from intercepting
> future connections from the same client, to the same server and
> replaying the server's side to the client? The server random would be
> the same, as would the DH value and signature. I think, from a quick
> thought experiment, that the master secret would end up the same and
> the client would accept it. There's no reason that the client is
> required to use a different DH public value.
>
>
> AGL
>

From ravi@findravi.com  Wed Feb  3 04:23:34 2010
Return-Path: <ravi@findravi.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 4CD7B3A6893 for <tls@core3.amsl.com>; Wed,  3 Feb 2010 04:23:34 -0800 (PST)
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=[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 vPtG1-aGugEb for <tls@core3.amsl.com>; Wed,  3 Feb 2010 04:23:33 -0800 (PST)
Received: from mail-pz0-f179.google.com (mail-pz0-f179.google.com [209.85.222.179]) by core3.amsl.com (Postfix) with ESMTP id A5B583A6808 for <tls@ietf.org>; Wed,  3 Feb 2010 04:23:33 -0800 (PST)
Received: by pzk9 with SMTP id 9so1449669pzk.31 for <tls@ietf.org>; Wed, 03 Feb 2010 04:24:13 -0800 (PST)
MIME-Version: 1.0
Received: by 10.115.5.18 with SMTP id h18mr5069850wai.177.1265199853382; Wed,  03 Feb 2010 04:24:13 -0800 (PST)
In-Reply-To: <a84d7bc61002030340l43de0f6cw2b92b5ab39d82b7f@mail.gmail.com>
References: <3561bdcc1002022012s2867aac2vaa154013b62e8489@mail.gmail.com> <a84d7bc61002030340l43de0f6cw2b92b5ab39d82b7f@mail.gmail.com>
Date: Wed, 3 Feb 2010 04:24:13 -0800
Message-ID: <3561bdcc1002030424xfe799c5he2b146a8347d688b@mail.gmail.com>
From: Ravi Ganesan <ravi@findravi.com>
To: Adam Langley <agl@google.com>
Content-Type: text/plain; charset=UTF-8
Cc: tls@ietf.org
Subject: Re: [TLS] Single round trip abbreviated handshake
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Feb 2010 12:23:34 -0000

> both using the same certificate

Thx, I missed this before. Assume there is some economic/engineering
reason you do not use unique keys/certs.

Question: Restricting analysis to abbreviated handshake, would it not
be the case that the session_ids and corresponding master secrets for
exisiting session would be separate in the two clusters? i.e. unless
you allow me to do full handshake in cluster 1 and resume it in
cluster 2. If you do not then does this not prevent replay from one
cluster to the other?

From agl@google.com  Wed Feb  3 04:39:25 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 4BAC03A6915 for <tls@core3.amsl.com>; Wed,  3 Feb 2010 04:39:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.777
X-Spam-Level: 
X-Spam-Status: No, score=-102.777 tagged_above=-999 required=5 tests=[AWL=-0.800, 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 I+V7RXkgpMl2 for <tls@core3.amsl.com>; Wed,  3 Feb 2010 04:39:24 -0800 (PST)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id 7C5F33A680C for <tls@ietf.org>; Wed,  3 Feb 2010 04:39:24 -0800 (PST)
Received: from spaceape23.eur.corp.google.com (spaceape23.eur.corp.google.com [172.28.16.75]) by smtp-out.google.com with ESMTP id o13Ce5YI013172 for <tls@ietf.org>; Wed, 3 Feb 2010 04:40:05 -0800
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1265200806; bh=SDJH5qNBAJa38A5C/gvgHhGN+58=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=p3DDjm+p+c2IdN23Sit5T7u5PvVF2PQWL/HJRL8Vtw8ftQ9czhYgeh0bkbHlA7XM/ GEruO6KB3vNUnhjYvcgRg==
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=kRt6E8EzLdL48GD5GVaKw943YM85IzlQCnNbNYdPfFDQ72ov0ZK0cF8RdEaryTtsn MxgTFMpe9OstUbL+2NjxA==
Received: from pxi37 (pxi37.prod.google.com [10.243.27.37]) by spaceape23.eur.corp.google.com with ESMTP id o13CdfxZ009637 for <tls@ietf.org>; Wed, 3 Feb 2010 04:40:04 -0800
Received: by pxi37 with SMTP id 37so1371565pxi.9 for <tls@ietf.org>; Wed, 03 Feb 2010 04:40:03 -0800 (PST)
MIME-Version: 1.0
Received: by 10.142.56.1 with SMTP id e1mr4958641wfa.283.1265200803621; Wed,  03 Feb 2010 04:40:03 -0800 (PST)
In-Reply-To: <3561bdcc1002030424xfe799c5he2b146a8347d688b@mail.gmail.com>
References: <3561bdcc1002022012s2867aac2vaa154013b62e8489@mail.gmail.com> <a84d7bc61002030340l43de0f6cw2b92b5ab39d82b7f@mail.gmail.com> <3561bdcc1002030424xfe799c5he2b146a8347d688b@mail.gmail.com>
Date: Wed, 3 Feb 2010 07:40:03 -0500
Message-ID: <a84d7bc61002030440t39d4c9c6r891bac70fe5fd568@mail.gmail.com>
From: Adam Langley <agl@google.com>
To: Ravi Ganesan <ravi@findravi.com>
Content-Type: text/plain; charset=UTF-8
X-System-Of-Record: true
Cc: tls@ietf.org
Subject: Re: [TLS] Single round trip abbreviated handshake
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Feb 2010 12:39:25 -0000

On Wed, Feb 3, 2010 at 7:24 AM, Ravi Ganesan <ravi@findravi.com> wrote:
> Question: Restricting analysis to abbreviated handshake, would it not
> be the case that the session_ids and corresponding master secrets for
> exisiting session would be separate in the two clusters? i.e. unless
> you allow me to do full handshake in cluster 1 and resume it in
> cluster 2. If you do not then does this not prevent replay from one
> cluster to the other?

Although you can probably probe different Google frontend clusters to
find this stuff out, I'm going to shy away from talking about the
specifics of Google's serving infrastructure.

Keeping things general:

Session IDs need some kind of server-side storage and SessionTickets
contain arbitary server controlled data, so both could contain an
epoch number that the server uses internally when validating an nonce
for uniqueness.

So, if these schemes were to be coupled (resumption and client
supplied nonces), then the need for the client to handle the epoch
could be removed.


AGL

From marsh@extendedsubset.com  Wed Feb  3 07:18:34 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 690243A6C51 for <tls@core3.amsl.com>; Wed,  3 Feb 2010 07:18:34 -0800 (PST)
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 VALIvmFVUdiH for <tls@core3.amsl.com>; Wed,  3 Feb 2010 07:18:33 -0800 (PST)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id 2DFFF3A685A for <tls@ietf.org>; Wed,  3 Feb 2010 07:18:33 -0800 (PST)
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 1Nch0d-000KTh-5F; Wed, 03 Feb 2010 15:19:15 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 5565964F2; Wed,  3 Feb 2010 15:19:13 +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: U2FsdGVkX180/Rn7EmJY97o9Ewb9pzSQGDZM7+NyNL8=
Message-ID: <4B6993F1.9000503@extendedsubset.com>
Date: Wed, 03 Feb 2010 10:19:13 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: Paul Hoffman <paul.hoffman@vpnc.org>
References: <p0624089bc78922bdaddd@[10.20.30.158]> <87fx5jk8vp.fsf@mocca.josefsson.org> <p06240813c78e116da3f6@[75.101.18.87]> <001001caa442$beefbde0$3ccf39a0$@org> <p06240829c78e37e5a850@[75.101.18.87]> <001101caa44b$35f6f540$a1e4dfc0$@org> <p06240831c78e4f0e15ee@[75.101.18.87]> <4B68D672.2060609@extendedsubset.com> <p0624083bc78e8c1563cc@[75.101.18.87]> <4B68ECF3.5030707@extendedsubset.com> <p0624083ec78eaacd96fa@[75.101.18.87]>
In-Reply-To: <p0624083ec78eaacd96fa@[75.101.18.87]>
X-Enigmail-Version: 0.96.0
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] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Feb 2010 15:18:34 -0000

Paul Hoffman wrote:
> At 9:26 PM -0600 2/2/10, Marsh Ray wrote:
>> Let's say the server has a perfect RNG and the client is broken
>> Debian Etch.
>> 
>> The client provides 15 bits of usable entropy in the Client Hello,
>> the server provides 224.
>> 
>> RSA key exchange is negotiated.
>> 
>> The client generates the 48-byte premaster secret with an effective
>>  entropy of less than 15 bits (his first handshake since power on).
>> 
>> Game over, right?
> 
> Wrong. The master secret (the only one that matters for channel
> security) gets the advantage of all the randomness added by the
> client *and* the server.

Sure but MitM knows all that because it's sent in the clear. The only
thing MitM doesn't know in this scenario is the private key to the
server's cert. So if the premaster secret is predictable (only 32k
possibilities or so), it doesn't matter if it's well encrypted to the
server's cert. A passive attacker can work out the master secret.

> Without this extension, that is still
> probably acceptable for some uses; with the extension (if the server
> contributes more randomness), for all uses. Look again at section 8.1
> in RFC 5246.

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

It doesn't matter in this case how much randomness there is in the
hellos, what matters is the unpredicatbility and secrecy of the
pre_master_secret (which is generated by the client).

>>>> How big were you planning to make those symmetric keys anyway?
>>> 48 bytes, as shown in the document.
>> So at best there are 384 bits of entropy in play?
> 
> Yes.

Perhaps there could be more than that:

>      key_block = PRF(SecurityParameters.master_secret,
>                       "key expansion",
>                       SecurityParameters.server_random +
>                       SecurityParameters.client_random);

The master_secret could contain 384 BoE from the premaster secret
in addition to 448 from server and client random (832 BoE).

But last night (need to look at it again in the morning :-) I got the
impression that the internal structure of the PRF limited it to 672 BoE.

So, at least for plain RSA key exchange, perhaps one could get 672 BoE
going into the key block.

> Or the server can contribute all that is needed, if you are using the
> proposed extension.

It seems like that cross-checking is important. I try to think of a MitM
replacing either the client or server in the handshake.

>> I do appreciate a healthy safety margin, but there is some
>> complexity overhead and potential security risk.
> 
> The complexity overhead is only paid for in systems that want to use
> these kinds of extensions. (Did I already say that?)

OK.

>> Your point about "potentially would allow an attacker who had
>> partially compromised the inputs to the master secret calculation
>> greater scope for influencing the output" is significant.
> 
> So does the sentence that follows it: "Hash-based PRFs like the one
> used in TLS master secret calculations are designed to be fairly
> indifferent to the input size."

The hash attacks I'm familiar with don't work if the input is
constrained to be under a block or two. Allowing arbitrary length
attacker-supplied inputs makes more manipulations possible.

>> Some kinds of hash attacks let the attacker mess with the bytes
>> earlier in the handshake by placing colliding blocks in the Hello
>> Extensions.
> 
> Are you saying that that affects the HMAC-based PRF calculation in
> TLS 1.2? If so, this is a pretty significant flaw in TLS that no one
> else has noticed. Note that there have been papers by well-known
> cryptographers saying that the HMAC construction does not have the
> weakness you ascribe to it here.

I was thinking of TLS 1.0, since that's what seems to be mostly used.

This is where my authority to speak goes off a cliff. But that never
stopped me before. Anyway, it looks to me like HMAC PRF in TLS 1.0
amounts to little more than the better of the two hash functions, which
in this case is SHA-1.

>> It also requires clients and servers to buffer the stuff and later 
>> implement a sorting algorithm based on type order.
> 
> By "later" you mean "still within the same handshake sequence" and by
> "sorting algorithm" you mean "ascending order of two-byte numbers",
> yes?

Yes.

>> Lots could go wrong with that. Pathological sort order DoS attacks,
>> etc.
> 
> Please explain further. The TLS spec says that you can only have one
> instance of an extension in a handshake. Thus, all TLS
> implementations today already should be looking for multiple
> instances of the same extension. What is left is a relatively small
> number of extension values, each of which has a unique two-byte
> number associated with it.

Well, you could check for duplicated extension IDs with a hash table
data structure that is O(1) in space and time.

Sorting is a little less predictable.

> Where does "pathological sort order DoS
> attacks" or "etc" come in?

For example, once upon a time Perl used classic quicksort. Quicksort has
this worst-case of O(n**2). Sending thousands of extensions ordered in
the worst way can consume a bunch of CPU (the kind which might not be
offloaded onto crypto accelerator hardware).

I'm not saying this is a significant argument against new features in
general, only that adding new complexity adds new attack possibilities.

So it needs a bit of justification.

I'm not sure where that justification lies among the differences between
224/384/448/672/832 bits of entropy for generating 128 or 256-bit
encryption setup.

- Marsh


From paul.hoffman@vpnc.org  Wed Feb  3 07:53:03 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 B2CB03A6C63 for <tls@core3.amsl.com>; Wed,  3 Feb 2010 07:53:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.05
X-Spam-Level: 
X-Spam-Status: No, score=-6.05 tagged_above=-999 required=5 tests=[AWL=-0.004,  BAYES_00=-2.599, HELO_MISMATCH_COM=0.553, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WfJ66h3XEZqz for <tls@core3.amsl.com>; Wed,  3 Feb 2010 07:53:02 -0800 (PST)
Received: from balder-227.proper.com (Balder-227.Proper.COM [192.245.12.227]) by core3.amsl.com (Postfix) with ESMTP id D58853A6C61 for <tls@ietf.org>; Wed,  3 Feb 2010 07:53:02 -0800 (PST)
Received: from [10.20.30.158] (75-101-30-90.dsl.dynamic.sonic.net [75.101.30.90]) (authenticated bits=0) by balder-227.proper.com (8.14.2/8.14.2) with ESMTP id o13Frg5b045994 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 3 Feb 2010 08:53:43 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
Mime-Version: 1.0
Message-Id: <p06240803c78f496c7732@[10.20.30.158]>
In-Reply-To: <4B6993F1.9000503@extendedsubset.com>
References: <p0624089bc78922bdaddd@[10.20.30.158]> <87fx5jk8vp.fsf@mocca.josefsson.org> <p06240813c78e116da3f6@[75.101.18.87]> <001001caa442$beefbde0$3ccf39a0$@org> <p06240829c78e37e5a850@[75.101.18.87]> <001101caa44b$35f6f540$a1e4dfc0$@org> <p06240831c78e4f0e15ee@[75.101.18.87]> <4B68D672.2060609@extendedsubset.com> <p0624083bc78e8c1563cc@[75.101.18.87]> <4B68ECF3.5030707@extendedsubset.com> <p0624083ec78eaacd96fa@[75.101.18.87]> <4B6993F1.9000503@extendedsubset.com>
Date: Wed, 3 Feb 2010 07:53:43 -0800
To: Marsh Ray <marsh@extendedsubset.com>
From: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: text/plain; charset="us-ascii"
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Feb 2010 15:53:03 -0000

At 10:19 AM -0500 2/3/10, Marsh Ray wrote:
>Paul Hoffman wrote:
>> At 9:26 PM -0600 2/2/10, Marsh Ray wrote:
>>> Let's say the server has a perfect RNG and the client is broken
>>> Debian Etch.
>>>
>>> The client provides 15 bits of usable entropy in the Client Hello,
>>> the server provides 224.
>>>
>>> RSA key exchange is negotiated.
>>>
>>> The client generates the 48-byte premaster secret with an effective
>>>  entropy of less than 15 bits (his first handshake since power on).
>>>
>>> Game over, right?
>>
>> Wrong. The master secret (the only one that matters for channel
>> security) gets the advantage of all the randomness added by the
>> client *and* the server.
>
>Sure but MitM knows all that because it's sent in the clear. The only
>thing MitM doesn't know in this scenario is the private key to the
>server's cert. So if the premaster secret is predictable (only 32k
>possibilities or so), it doesn't matter if it's well encrypted to the
>server's cert. A passive attacker can work out the master secret.

Boy, did I misinterpret your "Game over" question. I assumed you were talking about the amount of randomness in the master secret, not the amount of secrecy. OF COURSE adding public randomness to a value with low secrecy and low randomness only adds randomness, not secrecy. You can't magically generate cryptographic secrecy with public values.

If by "game over", you meant for secrecy, yes of course. The SSL world already discovered that with the Netscape SSLv2 debacle.

Let me try again: the proposal in draft-hoffman-tls-additional-random-ext is to add *randomness* to the master secret, not more secrecy. If I have said anything in the draft that makes that unclear, by all means let me know and I will fix it.


--Paul Hoffman, Director
--VPN Consortium

From paul.hoffman@vpnc.org  Wed Feb  3 08:06:20 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 18C8028C0D9 for <tls@core3.amsl.com>; Wed,  3 Feb 2010 08:06:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.05
X-Spam-Level: 
X-Spam-Status: No, score=-6.05 tagged_above=-999 required=5 tests=[AWL=-0.004,  BAYES_00=-2.599, HELO_MISMATCH_COM=0.553, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 35udMe+d1ui6 for <tls@core3.amsl.com>; Wed,  3 Feb 2010 08:06:19 -0800 (PST)
Received: from balder-227.proper.com (Balder-227.Proper.COM [192.245.12.227]) by core3.amsl.com (Postfix) with ESMTP id 1A2F628C123 for <tls@ietf.org>; Wed,  3 Feb 2010 08:06:18 -0800 (PST)
Received: from [10.20.30.158] (75-101-30-90.dsl.dynamic.sonic.net [75.101.30.90]) (authenticated bits=0) by balder-227.proper.com (8.14.2/8.14.2) with ESMTP id o13G6xAQ046736 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 3 Feb 2010 09:07:00 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
Mime-Version: 1.0
Message-Id: <p06240804c78f4cfc4ce4@[10.20.30.158]>
In-Reply-To: <4B6993F1.9000503@extendedsubset.com>
References: <p0624089bc78922bdaddd@[10.20.30.158]> <87fx5jk8vp.fsf@mocca.josefsson.org> <p06240813c78e116da3f6@[75.101.18.87]> <001001caa442$beefbde0$3ccf39a0$@org> <p06240829c78e37e5a850@[75.101.18.87]> <001101caa44b$35f6f540$a1e4dfc0$@org> <p06240831c78e4f0e15ee@[75.101.18.87]> <4B68D672.2060609@extendedsubset.com> <p0624083bc78e8c1563cc@[75.101.18.87]> <4B68ECF3.5030707@extendedsubset.com> <p0624083ec78eaacd96fa@[75.101.18.87]> <4B6993F1.9000503@extendedsubset.com>
Date: Wed, 3 Feb 2010 08:06:59 -0800
To: Marsh Ray <marsh@extendedsubset.com>
From: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: text/plain; charset="us-ascii"
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Feb 2010 16:06:20 -0000

At 10:19 AM -0500 2/3/10, Marsh Ray wrote:
>I was thinking of TLS 1.0, since that's what seems to be mostly used.

draft-hoffman-tls-master-secret-input explicitly says it is modifies TLS 1.2.

>This is where my authority to speak goes off a cliff. But that never
>stopped me before. Anyway, it looks to me like HMAC PRF in TLS 1.0
>amounts to little more than the better of the two hash functions, which
>in this case is SHA-1.

Mixing cryptographic apples and oranges may not be helpful for this discussion. Please say whether or not you think that there is a cryptographic flaw in draft-hoffman-tls-master-secret-input that applies to TLS 1.2. If there is, then there is probably an underlying flaw in TLS 1.2 by itself, and that should be discussed seriously. I suspect that there is not.

> >> It also requires clients and servers to buffer the stuff and later
>>> implement a sorting algorithm based on type order.
>>
>> By "later" you mean "still within the same handshake sequence" and by
>> "sorting algorithm" you mean "ascending order of two-byte numbers",
>> yes?
>
>Yes.
>
>>> Lots could go wrong with that. Pathological sort order DoS attacks,
>>> etc.
>>
>> Please explain further. The TLS spec says that you can only have one
>> instance of an extension in a handshake. Thus, all TLS
>> implementations today already should be looking for multiple
>> instances of the same extension. What is left is a relatively small
>> number of extension values, each of which has a unique two-byte
>> number associated with it.
>
>Well, you could check for duplicated extension IDs with a hash table
>data structure that is O(1) in space and time.

The proposal in draft-hoffman-tls-master-secret-input does not change this; the one-use-of-each-extension rule comes from the TLS 1.2 spec, not from the draft.

>Sorting is a little less predictable.
>
>> Where does "pathological sort order DoS
>> attacks" or "etc" come in?
>
>For example, once upon a time Perl used classic quicksort. Quicksort has
>this worst-case of O(n**2). Sending thousands of extensions ordered in
>the worst way can consume a bunch of CPU (the kind which might not be
>offloaded onto crypto accelerator hardware).

If there are thousands of extensions that do master secret input, and you have an implementation that is able to do all those thousands, then I would agree with you. However, I believe that the complexity of adding the code for those thousands of extensions is probably higher than the complexity of your algorithm that sorts two-byte numbers

>I'm not saying this is a significant argument against new features in
>general, only that adding new complexity adds new attack possibilities.

Ah.

>So it needs a bit of justification.

It is justified because the two sides need to know what order to add in the values to the master secret PRF calculation. If the spec had said "in the order that the extensions came in", then you would be complaining that you need to add a new data structure to remember the order that they came in. Sorting on a value that is already in the extension data seemed like a better choice, yes?

--Paul Hoffman, Director
--VPN Consortium

From marsh@extendedsubset.com  Wed Feb  3 08:22:37 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 C302628C119 for <tls@core3.amsl.com>; Wed,  3 Feb 2010 08:22:37 -0800 (PST)
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=[AWL=0.000,  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 XkCxtFlIUcmM for <tls@core3.amsl.com>; Wed,  3 Feb 2010 08:22:37 -0800 (PST)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id 02DD53A6B30 for <tls@ietf.org>; Wed,  3 Feb 2010 08:22:37 -0800 (PST)
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 1Nci0d-000PY6-6K; Wed, 03 Feb 2010 16:23:19 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 0AA2064F2; Wed,  3 Feb 2010 16:23: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: U2FsdGVkX18nwlbxkxzzm0/G+zySlX+BSAIHsz1eJ8c=
Message-ID: <4B69A2F5.3020202@extendedsubset.com>
Date: Wed, 03 Feb 2010 11:23:17 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: Paul Hoffman <paul.hoffman@vpnc.org>
References: <p0624089bc78922bdaddd@[10.20.30.158]> <87fx5jk8vp.fsf@mocca.josefsson.org> <p06240813c78e116da3f6@[75.101.18.87]> <001001caa442$beefbde0$3ccf39a0$@org> <p06240829c78e37e5a850@[75.101.18.87]> <001101caa44b$35f6f540$a1e4dfc0$@org> <p06240831c78e4f0e15ee@[75.101.18.87]> <4B68D672.2060609@extendedsubset.com> <p0624083bc78e8c1563cc@[75.101.18.87]> <4B68ECF3.5030707@extendedsubset.com> <p0624083ec78eaacd96fa@[75.101.18.87]> <4B6993F1.9000503@extendedsubset.com> <p06240804c78f4cfc4ce4@[10.20.30.158]>
In-Reply-To: <p06240804c78f4cfc4ce4@[10.20.30.158]>
X-Enigmail-Version: 0.96.0
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] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Feb 2010 16:22:37 -0000

Paul Hoffman wrote:
> At 10:19 AM -0500 2/3/10, Marsh Ray wrote:
>> I was thinking of TLS 1.0, since that's what seems to be mostly
>> used.
> 
> draft-hoffman-tls-master-secret-input explicitly says it is modifies
> TLS 1.2.

Oh, sorry I didn't see that wording.
I guess it's the "Updates: 4347, 5246" part.

> Please say whether or not you think that there is a
> cryptographic flaw in draft-hoffman-tls-master-secret-input that
> applies to TLS 1.2. If there is, then there is probably an underlying
> flaw in TLS 1.2 by itself, and that should be discussed seriously. I
> suspect that there is not.

I know of no flaw in TLS 1.2.

>> Well, you could check for duplicated extension IDs with a hash
>> table data structure that is O(1) in space and time.
> 
> The proposal in draft-hoffman-tls-master-secret-input does not change
> this; the one-use-of-each-extension rule comes from the TLS 1.2 spec,
> not from the draft.

Hmm, I wonder how many implementations actually do it that way?

> If there are thousands of extensions that do master secret input, and
> you have an implementation that is able to do all those thousands,
> then I would agree with you. However, I believe that the complexity
> of adding the code for those thousands of extensions is probably
> higher than the complexity of your algorithm that sorts two-byte
> numbers

Good point, we only need to sort the extensions that we successfully
negotiate and that modify PRF.

> It is justified because the two sides need to know what order to add
> in the values to the master secret PRF calculation. If the spec had
> said "in the order that the extensions came in", then you would be
> complaining that you need to add a new data structure to remember the
> order that they came in. Sorting on a value that is already in the
> extension data seemed like a better choice, yes?

Oh yes, I see the need for the proposal to specify the order.

I'm just not sure I see how the proposal helps all that much if the real
bottleneck on entropy lies deeper in the protocol.

- Marsh

From paul.hoffman@vpnc.org  Wed Feb  3 08:38:45 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 A00483A6C71 for <tls@core3.amsl.com>; Wed,  3 Feb 2010 08:38:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.05
X-Spam-Level: 
X-Spam-Status: No, score=-6.05 tagged_above=-999 required=5 tests=[AWL=-0.004,  BAYES_00=-2.599, HELO_MISMATCH_COM=0.553, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RBtWgmgGVk0B for <tls@core3.amsl.com>; Wed,  3 Feb 2010 08:38:44 -0800 (PST)
Received: from balder-227.proper.com (Balder-227.Proper.COM [192.245.12.227]) by core3.amsl.com (Postfix) with ESMTP id C981D3A6C65 for <tls@ietf.org>; Wed,  3 Feb 2010 08:38:44 -0800 (PST)
Received: from [10.20.30.158] (75-101-30-90.dsl.dynamic.sonic.net [75.101.30.90]) (authenticated bits=0) by balder-227.proper.com (8.14.2/8.14.2) with ESMTP id o13GdM7j048721 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 3 Feb 2010 09:39:25 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
Mime-Version: 1.0
Message-Id: <p06240806c78f56d09a9c@[10.20.30.158]>
In-Reply-To: <4B69A2F5.3020202@extendedsubset.com>
References: <p0624089bc78922bdaddd@[10.20.30.158]> <87fx5jk8vp.fsf@mocca.josefsson.org> <p06240813c78e116da3f6@[75.101.18.87]> <001001caa442$beefbde0$3ccf39a0$@org> <p06240829c78e37e5a850@[75.101.18.87]> <001101caa44b$35f6f540$a1e4dfc0$@org> <p06240831c78e4f0e15ee@[75.101.18.87]> <4B68D672.2060609@extendedsubset.com> <p0624083bc78e8c1563cc@[75.101.18.87]> <4B68ECF3.5030707@extendedsubset.com> <p0624083ec78eaacd96fa@[75.101.18.87]> <4B6993F1.9000503@extendedsubset.com> <p06240804c78f4cfc4ce4@[10.20.30.158]> <4B69A2F5.3020202@extendedsubset.com>
Date: Wed, 3 Feb 2010 08:39:21 -0800
To: Marsh Ray <marsh@extendedsubset.com>
From: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: text/plain; charset="us-ascii"
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Feb 2010 16:38:45 -0000

At 11:23 AM -0500 2/3/10, Marsh Ray wrote:
>Paul Hoffman wrote:
>> At 10:19 AM -0500 2/3/10, Marsh Ray wrote:
>>> I was thinking of TLS 1.0, since that's what seems to be mostly
>>> used.
>>
>> draft-hoffman-tls-master-secret-input explicitly says it is modifies
>> TLS 1.2.
>
>Oh, sorry I didn't see that wording.
>I guess it's the "Updates: 4347, 5246" part.

Ah, good call. I agree that this should be updating whatever comes out of draft-ietf-tls-rfc4347-bis-03, not 4347. I'll fix that in the -01.

> > Please say whether or not you think that there is a
> > cryptographic flaw in draft-hoffman-tls-master-secret-input that
> > applies to TLS 1.2. If there is, then there is probably an underlying
> > flaw in TLS 1.2 by itself, and that should be discussed seriously. I
> > suspect that there is not.
>
>I know of no flaw in TLS 1.2.

Whew. Good.


--Paul Hoffman, Director
--VPN Consortium

From jsalowey@cisco.com  Wed Feb  3 10:59: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 69E1128C1DE; Wed,  3 Feb 2010 10:59:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.299
X-Spam-Level: 
X-Spam-Status: No, score=-10.299 tagged_above=-999 required=5 tests=[AWL=0.300, 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 I2FFUAwQy0CR; Wed,  3 Feb 2010 10:59:39 -0800 (PST)
Received: from sj-iport-5.cisco.com (sj-iport-5.cisco.com [171.68.10.87]) by core3.amsl.com (Postfix) with ESMTP id 0BB3628C1DD; Wed,  3 Feb 2010 10:36:59 -0800 (PST)
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: ApoEAM9RaUurRN+K/2dsb2JhbADBEpgSgkWCAAQ
X-IronPort-AV: E=Sophos;i="4.49,399,1262563200"; d="scan'208";a="145156033"
Received: from sj-core-4.cisco.com ([171.68.223.138]) by sj-iport-5.cisco.com with ESMTP; 03 Feb 2010 18:37:30 +0000
Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by sj-core-4.cisco.com (8.13.8/8.14.3) with ESMTP id o13IbUN9026752; Wed, 3 Feb 2010 18:37:30 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, 3 Feb 2010 10:37:30 -0800
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, 3 Feb 2010 10:37:28 -0800
Message-ID: <AC1CFD94F59A264488DC2BEC3E890DE50990EFB5@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <808FD6E27AD4884E94820BC333B2DB775841199A56@NOK-EUMSG-01.mgdnok.nokia.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] Confirming consensus about one draft-ietf-tls-renegotiation detail
Thread-Index: AcqeZGsopZGN9hXbTp+VH8GNHSiFbwGmh4Ig
References: <808FD6E27AD4884E94820BC333B2DB775841199A56@NOK-EUMSG-01.mgdnok.nokia.com>
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: <tls@ietf.org>, <ietf@ietf.org>
X-OriginalArrivalTime: 03 Feb 2010 18:37:30.0239 (UTC) FILETIME=[F11E48F0:01CAA4FF]
Subject: Re: [TLS] Confirming consensus about one draft-ietf-tls-renegotiation detail
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Feb 2010 18:59:40 -0000

The deadline for providing additional information was yesterday.

The results very clearly show that the course of action preferred by the
community is publishing the document without making further changes to
the details concerning the SCSV.

Cheers,
Joe
TLS Working group co-chair

According to our notes, at least the following individuals have
expressed support for publishing version 01/02/03 (without making
further changes to the details concerning the SCSV):

Adrian Farrel
Alexey Melnikov
Ben Laurie
Bill Frantz
Bodo Moeller
Chris Newman
Cullen Jennings
Dan Romascanu
David P. Kemp
Eric Rescorla
Geoffrey Keating
Glen Zorn
Hovav Shacham
Jari Arkko
Lars Eggert
Lisa Dusseault
Magnus Westerlund
Marsh Ray
Michael D'Errico
Nasko Oskov
Nicolas Williams
Nikos Mavrogiannopoulos
Pasi Eronen
Peter Robinson
Ralph Droms
Rob Dugal
Rob P. Williams
Robert Relya
Robert Sparks
Ron Bonica
Stephen Farrell
Stephen Henson
Steve Checkoaway
Steve Dispensa
Tim Polk
Uri Blumenthal
Yngve Nysaeter Pettersen

The following individuals seems to have expressed a preference for *not*
publishing this document until the details concerning the SCSV are
changed as described above:

Martin Rex
Tom Petch
Yoav Nir

> -----Original Message-----
> From: tls-bounces@ietf.org [mailto:tls-bounces@ietf.org] On Behalf Of
> Pasi.Eronen@nokia.com
> Sent: Tuesday, January 26, 2010 12:49 AM
> To: ietf@ietf.org; tls@ietf.org
> Subject: [TLS] Confirming consensus about one draft-ietf-tls-
> renegotiationdetail
>=20
> Concerns have been raised that the IESG may have judged community
> consensus about one specific detail of draft-ietf-tls-renegotiation
> prematurely. In particular, the discussion that happened just after
> the IETF Last Call ended might have caused some people to change their
> opinion, and also the holiday season may have delayed replies.  To
> eliminate doubt about the situation, and allow the RFC to come out as
> soon as possible, we have decided to confirm the community consensus
> about this detail.
>=20
> The detail in question is whether the "Signalling Cipher Suite Value"
> (SCSV) can be included when performing secure renegotiation (in
> addition to the renegotiation_info extension).
>=20
> Currently, the SCSV is not included. In the version that went to IETF
> Last Call (version -01), the relevant text was:
>=20
>    "This cipher suite has exactly the same semantics as an empty
>    "renegotiation_info" extension. [..]  Because this cipher suite is
>    equivalent to an empty "renegotiation_info" extension, only
>    "renegotiation_info" may be used rehandshakes." (in Section 4)
>=20
> Version -03 (the latest version) has rephrased the text as follows:
>=20
>    "The SCSV MUST NOT be included." (in Section 3.5, "Client Behavior:
>    Secure Renegotiation")
>=20
>    "When ClientHello is received, the server MUST verify that it does
>    not contain the TLS_RENEGO_PROTECTION_REQUEST SCSV.  If the SCSV is
>    present, the server MUST abort the handshake." (in Section 3.7,
>    "Server Behavior: Secure Renegotiation")
>=20
> It has been suggested that recent discussions may have changed the
> consensus, and some people have proposed changing this so that
> including the SCSV in secure renegotiation ClientHellos is allowed
> (but not required), and rephrasing the text that says SCSV, when
> received, is treated the same as an empty renegotiation_info extension
> (which means "not renegotiation").
>=20
> Note that this text applies to secure renegotiation ClientHellos.
> Other possible changes to the details concerning the SCSV (such as
> requiring it in all ClientHellos) were suggested during the IETF Last
> Call, but are explicitly outside the scope of this email.
>=20
> According to our notes, at least the following individuals seem to
> have expressed support for publishing version 01/02/03 (without making
> further changes to the details concerning the SCSV):
>=20
> Adrian Farrel
> Alexey Melnikov
> Ben Laurie
> Bodo Moeller
> Chris Newman
> Cullen Jennings
> Dan Romascanu
> David P. Kemp
> Eric Rescorla
> Geoffrey Keating
> Glen Zorn
> Jari Arkko
> Lars Eggert
> Lisa Dusseault
> Magnus Westerlund
> Nicolas Williams
> Pasi Eronen
> Peter Robinson
> Ralph Droms
> Rob P. Williams
> Robert Relya
> Robert Sparks
> Ron Bonica
> Stephen Farrell
> Steve Checkoaway
> Steve Dispensa
> Tim Polk
> Uri Blumenthal
>=20
> The following individuals seems to have expressed a preference for
> *not* publishing this document until the details concerning the SCSV
> are changed as described above:
>=20
> Marsh Ray
> Martin Rex
> Michael D'Errico
> Nasko Oskov
> Robert Dugal
> Stephen Henson
> Yoav Nir
>=20
> A number of other people also sent comments during the IETF Last Call
> (possibly proposing other changes to the details concerning the SCSV),
> but did not clearly fall into either list above.
>=20
> If the recent discussions have caused you to change your mind (or we
> have interpreted your preference incorrectly, or you were not on
> either list), please send an email to the TLS WG mailing list by
> Tuesday February 2nd. In your reply, please include one of the
> following:
>=20
>    (1) I prefer publishing the specification as-is.
>=20
>    (2) I prefer *NOT* publishing the specification as-is, and instead
>    prefer changing the text so that including the SCSV in secure
>    renegotiation ClientHellos is allowed (but not required).
>=20
> Unless a significant amount of additional people believe that making
> this change if preferable over publishing the spec now, the IESG
> expects to have the RFC out soon after February 2nd.  So we hope this
> consensus confirmation does not delay the RFC, or deployment of its
> implementations.
>=20
> Note that this is not a general call to revisit other details of
> draft-ietf-tls-renegotiation, or propose additional changes.  If you
> absolutely wish to have other discussions related to the draft, we
> respectfully ask you to change the subject line.
>=20
> Best regards,
> Pasi
> IETF Security Area Director
>=20
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls

From ekr@networkresonance.com  Wed Feb  3 21:03:48 2010
Return-Path: <ekr@networkresonance.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 E995728C101 for <tls@core3.amsl.com>; Wed,  3 Feb 2010 21:03:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.018
X-Spam-Level: 
X-Spam-Status: No, score=0.018 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_COM=0.553, HOST_MISMATCH_NET=0.311, RDNS_DYNAMIC=0.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 V4oxExSYvLd9 for <tls@core3.amsl.com>; Wed,  3 Feb 2010 21:03:47 -0800 (PST)
Received: from kilo.networkresonance.com (74-95-2-169-SFBA.hfc.comcastbusiness.net [74.95.2.169]) by core3.amsl.com (Postfix) with ESMTP id 16B283A6862 for <tls@ietf.org>; Wed,  3 Feb 2010 21:03:47 -0800 (PST)
Received: from kilo.local (localhost [127.0.0.1]) by kilo.networkresonance.com (Postfix) with ESMTP id 89EFF6E70AD; Wed,  3 Feb 2010 21:06:08 -0800 (PST)
Date: Wed, 03 Feb 2010 21:06:08 -0800
From: Eric Rescorla <ekr@networkresonance.com>
To: Marsh Ray <marsh@extendedsubset.com>
In-Reply-To: <4B68D672.2060609@extendedsubset.com>
References: <p0624089bc78922bdaddd@[10.20.30.158]> <87fx5jk8vp.fsf@mocca.josefsson.org> <p06240813c78e116da3f6@[75.101.18.87]> <001001caa442$beefbde0$3ccf39a0$@org> <p06240829c78e37e5a850@[75.101.18.87]> <001101caa44b$35f6f540$a1e4dfc0$@org> <p06240831c78e4f0e15ee@[75.101.18.87]> <4B68D672.2060609@extendedsubset.com>
User-Agent: Wanderlust/2.15.5 (Almost Unreal) Emacs/22.3 Mule/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka")
Content-Type: text/plain; charset=US-ASCII
Message-Id: <20100204050608.89EFF6E70AD@kilo.networkresonance.com>
Cc: Paul Hoffman <paul.hoffman@vpnc.org>, tls@ietf.org
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Feb 2010 05:03:48 -0000

At Tue, 02 Feb 2010 19:50:42 -0600,
Marsh Ray wrote:
> 
> Paul Hoffman wrote:
> > 
> > This proposed protocol change is only relevant to scenarios where
> > there is a cryptographic reason to mix inherently non-sensitive data
> > passed before the change_cipher_spec message into the master secret.
> 
> I don't get it. (Sorry I am a little dense sometimes)
> 
> You said the data is "not sensitive" and it is sent in plain text. So an
> attacker has it as soon as the endpoints do.
> 
> What does this accomplish over just hashing your extra data into the 28
> byte random field? (which would not require a new protocol structure)
> 
> 224 bits of from each endpoint ... is 448 bits really not enough entropy
> somehow? 448 bits ought to be enough for anybody :-)

Moreover, the the purpose of the random values is *not* to add extra
cryptographic strength, since they're not secret. Rather, it's to
ensure uniqueness of the handshake master secret even if the PMS is
repeated. However, the bound here is just the collision bound for the
random values, which doesn't require anything like 224 bits.

I'm not really against this extension, but I'm not aware of any
coherent security argument for it.

-Ekr

From brian@briansmith.org  Fri Feb  5 10:54:49 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 98D6F3A6882 for <tls@core3.amsl.com>; Fri,  5 Feb 2010 10:54:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.437
X-Spam-Level: 
X-Spam-Status: No, score=-2.437 tagged_above=-999 required=5 tests=[AWL=0.163,  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 9FzOBKKxfsrx for <tls@core3.amsl.com>; Fri,  5 Feb 2010 10:54:48 -0800 (PST)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 8C1513A6801 for <tls@ietf.org>; Fri,  5 Feb 2010 10:54:48 -0800 (PST)
Received: from T60 (unknown [70.245.64.181]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id E06A8509E1; Fri,  5 Feb 2010 13:55:32 -0500 (EST)
From: "Brian Smith" <brian@briansmith.org>
To: "'Ravi Ganesan'" <ravi@findravi.com>, <tls@ietf.org>
References: <3561bdcc1002022012s2867aac2vaa154013b62e8489@mail.gmail.com>
In-Reply-To: <3561bdcc1002022012s2867aac2vaa154013b62e8489@mail.gmail.com>
Date: Fri, 5 Feb 2010 12:55:31 -0600
Message-ID: <000601caa694$cf3e2ed0$6dba8c70$@org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 12.0
Content-Language: en-us
Thread-Index: AcqkhxX+ZQxrgGA9QheVG0J3G44obQCB7myw
Subject: Re: [TLS] Single round trip abbreviated handshake
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, 05 Feb 2010 18:54:49 -0000

Ravi Ganesan wrote:
 
> This is awkward for us not just from a latency perspective, but it
> would be very nice if the initial request came with all
> the information needed for the Server to figure out who is on the
> other end. (e.g. a cross domain XHR request).

The client finished message verifies that the client has the master secret
because the protocol requires the client to combine the master secret with
bits that the server just provided in this connection. If the server hasn't
provided any input to the client finished message, then it cannot use the
client finished message to verify that the client has the master secret. In
particular, it cannot verify that the client isn't replaying the client
finished message from another connection.

> So here is what we came up with. The abbreviated handshake is:
> 
> C   ->  Client Hello (including client-random and unix_gmt)  -> S
> (neither party know who is at other end at this point)
> 
> C   <-   Server Finished (including server-random and unix_gmt)  <- S
> (client has auth server at this point)
> 
> C   ->  Client Finished     -> S
> (only now does server authenticate client)
> 
> If we want to reduce this to a single round trip, then the C needs to
> send the Client Finished in first message.

How does it help to reduce this from three segments to two segments? The
third segment (C -> Client Finished -> S) will usually look like (C ->
Client Finished || Application Data -> S). Unless you include the
application data in the first segment too, you're not really reducing the
number of segments.


> BUT the Client Finished depends on the server-random and unix_gmt
> response from S which C does not know.
> 
> So the idea is for the C to SUGGEST a server-random, and if the S
> accepts the suggestion then for the S to use the suggested
> server_random and the same unix_gmt as sent by the C (after ensuring
> it is within some range; hence loose clock synchronization).

   key_block = PRF(SecurityParameters.master_secret,
                      "key expansion",
                      SecurityParameters.server_random +
                      SecurityParameters.client_random);

If you let the client choose both server_random and client_random, then
you're effectively letting the client choose the encryption keys and
initialization vectors. Common block cipher modes are very sensitive to
reusing initialization vectors. At a minimum, the server would have to keep
a cache to ensure that the "suggested" server random values are never
reused. And, that cache has to be *serialized* across all server threads and
all machines in the server cluster. That seems very unrealistic. 

Even then, the server can't verify that the suggested server_random is
actually random or random enough. That means that the server is relying
solely on the correctness of the client to ensure the randomness of the
resulting initialization vectors and keys. Previous experience has shown
that this isn't safe.

> If you truly hate this thinking I suspect you will say so; but then do
> also consider proposing an alternative. I think the world NEEDS a one
> round trip abbreviated handshake (and perhaps to Adam's point, a full
> handshake also).  We can either meet that need within the umbrella of
> the TLS we know and love, or else the world will eventually come up
> with a completely new alternative which will not take advantage of the
> 15 years of SSL analysis and the SSL trust infrastructure. I am not
> sure why latter is better alternative.

Like I said above, the TLS resumption handshake already adds only a single
round-trip, compared to a transaction that doesn't even use TLS at all.

Secondly, it seems like you are assuming that your shortcut is obviously
safe, and so would be able to reuse the security analysis of TLS that was
done without this shortcut in mind. AFAICT, that isn't true.

In fact, I don't see how this is safe at all. If I am overlooking something
then please let me know.

Regards,
Brian


From ravi@findravi.com  Fri Feb  5 19:04:54 2010
Return-Path: <ravi@findravi.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 8CAB23A687F for <tls@core3.amsl.com>; Fri,  5 Feb 2010 19:04:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.827
X-Spam-Level: 
X-Spam-Status: No, score=-0.827 tagged_above=-999 required=5 tests=[AWL=-1.150, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, MANGLED_DIET=2.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 Y8b+E6+oJOQe for <tls@core3.amsl.com>; Fri,  5 Feb 2010 19:04:53 -0800 (PST)
Received: from mail-pz0-f181.google.com (mail-pz0-f181.google.com [209.85.222.181]) by core3.amsl.com (Postfix) with ESMTP id CCFBA3A6831 for <tls@ietf.org>; Fri,  5 Feb 2010 19:04:53 -0800 (PST)
Received: by pzk11 with SMTP id 11so1298625pzk.32 for <tls@ietf.org>; Fri, 05 Feb 2010 19:05:43 -0800 (PST)
MIME-Version: 1.0
Received: by 10.114.237.32 with SMTP id k32mr2390351wah.55.1265425543613; Fri,  05 Feb 2010 19:05:43 -0800 (PST)
In-Reply-To: <000601caa694$cf3e2ed0$6dba8c70$@org>
References: <3561bdcc1002022012s2867aac2vaa154013b62e8489@mail.gmail.com> <000601caa694$cf3e2ed0$6dba8c70$@org>
Date: Fri, 5 Feb 2010 19:05:43 -0800
Message-ID: <3561bdcc1002051905r24d9dadbi7d815d0d1dc4a19c@mail.gmail.com>
From: Ravi Ganesan <ravi@findravi.com>
To: Brian Smith <brian@briansmith.org>
Content-Type: text/plain; charset=UTF-8
Cc: tls@ietf.org
Subject: Re: [TLS] Single round trip abbreviated handshake
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, 06 Feb 2010 03:04:54 -0000

i) I never said the shortcut is "obviously safe"!!! On the contrary I
went to great lengths to say that (a) on surface it if "preposterous",
(b) that I tried my best to dig up the historical reason those random
numbers were added when one moved from ssl 2.0 to ssl 3.0, (I
explained this in separate thread
http://www.ietf.org/mail-archive/web/tls/current/msg05735.html), (c)
then suggested that the client SUGGEST a server random which is
constrained to be a function of the client_random and the unix_gmt
(not let client pick arbitrary random). and (d) let the server decide
where it is in the risk/reward spectrum and decide whether to take the
additional risk or not.  I want to emphasize this, as this is not
something that one does lightly, and in the post, and in the paper
referenced I go to great lengths to point out the risks.

ii) Absolutely recognize replay issue, which requires caching within
clock slew you tolerate, or Adam's epoch scheme. Does all this make
protocol messier...absolutely! Backing out of a ChangeCipherCpecs,
having the application presumptuously send data and then back out when
it realizes something went wrong is all messy. Point is some might be
willing to live with this messiness for the gain in performance.

iii) Your point about "tls security analysis" cannot be applied
blindly is completely true but is not what I was saying. My point was
that if you gave me two alternates: (i) a very close descendant of SSL
with the only change being that on session resumption the
server-random is a function of client_random and client unix_gmt,
versus (ii) a completely new protocol a bunch of people came up with
today because they wanted a one round trip protocol, THEN I for one
would take the TLS descendant in a heartbeat.

Hope this helps!

Ravi

From dean@av8.com  Sat Feb  6 14:19:19 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 5BFFE3A7117 for <tls@core3.amsl.com>; Sat,  6 Feb 2010 14:19:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.084
X-Spam-Level: 
X-Spam-Status: No, score=-2.084 tagged_above=-999 required=5 tests=[AWL=0.515,  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 sevxdFVntfQK for <tls@core3.amsl.com>; Sat,  6 Feb 2010 14:19:18 -0800 (PST)
Received: from cirrus.av8.net (cirrus.av8.net [130.105.36.66]) by core3.amsl.com (Postfix) with ESMTP id DEBD63A6F8A for <tls@ietf.org>; Sat,  6 Feb 2010 14:19:17 -0800 (PST)
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 o16MK6kT025202 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 6 Feb 2010 17:20:09 -0500
Date: Sat, 6 Feb 2010 17:20:05 -0500 (EST)
From: Dean Anderson <dean@av8.com>
X-X-Sender: dean@citation2.av8.net
To: Eric Rescorla <ekr@networkresonance.com>
In-Reply-To: <20100204050608.89EFF6E70AD@kilo.networkresonance.com>
Message-ID: <Pine.LNX.4.44.1002061608290.7192-100000@citation2.av8.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Cc: tls@ietf.org, Paul Hoffman <paul.hoffman@vpnc.org>
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Feb 2010 22:19:19 -0000

On Wed, 3 Feb 2010, Eric Rescorla wrote:

> Moreover, the the purpose of the random values is *not* to add extra
> cryptographic strength, since they're not secret. Rather, it's to
> ensure uniqueness of the handshake master secret even if the PMS is
> repeated. However, the bound here is just the collision bound for the
> random values, which doesn't require anything like 224 bits.
> 
> I'm not really against this extension, but I'm not aware of any
> coherent security argument for it.

Thinking it over, I have some concerns about the security implications
on the master_secret calculation.  I didn't think about this until Paul
Hoffman wanted to alter and increase the size the client and server
random numbers. I have to dispute that the client random and server
random need not be 'cryptographically random' instead of known but
random values. And I have a concern that they are not secret.  The only
entropy in the calculation is the pre_master_secret.

First, I am concerned that the entropy of the pre_master_secret is
reduced by presence of the revealed random number.  In the absence of a
perfect random number generator, the pre_master_secret and the random
number are not independent.  I think the rule of thumb is never to give
out random numbers to potential attackers if your random numbers aren't
perfectly random, and it's hard in practice to have perfectly random
numbers. So this seems like a crack in security in many implementations
that could potentially be exploited.

Second, if the pre_master_secret is the only real secret, while the
client random and server random are known, then more of the input to the
PRF is known, and thus the output of the PRF must also be more
predictable (at least due to less entropy in the dependent
pre_master_secret).  Changing the client random and/or server random to
be even larger known values seems (intuitively anyway--I'm not sure this
is the case) to impose an even more negative impact on the
predictabilitiy of the PRF output.  It seems to me like that might be a
security vulnerability, too. It has been reported that AES may be
significantly weaker than expected when some bits of the key are known.

Paul Hoffman's draft is only outside the charter because of the
admonition "In the preparation of TLS 1.2, the WG will attempt to avoid
gratuitous changes to TLS 1.1.". However, the master_secret calculation
and changes to it are in scope for the TLS working group--it is not the
case that changes are out of scope, but that the Working Group is under
instructions not to make "gratuitous changes". It seems to me that
Paul's draft circumvents this instruction.

So I think the WG should look into the calculation of the master_secret
for security weaknesses. If there is indeed a security issue, fixing
that would not be a "gratuitous change".

		--Dean


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



From ekr@networkresonance.com  Sat Feb  6 15:41:11 2010
Return-Path: <ekr@networkresonance.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 C5B873A7121 for <tls@core3.amsl.com>; Sat,  6 Feb 2010 15:41:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.018
X-Spam-Level: 
X-Spam-Status: No, score=0.018 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_COM=0.553, HOST_MISMATCH_NET=0.311, RDNS_DYNAMIC=0.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 ZgD3UNQ8YAnL for <tls@core3.amsl.com>; Sat,  6 Feb 2010 15:41:10 -0800 (PST)
Received: from kilo.networkresonance.com (74-95-2-169-SFBA.hfc.comcastbusiness.net [74.95.2.169]) by core3.amsl.com (Postfix) with ESMTP id CEF4E3A70CC for <tls@ietf.org>; Sat,  6 Feb 2010 15:41:10 -0800 (PST)
Received: from kilo.local (localhost [127.0.0.1]) by kilo.networkresonance.com (Postfix) with ESMTP id 8834E6E7A4B; Sat,  6 Feb 2010 15:44:00 -0800 (PST)
Date: Sat, 06 Feb 2010 15:43:59 -0800
From: Eric Rescorla <ekr@networkresonance.com>
To: Dean Anderson <dean@av8.com>
In-Reply-To: <Pine.LNX.4.44.1002061608290.7192-100000@citation2.av8.net>
References: <20100204050608.89EFF6E70AD@kilo.networkresonance.com> <Pine.LNX.4.44.1002061608290.7192-100000@citation2.av8.net>
User-Agent: Wanderlust/2.15.5 (Almost Unreal) Emacs/22.3 Mule/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka")
Content-Type: text/plain; charset=US-ASCII
Message-Id: <20100206234400.8834E6E7A4B@kilo.networkresonance.com>
Cc: tls@ietf.org, Paul Hoffman <paul.hoffman@vpnc.org>
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Feb 2010 23:41:11 -0000

At Sat, 6 Feb 2010 17:20:05 -0500 (EST),
Dean Anderson wrote:
> 
> On Wed, 3 Feb 2010, Eric Rescorla wrote:
> 
> > Moreover, the the purpose of the random values is *not* to add extra
> > cryptographic strength, since they're not secret. Rather, it's to
> > ensure uniqueness of the handshake master secret even if the PMS is
> > repeated. However, the bound here is just the collision bound for the
> > random values, which doesn't require anything like 224 bits.
> > 
> > I'm not really against this extension, but I'm not aware of any
> > coherent security argument for it.
> 
> Thinking it over, I have some concerns about the security implications
> on the master_secret calculation.  I didn't think about this until Paul
> Hoffman wanted to alter and increase the size the client and server
> random numbers. I have to dispute that the client random and server
> random need not be 'cryptographically random' instead of known but
> random values. 

I'm not sure what you're disputing. Since both values are
published, the primary value of having them be cryptographically
random is to make them unpredictable in advance to the
attacker. However, I am unaware of any security analysis
that relies on this property.


>> And I have a concern that they are not secret.  The only
> entropy in the calculation is the pre_master_secret.
>
> First, I am concerned that the entropy of the pre_master_secret is
> reduced by presence of the revealed random number.  In the absence of a
> perfect random number generator, the pre_master_secret and the random
> number are not independent. 

Well, this isn't true for the server half of the static RSA 
cipher suites, since the server doesn't contribute to the
PMS at all.

In any case, this is an argument for *not* generating the
Random values with a cryptographic PRNG since then you
would not be leaking information about the PRNG state
in the random values.


> I think the rule of thumb is never to give
> out random numbers to potential attackers if your random numbers aren't
> perfectly random, and it's hard in practice to have perfectly random
> numbers. So this seems like a crack in security in many implementations
> that could potentially be exploited.

I am not aware of any such rule of thumb. In fact, this design
is a fairly standard feature of cryptographic protocols.


> Second, if the pre_master_secret is the only real secret, while the
> client random and server random are known, then more of the input to the
> PRF is known, and thus the output of the PRF must also be more
> predictable (at least due to less entropy in the dependent
> pre_master_secret).  Changing the client random and/or server random to
> be even larger known values seems (intuitively anyway--I'm not sure this
> is the case) to impose an even more negative impact on the
> predictabilitiy of the PRF output.  It seems to me like that might be a
> security vulnerability, too. It has been reported that AES may be
> significantly weaker than expected when some bits of the key are known.

This isn't how PRFs like the TLS PRF work. Adding new known
data does not dilute the existing entropy.

-Ekr

From dean@av8.com  Mon Feb  8 11:28:16 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 499373A7265 for <tls@core3.amsl.com>; Mon,  8 Feb 2010 11:28:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.114
X-Spam-Level: 
X-Spam-Status: No, score=-2.114 tagged_above=-999 required=5 tests=[AWL=0.485,  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 3dd8eb5RLHCp for <tls@core3.amsl.com>; Mon,  8 Feb 2010 11:28:14 -0800 (PST)
Received: from cirrus.av8.net (cirrus.av8.net [130.105.36.66]) by core3.amsl.com (Postfix) with ESMTP id 9B1F63A7479 for <tls@ietf.org>; Mon,  8 Feb 2010 11:28:14 -0800 (PST)
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 o18JTCGK012432 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 8 Feb 2010 14:29:13 -0500
Date: Mon, 8 Feb 2010 14:29:12 -0500 (EST)
From: Dean Anderson <dean@av8.com>
X-X-Sender: dean@citation2.av8.net
To: Eric Rescorla <ekr@networkresonance.com>
In-Reply-To: <20100206234400.8834E6E7A4B@kilo.networkresonance.com>
Message-ID: <Pine.LNX.4.44.1002081326270.17664-100000@citation2.av8.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Cc: tls@ietf.org, Paul Hoffman <paul.hoffman@vpnc.org>
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Feb 2010 19:28:16 -0000

On Sat, 6 Feb 2010, Eric Rescorla wrote:

> At Sat, 6 Feb 2010 17:20:05 -0500 (EST), Dean Anderson wrote:
> > 
> > On Wed, 3 Feb 2010, Eric Rescorla wrote:
> > 
> > > Moreover, the the purpose of the random values is *not* to add
> > > extra cryptographic strength, since they're not secret. Rather,
> > > it's to ensure uniqueness of the handshake master secret even if
> > > the PMS is repeated. However, the bound here is just the collision
> > > bound for the random values, which doesn't require anything like
> > > 224 bits.
> > > 
> > > I'm not really against this extension, but I'm not aware of any
> > > coherent security argument for it.
> > 
> > Thinking it over, I have some concerns about the security
> > implications on the master_secret calculation.  I didn't think about
> > this until Paul Hoffman wanted to alter and increase the size the
> > client and server random numbers. I have to dispute that the client
> > random and server random need not be 'cryptographically random'
> > instead of known but random values.
> 
> I'm not sure what you're disputing. Since both values are published,
> the primary value of having them be cryptographically random is to
> make them unpredictable in advance to the attacker. However, I am
> unaware of any security analysis that relies on this property.

"cryptographically random" was a poor term. It confuses 'cryptographic
PRNG' with 'truly random' or zero-information numbers. I mean the
latter.

I'm disputing the assertion that these random numbers don't need to be
truly random.  To recast it as a positive assertion: I'm asserting these
randoms have to be either truly random or truly non-cryptographically
random; They cannot be part of a pseudo-random sequence. Particularly:  
they cannot be from the PRNG that the pre_master_secret comes from.

The primary purpose (unique master_secrets) of these random numbers is
unimportant.  If they are not truly random, they expose the
pseudo-random sequence generator sequence. This is an unintended (but
significant) consequence.


> >> And I have a concern that they are not secret.  The only
> > entropy in the calculation is the pre_master_secret.
> >
> > First, I am concerned that the entropy of the pre_master_secret is
> > reduced by presence of the revealed random number.  In the absence
> > of a perfect random number generator, the pre_master_secret and the
> > random number are not independent.
> 
> Well, this isn't true for the server half of the static RSA cipher
> suites, since the server doesn't contribute to the PMS at all.

True, the server random doesn't expose the client's pre_master_secret in
that _particular_ calculation.  But the server IS still exposing its
(possibly dependent) random numbers. If you collect enough of these
through snooping, you can predict its pre_master_secret for connections
orginating from that machine. Same goes for the client machine. Server
machines tend to be both client and server at different times.

> In any case, this is an argument for *not* generating the Random
> values with a cryptographic PRNG since then you would not be leaking
> information about the PRNG state in the random values.

Yes. That's my point. By 'cryptographic PRNG' you mean a PRNG that is
hard to predict. But if you get enough of its sequence and have enough
compute power, all PRNG's are predictable.

> > I think the rule of thumb is never to give out random numbers to
> > potential attackers if your random numbers aren't perfectly random,
> > and it's hard in practice to have perfectly random numbers. So this
> > seems like a crack in security in many implementations that could
> > potentially be exploited.
> 
> I am not aware of any such rule of thumb. In fact, this design is a
> fairly standard feature of cryptographic protocols.

I'll see if I can find a better reference.  I think the cryptographic
fact I'm looking for is that a pseudo-random sequence is compromised by
having part of the sequence known. Having more of the sequence known
makes it even easier to compromise.

> This isn't how PRFs like the TLS PRF work. Adding new known data does
> not dilute the existing entropy.

For SHA-256, I agree--or at least I can't dispute that at this time*.  
But recall that extensions can specify different PRFs. Perhaps it should
be documented somewhere that adding new known data must not dilute the
existing entropy.

[*Actually, I suspect it isn't true. For the algorithm to be reversible,
certain other things have to be true.  The object of the hash function
is to be irreversible, but they all seem never to really get that
property, just the property of being hard to reverse, which doesn't
affect the properties that must be true if they are reversible. If you
assume they are reversible, and add more known data to the limited
output (which began at a maximum entropy, then entropy of the output
must be reduced. To put it another way: If you start with a lump of iron
(at maximum entropy), and beat it into an iron pot of the same mass
(known input), entropy is reduced. Knowing the exact sequence to get the
pot from the rock reveals information about the rock. But this is no
proof.]



		--Dean

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



From jwkckid1@ix.netcom.com  Mon Feb  8 12:06:29 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 867363A7368 for <tls@core3.amsl.com>; Mon,  8 Feb 2010 12:06:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.299
X-Spam-Level: 
X-Spam-Status: No, score=-3.299 tagged_above=-999 required=5 tests=[AWL=-0.700, 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 PAtMScFiZqMc for <tls@core3.amsl.com>; Mon,  8 Feb 2010 12:06:28 -0800 (PST)
Received: from elasmtp-dupuy.atl.sa.earthlink.net (elasmtp-dupuy.atl.sa.earthlink.net [209.86.89.62]) by core3.amsl.com (Postfix) with ESMTP id BF8043A682A for <tls@ietf.org>; Mon,  8 Feb 2010 12:06:27 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=ix.netcom.com; b=pssepP0Mmrje8VSwekdUfZzte+I4JSnm6TuIqAPV4V347TMl6MRHtj1z4+oqbyRQ; 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.40] (helo=elwamui-milano.atl.sa.earthlink.net) by elasmtp-dupuy.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from <jwkckid1@ix.netcom.com>) id 1NeZtK-0000DM-4G; Mon, 08 Feb 2010 15:07:30 -0500
Received: from 99.93.224.206 by webmail.earthlink.net with HTTP; Mon, 8 Feb 2010 15:07:29 -0500
Message-ID: <2305893.1265659649877.JavaMail.root@elwamui-milano.atl.sa.earthlink.net>
Date: Mon, 8 Feb 2010 14:07:29 -0600 (GMT-06:00)
From: "Jeffrey A. Williams" <jwkckid1@ix.netcom.com>
To: Dean Anderson <dean@av8.com>, Eric Rescorla <ekr@networkresonance.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: c8e3929e1e9c87a874cfc7ce3b1ad11381c87f5e519606884a341c1a351d059cc8c532c5b32a248a350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c
X-Originating-IP: 209.86.224.40
Cc: tls@ietf.org, Paul Hoffman <paul.hoffman@vpnc.org>
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
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, 08 Feb 2010 20:06:29 -0000

Dean and all,

  Here in your remarks below, I could not agree more.
Well done.  


-----Original Message-----
>From: Dean Anderson <dean@av8.com>
>Sent: Feb 8, 2010 1:29 PM
>To: Eric Rescorla <ekr@networkresonance.com>
>Cc: tls@ietf.org, Paul Hoffman <paul.hoffman@vpnc.org>
>Subject: Re: [TLS] New drafts: adding input to the TLS master secret
>
>On Sat, 6 Feb 2010, Eric Rescorla wrote:
>
>> At Sat, 6 Feb 2010 17:20:05 -0500 (EST), Dean Anderson wrote:
>> > 
>> > On Wed, 3 Feb 2010, Eric Rescorla wrote:
>> > 
>> > > Moreover, the the purpose of the random values is *not* to add
>> > > extra cryptographic strength, since they're not secret. Rather,
>> > > it's to ensure uniqueness of the handshake master secret even if
>> > > the PMS is repeated. However, the bound here is just the collision
>> > > bound for the random values, which doesn't require anything like
>> > > 224 bits.
>> > > 
>> > > I'm not really against this extension, but I'm not aware of any
>> > > coherent security argument for it.
>> > 
>> > Thinking it over, I have some concerns about the security
>> > implications on the master_secret calculation.  I didn't think about
>> > this until Paul Hoffman wanted to alter and increase the size the
>> > client and server random numbers. I have to dispute that the client
>> > random and server random need not be 'cryptographically random'
>> > instead of known but random values.
>> 
>> I'm not sure what you're disputing. Since both values are published,
>> the primary value of having them be cryptographically random is to
>> make them unpredictable in advance to the attacker. However, I am
>> unaware of any security analysis that relies on this property.
>
>"cryptographically random" was a poor term. It confuses 'cryptographic
>PRNG' with 'truly random' or zero-information numbers. I mean the
>latter.
>
>I'm disputing the assertion that these random numbers don't need to be
>truly random.  To recast it as a positive assertion: I'm asserting these
>randoms have to be either truly random or truly non-cryptographically
>random; They cannot be part of a pseudo-random sequence. Particularly:  
>they cannot be from the PRNG that the pre_master_secret comes from.
>
>The primary purpose (unique master_secrets) of these random numbers is
>unimportant.  If they are not truly random, they expose the
>pseudo-random sequence generator sequence. This is an unintended (but
>significant) consequence.
>
>
>> >> And I have a concern that they are not secret.  The only
>> > entropy in the calculation is the pre_master_secret.
>> >
>> > First, I am concerned that the entropy of the pre_master_secret is
>> > reduced by presence of the revealed random number.  In the absence
>> > of a perfect random number generator, the pre_master_secret and the
>> > random number are not independent.
>> 
>> Well, this isn't true for the server half of the static RSA cipher
>> suites, since the server doesn't contribute to the PMS at all.
>
>True, the server random doesn't expose the client's pre_master_secret in
>that _particular_ calculation.  But the server IS still exposing its
>(possibly dependent) random numbers. If you collect enough of these
>through snooping, you can predict its pre_master_secret for connections
>orginating from that machine. Same goes for the client machine. Server
>machines tend to be both client and server at different times.
>
>> In any case, this is an argument for *not* generating the Random
>> values with a cryptographic PRNG since then you would not be leaking
>> information about the PRNG state in the random values.
>
>Yes. That's my point. By 'cryptographic PRNG' you mean a PRNG that is
>hard to predict. But if you get enough of its sequence and have enough
>compute power, all PRNG's are predictable.
>
>> > I think the rule of thumb is never to give out random numbers to
>> > potential attackers if your random numbers aren't perfectly random,
>> > and it's hard in practice to have perfectly random numbers. So this
>> > seems like a crack in security in many implementations that could
>> > potentially be exploited.
>> 
>> I am not aware of any such rule of thumb. In fact, this design is a
>> fairly standard feature of cryptographic protocols.
>
>I'll see if I can find a better reference.  I think the cryptographic
>fact I'm looking for is that a pseudo-random sequence is compromised by
>having part of the sequence known. Having more of the sequence known
>makes it even easier to compromise.
>
>> This isn't how PRFs like the TLS PRF work. Adding new known data does
>> not dilute the existing entropy.
>
>For SHA-256, I agree--or at least I can't dispute that at this time*.  
>But recall that extensions can specify different PRFs. Perhaps it should
>be documented somewhere that adding new known data must not dilute the
>existing entropy.
>
>[*Actually, I suspect it isn't true. For the algorithm to be reversible,
>certain other things have to be true.  The object of the hash function
>is to be irreversible, but they all seem never to really get that
>property, just the property of being hard to reverse, which doesn't
>affect the properties that must be true if they are reversible. If you
>assume they are reversible, and add more known data to the limited
>output (which began at a maximum entropy, then entropy of the output
>must be reduced. To put it another way: If you start with a lump of iron
>(at maximum entropy), and beat it into an iron pot of the same mass
>(known input), entropy is reduced. Knowing the exact sequence to get the
>pot from the rock reveals information about the rock. But this is no
>proof.]
>
>
>
>		--Dean
>
>-- 
>Av8 Internet   Prepared to pay a premium for better service?
>www.av8.net         faster, more reliable, better service
>617 256 5494
>
>
>_______________________________________________
>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 ekr@networkresonance.com  Mon Feb  8 12:41:21 2010
Return-Path: <ekr@networkresonance.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 502E93A68E8 for <tls@core3.amsl.com>; Mon,  8 Feb 2010 12:41:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.895
X-Spam-Level: 
X-Spam-Status: No, score=0.895 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_COM=0.553, HOST_MISMATCH_NET=0.311, RCVD_IN_SORBS_DUL=0.877, RDNS_DYNAMIC=0.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 7OSZxsfu0ksL for <tls@core3.amsl.com>; Mon,  8 Feb 2010 12:41:20 -0800 (PST)
Received: from kilo.networkresonance.com (216.156.83.78.ptr.us.xo.net [216.156.83.78]) by core3.amsl.com (Postfix) with ESMTP id BD0EC3A68DB for <tls@ietf.org>; Mon,  8 Feb 2010 12:41:17 -0800 (PST)
Received: from kilo.local (localhost [127.0.0.1]) by kilo.networkresonance.com (Postfix) with ESMTP id 01C756E7CFA; Mon,  8 Feb 2010 12:44:25 -0800 (PST)
Date: Mon, 08 Feb 2010 12:44:25 -0800
From: Eric Rescorla <ekr@networkresonance.com>
To: Dean Anderson <dean@av8.com>
In-Reply-To: <Pine.LNX.4.44.1002081326270.17664-100000@citation2.av8.net>
References: <20100206234400.8834E6E7A4B@kilo.networkresonance.com> <Pine.LNX.4.44.1002081326270.17664-100000@citation2.av8.net>
User-Agent: Wanderlust/2.15.5 (Almost Unreal) Emacs/22.3 Mule/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka")
Content-Type: text/plain; charset=US-ASCII
Message-Id: <20100208204426.01C756E7CFA@kilo.networkresonance.com>
Cc: tls@ietf.org, Paul Hoffman <paul.hoffman@vpnc.org>
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Feb 2010 20:41:21 -0000

At Mon, 8 Feb 2010 14:29:12 -0500 (EST),
Dean Anderson wrote:
> On Sat, 6 Feb 2010, Eric Rescorla wrote:
> The primary purpose (unique master_secrets) of these random numbers is
> unimportant.  If they are not truly random, they expose the
> pseudo-random sequence generator sequence. This is an unintended (but
> significant) consequence.

With any reasonable PRNG this is not a security concern.

> > Well, this isn't true for the server half of the static RSA cipher
> > suites, since the server doesn't contribute to the PMS at all.
> 
> True, the server random doesn't expose the client's pre_master_secret in
> that _particular_ calculation.  But the server IS still exposing its
> (possibly dependent) random numbers. If you collect enough of these
> through snooping, you can predict its pre_master_secret for connections
> orginating from that machine.

This is true only in an information theoretic sense. It is not
correct with any reasonable and reasonably seeded CSPRNG.


> > In any case, this is an argument for *not* generating the Random
> > values with a cryptographic PRNG since then you would not be leaking
> > information about the PRNG state in the random values.
> 
> Yes. That's my point. By 'cryptographic PRNG' you mean a PRNG that is
> hard to predict. But if you get enough of its sequence and have enough
> compute power, all PRNG's are predictable.

This is true but irrelevant. If you have enough computing power
you can break all ciphers directly. The amount of computing
power required to reverse the PRNG is comparable if not in
excess of the amount required to break the cipher.


> > I am not aware of any such rule of thumb. In fact, this design is a
> > fairly standard feature of cryptographic protocols.
> 
> I'll see if I can find a better reference.  I think the cryptographic
> fact I'm looking for is that a pseudo-random sequence is compromised by
> having part of the sequence known.

Well, this isn't true. In fact, it's a basic design requirement
of CSPRNGs that this not be so (up to the input entropy of the
PRNG). If you have any evidence that the standard PRNGs/PRFs fall
significantly short of this requirement, this would be a result
worthy of publication in a good conference.

-Ekr

From ekr@networkresonance.com  Mon Feb  8 12:41:56 2010
Return-Path: <ekr@networkresonance.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 3C44C28C12C for <tls@core3.amsl.com>; Mon,  8 Feb 2010 12:41:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.895
X-Spam-Level: 
X-Spam-Status: No, score=0.895 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_COM=0.553, HOST_MISMATCH_NET=0.311, RCVD_IN_SORBS_DUL=0.877, RDNS_DYNAMIC=0.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 wgM9RSiYbFj0 for <tls@core3.amsl.com>; Mon,  8 Feb 2010 12:41:55 -0800 (PST)
Received: from kilo.networkresonance.com (216.156.83.78.ptr.us.xo.net [216.156.83.78]) by core3.amsl.com (Postfix) with ESMTP id 77B3128C116 for <tls@ietf.org>; Mon,  8 Feb 2010 12:41:55 -0800 (PST)
Received: from kilo.local (localhost [127.0.0.1]) by kilo.networkresonance.com (Postfix) with ESMTP id 3BE986E7CFB; Mon,  8 Feb 2010 12:45:04 -0800 (PST)
Date: Mon, 08 Feb 2010 12:45:04 -0800
From: Eric Rescorla <ekr@networkresonance.com>
To: Dean Anderson <dean@av8.com>
In-Reply-To: <20100208204426.01C756E7CFA@kilo.networkresonance.com>
References: <20100206234400.8834E6E7A4B@kilo.networkresonance.com> <Pine.LNX.4.44.1002081326270.17664-100000@citation2.av8.net> <20100208204426.01C756E7CFA@kilo.networkresonance.com>
User-Agent: Wanderlust/2.15.5 (Almost Unreal) Emacs/22.3 Mule/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka")
Content-Type: text/plain; charset=US-ASCII
Message-Id: <20100208204504.3BE986E7CFB@kilo.networkresonance.com>
Cc: tls@ietf.org, Paul Hoffman <paul.hoffman@vpnc.org>
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Feb 2010 20:41:56 -0000

At Mon, 08 Feb 2010 12:44:25 -0800,
Eric Rescorla wrote:
> 
> At Mon, 8 Feb 2010 14:29:12 -0500 (EST),
> Dean Anderson wrote:
> > On Sat, 6 Feb 2010, Eric Rescorla wrote:
> > The primary purpose (unique master_secrets) of these random numbers is
> > unimportant.  If they are not truly random, they expose the
> > pseudo-random sequence generator sequence. This is an unintended (but
> > significant) consequence.
> 
> With any reasonable PRNG this is not a security concern.
> 
> > > Well, this isn't true for the server half of the static RSA cipher
> > > suites, since the server doesn't contribute to the PMS at all.
> > 
> > True, the server random doesn't expose the client's pre_master_secret in
> > that _particular_ calculation.  But the server IS still exposing its
> > (possibly dependent) random numbers. If you collect enough of these
> > through snooping, you can predict its pre_master_secret for connections
> > orginating from that machine.
> 
> This is true only in an information theoretic sense. It is not
> correct with any reasonable and reasonably seeded CSPRNG.

And by correct I mean "it's not computationally feasible".

-Ekr

From mrex@sap.com  Mon Feb  8 14:59:02 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 08C7E3A74C8 for <tls@core3.amsl.com>; Mon,  8 Feb 2010 14:59:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.214
X-Spam-Level: 
X-Spam-Status: No, score=-10.214 tagged_above=-999 required=5 tests=[AWL=0.035, 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 b7SHkJWmR7Fi for <tls@core3.amsl.com>; Mon,  8 Feb 2010 14:59:01 -0800 (PST)
Received: from smtpde03.sap-ag.de (smtpde03.sap-ag.de [155.56.68.140]) by core3.amsl.com (Postfix) with ESMTP id 04BCD3A74B9 for <tls@ietf.org>; Mon,  8 Feb 2010 14:59:00 -0800 (PST)
Received: from mail.sap.corp by smtpde03.sap-ag.de (26) with ESMTP id o18MxtOD001287 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 8 Feb 2010 23:59:55 +0100 (MET)
From: Martin Rex <mrex@sap.com>
Message-Id: <201002082259.o18MxsB6017864@fs4113.wdf.sap.corp>
To: ekr@networkresonance.com (Eric Rescorla)
Date: Mon, 8 Feb 2010 23:59:54 +0100 (MET)
In-Reply-To: <20100208204426.01C756E7CFA@kilo.networkresonance.com> from "Eric Rescorla" at Feb 8, 10 12:44:25 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, paul.hoffman@vpnc.org
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
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, 08 Feb 2010 22:59:02 -0000

Eric Rescorla wrote:
> 
> At Mon, 8 Feb 2010 14:29:12 -0500 (EST),
> Dean Anderson wrote:
> > On Sat, 6 Feb 2010, Eric Rescorla wrote:
> > The primary purpose (unique master_secrets) of these random numbers is
> > unimportant.  If they are not truly random, they expose the
> > pseudo-random sequence generator sequence. This is an unintended (but
> > significant) consequence.
> 
> With any reasonable PRNG this is not a security concern.

You may be looking at the problem from the wrong angle.

If there is not enough entropy to seed your CPRNG, then it is
possible to brute force the entire entropy range and check for matches
with the leaked randomness to know about the "unleaked" randomness
that goes into the client key exchange (or premaster secret for RSA).


If you want to create keying material, then you must have sufficient
entropy in order to prevent attackers from brute-forcing your entire
keyspace -- something which is possible when the implementation
(of the CPRNG an protocols using it) is fully known, and the only
unknown is the entropy that seeds the PRNG.


As soon as you have a strong enough seed of the CPRNG, there is no
more need for this extension.


So the situation is that either you have a problem, then
this extension is not going to help you (actually, if you leak
PRNG state through Hello Randoms or the data in this extension,
it gets _much_ worse), or you do not have a problem, then this
extension becomes completely unnecessary.


A TLS peer that does not have good sources of randomness (which are
necessary to seed a good CPRNG), then that TLS peer should not
leak any of that state by publishing randomness from that CPRNG,
neither through Hello.Random, nor through an extension like the
one proposed.  In those cases, it might be more sensible to use
a simple counter for the Hello.Random and fill in the gmt_time
correctly.


-Martin

From dean@av8.com  Mon Feb  8 15:15:54 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 B709828C0EB for <tls@core3.amsl.com>; Mon,  8 Feb 2010 15:15:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.141
X-Spam-Level: 
X-Spam-Status: No, score=-2.141 tagged_above=-999 required=5 tests=[AWL=0.458,  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 elsZJ3E2t+9U for <tls@core3.amsl.com>; Mon,  8 Feb 2010 15:15:53 -0800 (PST)
Received: from cirrus.av8.net (cirrus.av8.net [130.105.36.66]) by core3.amsl.com (Postfix) with ESMTP id 34A7C3A724D for <tls@ietf.org>; Mon,  8 Feb 2010 15:15:53 -0800 (PST)
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 o18NGrUF013603 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 8 Feb 2010 18:16:53 -0500
Date: Mon, 8 Feb 2010 18:16:53 -0500 (EST)
From: Dean Anderson <dean@av8.com>
X-X-Sender: dean@citation2.av8.net
To: Eric Rescorla <ekr@networkresonance.com>
In-Reply-To: <20100208204426.01C756E7CFA@kilo.networkresonance.com>
Message-ID: <Pine.LNX.4.44.1002081632060.17664-100000@citation2.av8.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Cc: tls@ietf.org, Paul Hoffman <paul.hoffman@vpnc.org>
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Feb 2010 23:15:54 -0000

On Mon, 8 Feb 2010, Eric Rescorla wrote:
> > 
> > I'll see if I can find a better reference.  I think the
> > cryptographic fact I'm looking for is that a pseudo-random sequence
> > is compromised by having part of the sequence known.
> 
> Well, this isn't true. In fact, it's a basic design requirement of
> CSPRNGs that this not be so (up to the input entropy of the PRNG). If
> you have any evidence that the standard PRNGs/PRFs fall significantly
> short of this requirement, this would be a result worthy of
> publication in a good conference.

Actually, it appears to me that it is an unproven assumption of the
next-bit test. ("it" being that there is no polynomial time algorithm to
calculate the next bit)  I believe the key phrase is "up to the input
entropy of the PRNG". If you have enough of the sequence, you can get
the whole sequence.  The TLS random exposes an essentially unlimited
amount of the pseudo-random sequence.

I don't assert any revelation about PRNG properties. I think all I have
discovered is that in TLS, one can get an essentially unlimited amount
of the PRNG sequence by mere snooping (no decryption).  The
already-known properties of pseudo-random sequences are that one can
compute the whole sequence given knowledge of an unlimited amount of the
sequence because they are not random.

The tests on for "cryptographic security" of PRBG are complicated, but
roughly summarized as based on statistical expectations for the next bit
in the sequence. The 'next-bit' test posits that there are no polynomial
time algorithms for calculating the next bit.  But this is assumed, not
proven property. It was also assumed to be true of Linear Feedback Shift
Registers, but was found false.  There is nothing that proves the PRNG
isn't predictable if you can see a whole lot of its sequence, or that
calculating the next bit is computationally infeasible given a lot of
sequence.

>From "Handbook of Applied Cryptography" Section 5.1.1 on Pseudo Random
Bit Generators:

  "The output of a PRBG is not random; in fact the number of possible
  output sequences is at most a small fraction 2^k/2^l, of all possible
  binary sequences of length l."

So one can see, as l gets larger with k constant, the fraction of all
output sequences gets smaller.  The pre_master_secret is 384 bits and
the Random value is presently 256 bits. So the random exposes 40% of the
sequence.  Paul's proposal increases the exposure. That seems like a bad
idea.  Exposing any part of the sequence seems like a bad idea.

Full enumeration of the PRBG is probably infeasible. But it is not clear
that full enumeration is necessary to predict the sequence. It wasn't
necessary to have very much of the sequence for LFSR.  It may indeed
prove to be computationally infeasible, but it not proven so far.  Some
generators may be better than others. Or not. Not so long ago, linear
feedback shift registers were thought to be computationally infeasible
to break and were the stream cipher for GSM, but then that was
discovered to be wrong, and that calculation was really pretty easy.

When all we need are unique master_secrets across sessions, this seems
like an unnecessary risk.  Why not alter TLS to require a different
pseudo-random sequence generator for Random values?

		--Dean


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





From dean@av8.com  Mon Feb  8 16:27:26 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 4DBD13A6E03 for <tls@core3.amsl.com>; Mon,  8 Feb 2010 16:27:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.187
X-Spam-Level: 
X-Spam-Status: No, score=-2.187 tagged_above=-999 required=5 tests=[AWL=0.412,  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 v9NqsAiSL3ws for <tls@core3.amsl.com>; Mon,  8 Feb 2010 16:27:25 -0800 (PST)
Received: from cirrus.av8.net (cirrus.av8.net [130.105.36.66]) by core3.amsl.com (Postfix) with ESMTP id 34B8A3A69A0 for <tls@ietf.org>; Mon,  8 Feb 2010 16:27:24 -0800 (PST)
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 o190SRfU013920 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 8 Feb 2010 19:28:27 -0500
Date: Mon, 8 Feb 2010 19:28:26 -0500 (EST)
From: Dean Anderson <dean@av8.com>
X-X-Sender: dean@citation2.av8.net
To: Martin Rex <mrex@sap.com>
In-Reply-To: <201002082259.o18MxsB6017864@fs4113.wdf.sap.corp>
Message-ID: <Pine.LNX.4.44.1002081928010.17664-100000@citation2.av8.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Cc: paul.hoffman@vpnc.org, tls@ietf.org
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Feb 2010 00:27:26 -0000

+5

		--Dean

On Mon, 8 Feb 2010, Martin Rex wrote:

> Eric Rescorla wrote:
> > 
> > At Mon, 8 Feb 2010 14:29:12 -0500 (EST),
> > Dean Anderson wrote:
> > > On Sat, 6 Feb 2010, Eric Rescorla wrote:
> > > The primary purpose (unique master_secrets) of these random numbers is
> > > unimportant.  If they are not truly random, they expose the
> > > pseudo-random sequence generator sequence. This is an unintended (but
> > > significant) consequence.
> > 
> > With any reasonable PRNG this is not a security concern.
> 
> You may be looking at the problem from the wrong angle.
> 
> If there is not enough entropy to seed your CPRNG, then it is
> possible to brute force the entire entropy range and check for matches
> with the leaked randomness to know about the "unleaked" randomness
> that goes into the client key exchange (or premaster secret for RSA).
> 
> 
> If you want to create keying material, then you must have sufficient
> entropy in order to prevent attackers from brute-forcing your entire
> keyspace -- something which is possible when the implementation
> (of the CPRNG an protocols using it) is fully known, and the only
> unknown is the entropy that seeds the PRNG.
> 
> 
> As soon as you have a strong enough seed of the CPRNG, there is no
> more need for this extension.
> 
> 
> So the situation is that either you have a problem, then
> this extension is not going to help you (actually, if you leak
> PRNG state through Hello Randoms or the data in this extension,
> it gets _much_ worse), or you do not have a problem, then this
> extension becomes completely unnecessary.
> 
> 
> A TLS peer that does not have good sources of randomness (which are
> necessary to seed a good CPRNG), then that TLS peer should not
> leak any of that state by publishing randomness from that CPRNG,
> neither through Hello.Random, nor through an extension like the
> one proposed.  In those cases, it might be more sensible to use
> a simple counter for the Hello.Random and fill in the gmt_time
> correctly.
> 
> 
> -Martin
> 
> 

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



From marsh@extendedsubset.com  Mon Feb  8 17:59:50 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 AB70D3A74F6 for <tls@core3.amsl.com>; Mon,  8 Feb 2010 17:59:50 -0800 (PST)
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=[AWL=0.000,  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 MasSpejEyYEI for <tls@core3.amsl.com>; Mon,  8 Feb 2010 17:59:49 -0800 (PST)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id DC4603A67A4 for <tls@ietf.org>; Mon,  8 Feb 2010 17:59:48 -0800 (PST)
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 1NefPI-000871-PF for tls@ietf.org; Tue, 09 Feb 2010 02:00:52 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id DB0476048 for <tls@ietf.org>; Tue,  9 Feb 2010 02:00:51 +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/e9yXGPtKULbhMpe6y7iGRdzk/pWw/Bwo=
Message-ID: <4B70C1D9.5020505@extendedsubset.com>
Date: Mon, 08 Feb 2010 21:00:57 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: "tls@ietf.org" <tls@ietf.org>
References: <Pine.LNX.4.44.1002081632060.17664-100000@citation2.av8.net>
In-Reply-To: <Pine.LNX.4.44.1002081632060.17664-100000@citation2.av8.net>
X-Enigmail-Version: 0.96.0
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Feb 2010 01:59:50 -0000

Dean Anderson wrote:
> On Mon, 8 Feb 2010, Eric Rescorla wrote:
>> If
>> you have any evidence that the standard PRNGs/PRFs fall significantly
>> short of this requirement, this would be a result worthy of
>> publication in a good conference.
> 
> Actually, it appears to me that it is an unproven assumption of the
> next-bit test.

I think you'll find that all cryptography rests on assumptions that
aren't "proven" to some arbitrarily high standard.

> ("it" being that there is no polynomial time algorithm to
> calculate the next bit)

Starting with good old http://en.wikipedia.org/wiki/P_versus_NP_problem
of course.

> I believe the key phrase is "up to the input
> entropy of the PRNG". If you have enough of the sequence, you can get
> the whole sequence.  The TLS random exposes an essentially unlimited
> amount of the pseudo-random sequence.

I don't see where you get that. RFC 2246 says:
> Client hello
>   random_bytes
>        28 bytes generated by a secure random number generator.

To me that does not permit a conforming implementation to "expose an
essentially unlimited amount of the pseudo-random sequence".

Any competent implementer would know that they have to keep their
secure RNG seeded to a reasonable degree.

> I don't assert any revelation about PRNG properties. I think all I have
> discovered is that in TLS, one can get an essentially unlimited amount
> of the PRNG sequence by mere snooping (no decryption).  The
> already-known properties of pseudo-random sequences are that one can
> compute the whole sequence given knowledge of an unlimited amount of the
> sequence because they are not random.

Perhaps the problem here is that the TLS RFCs are a bit loose with the
"secure RNG" "PRNG" and "PRF" labels? The RFC seems to jump between them
expecting readers to be familiar with the construction and seeding of a
secure RNG. Sounds like a reasonable assumption to me.

IMHO, the details of establishing a secure RNG are out of scope for the RFC.

> The tests on for "cryptographic security" of PRBG are complicated, but
> roughly summarized as based on statistical expectations for the next bit
> in the sequence. The 'next-bit' test posits that there are no polynomial
> time algorithms for calculating the next bit.  But this is assumed, not
> proven property. It was also assumed to be true of Linear Feedback Shift
> Registers, but was found false.  There is nothing that proves the PRNG
> isn't predictable if you can see a whole lot of its sequence, or that
> calculating the next bit is computationally infeasible given a lot of
> sequence.

There's nothing that "proves" anything is random to some
arbitrarily-high standard. Indeed, literal religious schisms have been
based on disagreements about the determinism of the universe.

Rather than waste all that energy debating it all over again, you could
just post back here when you've got a useful result. Something like this:
http://travisgoodspeed.blogspot.com/2009/12/prng-vulnerability-of-z-stack-zigbee.html

> From "Handbook of Applied Cryptography" Section 5.1.1 on Pseudo Random
> Bit Generators:
> 
>   "The output of a PRBG is not random; in fact the number of possible
>   output sequences is at most a small fraction 2^k/2^l, of all possible
>   binary sequences of length l."
> 
> So one can see, as l gets larger with k constant, the fraction of all
> output sequences gets smaller.  The pre_master_secret is 384 bits and
> the Random value is presently 256 bits. So the random exposes 40% of the
> sequence.

2^256 / 2^384
is not anything like 40%. Looks to me like it's about
0.00000000000000000000000000000000000003%

> Paul's proposal increases the exposure. That seems like a bad
> idea.  Exposing any part of the sequence seems like a bad idea.
> 
> Full enumeration of the PRBG is probably infeasible. But it is not clear
> that full enumeration is necessary to predict the sequence. It wasn't
> necessary to have very much of the sequence for LFSR.  It may indeed
> prove to be computationally infeasible, but it not proven so far.  Some
> generators may be better than others. Or not. Not so long ago, linear
> feedback shift registers were thought to be computationally infeasible
> to break and were the stream cipher for GSM, but then that was
> discovered to be wrong, and that calculation was really pretty easy.
> 
> When all we need are unique master_secrets across sessions, this seems
> like an unnecessary risk.

You haven't identified an actual weakness, only asserted that there
could be one.

> Why not alter TLS to require a different
> pseudo-random sequence generator for Random values?

I didn't design it of course, but I would say it's because the actual
input entropy is assumed to be finite and by is impossible to measure
accurately. Dividing it between two separate pools would probably end up
diluting it in one or the other.

For example, many OSes collect and pool entropy in the kernel where it
can be shared by all applications. This is essentially the opposite of
your suggestion.

- Marsh

From ekr@networkresonance.com  Mon Feb  8 19:23:52 2010
Return-Path: <ekr@networkresonance.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 AE4483A726D for <tls@core3.amsl.com>; Mon,  8 Feb 2010 19:23:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.018
X-Spam-Level: 
X-Spam-Status: No, score=0.018 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_COM=0.553, HOST_MISMATCH_NET=0.311, RDNS_DYNAMIC=0.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 1TCtOs5f6CVb for <tls@core3.amsl.com>; Mon,  8 Feb 2010 19:23:51 -0800 (PST)
Received: from kilo.networkresonance.com (74-95-2-169-SFBA.hfc.comcastbusiness.net [74.95.2.169]) by core3.amsl.com (Postfix) with ESMTP id C5B273A7258 for <tls@ietf.org>; Mon,  8 Feb 2010 19:23:51 -0800 (PST)
Received: from kilo.local (localhost [127.0.0.1]) by kilo.networkresonance.com (Postfix) with ESMTP id 476306E7D80; Mon,  8 Feb 2010 19:27:03 -0800 (PST)
Date: Mon, 08 Feb 2010 19:27:01 -0800
From: Eric Rescorla <ekr@networkresonance.com>
To: mrex@sap.com
In-Reply-To: <201002082259.o18MxsB6017864@fs4113.wdf.sap.corp>
References: <20100208204426.01C756E7CFA@kilo.networkresonance.com>
User-Agent: Wanderlust/2.15.5 (Almost Unreal) Emacs/22.3 Mule/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka")
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Message-Id: <20100209032703.476306E7D80@kilo.networkresonance.com>
Cc: paul.hoffman@vpnc.org, tls@ietf.org
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Feb 2010 03:23:52 -0000

At Mon, 8 Feb 2010 23:59:54 +0100 (MET),
Martin Rex wrote:
>=20
> Eric Rescorla wrote:
> >=20
> > At Mon, 8 Feb 2010 14:29:12 -0500 (EST),
> > Dean Anderson wrote:
> > > On Sat, 6 Feb 2010, Eric Rescorla wrote:
> > > The primary purpose (unique master_secrets) of these random numbers is
> > > unimportant.  If they are not truly random, they expose the
> > > pseudo-random sequence generator sequence. This is an unintended (but
> > > significant) consequence.
> >=20
> > With any reasonable PRNG this is not a security concern.
>=20
> You may be looking at the problem from the wrong angle.
>=20
> If there is not enough entropy to seed your CPRNG, then it is
> possible to brute force the entire entropy range and check for matches
> with the leaked randomness to know about the "unleaked" randomness
> that goes into the client key exchange (or premaster secret for RSA).

Yes, I'm aware of this fact. In fact, see [YRS+09] for a worked example.


> A TLS peer that does not have good sources of randomness (which are
> necessary to seed a good CPRNG), then that TLS peer should not
> leak any of that state by publishing randomness from that CPRNG,
> neither through Hello.Random, nor through an extension like the
> one proposed.  In those cases, it might be more sensible to use
> a simple counter for the Hello.Random and fill in the gmt_time
> correctly.


It's not clear to me that avoiding leakage of any PRNG output helps
that much, since an attacker who knows the potential outputs of the
PRNG can simply do trial decryption to see if the projected outputs
produce correct decryptions. The reason it helps in the example above
is that you need to track the evolution of the PRNG through multiple
requests. However, this seems like a fairly unusual case. It=20
would not, for instance, likely apply to clients, which only
maintain a small number of PRNG contexts.

In general, if you have an acceptable amount of entropy you
don't need to worry about leaking PRNG output. If you don't
you really don't have any business doing TLS.

-Ekr


[YRS+09] S. Yilek, E. Rescorla, H. Shacham, B. Enright, and S. Savage
"When Private Keys are Public: Results from the 2008 Debian OpenSSL
Vulnerability", In Proceedings of IMC 2009, pages 15?27. ACM Press,=20
Nov. 2009.

From ekr@networkresonance.com  Mon Feb  8 19:34:55 2010
Return-Path: <ekr@networkresonance.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 8175C3A74A6 for <tls@core3.amsl.com>; Mon,  8 Feb 2010 19:34:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.018
X-Spam-Level: 
X-Spam-Status: No, score=0.018 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_COM=0.553, HOST_MISMATCH_NET=0.311, RDNS_DYNAMIC=0.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 M4t1F-ep3YLt for <tls@core3.amsl.com>; Mon,  8 Feb 2010 19:34:54 -0800 (PST)
Received: from kilo.networkresonance.com (74-95-2-169-SFBA.hfc.comcastbusiness.net [74.95.2.169]) by core3.amsl.com (Postfix) with ESMTP id B85443A6B3D for <tls@ietf.org>; Mon,  8 Feb 2010 19:34:54 -0800 (PST)
Received: from kilo.local (localhost [127.0.0.1]) by kilo.networkresonance.com (Postfix) with ESMTP id 659516E7D95; Mon,  8 Feb 2010 19:38:06 -0800 (PST)
Date: Mon, 08 Feb 2010 19:38:02 -0800
From: Eric Rescorla <ekr@networkresonance.com>
To: Dean Anderson <dean@av8.com>
In-Reply-To: <Pine.LNX.4.44.1002081632060.17664-100000@citation2.av8.net>
References: <20100208204426.01C756E7CFA@kilo.networkresonance.com> <Pine.LNX.4.44.1002081632060.17664-100000@citation2.av8.net>
User-Agent: Wanderlust/2.15.5 (Almost Unreal) Emacs/22.3 Mule/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka")
Content-Type: text/plain; charset=US-ASCII
Message-Id: <20100209033806.659516E7D95@kilo.networkresonance.com>
Cc: tls@ietf.org, Paul Hoffman <paul.hoffman@vpnc.org>
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Feb 2010 03:34:55 -0000

At Mon, 8 Feb 2010 18:16:53 -0500 (EST),
Dean Anderson wrote:
> 
> On Mon, 8 Feb 2010, Eric Rescorla wrote:
> > > 
> > > I'll see if I can find a better reference.  I think the
> > > cryptographic fact I'm looking for is that a pseudo-random sequence
> > > is compromised by having part of the sequence known.
> > 
> > Well, this isn't true. In fact, it's a basic design requirement of
> > CSPRNGs that this not be so (up to the input entropy of the PRNG). If
> > you have any evidence that the standard PRNGs/PRFs fall significantly
> > short of this requirement, this would be a result worthy of
> > publication in a good conference.
> 
> Actually, it appears to me that it is an unproven assumption of the
> next-bit test. ("it" being that there is no polynomial time algorithm to
> calculate the next bit)  I believe the key phrase is "up to the input
> entropy of the PRNG". If you have enough of the sequence, you can get
> the whole sequence.  The TLS random exposes an essentially unlimited
> amount of the pseudo-random sequence.

Again, this is the distinction between information theoretic security
and security based on complexity-theoretic assumptions.  Effectively
all cryptography (with the exception of one time pads) only offers
security up to at best complexity theoretic bounds.

As a non-PRNG example, given a small number of plaintext/ciphertext
pairs it is in principle possible to derive the AES key that performed
the encryption. However, if this were possible to do in less than
2^{k} operations (where k is the size of the key) than this would
constitute a severe weakness in AES.

Similarly, in principle with unlimited computational power one can
derive the PRNG state from the output, as long as the output is longer
than the PRNG internal state. However, in a properly designed PRNG,
actually reversing the state of the PRNG should be computationally
infeasible. (And given that PRNGs are generally based on 
a similar set of cryptographic primitives [e.g., message digests])
it's not crazy to think that PRNGs indeed do have these properties.
If one has a PRNG which does not meet this property, it would be
better to fix that, rather than worry about all possible ways
in which output could leak.

-Ekr


From ekr@networkresonance.com  Mon Feb  8 20:49:03 2010
Return-Path: <ekr@networkresonance.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 34C833A7162 for <tls@core3.amsl.com>; Mon,  8 Feb 2010 20:49:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.018
X-Spam-Level: 
X-Spam-Status: No, score=0.018 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_COM=0.553, HOST_MISMATCH_NET=0.311, RDNS_DYNAMIC=0.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 NYO+yEF8asMy for <tls@core3.amsl.com>; Mon,  8 Feb 2010 20:49:02 -0800 (PST)
Received: from kilo.networkresonance.com (74-95-2-169-SFBA.hfc.comcastbusiness.net [74.95.2.169]) by core3.amsl.com (Postfix) with ESMTP id 8D19228C0E3 for <tls@ietf.org>; Mon,  8 Feb 2010 20:49:02 -0800 (PST)
Received: from kilo.local (localhost [127.0.0.1]) by kilo.networkresonance.com (Postfix) with ESMTP id 6E7806E7DD2; Mon,  8 Feb 2010 20:52:14 -0800 (PST)
Date: Mon, 08 Feb 2010 20:52:12 -0800
From: Eric Rescorla <ekr@networkresonance.com>
To: mrex@sap.com
In-Reply-To: <20100209032703.476306E7D80@kilo.networkresonance.com>
References: <20100208204426.01C756E7CFA@kilo.networkresonance.com> <201002082259.o18MxsB6017864@fs4113.wdf.sap.corp> <20100209032703.476306E7D80@kilo.networkresonance.com>
User-Agent: Wanderlust/2.15.5 (Almost Unreal) Emacs/22.3 Mule/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka")
Content-Type: text/plain; charset=US-ASCII
Message-Id: <20100209045214.6E7806E7DD2@kilo.networkresonance.com>
Cc: paul.hoffman@vpnc.org, tls@ietf.org
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Feb 2010 04:49:03 -0000

At Mon, 08 Feb 2010 19:27:01 -0800,
Eric Rescorla wrote:
> In general, if you have an acceptable amount of entropy you
> don't need to worry about leaking PRNG output. If you don't
> you really don't have any business doing TLS.

This wasn't well phrased. If you're a TLS server and you
just do static RSA, then it is safe to do TLS even without
a good source of entropy. On the other hand, if you're doing
DHE or you're a TLS client doing static RSA, then it's pretty
hard to have a secure system unless you can muster enough
entropy to make exhaustive search of the entropy space
imdeasible.

-Ekr


From mrex@sap.com  Tue Feb  9 06:53:30 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 DCBC73A7391 for <tls@core3.amsl.com>; Tue,  9 Feb 2010 06:53:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.216
X-Spam-Level: 
X-Spam-Status: No, score=-10.216 tagged_above=-999 required=5 tests=[AWL=0.033, 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 g0fIo0SjABtL for <tls@core3.amsl.com>; Tue,  9 Feb 2010 06:53:29 -0800 (PST)
Received: from smtpde03.sap-ag.de (smtpde03.sap-ag.de [155.56.68.140]) by core3.amsl.com (Postfix) with ESMTP id 7B1843A71FA for <tls@ietf.org>; Tue,  9 Feb 2010 06:53:29 -0800 (PST)
Received: from mail.sap.corp by smtpde03.sap-ag.de (26) with ESMTP id o19EsYaO023447 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 9 Feb 2010 15:54:34 +0100 (MET)
From: Martin Rex <mrex@sap.com>
Message-Id: <201002091454.o19EsXuL014610@fs4113.wdf.sap.corp>
To: ekr@networkresonance.com (Eric Rescorla)
Date: Tue, 9 Feb 2010 15:54:33 +0100 (MET)
In-Reply-To: <20100209032703.476306E7D80@kilo.networkresonance.com> from "Eric Rescorla" at Feb 8, 10 07:27:01 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] New drafts: adding input to the TLS master secret
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, 09 Feb 2010 14:53:31 -0000

Eric Rescorla wrote:
> 
> At Mon, 8 Feb 2010 23:59:54 +0100 (MET), Martin Rex wrote:
> > 
> > Eric Rescorla wrote:
> > > 
> > > With any reasonable PRNG this is not a security concern.
> > 
> > You may be looking at the problem from the wrong angle.
> > 
> > If there is not enough entropy to seed your CPRNG, then it is
> > possible to brute force the entire entropy range and check for matches
> > with the leaked randomness to know about the "unleaked" randomness
> > that goes into the client key exchange (or premaster secret for RSA).
> 
> Yes, I'm aware of this fact. In fact, see [YRS+09] for a worked example.

The issue has come up several times.

I remember this one (Netscape-Browser, SSL session encryption, 1995):
http://marc.info/?l=bugtraq&m=87602167418753&w=2

The problem with debian was more severe for the servers, because the
lack of randomness persisted in the rsa keypairs of the server certificates,
i.e. lack-of-protection for the key-exchange rather than lack of
entropy in the the client-generated premaster secret.

> 
> It's not clear to me that avoiding leakage of any PRNG output helps
> that much, since an attacker who knows the potential outputs of the
> PRNG can simply do trial decryption to see if the projected outputs
> produce correct decryptions. The reason it helps in the example above
> is that you need to track the evolution of the PRNG through multiple
> requests. However, this seems like a fairly unusual case. It 
> would not, for instance, likely apply to clients, which only
> maintain a small number of PRNG contexts.


I agree that it does not help that much, only making the exhaustive
search of the entropy space more cpu-intensive (similar to the
iteration count on string-to-key operations for PBE).

My primary concern is with the reasoning behind the extension,
what has been given does not seem to improve the situation at all.
If anything, this extension could make the problem slightly worse.


> 
>                                  If you're a TLS server and you
> just do static RSA, then it is safe to do TLS even without
> a good source of entropy. On the other hand, if you're doing
> DHE or you're a TLS client doing static RSA, then it's pretty
> hard to have a secure system unless you can muster enough
> entropy to make exhaustive search of the entropy space
> infeasible.


I would be careful with such a statement.  The most difficult
part about the OpenSSL debian problem wasn't about getting OpenSSL fixed,
it was about replacing all the low-entropy keypairs / server certificates
that had been generated.  The majority of Browsers, and therefore the
entropy in the RSA premaster secrets, did never have this particular
Debian randomness problem. Sessions were affected through the
lack-of-protection on the TLS key-exchange (RSA premaster secret encrypted
with a low-entropy server key).  So if you have a TLS server without a
good source of entropy, you definitely should create the server's keypair
someplace else and transfer both, server key and cert onto that device
rather than having the device create its own keypair.


-Martin

From brian@briansmith.org  Tue Feb  9 07:45:28 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 8780228C1FF for <tls@core3.amsl.com>; Tue,  9 Feb 2010 07:45:28 -0800 (PST)
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 N02x-HYuegcB for <tls@core3.amsl.com>; Tue,  9 Feb 2010 07:45:27 -0800 (PST)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id B17403A739E for <tls@ietf.org>; Tue,  9 Feb 2010 07:45:27 -0800 (PST)
Received: from T60 (unknown [70.132.143.82]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id A1F54509DF; Tue,  9 Feb 2010 10:46:27 -0500 (EST)
From: "Brian Smith" <brian@briansmith.org>
To: "'Ravi Ganesan'" <ravi@findravi.com>
References: <3561bdcc1002022012s2867aac2vaa154013b62e8489@mail.gmail.com>	 <000601caa694$cf3e2ed0$6dba8c70$@org> <3561bdcc1002051905r24d9dadbi7d815d0d1dc4a19c@mail.gmail.com>
In-Reply-To: <3561bdcc1002051905r24d9dadbi7d815d0d1dc4a19c@mail.gmail.com>
Date: Tue, 9 Feb 2010 09:46:23 -0800
Message-ID: <0d6201caa9af$d2217760$76646620$@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: AQK3EY0bo4Ss8IReb7cv2eP2noLxrAJdZBT7Ac9wtWMCYeTZcA==
Content-Language: en-us
Cc: tls@ietf.org
Subject: Re: [TLS] Single round trip abbreviated handshake
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, 09 Feb 2010 15:45:28 -0000

Ravi Ganesan wrote:
> ii) Absolutely recognize replay issue, which requires caching within
> clock slew you tolerate, or Adam's epoch scheme. Does all this make
> protocol messier...absolutely! Backing out of a ChangeCipherCpecs,
> having the application presumptuously send data and then back out when
> it realizes something went wrong is all messy. Point is some might be
> willing to live with this messiness for the gain in performance.

With DTLS, you can "resume a connection" and send application data all =
within *one* segment (half a round-trip). If you used DTLS then you =
wouldn't need to invent anything new, AFAICT.

Regards,
Brian


From Michael.Tuexen@lurchi.franken.de  Tue Feb  9 07:59:24 2010
Return-Path: <Michael.Tuexen@lurchi.franken.de>
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 C2D493A73E0 for <tls@core3.amsl.com>; Tue,  9 Feb 2010 07:59:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.3
X-Spam-Level: 
X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, MIME_8BIT_HEADER=0.3, NO_RELAYS=-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 6Is0NsZc0euT for <tls@core3.amsl.com>; Tue,  9 Feb 2010 07:59:24 -0800 (PST)
Received: from mail-n.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) by core3.amsl.com (Postfix) with ESMTP id CCD293A73DA for <tls@ietf.org>; Tue,  9 Feb 2010 07:59:23 -0800 (PST)
Received: from [IPv6:2002:508f:f7f7::224:36ff:feef:67d1] (unknown [IPv6:2002:508f:f7f7:0:224:36ff:feef:67d1]) by mail-n.franken.de (Postfix) with ESMTP id A8A761C0B461C; Tue,  9 Feb 2010 17:00:27 +0100 (CET)
Mime-Version: 1.0 (Apple Message framework v1077)
Content-Type: text/plain; charset=us-ascii
From: =?iso-8859-1?Q?Michael_T=FCxen?= <Michael.Tuexen@lurchi.franken.de>
In-Reply-To: <0d6201caa9af$d2217760$76646620$@briansmith.org>
Date: Tue, 9 Feb 2010 17:00:26 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <8DBCC508-44A2-4A43-8176-FF5D7E458AFF@lurchi.franken.de>
References: <3561bdcc1002022012s2867aac2vaa154013b62e8489@mail.gmail.com>	 <000601caa694$cf3e2ed0$6dba8c70$@org> <3561bdcc1002051905r24d9dadbi7d815d0d1dc4a19c@mail.gmail.com> <0d6201caa9af$d2217760$76646620$@briansmith.org>
To: Brian Smith <brian@briansmith.org>
X-Mailer: Apple Mail (2.1077)
Cc: 'Ravi Ganesan' <ravi@findravi.com>, tls@ietf.org
Subject: Re: [TLS] Single round trip abbreviated handshake
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, 09 Feb 2010 15:59:24 -0000

On Feb 9, 2010, at 6:46 PM, Brian Smith wrote:

> Ravi Ganesan wrote:
>> ii) Absolutely recognize replay issue, which requires caching within
>> clock slew you tolerate, or Adam's epoch scheme. Does all this make
>> protocol messier...absolutely! Backing out of a ChangeCipherCpecs,
>> having the application presumptuously send data and then back out =
when
>> it realizes something went wrong is all messy. Point is some might be
>> willing to live with this messiness for the gain in performance.
>=20
> With DTLS, you can "resume a connection" and send application data all =
within *one* segment (half a round-trip). If you used DTLS then you =
wouldn't need to invent anything new, AFAICT.
... not if you run DTLS over a connection oriented transport protocol
like DCCP or SCTP. For the new transport connection you need to
establish a new DTLS connection.

Best regards
Michael
>=20
> Regards,
> Brian
>=20
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
>=20


From ravi@findravi.com  Tue Feb  9 08:14:11 2010
Return-Path: <ravi@findravi.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 3F7303A73C7 for <tls@core3.amsl.com>; Tue,  9 Feb 2010 08:14:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.747
X-Spam-Level: 
X-Spam-Status: No, score=-1.747 tagged_above=-999 required=5 tests=[AWL=0.230,  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 a1FV6TTvwKmv for <tls@core3.amsl.com>; Tue,  9 Feb 2010 08:14:10 -0800 (PST)
Received: from mail-px0-f204.google.com (mail-px0-f204.google.com [209.85.216.204]) by core3.amsl.com (Postfix) with ESMTP id 38F7528C21C for <tls@ietf.org>; Tue,  9 Feb 2010 08:14:10 -0800 (PST)
Received: by pxi42 with SMTP id 42so8541383pxi.5 for <tls@ietf.org>; Tue, 09 Feb 2010 08:15:12 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.252.8 with SMTP id z8mr5691100rvh.173.1265732107401; Tue,  09 Feb 2010 08:15:07 -0800 (PST)
In-Reply-To: <0d6201caa9af$d2217760$76646620$@briansmith.org>
References: <3561bdcc1002022012s2867aac2vaa154013b62e8489@mail.gmail.com> <000601caa694$cf3e2ed0$6dba8c70$@org> <3561bdcc1002051905r24d9dadbi7d815d0d1dc4a19c@mail.gmail.com> <0d6201caa9af$d2217760$76646620$@briansmith.org>
Date: Tue, 9 Feb 2010 08:15:07 -0800
Message-ID: <3561bdcc1002090815y98f7bf6taf0aa5e4087974c9@mail.gmail.com>
From: Ravi Ganesan <ravi@findravi.com>
To: Brian Smith <brian@briansmith.org>
Content-Type: text/plain; charset=UTF-8
Cc: tls@ietf.org
Subject: Re: [TLS] Single round trip abbreviated handshake
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, 09 Feb 2010 16:14:11 -0000

>
> With DTLS, you can "resume a connection" and send application data all within *one* segment (half a round-trip). If you used DTLS then you wouldn't need to invent anything new, AFAICT.
>
> Regards,
> Brian
>

I will check it out again, but my understanding was that DTLS is
essentially a binding of TLS for UDP, but does not change the
handshake semantics.

Do keep in mind that the ability to start sending data after the
client_hello by itself does not help, if the client_hello does not
contain all the information needed for the Server to authenticate the
client. So if the server responds with server_hello and then has to
wait for the client_finished, it may not really help (depending on
application).

From ekr@networkresonance.com  Tue Feb  9 08:34:57 2010
Return-Path: <ekr@networkresonance.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 C78AF3A7368 for <tls@core3.amsl.com>; Tue,  9 Feb 2010 08:34:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.018
X-Spam-Level: 
X-Spam-Status: No, score=0.018 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_COM=0.553, HOST_MISMATCH_NET=0.311, RDNS_DYNAMIC=0.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 5-vz8oLuzfKo for <tls@core3.amsl.com>; Tue,  9 Feb 2010 08:34:57 -0800 (PST)
Received: from kilo.networkresonance.com (74-95-2-169-SFBA.hfc.comcastbusiness.net [74.95.2.169]) by core3.amsl.com (Postfix) with ESMTP id 20BCF3A73F5 for <tls@ietf.org>; Tue,  9 Feb 2010 08:34:57 -0800 (PST)
Received: from kilo.local (localhost [127.0.0.1]) by kilo.networkresonance.com (Postfix) with ESMTP id D738D6E7DF8; Tue,  9 Feb 2010 08:38:13 -0800 (PST)
Date: Tue, 09 Feb 2010 08:38:10 -0800
From: Eric Rescorla <ekr@networkresonance.com>
To: mrex@sap.com
In-Reply-To: <201002091454.o19EsXuL014610@fs4113.wdf.sap.corp>
References: <20100209032703.476306E7D80@kilo.networkresonance.com>
User-Agent: Wanderlust/2.15.5 (Almost Unreal) Emacs/22.3 Mule/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka")
Content-Type: text/plain; charset=US-ASCII
Message-Id: <20100209163813.D738D6E7DF8@kilo.networkresonance.com>
Cc: tls@ietf.org
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Feb 2010 16:34:57 -0000

At Tue, 9 Feb 2010 15:54:33 +0100 (MET),
> > 
> >                                  If you're a TLS server and you
> > just do static RSA, then it is safe to do TLS even without
> > a good source of entropy. On the other hand, if you're doing
> > DHE or you're a TLS client doing static RSA, then it's pretty
> > hard to have a secure system unless you can muster enough
> > entropy to make exhaustive search of the entropy space
> > infeasible.
> 
> 
> I would be careful with such a statement.  The most difficult
> part about the OpenSSL debian problem wasn't about getting OpenSSL fixed,
> it was about replacing all the low-entropy keypairs / server certificates
> that had been generated.  The majority of Browsers, and therefore the
> entropy in the RSA premaster secrets, did never have this particular
> Debian randomness problem. Sessions were affected through the
> lack-of-protection on the TLS key-exchange (RSA premaster secret encrypted
> with a low-entropy server key).  So if you have a TLS server without a
> good source of entropy, you definitely should create the server's keypair
> someplace else and transfer both, server key and cert onto that device
> rather than having the device create its own keypair.

Yes, of course.

-Ekr

From ekr@networkresonance.com  Tue Feb  9 08:36:21 2010
Return-Path: <ekr@networkresonance.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 7A2A13A73EF for <tls@core3.amsl.com>; Tue,  9 Feb 2010 08:36:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.018
X-Spam-Level: 
X-Spam-Status: No, score=0.018 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_COM=0.553, HOST_MISMATCH_NET=0.311, RDNS_DYNAMIC=0.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 Q9M8WOFZFkIt for <tls@core3.amsl.com>; Tue,  9 Feb 2010 08:36:20 -0800 (PST)
Received: from kilo.networkresonance.com (74-95-2-169-SFBA.hfc.comcastbusiness.net [74.95.2.169]) by core3.amsl.com (Postfix) with ESMTP id C3FBF3A7368 for <tls@ietf.org>; Tue,  9 Feb 2010 08:36:20 -0800 (PST)
Received: from kilo.local (localhost [127.0.0.1]) by kilo.networkresonance.com (Postfix) with ESMTP id D0DA76E7DF9; Tue,  9 Feb 2010 08:39:36 -0800 (PST)
Date: Tue, 09 Feb 2010 08:39:36 -0800
From: Eric Rescorla <ekr@networkresonance.com>
To: "Brian Smith" <brian@briansmith.org>
In-Reply-To: <0d6201caa9af$d2217760$76646620$@briansmith.org>
References: <3561bdcc1002022012s2867aac2vaa154013b62e8489@mail.gmail.com> <000601caa694$cf3e2ed0$6dba8c70$@org> <3561bdcc1002051905r24d9dadbi7d815d0d1dc4a19c@mail.gmail.com> <0d6201caa9af$d2217760$76646620$@briansmith.org>
User-Agent: Wanderlust/2.15.5 (Almost Unreal) Emacs/22.3 Mule/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka")
Content-Type: text/plain; charset=US-ASCII
Message-Id: <20100209163937.D0DA76E7DF9@kilo.networkresonance.com>
Cc: 'Ravi Ganesan' <ravi@findravi.com>, tls@ietf.org
Subject: Re: [TLS] Single round trip abbreviated handshake
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, 09 Feb 2010 16:36:21 -0000

At Tue, 9 Feb 2010 09:46:23 -0800,
Brian Smith wrote:
> 
> Ravi Ganesan wrote:
> > ii) Absolutely recognize replay issue, which requires caching within
> > clock slew you tolerate, or Adam's epoch scheme. Does all this make
> > protocol messier...absolutely! Backing out of a ChangeCipherCpecs,
> > having the application presumptuously send data and then back out when
> > it realizes something went wrong is all messy. Point is some might be
> > willing to live with this messiness for the gain in performance.
> 
> With DTLS, you can "resume a connection" and send application data
> all within *one* segment (half a round-trip). If you used DTLS then
> you wouldn't need to invent anything new, AFAICT.

When you say "With DTLS" you mean with some modification to DTLS,
correct? AFAIK DTLS currently requires the client to compute
the keys based on the ServerRandom which precludes what you
suggest here.

-Ekr


From marsh@extendedsubset.com  Tue Feb  9 09:23: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 A79DE28C23E for <tls@core3.amsl.com>; Tue,  9 Feb 2010 09:23:47 -0800 (PST)
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=[AWL=0.000,  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 jn-0FqGzJBrb for <tls@core3.amsl.com>; Tue,  9 Feb 2010 09:23:45 -0800 (PST)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id 7889D28C15C for <tls@ietf.org>; Tue,  9 Feb 2010 09:23:45 -0800 (PST)
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 1NetpT-000EPH-NC; Tue, 09 Feb 2010 17:24:51 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 85C506048; Tue,  9 Feb 2010 17:24: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: U2FsdGVkX18qlifrHfZ3JQR4cjc23Ak5boG979MMCRQ=
Message-ID: <4B719A52.4080802@extendedsubset.com>
Date: Tue, 09 Feb 2010 12:24:34 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: Eric Rescorla <ekr@networkresonance.com>
References: <20100208204426.01C756E7CFA@kilo.networkresonance.com>	<201002082259.o18MxsB6017864@fs4113.wdf.sap.corp>	<20100209032703.476306E7D80@kilo.networkresonance.com> <20100209045214.6E7806E7DD2@kilo.networkresonance.com>
In-Reply-To: <20100209045214.6E7806E7DD2@kilo.networkresonance.com>
X-Enigmail-Version: 0.96.0
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: paul.hoffman@vpnc.org, tls@ietf.org
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Feb 2010 17:23:48 -0000

Eric Rescorla wrote:
> At Mon, 08 Feb 2010 19:27:01 -0800,
> Eric Rescorla wrote:
>> In general, if you have an acceptable amount of entropy you
>> don't need to worry about leaking PRNG output. If you don't
>> you really don't have any business doing TLS.
> 
> This wasn't well phrased.

I liked it.

> If you're a TLS server and you
> just do static RSA, then it is safe to do TLS even without
> a good source of entropy.

It's only safe to that one narrow perspective. Other things:

Did you generate a cert signing request on that box?
The server SSH keys?
Is SSH using DH?
Were stored passwords well-salted?
Is DNS as used by that box vulnerable?
TCP initial sequence numbers broken?
Etc.

- Marsh

From Michael.Tuexen@lurchi.franken.de  Tue Feb  9 09:50:49 2010
Return-Path: <Michael.Tuexen@lurchi.franken.de>
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 CDE3528C16F for <tls@core3.amsl.com>; Tue,  9 Feb 2010 09:50:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.279
X-Spam-Level: *
X-Spam-Status: No, score=1.279 tagged_above=-999 required=5 tests=[AWL=-0.759,  BAYES_00=-2.599, HOST_EQ_DIP_TDIAL=2.144, HOST_MISMATCH_NET=0.311,  MIME_8BIT_HEADER=0.3, RCVD_IN_PBL=0.905, RCVD_IN_SORBS_DUL=0.877, RDNS_DYNAMIC=0.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 Z7AjPSduLta4 for <tls@core3.amsl.com>; Tue,  9 Feb 2010 09:50:49 -0800 (PST)
Received: from mail-n.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) by core3.amsl.com (Postfix) with ESMTP id 9FE5728C24B for <tls@ietf.org>; Tue,  9 Feb 2010 09:50:48 -0800 (PST)
Received: from [192.168.1.190] (p508FF7F7.dip.t-dialin.net [80.143.247.247]) by mail-n.franken.de (Postfix) with ESMTP id 255731C0B461C; Tue,  9 Feb 2010 18:51:54 +0100 (CET)
Mime-Version: 1.0 (Apple Message framework v1077)
Content-Type: text/plain; charset=us-ascii
From: =?iso-8859-1?Q?Michael_T=FCxen?= <Michael.Tuexen@lurchi.franken.de>
In-Reply-To: <20100209163937.D0DA76E7DF9@kilo.networkresonance.com>
Date: Tue, 9 Feb 2010 18:51:53 +0100
Content-Transfer-Encoding: 7bit
Message-Id: <B2A5E458-6AFC-4D5E-804C-FC719F39B8B3@lurchi.franken.de>
References: <3561bdcc1002022012s2867aac2vaa154013b62e8489@mail.gmail.com> <000601caa694$cf3e2ed0$6dba8c70$@org> <3561bdcc1002051905r24d9dadbi7d815d0d1dc4a19c@mail.gmail.com> <0d6201caa9af$d2217760$76646620$@briansmith.org> <20100209163937.D0DA76E7DF9@kilo.networkresonance.com>
To: Eric Rescorla <ekr@networkresonance.com>
X-Mailer: Apple Mail (2.1077)
Cc: tls@ietf.org, 'Ravi Ganesan' <ravi@findravi.com>
Subject: Re: [TLS] Single round trip abbreviated handshake
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, 09 Feb 2010 17:50:49 -0000

On Feb 9, 2010, at 5:39 PM, Eric Rescorla wrote:

> At Tue, 9 Feb 2010 09:46:23 -0800,
> Brian Smith wrote:
>> 
>> Ravi Ganesan wrote:
>>> ii) Absolutely recognize replay issue, which requires caching within
>>> clock slew you tolerate, or Adam's epoch scheme. Does all this make
>>> protocol messier...absolutely! Backing out of a ChangeCipherCpecs,
>>> having the application presumptuously send data and then back out when
>>> it realizes something went wrong is all messy. Point is some might be
>>> willing to live with this messiness for the gain in performance.
>> 
>> With DTLS, you can "resume a connection" and send application data
>> all within *one* segment (half a round-trip). If you used DTLS then
>> you wouldn't need to invent anything new, AFAICT.
> 
> When you say "With DTLS" you mean with some modification to DTLS,
> correct? AFAIK DTLS currently requires the client to compute
> the keys based on the ServerRandom which precludes what you
> suggest here.
I assume that he just "continues to use an existing DTLS connect",
or am I wrong? 

Best regards
Michael
> 
> -Ekr
> 
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
> 


From dean@av8.com  Tue Feb  9 10:21:26 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 9DD5328C1D4 for <tls@core3.amsl.com>; Tue,  9 Feb 2010 10:21:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.206
X-Spam-Level: 
X-Spam-Status: No, score=-2.206 tagged_above=-999 required=5 tests=[AWL=0.393,  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 wxgxs93qv0db for <tls@core3.amsl.com>; Tue,  9 Feb 2010 10:21:24 -0800 (PST)
Received: from cirrus.av8.net (cirrus.av8.net [130.105.36.66]) by core3.amsl.com (Postfix) with ESMTP id 757F03A6CED for <tls@ietf.org>; Tue,  9 Feb 2010 10:21:23 -0800 (PST)
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 o19IMSwo018204 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 9 Feb 2010 13:22:28 -0500
Date: Tue, 9 Feb 2010 13:22:27 -0500 (EST)
From: Dean Anderson <dean@av8.com>
X-X-Sender: dean@citation2.av8.net
To: Marsh Ray <marsh@extendedsubset.com>
In-Reply-To: <4B70C1D9.5020505@extendedsubset.com>
Message-ID: <Pine.LNX.4.44.1002091230380.17664-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] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Feb 2010 18:21:27 -0000

I agree with Martin Rex, I think a counter should be used instead of a 
random number.

Inline

On Mon, 8 Feb 2010, Marsh Ray wrote:


> To me that does not permit a conforming implementation to "expose an
> essentially unlimited amount of the pseudo-random sequence".
> 
> Any competent implementer would know that they have to keep their
> secure RNG seeded to a reasonable degree.

Actually, secure RNG isn't always an implementer decision, but an
operations option. For example, Apache has an option to turn off the
waiting on the secure random generator.  Otherwise, it hangs until it
gets enough entropy. I suspect there may be a lot of apache sites
without sufficient entropy.

> > From "Handbook of Applied Cryptography" Section 5.1.1 on Pseudo
> > Random Bit Generators:
> > 
> >   "The output of a PRBG is not random; in fact the number of possible
> >   output sequences is at most a small fraction 2^k/2^l, of all possible
> >   binary sequences of length l."
> > 
> > So one can see, as l gets larger with k constant, the fraction of all
> > output sequences gets smaller.  The pre_master_secret is 384 bits and
> > the Random value is presently 256 bits. So the random exposes 40% of the
> > sequence.
> 
> 2^256 / 2^384
> is not anything like 40%. Looks to me like it's about
> 0.00000000000000000000000000000000000003%

You are misreading what I wrote. The number above is the fraction of all
possible sequences of length 384 that can be generated by a PRNG seeded
with 256 bits of entropy. As you note, its a very small fraction.  In
fact, its no more than the original entropy.

However, the 40% referred to:

  640 bits are taken from the PRNG:
     because pre_master_secret (384) + client.random(256) = 640

  256 bits are exposed to the sniffer. 256/640 = .4

So 40% of the sequence bits are exposed to sniffers.  I assume the
sniffer can see every TLS connection.

For LFSR, I /think/ 40% was enough to recover the whole sequence (fact
check, I'm not sure).  So, it might be plausible that this amount might
be enough to recover the pseudo random sequence, too. Particularly if
there isn't suffient entropy in the key to start with.  The 256 bits of
exposed random give an attacker a means to check on the state of the
PRNG.

> You haven't identified an actual weakness, only asserted that there
> could be one.

Yes.  I haven't identified a purely cryptographic weakness. I haven't
found a break in sha256, particularly not if a sufficient amount of key
entropy is used. And if everyone strictly follows total secure practices
on key entropy and there are no sha-1,md5 similar breaks in sha256, then
indeed there is no purely cryptographic problem.

But in practice, there isn't always sufficient entropy for secure RNG.
In that case, there is a crucial exposure of sequence bits that doesn't
need to happen.

If one didn't expose all those bits from the PRNG, there wouldn't be a
break on the PRNG even with less entropy: There would be no way to test
bits from the PRNG to find its state.

I'd say what I've exposed is a design flaw in the way crypto is being
used, not a purely cryptographic weakness.  My assertion comes down to
this: If PRNG bits aren't exposed to sniffers, they can't be exploited
by snifffers. So lets not expose PRNG bits.

> > Why not alter TLS to require a different pseudo-random sequence
> > generator for Random values?
> 
> I didn't design it of course, but I would say it's because the actual
> input entropy is assumed to be finite and by is impossible to measure
> accurately. Dividing it between two separate pools would probably end
> up diluting it in one or the other.

I agree. A counter should be used, not another PRNG.

> For example, many OSes collect and pool entropy in the kernel where it
> can be shared by all applications. This is essentially the opposite of
> your suggestion.

Yes. That is the best of a bad choice, too.  The pool was used because
its hard to collect sufficient entropy. But allowing others to get bits
from the pool opens a way to reduce entropy available and cause servers
to either wait (or proceed without sufficient entropy).  The way TLS is
currently arranged, TLS really screws those who don't have sufficient
entropy all the time. And TLS _might_ still screw those who do.

		--Dean




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




From ravi@findravi.com  Tue Feb  9 10:34:03 2010
Return-Path: <ravi@findravi.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 08D9628C111 for <tls@core3.amsl.com>; Tue,  9 Feb 2010 10:34:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.635
X-Spam-Level: 
X-Spam-Status: No, score=-1.635 tagged_above=-999 required=5 tests=[AWL=0.042,  BAYES_00=-2.599, 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 jQZ7xUvv70xr for <tls@core3.amsl.com>; Tue,  9 Feb 2010 10:34:02 -0800 (PST)
Received: from mail-pz0-f190.google.com (mail-pz0-f190.google.com [209.85.222.190]) by core3.amsl.com (Postfix) with ESMTP id F32B23A6821 for <tls@ietf.org>; Tue,  9 Feb 2010 10:34:01 -0800 (PST)
Received: by pzk28 with SMTP id 28so478105pzk.31 for <tls@ietf.org>; Tue, 09 Feb 2010 10:35:06 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.247.15 with SMTP id u15mr5796435rvh.166.1265740506495;  Tue, 09 Feb 2010 10:35:06 -0800 (PST)
In-Reply-To: <B2A5E458-6AFC-4D5E-804C-FC719F39B8B3@lurchi.franken.de>
References: <3561bdcc1002022012s2867aac2vaa154013b62e8489@mail.gmail.com> <000601caa694$cf3e2ed0$6dba8c70$@org> <3561bdcc1002051905r24d9dadbi7d815d0d1dc4a19c@mail.gmail.com> <0d6201caa9af$d2217760$76646620$@briansmith.org> <20100209163937.D0DA76E7DF9@kilo.networkresonance.com> <B2A5E458-6AFC-4D5E-804C-FC719F39B8B3@lurchi.franken.de>
Date: Tue, 9 Feb 2010 10:35:06 -0800
Message-ID: <3561bdcc1002091035h4c92965ds497a8a4466caa14e@mail.gmail.com>
From: Ravi Ganesan <ravi@findravi.com>
To: =?UTF-8?Q?Michael_T=C3=BCxen?= <Michael.Tuexen@lurchi.franken.de>
Content-Type: text/plain; charset=UTF-8
Cc: tls@ietf.org
Subject: Re: [TLS] Single round trip abbreviated handshake
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, 09 Feb 2010 18:34:03 -0000

> I assume that he just "continues to use an existing DTLS connect",
> or am I wrong?
>
> Best regards
> Michael

I do not know about DTLS, but in regular TLS one cannot say open a
fresh socket, send a client_hello with an existing session ID, do a
change cipher_spec and start sending data using keys from old session.
You really need to go through the abbreviated handshake dance for a
number of reasons, including fresh keys to keep cut and paste attacks
at bay, etc. It would be very ironic if we ended up with holes that
were fixed in the SSL 2.0 to 3.0 transition. (See section 3.0 and 4.0
of this paper http://www.schneier.com/paper-ssl.pdf).

From brian@briansmith.org  Tue Feb  9 11:46:50 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 CC68928C1CA for <tls@core3.amsl.com>; Tue,  9 Feb 2010 11:46:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.449
X-Spam-Level: 
X-Spam-Status: No, score=-2.449 tagged_above=-999 required=5 tests=[AWL=-0.150, BAYES_00=-2.599, 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 cu12CFTXZRg1 for <tls@core3.amsl.com>; Tue,  9 Feb 2010 11:46:50 -0800 (PST)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 308B73A67F6 for <tls@ietf.org>; Tue,  9 Feb 2010 11:46:40 -0800 (PST)
Received: from T60 (unknown [70.132.143.82]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id B75F1509DA; Tue,  9 Feb 2010 14:47:40 -0500 (EST)
From: "Brian Smith" <brian@briansmith.org>
To: "'Ravi Ganesan'" <ravi@findravi.com>, =?UTF-8?Q?'Michael_T=C3=BCxen'?= <Michael.Tuexen@lurchi.franken.de>
References: <3561bdcc1002022012s2867aac2vaa154013b62e8489@mail.gmail.com>	 <000601caa694$cf3e2ed0$6dba8c70$@org>	 <3561bdcc1002051905r24d9dadbi7d815d0d1dc4a19c@mail.gmail.com>	 <0d6201caa9af$d2217760$76646620$@briansmith.org>	 <20100209163937.D0DA76E7DF9@kilo.networkresonance.com>	 <B2A5E458-6AFC-4D5E-804C-FC719F39B8B3@lurchi.franken.de> <3561bdcc1002091035h4c92965ds497a8a4466caa14e@mail.gmail.com>
In-Reply-To: <3561bdcc1002091035h4c92965ds497a8a4466caa14e@mail.gmail.com>
Date: Tue, 9 Feb 2010 13:47:41 -0800
Message-ID: <002e01caa9d1$84a5d540$8df17fc0$@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: AQK3EY0bo4Ss8IReb7cv2eP2noLxrAJdZBT7Ac9wtWMCYeTZcAFcZf6sAopFUPIBwQbU1QHSkoHs
Content-Language: en-us
Cc: tls@ietf.org
Subject: Re: [TLS] Single round trip abbreviated handshake
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, 09 Feb 2010 19:46:50 -0000

Michael T=C3=BCxen wrote:
> ... not if you run DTLS over a connection oriented transport
> protocol like DCCP or SCTP. For the new transport connection
> you need to establish a new DTLS connection.

That's true. But, MashSSL is TLS tunneled through HTTP over TCP, so it =
has a lot of flexibility in how it defines a "HTTP over TCP transport =
connection." MashSSL already lets that transport connection span =
multiple TCP connections (AFAICT).

> Michael T=C3=BCxen wrote:
> > I assume that he just "continues to use an existing DTLS connect", =
or
> > am I wrong?

You both understand the idea.

Ravi Ganesan wrote:
> I do not know about DTLS, but in regular TLS one cannot say open a =
fresh socket,
> send a client_hello with an existing session ID, do a change =
cipher_spec and
> start sending data using keys from old session.
> You really need to go through the abbreviated handshake dance for a =
number of
> reasons, including fresh keys to keep cut and paste attacks at bay, =
etc. It would
> be very ironic if we ended up with holes that were fixed in the SSL =
2.0 to 3.0
> transition. (See section 3.0 and 4.0 of this paper
> http://www.schneier.com/paper-ssl.pdf).

DTLS and even regular TLS wouldn=E2=80=99t work if that was true. I =
think it will be help to look at how DTLS works--in particular, how it =
distinguishes the start of a new DTLS handshake from a continuation of =
an existing DTLS connection.

Unfortunately, I can't really devote enough time to this topic to =
explain everything clearly. Maybe in a few weeks I will have time to =
work on it some more.

Regards,
Brian


From marsh@extendedsubset.com  Wed Feb 10 20:56:13 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 6455F28C17B for <tls@core3.amsl.com>; Wed, 10 Feb 2010 20:56:13 -0800 (PST)
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=[AWL=0.000,  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 Lt8cywhrv07P for <tls@core3.amsl.com>; Wed, 10 Feb 2010 20:56:12 -0800 (PST)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id 1C54628C0D6 for <tls@ietf.org>; Wed, 10 Feb 2010 20:56:12 -0800 (PST)
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 1NfR7E-000Heb-IA; Thu, 11 Feb 2010 04:57:24 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 39F546048; Thu, 11 Feb 2010 04:57: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: U2FsdGVkX1849YSJbW2+RkI5ESneTiZOh+2rDf3UpBE=
Message-ID: <4B738E37.5070900@extendedsubset.com>
Date: Wed, 10 Feb 2010 22:57:27 -0600
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: Dean Anderson <dean@av8.com>, "tls@ietf.org" <tls@ietf.org>
References: <Pine.LNX.4.44.1002091230380.17664-100000@citation2.av8.net>
In-Reply-To: <Pine.LNX.4.44.1002091230380.17664-100000@citation2.av8.net>
X-Enigmail-Version: 0.96.0
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Feb 2010 04:56:13 -0000

Dean Anderson wrote:
> I agree with Martin Rex, I think a counter should be used instead of a 
> random number.

IMHO, the solution to the design problem of insufficient entropy is not
to use a sequence counter.

>> Any competent implementer would know that they have to keep their
>> secure RNG seeded to a reasonable degree.
> 
> Actually, secure RNG isn't always an implementer decision, but an
> operations option. For example, Apache has an option to turn off the
> waiting on the secure random generator.  Otherwise, it hangs until it
> gets enough entropy. I suspect there may be a lot of apache sites
> without sufficient entropy.

Unless the documentation is misleading, they deserve what they get.

In particular, they'd better hope the administrator of the other peer
wasn't hoping to freeload on the random data contribution, too.

> However, the 40% referred to:
> 
>   640 bits are taken from the PRNG:
>      because pre_master_secret (384) + client.random(256) = 640
> 
>   256 bits are exposed to the sniffer. 256/640 = .4
> 
> So 40% of the sequence bits are exposed to sniffers.  I assume the
> sniffer can see every TLS connection.

If that represents a problem, then either there was really lousy seeding
or really interesting attack on the PRNG.

If I used AES-128 to transfer (128*.40) = 51 bits of plaintext known to
the attacker, should I be concerned that he can recover the key?

How does the method used to generate the IV factor in?

How does the method used to generate the MAC secret factor in?

What if I need to transfer 8 Kbits of known plaintext at the beginning
of the connection? How much entropy would need to feed into the key
material in order to be safe?

I don't have solid answers to these.

> For LFSR, I /think/ 40% was enough to recover the whole sequence (fact
> check, I'm not sure).

My impression is that an LSFR is greatly inferior to the PRNG which is
built from repeated HMACs with MD5 and SHA-1.

> So, it might be plausible that this amount might
> be enough to recover the pseudo random sequence, too.

Anything might be plausible.

To me, it's far more plausible that, if some of the random data were
replaced by sequences, people would very easily shoot themselves in the
foot with some obscure misconfiguration. Not needing that random data is
only safe in a very specific situation. Admins are used to configuring
these things, and the actual parameters are not known by both sides
until after the random has been sent.

Ideally it would not be trusted until after the Finished messages have
been validated.

> Particularly if
> there isn't suffient entropy in the key to start with.  The 256 bits of
> exposed random give an attacker a means to check on the state of the
> PRNG.

I'm a fan of continual seeding as entropy becomes available.

Are there really important systems with no chaotic interrupts or other
sensors and no high-precision timers which also need to perform TLS
handshakes?

Maybe some embedded system somewhere? These days even the smallest
microcontrollers have an abundance of timers and IO pins and often
several A/D inputs.

>> You haven't identified an actual weakness, only asserted that there
>> could be one.
> 
> Yes.  I haven't identified a purely cryptographic weakness. I haven't
> found a break in sha256, particularly not if a sufficient amount of key
> entropy is used. And if everyone strictly follows total secure practices
> on key entropy and there are no sha-1,md5 similar breaks in sha256, then
> indeed there is no purely cryptographic problem.
> 
> But in practice, there isn't always sufficient entropy for secure RNG.

I am concerned that permitting that case (i.e., trying to make it valid
in retrospective analysis) is unwise. It is likely to violate some
implicit and under-documented assumptions made in the design of SSL/TLS.
(Not to mention the cryptosystems above and below it on the protocol
stack and services on the same OS kernel).

> In that case, there is a crucial exposure of sequence bits that doesn't
> need to happen.
> 
> If one didn't expose all those bits from the PRNG, there wouldn't be a
> break on the PRNG even with less entropy: There would be no way to test
> bits from the PRNG to find its state.
> I'd say what I've exposed is a design flaw in the way crypto is being
> used, not a purely cryptographic weakness.  My assertion comes down to
> this: If PRNG bits aren't exposed to sniffers, they can't be exploited
> by snifffers. So lets not expose PRNG bits.

Why stop there? Doesn't that also apply to any ciphertext generated from
not-perfectly-random plaintext?

>> Dividing it between two separate pools would probably end
>> up diluting it in one or the other.
> 
> I agree. A counter should be used, not another PRNG.

Which is the ultimate form of dilution in one pool.

>> For example, many OSes collect and pool entropy in the kernel where it
>> can be shared by all applications. This is essentially the opposite of
>> your suggestion.
> 
> Yes. That is the best of a bad choice, too.  The pool was used because
> its hard to collect sufficient entropy. But allowing others to get bits
> from the pool opens a way to reduce entropy available

I understand the entropy pool depletes over time, in theory.

But it intuitively seems like a pool that had a healthy amount of
entropy merged in (I'm thinking a thousand or more bits) with a strong
mixing function can be expected hold up well. Particularly if a little
additional entropy is mixed in over time.

If you know of any remotely plausible attacks against a well-constructed
PRNG with 1024 bits of entropy I would like to read about them.
[cue specter of self-aware and omipotent NSA quantum computer]  :-)

For example, OpenSSL has this line:
#define ENTROPY_NEEDED 32 /* require 256 bits = 32 bytes of randomness*/

It requires that much at startup and then quits counting. It doesn't
care about deducting from the estimated entropy once the initial
threshold has been reached:
  * Once we've had enough initial seeding we don't bother to
  * adjust the entropy count, though, because we're not ambitious
  * to provide *information-theoretic* randomness.

> and cause servers
> to either wait (or proceed without sufficient entropy).  The way TLS is
> currently arranged, TLS really screws those who don't have sufficient
> entropy all the time.

You might as well say "TLS really screws with those who don't have a
reliable transport available".

It's just a design requirement.

It seems like you're constructing this strawman of "TLS without a
significant entropy source" then knocking him down and saying we should
modify the design for this case.

> And TLS _might_ still screw those who do.

That part I don't understand.

- Marsh

From frantz@pwpconsult.com  Wed Feb 10 23:01:33 2010
Return-Path: <frantz@pwpconsult.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 4BACA3A73C7 for <tls@core3.amsl.com>; Wed, 10 Feb 2010 23:01:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.67
X-Spam-Level: 
X-Spam-Status: No, score=-1.67 tagged_above=-999 required=5 tests=[AWL=-0.930,  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 e-ohhlHFAkzf for <tls@core3.amsl.com>; Wed, 10 Feb 2010 23:01:32 -0800 (PST)
Received: from elasmtp-dupuy.atl.sa.earthlink.net (elasmtp-dupuy.atl.sa.earthlink.net [209.86.89.62]) by core3.amsl.com (Postfix) with ESMTP id 3F0963A681D for <tls@ietf.org>; Wed, 10 Feb 2010 23:01:32 -0800 (PST)
Received: from [173.75.83.34] (helo=[192.168.1.5]) by elasmtp-dupuy.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from <frantz@pwpconsult.com>) id 1NfT4X-00019e-6C for tls@ietf.org; Thu, 11 Feb 2010 02:02:45 -0500
Date: Wed, 10 Feb 2010 23:05:42 -0800
From: Bill Frantz <frantz@pwpconsult.com>
To: tls@ietf.org
X-Priority: 3
In-Reply-To: <4B738E37.5070900@extendedsubset.com>
Message-ID: <r02010500-1049-DE8DC94116DB11DF826D0030658F0F64@[192.168.1.5]>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Mailer: Mailsmith 2.1.5 (Blindsider)
X-ELNK-Trace: 3a5e54fa03f1b3e21aa676d7e74259b7b3291a7d08dfec79c9783a120bec1b88b8790c1f7a781cb5350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c
X-Originating-IP: 173.75.83.34
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Feb 2010 07:01:33 -0000

marsh@extendedsubset.com (Marsh Ray) on Wednesday, February 10, 2010 wrote:

>I'm a fan of continual seeding as entropy becomes available.

However, be aware of "State Compromise Extension Attacks"*. If you dribble
in new entropy a few bits at a time to a compromised PRNG, and also expose
outputs of the PRNG, an attacker can try all possible values for the new
entropy and compare them with the known output continuing the compromise of
the PRNG. If instead, you save the new entropy until a large number of
unguessable bits are available, you foil this attack.

I belong to the school that says, "Give me enough unguessable bits (e.g
256), and a way to keep them secret, I can be secure to the heat death of
the universe." I like continually reseeding in large blocks because these
two requirements may not be possible.

Cheers - Bill

* John Kelsey, Bruce Schneier, David Wagner, Chris Hall: =E2=80=9CCryptanal=
ytic
Attacks on Pseudorandom Number Generators=E2=80=9D
<http://www.schneier.com/paper-prngs.pdf>

-----------------------------------------------------------------------
Bill Frantz        | gets() remains as a monument | Periwinkle
(408)356-8506      | to C's continuing support of | 16345 Englewood Ave
www.pwpconsult.com | buffer overruns.             | Los Gatos, CA 95032

From dean@av8.com  Fri Feb 12 11:28:25 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 39C3E3A7736 for <tls@core3.amsl.com>; Fri, 12 Feb 2010 11:28:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.982
X-Spam-Level: 
X-Spam-Status: No, score=-1.982 tagged_above=-999 required=5 tests=[AWL=0.017,  BAYES_00=-2.599, 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 T9OWHAXxPx3T for <tls@core3.amsl.com>; Fri, 12 Feb 2010 11:28:23 -0800 (PST)
Received: from cirrus.av8.net (cirrus.av8.net [130.105.36.66]) by core3.amsl.com (Postfix) with ESMTP id 7CF4D3A78D9 for <tls@ietf.org>; Fri, 12 Feb 2010 11:28:23 -0800 (PST)
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 o1CJTcnl003336 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Fri, 12 Feb 2010 14:29:39 -0500
Date: Fri, 12 Feb 2010 14:29:38 -0500 (EST)
From: Dean Anderson <dean@av8.com>
X-X-Sender: dean@citation2.av8.net
To: Marsh Ray <marsh@extendedsubset.com>
In-Reply-To: <4B738E37.5070900@extendedsubset.com>
Message-ID: <Pine.LNX.4.44.1002121346280.20568-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] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Feb 2010 19:28:25 -0000

On Wed, 10 Feb 2010, Marsh Ray wrote:

> Dean Anderson wrote:
> > I agree with Martin Rex, I think a counter should be used instead of a 
> > random number.
> 
> IMHO, the solution to the design problem of insufficient entropy is not
> to use a sequence counter.

The design problem is not insufficient entropy. The problem is that TLS
exposes information that does need to be exposed.  

I propose a design rule:   A PRNG should never be used to obtain a 
unique value. Instead a counter or a date should be used.

> >> Any competent implementer would know that they have to keep their
> >> secure RNG seeded to a reasonable degree.
> > 
> > Actually, secure RNG isn't always an implementer decision, but an
> > operations option. For example, Apache has an option to turn off the
> > waiting on the secure random generator.  Otherwise, it hangs until it
> > gets enough entropy. I suspect there may be a lot of apache sites
> > without sufficient entropy.
> 
> Unless the documentation is misleading, they deserve what they get.

Your lack of sympathy is misplaced. An attack can be used to deplete the 
entropy pool. 



> 
> To me, it's far more plausible that, if some of the random data were
> replaced by sequences, people would very easily shoot themselves in the
> foot with some obscure misconfiguration. Not needing that random data is
> only safe in a very specific situation. Admins are used to configuring
> these things, and the actual parameters are not known by both sides
> until after the random has been sent.


This is odd. As you put so much trust in the security of HMAC and by
implication the SHA-256-based PRF, so you can't really argue that the
master_secret calculated by

  PRF(pre_master_secret + client.counter + "master_secret" +  
      server.counter)

is going to be any less secure than it was before with *.random's

Using a counter reveals /nothing/ about pre_master_secret.  Using a 
random reveals /something/ about pre_master_secret.  Security is 
improved by revealing /nothing/ about pre_master_secret.

> I'm a fan of continual seeding as entropy becomes available.
> 
> Are there really important systems with no chaotic interrupts or other
> sensors and no high-precision timers which also need to perform TLS
> handshakes?

There are indeed servers that have to wait TLS connections for entropy
to become available. And as I pointed out, that entropy pool can be
attacked. Hence the apache configuration option, the ability in Linux
kernel to continue without sufficient entropy.

> > But in practice, there isn't always sufficient entropy for secure RNG.
> 
> I am concerned that permitting that case (i.e., trying to make it valid
> in retrospective analysis) is unwise. It is likely to violate some
> implicit and under-documented assumptions made in the design of SSL/TLS.
> (Not to mention the cryptosystems above and below it on the protocol
> stack and services on the same OS kernel).

It is way to late to prevent that practice.  The problem is that getting
entropy is actually very hard. Timers and IO pins are often insufficient
in anycase.


> > In that case, there is a crucial exposure of sequence bits that doesn't
> > need to happen.
> > 
> > If one didn't expose all those bits from the PRNG, there wouldn't be a
> > break on the PRNG even with less entropy: There would be no way to test
> > bits from the PRNG to find its state.
> > I'd say what I've exposed is a design flaw in the way crypto is being
> > used, not a purely cryptographic weakness.  My assertion comes down to
> > this: If PRNG bits aren't exposed to sniffers, they can't be exploited
> > by snifffers. So lets not expose PRNG bits.
> 
> Why stop there? Doesn't that also apply to any ciphertext generated from
> not-perfectly-random plaintext?

Yes and no.  I believe that recommendation is that one should never
encrypt the same plaintext in two different ciphers, and particularly
not the same cipher with different keys, as this exposes a differential
attack. On that condition, the information-theoretic answer is Yes.  
But you said 'not-perfectly-random, which might be different that
re-encrypting the same plaintext.

> >> Dividing it between two separate pools would probably end
> >> up diluting it in one or the other.
> > 
> > I agree. A counter should be used, not another PRNG.
> 
> Which is the ultimate form of dilution in one pool.

Importantly, though, it doesn't dilute the pool which the
pre_master_secret is using.  



> >> For example, many OSes collect and pool entropy in the kernel where it
> >> can be shared by all applications. This is essentially the opposite of
> >> your suggestion.
> > 
> > Yes. That is the best of a bad choice, too.  The pool was used because
> > its hard to collect sufficient entropy. But allowing others to get bits
> > from the pool opens a way to reduce entropy available
> 
> I understand the entropy pool depletes over time, in theory.

No, it happens in real life. If apache is configured to wait, you wait. 
Anywhere from seconds to Several minutes sometimes.

> But it intuitively seems like a pool that had a healthy amount of
> entropy merged in (I'm thinking a thousand or more bits) with a strong
> mixing function can be expected hold up well. Particularly if a little
> additional entropy is mixed in over time.

One can't expand entropy. One can expand the sequence with a PRNG, but
the PRNG has the same entropy as the seed.

> 
> If you know of any remotely plausible attacks against a well-constructed
> PRNG with 1024 bits of entropy I would like to read about them.
> [cue specter of self-aware and omipotent NSA quantum computer]  :-)
> 
> For example, OpenSSL has this line:
> #define ENTROPY_NEEDED 32 /* require 256 bits = 32 bytes of randomness*/
> 
> It requires that much at startup and then quits counting. It doesn't
> care about deducting from the estimated entropy once the initial
> threshold has been reached:
>   * Once we've had enough initial seeding we don't bother to
>   * adjust the entropy count, though, because we're not ambitious
>   * to provide *information-theoretic* randomness.

Openssl typically starts, does one thing, and quits.  Applications that
use OpenSsl libs (like apache) continue to get new random numbers from
the kernel.

> > and cause servers to either wait (or proceed without sufficient
> > entropy).  The way TLS is currently arranged, TLS really screws
> > those who don't have sufficient entropy all the time.
> 
> You might as well say "TLS really screws with those who don't have a
> reliable transport available".

It doesn't. That's why it uses TCP instead of UDP.

> It's just a design requirement.

I suppose Colt might have a design requirement: "Inability to shoot foot
with gun"  ;-)  Reality intrudes. Of course, trigger safety was a good
idea.

By contrast, making the *.randoms a counter is an easy thing to do;  it
prevents the unnecessary exposure of information.

> It seems like you're constructing this strawman of "TLS without a
> significant entropy source" then knocking him down and saying we
> should modify the design for this case.
> 
> > And TLS _might_ still screw those who do.
> 
> That part I don't understand.

I mean, there might be an attack against sha-256, as there was against
sha-1, md5, md4....(every mac in history has been cracked).

However, even if cracked, if its impossible to get the state of the PRNG
because you can't see any output, it wouldn't matter. pre_master_secret
could be a constant, if the constant were kept secret from the sniffer
and the sniffer didn't know it was a constant.

The sniffer needs sufficient cleartext output of the PRNG to obtain its
state.

Exposing the PRNG output gives the possibility that a sniffer can
calculate the pre_master_secret, and thus it isn't a secret.  By
removing the client.random and server.random, it becomes impossible for
a sniffer to calculate the pre_master_secret.



		--Dean




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



From wwwrun@rfc-editor.org  Fri Feb 12 12:42:24 2010
Return-Path: <wwwrun@rfc-editor.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 B6AA728C21D; Fri, 12 Feb 2010 12:42:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.272
X-Spam-Level: 
X-Spam-Status: No, score=-2.272 tagged_above=-999 required=5 tests=[AWL=-0.272, BAYES_00=-2.599, J_CHICKENPOX_93=0.6, NO_RELAYS=-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 O9IWKfVdEwbl; Fri, 12 Feb 2010 12:42:24 -0800 (PST)
Received: from rfc-editor.org (rfc-editor.org [IPv6:2001:1890:1112:1::2f]) by core3.amsl.com (Postfix) with ESMTP id 4678528C21A; Fri, 12 Feb 2010 12:42:21 -0800 (PST)
Received: by rfc-editor.org (Postfix, from userid 30) id 4EBA2130007; Fri, 12 Feb 2010 12:43:41 -0800 (PST)
To: ietf-announce@ietf.org, rfc-dist@rfc-editor.org
From: rfc-editor@rfc-editor.org
Message-Id: <20100212204341.4EBA2130007@rfc-editor.org>
Date: Fri, 12 Feb 2010 12:43:41 -0800 (PST)
Cc: tls@ietf.org, rfc-editor@rfc-editor.org
Subject: [TLS] RFC 5746 on Transport Layer Security (TLS) Renegotiation Indication Extension
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, 12 Feb 2010 20:42:24 -0000

A new Request for Comments is now available in online RFC libraries.

        
        RFC 5746

        Title:      Transport Layer Security (TLS) Renegotiation 
                    Indication Extension 
        Author:     E. Rescorla, M. Ray,
                    S. Dispensa, N. Oskov
        Status:     Standards Track
        Date:       February 2010
        Mailbox:    ekr@rtfm.com, 
                    marsh@extendedsubset.com, 
                    dispensa@phonefactor.com,  nasko.oskov@microsoft.com
        Pages:      15
        Characters: 33790
        Updates:    RFC5246, RFC4366, RFC4347, RFC4346, RFC2246

        I-D Tag:    draft-ietf-tls-renegotiation-03.txt

        URL:        http://www.rfc-editor.org/rfc/rfc5746.txt

Secure Socket Layer (SSL) and Transport Layer Security (TLS)
renegotiation are vulnerable to an attack in which the attacker forms
a TLS connection with the target server, injects content of his
choice, and then splices in a new TLS connection from a client.  The
server treats the client's initial TLS handshake as a renegotiation
and thus believes that the initial data transmitted by the attacker is
from the same entity as the subsequent client data.  This
specification defines a TLS extension to cryptographically tie
renegotiations to the TLS connections they are being performed over,
thus preventing this attack.  [STANDARDS TRACK]

This document is a product of the Transport Layer Security Working Group of the IETF.

This is now a Proposed Standard Protocol.

STANDARDS TRACK: This document specifies an Internet standards track
protocol for the Internet community,and requests discussion and suggestions
for improvements.  Please refer to the current edition of the Internet
Official Protocol Standards (STD 1) for the standardization state and
status of this protocol.  Distribution of this memo is unlimited.

This announcement is sent to the IETF-Announce and rfc-dist lists.
To subscribe or unsubscribe, see
  http://www.ietf.org/mailman/listinfo/ietf-announce
  http://mailman.rfc-editor.org/mailman/listinfo/rfc-dist

For searching the RFC series, see http://www.rfc-editor.org/rfcsearch.html.
For downloading RFCs, see http://www.rfc-editor.org/rfc.html.

Requests for special distribution should be addressed to either the
author of the RFC in question, or to rfc-editor@rfc-editor.org.  Unless
specifically noted otherwise on the RFC itself, all RFCs are for
unlimited distribution.


The RFC Editor Team
Association Management Solutions, LLC



From dveditz@mozilla.com  Fri Feb 12 12:47:23 2010
Return-Path: <dveditz@mozilla.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 03B4D28C202 for <tls@core3.amsl.com>; Fri, 12 Feb 2010 12:47:23 -0800 (PST)
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 s5K33cMCwUl2 for <tls@core3.amsl.com>; Fri, 12 Feb 2010 12:47:22 -0800 (PST)
Received: from dm-mail03.mozilla.org (dm-mail03.mozilla.org [63.245.208.213]) by core3.amsl.com (Postfix) with ESMTP id F0B9928C1F3 for <tls@ietf.org>; Fri, 12 Feb 2010 12:47:21 -0800 (PST)
Received: from priam.local (dsl-63-249-106-178.dhcp.cruzio.com [63.249.106.178]) (Authenticated sender: dveditz@mozilla.com) by dm-mail03.mozilla.org (Postfix) with ESMTP id BA1124AEDD9 for <tls@ietf.org>; Fri, 12 Feb 2010 12:48:31 -0800 (PST)
Message-ID: <4B75BE97.2070500@mozilla.com>
Date: Fri, 12 Feb 2010 12:48:23 -0800
From: Daniel Veditz <dveditz@mozilla.com>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1
MIME-Version: 1.0
To: tls@ietf.org
X-Enigmail-Version: 1.0.1
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: [TLS] NSS server and Firefox client available for renegotiation interop testing
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, 12 Feb 2010 20:47:23 -0000

Kai Engert of Red Hat has set up a server running NSS 3.12.6rc1 for
interoperability testing of the NSS implementation of the
renegotiation spec. Three different ports represent different
configuration settings sites might want to use depending on their
need to support unpatched clients and renegotiation.

https://ssltls.de/

There are also Firefox test builds that support the new spec. The
current default setting requires safe re-negotiation, but allows an
initial negotiation to an unpatched server. Preference settings can
make the client reject unsafe initial handshakes or merely strip the
SSL markings from the chrome and at some future point we'll be
turning those on, but initially the client will be fairly lenient.

We can't predict when this code will make it into a future Firefox
security update until after we get some interoperability testing,
but we're hoping sooner than later.

A page describing the client options is at
https://wiki.mozilla.org/Security:Renegotiation

Nightly test builds are at
https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/

Huge thanks to Nelson Bolyard for writing the NSS code, Robert
Relyea of Red Hat for picking up the baton from Nelson, and Kai
Engert who wrote the client integration code.

-Dan Veditz

From mrex@sap.com  Fri Feb 12 18:15:56 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 78E8228C295 for <tls@core3.amsl.com>; Fri, 12 Feb 2010 18:15:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.92
X-Spam-Level: 
X-Spam-Status: No, score=-9.92 tagged_above=-999 required=5 tests=[AWL=-0.271,  BAYES_00=-2.599, 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 126KdQwhAkvt for <tls@core3.amsl.com>; Fri, 12 Feb 2010 18:15:55 -0800 (PST)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.171]) by core3.amsl.com (Postfix) with ESMTP id 0974A28C283 for <tls@ietf.org>; Fri, 12 Feb 2010 18:15:51 -0800 (PST)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o1D2GYfS028524 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 13 Feb 2010 03:16:34 +0100 (MET)
From: Martin Rex <mrex@sap.com>
Message-Id: <201002130216.o1D2GWDc010528@fs4113.wdf.sap.corp>
To: dean@av8.com (Dean Anderson)
Date: Sat, 13 Feb 2010 03:16:32 +0100 (MET)
In-Reply-To: <Pine.LNX.4.44.1002121346280.20568-100000@citation2.av8.net> from "Dean Anderson" at Feb 12, 10 02:29:38 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] New drafts: adding input to the TLS master secret
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: Sat, 13 Feb 2010 02:15:56 -0000

Dean Anderson wrote:
> 
> On Wed, 10 Feb 2010, Marsh Ray wrote:
> >
> > Dean Anderson wrote:
> > > I agree with Martin Rex, I think a counter should be used instead of a 
> > > random number.
> > 
> > IMHO, the solution to the design problem of insufficient entropy is not
> > to use a sequence counter.
> 
> The design problem is not insufficient entropy. The problem is that TLS
> exposes information that does need to be exposed.  
> 
> I propose a design rule:   A PRNG should never be used to obtain a 
> unique value. Instead a counter or a date should be used.

At some point, some of the output of the CPRNG will have to be exposed,
no matter what.  Every server will obtain the pre-master secret from
the client--encrypted with the public key of the server for RSA
ciphersuites, and that premaster secret is output from the clients CPRNG.

But leaking lots of CPRNG output in the clear in Hello.Randoms
somehow still doesn't feel right.


> 
> > > Actually, secure RNG isn't always an implementer decision, but an
> > > operations option. For example, Apache has an option to turn off the
> > > waiting on the secure random generator.  Otherwise, it hangs until it
> > > gets enough entropy. I suspect there may be a lot of apache sites
> > > without sufficient entropy.
> > 
> > Unless the documentation is misleading, they deserve what they get.
> 
> Your lack of sympathy is misplaced. An attack can be used to deplete the 
> entropy pool. 


What you do by publishing lots of output values from your CPRNG is
the ability for an attacker to verify that he has a correct
representation of your internal entropy pool.

The effort for an attacker to obtain a correct representation
of your entropy pool may still be computationally infeasible
if you have sufficient real entropy, and sufficient collisions
in the output values (i.e. the output values of your CPRNG are
much smaller than the size of the internal entropy pool of your
CPRNG).


IMHO, a CPRNG where the entropy depletes implies a severly broken design,
i.e. it would mean that you either perform transformations on your
entropy pool that create collisions -- or that you continually mix
in entropy-free data.

If your transformations are collision-free (and secure hash functions
should be collision free unless you "compress"), and if the data
that you add to your pool ("re-seeding" -- continously in tiny quantities,
or every n-th step in larger quantities or both), then there should
be no depletion of entropy.

If you use re-seeding, have a decent pool size (>=256 bits)
have sufficient compression on the CPRNG outputs (<=1/2 pool-size)
and sufficient entropy in your pool from the beginning,
then leaking of CPRNG outputs e.g. through TLS Hello.Random,
should IMHO _not_ be a problem.


> 
> > I'm a fan of continual seeding as entropy becomes available.

I'm a fan of both, half of the new entropy goes in directly,
the other half is accumulated and completely refreshes the pools
entropy every once in a short while.

> > 
> > Are there really important systems with no chaotic interrupts or other
> > sensors and no high-precision timers which also need to perform TLS
> > handshakes?
> 
> There are indeed servers that have to wait TLS connections for entropy
> to become available. And as I pointed out, that entropy pool can be
> attacked. Hence the apache configuration option, the ability in Linux
> kernel to continue without sufficient entropy.


That may sometimes be a lack of proper software engineering rather
than a lack of real entropy that leads to problems like this.


> > > 
> > > I agree. A counter should be used, not another PRNG.
> > 
> > Which is the ultimate form of dilution in one pool.
> 
> Importantly, though, it doesn't dilute the pool which the
> pre_master_secret is using.  


The Hello.Randoms server exactly two purposes:

 (1) provide a collision-free challenge to prevent replay
     of handshakes

 (2) provide a collision-free input to key derivation when
     TLS sessions are resumed

A "simple" time_t value plus a counter may offer additional
avenues of attack (e.g. if the time_t is synced from a time-server
that listens to a traditional insecure RF-signal and performs
insufficient plausibility checks on the values on clock updates.

But you do have 28 Byte in the Hello.Randoms available for the
counter, so you could actually concatenate it from a lot of
different counter values in order to reduce the probability
of attacker-induced collisions (which many be playing time tricks
or resetting the machine/device (crashing it causing reboots or
manipulating the power/energy supply to the system).


> 
> However, even if cracked, if its impossible to get the state of the PRNG
> because you can't see any output, it wouldn't matter. pre_master_secret
> could be a constant, if the constant were kept secret from the sniffer
> and the sniffer didn't know it was a constant.
> 
> The sniffer needs sufficient cleartext output of the PRNG to obtain its
> state.
> 
> Exposing the PRNG output gives the possibility that a sniffer can
> calculate the pre_master_secret, and thus it isn't a secret.  By
> removing the client.random and server.random, it becomes impossible for
> a sniffer to calculate the pre_master_secret.


Even a completely passive observer/attacker -- if he knows all of
the "deterministic" transformations involved (which isn't unusal for
OpenSource software) could attempt to calculate TLS session keys
for a connection and attempt to decrypt the communication.  There
is always some known data that can be used to verify whether the
initial entropy was correctly guessed -- in case a real shortage
of initial entropy makes the brute force attack on that entropy
feasible.  In that specific scenario, the publishing of CPRNG
output through Hello.Random would help the attacker.


The motivation that Paul described for the creation of this
draft sounded to me like such scenarios do, in fact, exist.
And if they do -- then I have not yet understood how this
proposal could improve the situation.

But then, I'm _not_ a cryptographer, and I also may have
misunderstood Pauls explanation.


-Martin

From James@Manger.com.au  Sat Feb 13 02:27:51 2010
Return-Path: <James@Manger.com.au>
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 9517628C0F4 for <tls@core3.amsl.com>; Sat, 13 Feb 2010 02:27:51 -0800 (PST)
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 OBrFROzUbUrs for <tls@core3.amsl.com>; Sat, 13 Feb 2010 02:27:50 -0800 (PST)
Received: from nskntmtas03p.mx.bigpond.com (nskntmtas03p.mx.bigpond.com [61.9.168.143]) by core3.amsl.com (Postfix) with ESMTP id 9EC7E3A78A4 for <tls@ietf.org>; Sat, 13 Feb 2010 02:27:49 -0800 (PST)
Received: from nskntotgx03p.mx.bigpond.com ([60.224.96.34]) by nskntmtas03p.mx.bigpond.com with ESMTP id <20100213102911.LHRS16793.nskntmtas03p.mx.bigpond.com@nskntotgx03p.mx.bigpond.com> for <tls@ietf.org>; Sat, 13 Feb 2010 10:29:11 +0000
Received: from [192.168.0.11] (really [60.224.96.34]) by nskntotgx03p.mx.bigpond.com with ESMTP id <20100213102910.JCCO1978.nskntotgx03p.mx.bigpond.com@[192.168.0.11]> for <tls@ietf.org>; Sat, 13 Feb 2010 10:29:10 +0000
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Apple Message framework v1077)
From: James Manger <James@Manger.com.au>
In-Reply-To: <mailman.105.1266004818.32764.tls@ietf.org>
Date: Sat, 13 Feb 2010 21:29:10 +1100
Content-Transfer-Encoding: quoted-printable
Message-Id: <6A779139-AE11-4197-AAA0-372A73E5D949@Manger.com.au>
References: <mailman.105.1266004818.32764.tls@ietf.org>
To: tls@ietf.org
X-Mailer: Apple Mail (2.1077)
X-RPD-ScanID: Class unknown; VirusThreatLevel unknown, RefID str=0001.0A150204.4B767EF3.00E6,ss=1,fgs=0
Subject: Re: [TLS] New drafts: adding input to the TLS master secret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Feb 2010 10:27:51 -0000

> I propose a design rule:   A PRNG should never be used to obtain a =
unique value.
> Instead a counter or a date should be used.



I propose a different design rule: A PRNG should always be preferred =
over a counter when a collision-free value is required.

Counters need their state to be retained to ensure uniqueness and =
maintaining state is very often a challenge for computer programs =
(across outages, across server farms, across saving VM images and =
restarting duplicates, across hot backups, across correcting the =
clock...)

For a PRNG output to be unique you just choose an appropriate output =
size.


Revisit the rule iff a new crypto result emerges undermining all known =
PRNG designs.=20

--
James Manger


From stefan@aaa-sec.com  Thu Feb 18 05:14:39 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 081633A7CBF for <tls@core3.amsl.com>; Thu, 18 Feb 2010 05:14:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.55
X-Spam-Level: 
X-Spam-Status: No, score=-1.55 tagged_above=-999 required=5 tests=[AWL=0.699,  BAYES_00=-2.599, HELO_EQ_SE=0.35]
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 8946GkLAUm1Z for <tls@core3.amsl.com>; Thu, 18 Feb 2010 05:14:37 -0800 (PST)
Received: from s87.loopia.se (s87.loopia.se [194.9.95.114]) by core3.amsl.com (Postfix) with ESMTP id 57B363A7AE3 for <tls@ietf.org>; Thu, 18 Feb 2010 05:14:36 -0800 (PST)
Received: from s24.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 8E6EA345EA4 for <tls@ietf.org>; Thu, 18 Feb 2010 14:16:18 +0100 (CET)
Received: (qmail 77628 invoked from network); 18 Feb 2010 13:16:13 -0000
Received: from unknown (HELO [192.168.1.2]) (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 <brian@briansmith.org>; 18 Feb 2010 13:16:13 -0000
User-Agent: Microsoft-Entourage/12.23.0.091001
Date: Thu, 18 Feb 2010 14:16:11 +0100
From: Stefan Santesson <stefan@aaa-sec.com>
To: Brian Smith <brian@briansmith.org>, <tls@ietf.org>
Message-ID: <C7A2FC2B.85D4%stefan@aaa-sec.com>
Thread-Topic: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
Thread-Index: Acqj5L0WrvrvoyYbQTWjGIIV/BxgVgMt8zo/
In-Reply-To: <001901caa3e4$c0363750$40a2a5f0$@org>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
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, 18 Feb 2010 13:14:39 -0000

All,

Going back to address this original mail which I think is the only one
proposing any alteration of the current draft.

Brian,

The client don't know if the cached server certificate is acceptable for the
handshake before the server has acknowledged that is is correct. Sending a
ClientKeyExchange with a Client Hello is therefore successful only if the
client has cached a server certificate and that certificate is acknowledged
by the server.

I'm not saying that your optimization isn't interesting, but it is not
generic to the cashed-info draft and would make the current draft
significantly more complex. I would prefer not to go there.

I think this draft is ready for WGLC without modifications.

/Stefan



On 10-02-02 9:50 AM, "Brian Smith" <brian@briansmith.org> wrote:

> I am very interested in the ideas that motivate the cached info extension.
> It obviously makes sense for the client to tell the server that it already
> knows the certificate, so that the server doesn't have to send the
> certificate. But, if the client already knows the certificate, then it
> already knows the server's public key. Consequently, it is wasteful for the
> client NOT to send the ClientKeyExchange along with the client hello.
> Without the ability to include the ClientKeyExchange with the ClientHello,
> the cached-info extension would usually only slightly decrease the bandwidth
> needed for handshaking--by zero to two packets in the majority of cases,
> AFAICT. At the same time, it would provide no effect on latency. Latency
> from the extra round-trips required by TLS is a much worse problem than the
> handshake bandwidth for a lot of applications, especially mobile
> applications.
> 
> Back in April, Martin Rex said that including the ClientKeyExchange
> immediately after the ClientHello was a bad idea, because it made it
> difficult for the server to fall back to a full handshake (see his message
> quoted below). I agree, but there is a simple workaround: embed the
> ClientKeyExchange (and/or the client Certificate message) in a hello
> extension. 
> 
> I attempted to do this, reusing as much of the infrastructure from the
> cached info extension as possible. In particular, I added the following
> CachedInformationTypes in order to support :
> 
>    enum { ..., dh_p(3), dh_g(4), ... }
>         CachedInformationType;
> 
> dh_p and dh_g would be for the hash of the cached values of the DH group
> from the server's ServerKeyExchange for EDH key exchange. Then, I created a
> new hello extension that is simply a wrapper around the ClientKeyExchange:
> 
>    Enum { ..., early_client_key_exchange,
>                early_certificate, ... } ExtensionType;
> 
> For EDH key exchange: The client includes cached dh_p and dh_g values, and
> includes the early_client_key_exchange extension. If the server agrees to
> use the same dh_p and dh_g as the client cached, then it can omit those
> values from its ServerKeyExchange message's ServerDHParams; the
> ServerDHParams in its ServerKeyExchange would then just contain dh_Ys.
> Further, since the server already has the client's server_key_exchange
> message, it can compute the master_secret, so it can send its
> ChangeCipherSpec and Finished messages immediately after ServerKeyExchange.
> If the server doesn't want to use the cached dh_p and dh_g, then it would
> fall back to a full ServerKeyExchange. If the client sees the
> ServerKeyExchange it knows it needs to generate its own ClientKeyExchange;
> otherwise it knows to omit it. RSA key exchange is similar, except the
> cached dh_p, dh_g (if any) would be ignored, and ServerKeyExchange obviously
> would not be sent.
> 
> I noticed that a hash isn't always the best representative of the cached
> information. For example, for EDH key exchange, it would be better if there
> was the option of identifying well-known Diffie-Hellman groups by their
> 16-bit IANA id, for servers that use the IKE Diffie-Hellman groups. Then a
> client could realistically include the IDs of all the IANA-registered DH
> groups it supports in every (initial) ClientHello; using hashes for this
> would be unrealistic because they would make the ClientHello too big--in
> particular, the ClientHello would be much more likely to spill over into
> another packet. As another example, if the client "knows" the server will
> ask for a certificate, then it can preemptively/opportunistically include
> its certificate chain in another hello extension. In that case, it might
> wish to compress and/or (as is often requested) encrypt it's cert chain when
> it is wrapped in the hello extension. Or, the client and server could work
> together to mint a RFC4366 URL to use as the cached identifier for the
> client certificate chain. Consequently, I'm not sure that standardizing on a
> generic mechanism that only supports/requires hashes as identifiers for
> cached data is a good idea.
> 
> Also, IMO, something should be done so that a client never needs to send
> multiple hashes of the same cached value in a ClientHello. For example, the
> client could tell the server which hash algorithms it will support caching
> for, and then the server can select which ONE of those algorithms it will
> support, and tell the client (just like it does for cipher suites). Or, the
> choice of algorithm could be fixed to be the same as the hash algorithm used
> for the signature of the certificate itself; the client is guaranteed to
> support and trust that algorithm if it is going to work with that server at
> all.
> 
> Regards,
> Brian
> 
> On *Wed, 29 Apr 2009* (a long time ago), Martin Rex wrote:
>> Nagendra Modadugu wrote:
>>> I'm joining the discussion a little bit late.  Is there still time to
>>> consider 1-RTT version of the full-handshake described in "Fast-Track"
>>> paper? (i.e. client sends the ClientKeyExchange message speculatively
> before
>>> receiving the ServerHello).
>> 
>> To me, this looks more like a flawed assumption rather than a
>> "speculative action", because it is impossible to recover.
>> 
>> The idea behind the short cuts is that the server can continue
>> with the full handshake if the shortcut is not available for
>> whatever reason.  Sending a ClientKeyExchange based on
>> assumptions what the contents of the ServerHello will be
>> precludes the Server from making decisions to which it is
>> entiteled in the original TLS protocol, and the result can
>> easily be a fatal error, which means that the network communication
>> channel must be closed and reopened -- a recovery at the
>> TLS protocol level is impossible.
>> 
>> Having the Client send (protected) application data optimistically
>> following the Client Finished message without waiting for the
>> Server Finished seems like an acceptable optimization
>> if you badly need to cut down the number of round trips.
>> 
>> Such an optimization, however, may have a significant impact
>> on the semantics of SSL_connect for APIs like that of OpenSSL.
>> 
>> -Martin
> 
> 
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls



From stefan@aaa-sec.com  Thu Feb 18 05:41:43 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 E46413A7B46 for <tls@core3.amsl.com>; Thu, 18 Feb 2010 05:41:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.725
X-Spam-Level: 
X-Spam-Status: No, score=-1.725 tagged_above=-999 required=5 tests=[AWL=0.524,  BAYES_00=-2.599, HELO_EQ_SE=0.35]
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 7bYPfkmsrWI0 for <tls@core3.amsl.com>; Thu, 18 Feb 2010 05:41:43 -0800 (PST)
Received: from s87.loopia.se (s87.loopia.se [194.9.95.114]) by core3.amsl.com (Postfix) with ESMTP id 1AEAF3A7228 for <tls@ietf.org>; Thu, 18 Feb 2010 05:41:42 -0800 (PST)
Received: from s19.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 14855390E89 for <tls@ietf.org>; Thu, 18 Feb 2010 14:42:08 +0100 (CET)
Received: (qmail 3412 invoked from network); 18 Feb 2010 13:42:03 -0000
Received: from unknown (HELO [192.168.1.2]) (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 <stefan@aaa-sec.com>; 18 Feb 2010 13:42:03 -0000
User-Agent: Microsoft-Entourage/12.23.0.091001
Date: Thu, 18 Feb 2010 14:41:58 +0100
From: Stefan Santesson <stefan@aaa-sec.com>
To: Stefan Santesson <stefan@aaa-sec.com>, Brian Smith <brian@briansmith.org>, <tls@ietf.org>
Message-ID: <C7A30236.85DC%stefan@aaa-sec.com>
Thread-Topic: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
Thread-Index: Acqj5L0WrvrvoyYbQTWjGIIV/BxgVgMt8zo/AADmheE=
In-Reply-To: <C7A2FC2B.85D4%stefan@aaa-sec.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
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, 18 Feb 2010 13:41:44 -0000

Well,

I went through my change list and have now updated and reposted the draft as
draft-03.

Changes can be viewed from:
http://tools.ietf.org/rfcdiff?url2=draft-ietf-tls-cached-info-03.txt

Basically I have updated the boilerplates, removed one excessive ";"
character and reduced the size of CachedObject to 2^16-1 bytes (from 2^24-1
which is way more than needed).

I think this is NOW ready for WGLC

/Stefan



On 10-02-18 2:16 PM, "Stefan Santesson" <stefan@aaa-sec.com> wrote:

> I think this draft is ready for WGLC without modifications.



From root@core3.amsl.com  Thu Feb 18 05:45: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 376F63A7B56; Thu, 18 Feb 2010 05:45:01 -0800 (PST)
From: Internet-Drafts@ietf.org
To: i-d-announce@ietf.org
Content-Type: Multipart/Mixed; Boundary="NextPart"
Mime-Version: 1.0
Message-Id: <20100218134502.376F63A7B56@core3.amsl.com>
Date: Thu, 18 Feb 2010 05:45:02 -0800 (PST)
Cc: tls@ietf.org
Subject: [TLS] I-D Action:draft-ietf-tls-cached-info-03.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: Thu, 18 Feb 2010 13:45: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) Cached Information Extension
	Author(s)       : S. Santesson
	Filename        : draft-ietf-tls-cached-info-03.txt
	Pages           : 7
	Date            : 2010-02-18

This document defines a Transport Layer Security (TLS) extension for
cached information. This extension allows the TLS client to inform a
server of cached information from previous TLS sessions, allowing the
server to omit sending cached static information to the client during
the TLS handshake protocol exchange.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-tls-cached-info-03.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-cached-info-03.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID: <2010-02-18053349.I-D@ietf.org>


--NextPart--

From agl@google.com  Thu Feb 18 08:29: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 C46E628C215 for <tls@core3.amsl.com>; Thu, 18 Feb 2010 08:29:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.644
X-Spam-Level: 
X-Spam-Status: No, score=-104.644 tagged_above=-999 required=5 tests=[AWL=1.333, 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 jqmF1xdZNKxW for <tls@core3.amsl.com>; Thu, 18 Feb 2010 08:29:46 -0800 (PST)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.33.17]) by core3.amsl.com (Postfix) with ESMTP id BBBE828B56A for <tls@ietf.org>; Thu, 18 Feb 2010 08:29:45 -0800 (PST)
Received: from wpaz17.hot.corp.google.com (wpaz17.hot.corp.google.com [172.24.198.81]) by smtp-out.google.com with ESMTP id o1IGVQp8026370 for <tls@ietf.org>; Thu, 18 Feb 2010 16:31:27 GMT
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1266510687; bh=MojB0dh4QYD6SMRJGfGhNi8Lj6w=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=FiXfFbufGFS0WMq5QoNdZkuljlaK1QJkYaAUVjbHsxHmRX3KoouUosAhnSA7U/krS 3OlRo4TqSrSnFM3m3OUVw==
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=gYQ+AHO2cXkU381n4anttNYK9zZf2rZhCf/5R/MQkTGqfuy3clFA+4A5Fq/gJF0Yk 8mv5PPLy1Xrz2cnIIrKTg==
Received: from pzk29 (pzk29.prod.google.com [10.243.19.157]) by wpaz17.hot.corp.google.com with ESMTP id o1IGVOkT028596 for <tls@ietf.org>; Thu, 18 Feb 2010 08:31:25 -0800
Received: by pzk29 with SMTP id 29so875184pzk.17 for <tls@ietf.org>; Thu, 18 Feb 2010 08:31:24 -0800 (PST)
MIME-Version: 1.0
Received: by 10.142.4.12 with SMTP id 12mr6545539wfd.138.1266510684012; Thu,  18 Feb 2010 08:31:24 -0800 (PST)
In-Reply-To: <C7A30236.85DC%stefan@aaa-sec.com>
References: <C7A2FC2B.85D4%stefan@aaa-sec.com> <C7A30236.85DC%stefan@aaa-sec.com>
Date: Thu, 18 Feb 2010 11:31:23 -0500
Message-ID: <a84d7bc61002180831n412afe3aubffd4708a02b1dd3@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
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
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, 18 Feb 2010 16:29:47 -0000

On Thu, Feb 18, 2010 at 8:41 AM, Stefan Santesson <stefan@aaa-sec.com> wrote:
> I think this is NOW ready for WGLC

Wan-Teh Chang and I went over this draft yesterday and we sketched up
some changes to the draft that we think might be a good idea.

In outline:
   1) The extension is symmetrical, so the server can now predict
values from the client.
   2) Both sides can list the types of objects for which they support caching.
   3) Both sides can list the hash types which they support.
   4) Substitution of cached values now involves new handshake message types.
   5) Made it clearer that each substitution is optional and independent.

I don't feel particularly strongly about any of these points and would
much rather see the current draft than nothing at all.

1) makes the extension symmetrical and it seems like there might be
something in the future that the server would like to predict from the
client. At the moment we suggest that the server might want to support
predicting the client's certificate. Often a CertificateRequest
handshake is a renegotiation and a higher level knows what certificate
the client should be presenting.

2) was a suggestion from Martin Rex and 3) is a follow on from that.

4) results from the fact that I don't think the current draft is clear
enough about how the substitution occurs. Making new handshake types
means that everything is very explicit and I prefer that. However, I
can't think of anything technically wrong with just memcmp()ing for
the hash values in the existing handshake messages, if it was
precisely specified.

Cheers

AGL


3.  Cached Information Extension

   A new extension type (cached_information(TBD)) is defined and used in
   both the client hello and server hello messages.  The extension type
   is specified as follows.

   enum {
        cached_information(TBD), (65535)
   } ExtensionType;

   The "extension_data" field of this extension, when included in the
   client hello, SHALL contain "CachedInformation" according to the
   following structure:

   enum {
        server_certificate_chain(1),
        client_certificate_chain(2),
        trusted_cas(3),
        (255)
   } CachedInformationType;

   struct {
        HashAlgorithm hash;
        opaque hash_value<1..255>;
   } CachedInformationHash;

   struct {
        CachedInformationType type;
        CachedInformationHash hashes<1..2^16-1>;
   } CachedObject;

   struct {
        CachedInformationType supported_types<0..255>;
        HashAlgorithm supported_hash_algorithms<0..255>;
        CachedObject cached_info<0..2^16-1>;
   } CachedInformation;

   Hash algorithm identifiers are provided by the RFC 5246 [RFC5246]
   HashAlgorithm registry.  Compliant implementations MUST support
   sha1(2) as HashAlgorithm.

   When CachedInformationType identifies server_certificate_chain or
   client_certificate_chain, then hash_value MUST include at least one
   hash value calculated over the certificate_list element of a
   Certificate message.

   When CachedInformationType identifies trusted_cas, then hash_value
   MUST include at least one hash value calculated over the
   certificate_authorities element of a server side CertificateRequest
   message.

   Implementations MUST NOT include hashes for multiple objects in the
   same CachedObject structure.  If more than one hash is present in the
   CachedObject structure, they MUST be hashes over the same information
   object using different hash algorithms.

   Implementations SHOULD NOT emit duplicate CachedInformationHashs
   (i.e. the same hash twice).

   Implementations SHOULD NOT emit duplicate CachedObjects (i.e. the
   same object twice).

   supported_types enumerates the set of objects that the peer might
   wish to cache.  This is advisory and may guide the peer when deciding
   whether to cache a given piece of information.  A host may still
   choose to substitute a cached object even if supported_types suggests
   that it is not able to.  There SHOULD NOT be any duplicates in the
   vector.

   supported_hash_algorithms enumerates the set of hash functions that
   the host supports.  Peers may use this to avoid sending hashes using
   an algorithm that is not supported.  This is advisory only, thus a
   host MAY substitute a hash value even if supported_hash_algorithms
   suggests that it is not able to.  There SHOULD NOT be any duplicates
   in the vector.

   Other specifications MAY define more CachedInformationType types.


4.  Message flow

   Clients MAY include an extension of type "cached_information" in the
   (extended) client hello.  Clients MAY need the ability to cache
   different values depending on other information in the Client Hello
   that modify what values the server uses, in particular the Server
   Name Indication [RFC4366] value.

   Servers that receive an extended client hello containing a
   "cached_information" extension, MAY indicate that they support
   caching of information objects by including an extension of type
   "cached_information" in their (extended) server hello.  The server's
   extension may predict values from the client, specifically the
   client's Certificate message, if any.

   Following a successful exchange of "cached_information" extensions,
   implementations may choose to substitute handshake messages as
   follows:

   A Certificate message MAY be replaced with a CertificateHash(TBD)
   message:

   struct {
        HashAlgorithm hash;
        opaque hash_value<1..255>;
   } CertificateHash;

   A CertificateRequest message MAY be replaced with a
   CertificateRequestHash(TBD) message:

   struct {
        ClientCertificateType certificate_types<1..2^8-1>;
        SignatureAndHashAlgorithm
          supported_signature_algorithms<2^16-1>;
        HashAlgorithm hash;
        opaque hash_value<1..255>;
   } CertificateRequestHash;

   In each case, the hash and hash_value fields MUST come from the
   peer's list, as provided in its "cached_information" extension.

   The handshake protocol will proceed using the cached data as if no
   handshake message substitution had occured.  The Finished message
   will however be calculated over the actual data exchanged in the
   handshake protocol.


5.  Examples

   Consider the following handshake message that the server would
   typically transmit:

   0b                 # Handshake message type 11 (Certificate)
   00 00 10           # Handshake message length 16
   00 00 0d           # certificate_list length
   00 00 04           # ASN1.Cert length
   01 02 03 04        # certificate 1 bytes
   00 00 03           # ASN1.Cert length
   05 06 07           # certificate 2 bytes

   In order to predict this message, a client could send the following
   cached_info extension value:

   00 00 19           # cached_info length
   01                 # type (server_certificate_chain)
   00 16              # hashes length
   02                 # hash type (SHA1)
   14                 # hash length (20 bytes)
   8c 4b 89 c9 1c 6d 70 ef 07 53 bf c7 97 c1 ff e6 93 f0 6b 0c

   Where the SHA1 value is the hash of the following bytes:

   00 00 04
   01 02 03 04
   00 00 03
   05 06 07

   If the client correctly predicted the certificate data, and the
   server chose to substitute its Certificate message, then it would
   emit the following CertificateHash:

   xx                 # Handshake message type TDB (CertificateHash)
   00 00 16           # Handshake message length 22
   02                 # hash type (SHA1)
   14                 # hash length (20 bytes)
   8c 4b 89 c9 1c 6d 70 ef 07 53 bf c7 97 c1 ff e6 93 f0 6b 0c


6.  Security Considerations

   Hash algorithms used in this specification are required to have
   reasonable random properties in order to provide reasonably unique
   identifiers.  No serious security threat requires selected hash
   algorithms to have strong collision resistance.


7.  Acknowledgements

   This is substantially the work of S. Santesson (3xA Security).
   However, since he has not reviewed this deriviative version he is not
   listed as an author in case that mistakenly suggests his endorsement.


8.  IANA Considerations

   1.  Create an entry, cached_information(TBD), in the existing
       registry for ExtensionType (defined in RFC 5246 [RFC5246]).

   2.  Create entries for CertificateHash(TBD) and
       CertificateRequestHash(TBD), in th existing registry for
       HandshakeType (defined in RFC 5246 [RFC5246].

   3.  Establish a registry for TLS CachedInformationType values.  The
       first entries in the registry are server_certificate_chain(1),
       client_certificate_chain(2) and trusted_cas(3).  TLS
       CachedInformationType values in the inclusive range 0-63
       (decimal) are assigned via RFC 5226 [RFC5226] Standards Action.
       Values from the inclusive range 64-223 (decimal) are assigned via
       RFC 5226 Specification Required.  Values from the inclusive range
       224-255 (decimal) are reserved for RFC 5226 Private Use.


9.  Normative References

   [RFC2119]  Bradner, S., "Key words for use in RFCs to Indicate
              Requirement Levels", BCP 14, RFC 2119, March 1997.

   [RFC4366]  Blake-Wilson, S., Nystrom, M., Hopwood, D., Mikkelsen, J.,
              and T. Wright, "Transport Layer Security (TLS)
              Extensions", RFC 4366, April 2006.

   [RFC5226]  Narten, T. and H. Alvestrand, "Guidelines for Writing an
              IANA Considerations Section in RFCs", BCP 26, RFC 5226,
              May 2008.

   [RFC5246]  Dierks, T. and E. Rescorla, "The Transport Layer Security
              (TLS) Protocol Version 1.2", RFC 5246, August 2008.

From agl@google.com  Thu Feb 18 08:53:40 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 CFDB23A7FB7 for <tls@core3.amsl.com>; Thu, 18 Feb 2010 08:53:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.834
X-Spam-Level: 
X-Spam-Status: No, score=-104.834 tagged_above=-999 required=5 tests=[AWL=1.143, 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 eUe1Oea0rujc for <tls@core3.amsl.com>; Thu, 18 Feb 2010 08:53:40 -0800 (PST)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id C1C703A7FBC for <tls@ietf.org>; Thu, 18 Feb 2010 08:53:39 -0800 (PST)
Received: from spaceape12.eur.corp.google.com (spaceape12.eur.corp.google.com [172.28.16.146]) by smtp-out.google.com with ESMTP id o1IGtL6L014490 for <tls@ietf.org>; Thu, 18 Feb 2010 08:55:22 -0800
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1266512122; bh=9WnIt3OtqJbZlhAWA+er4/gbyfw=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=IQI17yEcRk0n2TR2BYP2ihC6IQxbOY1CT/ElJkoJfX9y9ggc0iV5p+zVYwRgWLnsS /5jtskDBOaqDb/k1/WOzw==
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=E2Y475Y1ZOrs0JWP2MfwN+/B8M6qq4Qeg5018k5HOVjivG5TIXIkp92pYMXhYhI20 8VsIyFu22D6bdGBjl+8eQ==
Received: from pzk14 (pzk14.prod.google.com [10.243.19.142]) by spaceape12.eur.corp.google.com with ESMTP id o1IGtJmk003836 for <tls@ietf.org>; Thu, 18 Feb 2010 08:55:20 -0800
Received: by pzk14 with SMTP id 14so10012312pzk.3 for <tls@ietf.org>; Thu, 18 Feb 2010 08:55:19 -0800 (PST)
MIME-Version: 1.0
Received: by 10.142.4.12 with SMTP id 12mr6568361wfd.138.1266512119149; Thu,  18 Feb 2010 08:55:19 -0800 (PST)
In-Reply-To: <a84d7bc61002180831n412afe3aubffd4708a02b1dd3@mail.gmail.com>
References: <C7A2FC2B.85D4%stefan@aaa-sec.com> <C7A30236.85DC%stefan@aaa-sec.com> <a84d7bc61002180831n412afe3aubffd4708a02b1dd3@mail.gmail.com>
Date: Thu, 18 Feb 2010 11:55:18 -0500
Message-ID: <a84d7bc61002180855k42ac03b8m8eae0a4596f7be03@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
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
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, 18 Feb 2010 16:53:40 -0000

On Thu, Feb 18, 2010 at 11:31 AM, Adam Langley <agl@google.com> wrote:
> 1) makes the extension symmetrical and it seems like there might be
> something in the future that the server would like to predict from the
> client. At the moment we suggest that the server might want to support
> predicting the client's certificate. Often a CertificateRequest
> handshake is a renegotiation and a higher level knows what certificate
> the client should be presenting.

wtc pointed out to me that this might be unclear. The situation that I
have in mind is this:

A user is using HTTPS to navigate a web site and reaches a point where
they need to authenticate. They enter their username in a text field
and hit "Login using certificate". This triggers a renegotiation with
a CertificateRequest and, at this point, the server knows the
certificate that the client should be presenting. The client could
even use this to guide the user in the selection of the certificate.

People might feel that this is a little contrived and I wouldn't mind
in the slightest if it was dropped. But it seems simpler that the
extension should be symmetrical and odd to assume that we'll never
need to predict anything from the client.


Cheers

AGL

From brian@briansmith.org  Thu Feb 18 10:02:38 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 D71BC28C2F2 for <tls@core3.amsl.com>; Thu, 18 Feb 2010 10:02:38 -0800 (PST)
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 dWiGXk5bokEt for <tls@core3.amsl.com>; Thu, 18 Feb 2010 10:02:38 -0800 (PST)
Received: from mxout-07.mxes.net (mxout-07.mxes.net [216.86.168.182]) by core3.amsl.com (Postfix) with ESMTP id D334428C2FA for <tls@ietf.org>; Thu, 18 Feb 2010 10:02:37 -0800 (PST)
Received: from [192.168.1.65] (unknown [70.253.63.68]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 4605D22E25B; Thu, 18 Feb 2010 13:04:14 -0500 (EST)
Message-ID: <4B7D811D.50909@briansmith.org>
Date: Thu, 18 Feb 2010 12:04:13 -0600
From: Brian Smith <brian@briansmith.org>
User-Agent: Postbox 1.1.1 (Windows/20100208)
MIME-Version: 1.0
To: Stefan Santesson <stefan@aaa-sec.com>, tls@ietf.org
References: <C7A30236.85DC%stefan@aaa-sec.com>
In-Reply-To: <C7A30236.85DC%stefan@aaa-sec.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
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, 18 Feb 2010 18:02:38 -0000

Stefan Santesson wrote:
> Well,
>
> I went through my change list and have now updated and reposted the draft as
> draft-03.
>
> Changes can be viewed from:
> http://tools.ietf.org/rfcdiff?url2=draft-ietf-tls-cached-info-03.txt
>    
I think it is especially important to have the SHA-1 requirement 
changed. It is a big hassle to require SHA-1 for compliance when now 
every use of SHA-1 has to be reviewed. Also, mandating SHA-1 would be in 
conflict with other requirements--especially requirements to follow NIST 
and NSA recommendations regarding algorithms. At a minimum, make SHA-1 
support mandatory only if/when the connection's negotiated version is 
less than TLS 1.2.

The client already has to calculate hashes of each certificate in the 
certificate chain, using algorithms fixed at the time each certificate 
was signed. The client and server implicitly trust all of these 
algorithms if they accept the certificate chains. X.509 libraries 
already provide efficient access to these hashes. Also, given the 
fingerprint of the sender's certificate, you can determine the entire 
certificate chain if all the certificates are available in the cache. 
Consequently, it would be much better if hash used for identifying a 
cached certificate was the same as the fingerprint of the sender's 
certificate, instead of a hash of the entire certificate chain using one 
or more other algorithms.

The server already told the client what hash algorithms it supports in 
CertificateRequest message from which the client extracted the cached 
certificate_authorities. The client can just pick *one* of those 
algorithms when hashing the certificate_authorities--most likely, the 
hash algorithm used by for the signature of its own certificate. I don't 
see why it's valuable for the client to be able to include multiple 
hashes in its ClientHello. In other words, I think CachedInformation 
should be removed and all uses of it replaced by CachedObject.

But, then you can go even farther and remove CachedObject and 
CachedInformationType:

enum { cached_certificate_chain(TBD), cached_trusted_cas(TBD), (65535) } 
ExtensionType;

The "extension_data" field of each of these extensions, when included in 
the client hello, SHALL contain CachedInformationHash according to the 
following structure:

struct {
     HashAlgorithm hash;
     opaque hash_value<1..255>;
} CachedInformationHash;

Then the server could indicate which items it supports by including 
empty extension(s) with the corresponding type(s), which is what most 
other extensions do.

Regards,
Brian

From brian@briansmith.org  Thu Feb 18 10:43:24 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 119203A8025 for <tls@core3.amsl.com>; Thu, 18 Feb 2010 10:43:24 -0800 (PST)
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 FydgLxLguCMw for <tls@core3.amsl.com>; Thu, 18 Feb 2010 10:43:23 -0800 (PST)
Received: from mxout-07.mxes.net (mxout-07.mxes.net [216.86.168.182]) by core3.amsl.com (Postfix) with ESMTP id 1B1923A8024 for <tls@ietf.org>; Thu, 18 Feb 2010 10:43:23 -0800 (PST)
Received: from [192.168.1.65] (unknown [70.253.63.68]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id D0EB722E257; Thu, 18 Feb 2010 13:44:59 -0500 (EST)
Message-ID: <4B7D8AAD.80204@briansmith.org>
Date: Thu, 18 Feb 2010 12:45:01 -0600
From: Brian Smith <brian@briansmith.org>
User-Agent: Postbox 1.1.1 (Windows/20100208)
MIME-Version: 1.0
To: Adam Langley <agl@google.com>, tls@ietf.org
References: <C7A2FC2B.85D4%stefan@aaa-sec.com>	 <C7A30236.85DC%stefan@aaa-sec.com> <a84d7bc61002180831n412afe3aubffd4708a02b1dd3@mail.gmail.com>
In-Reply-To: <a84d7bc61002180831n412afe3aubffd4708a02b1dd3@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
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, 18 Feb 2010 18:43:24 -0000

Adam Langley wrote:
>
> 1) makes the extension symmetrical and it seems like there might be
> something in the future that the server would like to predict from the
> client. At the moment we suggest that the server might want to support
> predicting the client's certificate. Often a CertificateRequest
> handshake is a renegotiation and a higher level knows what certificate
> the client should be presenting.
>    
There's already the client certificate URL extension (RFC 3546 section 
3.3). I think that extension could/should be used for this specific use 
case, especially since it already defined the special CertificateURL 
message unless there's a specific reason it can't be used.
>    2) Both sides can list the types of objects for which they support caching.
>    
I agree, but this is kind of predicated on the idea that there are going 
to be more items for which this extension is appropriate. There 
shouldn't be many large items in the handshake, and this extension + the 
client certificate URL extension already cover the existing large items. 
This extension may not even be appropriate for future item caching; it 
isn't optimal for caching ephemeral key exchange parameters that can be 
specified by name, for example, because the hash would be larger than 
the cached value.
>    3) Both sides can list the hash types which they support.
>    
The hash negotiation for TLS seems to be designed so that every kind of 
usage of hashes can be negotiated separately. That's why TLS has a 
"supported_signature_algorithms" extension instead of a generic 
"supported_hash_algorithms" extension. To continue with that design 
would mean each type of cached item would need to have its own separate 
algorithm negotiation.
> 4) results from the fact that I don't think the current draft is clear
> enough about how the substitution occurs. Making new handshake types
> means that everything is very explicit and I prefer that. However, I
> can't think of anything technically wrong with just memcmp()ing for
> the hash values in the existing handshake messages, if it was
> precisely specified.
>    
I would say the message flow should just go something like this: If the 
server doesn't send a Certificate message, then use the cached 
certificate. If the server sends a CertificateRequest with an empty 
(zero-length) certificate_authorities then use the cached 
certificate_authorities. Then nobody has to do any substitution, it's 
much easier to specify, and much easier to implement than the 
substitution mechanism from the current draft or introducing new 
handshake messages would be. Note that this is how RFC5088 works (you 
have to infer what the server is saying based on what handshake messages 
it skips; for example, if the server doesn't send a Certificate right 
after its ServerHello then you have to infer that it's doing a 
resumption based on the given ticket).

Regards,
Brian


From brian@briansmith.org  Thu Feb 18 10:46:19 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 C9B3528C133 for <tls@core3.amsl.com>; Thu, 18 Feb 2010 10:46:19 -0800 (PST)
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 i+FUSwVJvih0 for <tls@core3.amsl.com>; Thu, 18 Feb 2010 10:46:19 -0800 (PST)
Received: from mxout-07.mxes.net (mxout-07.mxes.net [216.86.168.182]) by core3.amsl.com (Postfix) with ESMTP id 2409128C127 for <tls@ietf.org>; Thu, 18 Feb 2010 10:46:19 -0800 (PST)
Received: from [192.168.1.65] (unknown [70.253.63.68]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id E331722E253 for <tls@ietf.org>; Thu, 18 Feb 2010 13:48:01 -0500 (EST)
Message-ID: <4B7D8B63.3030801@briansmith.org>
Date: Thu, 18 Feb 2010 12:48:03 -0600
From: Brian Smith <brian@briansmith.org>
User-Agent: Postbox 1.1.1 (Windows/20100208)
MIME-Version: 1.0
To: tls@ietf.org
References: <C7A2FC2B.85D4%stefan@aaa-sec.com>		<C7A30236.85DC%stefan@aaa-sec.com>	<a84d7bc61002180831n412afe3aubffd4708a02b1dd3@mail.gmail.com> <4B7D8AAD.80204@briansmith.org>
In-Reply-To: <4B7D8AAD.80204@briansmith.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
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, 18 Feb 2010 18:46:19 -0000

Brian Smith wrote:
> Note that this is how RFC5088 works
Typo. RFC5077.

- Brian

From DPKemp@missi.ncsc.mil  Thu Feb 18 10:59: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 CC5EF3A8026 for <tls@core3.amsl.com>; Thu, 18 Feb 2010 10:59:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[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 kasCcZzPz9D8 for <tls@core3.amsl.com>; Thu, 18 Feb 2010 10:59:09 -0800 (PST)
Received: from stingray.missi.ncsc.mil (stingray.missi.ncsc.mil [144.51.50.20]) by core3.amsl.com (Postfix) with ESMTP id E07AC3A7D6A for <tls@ietf.org>; Thu, 18 Feb 2010 10:59:08 -0800 (PST)
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, 18 Feb 2010 14:00:19 -0500
Message-ID: <201002181900.o1IJ0p1U005839@stingray.missi.ncsc.mil>
In-Reply-To: <4B7D811D.50909@briansmith.org>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
Thread-Index: AcqwxOLCaYgsSXXQQoeFyBf1PrnyoQAAvfTQ
References: <C7A30236.85DC%stefan@aaa-sec.com> <4B7D811D.50909@briansmith.org>
From: "Kemp, David P." <DPKemp@missi.ncsc.mil>
To: <tls@ietf.org>
X-OriginalArrivalTime: 18 Feb 2010 19:01:36.0859 (UTC) FILETIME=[CB913AB0:01CAB0CC]
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
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, 18 Feb 2010 18:59:09 -0000

The security considerations section already points out that collision
avoidance is not a requirement:

   Failure of a provided hash to correctly and uniquely
   identify the correct set of hashed parameters may at most lead to a
   failed TLS handshake followed by a new attempt without the cached
   information extension. No serious security threat requires selected
   hash algorithms to have strong collision resistance.

CRC32 would provide sufficient uniqueness for this application, but
since client libraries already include SHA-1, it is a convenient (albeit
slower and overqualified) substitute.  The interoperability benefit of
requiring support for a common algorithm:

   Compliant implementations MUST support "wxyz" as HashAlgorithm.

... far outweighs any conceivable benefit of not requiring support for a
common algorithm.   Algorithm agility, negotiation, and version
dependencies would be grotesque complexities in this context.

Dave



-----Original Message-----
From: Brian Smith

I think it is especially important to have the SHA-1 requirement=20
changed. It is a big hassle to require SHA-1 for compliance when now=20
every use of SHA-1 has to be reviewed. Also, mandating SHA-1 would be in

conflict with other requirements--especially requirements to follow NIST

and NSA recommendations regarding algorithms. At a minimum, make SHA-1=20
support mandatory only if/when the connection's negotiated version is=20
less than TLS 1.2.

From stefan@aaa-sec.com  Fri Feb 19 00:42:29 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 5B6B428C1F1 for <tls@core3.amsl.com>; Fri, 19 Feb 2010 00:42:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.249
X-Spam-Level: 
X-Spam-Status: No, score=-2.249 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_EQ_SE=0.35]
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 Ffo9-HxwDBcf for <tls@core3.amsl.com>; Fri, 19 Feb 2010 00:42:28 -0800 (PST)
Received: from s87.loopia.se (s87.loopia.se [194.9.95.114]) by core3.amsl.com (Postfix) with ESMTP id 7C2C028C1FB for <tls@ietf.org>; Fri, 19 Feb 2010 00:42:27 -0800 (PST)
Received: from s42.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 6AFA4348649 for <tls@ietf.org>; Fri, 19 Feb 2010 09:38:40 +0100 (CET)
Received: (qmail 31349 invoked from network); 19 Feb 2010 08:38:37 -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 <DPKemp@missi.ncsc.mil>; 19 Feb 2010 08:38:37 -0000
User-Agent: Microsoft-Entourage/12.23.0.091001
Date: Fri, 19 Feb 2010 09:38:36 +0100
From: Stefan Santesson <stefan@aaa-sec.com>
To: "Kemp, David P." <DPKemp@missi.ncsc.mil>, <tls@ietf.org>
Message-ID: <C7A40C9C.8640%stefan@aaa-sec.com>
Thread-Topic: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
Thread-Index: AcqwxOLCaYgsSXXQQoeFyBf1PrnyoQAAvfTQAB3Eqy0=
In-Reply-To: <201002181900.o1IJ0p1U005839@stingray.missi.ncsc.mil>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted
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, 19 Feb 2010 08:42:29 -0000

+1 on Dave's comment here.

Note that SHA1 is "MUST support". It is not "MUST use".
You don't have to send a SHA1 hash, but if you do, you can be confident that
the recipient can handle it.

/Stefan


On 10-02-18 8:00 PM, "Kemp, David P." <DPKemp@missi.ncsc.mil> wrote:

> The security considerations section already points out that collision
> avoidance is not a requirement:
> 
>    Failure of a provided hash to correctly and uniquely
>    identify the correct set of hashed parameters may at most lead to a
>    failed TLS handshake followed by a new attempt without the cached
>    information extension. No serious security threat requires selected
>    hash algorithms to have strong collision resistance.
> 
> CRC32 would provide sufficient uniqueness for this application, but
> since client libraries already include SHA-1, it is a convenient (albeit
> slower and overqualified) substitute.  The interoperability benefit of
> requiring support for a common algorithm:
> 
>    Compliant implementations MUST support "wxyz" as HashAlgorithm.
> 
> ... far outweighs any conceivable benefit of not requiring support for a
> common algorithm.   Algorithm agility, negotiation, and version
> dependencies would be grotesque complexities in this context.
> 
> Dave
> 
> 
> 
> -----Original Message-----
> From: Brian Smith
> 
> I think it is especially important to have the SHA-1 requirement
> changed. It is a big hassle to require SHA-1 for compliance when now
> every use of SHA-1 has to be reviewed. Also, mandating SHA-1 would be in
> 
> conflict with other requirements--especially requirements to follow NIST
> 
> and NSA recommendations regarding algorithms. At a minimum, make SHA-1
> support mandatory only if/when the connection's negotiated version is
> less than TLS 1.2.
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls



From mrex@sap.com  Fri Feb 19 06:02: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 EAD2A28C27A for <tls@core3.amsl.com>; Fri, 19 Feb 2010 06:02:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.217
X-Spam-Level: 
X-Spam-Status: No, score=-10.217 tagged_above=-999 required=5 tests=[AWL=0.032, 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 towO7ZgG-I3u for <tls@core3.amsl.com>; Fri, 19 Feb 2010 06:02:12 -0800 (PST)
Received: from smtpde03.sap-ag.de (smtpde03.sap-ag.de [155.56.68.140]) by core3.amsl.com (Postfix) with ESMTP id A2F1828C269 for <tls@ietf.org>; Fri, 19 Feb 2010 06:02:11 -0800 (PST)
Received: from mail.sap.corp by smtpde03.sap-ag.de (26) with ESMTP id o1JE3rqE021793 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 19 Feb 2010 15:03:53 +0100 (MET)
From: Martin Rex <mrex@sap.com>
Message-Id: <201002191403.o1JE3qWe004203@fs4113.wdf.sap.corp>
To: brian@briansmith.org (Brian Smith)
Date: Fri, 19 Feb 2010 15:03:52 +0100 (MET)
In-Reply-To: <4B7D811D.50909@briansmith.org> from "Brian Smith" at Feb 18, 10 12:04:13 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] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft
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: Fri, 19 Feb 2010 14:02:13 -0000

Brian Smith wrote:
> 
> Stefan Santesson wrote:
> > Well,
> >
> > I went through my change list and have now updated and reposted the draft as
> > draft-03.
> >
> > Changes can be viewed from:
> > http://tools.ietf.org/rfcdiff?url2=draft-ietf-tls-cached-info-03.txt
> >    
> I think it is especially important to have the SHA-1 requirement 
> changed. It is a big hassle to require SHA-1 for compliance when now 
> every use of SHA-1 has to be reviewed. Also, mandating SHA-1 would be in 
> conflict with other requirements--especially requirements to follow NIST 
> and NSA recommendations regarding algorithms. At a minimum, make SHA-1 
> support mandatory only if/when the connection's negotiated version is 
> less than TLS 1.2.


I assumed that NIST deprecated the use of SHA-1 only for digital signatures.
Implementations of TLS v1.0 and v1.1 may not support anything besides
SHA-1 within TLS yet.

The use of SHA-1 is not as security critical as you might think it is.
The _real_ data, identified by the hash, must still be processed, but
it is taken from the clients cache instead of being transferred
over the wire.


> 
> The server already told the client what hash algorithms it supports in 
> CertificateRequest message from which the client extracted the cached 
> certificate_authorities.

That is one of the non-obvious changes in TLS v1.2.
Prior versions (TLSv1.1,TLSv1.0,SSLv3) do not have a signature
algorithms element in the CertificateRequest message.

One IMHO of the biggest problems in the revised TLS specifications
is that it doesn't clearly document changes from prior protocol
versions.  rfc-5246 7.4.4. CertificateRequest ought to really
have mentioned in the description of "supported_signature_algorithms"
that this element was newly inserted into the CertificateRequest
message with TLSv1.2 and does not exist in prior versions of TLS/SSLv3.



> ... the server could indicate which items it supports by including 
> empty extension(s) with the corresponding type(s), which is what most 
> other extensions do.

I also think that reporting back in ServerHello for which elements
it supports caching would be a good idea.


-Martin


From brian@briansmith.org  Fri Feb 19 07:04:38 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 047503A7B3A for <tls@core3.amsl.com>; Fri, 19 Feb 2010 07:04:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level: 
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=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 R9Rdm-pVRSwi for <tls@core3.amsl.com>; Fri, 19 Feb 2010 07:04:36 -0800 (PST)
Received: from mxout-07.mxes.net (mxout-07.mxes.net [216.86.168.182]) by core3.amsl.com (Postfix) with ESMTP id 339E53A6A3D for <tls@ietf.org>; Fri, 19 Feb 2010 07:04:36 -0800 (PST)
Received: from [192.168.1.65] (unknown [70.134.205.106]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id C9F2222E254; Fri, 19 Feb 2010 10:06:15 -0500 (EST)
Message-ID: <4B7EA8E7.3050703@briansmith.org>
Date: Fri, 19 Feb 2010 09:06:15 -0600
From: Brian Smith <brian@briansmith.org>
User-Agent: Postbox 1.1.1 (Windows/20100208)
MIME-Version: 1.0
To: mrex@sap.com
References: <201002191403.o1JE3qWe004203@fs4113.wdf.sap.corp>
In-Reply-To: <201002191403.o1JE3qWe004203@fs4113.wdf.sap.corp>
Content-Type: multipart/alternative; boundary="------------080608070103070606070503"
Cc: tls@ietf.org
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Fri, 19 Feb 2010 15:04:38 -0000

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

Martin Rex wrote:
> Brian Smith wrote:
>    
>>
>> I think it is especially important to have the SHA-1 requirement
>> changed. It is a big hassle to require SHA-1 for compliance when now
>> every use of SHA-1 has to be reviewed. Also, mandating SHA-1 would be in
>> conflict with other requirements--especially requirements to follow NIST
>> and NSA recommendations regarding algorithms. At a minimum, make SHA-1
>> support mandatory only if/when the connection's negotiated version is
>> less than TLS 1.2.
>>      
> I assumed that NIST deprecated the use of SHA-1 only for digital signatures.
>    
 From http://csrc.nist.gov/groups/ST/toolkit/secure_hashing.html:

"Regardless of use, NIST encourages application and protocol designers 
to use the SHA-2 family of hash functions for all new applications and 
protocols. 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). "

Notice in particular that NIST has a whitelist of approved uses for 
SHA-1, not a blacklist.
> Implementations of TLS v1.0 and v1.1 may not support anything besides
> SHA-1 within TLS yet.
>    
This reasoning is backwards. A TLS 1.2 implementation doesn't need to 
implement SHA-1 at all, except for backward compatibility. A TLS 1.0/1.1 
implementation would need to be updated to support this extension 
anyway, and the addition of new hash algorithms can be done at the same 
time. Plus, TLS 1.0/1.1 implementations need to be upgraded to TLS 1.2 
anyway, specifically to avoid SHA-1 and MD5.

I already have TLS 1.2 software that contains only NSA Suite B 
algorithms, and that already follows the NIST recommendation to use 
SHA-2 for "all new applications." To implement this specification, I 
would have to add a non-suite-B algorithm to my software. While that is 
a minor technological problem (more code, more testing, more 
documentation), it is a bigger social problem, because it requires 
careful explanation to users/customers that SHA-1 is used, but it isn't 
used in a way that affects the security of the protocol. It is much 
easier to explain to customers that the software doesn't contain 
non-suite-B algorithms at all.
> The use of SHA-1 is not as security critical as you might think it is.
> The _real_ data, identified by the hash, must still be processed, but
> it is taken from the clients cache instead of being transferred
> over the wire.
>    
Yes, I understand this and agree with it. But, it is still in conflict 
with NIST's recommendation, regardless.
>> The server already told the client what hash algorithms it supports in
>> CertificateRequest message from which the client extracted the cached
>> certificate_authorities.
>>      
> That is one of the non-obvious changes in TLS v1.2.
> Prior versions (TLSv1.1,TLSv1.0,SSLv3) do not have a signature
> algorithms element in the CertificateRequest message.
>    
That can be solved by simply hard-coding a hash algorithm for the TLS 
1.0 and TLS 1.1 implementations.

Regards,
Brian

--------------080608070103070606070503
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Martin Rex wrote:
<blockquote cite="mid:201002191403.o1JE3qWe004203@fs4113.wdf.sap.corp"
 type="cite">
  <pre wrap="">Brian Smith wrote:
  </pre>
  <blockquote type="cite"><br>
    <pre wrap="">I think it is especially important to have the SHA-1 requirement 
changed. It is a big hassle to require SHA-1 for compliance when now 
every use of SHA-1 has to be reviewed. Also, mandating SHA-1 would be in 
conflict with other requirements--especially requirements to follow NIST 
and NSA recommendations regarding algorithms. At a minimum, make SHA-1 
support mandatory only if/when the connection's negotiated version is 
less than TLS 1.2.
    </pre>
  </blockquote>
  <pre wrap=""><!---->I assumed that NIST deprecated the use of SHA-1 only for digital signatures.
  </pre>
</blockquote>
>From <a class="moz-txt-link-freetext" href="http://csrc.nist.gov/groups/ST/toolkit/secure_hashing.html:">http://csrc.nist.gov/groups/ST/toolkit/secure_hashing.html:</a><br>
<br>
"Regardless of use, NIST encourages application and protocol designers
to use the SHA-2 family of hash functions for all new applications and
protocols. 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). " <br>
<br>
Notice in particular that NIST has a whitelist of approved uses for
SHA-1, not a blacklist.<br>
<blockquote cite="mid:201002191403.o1JE3qWe004203@fs4113.wdf.sap.corp"
 type="cite">
  <pre wrap="">Implementations of TLS v1.0 and v1.1 may not support anything besides
SHA-1 within TLS yet.
  </pre>
</blockquote>
This reasoning is backwards. A TLS 1.2 implementation doesn't need to
implement SHA-1 at all, except for backward compatibility. A TLS
1.0/1.1 implementation would need to be updated to support this
extension anyway, and the addition of new hash algorithms can be done
at the same time. Plus, TLS 1.0/1.1 implementations need to be upgraded
to TLS 1.2 anyway, specifically to avoid SHA-1 and MD5.<br>
<br>
I already have TLS 1.2 software that contains only NSA Suite B
algorithms, and that already follows the NIST recommendation to use
SHA-2 for "all new applications." To implement this specification, I
would have to add a non-suite-B algorithm to my software. While that is
a minor technological problem (more code, more testing, more
documentation), it is a bigger social problem, because it requires
careful explanation to users/customers that SHA-1 is used, but it isn't
used in a way that affects the security of the protocol. It is much
easier to explain to customers that the software doesn't contain
non-suite-B algorithms at all.<br>
<blockquote cite="mid:201002191403.o1JE3qWe004203@fs4113.wdf.sap.corp"
 type="cite">
  <pre wrap="">The use of SHA-1 is not as security critical as you might think it is.
The _real_ data, identified by the hash, must still be processed, but
it is taken from the clients cache instead of being transferred
over the wire.
  </pre>
</blockquote>
Yes, I understand this and agree with it. But, it is still in conflict
with NIST's recommendation, regardless.<br>
<blockquote cite="mid:201002191403.o1JE3qWe004203@fs4113.wdf.sap.corp"
 type="cite">
  <blockquote type="cite">
    <pre wrap="">The server already told the client what hash algorithms it supports in 
CertificateRequest message from which the client extracted the cached 
certificate_authorities.
    </pre>
  </blockquote>
  <pre wrap=""><!---->That is one of the non-obvious changes in TLS v1.2.
Prior versions (TLSv1.1,TLSv1.0,SSLv3) do not have a signature
algorithms element in the CertificateRequest message.
  </pre>
</blockquote>
That can be solved by simply hard-coding a hash algorithm for the TLS
1.0 and TLS 1.1 implementations.<br>
<br>
Regards,<br>
Brian<br>
</body>
</html>

--------------080608070103070606070503--

From stefan@aaa-sec.com  Fri Feb 19 07:12: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 2408028C119 for <tls@core3.amsl.com>; Fri, 19 Feb 2010 07:12:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.249
X-Spam-Level: 
X-Spam-Status: No, score=-2.249 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_EQ_SE=0.35]
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 db1msUwt+mwi for <tls@core3.amsl.com>; Fri, 19 Feb 2010 07:12:02 -0800 (PST)
Received: from s87.loopia.se (s87.loopia.se [194.9.95.114]) by core3.amsl.com (Postfix) with ESMTP id 8539A3A7CE8 for <tls@ietf.org>; Fri, 19 Feb 2010 07:12:01 -0800 (PST)
Received: from s24.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 3601938277D for <tls@ietf.org>; Fri, 19 Feb 2010 16:01:56 +0100 (CET)
Received: (qmail 34521 invoked from network); 19 Feb 2010 15:01:50 -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 <brian@briansmith.org>; 19 Feb 2010 15:01:50 -0000
User-Agent: Microsoft-Entourage/12.23.0.091001
Date: Fri, 19 Feb 2010 16:01:49 +0100
From: Stefan Santesson <stefan@aaa-sec.com>
To: Brian Smith <brian@briansmith.org>, Adam Langley <agl@google.com>, <tls@ietf.org>
Message-ID: <C7A4666D.8663%stefan@aaa-sec.com>
Thread-Topic: Cached-info substitution
Thread-Index: AcqxdHYlusTY3ZghHkKpSFP6omKzhw==
In-Reply-To: <4B7D8AAD.80204@briansmith.org>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Subject: [TLS] Cached-info substitution
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, 19 Feb 2010 15:12:04 -0000

Brian and Adam,

On 10-02-18 7:45 PM, "Brian Smith" <brian@briansmith.org> wrote:

>> 4) results from the fact that I don't think the current draft is clear
>> enough about how the substitution occurs. Making new handshake types
>> means that everything is very explicit and I prefer that. However, I
>> can't think of anything technically wrong with just memcmp()ing for
>> the hash values in the existing handshake messages, if it was
>> precisely specified.
>>    
> I would say the message flow should just go something like this: If the
> server doesn't send a Certificate message, then use the cached
> certificate. If the server sends a CertificateRequest with an empty
> (zero-length) certificate_authorities then use the cached
> certificate_authorities. Then nobody has to do any substitution, it's
> much easier to specify, and much easier to implement than the
> substitution mechanism from the current draft or introducing new
> handshake messages would be. Note that this is how RFC5088 works (you
> have to infer what the server is saying based on what handshake messages
> it skips; for example, if the server doesn't send a Certificate right
> after its ServerHello then you have to infer that it's doing a
> resumption based on the given ticket).

Breaking out this question in a separate thread.

I do not like the though of defining new handshake messages. We have a very
small name space for handshake messages with very strict rules for defining
new ones.

I like in principle your suggested simplification to omit whole handshake
messages to indicate substitution. However, this works only if the cached
parameter is the only parameter of the handshake message. I.e. It works for
the server Certificate message but not for the certificate_authorities
parameter of the CertificateRequest message.


I do however absolutely agree that the current document is underspecified as
to how the substitution is done. It also offers an alternative syntax for
the handshake message with hash substitution which may be a bit problematic.


As I see it we have two choices.

1) To define a format for the handshake message which include the hash
substitution using a syntax that alters the defined syntax of the handshake
message. (current draft approach)

2) To define a format which preserves the original handshake message syntax.


In practice this would look something like this:


Certificate handshake message:

Original syntax:
      opaque ASN.1Cert<1..2^24-1>;

      struct {
          ASN.1Cert certificate_list<0..2^24-1>;
      } Certificate;


Substitution syntax, choice 1 (current draft):
      struct {
          CachedInformationHash certificate_list<0..2^24-1>;
      } Certificate;


Substitution syntax, choice 2 (preserving original syntax):
      CachedInformationHash CachedCertList<1..2^24-1>;

      struct {
          CachedCertList certificate_list<0..2^24-1>;
      } Certificate;



The corresponding syntax for CertificateREquest;

Original syntax:
      opaque DistinguishedName<1..2^16-1>;

      struct {
          ClientCertificateType certificate_types<1..2^8-1>;
          SignatureAndHashAlgorithm
            supported_signature_algorithms<2^16-1>;
          DistinguishedName certificate_authorities<0..2^16-1>;
      } CertificateRequest;


Substitution syntax, choice 1(current draft):
      struct {
          ClientCertificateType certificate_types<1..2^8-1>;
          SignatureAndHashAlgorithm
            supported_signature_algorithms<2^16-1>;
          CachedInformationHash certificate_authorities<0..2^16-1>;
      } CertificateRequest;


Substitution syntax, choice 2 (preserving original syntax):
      CachedInformationHash Cached_authorities<1..1^16>

      struct {
          ClientCertificateType certificate_types<1..2^8-1>;
          SignatureAndHashAlgorithm
            supported_signature_algorithms<2^16-1>;
          Cached_authorities certificate_authorities<0..2^16-1>;
      } CertificateRequest;



I think I prefer choice 2 as it reduce the possibility for problems when
parsing handshake messages using legacy code.

Comments suggestions?

/Stefan








From stefan@aaa-sec.com  Fri Feb 19 07:18: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 3CBEC3A7315 for <tls@core3.amsl.com>; Fri, 19 Feb 2010 07:18:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.249
X-Spam-Level: 
X-Spam-Status: No, score=-2.249 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_EQ_SE=0.35]
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 aH8B1-ilhFnL for <tls@core3.amsl.com>; Fri, 19 Feb 2010 07:18:01 -0800 (PST)
Received: from s87.loopia.se (s87.loopia.se [194.9.95.114]) by core3.amsl.com (Postfix) with ESMTP id 426D63A7CE8 for <tls@ietf.org>; Fri, 19 Feb 2010 07:18:00 -0800 (PST)
Received: from s60.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id A6AD238F574 for <tls@ietf.org>; Fri, 19 Feb 2010 16:08:02 +0100 (CET)
Received: (qmail 8028 invoked from network); 19 Feb 2010 15:07:56 -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 <mrex@sap.com>; 19 Feb 2010 15:07:56 -0000
User-Agent: Microsoft-Entourage/12.23.0.091001
Date: Fri, 19 Feb 2010 16:07:52 +0100
From: Stefan Santesson <stefan@aaa-sec.com>
To: <mrex@sap.com>, Brian Smith <brian@briansmith.org>
Message-ID: <C7A467D8.8666%stefan@aaa-sec.com>
Thread-Topic: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft
Thread-Index: AcqxdU6Dfo7gx94IR0ueYp687iUVow==
In-Reply-To: <201002191403.o1JE3qWe004203@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] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Fri, 19 Feb 2010 15:18:02 -0000

Martin,


On 10-02-19 3:03 PM, "Martin Rex" <mrex@sap.com> wrote:

> I also think that reporting back in ServerHello for which elements
> it supports caching would be a good idea.


I'm not opposing this.

Are you saying that the server (at server hello) should state which TYPE of
elements is supports for caching, or do you propose that the server should
state exactly which hash values received by the client the server accepts?

I thought you didn't want the server to be forced to choose which hash
values it accepts at server hello time.

/Stefan



From DPKemp@missi.ncsc.mil  Fri Feb 19 07:37:07 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 6E61E3A7CE8 for <tls@core3.amsl.com>; Fri, 19 Feb 2010 07:37:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[AWL=-0.000, BAYES_00=-2.599, 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 zMxN+WbbC84N for <tls@core3.amsl.com>; Fri, 19 Feb 2010 07:37:06 -0800 (PST)
Received: from stingray.missi.ncsc.mil (stingray.missi.ncsc.mil [144.51.50.20]) by core3.amsl.com (Postfix) with ESMTP id DF4083A7D16 for <tls@ietf.org>; Fri, 19 Feb 2010 07:37:05 -0800 (PST)
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_01CAB179.9069F1F5"
Date: Fri, 19 Feb 2010 10:38:18 -0500
Message-ID: <201002191538.o1JFcqh4005438@stingray.missi.ncsc.mil>
In-Reply-To: <4B7EA8E7.3050703@briansmith.org>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft
Thread-Index: Acqxdxh2WJRjlvXNQjeVp8CEF5rFpwAAIq2g
References: <201002191403.o1JE3qWe004203@fs4113.wdf.sap.corp> <4B7EA8E7.3050703@briansmith.org>
From: "Kemp, David P." <DPKemp@missi.ncsc.mil>
To: <tls@ietf.org>
X-OriginalArrivalTime: 19 Feb 2010 15:39:37.0828 (UTC) FILETIME=[BE799A40:01CAB179]
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Fri, 19 Feb 2010 15:37:07 -0000

This is a multi-part message in MIME format.

------_=_NextPart_001_01CAB179.9069F1F5
Content-Type: text/plain;
	charset="utf-8"
Content-Transfer-Encoding: base64

Tm90ZSB0aGF0IHRoZSBrZXkgY29uY2VwdCBkZXNjcmliZWQgaW4gc2VjdXJlX2hhc2hpbmcuaHRt
bCBpcyDigJxzZWN1cmXigJ06ICANCg0KIA0KDQpGZWRlcmFsIGFnZW5jaWVzIHNob3VsZCBzdG9w
IHVzaW5nIFNIQS0xIGZvciBkaWdpdGFsIHNpZ25hdHVyZXMsIGRpZ2l0YWwgdGltZSBzdGFtcGlu
ZyBhbmQgb3RoZXIgYXBwbGljYXRpb25zIHRoYXQgcmVxdWlyZSBjb2xsaXNpb24gcmVzaXN0YW5j
ZSBhcyBzb29uIGFzIHByYWN0aWNhbCwgYW5kIG11c3QgdXNlIHRoZSBTSEEtMiBmYW1pbHkgb2Yg
aGFzaCBmdW5jdGlvbnMgZm9yIHRoZXNlIGFwcGxpY2F0aW9ucyBhZnRlciAyMDEwLg0KDQogDQoN
CldoZW4gYSBoYXNoIGFsZ29yaXRobSBpcyB1c2VkIGZvciBub24tc2VjdXJpdHkgcHVycG9zZXMs
IHN1Y2ggYXMgZGF0YWJhc2UgYnVja2V0aW5nIChodHRwOi8vZW4ud2lraXBlZGlhLm9yZy93aWtp
L0hhc2hfdGFibGUpIG9yIGNhY2hlIG9iamVjdCBzZWxlY3Rpb24sIHRoZSBOSVNUIGd1aWRhbmNl
IGRvZXMgbm90IGFwcGx5Lg0KDQogDQoNCkRhdmUNCg0KIA0KDQogDQoNCkZyb206IHRscy1ib3Vu
Y2VzQGlldGYub3JnIFttYWlsdG86dGxzLWJvdW5jZXNAaWV0Zi5vcmddIE9uIEJlaGFsZiBPZiBC
cmlhbiBTbWl0aA0KU2VudDogRnJpZGF5LCBGZWJydWFyeSAxOSwgMjAxMCAxMDowNiBBTQ0KVG86
IG1yZXhAc2FwLmNvbQ0KQ2M6IHRsc0BpZXRmLm9yZw0KU3ViamVjdDogUmU6IFtUTFNdIGRyYWZ0
LWlldGYtdGxzLWNhY2hlZC1pbmZvLTAyIC8gTmV3ICJGYXN0LVRyYWNrIiBkcmFmdA0KDQogIA0K
DQpGcm9tIGh0dHA6Ly9jc3JjLm5pc3QuZ292L2dyb3Vwcy9TVC90b29sa2l0L3NlY3VyZV9oYXNo
aW5nLmh0bWw6DQoNCiJSZWdhcmRsZXNzIG9mIHVzZSwgTklTVCBlbmNvdXJhZ2VzIGFwcGxpY2F0
aW9uIGFuZCBwcm90b2NvbCBkZXNpZ25lcnMgdG8gdXNlIHRoZSBTSEEtMiBmYW1pbHkgb2YgaGFz
aCBmdW5jdGlvbnMgZm9yIGFsbCBuZXcgYXBwbGljYXRpb25zIGFuZCBwcm90b2NvbHMuIEFmdGVy
IDIwMTAsIEZlZGVyYWwgYWdlbmNpZXMgbWF5IHVzZSBTSEEtMSBvbmx5IGZvciB0aGUgZm9sbG93
aW5nIGFwcGxpY2F0aW9uczogaGFzaC1iYXNlZCBtZXNzYWdlIGF1dGhlbnRpY2F0aW9uIGNvZGVz
IChITUFDcyk7IGtleSBkZXJpdmF0aW9uIGZ1bmN0aW9ucyAoS0RGcyk7IGFuZCByYW5kb20gbnVt
YmVyIGdlbmVyYXRvcnMgKFJOR3MpLiAiIA0KDQoNCg0KUmVnYXJkcywNCkJyaWFuDQoNCg==

------_=_NextPart_001_01CAB179.9069F1F5
Content-Type: text/html;
	charset="utf-8"
Content-Transfer-Encoding: base64

PGh0bWwgeG1sbnM6dj0idXJuOnNjaGVtYXMtbWljcm9zb2Z0LWNvbTp2bWwiIHhtbG5zOm89InVy
bjpzY2hlbWFzLW1pY3Jvc29mdC1jb206b2ZmaWNlOm9mZmljZSIgeG1sbnM6dz0idXJuOnNjaGVt
YXMtbWljcm9zb2Z0LWNvbTpvZmZpY2U6d29yZCIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWlj
cm9zb2Z0LmNvbS9vZmZpY2UvMjAwNC8xMi9vbW1sIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcv
VFIvUkVDLWh0bWw0MCI+DQoNCjxoZWFkPg0KPE1FVEEgSFRUUC1FUVVJVj0iQ29udGVudC1UeXBl
IiBDT05URU5UPSJ0ZXh0L2h0bWw7IGNoYXJzZXQ9dXRmLTgiPg0KDQoNCjxtZXRhIG5hbWU9R2Vu
ZXJhdG9yIGNvbnRlbnQ9Ik1pY3Jvc29mdCBXb3JkIDEyIChmaWx0ZXJlZCBtZWRpdW0pIj4NCjxz
dHlsZT4NCjwhLS0NCiAvKiBGb250IERlZmluaXRpb25zICovDQogQGZvbnQtZmFjZQ0KCXtmb250
LWZhbWlseTpDYWxpYnJpOw0KCXBhbm9zZS0xOjIgMTUgNSAyIDIgMiA0IDMgMiA0O30NCkBmb250
LWZhY2UNCgl7Zm9udC1mYW1pbHk6VGFob21hOw0KCXBhbm9zZS0xOjIgMTEgNiA0IDMgNSA0IDQg
MiA0O30NCkBmb250LWZhY2UNCgl7Zm9udC1mYW1pbHk6Q29uc29sYXM7DQoJcGFub3NlLTE6MiAx
MSA2IDkgMiAyIDQgMyAyIDQ7fQ0KIC8qIFN0eWxlIERlZmluaXRpb25zICovDQogcC5Nc29Ob3Jt
YWwsIGxpLk1zb05vcm1hbCwgZGl2Lk1zb05vcm1hbA0KCXttYXJnaW46MGluOw0KCW1hcmdpbi1i
b3R0b206LjAwMDFwdDsNCglmb250LXNpemU6MTIuMHB0Ow0KCWZvbnQtZmFtaWx5OiJUaW1lcyBO
ZXcgUm9tYW4iLCJzZXJpZiI7DQoJY29sb3I6YmxhY2s7fQ0KYTpsaW5rLCBzcGFuLk1zb0h5cGVy
bGluaw0KCXttc28tc3R5bGUtcHJpb3JpdHk6OTk7DQoJY29sb3I6Ymx1ZTsNCgl0ZXh0LWRlY29y
YXRpb246dW5kZXJsaW5lO30NCmE6dmlzaXRlZCwgc3Bhbi5Nc29IeXBlcmxpbmtGb2xsb3dlZA0K
CXttc28tc3R5bGUtcHJpb3JpdHk6OTk7DQoJY29sb3I6cHVycGxlOw0KCXRleHQtZGVjb3JhdGlv
bjp1bmRlcmxpbmU7fQ0KcHJlDQoJe21zby1zdHlsZS1wcmlvcml0eTo5OTsNCgltc28tc3R5bGUt
bGluazoiSFRNTCBQcmVmb3JtYXR0ZWQgQ2hhciI7DQoJbWFyZ2luOjBpbjsNCgltYXJnaW4tYm90
dG9tOi4wMDAxcHQ7DQoJZm9udC1zaXplOjEwLjBwdDsNCglmb250LWZhbWlseToiQ291cmllciBO
ZXciOw0KCWNvbG9yOmJsYWNrO30NCnNwYW4uSFRNTFByZWZvcm1hdHRlZENoYXINCgl7bXNvLXN0
eWxlLW5hbWU6IkhUTUwgUHJlZm9ybWF0dGVkIENoYXIiOw0KCW1zby1zdHlsZS1wcmlvcml0eTo5
OTsNCgltc28tc3R5bGUtbGluazoiSFRNTCBQcmVmb3JtYXR0ZWQiOw0KCWZvbnQtZmFtaWx5OkNv
bnNvbGFzOw0KCWNvbG9yOmJsYWNrO30NCnNwYW4uRW1haWxTdHlsZTE5DQoJe21zby1zdHlsZS10
eXBlOnBlcnNvbmFsLXJlcGx5Ow0KCWZvbnQtZmFtaWx5OiJDYWxpYnJpIiwic2Fucy1zZXJpZiI7
DQoJY29sb3I6IzFGNDk3RDt9DQouTXNvQ2hwRGVmYXVsdA0KCXttc28tc3R5bGUtdHlwZTpleHBv
cnQtb25seTsNCglmb250LXNpemU6MTAuMHB0O30NCkBwYWdlIFNlY3Rpb24xDQoJe3NpemU6OC41
aW4gMTEuMGluOw0KCW1hcmdpbjoxLjBpbiAxLjBpbiAxLjBpbiAxLjBpbjt9DQpkaXYuU2VjdGlv
bjENCgl7cGFnZTpTZWN0aW9uMTt9DQotLT4NCjwvc3R5bGU+DQo8IS0tW2lmIGd0ZSBtc28gOV0+
PHhtbD4NCiA8bzpzaGFwZWRlZmF1bHRzIHY6ZXh0PSJlZGl0IiBzcGlkbWF4PSIxMDI2IiAvPg0K
PC94bWw+PCFbZW5kaWZdLS0+PCEtLVtpZiBndGUgbXNvIDldPjx4bWw+DQogPG86c2hhcGVsYXlv
dXQgdjpleHQ9ImVkaXQiPg0KICA8bzppZG1hcCB2OmV4dD0iZWRpdCIgZGF0YT0iMSIgLz4NCiA8
L286c2hhcGVsYXlvdXQ+PC94bWw+PCFbZW5kaWZdLS0+DQo8L2hlYWQ+DQoNCjxib2R5IGJnY29s
b3I9d2hpdGUgbGFuZz1FTi1VUyBsaW5rPWJsdWUgdmxpbms9cHVycGxlPg0KDQo8ZGl2IGNsYXNz
PVNlY3Rpb24xPg0KDQo8cCBjbGFzcz1Nc29Ob3JtYWw+PHNwYW4gbGFuZz1FTj5Ob3RlIHRoYXQg
dGhlIGtleSBjb25jZXB0IGRlc2NyaWJlZCBpbiA8dT5zZWN1cmVfaGFzaGluZy5odG1sPC91Pg0K
aXMg4oCcc2VjdXJl4oCdOsKgIDxvOnA+PC9vOnA+PC9zcGFuPjwvcD4NCg0KPHAgY2xhc3M9TXNv
Tm9ybWFsPjxzcGFuIGxhbmc9RU4+PG86cD4mbmJzcDs8L286cD48L3NwYW4+PC9wPg0KDQo8cCBj
bGFzcz1Nc29Ob3JtYWwgc3R5bGU9J21hcmdpbi1sZWZ0Oi41aW4nPjxpPjxzcGFuIGxhbmc9RU4+
RmVkZXJhbCBhZ2VuY2llcw0Kc2hvdWxkIHN0b3AgdXNpbmcgU0hBLTEgZm9yIGRpZ2l0YWwgc2ln
bmF0dXJlcywgZGlnaXRhbCB0aW1lIHN0YW1waW5nIGFuZCBvdGhlcg0KYXBwbGljYXRpb25zIHRo
YXQgcmVxdWlyZSBjb2xsaXNpb24gcmVzaXN0YW5jZSBhcyBzb29uIGFzIHByYWN0aWNhbCwgYW5k
IG11c3QNCnVzZSB0aGUgU0hBLTIgZmFtaWx5IG9mIGhhc2ggZnVuY3Rpb25zIGZvciB0aGVzZSBh
cHBsaWNhdGlvbnMgYWZ0ZXIgMjAxMC48bzpwPjwvbzpwPjwvc3Bhbj48L2k+PC9wPg0KDQo8cCBj
bGFzcz1Nc29Ob3JtYWwgc3R5bGU9J21hcmdpbi1sZWZ0Oi41aW4nPjxpPjxzcGFuIGxhbmc9RU4+
PG86cD4mbmJzcDs8L286cD48L3NwYW4+PC9pPjwvcD4NCg0KPHAgY2xhc3M9TXNvTm9ybWFsPjxz
cGFuIGxhbmc9RU4+V2hlbiBhIGhhc2ggYWxnb3JpdGhtIGlzIHVzZWQgZm9yIG5vbi1zZWN1cml0
eQ0KcHVycG9zZXMsIHN1Y2ggYXMgZGF0YWJhc2UgYnVja2V0aW5nICg8YQ0KaHJlZj0iaHR0cDov
L2VuLndpa2lwZWRpYS5vcmcvd2lraS9IYXNoX3RhYmxlIj5odHRwOi8vZW4ud2lraXBlZGlhLm9y
Zy93aWtpL0hhc2hfdGFibGU8L2E+KQ0Kb3IgY2FjaGUgb2JqZWN0IHNlbGVjdGlvbiwgdGhlIE5J
U1QgZ3VpZGFuY2UgZG9lcyBub3QgYXBwbHkuPG86cD48L286cD48L3NwYW4+PC9wPg0KDQo8cCBj
bGFzcz1Nc29Ob3JtYWw+PHNwYW4gbGFuZz1FTj48bzpwPiZuYnNwOzwvbzpwPjwvc3Bhbj48L3A+
DQoNCjxwIGNsYXNzPU1zb05vcm1hbD48c3BhbiBsYW5nPUVOPkRhdmU8bzpwPjwvbzpwPjwvc3Bh
bj48L3A+DQoNCjxwIGNsYXNzPU1zb05vcm1hbD48c3BhbiBzdHlsZT0nZm9udC1zaXplOjExLjBw
dDtmb250LWZhbWlseToiQ2FsaWJyaSIsInNhbnMtc2VyaWYiOw0KY29sb3I6IzFGNDk3RCc+PG86
cD4mbmJzcDs8L286cD48L3NwYW4+PC9wPg0KDQo8cCBjbGFzcz1Nc29Ob3JtYWw+PHNwYW4gc3R5
bGU9J2ZvbnQtc2l6ZToxMS4wcHQ7Zm9udC1mYW1pbHk6IkNhbGlicmkiLCJzYW5zLXNlcmlmIjsN
CmNvbG9yOiMxRjQ5N0QnPjxvOnA+Jm5ic3A7PC9vOnA+PC9zcGFuPjwvcD4NCg0KPGRpdj4NCg0K
PGRpdiBzdHlsZT0nYm9yZGVyOm5vbmU7Ym9yZGVyLXRvcDpzb2xpZCAjQjVDNERGIDEuMHB0O3Bh
ZGRpbmc6My4wcHQgMGluIDBpbiAwaW4nPg0KDQo8cCBjbGFzcz1Nc29Ob3JtYWw+PGI+PHNwYW4g
c3R5bGU9J2ZvbnQtc2l6ZToxMC4wcHQ7Zm9udC1mYW1pbHk6IlRhaG9tYSIsInNhbnMtc2VyaWYi
Ow0KY29sb3I6d2luZG93dGV4dCc+RnJvbTo8L3NwYW4+PC9iPjxzcGFuIHN0eWxlPSdmb250LXNp
emU6MTAuMHB0O2ZvbnQtZmFtaWx5Og0KIlRhaG9tYSIsInNhbnMtc2VyaWYiO2NvbG9yOndpbmRv
d3RleHQnPiB0bHMtYm91bmNlc0BpZXRmLm9yZw0KW21haWx0bzp0bHMtYm91bmNlc0BpZXRmLm9y
Z10gPGI+T24gQmVoYWxmIE9mIDwvYj5CcmlhbiBTbWl0aDxicj4NCjxiPlNlbnQ6PC9iPiBGcmlk
YXksIEZlYnJ1YXJ5IDE5LCAyMDEwIDEwOjA2IEFNPGJyPg0KPGI+VG86PC9iPiBtcmV4QHNhcC5j
b208YnI+DQo8Yj5DYzo8L2I+IHRsc0BpZXRmLm9yZzxicj4NCjxiPlN1YmplY3Q6PC9iPiBSZTog
W1RMU10gZHJhZnQtaWV0Zi10bHMtY2FjaGVkLWluZm8tMDIgLyBOZXcNCiZxdW90O0Zhc3QtVHJh
Y2smcXVvdDsgZHJhZnQ8bzpwPjwvbzpwPjwvc3Bhbj48L3A+DQoNCjwvZGl2Pg0KDQo8L2Rpdj4N
Cg0KPHByZT7CoCA8bzpwPjwvbzpwPjwvcHJlPg0KDQo8cCBjbGFzcz1Nc29Ob3JtYWw+RnJvbSA8
YQ0KaHJlZj0iaHR0cDovL2NzcmMubmlzdC5nb3YvZ3JvdXBzL1NUL3Rvb2xraXQvc2VjdXJlX2hh
c2hpbmcuaHRtbDoiPmh0dHA6Ly9jc3JjLm5pc3QuZ292L2dyb3Vwcy9TVC90b29sa2l0L3NlY3Vy
ZV9oYXNoaW5nLmh0bWw6PC9hPjxicj4NCjxicj4NCiZxdW90O1JlZ2FyZGxlc3Mgb2YgdXNlLCBO
SVNUIGVuY291cmFnZXMgYXBwbGljYXRpb24gYW5kIHByb3RvY29sIGRlc2lnbmVycyB0bw0KdXNl
IHRoZSBTSEEtMiBmYW1pbHkgb2YgaGFzaCBmdW5jdGlvbnMgZm9yIGFsbCBuZXcgYXBwbGljYXRp
b25zIGFuZCBwcm90b2NvbHMuDQpBZnRlciAyMDEwLCBGZWRlcmFsIGFnZW5jaWVzIG1heSB1c2Ug
U0hBLTEgb25seSBmb3IgdGhlIGZvbGxvd2luZyBhcHBsaWNhdGlvbnM6DQpoYXNoLWJhc2VkIG1l
c3NhZ2UgYXV0aGVudGljYXRpb24gY29kZXMgKEhNQUNzKTsga2V5IGRlcml2YXRpb24gZnVuY3Rp
b25zDQooS0RGcyk7IGFuZCByYW5kb20gbnVtYmVyIGdlbmVyYXRvcnMgKFJOR3MpLiAmcXVvdDsg
PGJyPg0KPGJyPg0KPG86cD48L286cD48L3A+DQoNCjxwIGNsYXNzPU1zb05vcm1hbD5SZWdhcmRz
LDxicj4NCkJyaWFuPG86cD48L286cD48L3A+DQoNCjwvZGl2Pg0KDQo8L2JvZHk+DQoNCjwvaHRt
bD4NCg==

------_=_NextPart_001_01CAB179.9069F1F5--

From brian@briansmith.org  Fri Feb 19 07:38:13 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 6FE963A7EB6 for <tls@core3.amsl.com>; Fri, 19 Feb 2010 07:38:13 -0800 (PST)
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=[AWL=0.001,  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 smdMAbza2A1k for <tls@core3.amsl.com>; Fri, 19 Feb 2010 07:38:12 -0800 (PST)
Received: from mxout-07.mxes.net (mxout-07.mxes.net [216.86.168.182]) by core3.amsl.com (Postfix) with ESMTP id B3C313A7CE8 for <tls@ietf.org>; Fri, 19 Feb 2010 07:38:12 -0800 (PST)
Received: from [192.168.1.65] (unknown [70.134.205.106]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id B34C922E254; Fri, 19 Feb 2010 10:39:52 -0500 (EST)
Message-ID: <4B7EB0CB.20806@briansmith.org>
Date: Fri, 19 Feb 2010 09:39:55 -0600
From: Brian Smith <brian@briansmith.org>
User-Agent: Postbox 1.1.1 (Windows/20100208)
MIME-Version: 1.0
To: Stefan Santesson <stefan@aaa-sec.com>
References: <C7A4666D.8663%stefan@aaa-sec.com>
In-Reply-To: <C7A4666D.8663%stefan@aaa-sec.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Cached-info substitution
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, 19 Feb 2010 15:38:13 -0000

Stefan Santesson wrote:
> I like in principle your suggested simplification to omit whole handshake
> messages to indicate substitution. However, this works only if the cached
> parameter is the only parameter of the handshake message. I.e. It works for
> the server Certificate message but not for the certificate_authorities
> parameter of the CertificateRequest message.
>    
That's why I suggested to treat a zero-length 
CertificateRequest.certificate_authorities (encoded "0x00 0x00") as "use 
the cached value" if and only if the server hello says that the server 
supports caching it. Maybe it is also possible to treat a zero-length 
Certificate.certificate_list ("0x00 0x00 0x00") as "use the cached 
value" if and only if the server hello says the server supports caching 
it. I suggested omitting the Certificate message completely only because 
I am not sure if any cipher suites allow zero-length certificate lists 
for another reason.

Regards,
Brian

From mrex@sap.com  Fri Feb 19 08:13:37 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 57D463A773A for <tls@core3.amsl.com>; Fri, 19 Feb 2010 08:13:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.218
X-Spam-Level: 
X-Spam-Status: No, score=-10.218 tagged_above=-999 required=5 tests=[AWL=0.031, 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 qzJWO5q0I+uc for <tls@core3.amsl.com>; Fri, 19 Feb 2010 08:13:36 -0800 (PST)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.171]) by core3.amsl.com (Postfix) with ESMTP id A739528C0FD for <tls@ietf.org>; Fri, 19 Feb 2010 08:13:34 -0800 (PST)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o1JGFGWJ000506 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 19 Feb 2010 17:15:16 +0100 (MET)
From: Martin Rex <mrex@sap.com>
Message-Id: <201002191615.o1JGFFrY012219@fs4113.wdf.sap.corp>
To: stefan@aaa-sec.com (Stefan Santesson)
Date: Fri, 19 Feb 2010 17:15:15 +0100 (MET)
In-Reply-To: <C7A467D8.8666%stefan@aaa-sec.com> from "Stefan Santesson" at Feb 19, 10 04:07:52 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] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft
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: Fri, 19 Feb 2010 16:13:37 -0000

Stefan Santesson wrote:
> 
> On 10-02-19 3:03 PM, "Martin Rex" <mrex@sap.com> wrote:
> 
> > I also think that reporting back in ServerHello for which elements
> > it supports caching would be a good idea.
> 
> I'm not opposing this.
> 
> Are you saying that the server (at server hello) should state which TYPE of
> elements is supports for caching, or do you propose that the server should
> state exactly which hash values received by the client the server accepts?
> 
> I thought you didn't want the server to be forced to choose which hash
> values it accepts at server hello time.


With "reporting back for which elements it supports caching"
I meant "supporting in theory", not an actual match of the
real data from future handshake messages with proposed hashed
values supplied by the client.

This should be done in a fashion that the client can probe
on the initial connect (i.e. when the client does not have any
values cached) to determine:

   - whether the server supports caching of data at all
   - for which elements the server supports caching in principle
   - confirmation which hash algorithm the server supports

which the client can then use to decide:
   - whether caching of any handshake data for that server makes
     any sense at all of would be a complete waste
   - which hash algorithm to use to identify cached handshake
     data in future handshakes with that server


-Martin

From agl@google.com  Fri Feb 19 08:26:16 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 35FB928C262 for <tls@core3.amsl.com>; Fri, 19 Feb 2010 08:26:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.977
X-Spam-Level: 
X-Spam-Status: No, score=-104.977 tagged_above=-999 required=5 tests=[AWL=1.000, 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 26aYHfLpFdw7 for <tls@core3.amsl.com>; Fri, 19 Feb 2010 08:26:15 -0800 (PST)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.33.17]) by core3.amsl.com (Postfix) with ESMTP id 290EC28C14E for <tls@ietf.org>; Fri, 19 Feb 2010 08:26:15 -0800 (PST)
Received: from wpaz13.hot.corp.google.com (wpaz13.hot.corp.google.com [172.24.198.77]) by smtp-out.google.com with ESMTP id o1JGS0r1022355 for <tls@ietf.org>; Fri, 19 Feb 2010 16:28:00 GMT
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1266596881; bh=uncf8zWbXRJTAA7m5Slo51aCOl8=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=qQAD+xHo9LK0/H+WvprHBXyAjOJIIv0CuXmJHJTqyiXSbinUXIihuJIbR1SJGQ5bK VlgsbZMejLxd3Lb4KpeoA==
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=hg8dFuBskLDO//6BqhJgJNrlGxyAS1uB0N4yzqIZA85f05RQhNlUNAyksQ61e/ZwI Vw2+uz3M050nO74SPYlyQ==
Received: from pxi36 (pxi36.prod.google.com [10.243.27.36]) by wpaz13.hot.corp.google.com with ESMTP id o1JGRwow013988 for <tls@ietf.org>; Fri, 19 Feb 2010 08:27:59 -0800
Received: by pxi36 with SMTP id 36so114870pxi.20 for <tls@ietf.org>; Fri, 19 Feb 2010 08:27:58 -0800 (PST)
MIME-Version: 1.0
Received: by 10.142.118.5 with SMTP id q5mr7538031wfc.320.1266596878472; Fri,  19 Feb 2010 08:27:58 -0800 (PST)
In-Reply-To: <C7A4666D.8663%stefan@aaa-sec.com>
References: <4B7D8AAD.80204@briansmith.org> <C7A4666D.8663%stefan@aaa-sec.com>
Date: Fri, 19 Feb 2010 11:27:58 -0500
Message-ID: <a84d7bc61002190827t66450279vf3861d7e34425f04@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
Subject: Re: [TLS] Cached-info substitution
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, 19 Feb 2010 16:26:16 -0000

On Fri, Feb 19, 2010 at 10:01 AM, Stefan Santesson <stefan@aaa-sec.com> wrote:
> 1) To define a format for the handshake message which include the hash
> substitution using a syntax that alters the defined syntax of the handshake
> message. (current draft approach)
>
> 2) To define a format which preserves the original handshake message syntax.

I'm afraid that I'm still not clear what you mean here.

In the current draft:

"Following a successful exchange of "cached_information" extensions,
the server may replace data objects identified through the client
extension with any of the CachedInformationHash values received from
the client, which matches the replaced object."

My understanding is that this is a "memcmp for magic values" scheme.
Given the size of the hashes, this isn't unreasonable, I just feel
that we should be more explicit if possible.

Given that, we could

1) define new handshake messages, although you're correct that the
namespace is small.

2) Redefine the structure of the existing handshake messages for the
case when this extension is in effect. The new structures would have
an explicit field for substituted hashes, in addition to the old
fields. Hosts would choice one or the other to be non-zero length.
(Based on my knowledge of NSS and OpenSSL's code, this wouldn't be too
bad to implement.)

3) Wedge the cached values into the current structures somehow. Brian
suggests using zero lengths as a magic marker. However, the hash value
would still need to follow because the client could have predicted one
of several values. I think this is a poor man's version of option two.


AGL

From brian@briansmith.org  Fri Feb 19 08:43: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 EDECC3A8195 for <tls@core3.amsl.com>; Fri, 19 Feb 2010 08:43:03 -0800 (PST)
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=[AWL=0.000,  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 6hhpg0oQicyn for <tls@core3.amsl.com>; Fri, 19 Feb 2010 08:43:03 -0800 (PST)
Received: from mxout-07.mxes.net (mxout-07.mxes.net [216.86.168.182]) by core3.amsl.com (Postfix) with ESMTP id EEE0F28C0FB for <tls@ietf.org>; Fri, 19 Feb 2010 08:43:02 -0800 (PST)
Received: from [192.168.1.65] (unknown [70.134.205.106]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 6455D22E25A; Fri, 19 Feb 2010 11:44:43 -0500 (EST)
Message-ID: <4B7EBFFB.3070601@briansmith.org>
Date: Fri, 19 Feb 2010 10:44:43 -0600
From: Brian Smith <brian@briansmith.org>
User-Agent: Postbox 1.1.1 (Windows/20100208)
MIME-Version: 1.0
To: Adam Langley <agl@google.com>
References: <4B7D8AAD.80204@briansmith.org> <C7A4666D.8663%stefan@aaa-sec.com> <a84d7bc61002190827t66450279vf3861d7e34425f04@mail.gmail.com>
In-Reply-To: <a84d7bc61002190827t66450279vf3861d7e34425f04@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Cached-info substitution
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, 19 Feb 2010 16:43:04 -0000

Adam Langley wrote:
> 3) Wedge the cached values into the current structures somehow. Brian
> suggests using zero lengths as a magic marker. However, the hash value
> would still need to follow because the client could have predicted one
> of several values. I think this is a poor man's version of option two.
>
>    
I had been making the (apparently incorrect) assumption that only one 
CachedObject per CachedInformationType value was allowed in the client 
hello. I thought the intention here was to have the client always 
cache/send the value for each information type that was most recently 
received from the server (perhaps out-of-band). Is there a need for more 
flexibility than that? AFAICT, for the uses identified so far, there isn't.

Regards,
Brian

From agl@google.com  Fri Feb 19 08:51:15 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 A70F328C2A4 for <tls@core3.amsl.com>; Fri, 19 Feb 2010 08:51:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.088
X-Spam-Level: 
X-Spam-Status: No, score=-105.088 tagged_above=-999 required=5 tests=[AWL=0.889, 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 NchNdtK4WYdv for <tls@core3.amsl.com>; Fri, 19 Feb 2010 08:51:14 -0800 (PST)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id 6ABBA28C309 for <tls@ietf.org>; Fri, 19 Feb 2010 08:51:14 -0800 (PST)
Received: from wpaz24.hot.corp.google.com (wpaz24.hot.corp.google.com [172.24.198.88]) by smtp-out.google.com with ESMTP id o1JGr0WZ005078 for <tls@ietf.org>; Fri, 19 Feb 2010 08:53:01 -0800
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1266598381; bh=FrHSUb/AxoLtxqx/0dbjTZS+oFo=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=jRYltufKXrq3wU6rspD7b7VmVTE35G/Lpxl7CltWiUkZ2Ca4pW9Wkw5vxoS2w9DPu 4mAeCMylCLCnEt6Dtih9Q==
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=L458D/iZyAF5025nR3HjN+RgVLlTLCGIQ/Z0GaquLWcFdIg+jDDHvC5tGw8YXSK5E Zs30xh7hjrPTWiG/tnlJw==
Received: from pwj7 (pwj7.prod.google.com [10.241.219.71]) by wpaz24.hot.corp.google.com with ESMTP id o1JGqwAG014634 for <tls@ietf.org>; Fri, 19 Feb 2010 08:53:00 -0800
Received: by pwj7 with SMTP id 7so233060pwj.28 for <tls@ietf.org>; Fri, 19 Feb 2010 08:52:58 -0800 (PST)
MIME-Version: 1.0
Received: by 10.142.61.20 with SMTP id j20mr2699606wfa.105.1266598378574; Fri,  19 Feb 2010 08:52:58 -0800 (PST)
In-Reply-To: <4B7EBFFB.3070601@briansmith.org>
References: <4B7D8AAD.80204@briansmith.org> <C7A4666D.8663%stefan@aaa-sec.com> <a84d7bc61002190827t66450279vf3861d7e34425f04@mail.gmail.com> <4B7EBFFB.3070601@briansmith.org>
Date: Fri, 19 Feb 2010 11:52:58 -0500
Message-ID: <a84d7bc61002190852y684103ecmc95c23853c24dc5a@mail.gmail.com>
From: Adam Langley <agl@google.com>
To: Brian Smith <brian@briansmith.org>
Content-Type: text/plain; charset=UTF-8
X-System-Of-Record: true
Cc: tls@ietf.org
Subject: Re: [TLS] Cached-info substitution
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, 19 Feb 2010 16:51:15 -0000

On Fri, Feb 19, 2010 at 11:44 AM, Brian Smith <brian@briansmith.org> wrote:
> I had been making the (apparently incorrect) assumption that only one
> CachedObject per CachedInformationType value was allowed in the client
> hello. I thought the intention here was to have the client always cache/send
> the value for each information type that was most recently received from the
> server (perhaps out-of-band). Is there a need for more flexibility than
> that? AFAICT, for the uses identified so far, there isn't.

I had interpreted the draft to mean that multiple possible
CachedObjects with the same type could be presented.

I can imagine some use cases where this would be helpful: an
organisation which can multiple serving clusters for the same domain
name, where each cluster has a different certificate. Or when a new
certificate was being rolled out to a number of servers, but clients
were getting load balanced between them.

However, given that this is only an optimisation, these cases might be
sufficiently unimportant that we can forbid multiple CachedObjects
with the same type and reap the benefits in a simpler substitution
scheme. I think I would be happy with that unless some particularly
compelling use case arises.


AGL

From brian@briansmith.org  Fri Feb 19 09:03:35 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 C162728C25A for <tls@core3.amsl.com>; Fri, 19 Feb 2010 09:03:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level: 
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[AWL=-0.000, BAYES_00=-2.599, HTML_MESSAGE=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 DlMVFMnAQIIp for <tls@core3.amsl.com>; Fri, 19 Feb 2010 09:03:34 -0800 (PST)
Received: from mxout-07.mxes.net (mxout-07.mxes.net [216.86.168.182]) by core3.amsl.com (Postfix) with ESMTP id E8B3128C2AE for <tls@ietf.org>; Fri, 19 Feb 2010 09:03:33 -0800 (PST)
Received: from [192.168.1.65] (unknown [70.134.205.106]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 7FF7C22E1F3; Fri, 19 Feb 2010 12:05:19 -0500 (EST)
Message-ID: <4B7EC4D1.5070006@briansmith.org>
Date: Fri, 19 Feb 2010 11:05:21 -0600
From: Brian Smith <brian@briansmith.org>
User-Agent: Postbox 1.1.1 (Windows/20100208)
MIME-Version: 1.0
To: "Kemp, David P." <DPKemp@missi.ncsc.mil>
References: <201002191403.o1JE3qWe004203@fs4113.wdf.sap.corp>	<4B7EA8E7.3050703@briansmith.org> <201002191538.o1JFcqh4005438@stingray.missi.ncsc.mil>
In-Reply-To: <201002191538.o1JFcqh4005438@stingray.missi.ncsc.mil>
Content-Type: multipart/alternative; boundary="------------090402030706020107020006"
Cc: tls@ietf.org
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Fri, 19 Feb 2010 17:03:35 -0000

This is a multi-part message in MIME format.
--------------090402030706020107020006
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Kemp, David P. wrote:
>
> Note that the key concept described in _secure_hashing.html_ is “secure”:
>
> /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./
>
> / /
>
> When a hash algorithm is used for non-security purposes, such as 
> database bucketing (http://en.wikipedia.org/wiki/Hash_table) or cache 
> object selection, the NIST guidance does not apply.
>
Yes, I read that sentence too. And, I agree with your very common-sense 
interpretation of things. But, while the sentence you quote has the 
qualifier "that require collision resistance," the rest of the 
recommendations against SHA-1 don't have that qualifier, so I am not 
totally convinced. And, I am definitely not convinced that all 
users/customers will be convinced, so I would rather be safe than sorry.

Perhaps this all can be avoided by simply not having the client 
calculate hashes at all for . For example, would this work?:

struct {
     CachedInformationType type;
     opaque token<0..255>;
} CachedObject;

In a server hello: If CachedObject.token is empty, then the client must 
use its cached value for the given information type. The corresponding 
fields in the server hello (e.g. Certificate.certificate_list or 
CertificateRequest.certificate_authorities) MUST be empty. If 
CachedObject.token is not empty, then the server will send a new value, 
and that new value can be identified by the client in subsequent client 
hellos using the given token; an empty value (e.g. an empty 
Certificate.certificate_authorities) must not be interpreted as an 
indication to use a previously-cached value. For a given value, a server 
should return the same token string to every client, so that the token 
isn't used as a tracking cookie that could be used to distinguish 
distinct clients. The server must ensure that the same token is never 
used to identify different values (that is, every token must map to at 
most one value). Since the goal of this extension is to reduce the 
number of bytes transmitted, the token should be short. It is strongly 
recommended that the server use a secure hash algorithm (e.g. SHA-2) of 
the value as the token.

In a client hello: CachedObject.token must not be empty, and it must 
contain a token previously retrieved from the same server (either in a 
previous TLS handshake, or out of band).

Regards,
Brian


--------------090402030706020107020006
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Kemp, David P. wrote:
<blockquote
 cite="mid:201002191538.o1JFcqh4005438@stingray.missi.ncsc.mil"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="Generator" content="Microsoft Word 12 (filtered medium)">
  <style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 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";
	color:black;}
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;}
pre
	{mso-style-priority:99;
	mso-style-link:"HTML Preformatted Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";
	color:black;}
span.HTMLPreformattedChar
	{mso-style-name:"HTML Preformatted Char";
	mso-style-priority:99;
	mso-style-link:"HTML Preformatted";
	font-family:Consolas;
	color:black;}
span.EmailStyle19
	{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;}
-->
  </style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
  <div class="Section1">
  <p class="MsoNormal"><span lang="EN">Note that the key concept
described in <u>secure_hashing.html</u>
is “secure”:  <o:p></o:p></span></p>
  <p class="MsoNormal"><span lang="EN"><o:p> </o:p></span></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><i><span lang="EN">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.<o:p></o:p></span></i></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><i><span lang="EN"><o:p> </o:p></span></i></p>
  <p class="MsoNormal"><span lang="EN">When a hash algorithm is used
for non-security
purposes, such as database bucketing (<a moz-do-not-send="true"
 href="http://en.wikipedia.org/wiki/Hash_table">http://en.wikipedia.org/wiki/Hash_table</a>)
or
cache object selection, the NIST guidance does not apply.</span></p>
  </div>
</blockquote>
Yes, I read that sentence too. And, I agree with your very common-sense
interpretation of things. But, while the sentence you quote has the
qualifier "that require collision resistance," the rest of the
recommendations against SHA-1 don't have that qualifier, so I am not
totally convinced. And, I am definitely not convinced that all
users/customers will be convinced, so I would rather be safe than sorry.<br>
<br>
Perhaps this all can be avoided by simply not having the client
calculate hashes at all for . For example, would this work?:<br>
<br>
struct {<br>
    CachedInformationType type;<br>
    opaque token&lt;0..255&gt;; <br>
} CachedObject;
<br>
<br>
In a server hello: If CachedObject.token is empty, then the client must
use its cached value for the given information type. The corresponding
fields in the server hello (e.g. Certificate.certificate_list or
CertificateRequest.certificate_authorities) MUST be empty. If
CachedObject.token is not empty, then the server will send a new value,
and that new value can be identified by the client in subsequent client
hellos using the given token; an empty value (e.g. an empty
Certificate.certificate_authorities) must not be interpreted as an
indication to use a previously-cached value. For a given value, a
server should return the same token string to every client, so that the
token isn't used as a tracking cookie that could be used to distinguish
distinct clients. The server must ensure that the same token is never
used to identify different values (that is, every token must map to at
most one value). Since the goal of this extension is to reduce the
number of bytes transmitted, the token should be short. It is strongly
recommended that the server use a secure hash algorithm (e.g. SHA-2) of
the value as the token.<br>
<br>
In a client hello: CachedObject.token must not be empty, and it must
contain a token previously retrieved from the same server (either in a
previous TLS handshake, or out of band).<br>
<br>
Regards,<br>
Brian<br>
<br>
</body>
</html>

--------------090402030706020107020006--

From stefan@aaa-sec.com  Fri Feb 19 09:03:36 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 CC5B828C2AE for <tls@core3.amsl.com>; Fri, 19 Feb 2010 09:03:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.249
X-Spam-Level: 
X-Spam-Status: No, score=-2.249 tagged_above=-999 required=5 tests=[AWL=0.000,  BAYES_00=-2.599, HELO_EQ_SE=0.35]
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 x5Ycu7vEsOac for <tls@core3.amsl.com>; Fri, 19 Feb 2010 09:03:36 -0800 (PST)
Received: from s87.loopia.se (s87.loopia.se [194.9.95.114]) by core3.amsl.com (Postfix) with ESMTP id E80E328C25A for <tls@ietf.org>; Fri, 19 Feb 2010 09:03:35 -0800 (PST)
Received: from s24.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id DF09E38AAAF for <tls@ietf.org>; Fri, 19 Feb 2010 18:05:26 +0100 (CET)
Received: (qmail 17975 invoked from network); 19 Feb 2010 17:05:20 -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 <agl@google.com>; 19 Feb 2010 17:05:20 -0000
User-Agent: Microsoft-Entourage/12.23.0.091001
Date: Fri, 19 Feb 2010 18:05:14 +0100
From: Stefan Santesson <stefan@aaa-sec.com>
To: Adam Langley <agl@google.com>, Brian Smith <brian@briansmith.org>
Message-ID: <C7A4835A.8698%stefan@aaa-sec.com>
Thread-Topic: [TLS] Cached-info substitution
Thread-Index: AcqxhbPfTO0TaC7kpU2Ulza48SIzsg==
In-Reply-To: <a84d7bc61002190852y684103ecmc95c23853c24dc5a@mail.gmail.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Cached-info substitution
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, 19 Feb 2010 17:03:36 -0000

I had the same type if use case in mind.

I think it is better and rather harmless to allow the flexibility.
Client provide a list.... Server picks one. That is an old, well tested and
useful concept.

/Stefan

On 10-02-19 5:52 PM, "Adam Langley" <agl@google.com> wrote:

> On Fri, Feb 19, 2010 at 11:44 AM, Brian Smith <brian@briansmith.org> wrote:
>> I had been making the (apparently incorrect) assumption that only one
>> CachedObject per CachedInformationType value was allowed in the client
>> hello. I thought the intention here was to have the client always cache/send
>> the value for each information type that was most recently received from the
>> server (perhaps out-of-band). Is there a need for more flexibility than
>> that? AFAICT, for the uses identified so far, there isn't.
> 
> I had interpreted the draft to mean that multiple possible
> CachedObjects with the same type could be presented.
> 
> I can imagine some use cases where this would be helpful: an
> organisation which can multiple serving clusters for the same domain
> name, where each cluster has a different certificate. Or when a new
> certificate was being rolled out to a number of servers, but clients
> were getting load balanced between them.
> 
> However, given that this is only an optimisation, these cases might be
> sufficiently unimportant that we can forbid multiple CachedObjects
> with the same type and reap the benefits in a simpler substitution
> scheme. I think I would be happy with that unless some particularly
> compelling use case arises.
> 
> 
> AGL
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls



From stefan@aaa-sec.com  Fri Feb 19 09:16:03 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 551DE3A7FB3 for <tls@core3.amsl.com>; Fri, 19 Feb 2010 09:16:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.551
X-Spam-Level: 
X-Spam-Status: No, score=-1.551 tagged_above=-999 required=5 tests=[AWL=-0.699, BAYES_00=-2.599, HELO_EQ_SE=0.35, HTML_MESSAGE=0.001, MIME_QP_LONG_LINE=1.396]
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 mUoYhohB01DZ for <tls@core3.amsl.com>; Fri, 19 Feb 2010 09:15:57 -0800 (PST)
Received: from s87.loopia.se (s87.loopia.se [194.9.95.114]) by core3.amsl.com (Postfix) with ESMTP id 853323A810C for <tls@ietf.org>; Fri, 19 Feb 2010 09:15:56 -0800 (PST)
Received: from s57.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 5C13E38D75F for <tls@ietf.org>; Fri, 19 Feb 2010 18:17:49 +0100 (CET)
Received: (qmail 26044 invoked from network); 19 Feb 2010 17:17: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 s57.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <brian@briansmith.org>; 19 Feb 2010 17:17:42 -0000
User-Agent: Microsoft-Entourage/12.23.0.091001
Date: Fri, 19 Feb 2010 18:17:39 +0100
From: Stefan Santesson <stefan@aaa-sec.com>
To: Brian Smith <brian@briansmith.org>, "Kemp, David P." <DPKemp@missi.ncsc.mil>
Message-ID: <C7A48643.869E%stefan@aaa-sec.com>
Thread-Topic: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft
Thread-Index: Acqxh2/tzJU5NCre9k2+0ZvxdMfuoA==
In-Reply-To: <4B7EC4D1.5070006@briansmith.org>
Mime-version: 1.0
Content-type: multipart/alternative; boundary="B_3349448262_5316889"
Cc: tls@ietf.org
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Fri, 19 Feb 2010 17:16:03 -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_3349448262_5316889
Content-type: text/plain;
	charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable

Brian, =20

The use of hash functions in this draft does not require collision
resistance.
This is actually quite easy to prove.

/Stefan



On 10-02-19 6:05 PM, "Brian Smith" <brian@briansmith.org> wrote:

> Kemp, David P. wrote:
>>    =20
>> =20
>>=20
>> Note that the key concept described in secure_hashing.html is =B3secure=B2:=A0
>> =20
>> =A0
>> =20
>> Federal agencies should stop using SHA-1 for digital signatures, digital=
 time
>> stamping and other applications that require collision resistance as soo=
n as
>> practical, and must use the SHA-2 family of hash functions for these
>> applications after 2010.
>> =20
>> =A0
>> =20
>> When a hash algorithm is used for non-security purposes, such as databas=
e
>> bucketing (http://en.wikipedia.org/wiki/Hash_table) or cache object
>> selection, the NIST guidance does not apply.
>> =20
> Yes, I read that sentence too. And, I agree with your very common-sense
> interpretation of things. But, while the sentence you quote has the quali=
fier
> "that require collision resistance," the rest of the recommendations agai=
nst
> SHA-1 don't have that qualifier, so I am not totally convinced. And, I am
> definitely not convinced that all users/customers will be convinced, so I
> would rather be safe than sorry.
>=20
> Perhaps this all can be avoided by simply not having the client calculate
> hashes at all for . For example, would this work?:
>=20
> struct {
> =A0=A0=A0 CachedInformationType type;
> =A0=A0=A0 opaque token<0..255>;
> } CachedObject;=20
>=20
> In a server hello: If CachedObject.token is empty, then the client must u=
se
> its cached value for the given information type. The corresponding fields=
 in
> the server hello (e.g. Certificate.certificate_list or
> CertificateRequest.certificate_authorities) MUST be empty. If
> CachedObject.token is not empty, then the server will send a new value, a=
nd
> that new value can be identified by the client in subsequent client hello=
s
> using the given token; an empty value (e.g. an empty
> Certificate.certificate_authorities) must not be interpreted as an indica=
tion
> to use a previously-cached value. For a given value, a server should retu=
rn
> the same token string to every client, so that the token isn't used as a
> tracking cookie that could be used to distinguish distinct clients. The s=
erver
> must ensure that the same token is never used to identify different value=
s
> (that is, every token must map to at most one value). Since the goal of t=
his
> extension is to reduce the number of bytes transmitted, the token should =
be
> short. It is strongly recommended that the server use a secure hash algor=
ithm
> (e.g. SHA-2) of the value as the token.
>=20
> In a client hello: CachedObject.token must not be empty, and it must cont=
ain a
> token previously retrieved from the same server (either in a previous TLS
> handshake, or out of band).
>=20
> Regards,
> Brian
>=20
>=20
>=20
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls


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

<HTML>
<HEAD>
<TITLE>Re: [TLS] draft-ietf-tls-cached-info-02 / New &quot;Fast-Track&quot;=
 draft</TITLE>
</HEAD>
<BODY>
<FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:11pt=
'>Brian, &nbsp;<BR>
<BR>
The use of hash functions in this draft does not require collision resistan=
ce.<BR>
This is actually quite easy to prove.<BR>
<BR>
/Stefan<BR>
<BR>
<BR>
<BR>
On 10-02-19 6:05 PM, &quot;Brian Smith&quot; &lt;<a href=3D"brian@briansmith.=
org">brian@briansmith.org</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><=
SPAN STYLE=3D'font-size:11pt'>Kemp, David P. wrote: <BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><=
SPAN STYLE=3D'font-size:11pt'> &nbsp;&nbsp;&nbsp;<BR>
&nbsp;<BR>
<BR>
</SPAN></FONT><FONT FACE=3D"Times New Roman"><SPAN STYLE=3D'font-size:12pt'>Not=
e that the key concept described in <U>secure_hashing.html</U> is &#8220;sec=
ure&#8221;:=A0 <BR>
</SPAN></FONT><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><SPAN STYLE=3D'=
font-size:11pt'> <BR>
</SPAN></FONT><FONT FACE=3D"Times New Roman"><SPAN STYLE=3D'font-size:12pt'>=A0<B=
R>
</SPAN></FONT><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><SPAN STYLE=3D'=
font-size:11pt'> <BR>
</SPAN></FONT><FONT FACE=3D"Times New Roman"><SPAN STYLE=3D'font-size:12pt'><I>=
Federal agencies should stop using SHA-1 for digital signatures, digital tim=
e stamping and other applications that require collision resistance as soon =
as practical, and must use the SHA-2 family of hash functions for these appl=
ications after 2010.<BR>
</I></SPAN></FONT><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><SPAN STY=
LE=3D'font-size:11pt'> <BR>
</SPAN></FONT><FONT FACE=3D"Times New Roman"><SPAN STYLE=3D'font-size:12pt'><I>=
=A0<BR>
</I></SPAN></FONT><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><SPAN STY=
LE=3D'font-size:11pt'> <BR>
</SPAN></FONT><FONT FACE=3D"Times New Roman"><SPAN STYLE=3D'font-size:12pt'>Whe=
n a hash algorithm is used for non-security purposes, such as database bucke=
ting (<a href=3D"http://en.wikipedia.org/wiki/Hash_table">http://en.wikipedia.=
org/wiki/Hash_table</a>) or cache object selection, the NIST guidance does n=
ot apply.<BR>
</SPAN></FONT><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><SPAN STYLE=3D'=
font-size:11pt'> <BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial">=
<SPAN STYLE=3D'font-size:11pt'>Yes, I read that sentence too. And, I agree wit=
h your very common-sense interpretation of things. But, while the sentence y=
ou quote has the qualifier &quot;that require collision resistance,&quot; th=
e rest of the recommendations against SHA-1 don't have that qualifier, so I =
am not totally convinced. And, I am definitely not convinced that all users/=
customers will be convinced, so I would rather be safe than sorry.<BR>
<BR>
Perhaps this all can be avoided by simply not having the client calculate h=
ashes at all for . For example, would this work?:<BR>
<BR>
struct {<BR>
=A0=A0=A0 CachedInformationType type;<BR>
=A0=A0=A0 opaque token&lt;0..255&gt;; <BR>
} CachedObject; <BR>
<BR>
In a server hello: If CachedObject.token is empty, then the client must use=
 its cached value for the given information type. The corresponding fields i=
n the server hello (e.g. Certificate.certificate_list or CertificateRequest.=
certificate_authorities) MUST be empty. If CachedObject.token is not empty, =
then the server will send a new value, and that new value can be identified =
by the client in subsequent client hellos using the given token; an empty va=
lue (e.g. an empty Certificate.certificate_authorities) must not be interpre=
ted as an indication to use a previously-cached value. For a given value, a =
server should return the same token string to every client, so that the toke=
n isn't used as a tracking cookie that could be used to distinguish distinct=
 clients. The server must ensure that the same token is never used to identi=
fy different values (that is, every token must map to at most one value). Si=
nce the goal of this extension is to reduce the number of bytes transmitted,=
 the token should be short. It is strongly recommended that the server use a=
 secure hash algorithm (e.g. SHA-2) of the value as the token.<BR>
<BR>
In a client hello: CachedObject.token must not be empty, and it must contai=
n a token previously retrieved from the same server (either in a previous TL=
S handshake, or out of band).<BR>
<BR>
Regards,<BR>
Brian<BR>
<BR>
<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_3349448262_5316889--



From mrex@sap.com  Fri Feb 19 09:43:45 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 607A83A7FB7 for <tls@core3.amsl.com>; Fri, 19 Feb 2010 09:43:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.218
X-Spam-Level: 
X-Spam-Status: No, score=-10.218 tagged_above=-999 required=5 tests=[AWL=0.031, 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 2us9WjoEZk6E for <tls@core3.amsl.com>; Fri, 19 Feb 2010 09:43:44 -0800 (PST)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.171]) by core3.amsl.com (Postfix) with ESMTP id 6297F3A7D70 for <tls@ietf.org>; Fri, 19 Feb 2010 09:43:44 -0800 (PST)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o1JHjRBL029550 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 19 Feb 2010 18:45:27 +0100 (MET)
From: Martin Rex <mrex@sap.com>
Message-Id: <201002191745.o1JHjQcH017621@fs4113.wdf.sap.corp>
To: brian@briansmith.org (Brian Smith)
Date: Fri, 19 Feb 2010 18:45:26 +0100 (MET)
In-Reply-To: <4B7EC4D1.5070006@briansmith.org> from "Brian Smith" at Feb 19, 10 11:05:21 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: DPKemp@missi.ncsc.mil, tls@ietf.org
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft
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: Fri, 19 Feb 2010 17:43:45 -0000

Brian Smith wrote:
> 
> Perhaps this all can be avoided by simply not having the client 
> calculate hashes at all for . For example, would this work?:
> 
> struct {
>      CachedInformationType type;
>      opaque token<0..255>;
> } CachedObject;

I've been advocating the use of a hash value over the real data
so that the handshake will do the right thing automatically if
the data cached by the client and the data the server is going
to return no longer match: the server is going to send the new
data in full, and the client can update his cache.

You definitely do not want a handshake failure (which always
requires application involvement to recover from and a 
new connection) if the data cached by the client is out of
sync with what the server wants to return.

The client needs to be able to distinguish omitted handshake
data (which he has cached) from new real data, and the
server should not be forced to precompute all handshake
messages when composing the server hello handshake message
in order to confirm matches to the data that the client
has indicated to have cached.

-Martin

From brian@briansmith.org  Fri Feb 19 09:51:08 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 956893A8196 for <tls@core3.amsl.com>; Fri, 19 Feb 2010 09:51:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level: 
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[AWL=-0.000, BAYES_00=-2.599, HTML_MESSAGE=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 6AQWAWnJQ2Na for <tls@core3.amsl.com>; Fri, 19 Feb 2010 09:51:07 -0800 (PST)
Received: from mxout-07.mxes.net (mxout-07.mxes.net [216.86.168.182]) by core3.amsl.com (Postfix) with ESMTP id 842803A81A6 for <tls@ietf.org>; Fri, 19 Feb 2010 09:51:07 -0800 (PST)
Received: from [192.168.1.65] (unknown [70.134.205.106]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id ECB7322E1F1; Fri, 19 Feb 2010 12:52:47 -0500 (EST)
Message-ID: <4B7ECFEF.50502@briansmith.org>
Date: Fri, 19 Feb 2010 11:52:47 -0600
From: Brian Smith <brian@briansmith.org>
User-Agent: Postbox 1.1.1 (Windows/20100208)
MIME-Version: 1.0
To: Stefan Santesson <stefan@aaa-sec.com>
References: <C7A48643.869E%stefan@aaa-sec.com>
In-Reply-To: <C7A48643.869E%stefan@aaa-sec.com>
Content-Type: multipart/alternative; boundary="------------070206020609000402050600"
Cc: "Kemp, David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Fri, 19 Feb 2010 17:51:08 -0000

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

Stefan Santesson wrote:
> Brian,
>
> The use of hash functions in this draft does not require collision 
> resistance.
> This is actually quite easy to prove.
Nobody is questioning that at all.

My points are:

1. As long as this web page on the NIST website says, basically, "don't 
use SHA-1 for anything," people will want to disable SHA-1 whenever they 
can. It doesn't matter that this page on the website isn't the official 
NIST recommendation on the matter. It doesn't matter that NIST 
recommendations are only binding for federal government work. It doesn't 
matter that the official NIST recommendation (SP 800-107) is more 
limited in its recommendations against SHA-1. People will still want to 
disable it. Like I said many messages before, even if it isn't a  
technical problem, it is a social problem. And, that problem can be 
easily avoided.

2. It doesn't make sense to require SHA-1 support to be added to 
implementations that don't need SHA-1 for any other purpose. TLS 1.2 
doesn't require SHA-1 for anything, so you can build a compliant and 
useful implementation without SHA-1 support. There are technical 
advantages to doing so. Obviously, this isn't practical for 
general-purpose web browsers, but it is practical for many other uses.

3. There are two simple alternatives that work: (a) mandate SHA2 instead 
of SHA1, at least for TLS 1.2+, or (b) avoid mandating any hashing at 
all by using opaque tokens.

Cheers,
Brian

--------------070206020609000402050600
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Stefan Santesson wrote:
<blockquote cite="mid:C7A48643.869E%25stefan@aaa-sec.com" type="cite">
  <title>Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track"
draft</title>
  <font face="Calibri, Verdana, Helvetica, Arial"><span
 style="font-size: 11pt;">Brian,  <br>
  <br>
The use of hash functions in this draft does not require collision
resistance.<br>
This is actually quite easy to prove.<br>
  </span></font></blockquote>
Nobody is questioning that at all.<br>
<br>
My points are:<br>
<br>
1. As long as this web page on the NIST website says, basically, "don't
use SHA-1 for anything," people will want to disable SHA-1 whenever
they can. It doesn't matter that this page on the website isn't the
official NIST recommendation on the matter. It doesn't matter that NIST
recommendations are only binding for federal government work. It
doesn't matter that the official NIST recommendation (<span
 class="Apple-style-span"
 style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
 class="Apple-style-span"
 style="border-collapse: collapse; font-family: Geneva,Arial,Helvetica,sans-serif; font-size: x-small;">SP
800-107) </span></span>is more limited in its recommendations against
SHA-1. People will still want to disable it. Like I said many messages
before, even if it isn't a  technical problem, it is a social problem.
And, that problem can be easily avoided.<br>
<br>
2. It doesn't make sense to require SHA-1 support to be added to
implementations that don't need SHA-1 for any other purpose. TLS 1.2
doesn't require SHA-1 for anything, so you can build a compliant and
useful implementation without SHA-1 support. There are technical
advantages to doing so. Obviously, this isn't practical for
general-purpose web browsers, but it is practical for many other uses.<br>
<br>
3. There are two simple alternatives that work: (a) mandate SHA2
instead of SHA1, at least for TLS 1.2+, or (b) avoid mandating any
hashing at all by using opaque tokens.<br>
<br>
Cheers,<br>
Brian<br>
</body>
</html>

--------------070206020609000402050600--

From mrex@sap.com  Fri Feb 19 09:57:17 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 7F2E928C17C for <tls@core3.amsl.com>; Fri, 19 Feb 2010 09:57:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.219
X-Spam-Level: 
X-Spam-Status: No, score=-10.219 tagged_above=-999 required=5 tests=[AWL=0.030, 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 5a-MtCg1K0AM for <tls@core3.amsl.com>; Fri, 19 Feb 2010 09:57:16 -0800 (PST)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.171]) by core3.amsl.com (Postfix) with ESMTP id 7400B28C0F6 for <tls@ietf.org>; Fri, 19 Feb 2010 09:57:16 -0800 (PST)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o1JHx0Xc003556 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 19 Feb 2010 18:59:00 +0100 (MET)
From: Martin Rex <mrex@sap.com>
Message-Id: <201002191758.o1JHwxEB018132@fs4113.wdf.sap.corp>
To: brian@briansmith.org (Brian Smith)
Date: Fri, 19 Feb 2010 18:58:59 +0100 (MET)
In-Reply-To: <4B7D811D.50909@briansmith.org> from "Brian Smith" at Feb 18, 10 12:04:13 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] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft
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: Fri, 19 Feb 2010 17:57:17 -0000

Brian Smith wrote:
> 
> Stefan Santesson wrote:
> > Well,
> >
> > I went through my change list and have now updated and reposted the draft as
> > draft-03.
> >
> > Changes can be viewed from:
> > http://tools.ietf.org/rfcdiff?url2=draft-ietf-tls-cached-info-03.txt
>    
> I think it is especially important to have the SHA-1 requirement 
> changed. It is a big hassle to require SHA-1 for compliance when now 
> every use of SHA-1 has to be reviewed. Also, mandating SHA-1 would be in 
> conflict with other requirements--especially requirements to follow NIST 
> and NSA recommendations regarding algorithms. At a minimum, make SHA-1 
> support mandatory only if/when the connection's negotiated version is 
> less than TLS 1.2.

Another issue that you may not have realized is what the requirement
to support SHA-1 really means.  

http://tools.ietf.org/html/rfc3365#section-7

The requirement for SHA-1 is for the purpose of interoperability,
and it makes perfect sense to require SHA-1 to be present in
implementations so that this can be implemented for all existing
protocol stacks, including those prior to TLSv1.2.

Adding a "RECOMMENDED to support SHA-256" to the document wouldn't hurt.

The question which algorithm consumers of this technology
will use (and which algorithms they reject) is a seperate
question.


The protocol version {0x03,0x00}, {0x03,0x01} and {0x03,0x02}
are going to be around for quite some years to come.

-Martin

From DPKemp@missi.ncsc.mil  Fri Feb 19 09:57: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 58B0628C2E7 for <tls@core3.amsl.com>; Fri, 19 Feb 2010 09:57:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.598
X-Spam-Level: 
X-Spam-Status: No, score=-6.598 tagged_above=-999 required=5 tests=[AWL=-0.000, BAYES_00=-2.599, 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 hip-lZ9rjKIW for <tls@core3.amsl.com>; Fri, 19 Feb 2010 09:57:45 -0800 (PST)
Received: from stingray.missi.ncsc.mil (stingray.missi.ncsc.mil [144.51.50.20]) by core3.amsl.com (Postfix) with ESMTP id 635B628C2DF for <tls@ietf.org>; Fri, 19 Feb 2010 09:57:45 -0800 (PST)
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_01CAB18D.435A3238"
Date: Fri, 19 Feb 2010 12:59:20 -0500
Message-ID: <201002191759.o1JHxWij019709@stingray.missi.ncsc.mil>
In-Reply-To: <4B7EC4D1.5070006@briansmith.org>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft
Thread-Index: AcqxhcVnPwHX2EQWTiug/TUBqANa3wAAZiMQ
References: <201002191403.o1JE3qWe004203@fs4113.wdf.sap.corp>	<4B7EA8E7.3050703@briansmith.org> <201002191538.o1JFcqh4005438@stingray.missi.ncsc.mil> <4B7EC4D1.5070006@briansmith.org>
From: "Kemp, David P." <DPKemp@missi.ncsc.mil>
To: <tls@ietf.org>
X-OriginalArrivalTime: 19 Feb 2010 18:00:17.0640 (UTC) FILETIME=[64FEB680:01CAB18D]
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Fri, 19 Feb 2010 17:57:46 -0000

This is a multi-part message in MIME format.

------_=_NextPart_001_01CAB18D.435A3238
Content-Type: text/plain;
	charset="utf-8"
Content-Transfer-Encoding: base64

QXMgU3RlZmFuIHBvaW50ZWQgb3V0LCBNVVNUIHN1cHBvcnQgZG9lcyBub3QgZXF1YWwgTVVTVCB1
c2UuICBJZiB5b3Ugb3IgeW91ciBjdXN0b21lcnMgY2Fubm90IGJlIGNvbnZpbmNlZCB0aGF0IHRo
ZSBOSVNUIGd1aWRhbmNlIGlzIGlycmVsZXZhbnQgdG8gY2FjaGUgaXRlbSB0YWdnaW5nLCB0aGVu
IHlvdXIgaW1wbGVtZW50YXRpb24gY2FuIGNlcnRhaW5seSBzdXBwb3J0IFNIQS0yLiAgSXQgaXMg
ZXZlbiDigJxsZWdhbOKAnSAoaW4gYW4gUkZDIDIxMTkgc2Vuc2UpIGZvciB5b3VyIGN1c3RvbWVy
cyB0byBjb25maWd1cmUgeW91ciBhcHBsaWNhdGlvbiB0byByZWZ1c2UgdG8gdXNlIFNIQS0xIGlm
IHRoZXkgYmVsaWV2ZSB0aGF0IGlzIG5lY2Vzc2FyeSB0byBjb21wbHkgd2l0aCBOSVNUIGd1aWRh
bmNlLCBhcyBsb25nIGFzIG90aGVyIGN1c3RvbWVycyAoZ3VpZGVkIGJ5IGFwcHJvcHJpYXRlIGRv
Y3VtZW50YXRpb24gYW5kIGNvbW1vbiBzZW5zZSkgYXJlIGFibGUgdG8gY29uZmlndXJlIGl0IHRv
IHVzZSBTSEEtMS4NCg0KIA0KDQpJIG9wcG9zZSByZW1vdmluZyBhIHJlcXVpcmVtZW50IHRvIE1V
U1Qgc3VwcG9ydCBhIGNvbW1vbiBhbGdvcml0aG0uICAgQW5kIEkgd291bGQgb3Bwb3NlIG1ha2lu
ZyB0aGUgY29tbW9uIGFsZ29yaXRobSBTSEEtMiBiZWNhdXNlIHRoYXQgaXMgbW92aW5nIGluIHRo
ZSB3cm9uZyBkaXJlY3Rpb24gZm9yIHNhdmluZyBieXRlczogIGEgc2luZ2xlIHVpbnQzMiBpcyBz
dWZmaWNpZW50OyBtb3JlIChTSEEtMSkgaXMgZXhjZXNzaXZlLCBhbmQgbXVjaCBtb3JlIChTSEEt
MikgaXMgbXVjaCBtb3JlIGV4Y2Vzc2l2ZS4gICBUaGlzIGFwcGxpZXMgZXF1YWxseSB3aGV0aGVy
IHRoZSBzZXJ2ZXIgcHJlLWNhbGN1bGF0ZXMgYW4gb3BhcXVlIHRva2VuIGFuZCBzZW5kcyBpdCB0
byB0aGUgY2xpZW50IG9yIHRoZSBjbGllbnQgYW5kIHNlcnZlciBlYWNoIGNhbGN1bGF0ZSB0aGUg
dG9rZW4gaW50ZXJvcGVyYWJseS4NCg0KIA0KDQpEYXZlDQoNCiANCg0KIA0KDQpGcm9tOiBCcmlh
biBTbWl0aCBbbWFpbHRvOmJyaWFuQGJyaWFuc21pdGgub3JnXSANClNlbnQ6IEZyaWRheSwgRmVi
cnVhcnkgMTksIDIwMTAgMTI6MDUgUE0NCg0KDQoNCkFuZCwgSSBhbSBkZWZpbml0ZWx5IG5vdCBj
b252aW5jZWQgdGhhdCBhbGwgdXNlcnMvY3VzdG9tZXJzIHdpbGwgYmUgY29udmluY2VkLCBzbyBJ
IHdvdWxkIHJhdGhlciBiZSBzYWZlIHRoYW4gc29ycnkuDQoNClBlcmhhcHMgdGhpcyBhbGwgY2Fu
IGJlIGF2b2lkZWQgYnkgc2ltcGx5IG5vdCBoYXZpbmcgdGhlIGNsaWVudCBjYWxjdWxhdGUgaGFz
aGVzIGF0IGFsbC4NCg0K4oCmDQoNCkl0IGlzIHN0cm9uZ2x5IHJlY29tbWVuZGVkIHRoYXQgdGhl
IHNlcnZlciB1c2UgYSBzZWN1cmUgaGFzaCBhbGdvcml0aG0gKGUuZy4gU0hBLTIpIG9mIHRoZSB2
YWx1ZSBhcyB0aGUgdG9rZW4uDQoNCg0KDQo=

------_=_NextPart_001_01CAB18D.435A3238
Content-Type: text/html;
	charset="utf-8"
Content-Transfer-Encoding: base64

PGh0bWwgeG1sbnM6dj0idXJuOnNjaGVtYXMtbWljcm9zb2Z0LWNvbTp2bWwiIHhtbG5zOm89InVy
bjpzY2hlbWFzLW1pY3Jvc29mdC1jb206b2ZmaWNlOm9mZmljZSIgeG1sbnM6dz0idXJuOnNjaGVt
YXMtbWljcm9zb2Z0LWNvbTpvZmZpY2U6d29yZCIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWlj
cm9zb2Z0LmNvbS9vZmZpY2UvMjAwNC8xMi9vbW1sIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcv
VFIvUkVDLWh0bWw0MCI+DQoNCjxoZWFkPg0KPE1FVEEgSFRUUC1FUVVJVj0iQ29udGVudC1UeXBl
IiBDT05URU5UPSJ0ZXh0L2h0bWw7IGNoYXJzZXQ9dXRmLTgiPg0KDQoNCjxtZXRhIG5hbWU9R2Vu
ZXJhdG9yIGNvbnRlbnQ9Ik1pY3Jvc29mdCBXb3JkIDEyIChmaWx0ZXJlZCBtZWRpdW0pIj4NCjxz
dHlsZT4NCjwhLS0NCiAvKiBGb250IERlZmluaXRpb25zICovDQogQGZvbnQtZmFjZQ0KCXtmb250
LWZhbWlseTpDYWxpYnJpOw0KCXBhbm9zZS0xOjIgMTUgNSAyIDIgMiA0IDMgMiA0O30NCkBmb250
LWZhY2UNCgl7Zm9udC1mYW1pbHk6VGFob21hOw0KCXBhbm9zZS0xOjIgMTEgNiA0IDMgNSA0IDQg
MiA0O30NCkBmb250LWZhY2UNCgl7Zm9udC1mYW1pbHk6Q29uc29sYXM7DQoJcGFub3NlLTE6MiAx
MSA2IDkgMiAyIDQgMyAyIDQ7fQ0KIC8qIFN0eWxlIERlZmluaXRpb25zICovDQogcC5Nc29Ob3Jt
YWwsIGxpLk1zb05vcm1hbCwgZGl2Lk1zb05vcm1hbA0KCXttYXJnaW46MGluOw0KCW1hcmdpbi1i
b3R0b206LjAwMDFwdDsNCglmb250LXNpemU6MTIuMHB0Ow0KCWZvbnQtZmFtaWx5OiJUaW1lcyBO
ZXcgUm9tYW4iLCJzZXJpZiI7DQoJY29sb3I6YmxhY2s7fQ0KYTpsaW5rLCBzcGFuLk1zb0h5cGVy
bGluaw0KCXttc28tc3R5bGUtcHJpb3JpdHk6OTk7DQoJY29sb3I6Ymx1ZTsNCgl0ZXh0LWRlY29y
YXRpb246dW5kZXJsaW5lO30NCmE6dmlzaXRlZCwgc3Bhbi5Nc29IeXBlcmxpbmtGb2xsb3dlZA0K
CXttc28tc3R5bGUtcHJpb3JpdHk6OTk7DQoJY29sb3I6cHVycGxlOw0KCXRleHQtZGVjb3JhdGlv
bjp1bmRlcmxpbmU7fQ0KcHJlDQoJe21zby1zdHlsZS1wcmlvcml0eTo5OTsNCgltc28tc3R5bGUt
bGluazoiSFRNTCBQcmVmb3JtYXR0ZWQgQ2hhciI7DQoJbWFyZ2luOjBpbjsNCgltYXJnaW4tYm90
dG9tOi4wMDAxcHQ7DQoJZm9udC1zaXplOjEwLjBwdDsNCglmb250LWZhbWlseToiQ291cmllciBO
ZXciOw0KCWNvbG9yOmJsYWNrO30NCnNwYW4uSFRNTFByZWZvcm1hdHRlZENoYXINCgl7bXNvLXN0
eWxlLW5hbWU6IkhUTUwgUHJlZm9ybWF0dGVkIENoYXIiOw0KCW1zby1zdHlsZS1wcmlvcml0eTo5
OTsNCgltc28tc3R5bGUtbGluazoiSFRNTCBQcmVmb3JtYXR0ZWQiOw0KCWZvbnQtZmFtaWx5OkNv
bnNvbGFzOw0KCWNvbG9yOmJsYWNrO30NCnNwYW4uRW1haWxTdHlsZTE5DQoJe21zby1zdHlsZS10
eXBlOnBlcnNvbmFsOw0KCWZvbnQtZmFtaWx5OiJDYWxpYnJpIiwic2Fucy1zZXJpZiI7DQoJY29s
b3I6IzFGNDk3RDt9DQpzcGFuLkVtYWlsU3R5bGUyMA0KCXttc28tc3R5bGUtdHlwZTpwZXJzb25h
bC1yZXBseTsNCglmb250LWZhbWlseToiQ2FsaWJyaSIsInNhbnMtc2VyaWYiOw0KCWNvbG9yOiMx
RjQ5N0Q7fQ0KLk1zb0NocERlZmF1bHQNCgl7bXNvLXN0eWxlLXR5cGU6ZXhwb3J0LW9ubHk7DQoJ
Zm9udC1zaXplOjEwLjBwdDt9DQpAcGFnZSBTZWN0aW9uMQ0KCXtzaXplOjguNWluIDExLjBpbjsN
CgltYXJnaW46MS4waW4gMS4waW4gMS4waW4gMS4waW47fQ0KZGl2LlNlY3Rpb24xDQoJe3BhZ2U6
U2VjdGlvbjE7fQ0KLS0+DQo8L3N0eWxlPg0KPCEtLVtpZiBndGUgbXNvIDldPjx4bWw+DQogPG86
c2hhcGVkZWZhdWx0cyB2OmV4dD0iZWRpdCIgc3BpZG1heD0iMTAyNiIgLz4NCjwveG1sPjwhW2Vu
ZGlmXS0tPjwhLS1baWYgZ3RlIG1zbyA5XT48eG1sPg0KIDxvOnNoYXBlbGF5b3V0IHY6ZXh0PSJl
ZGl0Ij4NCiAgPG86aWRtYXAgdjpleHQ9ImVkaXQiIGRhdGE9IjEiIC8+DQogPC9vOnNoYXBlbGF5
b3V0PjwveG1sPjwhW2VuZGlmXS0tPg0KPC9oZWFkPg0KDQo8Ym9keSBiZ2NvbG9yPXdoaXRlIGxh
bmc9RU4tVVMgbGluaz1ibHVlIHZsaW5rPXB1cnBsZT4NCg0KPGRpdiBjbGFzcz1TZWN0aW9uMT4N
Cg0KPHAgY2xhc3M9TXNvTm9ybWFsPjxzcGFuIHN0eWxlPSdmb250LXNpemU6MTEuMHB0O2ZvbnQt
ZmFtaWx5OiJDYWxpYnJpIiwic2Fucy1zZXJpZiI7DQpjb2xvcjojMUY0OTdEJz5BcyBTdGVmYW4g
cG9pbnRlZCBvdXQsIE1VU1Qgc3VwcG9ydCBkb2VzIG5vdCBlcXVhbCBNVVNUIHVzZS7CoCBJZg0K
eW91IG9yIHlvdXIgY3VzdG9tZXJzIGNhbm5vdCBiZSBjb252aW5jZWQgdGhhdCB0aGUgTklTVCBn
dWlkYW5jZSBpcyBpcnJlbGV2YW50DQp0byBjYWNoZSBpdGVtIHRhZ2dpbmcsIHRoZW4geW91ciBp
bXBsZW1lbnRhdGlvbiBjYW4gY2VydGFpbmx5IHN1cHBvcnQgU0hBLTIuIMKgSXQNCmlzIGV2ZW4g
4oCcbGVnYWzigJ0gKGluIGFuIFJGQyAyMTE5IHNlbnNlKSBmb3IgeW91ciBjdXN0b21lcnMgdG8g
Y29uZmlndXJlIHlvdXINCmFwcGxpY2F0aW9uIHRvIHJlZnVzZSB0byB1c2UgU0hBLTEgaWYgdGhl
eSBiZWxpZXZlIHRoYXQgaXMgbmVjZXNzYXJ5IHRvIGNvbXBseQ0Kd2l0aCBOSVNUIGd1aWRhbmNl
LCBhcyBsb25nIGFzIG90aGVyIGN1c3RvbWVycyAoZ3VpZGVkIGJ5IGFwcHJvcHJpYXRlIGRvY3Vt
ZW50YXRpb24NCmFuZCBjb21tb24gc2Vuc2UpIGFyZSBhYmxlIHRvIGNvbmZpZ3VyZSBpdCB0byB1
c2UgU0hBLTEuPG86cD48L286cD48L3NwYW4+PC9wPg0KDQo8cCBjbGFzcz1Nc29Ob3JtYWw+PHNw
YW4gc3R5bGU9J2ZvbnQtc2l6ZToxMS4wcHQ7Zm9udC1mYW1pbHk6IkNhbGlicmkiLCJzYW5zLXNl
cmlmIjsNCmNvbG9yOiMxRjQ5N0QnPjxvOnA+Jm5ic3A7PC9vOnA+PC9zcGFuPjwvcD4NCg0KPHAg
Y2xhc3M9TXNvTm9ybWFsPjxzcGFuIHN0eWxlPSdmb250LXNpemU6MTEuMHB0O2ZvbnQtZmFtaWx5
OiJDYWxpYnJpIiwic2Fucy1zZXJpZiI7DQpjb2xvcjojMUY0OTdEJz5JIG9wcG9zZSByZW1vdmlu
ZyBhIHJlcXVpcmVtZW50IHRvIE1VU1Qgc3VwcG9ydCBhIGNvbW1vbg0KYWxnb3JpdGhtLiDCoMKg
QW5kIEkgd291bGQgb3Bwb3NlIG1ha2luZyB0aGUgY29tbW9uIGFsZ29yaXRobSBTSEEtMiBiZWNh
dXNlIHRoYXQNCmlzIG1vdmluZyBpbiB0aGUgd3JvbmcgZGlyZWN0aW9uIGZvciBzYXZpbmcgYnl0
ZXM6wqAgYSBzaW5nbGUgdWludDMyIGlzDQpzdWZmaWNpZW50OyBtb3JlIChTSEEtMSkgaXMgZXhj
ZXNzaXZlLCBhbmQgbXVjaCBtb3JlIChTSEEtMikgaXMgbXVjaCBtb3JlDQpleGNlc3NpdmUuwqDC
oCBUaGlzIGFwcGxpZXMgZXF1YWxseSB3aGV0aGVyIHRoZSBzZXJ2ZXIgcHJlLWNhbGN1bGF0ZXMg
YW4gb3BhcXVlDQp0b2tlbiBhbmQgc2VuZHMgaXQgdG8gdGhlIGNsaWVudCBvciB0aGUgY2xpZW50
IGFuZCBzZXJ2ZXIgZWFjaCBjYWxjdWxhdGUgdGhlDQp0b2tlbiBpbnRlcm9wZXJhYmx5LjxvOnA+
PC9vOnA+PC9zcGFuPjwvcD4NCg0KPHAgY2xhc3M9TXNvTm9ybWFsPjxzcGFuIHN0eWxlPSdmb250
LXNpemU6MTEuMHB0O2ZvbnQtZmFtaWx5OiJDYWxpYnJpIiwic2Fucy1zZXJpZiI7DQpjb2xvcjoj
MUY0OTdEJz48bzpwPiZuYnNwOzwvbzpwPjwvc3Bhbj48L3A+DQoNCjxwIGNsYXNzPU1zb05vcm1h
bD48c3BhbiBzdHlsZT0nZm9udC1zaXplOjExLjBwdDtmb250LWZhbWlseToiQ2FsaWJyaSIsInNh
bnMtc2VyaWYiOw0KY29sb3I6IzFGNDk3RCc+RGF2ZTxvOnA+PC9vOnA+PC9zcGFuPjwvcD4NCg0K
PHAgY2xhc3M9TXNvTm9ybWFsPjxzcGFuIHN0eWxlPSdmb250LXNpemU6MTEuMHB0O2ZvbnQtZmFt
aWx5OiJDYWxpYnJpIiwic2Fucy1zZXJpZiI7DQpjb2xvcjojMUY0OTdEJz48bzpwPiZuYnNwOzwv
bzpwPjwvc3Bhbj48L3A+DQoNCjxwIGNsYXNzPU1zb05vcm1hbD48c3BhbiBzdHlsZT0nZm9udC1z
aXplOjExLjBwdDtmb250LWZhbWlseToiQ2FsaWJyaSIsInNhbnMtc2VyaWYiOw0KY29sb3I6IzFG
NDk3RCc+PG86cD4mbmJzcDs8L286cD48L3NwYW4+PC9wPg0KDQo8ZGl2Pg0KDQo8ZGl2IHN0eWxl
PSdib3JkZXI6bm9uZTtib3JkZXItdG9wOnNvbGlkICNCNUM0REYgMS4wcHQ7cGFkZGluZzozLjBw
dCAwaW4gMGluIDBpbic+DQoNCjxwIGNsYXNzPU1zb05vcm1hbD48Yj48c3BhbiBzdHlsZT0nZm9u
dC1zaXplOjEwLjBwdDtmb250LWZhbWlseToiVGFob21hIiwic2Fucy1zZXJpZiI7DQpjb2xvcjp3
aW5kb3d0ZXh0Jz5Gcm9tOjwvc3Bhbj48L2I+PHNwYW4gc3R5bGU9J2ZvbnQtc2l6ZToxMC4wcHQ7
Zm9udC1mYW1pbHk6DQoiVGFob21hIiwic2Fucy1zZXJpZiI7Y29sb3I6d2luZG93dGV4dCc+IEJy
aWFuIFNtaXRoDQpbbWFpbHRvOmJyaWFuQGJyaWFuc21pdGgub3JnXSA8YnI+DQo8Yj5TZW50Ojwv
Yj4gRnJpZGF5LCBGZWJydWFyeSAxOSwgMjAxMCAxMjowNSBQTTxicj4NCjxicj4NCjwvc3Bhbj48
bzpwPjwvbzpwPjwvcD4NCg0KPC9kaXY+DQoNCjwvZGl2Pg0KDQo8cCBjbGFzcz1Nc29Ob3JtYWwg
c3R5bGU9J21hcmdpbi1ib3R0b206MTIuMHB0Jz5BbmQsIEkgYW0gZGVmaW5pdGVseSBub3QNCmNv
bnZpbmNlZCB0aGF0IGFsbCB1c2Vycy9jdXN0b21lcnMgd2lsbCBiZSBjb252aW5jZWQsIHNvIEkg
d291bGQgcmF0aGVyIGJlIHNhZmUNCnRoYW4gc29ycnkuPGJyPg0KPGJyPg0KUGVyaGFwcyB0aGlz
IGFsbCBjYW4gYmUgYXZvaWRlZCBieSBzaW1wbHkgbm90IGhhdmluZyB0aGUgY2xpZW50IGNhbGN1
bGF0ZQ0KaGFzaGVzIGF0IGFsbC48c3BhbiBzdHlsZT0nY29sb3I6IzFGNDk3RCc+PG86cD48L286
cD48L3NwYW4+PC9wPg0KDQo8cCBjbGFzcz1Nc29Ob3JtYWwgc3R5bGU9J21hcmdpbi1ib3R0b206
MTIuMHB0Jz48c3BhbiBzdHlsZT0nZm9udC1zaXplOjExLjBwdDsNCmZvbnQtZmFtaWx5OiJDYWxp
YnJpIiwic2Fucy1zZXJpZiI7Y29sb3I6IzFGNDk3RCc+4oCmPC9zcGFuPjxzcGFuDQpzdHlsZT0n
Y29sb3I6IzFGNDk3RCc+PG86cD48L286cD48L3NwYW4+PC9wPg0KDQo8cCBjbGFzcz1Nc29Ob3Jt
YWwgc3R5bGU9J21hcmdpbi1ib3R0b206MTIuMHB0Jz5JdCBpcyBzdHJvbmdseSByZWNvbW1lbmRl
ZCB0aGF0DQp0aGUgc2VydmVyIHVzZSBhIHNlY3VyZSBoYXNoIGFsZ29yaXRobSAoZS5nLiBTSEEt
Mikgb2YgdGhlIHZhbHVlIGFzIHRoZSB0b2tlbi48YnI+DQo8YnI+DQo8c3BhbiBzdHlsZT0nZm9u
dC1zaXplOjExLjBwdDtmb250LWZhbWlseToiQ2FsaWJyaSIsInNhbnMtc2VyaWYiO2NvbG9yOiMx
RjQ5N0QnPjxvOnA+PC9vOnA+PC9zcGFuPjwvcD4NCg0KPC9kaXY+DQoNCjwvYm9keT4NCg0KPC9o
dG1sPg0K

------_=_NextPart_001_01CAB18D.435A3238--

From mrex@sap.com  Fri Feb 19 10:19:55 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 55C0D3A7FE6 for <tls@core3.amsl.com>; Fri, 19 Feb 2010 10:19:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.22
X-Spam-Level: 
X-Spam-Status: No, score=-10.22 tagged_above=-999 required=5 tests=[AWL=0.029,  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 sLBXDIjMzSFR for <tls@core3.amsl.com>; Fri, 19 Feb 2010 10:19:54 -0800 (PST)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.171]) by core3.amsl.com (Postfix) with ESMTP id 296C83A7D3B for <tls@ietf.org>; Fri, 19 Feb 2010 10:19:53 -0800 (PST)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o1JILaqt008987 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 19 Feb 2010 19:21:36 +0100 (MET)
From: Martin Rex <mrex@sap.com>
Message-Id: <201002191821.o1JILZuw019703@fs4113.wdf.sap.corp>
To: brian@briansmith.org (Brian Smith)
Date: Fri, 19 Feb 2010 19:21:35 +0100 (MET)
In-Reply-To: <4B7ECFEF.50502@briansmith.org> from "Brian Smith" at Feb 19, 10 11:52:47 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: DPKemp@missi.ncsc.mil, tls@ietf.org
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft
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: Fri, 19 Feb 2010 18:19:55 -0000

Brian Smith wrote:
> 
> Stefan Santesson wrote:
> > Brian,
> >
> > The use of hash functions in this draft does not require collision 
> > resistance.
> > This is actually quite easy to prove.
> 
> Nobody is questioning that at all.
> 
> My points are:
> 
> 1. As long as this web page on the NIST website says, basically, "don't 
> use SHA-1 for anything," people will want to disable SHA-1 whenever they 
> can. It doesn't matter that this page on the website isn't the official 
> NIST recommendation on the matter. It doesn't matter that NIST 
> recommendations are only binding for federal government work. It doesn't 
> matter that the official NIST recommendation (SP 800-107) is more 
> limited in its recommendations against SHA-1. People will still want to 
> disable it. Like I said many messages before, even if it isn't a  
> technical problem, it is a social problem. And, that problem can be 
> easily avoided.


There is some confusion about what problems there are with SHA-1.

But doing as you suggest, you are just adding massively to that
confusion, depicting SHA-1 as being universally bad.


My memory was, that NIST's recommendation was to no longer
issue certs with sha-1 as a signature algorithm after 2010.


I don't know what you mean by "disabling SHA-1", but most software
is likely to not have such a configuration settings -- and those
software that does is likely to no longer interoperate securely
with others if SHA-1 would be universally disabled.

What you are asking for is a policy like this:

"We can no longer let you use HTTPS because it makes use of
 TLSv1.0 with contains the universally insecure SHA-1 algorithm.
 Please use HTTP URLs instead." 


> 
> 2. It doesn't make sense to require SHA-1 support to be added to 
> implementations that don't need SHA-1 for any other purpose. TLS 1.2 
> doesn't require SHA-1 for anything, so you can build a compliant and 
> useful implementation without SHA-1 support. There are technical 
> advantages to doing so. Obviously, this isn't practical for 
> general-purpose web browsers, but it is practical for many other uses.

You are mistaken.  SHA-1 is a MUST implement for TLSv1.2.

TLS uses a SHA-256 only PRF and provides cipher suites with SHA-256,
but limiting an implmentation to that subset of TLSv1.2 is only
an option for the consumer of the technology, not an option
for the implementor.

Limiting your application to allow only protocol version TLSv1.2
and only ciphersuites with SHA-256 hash and support of Certs
with signature algorithms using sha-256 is going to make your
application non-interoperable with 99,8% of the installed base
of TLS-enables apps.  And that situation is going to change
only at a fairly slow pace in the future.

So it could be that the particular isolated environment that
you are looking at might be happy with such a configuration,
but for the average consumer of this technology it just would not
make any sense. 

And mind you, for your isolated environment, you can certainly
implement and use the caching extension with SHA-256 only,
the proposal has the necessary protocol options.


-Martin

From stefan@aaa-sec.com  Fri Feb 19 10:22:09 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 96B873A7D40 for <tls@core3.amsl.com>; Fri, 19 Feb 2010 10:22:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.191
X-Spam-Level: 
X-Spam-Status: No, score=-2.191 tagged_above=-999 required=5 tests=[AWL=0.058,  BAYES_00=-2.599, HELO_EQ_SE=0.35]
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 sARzJhOixPLs for <tls@core3.amsl.com>; Fri, 19 Feb 2010 10:22:09 -0800 (PST)
Received: from s87.loopia.se (s87.loopia.se [194.9.95.114]) by core3.amsl.com (Postfix) with ESMTP id D85303A7D20 for <tls@ietf.org>; Fri, 19 Feb 2010 10:22:08 -0800 (PST)
Received: from s42.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 546BE38BAA2 for <tls@ietf.org>; Fri, 19 Feb 2010 19:23:49 +0100 (CET)
Received: (qmail 36308 invoked from network); 19 Feb 2010 18:23: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 s42.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <mrex@sap.com>; 19 Feb 2010 18:23:42 -0000
User-Agent: Microsoft-Entourage/12.23.0.091001
Date: Fri, 19 Feb 2010 19:23:39 +0100
From: Stefan Santesson <stefan@aaa-sec.com>
To: <mrex@sap.com>, Brian Smith <brian@briansmith.org>
Message-ID: <C7A495BB.86AC%stefan@aaa-sec.com>
Thread-Topic: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft
Thread-Index: AcqxkKhFiYyhiiyvc0KVE/xlqw12YA==
In-Reply-To: <201002191758.o1JHwxEB018132@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] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Fri, 19 Feb 2010 18:22:09 -0000

On 10-02-19 6:58 PM, "Martin Rex" <mrex@sap.com> wrote:

> Adding a "RECOMMENDED to support SHA-256" to the document wouldn't hurt.

I could add this.

/Stefan



From stefan@aaa-sec.com  Fri Feb 19 10:26:29 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 CA2F63A7FDF for <tls@core3.amsl.com>; Fri, 19 Feb 2010 10:26:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.195
X-Spam-Level: 
X-Spam-Status: No, score=-2.195 tagged_above=-999 required=5 tests=[AWL=0.054,  BAYES_00=-2.599, HELO_EQ_SE=0.35]
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 im1XkftYSNbm for <tls@core3.amsl.com>; Fri, 19 Feb 2010 10:26:29 -0800 (PST)
Received: from s87.loopia.se (s87.loopia.se [194.9.95.114]) by core3.amsl.com (Postfix) with ESMTP id AB8983A78A4 for <tls@ietf.org>; Fri, 19 Feb 2010 10:26:28 -0800 (PST)
Received: from s42.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 695E837B395 for <tls@ietf.org>; Fri, 19 Feb 2010 19:28:22 +0100 (CET)
Received: (qmail 52884 invoked from network); 19 Feb 2010 18:28:15 -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 <mrex@sap.com>; 19 Feb 2010 18:28:15 -0000
User-Agent: Microsoft-Entourage/12.23.0.091001
Date: Fri, 19 Feb 2010 19:28:13 +0100
From: Stefan Santesson <stefan@aaa-sec.com>
To: <mrex@sap.com>, Brian Smith <brian@briansmith.org>, Tim Polk <wpolk@nist.gov>
Message-ID: <C7A496CD.86AF%stefan@aaa-sec.com>
Thread-Topic: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft
Thread-Index: AcqxkUuWa9YqVqsKykmyirXf5XgR5w==
In-Reply-To: <201002191821.o1JILZuw019703@fs4113.wdf.sap.corp>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Cc: DPKemp@missi.ncsc.mil, tls@ietf.org
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Fri, 19 Feb 2010 18:26:29 -0000

Added Tim Polk,

As we are so fortunate that we have a security AD working for NIST maybe Tim
could help us clarify NIST intention.

/Stefan


On 10-02-19 7:21 PM, "Martin Rex" <mrex@sap.com> wrote:

> Brian Smith wrote:
>> 
>> Stefan Santesson wrote:
>>> Brian,
>>> 
>>> The use of hash functions in this draft does not require collision
>>> resistance.
>>> This is actually quite easy to prove.
>> 
>> Nobody is questioning that at all.
>> 
>> My points are:
>> 
>> 1. As long as this web page on the NIST website says, basically, "don't
>> use SHA-1 for anything," people will want to disable SHA-1 whenever they
>> can. It doesn't matter that this page on the website isn't the official
>> NIST recommendation on the matter. It doesn't matter that NIST
>> recommendations are only binding for federal government work. It doesn't
>> matter that the official NIST recommendation (SP 800-107) is more
>> limited in its recommendations against SHA-1. People will still want to
>> disable it. Like I said many messages before, even if it isn't a
>> technical problem, it is a social problem. And, that problem can be
>> easily avoided.
> 
> 
> There is some confusion about what problems there are with SHA-1.
> 
> But doing as you suggest, you are just adding massively to that
> confusion, depicting SHA-1 as being universally bad.
> 
> 
> My memory was, that NIST's recommendation was to no longer
> issue certs with sha-1 as a signature algorithm after 2010.
> 
> 
> I don't know what you mean by "disabling SHA-1", but most software
> is likely to not have such a configuration settings -- and those
> software that does is likely to no longer interoperate securely
> with others if SHA-1 would be universally disabled.
> 
> What you are asking for is a policy like this:
> 
> "We can no longer let you use HTTPS because it makes use of
>  TLSv1.0 with contains the universally insecure SHA-1 algorithm.
>  Please use HTTP URLs instead."
> 
> 
>> 
>> 2. It doesn't make sense to require SHA-1 support to be added to
>> implementations that don't need SHA-1 for any other purpose. TLS 1.2
>> doesn't require SHA-1 for anything, so you can build a compliant and
>> useful implementation without SHA-1 support. There are technical
>> advantages to doing so. Obviously, this isn't practical for
>> general-purpose web browsers, but it is practical for many other uses.
> 
> You are mistaken.  SHA-1 is a MUST implement for TLSv1.2.
> 
> TLS uses a SHA-256 only PRF and provides cipher suites with SHA-256,
> but limiting an implmentation to that subset of TLSv1.2 is only
> an option for the consumer of the technology, not an option
> for the implementor.
> 
> Limiting your application to allow only protocol version TLSv1.2
> and only ciphersuites with SHA-256 hash and support of Certs
> with signature algorithms using sha-256 is going to make your
> application non-interoperable with 99,8% of the installed base
> of TLS-enables apps.  And that situation is going to change
> only at a fairly slow pace in the future.
> 
> So it could be that the particular isolated environment that
> you are looking at might be happy with such a configuration,
> but for the average consumer of this technology it just would not
> make any sense. 
> 
> And mind you, for your isolated environment, you can certainly
> implement and use the caching extension with SHA-256 only,
> the proposal has the necessary protocol options.
> 
> 
> -Martin



From mrex@sap.com  Fri Feb 19 10:26:59 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 38CBE28C293 for <tls@core3.amsl.com>; Fri, 19 Feb 2010 10:26:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.22
X-Spam-Level: 
X-Spam-Status: No, score=-10.22 tagged_above=-999 required=5 tests=[AWL=0.029,  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 bvO5w6q8O4T8 for <tls@core3.amsl.com>; Fri, 19 Feb 2010 10:26:58 -0800 (PST)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.171]) by core3.amsl.com (Postfix) with ESMTP id 3628228C215 for <tls@ietf.org>; Fri, 19 Feb 2010 10:26:58 -0800 (PST)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o1JISfgB010961 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 19 Feb 2010 19:28:41 +0100 (MET)
From: Martin Rex <mrex@sap.com>
Message-Id: <201002191828.o1JISe8v019958@fs4113.wdf.sap.corp>
To: stefan@aaa-sec.com (Stefan Santesson)
Date: Fri, 19 Feb 2010 19:28:40 +0100 (MET)
In-Reply-To: <C7A495BB.86AC%stefan@aaa-sec.com> from "Stefan Santesson" at Feb 19, 10 07:23:39 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] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft
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: Fri, 19 Feb 2010 18:26:59 -0000

Stefan Santesson wrote:
> 
> On 10-02-19 6:58 PM, "Martin Rex" <mrex@sap.com> wrote:
> 
> > Adding a "RECOMMENDED to support SHA-256" to the document wouldn't hurt.
> 
> I could add this.

I would like to correct myself, I'd rather use a MAY. (=true option).

A "RECOMMENDation" should come with an explanation/rationale of the
purpose.  We currently do not see a technical purpose to _not_ use
SHA-1 only a sure waste of network bandwith, CPU cycles and
cache memory consumption.

The only purpose would be to allow explicit non-techies with universal
paranoia and braindead policies to disable it.

-Martin

From mike-list@pobox.com  Fri Feb 19 10:29:49 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 23D9428C1C2 for <tls@core3.amsl.com>; Fri, 19 Feb 2010 10:29:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.539
X-Spam-Level: 
X-Spam-Status: No, score=-2.539 tagged_above=-999 required=5 tests=[AWL=0.060,  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 PPWCEL8kdwte for <tls@core3.amsl.com>; Fri, 19 Feb 2010 10:29:48 -0800 (PST)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 00DA93A7FAC for <tls@ietf.org>; Fri, 19 Feb 2010 10:29:47 -0800 (PST)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id BED529BB0A for <tls@ietf.org>; Fri, 19 Feb 2010 13:31:34 -0500 (EST)
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=uCn0wXUIns5Y mRx13aRvAfpL/mY=; b=Dbr9KUGDQ77J+oXOYTOD85bRZmc92laOWFmC110/k3P1 RLR/EV+4bOZH2WRxT3+bNJkL52NQDQhIAYyLSumKn25JNlkGus8X+tJXkuWMKz+q usxEgEW0HMyuCGTRGnhWfHbddU/hhMPukwZoby7UdHP/qwLT3iL4LP5FySkoIHM=
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=HCNIeO Rk7aQXfoEkVcuWVwaFsF2+XzAmjJRoLfS5j5gm7cSdJNntmZfXrw+EQCy3rhmXG7 c4ke1/chlTGJFZ+HZ/KLb+1o1LQihAKqHZYPJj1obvSPJ34mlTTwWBdtGTLxtH1a QBiMBnD46DnoQKgZ9ihTPkOuv0MYEh8ALG4no=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id B8D039BB09 for <tls@ietf.org>; Fri, 19 Feb 2010 13:31:34 -0500 (EST)
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 45FE59BB07 for <tls@ietf.org>; Fri, 19 Feb 2010 13:31:34 -0500 (EST)
Message-ID: <4B7EDA36.2080801@pobox.com>
Date: Fri, 19 Feb 2010 10:36:38 -0800
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: tls@ietf.org
References: <C7A2FC2B.85D4%stefan@aaa-sec.com>	 <C7A30236.85DC%stefan@aaa-sec.com> <a84d7bc61002180831n412afe3aubffd4708a02b1dd3@mail.gmail.com> <4B7D8AAD.80204@briansmith.org>
In-Reply-To: <4B7D8AAD.80204@briansmith.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 0214B934-1D85-11DF-8DCF-D83AEE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Subject: [TLS] RFC 5077 (was Re: draft-ietf-tls-cached-info-02 / New "Fast-Track" draft posted)
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, 19 Feb 2010 18:29:49 -0000

Brian Smith wrote:
> .... Note that this is how RFC50[77] works (you 
> have to infer what the server is saying based on what handshake messages 
> it skips; for example, if the server doesn't send a Certificate right 
> after its ServerHello then you have to infer that it's doing a 
> resumption based on the given ticket).

While that method works, an easier method is for the client to include a
non-empty session ID in its ClientHello when attempting to resume a session
based on a session ticket.  If the server does resume the session, then it
returns the client-generated session ID.  From RFC 5077:

    When presenting a ticket, the client MAY generate and include a
    Session ID in the TLS ClientHello.  If the server accepts the ticket
    and the Session ID is not empty, then it MUST respond with the same
    Session ID present in the ClientHello.  This allows the client to
    easily differentiate when the server is resuming a session from when
    it is falling back to a full handshake.  Since the client generates a
    Session ID, the server MUST NOT rely upon the Session ID having a
    particular value when validating the ticket.  If a ticket is
    presented by the client, the server MUST NOT attempt to use the
    Session ID in the ClientHello for stateful session resumption.
    Alternatively, the client MAY include an empty Session ID in the
    ClientHello.  In this case, the client ignores the Session ID sent in
    the ServerHello and determines if the server is resuming a session by
    the subsequent handshake messages.

Mike

From agl@google.com  Fri Feb 19 11:45:24 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 94B923A7BBA for <tls@core3.amsl.com>; Fri, 19 Feb 2010 11:45:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.177
X-Spam-Level: 
X-Spam-Status: No, score=-105.177 tagged_above=-999 required=5 tests=[AWL=0.800, 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 vLX8gdxJMOGZ for <tls@core3.amsl.com>; Fri, 19 Feb 2010 11:45:23 -0800 (PST)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.33.17]) by core3.amsl.com (Postfix) with ESMTP id 39D3A28C0F8 for <tls@ietf.org>; Fri, 19 Feb 2010 11:45:23 -0800 (PST)
Received: from kpbe11.cbf.corp.google.com (kpbe11.cbf.corp.google.com [172.25.105.75]) by smtp-out.google.com with ESMTP id o1JJl8Vk013866 for <tls@ietf.org>; Fri, 19 Feb 2010 19:47:09 GMT
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1266608829; bh=G2x536OCmocwjsGDu/ap6N46FM8=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=sesoQAM08Xr28/WPQk8JNg3mZLx5tZmJ6Rnpn82+ioC45WlvHacO3wwCi+EgI3iKE bhgw8DzJsBaJZh/a6mPRw==
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=OXn9DbF2UkiOyYS6Q3y13fB9aiUdCUIkGjmBARKkSjcFljEyzZooRQdKLQiUuZkqG IMf4lcvnjS7FLx2P2/2HQ==
Received: from pwj4 (pwj4.prod.google.com [10.241.219.68]) by kpbe11.cbf.corp.google.com with ESMTP id o1JJl6gv001699 for <tls@ietf.org>; Fri, 19 Feb 2010 13:47:07 -0600
Received: by pwj4 with SMTP id 4so421955pwj.36 for <tls@ietf.org>; Fri, 19 Feb 2010 11:47:06 -0800 (PST)
MIME-Version: 1.0
Received: by 10.142.61.19 with SMTP id j19mr7775961wfa.69.1266608826738; Fri,  19 Feb 2010 11:47:06 -0800 (PST)
In-Reply-To: <C7A4835A.8698%stefan@aaa-sec.com>
References: <a84d7bc61002190852y684103ecmc95c23853c24dc5a@mail.gmail.com> <C7A4835A.8698%stefan@aaa-sec.com>
Date: Fri, 19 Feb 2010 14:47:06 -0500
Message-ID: <a84d7bc61002191147n432a0d9fj8747a0ee818a7204@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
Subject: Re: [TLS] Cached-info substitution
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, 19 Feb 2010 19:45:24 -0000

On Fri, Feb 19, 2010 at 12:05 PM, Stefan Santesson <stefan@aaa-sec.com> wrote:
> I think it is better and rather harmless to allow the flexibility.
> Client provide a list.... Server picks one. That is an old, well tested and
> useful concept.

So you're suggesting option (2): that we redefine the structure of the
existing messages to include a place for the hash? I'm fine with that.


AGL

From wtc@google.com  Fri Feb 19 13:47:07 2010
Return-Path: <wtc@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 EEC1E3A7A63 for <tls@core3.amsl.com>; Fri, 19 Feb 2010 13:47:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.977
X-Spam-Level: 
X-Spam-Status: No, score=-105.977 tagged_above=-999 required=5 tests=[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 jtpsvQx8Q9I9 for <tls@core3.amsl.com>; Fri, 19 Feb 2010 13:47:07 -0800 (PST)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.33.17]) by core3.amsl.com (Postfix) with ESMTP id 9734E3A7BF9 for <tls@ietf.org>; Fri, 19 Feb 2010 13:47:06 -0800 (PST)
Received: from spaceape24.eur.corp.google.com (spaceape24.eur.corp.google.com [172.28.16.76]) by smtp-out.google.com with ESMTP id o1JLmqOE017789 for <tls@ietf.org>; Fri, 19 Feb 2010 21:48:53 GMT
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1266616133; bh=TUAfrzemOejNN/jrFyOHwuYQT+o=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type:Content-Transfer-Encoding; b=dmYdBjBmBRf1zQmjds5ADBCNqSy2ncMCE6JTUpovUveHGCehq/QKNBFQFbPxLxYp9 qNROXtxR0rOnW0TTsg9Nw==
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=b4qhr6RnBBep9eLdlVGo4uEgDh6Plr8tBxFJKc9LJwKMtN0NEGr0O2gnedNU56FCV RZcVfHu0iqxq7ms3yTttg==
Received: from ewy2 (ewy2.prod.google.com [10.241.103.2]) by spaceape24.eur.corp.google.com with ESMTP id o1JLljWT017453 for <tls@ietf.org>; Fri, 19 Feb 2010 13:48:52 -0800
Received: by ewy2 with SMTP id 2so633198ewy.5 for <tls@ietf.org>; Fri, 19 Feb 2010 13:48:51 -0800 (PST)
MIME-Version: 1.0
Received: by 10.216.85.5 with SMTP id t5mr997307wee.176.1266616131598; Fri, 19  Feb 2010 13:48:51 -0800 (PST)
In-Reply-To: <C7A4666D.8663%stefan@aaa-sec.com>
References: <4B7D8AAD.80204@briansmith.org> <C7A4666D.8663%stefan@aaa-sec.com>
Date: Fri, 19 Feb 2010 13:48:51 -0800
Message-ID: <e8c553a61002191348x7339e688s10cbdea90843b0cd@mail.gmail.com>
From: Wan-Teh Chang <wtc@google.com>
To: Stefan Santesson <stefan@aaa-sec.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-System-Of-Record: true
Cc: tls@ietf.org
Subject: Re: [TLS] Cached-info substitution
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, 19 Feb 2010 21:47:08 -0000

On Fri, Feb 19, 2010 at 7:01 AM, Stefan Santesson <stefan@aaa-sec.com> wrot=
e:
>
> As I see it we have two choices.
>
> 1) To define a format for the handshake message which include the hash
> substitution using a syntax that alters the defined syntax of the handsha=
ke
> message. (current draft approach)
>
> 2) To define a format which preserves the original handshake message synt=
ax.
>
>
> In practice this would look something like this:
>
>
> Certificate handshake message:
>
> Original syntax:
> =A0 =A0 =A0opaque ASN.1Cert<1..2^24-1>;
>
> =A0 =A0 =A0struct {
> =A0 =A0 =A0 =A0 =A0ASN.1Cert certificate_list<0..2^24-1>;
> =A0 =A0 =A0} Certificate;
>
>
> Substitution syntax, choice 1 (current draft):
> =A0 =A0 =A0struct {
> =A0 =A0 =A0 =A0 =A0CachedInformationHash certificate_list<0..2^24-1>;
> =A0 =A0 =A0} Certificate;
>
>
> Substitution syntax, choice 2 (preserving original syntax):
> =A0 =A0 =A0CachedInformationHash CachedCertList<1..2^24-1>;
>
> =A0 =A0 =A0struct {
> =A0 =A0 =A0 =A0 =A0CachedCertList certificate_list<0..2^24-1>;
> =A0 =A0 =A0} Certificate;

In choice 2, did you mean CachedCertList or CachedCert?
With CachedCertList, the Certificate message would contain
a list of lists of certificates.

In choice 2, how does a decoder distinguish between 'opaque' and
CachedInformationHash?  Is it supposed to "sniff" the first few
bytes to see whether it looks like an ASN.1 DER encoded cert?

Wan-Teh

From stefan@aaa-sec.com  Fri Feb 19 16:45: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 20B4A3A7CE9 for <tls@core3.amsl.com>; Fri, 19 Feb 2010 16:45:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.199
X-Spam-Level: 
X-Spam-Status: No, score=-2.199 tagged_above=-999 required=5 tests=[AWL=0.050,  BAYES_00=-2.599, HELO_EQ_SE=0.35]
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 AUgB93rCciUU for <tls@core3.amsl.com>; Fri, 19 Feb 2010 16:45:13 -0800 (PST)
Received: from s87.loopia.se (s87.loopia.se [194.9.95.114]) by core3.amsl.com (Postfix) with ESMTP id D25CA3A7904 for <tls@ietf.org>; Fri, 19 Feb 2010 16:45:03 -0800 (PST)
Received: from s42.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 712EE369810 for <tls@ietf.org>; Sat, 20 Feb 2010 01:45:53 +0100 (CET)
Received: (qmail 99046 invoked from network); 20 Feb 2010 00:45:43 -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 <wtc@google.com>; 20 Feb 2010 00:45:43 -0000
User-Agent: Microsoft-Entourage/12.23.0.091001
Date: Sat, 20 Feb 2010 01:45:42 +0100
From: Stefan Santesson <stefan@aaa-sec.com>
To: Wan-Teh Chang <wtc@google.com>
Message-ID: <C7A4EF46.86DA%stefan@aaa-sec.com>
Thread-Topic: [TLS] Cached-info substitution
Thread-Index: AcqxxgdxLgwQBO/pM0iLpvtRmQPOyw==
In-Reply-To: <e8c553a61002191348x7339e688s10cbdea90843b0cd@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] Cached-info substitution
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, 20 Feb 2010 00:45:19 -0000

On 10-02-19 10:48 PM, "Wan-Teh Chang" <wtc@google.com> wrote:

> On Fri, Feb 19, 2010 at 7:01 AM, Stefan Santesson <stefan@aaa-sec.com> wr=
ote:
>>=20
>> As I see it we have two choices.
>>=20
>> 1) To define a format for the handshake message which include the hash
>> substitution using a syntax that alters the defined syntax of the handsh=
ake
>> message. (current draft approach)
>>=20
>> 2) To define a format which preserves the original handshake message syn=
tax.
>>=20
>>=20
>> In practice this would look something like this:
>>=20
>>=20
>> Certificate handshake message:
>>=20
>> Original syntax:
>> =A0 =A0 =A0opaque ASN.1Cert<1..2^24-1>;
>>=20
>> =A0 =A0 =A0struct {
>> =A0 =A0 =A0 =A0 =A0ASN.1Cert certificate_list<0..2^24-1>;
>> =A0 =A0 =A0} Certificate;
>>=20
>>=20
>> Substitution syntax, choice 1 (current draft):
>> =A0 =A0 =A0struct {
>> =A0 =A0 =A0 =A0 =A0CachedInformationHash certificate_list<0..2^24-1>;
>> =A0 =A0 =A0} Certificate;
>>=20
>>=20
>> Substitution syntax, choice 2 (preserving original syntax):
>> =A0 =A0 =A0CachedInformationHash CachedCertList<1..2^24-1>;
>>=20
>> =A0 =A0 =A0struct {
>> =A0 =A0 =A0 =A0 =A0CachedCertList certificate_list<0..2^24-1>;
>> =A0 =A0 =A0} Certificate;
>=20
> In choice 2, did you mean CachedCertList or CachedCert?

It's CachedCertList in the sense that it contains a hash of a
certificate_list vector.


> With CachedCertList, the Certificate message would contain
> a list of lists of certificates.
>=20
It would use the same structure as the original handshake message. That is,
a 3 byte total length followed by a number of 3byte length vectors.

The only difference is that in the original syntax the inner vectors are
opaque and in the substitution syntax they have the structure of a
CachedInformationHash.



> In choice 2, how does a decoder distinguish between 'opaque' and
> CachedInformationHash?  Is it supposed to "sniff" the first few
> bytes to see whether it looks like an ASN.1 DER encoded cert?
>=20

The client is supposed to compare the content against the
CachedInformationHash values sent to the server in the Client Hello
extension. If both length and content matches a value sent to the server,
there is a match.

/Stefan=20


> Wan-Teh



From ekr@networkresonance.com  Sun Feb 21 15:29:44 2010
Return-Path: <ekr@networkresonance.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 0A14D28C200 for <tls@core3.amsl.com>; Sun, 21 Feb 2010 15:29:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.018
X-Spam-Level: 
X-Spam-Status: No, score=0.018 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_COM=0.553, HOST_MISMATCH_NET=0.311, RDNS_DYNAMIC=0.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 X4G9VWqzLBAf for <tls@core3.amsl.com>; Sun, 21 Feb 2010 15:29:43 -0800 (PST)
Received: from kilo.networkresonance.com (74-95-2-169-SFBA.hfc.comcastbusiness.net [74.95.2.169]) by core3.amsl.com (Postfix) with ESMTP id 4CD483A8366 for <tls@ietf.org>; Sun, 21 Feb 2010 15:29:43 -0800 (PST)
Received: from kilo.local (localhost [127.0.0.1]) by kilo.networkresonance.com (Postfix) with ESMTP id 54D806EB9B5 for <tls@ietf.org>; Sun, 21 Feb 2010 15:35:03 -0800 (PST)
Date: Sun, 21 Feb 2010 15:35:03 -0800
From: Eric Rescorla <ekr@networkresonance.com>
To: tls@ietf.org
User-Agent: Wanderlust/2.15.5 (Almost Unreal) Emacs/22.3 Mule/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka")
Content-Type: text/plain; charset=US-ASCII
Message-Id: <20100221233503.54D806EB9B5@kilo.networkresonance.com>
Subject: [TLS] Entirely omitting context in draft-ietf-tls-extractor
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, 21 Feb 2010 23:29:44 -0000

During LC, we received a comment from Jouni Malinen that unconditionally
including the context in the PRF created an unnecesssary incompatibility
with exporter-type mechanisms in EAP-TLS and EAP-TTLS which could otherwise
be retconned into being extractor usages. In order to address this, I
propose changing the text to read:


  If no context is provided, it then computes:

         PRF(SecurityParameters.master_secret, label,
             SecurityParameters.client_random +
             SecurityParameters.server_random
             )[length]

  If the context is provided, it computes::

         PRF(SecurityParameters.master_secret, label,
             SecurityParameters.client_random +
             SecurityParameters.server_random +
             context_value_length + context_value
             )[length]

  Where PRF is the TLS PRF in use for the session.  The output is a
  pseudorandom bit string of length bytes generated from the
  master_secret. (This construction allows for interoperability
  with older exporter-type constructions which do not
  use context values, e.g., [RFC5281]).

Any objections?

-Ekr



From jsalowey@cisco.com  Sun Feb 21 21:05:50 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 BE75928C239 for <tls@core3.amsl.com>; Sun, 21 Feb 2010 21:05:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.499
X-Spam-Level: 
X-Spam-Status: No, score=-10.499 tagged_above=-999 required=5 tests=[AWL=0.100, 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 P+rY7fEaLRE1 for <tls@core3.amsl.com>; Sun, 21 Feb 2010 21:05:50 -0800 (PST)
Received: from sj-iport-5.cisco.com (sj-iport-5.cisco.com [171.68.10.87]) by core3.amsl.com (Postfix) with ESMTP id 57D0228C196 for <tls@ietf.org>; Sun, 21 Feb 2010 21:05:47 -0800 (PST)
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: AvsEAP+fgUurR7Hu/2dsb2JhbACbBHOjS5czhGsEgxU
X-IronPort-AV: E=Sophos;i="4.49,515,1262563200"; d="scan'208";a="154590388"
Received: from sj-core-5.cisco.com ([171.71.177.238]) by sj-iport-5.cisco.com with ESMTP; 22 Feb 2010 05:07:44 +0000
Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by sj-core-5.cisco.com (8.13.8/8.14.3) with ESMTP id o1M57iFv022051; Mon, 22 Feb 2010 05:07:44 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);  Sun, 21 Feb 2010 21:07:44 -0800
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, 21 Feb 2010 21:07:43 -0800
Message-ID: <AC1CFD94F59A264488DC2BEC3E890DE509ADC93A@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <20100221233503.54D806EB9B5@kilo.networkresonance.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] Entirely omitting context in draft-ietf-tls-extractor
Thread-Index: AcqzTgZioZMMaYo2R+K6VjToUP8VlgALujpA
References: <20100221233503.54D806EB9B5@kilo.networkresonance.com>
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: "Eric Rescorla" <ekr@networkresonance.com>, <tls@ietf.org>
X-OriginalArrivalTime: 22 Feb 2010 05:07:44.0487 (UTC) FILETIME=[F79A1F70:01CAB37C]
Subject: Re: [TLS] Entirely omitting context in draft-ietf-tls-extractor
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, 22 Feb 2010 05:05:50 -0000

Looks good.=20

> -----Original Message-----
> From: tls-bounces@ietf.org [mailto:tls-bounces@ietf.org] On Behalf Of
Eric
> Rescorla
> Sent: Sunday, February 21, 2010 3:35 PM
> To: tls@ietf.org
> Subject: [TLS] Entirely omitting context in draft-ietf-tls-extractor
>=20
> During LC, we received a comment from Jouni Malinen that
unconditionally
> including the context in the PRF created an unnecesssary
incompatibility
> with exporter-type mechanisms in EAP-TLS and EAP-TTLS which could
> otherwise
> be retconned into being extractor usages. In order to address this, I
> propose changing the text to read:
>=20
>=20
>   If no context is provided, it then computes:
>=20
>          PRF(SecurityParameters.master_secret, label,
>              SecurityParameters.client_random +
>              SecurityParameters.server_random
>              )[length]
>=20
>   If the context is provided, it computes::
>=20
>          PRF(SecurityParameters.master_secret, label,
>              SecurityParameters.client_random +
>              SecurityParameters.server_random +
>              context_value_length + context_value
>              )[length]
>=20
>   Where PRF is the TLS PRF in use for the session.  The output is a
>   pseudorandom bit string of length bytes generated from the
>   master_secret. (This construction allows for interoperability
>   with older exporter-type constructions which do not
>   use context values, e.g., [RFC5281]).
>=20
> Any objections?
>=20
> -Ekr
>=20
>=20
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls

From simon@josefsson.org  Mon Feb 22 00:33:41 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 23F7028C11E for <tls@core3.amsl.com>; Mon, 22 Feb 2010 00:33:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.731
X-Spam-Level: 
X-Spam-Status: No, score=-2.731 tagged_above=-999 required=5 tests=[AWL=-0.132, 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 jJQTNYkM5C2P for <tls@core3.amsl.com>; Mon, 22 Feb 2010 00:33:40 -0800 (PST)
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39]) by core3.amsl.com (Postfix) with ESMTP id 0715A28C25E for <tls@ietf.org>; Mon, 22 Feb 2010 00:33:38 -0800 (PST)
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99]) (authenticated bits=0) by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o1M8ZQbO028562 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 22 Feb 2010 09:35:28 +0100
From: Simon Josefsson <simon@josefsson.org>
To: Brian Smith <brian@briansmith.org>
References: <C7A48643.869E%stefan@aaa-sec.com> <4B7ECFEF.50502@briansmith.org>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100222:brian@briansmith.org::Cqn4oYEZX5Acpf0I:3FV+
X-Hashcash: 1:22:100222:stefan@aaa-sec.com::hxmTzt+CGnQrdfUU:4zBI
X-Hashcash: 1:22:100222:dpkemp@missi.ncsc.mil::/b5upKuBo5sTwoXL:5iKP
X-Hashcash: 1:22:100222:tls@ietf.org::Swud9Rn+G9EkTJfc:GgOf
Date: Mon, 22 Feb 2010 09:35:26 +0100
In-Reply-To: <4B7ECFEF.50502@briansmith.org> (Brian Smith's message of "Fri, 19 Feb 2010 11:52:47 -0600")
Message-ID: <87k4u5zn01.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
Cc: "Kemp, David P." <DPKemp@missi.ncsc.mil>, tls@ietf.org
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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, 22 Feb 2010 08:33:41 -0000

Brian Smith <brian@briansmith.org> writes:

> 1. As long as this web page on the NIST website says, basically,
> "don't use SHA-1 for anything," people will want to disable SHA-1
> whenever they can. It doesn't matter that this page on the website
> isn't the official NIST recommendation on the matter.

I'd like to suggest another argument to support your reasoning: some
FIPS approved crypto libraries no longer export MD5.  I expect the same
to be true for SHA-1 within a few years.  This means that SHA-1 will no
longer be as easily available, for these non-crypto purposes needed in
tls-cached-info.

We noticed this in GnuTLS, that needs MD5 for older TLS versions.  Our
"solution" was to add an optional MD5 implementation to GnuTLS, rather
than always depending on the crypto library for MD5.  This felt strange
to do, but is the logical consequence of deprecating MD5, and eventually
SHA-1, as supported algorithms.

Chosing SHA-256 will give us more time, but we'll likely run into the
same issue eventually anyway.  I believe this suggests that algorithm
agility is useful whenever any crypto-related algorithm is _used_, even
if it is used for non-crypto related purposes.

/Simon

From mrex@sap.com  Mon Feb 22 07:39:37 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 942D928C294 for <tls@core3.amsl.com>; Mon, 22 Feb 2010 07:39:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.222
X-Spam-Level: 
X-Spam-Status: No, score=-10.222 tagged_above=-999 required=5 tests=[AWL=0.027, 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 bCzaIpYs6A7k for <tls@core3.amsl.com>; Mon, 22 Feb 2010 07:39:36 -0800 (PST)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.171]) by core3.amsl.com (Postfix) with ESMTP id 71EC128C1D8 for <tls@ietf.org>; Mon, 22 Feb 2010 07:39:35 -0800 (PST)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o1MFfTsg023895 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 22 Feb 2010 16:41:29 +0100 (MET)
From: Martin Rex <mrex@sap.com>
Message-Id: <201002221541.o1MFfSBu007590@fs4113.wdf.sap.corp>
To: simon@josefsson.org (Simon Josefsson)
Date: Mon, 22 Feb 2010 16:41:28 +0100 (MET)
In-Reply-To: <87k4u5zn01.fsf@mocca.josefsson.org> from "Simon Josefsson" at Feb 22, 10 09:35:26 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: DPKemp@missi.ncsc.mil, tls@ietf.org
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft
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, 22 Feb 2010 15:39:37 -0000

Simon Josefsson wrote:
> 
> Brian Smith <brian@briansmith.org> writes:
> 
> > 1. As long as this web page on the NIST website says, basically,
> > "don't use SHA-1 for anything," people will want to disable SHA-1
> > whenever they can. It doesn't matter that this page on the website
> > isn't the official NIST recommendation on the matter.
> 
> I'd like to suggest another argument to support your reasoning: some
> FIPS approved crypto libraries no longer export MD5.  I expect the same
> to be true for SHA-1 within a few years.  This means that SHA-1 will no
> longer be as easily available, for these non-crypto purposes needed in
> tls-cached-info.

I do not agree to this conclusion.  IIRC, NIST never liked MD5 from
the beginning, and it was always clear about that, which is why
SHA-1 as an alternative became ubiquitous available everywhere where
a secure hash algorithm was needed.

While it seems sensible to deprecate SHA-1 for use in digital
signatures, it is still present in many certs and many signatures.
Even last year, some PKIs have been newly set up with a hierarchy
of CAs using SHA-1 for the signature on the intermediate CA and
end entity certs--probably because the SHA-2 algorithm is not
yet universally available in implementations.

If you look at the mandatory-to-implement algorithm for SSLv3 and
TLS up to v1.2 (rfc5246):

  TLSv1.0 (rfc-2246, section 9)  TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA
  TLSv1.1 (rfc-4346, section 9)  TLS_RSA_WITH_3DES_EDE_CBC_SHA
  TLSv1.2 (rfc-5246, section 9)  TLS_RSA_WITH_AES_128_CBC_SHA
  
So getting rid of SHA-1 will require a significantly larger effort
than getting rid of MD5 (-based signatures).

> 
> Chosing SHA-256 will give us more time, but we'll likely run into the
> same issue eventually anyway.  I believe this suggests that algorithm
> agility is useful whenever any crypto-related algorithm is _used_, even
> if it is used for non-crypto related purposes.


TLS truncates the PRF output to 12 octets for the finished message.
Maybe we should truncate the hash for the caching extension to
20 octets (which means that sha-1 hash values are sent in full)?


-Martin

From Pasi.Eronen@nokia.com  Mon Feb 22 10:05:22 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 6AC6528C367 for <tls@core3.amsl.com>; Mon, 22 Feb 2010 10:05:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.104
X-Spam-Level: 
X-Spam-Status: No, score=-6.104 tagged_above=-999 required=5 tests=[AWL=-0.105, BAYES_00=-2.599, J_CHICKENPOX_23=0.6, 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 eFKyQbVU6G5P for <tls@core3.amsl.com>; Mon, 22 Feb 2010 10:05:21 -0800 (PST)
Received: from mgw-mx03.nokia.com (smtp.nokia.com [192.100.122.230]) by core3.amsl.com (Postfix) with ESMTP id 11DCE28C364 for <tls@ietf.org>; Mon, 22 Feb 2010 10:05:17 -0800 (PST)
Received: from vaebh105.NOE.Nokia.com (vaebh105.europe.nokia.com [10.160.244.31]) by mgw-mx03.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o1MI6nhZ006874; Mon, 22 Feb 2010 20:07:13 +0200
Received: from vaebh102.NOE.Nokia.com ([10.160.244.23]) by vaebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959);  Mon, 22 Feb 2010 20:06:31 +0200
Received: from vaebh101.NOE.Nokia.com ([10.160.244.22]) by vaebh102.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959);  Mon, 22 Feb 2010 20:06:26 +0200
Received: from smtp.mgd.nokia.com ([65.54.30.8]) by vaebh101.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959);  Mon, 22 Feb 2010 20:06:21 +0200
Received: from NOK-EUMSG-01.mgdnok.nokia.com ([65.54.30.86]) by nok-am1mhub-04.mgdnok.nokia.com ([65.54.30.8]) with mapi; Mon, 22 Feb 2010 19:06:20 +0100
From: <Pasi.Eronen@nokia.com>
To: <ekr@networkresonance.com>, <tls@ietf.org>
Date: Mon, 22 Feb 2010 19:06:19 +0100
Thread-Topic: [TLS] Entirely omitting context in draft-ietf-tls-extractor
Thread-Index: AcqzThmv6xL5Zq3QTWKzysbB324lBAAmnMnw
Message-ID: <808FD6E27AD4884E94820BC333B2DB775847D1E3C4@NOK-EUMSG-01.mgdnok.nokia.com>
References: <20100221233503.54D806EB9B5@kilo.networkresonance.com>
In-Reply-To: <20100221233503.54D806EB9B5@kilo.networkresonance.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: 22 Feb 2010 18:06:21.0956 (UTC) FILETIME=[BD622C40:01CAB3E9]
X-Nokia-AV: Clean
Subject: Re: [TLS] Entirely omitting context in draft-ietf-tls-extractor
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, 22 Feb 2010 18:05:22 -0000

Not wearing any hats: This could potentially simplify TLS library=20
APIs a bit (no need to provide special cases for EAP-TLS/EAP-TTLS). =20
And since we require that one label can't be a prefix of any other=20
label, this seems safe, too. So no objections from me as individual.

Wearing AD hat: I'll wait for a week or so to see if there are
objections before OK'ing this change with the RFC editor.

Best regards,
Pasi

> -----Original Message-----
> From: tls-bounces@ietf.org [mailto:tls-bounces@ietf.org] On Behalf Of
> ext Eric Rescorla
> Sent: 22 February, 2010 01:35
> To: tls@ietf.org
> Subject: [TLS] Entirely omitting context in draft-ietf-tls-extractor
>=20
> During LC, we received a comment from Jouni Malinen that
> unconditionally
> including the context in the PRF created an unnecesssary
> incompatibility
> with exporter-type mechanisms in EAP-TLS and EAP-TTLS which could
> otherwise
> be retconned into being extractor usages. In order to address this, I
> propose changing the text to read:
>=20
>=20
>   If no context is provided, it then computes:
>=20
>          PRF(SecurityParameters.master_secret, label,
>              SecurityParameters.client_random +
>              SecurityParameters.server_random
>              )[length]
>=20
>   If the context is provided, it computes::
>=20
>          PRF(SecurityParameters.master_secret, label,
>              SecurityParameters.client_random +
>              SecurityParameters.server_random +
>              context_value_length + context_value
>              )[length]
>=20
>   Where PRF is the TLS PRF in use for the session.  The output is a
>   pseudorandom bit string of length bytes generated from the
>   master_secret. (This construction allows for interoperability
>   with older exporter-type constructions which do not
>   use context values, e.g., [RFC5281]).
>=20
> Any objections?
>=20
> -Ekr
>=20
>=20
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls

From brian@briansmith.org  Tue Feb 23 08:50:51 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 2403C3A74BE for <tls@core3.amsl.com>; Tue, 23 Feb 2010 08:50:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.358
X-Spam-Level: 
X-Spam-Status: No, score=-1.358 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, SARE_LWSHORTT=1.24]
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 yqS3RtM10izV for <tls@core3.amsl.com>; Tue, 23 Feb 2010 08:50:50 -0800 (PST)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id D210F28C13A for <tls@ietf.org>; Tue, 23 Feb 2010 08:50:49 -0800 (PST)
Received: from [192.168.1.65] (unknown [70.252.11.143]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 92721509B4; Tue, 23 Feb 2010 11:52:43 -0500 (EST)
Message-ID: <4B8407D7.9040207@briansmith.org>
Date: Tue, 23 Feb 2010 10:52:39 -0600
From: Brian Smith <brian@briansmith.org>
User-Agent: Postbox 1.1.1 (Windows/20100208)
MIME-Version: 1.0
To: mrex@sap.com
References: <201002221541.o1MFfSBu007590@fs4113.wdf.sap.corp>
In-Reply-To: <201002221541.o1MFfSBu007590@fs4113.wdf.sap.corp>
Content-Type: multipart/alternative; boundary="------------000604050002020507010307"
Cc: Simon Josefsson <simon@josefsson.org>, DPKemp@missi.ncsc.mil, tls@ietf.org
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Tue, 23 Feb 2010 16:50:51 -0000

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

Martin Rex wrote:
> Simon Josefsson wrote:
>    
>>
>> I'd like to suggest another argument to support your reasoning: some
>> FIPS approved crypto libraries no longer export MD5.  I expect the same
>> to be true for SHA-1 within a few years.  This means that SHA-1 will no
>> longer be as easily available, for these non-crypto purposes needed in
>> tls-cached-info.
>>      
>
> I do not agree to this conclusion.  IIRC, NIST never liked MD5 from
> the beginning, and it was always clear about that, which is why
> SHA-1 as an alternative became ubiquitous available everywhere where
> a secure hash algorithm was needed.
>    
In the short term, Martin is right. Even with the new recommendations, 
crypto modules will still be able to be FIPS-certified even if they 
contain a SHA-1 implementation, as long because SHA-1 still has approved 
uses (HMAC-SHA1 in particular). However, I'm not sure that will be the 
case 10 years from now. I think it would be better for this extension to 
be specified in a way that doesn't require it to be periodically updated 
in order to be implementable using only primitives provided by certified 
crypto modules.

> While it seems sensible to deprecate SHA-1 for use in digital
> signatures, it is still present in many certs and many signatures.
> Even last year, some PKIs have been newly set up with a hierarchy
> of CAs using SHA-1 for the signature on the intermediate CA and
> end entity certs--probably because the SHA-2 algorithm is not
> yet universally available in implementations.
>    
It depends on the application. In 2011, SHA-1 certificates will no 
longer be acceptable for many uses within the US government. And, that 
is already the case now in 2010 with the German government, AFAICT.

> If you look at the mandatory-to-implement algorithm for SSLv3 and
> TLS up to v1.2 (rfc5246):
>
>    TLSv1.0 (rfc-2246, section 9)  TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA
>    TLSv1.1 (rfc-4346, section 9)  TLS_RSA_WITH_3DES_EDE_CBC_SHA
>    TLSv1.2 (rfc-5246, section 9)  TLS_RSA_WITH_AES_128_CBC_SHA
>
> So getting rid of SHA-1 will require a significantly larger effort
> than getting rid of MD5 (-based signatures).
>    
The spec says that those algorithms are required unless the profile of 
TLS in use specifies otherwise. The NSA Suite B Profile for TLS (RFC 
5430) defines a profile that doesn't use SHA-1 at all. 
(http://tools.ietf.org/html/rfc5430#section-3).

>> Chosing SHA-256 will give us more time, but we'll likely run into the
>> same issue eventually anyway.  I believe this suggests that algorithm
>> agility is useful whenever any crypto-related algorithm is _used_, even
>> if it is used for non-crypto related purposes.
>>      
> TLS truncates the PRF output to 12 octets for the finished message.
> Maybe we should truncate the hash for the caching extension to
> 20 octets (which means that sha-1 hash values are sent in full)?
>    
That sounds reasonable to me, but I'd also require the SHA-1 hashes 
truncated too, because (a) SHA-1 is overkill too (as David Kemp pointed 
out), and (b) it would be impossible for an implementer to miss the 
truncation requirement, evein in a SHA-1-only implementation.

Regards,
Brian

--------------000604050002020507010307
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Martin Rex wrote:
<blockquote cite="mid:201002221541.o1MFfSBu007590@fs4113.wdf.sap.corp"
 type="cite">
  <pre wrap="">Simon Josefsson wrote:
  </pre>
  <blockquote type="cite"><br>
    <pre wrap="">I'd like to suggest another argument to support your reasoning: some
FIPS approved crypto libraries no longer export MD5.  I expect the same
to be true for SHA-1 within a few years.  This means that SHA-1 will no
longer be as easily available, for these non-crypto purposes needed in
tls-cached-info.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I do not agree to this conclusion.  IIRC, NIST never liked MD5 from
the beginning, and it was always clear about that, which is why
SHA-1 as an alternative became ubiquitous available everywhere where
a secure hash algorithm was needed.
  </pre>
</blockquote>
In the short term, Martin is right. Even with the new recommendations,
crypto modules will still be able to be FIPS-certified even if they
contain a SHA-1 implementation, as long because SHA-1 still has
approved uses (HMAC-SHA1 in particular). However, I'm not sure that
will be the case 10 years from now. I think it would be better for this
extension to be specified in a way that doesn't require it to be
periodically updated in order to be implementable using only primitives
provided by certified crypto modules.<br>
<br>
<blockquote cite="mid:201002221541.o1MFfSBu007590@fs4113.wdf.sap.corp"
 type="cite">
  <pre wrap="">While it seems sensible to deprecate SHA-1 for use in digital
signatures, it is still present in many certs and many signatures.
Even last year, some PKIs have been newly set up with a hierarchy
of CAs using SHA-1 for the signature on the intermediate CA and
end entity certs--probably because the SHA-2 algorithm is not
yet universally available in implementations.
  </pre>
</blockquote>
It depends on the application. In 2011, SHA-1 certificates will no
longer be acceptable for many uses within the US government. And, that
is already the case now in 2010 with the German government, AFAICT.<br>
<br>
<blockquote cite="mid:201002221541.o1MFfSBu007590@fs4113.wdf.sap.corp"
 type="cite">
  <pre wrap="">If you look at the mandatory-to-implement algorithm for SSLv3 and
TLS up to v1.2 (rfc5246):

  TLSv1.0 (rfc-2246, section 9)  TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA
  TLSv1.1 (rfc-4346, section 9)  TLS_RSA_WITH_3DES_EDE_CBC_SHA
  TLSv1.2 (rfc-5246, section 9)  TLS_RSA_WITH_AES_128_CBC_SHA
  
So getting rid of SHA-1 will require a significantly larger effort
than getting rid of MD5 (-based signatures).
  </pre>
</blockquote>
The spec says that those algorithms are required unless the profile of
TLS in use specifies otherwise. The NSA Suite B Profile for TLS (RFC
5430) defines a profile that doesn't use SHA-1 at all.
(<a class="moz-txt-link-freetext" href="http://tools.ietf.org/html/rfc5430#section-3">http://tools.ietf.org/html/rfc5430#section-3</a>). <br>
<br>
<blockquote cite="mid:201002221541.o1MFfSBu007590@fs4113.wdf.sap.corp"
 type="cite">
  <blockquote type="cite">
    <pre wrap="">Chosing SHA-256 will give us more time, but we'll likely run into the
same issue eventually anyway.  I believe this suggests that algorithm
agility is useful whenever any crypto-related algorithm is _used_, even
if it is used for non-crypto related purposes.
    </pre>
  </blockquote>
  <pre wrap=""><!---->TLS truncates the PRF output to 12 octets for the finished message.
Maybe we should truncate the hash for the caching extension to
20 octets (which means that sha-1 hash values are sent in full)?
  </pre>
</blockquote>
That sounds reasonable to me, but I'd also require the SHA-1 hashes
truncated too, because (a) SHA-1 is overkill too (as David Kemp pointed
out), and (b) it would be impossible for an implementer to miss the
truncation requirement, evein in a SHA-1-only implementation.<br>
<br>
Regards,<br>
Brian<br>
</body>
</html>

--------------000604050002020507010307--

From brian@briansmith.org  Tue Feb 23 09:17:52 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 07D473A830E for <tls@core3.amsl.com>; Tue, 23 Feb 2010 09:17:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.978
X-Spam-Level: 
X-Spam-Status: No, score=-1.978 tagged_above=-999 required=5 tests=[AWL=0.620,  BAYES_00=-2.599, HTML_MESSAGE=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 WDpVmb3H1WaT for <tls@core3.amsl.com>; Tue, 23 Feb 2010 09:17:51 -0800 (PST)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id AA5D23A830D for <tls@ietf.org>; Tue, 23 Feb 2010 09:17:50 -0800 (PST)
Received: from [192.168.1.65] (unknown [70.252.11.143]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id DAABA509DD; Tue, 23 Feb 2010 12:19:52 -0500 (EST)
Message-ID: <4B840E38.8070107@briansmith.org>
Date: Tue, 23 Feb 2010 11:19:52 -0600
From: Brian Smith <brian@briansmith.org>
User-Agent: Postbox 1.1.1 (Windows/20100208)
MIME-Version: 1.0
To: mrex@sap.com
References: <201002191745.o1JHjQcH017621@fs4113.wdf.sap.corp>
In-Reply-To: <201002191745.o1JHjQcH017621@fs4113.wdf.sap.corp>
Content-Type: multipart/alternative; boundary="------------030706090008060908070208"
Cc: tls@ietf.org
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Tue, 23 Feb 2010 17:17:52 -0000

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

Martin Rex wrote:
> Brian Smith wrote:
>    
>> Perhaps this all can be avoided by simply not having the client
>> calculate hashes at all for . For example, would this work?:
>>
>> struct {
>>       CachedInformationType type;
>>       opaque token<0..255>;
>> } CachedObject;
>>      
>
> I've been advocating the use of a hash value over the real data
> so that the handshake will do the right thing automatically if
> the data cached by the client and the data the server is going
> to return no longer match: the server is going to send the new
> data in full, and the client can update his cache.
>
> You definitely do not want a handshake failure (which always
> requires application involvement to recover from and a
> new connection) if the data cached by the client is out of
> sync with what the server wants to return.
>    
This already happens with session resumption, when the server re-uses a 
session ID (so that the client's mapping of session ID -> session state 
doesn't match the server's mapping of session ID -> session state). The 
solution there was basically to tell the server "don't do that," and I 
think the same solution can be used here. That is why I suggested 
recommending the server to use a SHA-2 hash of the cached data.

> The client needs to be able to distinguish omitted handshake
> data (which he has cached) from new real data
I believe my proposed scheme already does this. If the client cached a 
zero-length string, he will have a non-zero-length token for it. If the 
server wants to send a new non-zero-length value for that cached item, 
then it would either send no token at all for that item (indicating that 
the new value can't be cached) or it would send a new token.
> and the server should not be forced to precompute all handshake
> messages when composing the server hello handshake message
> in order to confirm matches to the data that the client
> has indicated to have cached.
>    
The items that are useful to be cached are all sent directly after the 
server hello (certificate, certificate request, and key exchange). 
There's nothing else that's large in the handshake. And, in practice, 
the server has to do this anyway if it supports session resumption. 
Regardless, it isn't a burden for the server anyway. Every time the 
server sends a new cachable item, it would calculate the token and cache it.

Regardless of the SHA1 issue, if the extension can be designed so that 
the client doesn't have to do any calculations in order to use the 
extension, that is a big win, because it makes the client much easier to 
implement and much simpler to maintain. It is much easier to perform 
maintenance on servers than on clients, especially clients that have 
their TLS implementation baked into firmware of consumer devices.

Cheers,
Brian

--------------030706090008060908070208
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Martin Rex wrote:
<blockquote cite="mid:201002191745.o1JHjQcH017621@fs4113.wdf.sap.corp"
 type="cite">
  <pre wrap="">Brian Smith wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Perhaps this all can be avoided by simply not having the client 
calculate hashes at all for . For example, would this work?:

struct {
     CachedInformationType type;
     opaque token&lt;0..255&gt;;
} CachedObject;
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I've been advocating the use of a hash value over the real data
so that the handshake will do the right thing automatically if
the data cached by the client and the data the server is going
to return no longer match: the server is going to send the new
data in full, and the client can update his cache.

You definitely do not want a handshake failure (which always
requires application involvement to recover from and a 
new connection) if the data cached by the client is out of
sync with what the server wants to return.
  </pre>
</blockquote>
This already happens with session resumption, when the server re-uses a
session ID (so that the client's mapping of session ID -&gt; session
state doesn't match the server's mapping of session ID -&gt; session
state). The solution there was basically to tell the server "don't do
that," and I think the same solution can be used here. That is why I
suggested recommending the server to use a SHA-2 hash of the cached
data.<br>
<br>
<blockquote cite="mid:201002191745.o1JHjQcH017621@fs4113.wdf.sap.corp"
 type="cite">
  <pre wrap="">The client needs to be able to distinguish omitted handshake
data (which he has cached) from new real data</pre>
</blockquote>
I believe my proposed scheme already does this. If the client cached a
zero-length string, he will have a non-zero-length token for it. If the
server wants to send a new non-zero-length value for that cached item,
then it would either send no token at all for that item (indicating
that the new value can't be cached) or it would send a new token.<br>
<blockquote cite="mid:201002191745.o1JHjQcH017621@fs4113.wdf.sap.corp"
 type="cite">
  <pre wrap="">and the server should not be forced to precompute all handshake
messages when composing the server hello handshake message
in order to confirm matches to the data that the client
has indicated to have cached.
  </pre>
</blockquote>
The items that are useful to be cached are all sent directly after the
server hello (certificate, certificate request, and key exchange).
There's nothing else that's large in the handshake. And, in practice,
the server has to do this anyway if it supports session resumption.
Regardless, it isn't a burden for the server anyway. Every time the
server sends a new cachable item, it would calculate the token and
cache it.<br>
<br>
Regardless of the SHA1 issue, if the extension can be designed so that
the client doesn't have to do any calculations in order to use the
extension, that is a big win, because it makes the client much easier
to implement and much simpler to maintain. It is much easier to perform
maintenance on servers than on clients, especially clients that have
their TLS implementation baked into firmware of consumer devices.<br>
<br>
Cheers,<br>
Brian<br>
</body>
</html>

--------------030706090008060908070208--

From stefan@aaa-sec.com  Wed Feb 24 08:59:03 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 1C7EE28C1D8 for <tls@core3.amsl.com>; Wed, 24 Feb 2010 08:59:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.721
X-Spam-Level: 
X-Spam-Status: No, score=-0.721 tagged_above=-999 required=5 tests=[AWL=-1.109, BAYES_00=-2.599, HELO_EQ_SE=0.35, HTML_MESSAGE=0.001, MIME_QP_LONG_LINE=1.396, SARE_LWSHORTT=1.24]
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 OO66Zw7z6-zS for <tls@core3.amsl.com>; Wed, 24 Feb 2010 08:59:01 -0800 (PST)
Received: from s87.loopia.se (s87.loopia.se [194.9.95.114]) by core3.amsl.com (Postfix) with ESMTP id F0D8D28C15C for <tls@ietf.org>; Wed, 24 Feb 2010 08:59:00 -0800 (PST)
Received: from s42.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id EB8E9339469 for <tls@ietf.org>; Wed, 24 Feb 2010 18:01:11 +0100 (CET)
Received: (qmail 72091 invoked from network); 24 Feb 2010 17:01:00 -0000
Received: from unknown (HELO [192.168.1.2]) (stefan@fiddler.nu@[85.235.2.114]) (envelope-sender <stefan@aaa-sec.com>) by s42.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <brian@briansmith.org>; 24 Feb 2010 17:01:00 -0000
User-Agent: Microsoft-Entourage/12.23.0.091001
Date: Wed, 24 Feb 2010 18:00:47 +0100
From: Stefan Santesson <stefan@aaa-sec.com>
To: Brian Smith <brian@briansmith.org>, <mrex@sap.com>
Message-ID: <C7AB19CF.88B9%stefan@aaa-sec.com>
Thread-Topic: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft
Thread-Index: Acq1cujLRXODTj3ZEkS0IhmoriFNkA==
In-Reply-To: <4B8407D7.9040207@briansmith.org>
Mime-version: 1.0
Content-type: multipart/alternative; boundary="B_3349879260_4790908"
Cc: Simon Josefsson <simon@josefsson.org>, DPKemp@missi.ncsc.mil, tls@ietf.org
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Wed, 24 Feb 2010 16:59:03 -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_3349879260_4790908
Content-type: text/plain;
	charset="US-ASCII"
Content-transfer-encoding: 7bit


Would it help to make everyone happy if we said that implementers SHOULD
support SHA-1?

/Stefan



On 10-02-23 5:52 PM, "Brian Smith" <brian@briansmith.org> wrote:

> Martin Rex wrote:
>>  
>> Simon Josefsson wrote:
>>   
>>  
>>> 
>>>  
>>> I'd like to suggest another argument to support your reasoning: some
>>> FIPS approved crypto libraries no longer export MD5.  I expect the same
>>> to be true for SHA-1 within a few years.  This means that SHA-1 will no
>>> longer be as easily available, for these non-crypto purposes needed in
>>> tls-cached-info.
>>>     
>>>  
>>  
>> 
>> I do not agree to this conclusion.  IIRC, NIST never liked MD5 from
>> the beginning, and it was always clear about that, which is why
>> SHA-1 as an alternative became ubiquitous available everywhere where
>> a secure hash algorithm was needed.
>>   
> In the short term, Martin is right. Even with the new recommendations, crypto
> modules will still be able to be FIPS-certified even if they contain a SHA-1
> implementation, as long because SHA-1 still has approved uses (HMAC-SHA1 in
> particular). However, I'm not sure that will be the case 10 years from now. I
> think it would be better for this extension to be specified in a way that
> doesn't require it to be periodically updated in order to be implementable
> using only primitives provided by certified crypto modules.
> 
>>  
>> While it seems sensible to deprecate SHA-1 for use in digital
>> signatures, it is still present in many certs and many signatures.
>> Even last year, some PKIs have been newly set up with a hierarchy
>> of CAs using SHA-1 for the signature on the intermediate CA and
>> end entity certs--probably because the SHA-2 algorithm is not
>> yet universally available in implementations.
>>   
> It depends on the application. In 2011, SHA-1 certificates will no longer be
> acceptable for many uses within the US government. And, that is already the
> case now in 2010 with the German government, AFAICT.
> 
>>  
>> If you look at the mandatory-to-implement algorithm for SSLv3 and
>> TLS up to v1.2 (rfc5246):
>> 
>>   TLSv1.0 (rfc-2246, section 9)  TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA
>>   TLSv1.1 (rfc-4346, section 9)  TLS_RSA_WITH_3DES_EDE_CBC_SHA
>>   TLSv1.2 (rfc-5246, section 9)  TLS_RSA_WITH_AES_128_CBC_SHA
>>   
>> So getting rid of SHA-1 will require a significantly larger effort
>> than getting rid of MD5 (-based signatures).
>>   
> The spec says that those algorithms are required unless the profile of TLS in
> use specifies otherwise. The NSA Suite B Profile for TLS (RFC 5430) defines a
> profile that doesn't use SHA-1 at all.
> (http://tools.ietf.org/html/rfc5430#section-3).
> 
>>  
>>>  
>>> Chosing SHA-256 will give us more time, but we'll likely run into the
>>> same issue eventually anyway.  I believe this suggests that algorithm
>>> agility is useful whenever any crypto-related algorithm is _used_, even
>>> if it is used for non-crypto related purposes.
>>>     
>>>  
>>  
>> TLS truncates the PRF output to 12 octets for the finished message.
>> Maybe we should truncate the hash for the caching extension to
>> 20 octets (which means that sha-1 hash values are sent in full)?
>>   
> That sounds reasonable to me, but I'd also require the SHA-1 hashes truncated
> too, because (a) SHA-1 is overkill too (as David Kemp pointed out), and (b) it
> would be impossible for an implementer to miss the truncation requirement,
> evein in a SHA-1-only implementation.
> 
> Regards,
> Brian
> 
> 
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls


--B_3349879260_4790908
Content-type: text/html;
	charset="US-ASCII"
Content-transfer-encoding: quoted-printable

<HTML>
<HEAD>
<TITLE>Re: [TLS] draft-ietf-tls-cached-info-02 / New &quot;Fast-Track&quot;=
 draft</TITLE>
</HEAD>
<BODY>
<FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:11pt=
'><BR>
Would it help to make everyone happy if we said that implementers SHOULD su=
pport SHA-1?<BR>
<BR>
/Stefan<BR>
<BR>
<BR>
<BR>
On 10-02-23 5:52 PM, &quot;Brian Smith&quot; &lt;<a href=3D"brian@briansmith.=
org">brian@briansmith.org</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><=
SPAN STYLE=3D'font-size:11pt'>Martin Rex wrote: <BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><=
SPAN STYLE=3D'font-size:11pt'> <BR>
Simon Josefsson wrote:<BR>
&nbsp;&nbsp;<BR>
&nbsp;<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><=
SPAN STYLE=3D'font-size:11pt'><BR>
&nbsp;<BR>
I'd like to suggest another argument to support your reasoning: some<BR>
FIPS approved crypto libraries no longer export MD5. &nbsp;I expect the sam=
e<BR>
to be true for SHA-1 within a few years. &nbsp;This means that SHA-1 will n=
o<BR>
longer be as easily available, for these non-crypto purposes needed in<BR>
tls-cached-info.<BR>
&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&nbsp;<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial">=
<SPAN STYLE=3D'font-size:11pt'> <BR>
<BR>
I do not agree to this conclusion. &nbsp;IIRC, NIST never liked MD5 from<BR=
>
the beginning, and it was always clear about that, which is why<BR>
SHA-1 as an alternative became ubiquitous available everywhere where<BR>
a secure hash algorithm was needed.<BR>
&nbsp;&nbsp;<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial">=
<SPAN STYLE=3D'font-size:11pt'>In the short term, Martin is right. Even with t=
he new recommendations, crypto modules will still be able to be FIPS-certifi=
ed even if they contain a SHA-1 implementation, as long because SHA-1 still =
has approved uses (HMAC-SHA1 in particular). However, I'm not sure that will=
 be the case 10 years from now. I think it would be better for this extensio=
n to be specified in a way that doesn't require it to be periodically update=
d in order to be implementable using only primitives provided by certified c=
rypto modules.<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><=
SPAN STYLE=3D'font-size:11pt'> <BR>
While it seems sensible to deprecate SHA-1 for use in digital<BR>
signatures, it is still present in many certs and many signatures.<BR>
Even last year, some PKIs have been newly set up with a hierarchy<BR>
of CAs using SHA-1 for the signature on the intermediate CA and<BR>
end entity certs--probably because the SHA-2 algorithm is not<BR>
yet universally available in implementations.<BR>
&nbsp;&nbsp;<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial">=
<SPAN STYLE=3D'font-size:11pt'>It depends on the application. In 2011, SHA-1 c=
ertificates will no longer be acceptable for many uses within the US governm=
ent. And, that is already the case now in 2010 with the German government, A=
FAICT.<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><=
SPAN STYLE=3D'font-size:11pt'> <BR>
If you look at the mandatory-to-implement algorithm for SSLv3 and<BR>
TLS up to v1.2 (rfc5246):<BR>
<BR>
&nbsp;&nbsp;TLSv1.0 (rfc-2246, section 9) &nbsp;TLS_DHE_DSS_WITH_3DES_EDE_C=
BC_SHA<BR>
&nbsp;&nbsp;TLSv1.1 (rfc-4346, section 9) &nbsp;TLS_RSA_WITH_3DES_EDE_CBC_S=
HA<BR>
&nbsp;&nbsp;TLSv1.2 (rfc-5246, section 9) &nbsp;TLS_RSA_WITH_AES_128_CBC_SH=
A<BR>
&nbsp;&nbsp;<BR>
So getting rid of SHA-1 will require a significantly larger effort<BR>
than getting rid of MD5 (-based signatures).<BR>
&nbsp;&nbsp;<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial">=
<SPAN STYLE=3D'font-size:11pt'>The spec says that those algorithms are require=
d unless the profile of TLS in use specifies otherwise. The NSA Suite B Prof=
ile for TLS (RFC 5430) defines a profile that doesn't use SHA-1 at all. (<a =
href=3D"http://tools.ietf.org/html/rfc5430#section-3">http://tools.ietf.org/ht=
ml/rfc5430#section-3</a>). <BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><=
SPAN STYLE=3D'font-size:11pt'> <BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><=
SPAN STYLE=3D'font-size:11pt'> <BR>
Chosing SHA-256 will give us more time, but we'll likely run into the<BR>
same issue eventually anyway. &nbsp;I believe this suggests that algorithm<=
BR>
agility is useful whenever any crypto-related algorithm is _used_, even<BR>
if it is used for non-crypto related purposes.<BR>
&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&nbsp;<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial">=
<SPAN STYLE=3D'font-size:11pt'> <BR>
TLS truncates the PRF output to 12 octets for the finished message.<BR>
Maybe we should truncate the hash for the caching extension to<BR>
20 octets (which means that sha-1 hash values are sent in full)?<BR>
&nbsp;&nbsp;<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial">=
<SPAN STYLE=3D'font-size:11pt'>That sounds reasonable to me, but I'd also requ=
ire the SHA-1 hashes truncated too, because (a) SHA-1 is overkill too (as Da=
vid Kemp pointed out), and (b) it would be impossible for an implementer to =
miss the truncation requirement, evein in a SHA-1-only implementation.<BR>
<BR>
Regards,<BR>
Brian<BR>
<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_3349879260_4790908--



From DPKemp@missi.ncsc.mil  Wed Feb 24 09:52: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 A30F728C1EC for <tls@core3.amsl.com>; Wed, 24 Feb 2010 09:52:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.978
X-Spam-Level: 
X-Spam-Status: No, score=-5.978 tagged_above=-999 required=5 tests=[AWL=-0.620, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4, SARE_LWSHORTT=1.24]
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 9QIV9ES-Fprm for <tls@core3.amsl.com>; Wed, 24 Feb 2010 09:51:52 -0800 (PST)
Received: from stingray.missi.ncsc.mil (stingray.missi.ncsc.mil [144.51.50.20]) by core3.amsl.com (Postfix) with ESMTP id 585D328C14B for <tls@ietf.org>; Wed, 24 Feb 2010 09:51:52 -0800 (PST)
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_01CAB57A.37F468FA"
Date: Wed, 24 Feb 2010 12:53:05 -0500
Message-ID: <201002241753.o1OHrxuK015491@stingray.missi.ncsc.mil>
In-Reply-To: <C7AB19CF.88B9%stefan@aaa-sec.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft
Thread-Index: Acq1cujLRXODTj3ZEkS0IhmoriFNkAAAZpew
References: <4B8407D7.9040207@briansmith.org> <C7AB19CF.88B9%stefan@aaa-sec.com>
From: "Kemp, David P." <DPKemp@missi.ncsc.mil>
To: <tls@ietf.org>
X-OriginalArrivalTime: 24 Feb 2010 17:54:46.0312 (UTC) FILETIME=[7392D280:01CAB57A]
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Wed, 24 Feb 2010 17:52:00 -0000

This is a multi-part message in MIME format.

------_=_NextPart_001_01CAB57A.37F468FA
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I'd be happier with MUST.  I don't buy the argument that all code that
makes up an application must come from a certified crypto library;
certainly XML parsers, GUI toolkits, and a million other things are
available to developers, and I find it hard to believe that 20 years
from now nobody will be able to find some C code somewhere to do SHA-1.
If it is impossible to get consensus without a SHOULD, then so be it,
but that is a cop-out.

=20

I agree with Martin and Brian that all hashes including SHA-1 should be
truncated.  To make it impossible for developers to miss (and to save a
few bits of bandwidth) it should be truncated to less than 20 octets.
I'd suggest 8 octets, but pick your favorite number (8, 12, 16) less
than 20.

=20

      struct {

           HashAlgorithm hash;

           opaque hash_value<8>;      // was hash_value<1..255>;

      } CachedInformationHash;

=20

Dave

=20

=20

From: Stefan Santesson [mailto:stefan@aaa-sec.com]=20
Sent: Wednesday, February 24, 2010 12:01 PM
To: Brian Smith; mrex@sap.com
Cc: Simon Josefsson; Kemp, David P.; tls@ietf.org
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track"
draft

=20


Would it help to make everyone happy if we said that implementers SHOULD
support SHA-1?

/Stefan



On 10-02-23 5:52 PM, "Brian Smith" <brian@briansmith.org> wrote:

Martin Rex wrote:=20


Simon Josefsson wrote:
 =20
=20


=20
I'd like to suggest another argument to support your reasoning: some
FIPS approved crypto libraries no longer export MD5.  I expect the same
to be true for SHA-1 within a few years.  This means that SHA-1 will no
longer be as easily available, for these non-crypto purposes needed in
tls-cached-info.
   =20
=20



I do not agree to this conclusion.  IIRC, NIST never liked MD5 from
the beginning, and it was always clear about that, which is why
SHA-1 as an alternative became ubiquitous available everywhere where
a secure hash algorithm was needed.
 =20

In the short term, Martin is right. Even with the new recommendations,
crypto modules will still be able to be FIPS-certified even if they
contain a SHA-1 implementation, as long because SHA-1 still has approved
uses (HMAC-SHA1 in particular). However, I'm not sure that will be the
case 10 years from now. I think it would be better for this extension to
be specified in a way that doesn't require it to be periodically updated
in order to be implementable using only primitives provided by certified
crypto modules.


While it seems sensible to deprecate SHA-1 for use in digital
signatures, it is still present in many certs and many signatures.
Even last year, some PKIs have been newly set up with a hierarchy
of CAs using SHA-1 for the signature on the intermediate CA and
end entity certs--probably because the SHA-2 algorithm is not
yet universally available in implementations.
 =20

It depends on the application. In 2011, SHA-1 certificates will no
longer be acceptable for many uses within the US government. And, that
is already the case now in 2010 with the German government, AFAICT.


If you look at the mandatory-to-implement algorithm for SSLv3 and
TLS up to v1.2 (rfc5246):

  TLSv1.0 (rfc-2246, section 9)  TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA
  TLSv1.1 (rfc-4346, section 9)  TLS_RSA_WITH_3DES_EDE_CBC_SHA
  TLSv1.2 (rfc-5246, section 9)  TLS_RSA_WITH_AES_128_CBC_SHA
 =20
So getting rid of SHA-1 will require a significantly larger effort
than getting rid of MD5 (-based signatures).
 =20

The spec says that those algorithms are required unless the profile of
TLS in use specifies otherwise. The NSA Suite B Profile for TLS (RFC
5430) defines a profile that doesn't use SHA-1 at all.
(http://tools.ietf.org/html/rfc5430#section-3).=20

=20


Chosing SHA-256 will give us more time, but we'll likely run into the
same issue eventually anyway.  I believe this suggests that algorithm
agility is useful whenever any crypto-related algorithm is _used_, even
if it is used for non-crypto related purposes.
   =20
=20


TLS truncates the PRF output to 12 octets for the finished message.
Maybe we should truncate the hash for the caching extension to
20 octets (which means that sha-1 hash values are sent in full)?
 =20

That sounds reasonable to me, but I'd also require the SHA-1 hashes
truncated too, because (a) SHA-1 is overkill too (as David Kemp pointed
out), and (b) it would be impossible for an implementer to miss the
truncation requirement, evein in a SHA-1-only implementation.

Regards,
Brian

  _____ =20

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


------_=_NextPart_001_01CAB57A.37F468FA
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)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Re: [TLS] draft-ietf-tls-cached-info-02 / New =
&quot;Fast-Track&quot;
draft</title>
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 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;}
pre
	{mso-style-priority:99;
	mso-style-link:"HTML Preformatted Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
span.EmailStyle17
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.HTMLPreformattedChar
	{mso-style-name:"HTML Preformatted Char";
	mso-style-priority:99;
	mso-style-link:"HTML Preformatted";
	font-family:"Courier New";}
.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;}
-->
</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";
color:#1F497D'>I&#8217;d be happier with MUST.&nbsp; I don&#8217;t buy =
the
argument that all code that makes up an application must come from a =
certified
crypto library; certainly XML parsers, GUI toolkits, and a million other =
things
are available to developers, and I find it hard to believe that 20 years =
from
now nobody will be able to find some C code somewhere to do SHA-1.&nbsp; =
If it
is impossible to get consensus without a SHOULD, then so be it, but that =
is a
cop-out.<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'>I agree with Martin and Brian that all hashes including =
SHA-1
should be truncated.&nbsp; To make it impossible for developers to miss =
(and to
save a few bits of bandwidth) it should be truncated to less than 20
octets.&nbsp; I&#8217;d suggest 8 octets, but pick your favorite number =
(8, 12,
16) less than 20.<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:10.0pt;font-family:"Courier =
New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
struct {<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
HashAlgorithm hash;<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
opaque hash_value&lt;8&gt;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // was
hash_value&lt;1..255&gt;;<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
} CachedInformationHash;<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><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>

<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>

<div style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt =
0in 0in 0in'>

<p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span>=
</b><span
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Stefan =
Santesson
[mailto:stefan@aaa-sec.com] <br>
<b>Sent:</b> Wednesday, February 24, 2010 12:01 PM<br>
<b>To:</b> Brian Smith; mrex@sap.com<br>
<b>Cc:</b> Simon Josefsson; Kemp, David P.; tls@ietf.org<br>
<b>Subject:</b> Re: [TLS] draft-ietf-tls-cached-info-02 / New
&quot;Fast-Track&quot; draft<o:p></o:p></span></p>

</div>

</div>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><span =
style=3D'font-size:11.0pt;
font-family:"Calibri","sans-serif"'><br>
Would it help to make everyone happy if we said that implementers SHOULD
support SHA-1?<br>
<br>
/Stefan<br>
<br>
<br>
<br>
On 10-02-23 5:52 PM, &quot;Brian Smith&quot; &lt;<a =
href=3D"brian@briansmith.org">brian@briansmith.org</a>&gt;
wrote:</span><o:p></o:p></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"'>Martin
Rex wrote: </span><o:p></o:p></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"'><br>
Simon Josefsson wrote:<br>
&nbsp;&nbsp;<br>
&nbsp;</span><o:p></o:p></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"'><br>
&nbsp;<br>
I'd like to suggest another argument to support your reasoning: some<br>
FIPS approved crypto libraries no longer export MD5. &nbsp;I expect the =
same<br>
to be true for SHA-1 within a few years. &nbsp;This means that SHA-1 =
will no<br>
longer be as easily available, for these non-crypto purposes needed =
in<br>
tls-cached-info.<br>
&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;</span><o:p></o:p></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"'><br>
<br>
I do not agree to this conclusion. &nbsp;IIRC, NIST never liked MD5 =
from<br>
the beginning, and it was always clear about that, which is why<br>
SHA-1 as an alternative became ubiquitous available everywhere where<br>
a secure hash algorithm was needed.<br>
&nbsp;&nbsp;</span><o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><span =
style=3D'font-size:11.0pt;
font-family:"Calibri","sans-serif"'>In the short term, Martin is right. =
Even
with the new recommendations, crypto modules will still be able to be
FIPS-certified even if they contain a SHA-1 implementation, as long =
because
SHA-1 still has approved uses (HMAC-SHA1 in particular). However, I'm =
not sure
that will be the case 10 years from now. I think it would be better for =
this extension
to be specified in a way that doesn't require it to be periodically =
updated in
order to be implementable using only primitives provided by certified =
crypto
modules.</span><o:p></o:p></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"'><br>
While it seems sensible to deprecate SHA-1 for use in digital<br>
signatures, it is still present in many certs and many signatures.<br>
Even last year, some PKIs have been newly set up with a hierarchy<br>
of CAs using SHA-1 for the signature on the intermediate CA and<br>
end entity certs--probably because the SHA-2 algorithm is not<br>
yet universally available in implementations.<br>
&nbsp;&nbsp;</span><o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><span =
style=3D'font-size:11.0pt;
font-family:"Calibri","sans-serif"'>It depends on the application. In =
2011,
SHA-1 certificates will no longer be acceptable for many uses within the =
US
government. And, that is already the case now in 2010 with the German
government, AFAICT.</span><o:p></o:p></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"'><br>
If you look at the mandatory-to-implement algorithm for SSLv3 and<br>
TLS up to v1.2 (rfc5246):<br>
<br>
&nbsp;&nbsp;TLSv1.0 (rfc-2246, section 9)
&nbsp;TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA<br>
&nbsp;&nbsp;TLSv1.1 (rfc-4346, section 9) =
&nbsp;TLS_RSA_WITH_3DES_EDE_CBC_SHA<br>
&nbsp;&nbsp;TLSv1.2 (rfc-5246, section 9) =
&nbsp;TLS_RSA_WITH_AES_128_CBC_SHA<br>
&nbsp;&nbsp;<br>
So getting rid of SHA-1 will require a significantly larger effort<br>
than getting rid of MD5 (-based signatures).<br>
&nbsp;&nbsp;</span><o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><span =
style=3D'font-size:11.0pt;
font-family:"Calibri","sans-serif"'>The spec says that those algorithms =
are
required unless the profile of TLS in use specifies otherwise. The NSA =
Suite B Profile
for TLS (RFC 5430) defines a profile that doesn't use SHA-1 at all. (<a
href=3D"http://tools.ietf.org/html/rfc5430#section-3">http://tools.ietf.o=
rg/html/rfc5430#section-3</a>).
</span><o:p></o:p></p>

<blockquote style=3D'margin-top:5.0pt;margin-bottom:5.0pt'>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"'><br>
Chosing SHA-256 will give us more time, but we'll likely run into =
the<br>
same issue eventually anyway. &nbsp;I believe this suggests that =
algorithm<br>
agility is useful whenever any crypto-related algorithm is _used_, =
even<br>
if it is used for non-crypto related purposes.<br>
&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;</span><o:p></o:p></p>

</blockquote>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"'><br>
TLS truncates the PRF output to 12 octets for the finished message.<br>
Maybe we should truncate the hash for the caching extension to<br>
20 octets (which means that sha-1 hash values are sent in full)?<br>
&nbsp;&nbsp;</span><o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><span =
style=3D'font-size:11.0pt;
font-family:"Calibri","sans-serif"'>That sounds reasonable to me, but =
I'd also
require the SHA-1 hashes truncated too, because (a) SHA-1 is overkill =
too (as
David Kemp pointed out), and (b) it would be impossible for an =
implementer to
miss the truncation requirement, evein in a SHA-1-only =
implementation.<br>
<br>
Regards,<br>
Brian<o:p></o:p></span></p>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><span
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"'>

<hr size=3D3 width=3D"95%" align=3Dcenter>

</span></div>

<p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:Consolas'>_________________________=
______________________<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/m=
ailman/listinfo/tls</a></span><o:p></o:p></p>

</div>

</body>

</html>

------_=_NextPart_001_01CAB57A.37F468FA--

From marsh@extendedsubset.com  Wed Feb 24 10:23: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 579EE28C284 for <tls@core3.amsl.com>; Wed, 24 Feb 2010 10:23:41 -0800 (PST)
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=[AWL=0.000,  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 zrct1QsYLm-G for <tls@core3.amsl.com>; Wed, 24 Feb 2010 10:23:26 -0800 (PST)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id 2A18928C278 for <tls@ietf.org>; Wed, 24 Feb 2010 10:23:25 -0800 (PST)
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 1NkLvQ-0003w7-HB for tls@ietf.org; Wed, 24 Feb 2010 18:25:32 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 6D7CD6048 for <tls@ietf.org>; Wed, 24 Feb 2010 18:25:27 +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: U2FsdGVkX18PRpU06pEUnsWj/cs+32JJfCaNjqFNsLI=
Message-ID: <4B856F19.6080809@extendedsubset.com>
Date: Wed, 24 Feb 2010 12:25:29 -0600
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: tls@ietf.org
References: <4B8407D7.9040207@briansmith.org>	<C7AB19CF.88B9%stefan@aaa-sec.com> <201002241753.o1OHrxuK015491@stingray.missi.ncsc.mil>
In-Reply-To: <201002241753.o1OHrxuK015491@stingray.missi.ncsc.mil>
X-Enigmail-Version: 0.96.0
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Wed, 24 Feb 2010 18:23:41 -0000

Kemp, David P. wrote:
> I=E2=80=99d be happier with MUST.  I don=E2=80=99t buy the argument tha=
t all code that
> makes up an application must come from a certified crypto library;
> certainly XML parsers, GUI toolkits, and a million other things are
> available to developers, and I find it hard to believe that 20 years
> from now nobody will be able to find some C code somewhere to do SHA-1.=
=20
> If it is impossible to get consensus without a SHOULD, then so be it,
> but that is a cop-out.

The problem with specifying SHA-1 is that it's a recognized as a crypto
algorithm. It's showing its age and various parties are starting to
forbid its use.

It will not be so fun to convince reviewers that "yes we're using SHA-1
but not in a way that really matters."

> I agree with Martin and Brian that all hashes including SHA-1 should be
> truncated.  To make it impossible for developers to miss (and to save a
> few bits of bandwidth) it should be truncated to less than 20 octets.=20
> I=E2=80=99d suggest 8 octets, but pick your favorite number (8, 12, 16)=
 less
> than 20.

If all you need is a 64-bit checksum for data-structure-style hashing
and indexing, use any old old-fashioned checksum algorithm.

This would be simple for everyone to implement and it clearly
communicates your design intent (that the security of the design does
not depend on any properties of this value's calculation).

Using a weakened form of a partially-broken and deprecated cryptographic
algorithm seems like it could provoke a lot of useless discussion.

- Marsh

From DPKemp@missi.ncsc.mil  Wed Feb 24 11:48:45 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 8A9B33A857A for <tls@core3.amsl.com>; Wed, 24 Feb 2010 11:48:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.543
X-Spam-Level: 
X-Spam-Status: No, score=-6.543 tagged_above=-999 required=5 tests=[AWL=0.056,  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 wCusQ3FJtDVN for <tls@core3.amsl.com>; Wed, 24 Feb 2010 11:48:44 -0800 (PST)
Received: from stingray.missi.ncsc.mil (stingray.missi.ncsc.mil [144.51.50.20]) by core3.amsl.com (Postfix) with ESMTP id A61773A8537 for <tls@ietf.org>; Wed, 24 Feb 2010 11:48:44 -0800 (PST)
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Date: Wed, 24 Feb 2010 14:50:36 -0500
Message-ID: <201002241950.o1OJonSH025171@stingray.missi.ncsc.mil>
In-Reply-To: <4B856F19.6080809@extendedsubset.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [POSSIBLE SPAM] Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft
Thread-Index: Acq1fta/+6mZ5urJRLautnu1LirFtwAAMTaA
References: <4B8407D7.9040207@briansmith.org>	<C7AB19CF.88B9%stefan@aaa-sec.com><201002241753.o1OHrxuK015491@stingray.missi.ncsc.mil> <4B856F19.6080809@extendedsubset.com>
From: "Kemp, David P." <DPKemp@missi.ncsc.mil>
To: <tls@ietf.org>
X-OriginalArrivalTime: 24 Feb 2010 19:51:36.0812 (UTC) FILETIME=[C6283AC0:01CAB58A]
Subject: Re: [TLS] [POSSIBLE SPAM] Re: draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Wed, 24 Feb 2010 19:48:45 -0000

TWFyc2ggUmF5IHdyb3RlOg0KPiBJdCB3aWxsIG5vdCBiZSBzbyBmdW4gdG8gY29udmluY2UgcmV2
aWV3ZXJzIHRoYXQgInllcyB3ZSdyZSB1c2luZw0KPiBTSEEtMSBidXQgbm90IGluIGEgd2F5IHRo
YXQgcmVhbGx5IG1hdHRlcnMuIg0KPg0KPiBJZiBhbGwgeW91IG5lZWQgaXMgYSA2NC1iaXQgY2hl
Y2tzdW0gZm9yIGRhdGEtc3RydWN0dXJlLXN0eWxlDQo+IGhhc2hpbmcgYW5kIGluZGV4aW5nLCB1
c2UgYW55IG9sZCBvbGQtZmFzaGlvbmVkIGNoZWNrc3VtIGFsZ29yaXRobS4NCj4NCj4gVGhpcyB3
b3VsZCBiZSBzaW1wbGUgZm9yIGV2ZXJ5b25lIHRvIGltcGxlbWVudCBhbmQgaXQgY2xlYXJseQ0K
PiBjb21tdW5pY2F0ZXMgeW91ciBkZXNpZ24gaW50ZW50ICh0aGF0IHRoZSBzZWN1cml0eSBvZiB0
aGUgZGVzaWduDQo+IGRvZXMgbm90IGRlcGVuZCBvbiBhbnkgcHJvcGVydGllcyBvZiB0aGlzIHZh
bHVlJ3MgY2FsY3VsYXRpb24pLg0KDQorMSBpbiBwcmluY2lwbGUuDQoNCkJ1dCBwcmFjdGljYWxs
eSBzcGVha2luZywgZG8geW91IGhhdmUgYW55IHN1Z2dlc3Rpb25zIGZvciB3ZWxsLWtub3duIG5v
bi1jcnlwdG9ncmFwaGljIGhhc2ggYWxnb3JpdGhtcz8gIEEgcXVpY2sgSUFOQSBzZWFyY2ggdHVy
bmVkIHVwIEtlcmJlcm9zIGNoZWNrc3VtcyBodHRwOi8vd3d3LmlhbmEub3JnL2Fzc2lnbm1lbnRz
L2tlcmJlcm9zLXBhcmFtZXRlcnMva2VyYmVyb3MtcGFyYW1ldGVycy54aHRtbCwgaW5jbHVkaW5n
IENSQzMyICg0IG9jdGV0cyksIGRlcy1tYWMtayAoOCBvY3RldHMpLCBhbmQgc2V2ZXJhbCAxNiBv
Y3RldCBhbGdvcml0aG1zIGluY2x1ZGluZyBNRDQgYW5kIE1ENS4NCg0KQSBzZWFyY2ggZm9yIG90
aGVyICJoYXNoIiwgIm1hYyIsIG9yICJjaGVja3N1bSIgcmVnaXN0cmllcyB0dXJuZWQgdXAgbm90
aGluZyBuZXcuDQoNCkl0IGRvZXNuJ3QgZmVlbCBxdWl0ZSByaWdodCB0byBhZGQgYSBub24tY3J5
cHRvZ3JhcGhpYyBjaGVja3N1bSB0byB0aGUgUkZDIDUyNDYgcmVnaXN0cnk6DQoNCiAgICAgIGVu
dW0gew0KICAgICAgICAgIG5vbmUoMCksIG1kNSgxKSwgc2hhMSgyKSwgc2hhMjI0KDMpLCBzaGEy
NTYoNCksIHNoYTM4NCg1KSwNCiAgICAgICAgICBzaGE1MTIoNiksICgyNTUpDQogICAgICB9IEhh
c2hBbGdvcml0aG07DQoNCnNvIGV2ZW4gaWYgdGhlcmUgd2VyZSBzdWNoIGFuIGFsZ29yaXRobSwg
cGVybWl0dGluZyBib3RoIGl0IGFuZCBjcnlwdG9ncmFwaGljIGhhc2hlcyB3b3VsZCBiZSBwYWlu
ZnVsLg0KDQpJIGRvbid0IHNlZSBhbiBhbHRlcm5hdGl2ZSB0aGF0IHNhdGlzZmllcyBib3RoICJz
aW1wbGUgdG8gaW1wbGVtZW50IiBhbmQgImNsZWFybHkgY29tbXVuaWNhdGVzIGludGVudCIuICBN
eSBjYXJlLWFib3V0cyBhcmUgMSkgYSBjb21tb24gaW50ZXJvcGVyYWJsZSBhbGdvcml0aG0gYW5k
IDIpIGJhbmR3aWR0aC4gIENvbXB1dGF0aW9uIHNwZWVkIGlzIHVuaW1wb3J0YW50LCBzbyBpZiBl
dmVyeW9uZSB0aGlua3Mgc2hhMjU2IHdpbGwgYmUgY3J5cHRvZ3JhcGhpY2FsbHkgdmlhYmxlIGZv
ciB0aGUgZm9yZXNlZWFibGUgZnV0dXJlIGFuZCBTSEEtMSB3aWxsIHNvb24gYmUgaW1wb3NzaWJs
ZSB0byBnZXQgImFwcHJvdmVkIiwgdGhlbiBzaGEyNTYgdHJ1bmNhdGVkIHRvIDY0IGJpdHMgY291
bGQgYmUgYSByZWFzb25hYmxlIE1VU1Qtc3VwcG9ydCBhbGdvcml0aG0uDQoNCkRhdmUNCg0KDQo=

From marsh@extendedsubset.com  Wed Feb 24 13:00:49 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 241703A8594 for <tls@core3.amsl.com>; Wed, 24 Feb 2010 13:00:49 -0800 (PST)
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 1sPakI6aEFk2 for <tls@core3.amsl.com>; Wed, 24 Feb 2010 13:00:47 -0800 (PST)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id ACCD728C0FA for <tls@ietf.org>; Wed, 24 Feb 2010 13:00:47 -0800 (PST)
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 1NkONi-000EPY-Fg; Wed, 24 Feb 2010 21:02:55 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 20D636048; Wed, 24 Feb 2010 21:02:53 +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: U2FsdGVkX18k5YJUzDpS4wQv8Y5YiYSvO7feFR2VBwg=
Message-ID: <4B8593FF.7030300@extendedsubset.com>
Date: Wed, 24 Feb 2010 15:02:55 -0600
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: "Kemp, David P." <DPKemp@missi.ncsc.mil>
References: <4B8407D7.9040207@briansmith.org>	<C7AB19CF.88B9%stefan@aaa-sec.com><201002241753.o1OHrxuK015491@stingray.missi.ncsc.mil>	<4B856F19.6080809@extendedsubset.com> <201002241950.o1OJonSH025171@stingray.missi.ncsc.mil>
In-Reply-To: <201002241950.o1OJonSH025171@stingray.missi.ncsc.mil>
X-Enigmail-Version: 0.96.0
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Wed, 24 Feb 2010 21:00:49 -0000

Kemp, David P. wrote:
> Marsh Ray wrote:
>> It will not be so fun to convince reviewers that "yes we're using 
>> SHA-1 but not in a way that really matters."
>> 
>> If all you need is a 64-bit checksum for data-structure-style 
>> hashing and indexing, use any old old-fashioned checksum algorithm.
>> 
>> 
>> This would be simple for everyone to implement and it clearly 
>> communicates your design intent (that the security of the design 
>> does not depend on any properties of this value's calculation).
> 
> +1 in principle.
> 
> But practically speaking, do you have any suggestions for well-known
> non-cryptographic hash algorithms?

Hmm, starting with http://en.wikipedia.org/wiki/List_of_hash_functions

FNV seems like a good candidate.
http://en.wikipedia.org/wiki/Fowler-Noll-Vo_hash_function

Pros:
* Wide existing usage:
http://www.isthe.com/chongo/tech/comp/fnv/index.html#history

* On that page they disclaim patents on it.

* It is defined in power-of-two sizes from 32 to 1024 bits.

* Something of an endorsement:
"We experimetned with several different hash functions and found FNV has
to be the best one."
http://domino.watson.ibm.com/library/cyberdig.nsf/papers/2314E66547EF9CC5852576BE005F1E4F/$File/rc24939.pdf

Cons:

* Uses multiply. Probably not a big deal in practice.

* Not (yet) referenceable in a formal standards doc.

> A quick IANA search turned up
> Kerberos checksums
> http://www.iana.org/assignments/kerberos-parameters/kerberos-parameters.xhtml,
> including CRC32 (4 octets), des-mac-k (8 octets), and several 16
> octet algorithms including MD4 and MD5.

CRC64 doesn't seem to be so great with collisions:
http://www.cs.ucl.ac.uk/staff/d.jones/crcnote.pdf
The authors propose a better version.

You could use a pair of (some variant of) CRC32, each preloaded with
different values. This may not be any better than CRC64 though and may
not be terribly efficient.

> A search for other "hash", "mac", or "checksum" registries turned up
> nothing new.
> 
> It doesn't feel quite right to add a non-cryptographic checksum to
> the RFC 5246 registry:
> 
> enum { none(0), md5(1), sha1(2), sha224(3), sha256(4), sha384(5), 
> sha512(6), (255) } HashAlgorithm;
> 
> so even if there were such an algorithm, permitting both it and
> cryptographic hashes would be painful.

Is it really necessary for this to be a flexible parameter?

A implementation now has a choice: implement them all (including ones
that are never used in practice), or risk not not being compatible
somewhere.

> I don't see an alternative that satisfies both "simple to implement"
> and "clearly communicates intent".  My care-abouts are 1) a common
> interoperable algorithm and 2) bandwidth.  Computation speed is
> unimportant,

There's always code size to consider.

> so if everyone thinks sha256 will be cryptographically
> viable for the foreseeable future and SHA-1 will soon be impossible
> to get "approved", then sha256 truncated to 64 bits could be a
> reasonable MUST-support algorithm.

Now you'll have to explain why you're taking the output of an
industrial-strength hash function and throwing away 3/4 of it. :-) Plus,
it's wasted effort since collisions will be possible to find in any
64-bit hash function.

- Marsh

From ynir@checkpoint.com  Wed Feb 24 22:04:57 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 0C5133A864A for <tls@core3.amsl.com>; Wed, 24 Feb 2010 22:04:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.26
X-Spam-Level: 
X-Spam-Status: No, score=-3.26 tagged_above=-999 required=5 tests=[AWL=0.339,  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 YAL7uimItSaF for <tls@core3.amsl.com>; Wed, 24 Feb 2010 22:04:33 -0800 (PST)
Received: from michael.checkpoint.com (michael.checkpoint.com [194.29.32.68]) by core3.amsl.com (Postfix) with ESMTP id 13F213A863F for <tls@ietf.org>; Wed, 24 Feb 2010 22:04:18 -0800 (PST)
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 o1P66LPb013446; Thu, 25 Feb 2010 08:06:21 +0200 (IST)
X-CheckPoint: {4B861261-0-1B201DC2-2FFFF}
Received: from il-ex01.ad.checkpoint.com ([126.0.0.2]) by il-ex01.ad.checkpoint.com ([126.0.0.2]) with mapi; Thu, 25 Feb 2010 08:06:20 +0200
From: Yoav Nir <ynir@checkpoint.com>
To: Marsh Ray <marsh@extendedsubset.com>
Date: Thu, 25 Feb 2010 08:06:23 +0200
Thread-Topic: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft
Thread-Index: Acq14KaIPT7dp+jVSzy6IrLBfIVHvw==
Message-ID: <848CABEF-60CE-4CCD-A65C-EA5BB4DB4087@checkpoint.com>
References: <4B8407D7.9040207@briansmith.org> <C7AB19CF.88B9%stefan@aaa-sec.com><201002241753.o1OHrxuK015491@stingray.missi.ncsc.mil> <4B856F19.6080809@extendedsubset.com> <201002241950.o1OJonSH025171@stingray.missi.ncsc.mil> <4B8593FF.7030300@extendedsubset.com>
In-Reply-To: <4B8593FF.7030300@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] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Thu, 25 Feb 2010 06:04:57 -0000

Something like this algorithm also has the benefit of side-stepping the who=
le national algorithms issue.

While "American" crypto algorithms may be unacceptable in Russia, perhaps a=
n "American" non-crypto algorithms would be acceptable, and we won't need a=
 GOST version.

(or Camelia)

On Feb 24, 2010, at 11:02 PM, Marsh Ray wrote:

> Kemp, David P. wrote:
>> Marsh Ray wrote:
>>> It will not be so fun to convince reviewers that "yes we're using=20
>>> SHA-1 but not in a way that really matters."
>>>=20
>>> If all you need is a 64-bit checksum for data-structure-style=20
>>> hashing and indexing, use any old old-fashioned checksum algorithm.
>>>=20
>>>=20
>>> This would be simple for everyone to implement and it clearly=20
>>> communicates your design intent (that the security of the design=20
>>> does not depend on any properties of this value's calculation).
>>=20
>> +1 in principle.
>>=20
>> But practically speaking, do you have any suggestions for well-known
>> non-cryptographic hash algorithms?
>=20
> Hmm, starting with http://en.wikipedia.org/wiki/List_of_hash_functions
>=20
> FNV seems like a good candidate.
> http://en.wikipedia.org/wiki/Fowler-Noll-Vo_hash_function
>=20
> Pros:
> * Wide existing usage:
> http://www.isthe.com/chongo/tech/comp/fnv/index.html#history
>=20
> * On that page they disclaim patents on it.
>=20
> * It is defined in power-of-two sizes from 32 to 1024 bits.
>=20
> * Something of an endorsement:
> "We experimetned with several different hash functions and found FNV has
> to be the best one."
> http://domino.watson.ibm.com/library/cyberdig.nsf/papers/2314E66547EF9CC5=
852576BE005F1E4F/$File/rc24939.pdf
>=20
> Cons:
>=20
> * Uses multiply. Probably not a big deal in practice.
>=20
> * Not (yet) referenceable in a formal standards doc.
>=20
>> A quick IANA search turned up
>> Kerberos checksums
>> http://www.iana.org/assignments/kerberos-parameters/kerberos-parameters.=
xhtml,
>> including CRC32 (4 octets), des-mac-k (8 octets), and several 16
>> octet algorithms including MD4 and MD5.
>=20
> CRC64 doesn't seem to be so great with collisions:
> http://www.cs.ucl.ac.uk/staff/d.jones/crcnote.pdf
> The authors propose a better version.
>=20
> You could use a pair of (some variant of) CRC32, each preloaded with
> different values. This may not be any better than CRC64 though and may
> not be terribly efficient.
>=20
>> A search for other "hash", "mac", or "checksum" registries turned up
>> nothing new.
>>=20
>> It doesn't feel quite right to add a non-cryptographic checksum to
>> the RFC 5246 registry:
>>=20
>> enum { none(0), md5(1), sha1(2), sha224(3), sha256(4), sha384(5),=20
>> sha512(6), (255) } HashAlgorithm;
>>=20
>> so even if there were such an algorithm, permitting both it and
>> cryptographic hashes would be painful.
>=20
> Is it really necessary for this to be a flexible parameter?
>=20
> A implementation now has a choice: implement them all (including ones
> that are never used in practice), or risk not not being compatible
> somewhere.
>=20
>> I don't see an alternative that satisfies both "simple to implement"
>> and "clearly communicates intent".  My care-abouts are 1) a common
>> interoperable algorithm and 2) bandwidth.  Computation speed is
>> unimportant,
>=20
> There's always code size to consider.
>=20
>> so if everyone thinks sha256 will be cryptographically
>> viable for the foreseeable future and SHA-1 will soon be impossible
>> to get "approved", then sha256 truncated to 64 bits could be a
>> reasonable MUST-support algorithm.
>=20
> Now you'll have to explain why you're taking the output of an
> industrial-strength hash function and throwing away 3/4 of it. :-) Plus,
> it's wasted effort since collisions will be possible to find in any
> 64-bit hash function.
>=20
> - Marsh
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
>=20
> Scanned by Check Point Total Security Gateway.


From stefan@aaa-sec.com  Thu Feb 25 05:25:57 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 7636628C101 for <tls@core3.amsl.com>; Thu, 25 Feb 2010 05:25:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.171
X-Spam-Level: 
X-Spam-Status: No, score=-2.171 tagged_above=-999 required=5 tests=[AWL=0.078,  BAYES_00=-2.599, HELO_EQ_SE=0.35]
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 16dkbF1+Iv22 for <tls@core3.amsl.com>; Thu, 25 Feb 2010 05:25:56 -0800 (PST)
Received: from s87.loopia.se (s87.loopia.se [194.9.95.114]) by core3.amsl.com (Postfix) with ESMTP id C733928C0FB for <tls@ietf.org>; Thu, 25 Feb 2010 05:25:54 -0800 (PST)
Received: from s42.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 56413360FF8 for <tls@ietf.org>; Thu, 25 Feb 2010 14:27:51 +0100 (CET)
Received: (qmail 31062 invoked from network); 25 Feb 2010 13:27: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 <ynir@checkpoint.com>; 25 Feb 2010 13:27:46 -0000
User-Agent: Microsoft-Entourage/12.23.0.091001
Date: Thu, 25 Feb 2010 14:27:39 +0100
From: Stefan Santesson <stefan@aaa-sec.com>
To: Yoav Nir <ynir@checkpoint.com>, Marsh Ray <marsh@extendedsubset.com>
Message-ID: <C7AC395B.892B%stefan@aaa-sec.com>
Thread-Topic: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft
Thread-Index: Acq14KaIPT7dp+jVSzy6IrLBfIVHvwAPaZvm
In-Reply-To: <848CABEF-60CE-4CCD-A65C-EA5BB4DB4087@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] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Thu, 25 Feb 2010 13:25:57 -0000

I think this issue is blown totally out of any reasonable proportions.

This is not the first time a hash is used to provide an identifier where no
strong collision resistance is required. I don't want to break my back to
avoid using a perfectly suitable hash algorithm just for political reasons.


/Stefan


On 10-02-25 7:06 AM, "Yoav Nir" <ynir@checkpoint.com> wrote:

> Something like this algorithm also has the benefit of side-stepping the whole
> national algorithms issue.
> 
> While "American" crypto algorithms may be unacceptable in Russia, perhaps an
> "American" non-crypto algorithms would be acceptable, and we won't need a GOST
> version.
> 
> (or Camelia)
> 
> On Feb 24, 2010, at 11:02 PM, Marsh Ray wrote:
> 
>> Kemp, David P. wrote:
>>> Marsh Ray wrote:
>>>> It will not be so fun to convince reviewers that "yes we're using
>>>> SHA-1 but not in a way that really matters."
>>>> 
>>>> If all you need is a 64-bit checksum for data-structure-style
>>>> hashing and indexing, use any old old-fashioned checksum algorithm.
>>>> 
>>>> 
>>>> This would be simple for everyone to implement and it clearly
>>>> communicates your design intent (that the security of the design
>>>> does not depend on any properties of this value's calculation).
>>> 
>>> +1 in principle.
>>> 
>>> But practically speaking, do you have any suggestions for well-known
>>> non-cryptographic hash algorithms?
>> 
>> Hmm, starting with http://en.wikipedia.org/wiki/List_of_hash_functions
>> 
>> FNV seems like a good candidate.
>> http://en.wikipedia.org/wiki/Fowler-Noll-Vo_hash_function
>> 
>> Pros:
>> * Wide existing usage:
>> http://www.isthe.com/chongo/tech/comp/fnv/index.html#history
>> 
>> * On that page they disclaim patents on it.
>> 
>> * It is defined in power-of-two sizes from 32 to 1024 bits.
>> 
>> * Something of an endorsement:
>> "We experimetned with several different hash functions and found FNV has
>> to be the best one."
>> http://domino.watson.ibm.com/library/cyberdig.nsf/papers/2314E66547EF9CC58525
>> 76BE005F1E4F/$File/rc24939.pdf
>> 
>> Cons:
>> 
>> * Uses multiply. Probably not a big deal in practice.
>> 
>> * Not (yet) referenceable in a formal standards doc.
>> 
>>> A quick IANA search turned up
>>> Kerberos checksums
>>> http://www.iana.org/assignments/kerberos-parameters/kerberos-parameters.xhtm
>>> l,
>>> including CRC32 (4 octets), des-mac-k (8 octets), and several 16
>>> octet algorithms including MD4 and MD5.
>> 
>> CRC64 doesn't seem to be so great with collisions:
>> http://www.cs.ucl.ac.uk/staff/d.jones/crcnote.pdf
>> The authors propose a better version.
>> 
>> You could use a pair of (some variant of) CRC32, each preloaded with
>> different values. This may not be any better than CRC64 though and may
>> not be terribly efficient.
>> 
>>> A search for other "hash", "mac", or "checksum" registries turned up
>>> nothing new.
>>> 
>>> It doesn't feel quite right to add a non-cryptographic checksum to
>>> the RFC 5246 registry:
>>> 
>>> enum { none(0), md5(1), sha1(2), sha224(3), sha256(4), sha384(5),
>>> sha512(6), (255) } HashAlgorithm;
>>> 
>>> so even if there were such an algorithm, permitting both it and
>>> cryptographic hashes would be painful.
>> 
>> Is it really necessary for this to be a flexible parameter?
>> 
>> A implementation now has a choice: implement them all (including ones
>> that are never used in practice), or risk not not being compatible
>> somewhere.
>> 
>>> I don't see an alternative that satisfies both "simple to implement"
>>> and "clearly communicates intent".  My care-abouts are 1) a common
>>> interoperable algorithm and 2) bandwidth.  Computation speed is
>>> unimportant,
>> 
>> There's always code size to consider.
>> 
>>> so if everyone thinks sha256 will be cryptographically
>>> viable for the foreseeable future and SHA-1 will soon be impossible
>>> to get "approved", then sha256 truncated to 64 bits could be a
>>> reasonable MUST-support algorithm.
>> 
>> Now you'll have to explain why you're taking the output of an
>> industrial-strength hash function and throwing away 3/4 of it. :-) Plus,
>> it's wasted effort since collisions will be possible to find in any
>> 64-bit hash function.
>> 
>> - Marsh
>> _______________________________________________
>> TLS mailing list
>> TLS@ietf.org
>> https://www.ietf.org/mailman/listinfo/tls
>> 
>> Scanned by Check Point Total Security Gateway.
> 
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls



From simon@josefsson.org  Thu Feb 25 06:44: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 91BE73A86CB for <tls@core3.amsl.com>; Thu, 25 Feb 2010 06:44:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.715
X-Spam-Level: 
X-Spam-Status: No, score=-2.715 tagged_above=-999 required=5 tests=[AWL=-0.116, 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 vRWSXMiWExRm for <tls@core3.amsl.com>; Thu, 25 Feb 2010 06:44:33 -0800 (PST)
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39]) by core3.amsl.com (Postfix) with ESMTP id 3CC223A83C6 for <tls@ietf.org>; Thu, 25 Feb 2010 06:44:32 -0800 (PST)
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99]) (authenticated bits=0) by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o1PEkTdV001078 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Thu, 25 Feb 2010 15:46:30 +0100
From: Simon Josefsson <simon@josefsson.org>
To: Stefan Santesson <stefan@aaa-sec.com>
References: <848CABEF-60CE-4CCD-A65C-EA5BB4DB4087@checkpoint.com> <C7AC395B.892B%stefan@aaa-sec.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100225:ynir@checkpoint.com::7UMG7LpmJYo0FlWo:2JIG
X-Hashcash: 1:22:100225:dpkemp@missi.ncsc.mil::F8XjAsiPMiEdrLSR:6CGr
X-Hashcash: 1:22:100225:tls@ietf.org::+JO1GlW5XHDE1PWG:Cm2s
X-Hashcash: 1:22:100225:stefan@aaa-sec.com::Y/7bezWRq+wo5//w:NbTk
X-Hashcash: 1:22:100225:marsh@extendedsubset.com::ZK+zwn4Mgz/tog/I:POtT
Date: Thu, 25 Feb 2010 15:46:28 +0100
In-Reply-To: <C7AC395B.892B%stefan@aaa-sec.com> (Stefan Santesson's message of "Thu, 25 Feb 2010 14:27:39 +0100")
Message-ID: <87tyt5cr0b.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
Cc: "Kemp, David P." <DPKemp@missi.ncsc.mil>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Thu, 25 Feb 2010 14:44:34 -0000

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

> I think this issue is blown totally out of any reasonable proportions.
>
> This is not the first time a hash is used to provide an identifier where no
> strong collision resistance is required. I don't want to break my back to
> avoid using a perfectly suitable hash algorithm just for political reasons.

I agree that the political reasons shouldn't be a serious concern here.

There is still the technical concern that at some point in the future
SHA-1 may no longer be easily available in libraries and we want to
transition to some other algorithm.  Algorithm agility is useful even
for non-crypto algorithms.

Here is a proposal: Say SHA-1 is a MUST when TLS < 1.2 is negotiated but
later TLS versions MUST use the same hash as the one used by the PRF?

Btw, is the intention that cached info can be used with TLS versions <
1.2?  If it is only for TLS >= 1.2, then SHA-256 seems to make more
sense than SHA-1 because TLS 1.2 uses SHA-256.

/Simon

From brian@briansmith.org  Thu Feb 25 08:54:07 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 763B528C37B for <tls@core3.amsl.com>; Thu, 25 Feb 2010 08:54:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.288
X-Spam-Level: 
X-Spam-Status: No, score=-2.288 tagged_above=-999 required=5 tests=[AWL=0.311,  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 f9eC67RMGFlt for <tls@core3.amsl.com>; Thu, 25 Feb 2010 08:54:06 -0800 (PST)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 6D0E628C3D9 for <tls@ietf.org>; Thu, 25 Feb 2010 08:54:06 -0800 (PST)
Received: from [192.168.1.65] (unknown [70.252.11.143]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id E125B509E1; Thu, 25 Feb 2010 11:56:08 -0500 (EST)
Message-ID: <4B86ABA7.50201@briansmith.org>
Date: Thu, 25 Feb 2010 10:56:07 -0600
From: Brian Smith <brian@briansmith.org>
User-Agent: Postbox 1.1.1 (Windows/20100208)
MIME-Version: 1.0
To: Simon Josefsson <simon@josefsson.org>
References: <848CABEF-60CE-4CCD-A65C-EA5BB4DB4087@checkpoint.com>	<C7AC395B.892B%stefan@aaa-sec.com> <87tyt5cr0b.fsf@mocca.josefsson.org>
In-Reply-To: <87tyt5cr0b.fsf@mocca.josefsson.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Thu, 25 Feb 2010 16:54:07 -0000

Simon Josefsson wrote:
>
> Here is a proposal: Say SHA-1 is a MUST when TLS<  1.2 is negotiated but
> later TLS versions MUST use the same hash as the one used by the PRF?
>
>    
This is what I was originally going to suggest. The problem is that the 
client doesn't necessarily know which PRF will be used until it receives 
the ServerHello because the server could be TLS 1.0/1.1-only, because 
the PRF depends on the ciphersuite chosen by the server, and because the 
PRF for the chosen ciphersuite might not be based on a HMAC.

My first suggestion, a long time ago, was to just use the fingerprint of 
the end certificate as the key for certificate caching. This is 
something that both sides already have to calculate anyway. In fact, 
many implementations are already using the certificate fingerprint as a 
cache key for internal purposes. Then, have the client and server use 
the Client Certificate URL extension if they want to optimize the client 
certificate part, which potentially saves many many more bytes than the 
caching CertificateRequest.certificate_authorities would. Just give up 
defining a generic mechanism; the level of generality and complexity in 
the current draft is really unwarranted.

My second suggestion is to have the server calculate the hash, and give 
the calculated hash to the client along with the content. Then the 
client and the server don't have to agree on any algorithms at all, and 
the server can choose whatever algorithm it wants. If you leave the hash 
identifier in there then the client could potentially double-check the 
server's calculation--something which I think is wasteful, but I think 
it is wasteful to require both sides to calculate the hashes too, 
especially given the extra client-side complexity that it causes.

Regards,
Brian

From stefan@aaa-sec.com  Thu Feb 25 08:55:59 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 C769928C365 for <tls@core3.amsl.com>; Thu, 25 Feb 2010 08:55:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.176
X-Spam-Level: 
X-Spam-Status: No, score=-2.176 tagged_above=-999 required=5 tests=[AWL=0.073,  BAYES_00=-2.599, HELO_EQ_SE=0.35]
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 az4Pbl-3G9fX for <tls@core3.amsl.com>; Thu, 25 Feb 2010 08:55:59 -0800 (PST)
Received: from s87.loopia.se (s87.loopia.se [194.9.95.114]) by core3.amsl.com (Postfix) with ESMTP id BE2E028C12E for <tls@ietf.org>; Thu, 25 Feb 2010 08:55:58 -0800 (PST)
Received: from s29.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 585133746FF for <tls@ietf.org>; Thu, 25 Feb 2010 17:47:48 +0100 (CET)
Received: (qmail 86440 invoked from network); 25 Feb 2010 16:47: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 s29.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <simon@josefsson.org>; 25 Feb 2010 16:47:42 -0000
User-Agent: Microsoft-Entourage/12.23.0.091001
Date: Thu, 25 Feb 2010 17:47:40 +0100
From: Stefan Santesson <stefan@aaa-sec.com>
To: Simon Josefsson <simon@josefsson.org>
Message-ID: <C7AC683C.8960%stefan@aaa-sec.com>
Thread-Topic: draft-ietf-tls-cached-info-02 / New "Fast-Track" draft
Thread-Index: Acq2Oj4equyxXkDr0EezzQKQaBeEww==
In-Reply-To: <87tyt5cr0b.fsf@mocca.josefsson.org>
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] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Thu, 25 Feb 2010 16:55:59 -0000

Simon,

Note that the requirement is MUST support, it is not MUST use.
It is perfectly allowed to use SHA-256.

Does that solve your concern?

On 10-02-25 3:46 PM, "Simon Josefsson" <simon@josefsson.org> wrote:

> Stefan Santesson <stefan@aaa-sec.com> writes:
> 
>> I think this issue is blown totally out of any reasonable proportions.
>> 
>> This is not the first time a hash is used to provide an identifier where no
>> strong collision resistance is required. I don't want to break my back to
>> avoid using a perfectly suitable hash algorithm just for political reasons.
> 
> I agree that the political reasons shouldn't be a serious concern here.
> 
> There is still the technical concern that at some point in the future
> SHA-1 may no longer be easily available in libraries and we want to
> transition to some other algorithm.  Algorithm agility is useful even
> for non-crypto algorithms.
> 
> Here is a proposal: Say SHA-1 is a MUST when TLS < 1.2 is negotiated but
> later TLS versions MUST use the same hash as the one used by the PRF?
> 
> Btw, is the intention that cached info can be used with TLS versions <
> 1.2?  If it is only for TLS >= 1.2, then SHA-256 seems to make more
> sense than SHA-1 because TLS 1.2 uses SHA-256.
> 
> /Simon



From brian@briansmith.org  Thu Feb 25 09:07:25 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 5B37B3A84F3 for <tls@core3.amsl.com>; Thu, 25 Feb 2010 09:07:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.392
X-Spam-Level: 
X-Spam-Status: No, score=-2.392 tagged_above=-999 required=5 tests=[AWL=0.207,  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 1kfSJzvZxdSC for <tls@core3.amsl.com>; Thu, 25 Feb 2010 09:07:24 -0800 (PST)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 7FF513A847F for <tls@ietf.org>; Thu, 25 Feb 2010 09:07:24 -0800 (PST)
Received: from [192.168.1.65] (unknown [70.252.11.143]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id EB3DD509DB; Thu, 25 Feb 2010 12:09:34 -0500 (EST)
Message-ID: <4B86AECF.2000207@briansmith.org>
Date: Thu, 25 Feb 2010 11:09:35 -0600
From: Brian Smith <brian@briansmith.org>
User-Agent: Postbox 1.1.1 (Windows/20100208)
MIME-Version: 1.0
To: Stefan Santesson <stefan@aaa-sec.com>
References: <C7AC683C.8960%stefan@aaa-sec.com>
In-Reply-To: <C7AC683C.8960%stefan@aaa-sec.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Thu, 25 Feb 2010 17:07:25 -0000

Stefan Santesson wrote:
> Simon,
>
> Note that the requirement is MUST support, it is not MUST use.
> It is perfectly allowed to use SHA-256.
>
> Does that solve your concern?
This doesn't make sense. If the server doesn't implement SHA-1, then a 
client that only sends SHA-1 to it won't be able to use the extension 
effectively. If the client cannot rely on SHA-1 working then what is the 
value of the "MUST" requirement? Similarly, if the client doesn't 
implement SHA-1, but the server only supports SHA-1, then they won't be 
able to take advantage of the optimization.

- Brian


From mrex@sap.com  Thu Feb 25 12:09:35 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 4524628C272 for <tls@core3.amsl.com>; Thu, 25 Feb 2010 12:09:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.224
X-Spam-Level: 
X-Spam-Status: No, score=-10.224 tagged_above=-999 required=5 tests=[AWL=0.025, 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 hd0jV2sz2xdR for <tls@core3.amsl.com>; Thu, 25 Feb 2010 12:09:34 -0800 (PST)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.171]) by core3.amsl.com (Postfix) with ESMTP id 9E06128C1EC for <tls@ietf.org>; Thu, 25 Feb 2010 12:09:32 -0800 (PST)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o1PKBeGD015439 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 25 Feb 2010 21:11:40 +0100 (MET)
From: Martin Rex <mrex@sap.com>
Message-Id: <201002252011.o1PKBdRJ015456@fs4113.wdf.sap.corp>
To: marsh@extendedsubset.com (Marsh Ray)
Date: Thu, 25 Feb 2010 21:11:39 +0100 (MET)
In-Reply-To: <4B8593FF.7030300@extendedsubset.com> from "Marsh Ray" at Feb 24, 10 03:02:55 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: DPKemp@missi.ncsc.mil, tls@ietf.org
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft
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, 25 Feb 2010 20:09:35 -0000

Marsh Ray wrote:
> 
> > so if everyone thinks sha256 will be cryptographically
> > viable for the foreseeable future and SHA-1 will soon be impossible
> > to get "approved", then sha256 truncated to 64 bits could be a
> > reasonable MUST-support algorithm.
> 
> Now you'll have to explain why you're taking the output of an
> industrial-strength hash function and throwing away 3/4 of it. :-) Plus,
> it's wasted effort since collisions will be possible to find in any
> 64-bit hash function.


The original purpose of this extension/proposal is to save network
bandwith on repeated _full_ TLS handshakes between peers and
where TLS session caching is not available for whatever reason.

In order to make clear that collision resistance of SHA-1 is
perfectly sufficient, I think the hash value should be
unconditionally truncated to, say, 128-bit (16 octets),
independent of which hash algorithm is used.  This would
also answer any question about whether SHA-1 is sufficient. It is.

Btw. the certificate fingerprinting and public key fingerprinting
algorithms currently also still use SHA-1 (e.g. rfc-5280 4.2.1.2).


I firmly believe that "MUST support SHA-1" is perfectly fine for
this proposal and more than just "good enough" to ship it, provided
that both peers can reliably determine (negotiate) through the
Hello extension whether they support or prefer a newer/different
common hash algorithm before the client starts populating his cache.


-Martin

From stefan@aaa-sec.com  Thu Feb 25 12:36:07 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 CE15E3A8727 for <tls@core3.amsl.com>; Thu, 25 Feb 2010 12:36:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.179
X-Spam-Level: 
X-Spam-Status: No, score=-2.179 tagged_above=-999 required=5 tests=[AWL=0.070,  BAYES_00=-2.599, HELO_EQ_SE=0.35]
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 cVUhWuESyPA7 for <tls@core3.amsl.com>; Thu, 25 Feb 2010 12:36:07 -0800 (PST)
Received: from s87.loopia.se (s87.loopia.se [194.9.95.114]) by core3.amsl.com (Postfix) with ESMTP id EAE703A8726 for <tls@ietf.org>; Thu, 25 Feb 2010 12:36:06 -0800 (PST)
Received: from s24.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 8ABA0364E85 for <tls@ietf.org>; Thu, 25 Feb 2010 20:29:34 +0100 (CET)
Received: (qmail 62959 invoked from network); 25 Feb 2010 19:29:27 -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 <brian@briansmith.org>; 25 Feb 2010 19:29:27 -0000
User-Agent: Microsoft-Entourage/12.23.0.091001
Date: Thu, 25 Feb 2010 20:29:25 +0100
From: Stefan Santesson <stefan@aaa-sec.com>
To: Brian Smith <brian@briansmith.org>
Message-ID: <C7AC8E25.8986%stefan@aaa-sec.com>
Thread-Topic: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft
Thread-Index: Acq2UNa/IkUC1/Tix0y8RgbMSwyMLA==
In-Reply-To: <4B86AECF.2000207@briansmith.org>
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] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Thu, 25 Feb 2010 20:36:07 -0000

Brian,

On 10-02-25 6:09 PM, "Brian Smith" <brian@briansmith.org> wrote:

> Stefan Santesson wrote:
>> Simon,
>> 
>> Note that the requirement is MUST support, it is not MUST use.
>> It is perfectly allowed to use SHA-256.
>> 
>> Does that solve your concern?
> This doesn't make sense. If the server doesn't implement SHA-1, then a
> client that only sends SHA-1 to it won't be able to use the extension
> effectively. If the client cannot rely on SHA-1 working then what is the
> value of the "MUST" requirement?

MUST support means that the client can rely on that SHA-1 is working.

> Similarly, if the client doesn't
> implement SHA-1, but the server only supports SHA-1, then they won't be
> able to take advantage of the optimization.
> 

It just means that the server won't accept caching this time around. It's
not like the end of the world. The client can try multiple hashes next time
to figure out what the server really accepts.

/Stefan




From simon@josefsson.org  Fri Feb 26 01:22:18 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 4062A3A8664 for <tls@core3.amsl.com>; Fri, 26 Feb 2010 01:22:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.708
X-Spam-Level: 
X-Spam-Status: No, score=-2.708 tagged_above=-999 required=5 tests=[AWL=-0.109, 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 d-YaHPqFPGEG for <tls@core3.amsl.com>; Fri, 26 Feb 2010 01:22:17 -0800 (PST)
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39]) by core3.amsl.com (Postfix) with ESMTP id B65FF28C0F3 for <tls@ietf.org>; Fri, 26 Feb 2010 01:22:16 -0800 (PST)
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99]) (authenticated bits=0) by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o1Q9MUNA021702 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 26 Feb 2010 10:22:35 +0100
From: Simon Josefsson <simon@josefsson.org>
To: Stefan Santesson <stefan@aaa-sec.com>
References: <87tyt5cr0b.fsf@mocca.josefsson.org> <C7AC683C.8960%stefan@aaa-sec.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100226:stefan@aaa-sec.com::El/fOoiY2btXbQIo:1GhG
X-Hashcash: 1:22:100226:tls@ietf.org::3gLLrmvtSwgL2D2H:YoJh
X-Hashcash: 1:22:100226:dpkemp@missi.ncsc.mil::G9fz61qyQnpPjIEZ:JQpU
Date: Fri, 26 Feb 2010 10:22:29 +0100
In-Reply-To: <C7AC683C.8960%stefan@aaa-sec.com> (Stefan Santesson's message of "Thu, 25 Feb 2010 17:47:40 +0100")
Message-ID: <87bpfcbbca.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
Cc: "Kemp, David P." <DPKemp@missi.ncsc.mil>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Fri, 26 Feb 2010 09:22:18 -0000

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

> Simon,
>
> Note that the requirement is MUST support, it is not MUST use.
> It is perfectly allowed to use SHA-256.
>
> Does that solve your concern?

My concern is to get algorithm agility working here, and that involves
some form of negotiation.  Either explicitly in the protocol or
implicitly through normative statements in the document.

Saying 'you MUST support SHA-1 and MAY use SHA-256' without explaining
how the choice is negotiated would not solve my concern -- if that
wording is the only alternative to hard-coding SHA-1, I would actually
prefer the latter.

/Simon

From simon@josefsson.org  Fri Feb 26 01:36:11 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 4FF5F3A86B3 for <tls@core3.amsl.com>; Fri, 26 Feb 2010 01:36:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.702
X-Spam-Level: 
X-Spam-Status: No, score=-2.702 tagged_above=-999 required=5 tests=[AWL=-0.103, 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 YJwZXD5fzFwH for <tls@core3.amsl.com>; Fri, 26 Feb 2010 01:36:10 -0800 (PST)
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39]) by core3.amsl.com (Postfix) with ESMTP id 1A1E93A8682 for <tls@ietf.org>; Fri, 26 Feb 2010 01:36:09 -0800 (PST)
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99]) (authenticated bits=0) by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o1Q9cFLv022110 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 26 Feb 2010 10:38:17 +0100
From: Simon Josefsson <simon@josefsson.org>
To: Brian Smith <brian@briansmith.org>
References: <848CABEF-60CE-4CCD-A65C-EA5BB4DB4087@checkpoint.com> <C7AC395B.892B%stefan@aaa-sec.com> <87tyt5cr0b.fsf@mocca.josefsson.org> <4B86ABA7.50201@briansmith.org>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100226:brian@briansmith.org::7kIp7CwzRWC90vjS:0AB/
X-Hashcash: 1:22:100226:tls@ietf.org::FIhAAXVhbNt+7qXV:H+rX
Date: Fri, 26 Feb 2010 10:38:16 +0100
In-Reply-To: <4B86ABA7.50201@briansmith.org> (Brian Smith's message of "Thu, 25 Feb 2010 10:56:07 -0600")
Message-ID: <877hq0balz.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
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Fri, 26 Feb 2010 09:36:11 -0000

Brian Smith <brian@briansmith.org> writes:

> Simon Josefsson wrote:
>>
>> Here is a proposal: Say SHA-1 is a MUST when TLS<  1.2 is negotiated but
>> later TLS versions MUST use the same hash as the one used by the PRF?
>>
>>    
> This is what I was originally going to suggest. The problem is that
> the client doesn't necessarily know which PRF will be used until it
> receives the ServerHello because the server could be TLS 1.0/1.1-only,
> because the PRF depends on the ciphersuite chosen by the server, and
> because the PRF for the chosen ciphersuite might not be based on a
> HMAC.

Ouch.  Maybe we could do it on the TLS protocol version advertised by
the client then?  We'd get agility, but slower transition since older
versions are still advertised.  Thus, clients still advertising at
minimum TLS v1.0 or v1.1 would MUST support/use SHA-1, clients at
minimum advertising TLS v1.2 would MUST support/use SHA-256.  I'm not
sure what to do say about future versions though.  Can we say "use the
default PRF algorithm"?

> My first suggestion, a long time ago, was to just use the fingerprint
> of the end certificate as the key for certificate caching. This is
> something that both sides already have to calculate anyway. In fact,
> many implementations are already using the certificate fingerprint as
> a cache key for internal purposes. Then, have the client and server
> use the Client Certificate URL extension if they want to optimize the
> client certificate part, which potentially saves many many more bytes
> than the caching CertificateRequest.certificate_authorities
> would. Just give up defining a generic mechanism; the level of
> generality and complexity in the current draft is really unwarranted.

I don't think the X.509 certificate is a good idea here -- TLS can be
used without X.509 certificates.

> My second suggestion is to have the server calculate the hash, and
> give the calculated hash to the client along with the content. Then
> the client and the server don't have to agree on any algorithms at
> all, and the server can choose whatever algorithm it wants.

I like this approach.  The server gets to chose the hash, and the client
will have to comply.  It is easy to implement, and it is possible to
transition to other checksum algorithms over time.

One improvement may be for the client to send a list of hashes it
supports, though, and the server picking the best subset of it, as long
as it is compatible with what it supports?

/Simon

From stefan@aaa-sec.com  Fri Feb 26 04:04: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 29D133A877B for <tls@core3.amsl.com>; Fri, 26 Feb 2010 04:04:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.939
X-Spam-Level: 
X-Spam-Status: No, score=-1.939 tagged_above=-999 required=5 tests=[AWL=0.310,  BAYES_00=-2.599, HELO_EQ_SE=0.35]
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 Go4ReAr9w52o for <tls@core3.amsl.com>; Fri, 26 Feb 2010 04:04:04 -0800 (PST)
Received: from s87.loopia.se (s87.loopia.se [194.9.95.114]) by core3.amsl.com (Postfix) with ESMTP id 415ED3A86C3 for <tls@ietf.org>; Fri, 26 Feb 2010 04:04:03 -0800 (PST)
Received: from s128.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id AAFEA35F924 for <tls@ietf.org>; Fri, 26 Feb 2010 13:06:02 +0100 (CET)
Received: (qmail 56629 invoked from network); 26 Feb 2010 12:05:58 -0000
Received: from unknown (HELO [192.168.1.2]) (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 <simon@josefsson.org>; 26 Feb 2010 12:05:58 -0000
User-Agent: Microsoft-Entourage/12.23.0.091001
Date: Fri, 26 Feb 2010 13:05:57 +0100
From: Stefan Santesson <stefan@aaa-sec.com>
To: Simon Josefsson <simon@josefsson.org>
Message-ID: <C7AD77B5.89CC%stefan@aaa-sec.com>
Thread-Topic: draft-ietf-tls-cached-info-02 / New "Fast-Track" draft
Thread-Index: Acq23A2OBqBkcR6/S0W+TVZafeTOSA==
In-Reply-To: <87bpfcbbca.fsf@mocca.josefsson.org>
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] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Fri, 26 Feb 2010 12:04:05 -0000

Simon,

I have to admit that it bothers me that this to me is so much a non problem
and that you and others insist that it is a problem.

IETF have tons of RFCs where the implementer can choose an arbitrary format
or type of value (like cipher suite, signature algorithm, etc). It is
perfectly understood that not everyone will implement every possible format
or value type, so RFCs often list one or a few formats or types that
implementers must support. If you want to be sure to interoperate, then
choose one of the mandatory to support options.

If you have a reason to use another value, then use that.

The negotiation mechanism is classic. The client provides a number of
alternative variants it can produce and the server chooses the one it
prefers. The client is free to remember this. This is already possible
through the current draft.


I can agree that it would be wise to include (as suggested by Martin) a way
for the server to indicate already in server hello which of the hash types
offered by the client that server prefers. I don't think it is necessary,
but if it can be done without too much problems, I will not object.

/Stefan



On 10-02-26 10:22 AM, "Simon Josefsson" <simon@josefsson.org> wrote:

> Stefan Santesson <stefan@aaa-sec.com> writes:
> 
>> Simon,
>> 
>> Note that the requirement is MUST support, it is not MUST use.
>> It is perfectly allowed to use SHA-256.
>> 
>> Does that solve your concern?
> 
> My concern is to get algorithm agility working here, and that involves
> some form of negotiation.  Either explicitly in the protocol or
> implicitly through normative statements in the document.
> 
> Saying 'you MUST support SHA-1 and MAY use SHA-256' without explaining
> how the choice is negotiated would not solve my concern -- if that
> wording is the only alternative to hard-coding SHA-1, I would actually
> prefer the latter.
> 
> /Simon



From stefan@aaa-sec.com  Fri Feb 26 04:09: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 1FF633A878C for <tls@core3.amsl.com>; Fri, 26 Feb 2010 04:09:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.965
X-Spam-Level: 
X-Spam-Status: No, score=-1.965 tagged_above=-999 required=5 tests=[AWL=0.285,  BAYES_00=-2.599, HELO_EQ_SE=0.35]
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 Hy2KkFMbuFsi for <tls@core3.amsl.com>; Fri, 26 Feb 2010 04:09:01 -0800 (PST)
Received: from s87.loopia.se (s87.loopia.se [194.9.95.114]) by core3.amsl.com (Postfix) with ESMTP id 56D9E3A878B for <tls@ietf.org>; Fri, 26 Feb 2010 04:09:01 -0800 (PST)
Received: from s128.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 8D68D347DF5 for <tls@ietf.org>; Fri, 26 Feb 2010 13:11:19 +0100 (CET)
Received: (qmail 87018 invoked from network); 26 Feb 2010 12:11:15 -0000
Received: from unknown (HELO [192.168.1.2]) (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 <simon@josefsson.org>; 26 Feb 2010 12:11:15 -0000
User-Agent: Microsoft-Entourage/12.23.0.091001
Date: Fri, 26 Feb 2010 13:11:13 +0100
From: Stefan Santesson <stefan@aaa-sec.com>
To: Simon Josefsson <simon@josefsson.org>, Brian Smith <brian@briansmith.org>
Message-ID: <C7AD78F1.89D1%stefan@aaa-sec.com>
Thread-Topic: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft
Thread-Index: Acq23Mnomt5WrrPJ+0WEPjfWEFUKbg==
In-Reply-To: <877hq0balz.fsf@mocca.josefsson.org>
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] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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: Fri, 26 Feb 2010 12:09:02 -0000

Simon and Brian,

On 10-02-26 10:38 AM, "Simon Josefsson" <simon@josefsson.org> wrote:

>> My second suggestion is to have the server calculate the hash, and
>> give the calculated hash to the client along with the content. Then
>> the client and the server don't have to agree on any algorithms at
>> all, and the server can choose whatever algorithm it wants.
> 
> I like this approach.  The server gets to chose the hash, and the client
> will have to comply.  It is easy to implement, and it is possible to
> transition to other checksum algorithms over time.


I'm sorry, but this seems like a really bad idea.

The idea of this draft is that a client should be able to cash information
form a perfectly normal handshake (one where the server does not provide a
hash that may represent what it sends).

/Stefan




From hjs@bblfish.net  Sun Feb 28 06:59:00 2010
Return-Path: <hjs@bblfish.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 2564C3A8980 for <tls@core3.amsl.com>; Sun, 28 Feb 2010 06:59:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.53
X-Spam-Level: 
X-Spam-Status: No, score=0.53 tagged_above=-999 required=5 tests=[AWL=-0.071,  BAYES_50=0.001, J_CHICKENPOX_43=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 DUys+AIJz9p9 for <tls@core3.amsl.com>; Sun, 28 Feb 2010 06:58:59 -0800 (PST)
Received: from bblfish.net (rust.entic.net [199.89.53.222]) by core3.amsl.com (Postfix) with ESMTP id 31D573A897F for <tls@ietf.org>; Sun, 28 Feb 2010 06:58:59 -0800 (PST)
Received: from alagny-551-1-59-244.w86-218.abo.wanadoo.fr ([86.218.2.244] helo=bblfish.home) by bblfish.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from <hjs@bblfish.net>) id 1Nlkbi-00003Y-Uz for tls@ietf.org; Sun, 28 Feb 2010 06:58:59 -0800
From: Story Henry <henry.story@bblfish.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Date: Sun, 28 Feb 2010 15:58:51 +0100
Message-Id: <F0763843-BDC8-4E32-A3AE-2AE19BFC012F@bblfish.net>
To: tls@ietf.org
Mime-Version: 1.0 (Apple Message framework v1077)
X-Mailer: Apple Mail (2.1077)
Sender: hjs@bblfish.net
Subject: [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: Sun, 28 Feb 2010 14:59:00 -0000

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.=20

The article "Public-Key Cryptography and Password Protocols"
http://www.cparity.com/projects/AcmClassification/samples/322514.pdf=20
shows how to do the inverse.

 The idea is to make it possible to authenticate into any web site using =
this one time password. The public key would be tied to a WebId/OpenId, =
following something like the following steps:

1. A server should be able to know for any webId/openid the public key =
of that id

2. the user will have=20
 - the private key
 - using its private key (and perhaps a time stamp, or a nonce from the =
server, ... ) the user's software would calculate a one time password =
which the user could then send with its WebId/OpenId to the server

3. the server which gets the openid/webid find the public key securely =
and use
 that to verify the one time password (somehow)

This would allow us to make it easy to create RESTful authentication for =
devices with broken (Safari on desktop and iphone) or non existent =
client side certificates (Android, and most other phones).

For devices with working client side certificates we have foaf+ssl that =
works reasonably well currently - though we would love the browser =
vendors to implement user interface improvements. =
http://esw.w3.org/topic/foaf+ssl


  What we are looking may be impossible. But we can't tell before =
looking :-)
Also if you know of lists that are open source/open standard spirited =
that you think I should send this question to, please let me know.

	Henry

[1] http://en.wikipedia.org/wiki/One_time_password
   http://code.google.com/p/mod-authn-otp/wiki/OneTimePasswords

Social Web Architect
http://bblfish.net/


From benl@google.com  Sun Feb 28 07:09:23 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 1B9CE3A8981 for <tls@core3.amsl.com>; Sun, 28 Feb 2010 07:09:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.776
X-Spam-Level: 
X-Spam-Status: No, score=-102.776 tagged_above=-999 required=5 tests=[BAYES_50=0.001, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, J_CHICKENPOX_43=0.6, 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 E3UzLN4-m31M for <tls@core3.amsl.com>; Sun, 28 Feb 2010 07:09:21 -0800 (PST)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id ACE343A8980 for <tls@ietf.org>; Sun, 28 Feb 2010 07:09:21 -0800 (PST)
Received: from wpaz17.hot.corp.google.com (wpaz17.hot.corp.google.com [172.24.198.81]) by smtp-out.google.com with ESMTP id o1SF9LoA011624 for <tls@ietf.org>; Sun, 28 Feb 2010 07:09:21 -0800
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1267369761; bh=+/a4pd+C9E6OLdxTgbg3GQ9wUIM=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=MALkOZ7KK7S9x0eZuvpE+V8V0lIRHIIHAmV7clqu3D6U4mdRisYoo3BD/xmYMeLJ1 2TMHvhPggg54jXOvQNgaA==
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=YsbFoLwbshc+9sNJJwvUo72M1nMRkNSHfkAkJOXTzZH0BoNLlaZF+YKdUDNNRuyiA Re8kPKoF54AHR9RL06FeQ==
Received: from fxm9 (fxm9.prod.google.com [10.184.13.9]) by wpaz17.hot.corp.google.com with ESMTP id o1SF9JZW003944 for <tls@ietf.org>; Sun, 28 Feb 2010 07:09:20 -0800
Received: by fxm9 with SMTP id 9so1574557fxm.4 for <tls@ietf.org>; Sun, 28 Feb 2010 07:09:19 -0800 (PST)
MIME-Version: 1.0
Received: by 10.239.184.6 with SMTP id w6mr325352hbg.4.1267369757537; Sun, 28  Feb 2010 07:09:17 -0800 (PST)
In-Reply-To: <F0763843-BDC8-4E32-A3AE-2AE19BFC012F@bblfish.net>
References: <F0763843-BDC8-4E32-A3AE-2AE19BFC012F@bblfish.net>
Date: Sun, 28 Feb 2010 15:09:17 +0000
Message-ID: <1b587cab1002280709v68fafk1d34faf9029e3eb9@mail.gmail.com>
From: Ben Laurie <benl@google.com>
To: Story Henry <henry.story@bblfish.net>
Content-Type: multipart/alternative; boundary=001485f07b5432767b0480aa8456
X-System-Of-Record: true
Cc: tls@ietf.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: Sun, 28 Feb 2010 15:09:23 -0000

--001485f07b5432767b0480aa8456
Content-Type: text/plain; charset=ISO-8859-1

On 28 February 2010 14:58, Story Henry <henry.story@bblfish.net> wrote:

> 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.
>
> The article "Public-Key Cryptography and Password Protocols"
> http://www.cparity.com/projects/AcmClassification/samples/322514.pdf
> shows how to do the inverse.
>
>  The idea is to make it possible to authenticate into any web site using
> this one time password. The public key would be tied to a WebId/OpenId,
> following something like the following steps:
>
> 1. A server should be able to know for any webId/openid the public key of
> that id
>
> 2. the user will have
>  - the private key
>  - using its private key (and perhaps a time stamp, or a nonce from the
> server, ... ) the user's software would calculate a one time password which
> the user could then send with its WebId/OpenId to the server
>
> 3. the server which gets the openid/webid find the public key securely and
> use
>  that to verify the one time password (somehow)
>
> This would allow us to make it easy to create RESTful authentication for
> devices with broken (Safari on desktop and iphone) or non existent client
> side certificates (Android, and most other phones).
>
> For devices with working client side certificates we have foaf+ssl that
> works reasonably well currently - though we would love the browser vendors
> to implement user interface improvements. http://esw.w3.org/topic/foaf+ssl
>
>
>  What we are looking may be impossible. But we can't tell before looking
> :-)
> Also if you know of lists that are open source/open standard spirited that
> you think I should send this question to, please let me know.
>

One way of doing what you want is a Schnorr signature. One nice property of
a Schnorr signature is that the private key can easily be derived from a
password, or could just be a random blob. I'm doing some work in this area,
so feel free to contact me offlist if you're interested.


>
>        Henry
>
> [1] http://en.wikipedia.org/wiki/One_time_password
>   http://code.google.com/p/mod-authn-otp/wiki/OneTimePasswords
>
> Social Web Architect
> http://bblfish.net/
>
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
>

--001485f07b5432767b0480aa8456
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote">On 28 February 2010 14:58, Story Henry <=
span dir=3D"ltr">&lt;<a href=3D"mailto:henry.story@bblfish.net">henry.story=
@bblfish.net</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" sty=
le=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
<br>
 =A0I 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.<br>
<br>
The article &quot;Public-Key Cryptography and Password Protocols&quot;<br>
<a href=3D"http://www.cparity.com/projects/AcmClassification/samples/322514=
.pdf" target=3D"_blank">http://www.cparity.com/projects/AcmClassification/s=
amples/322514.pdf</a><br>
shows how to do the inverse.<br>
<br>
=A0The idea is to make it possible to authenticate into any web site using =
this one time password. The public key would be tied to a WebId/OpenId, fol=
lowing something like the following steps:<br>
<br>
1. A server should be able to know for any webId/openid the public key of t=
hat id<br>
<br>
2. the user will have<br>
=A0- the private key<br>
=A0- using its private key (and perhaps a time stamp, or a nonce from the s=
erver, ... ) the user&#39;s software would calculate a one time password wh=
ich the user could then send with its WebId/OpenId to the server<br>
<br>
3. the server which gets the openid/webid find the public key securely and =
use<br>
=A0that to verify the one time password (somehow)<br>
<br>
This would allow us to make it easy to create RESTful authentication for de=
vices with broken (Safari on desktop and iphone) or non existent client sid=
e certificates (Android, and most other phones).<br>
<br>
For devices with working client side certificates we have foaf+ssl that wor=
ks reasonably well currently - though we would love the browser vendors to =
implement user interface improvements. <a href=3D"http://esw.w3.org/topic/f=
oaf+ssl" target=3D"_blank">http://esw.w3.org/topic/foaf+ssl</a><br>

<br>
<br>
 =A0What we are looking may be impossible. But we can&#39;t tell before loo=
king :-)<br>
Also if you know of lists that are open source/open standard spirited that =
you think I should send this question to, please let me know.<br></blockquo=
te><div><br></div><div>One way of doing what you want is a Schnorr signatur=
e. One nice property of a Schnorr signature is that the private key can eas=
ily be derived from a password, or could just be a random blob. I&#39;m doi=
ng some work in this area, so feel free to contact me offlist if you&#39;re=
 interested.</div>
<div>=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;=
border-left:1px #ccc solid;padding-left:1ex;">
<br>
 =A0 =A0 =A0 =A0Henry<br>
<br>
[1] <a href=3D"http://en.wikipedia.org/wiki/One_time_password" target=3D"_b=
lank">http://en.wikipedia.org/wiki/One_time_password</a><br>
 =A0 <a href=3D"http://code.google.com/p/mod-authn-otp/wiki/OneTimePassword=
s" target=3D"_blank">http://code.google.com/p/mod-authn-otp/wiki/OneTimePas=
swords</a><br>
<br>
Social Web Architect<br>
<a href=3D"http://bblfish.net/" target=3D"_blank">http://bblfish.net/</a><b=
r>
<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>
</blockquote></div><br>

--001485f07b5432767b0480aa8456--

From benl@google.com  Sun Feb 28 08:02: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 E3B253A87BB for <tls@core3.amsl.com>; Sun, 28 Feb 2010 08:02:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.076
X-Spam-Level: 
X-Spam-Status: No, score=-104.076 tagged_above=-999 required=5 tests=[AWL=1.300, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, J_CHICKENPOX_43=0.6, 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 OT4RYd2mu74V for <tls@core3.amsl.com>; Sun, 28 Feb 2010 08:02:08 -0800 (PST)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id 376E528C107 for <tls@ietf.org>; Sun, 28 Feb 2010 08:02:08 -0800 (PST)
Received: from spaceape14.eur.corp.google.com (spaceape14.eur.corp.google.com [172.28.16.148]) by smtp-out.google.com with ESMTP id o1SG27Jk027266 for <tls@ietf.org>; Sun, 28 Feb 2010 08:02:07 -0800
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1267372927; bh=CGPpTq3THuVM2+fXnNWrgZeAmJE=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=V/9BcPYiIjS1c58gqbq3kCrAwuhSKjj7ViMEQyYwSXBX/xfv+UmsDzvNF1vrNWzfc q+yPp6N+8vBB62IUhgvAA==
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=HgDEpWt8E32gywDiRZ1WVF/e9wx+c0XM4gh6T6xiM5gAQ3/qILDpI7RvNTnxakjPu hV2o7I+6mQLcbLdL1qdBw==
Received: from fxm6 (fxm6.prod.google.com [10.184.13.6]) by spaceape14.eur.corp.google.com with ESMTP id o1SG23d7003149 for <tls@ietf.org>; Sun, 28 Feb 2010 08:02:06 -0800
Received: by fxm6 with SMTP id 6so1646461fxm.22 for <tls@ietf.org>; Sun, 28 Feb 2010 08:02:03 -0800 (PST)
MIME-Version: 1.0
Received: by 10.239.188.139 with SMTP id p11mr314088hbh.102.1267372921091;  Sun, 28 Feb 2010 08:02:01 -0800 (PST)
In-Reply-To: <1b587cab1002280709v68fafk1d34faf9029e3eb9@mail.gmail.com>
References: <F0763843-BDC8-4E32-A3AE-2AE19BFC012F@bblfish.net> <1b587cab1002280709v68fafk1d34faf9029e3eb9@mail.gmail.com>
Date: Sun, 28 Feb 2010 16:01:58 +0000
Message-ID: <1b587cab1002280801g1eefd37aq19c58457834aa567@mail.gmail.com>
From: Ben Laurie <benl@google.com>
To: Story Henry <henry.story@bblfish.net>
Content-Type: multipart/alternative; boundary=001485f78d76c278e10480ab4068
X-System-Of-Record: true
Cc: tls@ietf.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: Sun, 28 Feb 2010 16:02:10 -0000

--001485f78d76c278e10480ab4068
Content-Type: text/plain; charset=ISO-8859-1

On 28 February 2010 15:09, Ben Laurie <benl@google.com> wrote:

>
>
> On 28 February 2010 14:58, Story Henry <henry.story@bblfish.net> wrote:
>
>> 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.
>>
>> The article "Public-Key Cryptography and Password Protocols"
>> http://www.cparity.com/projects/AcmClassification/samples/322514.pdf
>> shows how to do the inverse.
>>
>>  The idea is to make it possible to authenticate into any web site using
>> this one time password. The public key would be tied to a WebId/OpenId,
>> following something like the following steps:
>>
>> 1. A server should be able to know for any webId/openid the public key of
>> that id
>>
>> 2. the user will have
>>  - the private key
>>  - using its private key (and perhaps a time stamp, or a nonce from the
>> server, ... ) the user's software would calculate a one time password which
>> the user could then send with its WebId/OpenId to the server
>>
>> 3. the server which gets the openid/webid find the public key securely and
>> use
>>  that to verify the one time password (somehow)
>>
>> This would allow us to make it easy to create RESTful authentication for
>> devices with broken (Safari on desktop and iphone) or non existent client
>> side certificates (Android, and most other phones).
>>
>> For devices with working client side certificates we have foaf+ssl that
>> works reasonably well currently - though we would love the browser vendors
>> to implement user interface improvements.
>> http://esw.w3.org/topic/foaf+ssl
>>
>>
>>  What we are looking may be impossible. But we can't tell before looking
>> :-)
>> Also if you know of lists that are open source/open standard spirited that
>> you think I should send this question to, please let me know.
>>
>
> One way of doing what you want is a Schnorr signature. One nice property of
> a Schnorr signature is that the private key can easily be derived from a
> password, or could just be a random blob. I'm doing some work in this area,
> so feel free to contact me offlist if you're interested.
>

Also, of course, if you have an RSA keypair you could just sign the nonce
with it :-)


>
>
>>
>>        Henry
>>
>> [1] http://en.wikipedia.org/wiki/One_time_password
>>   http://code.google.com/p/mod-authn-otp/wiki/OneTimePasswords
>>
>> Social Web Architect
>> http://bblfish.net/
>>
>> _______________________________________________
>> TLS mailing list
>> TLS@ietf.org
>> https://www.ietf.org/mailman/listinfo/tls
>>
>
>

--001485f78d76c278e10480ab4068
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote">On 28 February 2010 15:09, Ben Laurie <s=
pan dir=3D"ltr">&lt;<a href=3D"mailto:benl@google.com">benl@google.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;">
<br><br><div class=3D"gmail_quote"><div class=3D"im">On 28 February 2010 14=
:58, Story Henry <span dir=3D"ltr">&lt;<a href=3D"mailto:henry.story@bblfis=
h.net" target=3D"_blank">henry.story@bblfish.net</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">

Hello,<br>
<br>
 =A0I 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.<br>
<br>
The article &quot;Public-Key Cryptography and Password Protocols&quot;<br>
<a href=3D"http://www.cparity.com/projects/AcmClassification/samples/322514=
.pdf" target=3D"_blank">http://www.cparity.com/projects/AcmClassification/s=
amples/322514.pdf</a><br>
shows how to do the inverse.<br>
<br>
=A0The idea is to make it possible to authenticate into any web site using =
this one time password. The public key would be tied to a WebId/OpenId, fol=
lowing something like the following steps:<br>
<br>
1. A server should be able to know for any webId/openid the public key of t=
hat id<br>
<br>
2. the user will have<br>
=A0- the private key<br>
=A0- using its private key (and perhaps a time stamp, or a nonce from the s=
erver, ... ) the user&#39;s software would calculate a one time password wh=
ich the user could then send with its WebId/OpenId to the server<br>
<br>
3. the server which gets the openid/webid find the public key securely and =
use<br>
=A0that to verify the one time password (somehow)<br>
<br>
This would allow us to make it easy to create RESTful authentication for de=
vices with broken (Safari on desktop and iphone) or non existent client sid=
e certificates (Android, and most other phones).<br>
<br>
For devices with working client side certificates we have foaf+ssl that wor=
ks reasonably well currently - though we would love the browser vendors to =
implement user interface improvements. <a href=3D"http://esw.w3.org/topic/f=
oaf+ssl" target=3D"_blank">http://esw.w3.org/topic/foaf+ssl</a><br>


<br>
<br>
 =A0What we are looking may be impossible. But we can&#39;t tell before loo=
king :-)<br>
Also if you know of lists that are open source/open standard spirited that =
you think I should send this question to, please let me know.<br></blockquo=
te><div><br></div></div><div>One way of doing what you want is a Schnorr si=
gnature. One nice property of a Schnorr signature is that the private key c=
an easily be derived from a password, or could just be a random blob. I&#39=
;m doing some work in this area, so feel free to contact me offlist if you&=
#39;re interested.</div>
</div></blockquote><div><br></div><div>Also, of course, if you have an RSA =
keypair you could just sign the nonce with it :-)</div><div>=A0</div><block=
quote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc=
 solid;padding-left:1ex;">
<div class=3D"gmail_quote"><div class=3D"im">
<div>=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;=
border-left:1px #ccc solid;padding-left:1ex">
<br>
 =A0 =A0 =A0 =A0Henry<br>
<br>
[1] <a href=3D"http://en.wikipedia.org/wiki/One_time_password" target=3D"_b=
lank">http://en.wikipedia.org/wiki/One_time_password</a><br>
 =A0 <a href=3D"http://code.google.com/p/mod-authn-otp/wiki/OneTimePassword=
s" target=3D"_blank">http://code.google.com/p/mod-authn-otp/wiki/OneTimePas=
swords</a><br>
<br>
Social Web Architect<br>
<a href=3D"http://bblfish.net/" target=3D"_blank">http://bblfish.net/</a><b=
r>
<br>
_______________________________________________<br>
TLS mailing list<br>
<a href=3D"mailto:TLS@ietf.org" target=3D"_blank">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>
</blockquote></div></div><br>
</blockquote></div><br>

--001485f78d76c278e10480ab4068--

From hjs@bblfish.net  Sun Feb 28 08:58:20 2010
Return-Path: <hjs@bblfish.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 E5A7A3A8AD4 for <tls@core3.amsl.com>; Sun, 28 Feb 2010 08:58:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.36
X-Spam-Level: 
X-Spam-Status: No, score=-2.36 tagged_above=-999 required=5 tests=[AWL=0.240,  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 vj3dKYKQnW-U for <tls@core3.amsl.com>; Sun, 28 Feb 2010 08:58:20 -0800 (PST)
Received: from bblfish.net (rust.entic.net [199.89.53.222]) by core3.amsl.com (Postfix) with ESMTP id 3C62F3A8588 for <tls@ietf.org>; Sun, 28 Feb 2010 08:58:20 -0800 (PST)
Received: from alagny-551-1-59-244.w86-218.abo.wanadoo.fr ([86.218.2.244] helo=bblfish.home) by bblfish.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from <hjs@bblfish.net>) id 1NlmTD-00050h-I8; Sun, 28 Feb 2010 08:58:19 -0800
Mime-Version: 1.0 (Apple Message framework v1077)
Content-Type: text/plain; charset=us-ascii
From: Story Henry <henry.story@bblfish.net>
In-Reply-To: <1b587cab1002280801g1eefd37aq19c58457834aa567@mail.gmail.com>
Date: Sun, 28 Feb 2010 17:58:11 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <05EB46EE-D6DF-4532-AE0E-36EC4445EEA9@bblfish.net>
References: <F0763843-BDC8-4E32-A3AE-2AE19BFC012F@bblfish.net> <1b587cab1002280709v68fafk1d34faf9029e3eb9@mail.gmail.com> <1b587cab1002280801g1eefd37aq19c58457834aa567@mail.gmail.com>
To: Ben Laurie <benl@google.com>
X-Mailer: Apple Mail (2.1077)
Sender: hjs@bblfish.net
Cc: tls@ietf.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: Sun, 28 Feb 2010 16:58:21 -0000

On 28 Feb 2010, at 17:01, Ben Laurie wrote:
>> One way of doing what you want is a Schnorr signature. One nice =
property of
>> a Schnorr signature is that the private key can easily be derived =
from a
>> password, or could just be a random blob. I'm doing some work in this =
area,
>> so feel free to contact me offlist if you're interested.
>=20
> Also, of course, if you have an RSA keypair you could just sign the =
nonce
> with it :-)

Yes, but I think that would make for a string that would be too long for =
a human being to type into a password field. Such a string should not be =
more than 5 to 6 characters long.

 So one could use cut and paste on some devices, but until recently that =
did not work for the iphone for example.

  The best would be of course if phone browsers and others supported =
TLS, as it did in Fennec
   http://blogs.sun.com/bblfish/entry/foaf_ssl_in_mozilla_s

  And it would be even better if web browsers improved their UI so that =
one could see what certificate one was logged in with at some web site
   http://blogs.sun.com/bblfish/entry/identity_in_the_browser_firefox
  Because that would allow one to log out using TLS too.

  But to help people who are stuck in bad browser land, we are trying to =
work on this solution, which won't be any worse than username/passwords =
- in fact it should be more secure, whilst hopefully giving one one =
username/passowrd function for all sites.

Henry=

From alangley@gmail.com  Sun Feb 28 09:36:30 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 8413828C0DB for <tls@core3.amsl.com>; Sun, 28 Feb 2010 09:36:30 -0800 (PST)
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=[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 PtFnE8wgrY7k for <tls@core3.amsl.com>; Sun, 28 Feb 2010 09:36:29 -0800 (PST)
Received: from mail-vw0-f44.google.com (mail-vw0-f44.google.com [209.85.212.44]) by core3.amsl.com (Postfix) with ESMTP id 44AF028C0E8 for <tls@ietf.org>; Sun, 28 Feb 2010 09:36:29 -0800 (PST)
Received: by vws20 with SMTP id 20so777512vws.31 for <tls@ietf.org>; Sun, 28 Feb 2010 09:36:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=tcrhH32rD8wxWcfIE1uY3teju/o/jSkSveRRem29XRA=; b=rBkKP3XCZRsk15fWihFEp9SA3qgXgn0ifZPEl8zRHIpadWZUzgwK8P2RfowAFRatXM sOgy6RtPrbgEEnDKFNCqCNGH95ha4W384gKhbNck26X/zCT+I8SJMXFw0ngXZssdTyqr 5GWFsHPCDfBeUhldEFTSes9gEywPGIvkm3nxM=
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=gIqUxqH3bQsLZLqyaZ6tkHWzM/Ll0Sd4OU9qiRgm+tLurxfTbBlyLSNCn7Mc4SJzfj 8kkYgYa6yiAyMNfNFD2fkOx+yZcPH+qJlzAovxvEUHpdP/gwYA4EncSeZMyqVVIiQjgS g1TMksozavDlspwVVV9IIXzpKY3CP0pdWuIMU=
MIME-Version: 1.0
Sender: alangley@gmail.com
Received: by 10.220.4.21 with SMTP id 21mr2342509vcp.222.1267378584550; Sun,  28 Feb 2010 09:36:24 -0800 (PST)
In-Reply-To: <05EB46EE-D6DF-4532-AE0E-36EC4445EEA9@bblfish.net>
References: <F0763843-BDC8-4E32-A3AE-2AE19BFC012F@bblfish.net> <1b587cab1002280709v68fafk1d34faf9029e3eb9@mail.gmail.com> <1b587cab1002280801g1eefd37aq19c58457834aa567@mail.gmail.com> <05EB46EE-D6DF-4532-AE0E-36EC4445EEA9@bblfish.net>
Date: Sun, 28 Feb 2010 12:36:24 -0500
X-Google-Sender-Auth: 3f025ad3078b8d51
Message-ID: <396556a21002280936v4446c183jfba101eee97bb89a@mail.gmail.com>
From: Adam Langley <agl@imperialviolet.org>
To: Story Henry <henry.story@bblfish.net>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Cc: tls@ietf.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: Sun, 28 Feb 2010 17:36:30 -0000

On Sun, Feb 28, 2010 at 11:58 AM, Story Henry <henry.story@bblfish.net> wro=
te:
> Yes, but I think that would make for a string that would be too long for =
a human being to type into a password field. Such a string should not be mo=
re than 5 to 6 characters long.

If we assume that the public key is widely known, then an attacker
knows all the information that the legitimate authenticator knows.
Thus the attacker can brute force the password offline, in real time.
A six character password is, roughly, 30-bits. Assuming a 1024-bit
modulus a desktop computer can probably do 2**18 public
operations/sec. A hardware implementation might 100x faster. So it
doesn't take much to brute force that in seconds - faster than you can
expire the nonce because user's only type so quickly.

> =C2=A0But to help people who are stuck in bad browser land, we are trying=
 to work on this solution, which won't be any worse than username/passwords=
 - in fact it should be more secure, whilst hopefully giving one one userna=
me/passowrd function for all sites.

We're aware that Google Chrome is certainly lacking in these respects
on some platforms. It's on the todo list and not too far down.


AGL

--=20
Adam Langley agl@imperialviolet.org http://www.imperialviolet.org

From benl@google.com  Sun Feb 28 09:43:52 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 7FF8928C16F for <tls@core3.amsl.com>; Sun, 28 Feb 2010 09:43:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.026
X-Spam-Level: 
X-Spam-Status: No, score=-105.026 tagged_above=-999 required=5 tests=[AWL=0.950, BAYES_00=-2.599, 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 90D7Wd2ECAVG for <tls@core3.amsl.com>; Sun, 28 Feb 2010 09:43:51 -0800 (PST)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id 93D5528C169 for <tls@ietf.org>; Sun, 28 Feb 2010 09:43:51 -0800 (PST)
Received: from wpaz5.hot.corp.google.com (wpaz5.hot.corp.google.com [172.24.198.69]) by smtp-out.google.com with ESMTP id o1SHhoEK019564 for <tls@ietf.org>; Sun, 28 Feb 2010 09:43:50 -0800
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1267379030; bh=BwHvLXlB78wlqQyjabUPtZVk9+8=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=a6/w3OmgFndGRUcpgxnLtCn93FxLpMGDrpsLQrbp5iumS4Doq0Gh/QWjkTz4datDJ FdBLMR8aLCiAqwpWgHokw==
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=XpT3i5egNC+mY4tNUEf+GHsiYTu2nAQWQgwlilhkOyMIv7ShicPlRB4DdlLXrugy3 RvSheP1dBOIrzvjH9h2pA==
Received: from fxm2 (fxm2.prod.google.com [10.184.13.2]) by wpaz5.hot.corp.google.com with ESMTP id o1SHhnFI032680 for <tls@ietf.org>; Sun, 28 Feb 2010 09:43:49 -0800
Received: by fxm2 with SMTP id 2so2030917fxm.16 for <tls@ietf.org>; Sun, 28 Feb 2010 09:43:48 -0800 (PST)
MIME-Version: 1.0
Received: by 10.239.136.18 with SMTP id f18mr328266hbf.64.1267379028741; Sun,  28 Feb 2010 09:43:48 -0800 (PST)
In-Reply-To: <05EB46EE-D6DF-4532-AE0E-36EC4445EEA9@bblfish.net>
References: <F0763843-BDC8-4E32-A3AE-2AE19BFC012F@bblfish.net> <1b587cab1002280709v68fafk1d34faf9029e3eb9@mail.gmail.com> <1b587cab1002280801g1eefd37aq19c58457834aa567@mail.gmail.com> <05EB46EE-D6DF-4532-AE0E-36EC4445EEA9@bblfish.net>
Date: Sun, 28 Feb 2010 17:43:48 +0000
Message-ID: <1b587cab1002280943m206ffdbbrcd044dbd0c348502@mail.gmail.com>
From: Ben Laurie <benl@google.com>
To: Story Henry <henry.story@bblfish.net>
Content-Type: multipart/alternative; boundary=001485f1e440cdd08c0480acac4a
X-System-Of-Record: true
Cc: tls@ietf.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: Sun, 28 Feb 2010 17:43:52 -0000

--001485f1e440cdd08c0480acac4a
Content-Type: text/plain; charset=ISO-8859-1

On 28 February 2010 16:58, Story Henry <henry.story@bblfish.net> wrote:

>
> On 28 Feb 2010, at 17:01, Ben Laurie wrote:
> >> One way of doing what you want is a Schnorr signature. One nice property
> of
> >> a Schnorr signature is that the private key can easily be derived from a
> >> password, or could just be a random blob. I'm doing some work in this
> area,
> >> so feel free to contact me offlist if you're interested.
> >
> > Also, of course, if you have an RSA keypair you could just sign the nonce
> > with it :-)
>
> Yes, but I think that would make for a string that would be too long for a
> human being to type into a password field. Such a string should not be more
> than 5 to 6 characters long.
>

You didn't mention that it had to be typable!

--001485f1e440cdd08c0480acac4a
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote">On 28 February 2010 16:58, Story Henry <=
span dir=3D"ltr">&lt;<a href=3D"mailto:henry.story@bblfish.net">henry.story=
@bblfish.net</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" sty=
le=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class=3D"im"><br>
On 28 Feb 2010, at 17:01, Ben Laurie wrote:<br>
&gt;&gt; One way of doing what you want is a Schnorr signature. One nice pr=
operty of<br>
&gt;&gt; a Schnorr signature is that the private key can easily be derived =
from a<br>
&gt;&gt; password, or could just be a random blob. I&#39;m doing some work =
in this area,<br>
&gt;&gt; so feel free to contact me offlist if you&#39;re interested.<br>
&gt;<br>
&gt; Also, of course, if you have an RSA keypair you could just sign the no=
nce<br>
&gt; with it :-)<br>
<br>
</div>Yes, but I think that would make for a string that would be too long =
for a human being to type into a password field. Such a string should not b=
e more than 5 to 6 characters long.<br></blockquote><div><br></div><div>
You didn&#39;t mention that it had to be typable!</div></div>

--001485f1e440cdd08c0480acac4a--

From hjs@bblfish.net  Sun Feb 28 10:49:25 2010
Return-Path: <hjs@bblfish.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 118CE3A8AEA for <tls@core3.amsl.com>; Sun, 28 Feb 2010 10:49:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.407
X-Spam-Level: 
X-Spam-Status: No, score=-2.407 tagged_above=-999 required=5 tests=[AWL=0.192,  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 tdKmjFMFaZTV for <tls@core3.amsl.com>; Sun, 28 Feb 2010 10:49:23 -0800 (PST)
Received: from bblfish.net (rust.entic.net [199.89.53.222]) by core3.amsl.com (Postfix) with ESMTP id E93003A8AE6 for <tls@ietf.org>; Sun, 28 Feb 2010 10:49:23 -0800 (PST)
Received: from alagny-551-1-59-244.w86-218.abo.wanadoo.fr ([86.218.2.244] helo=bblfish.home) by bblfish.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from <hjs@bblfish.net>) id 1NloCe-0001zF-Ri; Sun, 28 Feb 2010 10:49:21 -0800
Mime-Version: 1.0 (Apple Message framework v1077)
Content-Type: text/plain; charset=us-ascii
From: Story Henry <henry.story@bblfish.net>
In-Reply-To: <396556a21002280936v4446c183jfba101eee97bb89a@mail.gmail.com>
Date: Sun, 28 Feb 2010 19:49:12 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <F26E5D8F-6CC8-44C5-A3B8-C6743589A353@bblfish.net>
References: <F0763843-BDC8-4E32-A3AE-2AE19BFC012F@bblfish.net> <1b587cab1002280709v68fafk1d34faf9029e3eb9@mail.gmail.com> <1b587cab1002280801g1eefd37aq19c58457834aa567@mail.gmail.com> <05EB46EE-D6DF-4532-AE0E-36EC4445EEA9@bblfish.net> <396556a21002280936v4446c183jfba101eee97bb89a@mail.gmail.com>
To: Adam Langley <agl@imperialviolet.org>
X-Mailer: Apple Mail (2.1077)
Sender: hjs@bblfish.net
Cc: tls@ietf.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: Sun, 28 Feb 2010 18:49:25 -0000

On 28 Feb 2010, at 18:36, Adam Langley wrote:

> On Sun, Feb 28, 2010 at 11:58 AM, Story Henry =
<henry.story@bblfish.net> wrote:
>> Yes, but I think that would make for a string that would be too long =
for a human being to type into a password field. Such a string should =
not be more than 5 to 6 characters long.
>=20
> If we assume that the public key is widely known, then an attacker
> knows all the information that the legitimate authenticator knows.
> Thus the attacker can brute force the password offline, in real time.

> A six character password is, roughly, 30-bits.
> Assuming a 1024-bit
> modulus a desktop computer can probably do 2**18 public
> operations/sec. A hardware implementation might 100x faster. So it
> doesn't take much to brute force that in seconds - faster than you can
> expire the nonce because user's only type so quickly.

That is frighteningly fast.=20
How many chars does one need then?
And how do 1 time passwords work then at all?

So I suppose the above would not be possible if the client can connect =
to
the server using https. Most browsers, even when they have broken client
side certificates, do allow https connections - I am guessing this is =
even true on cell phones. And the server could just tie the response to =
the TLS session. Does that not remove the above problem?

>=20
>>  But to help people who are stuck in bad browser land, we are trying =
to work on this solution, which won't be any worse than =
username/passwords - in fact it should be more secure, whilst hopefully =
giving one one username/passowrd function for all sites.
>=20
> We're aware that Google Chrome is certainly lacking in these respects
> on some platforms. It's on the todo list and not too far down.

Great. Also it would be fantastic if one could get the Android platform =
to support <keygen> and have a good key chain.

A year ago, I had an amazing demo on the iPhone. I could log into to a =
few of our demo sites without having to type either a username or a =
password. Pictures of this here:

   http://blogs.sun.com/bblfish/entry/one_click_global_sign_on

But somehow in v3 of the iPhone OS they broke their client certificate =
stack, and it no longer worked.=20

   Henry


>=20
>=20
> AGL
>=20
> --=20
> Adam Langley agl@imperialviolet.org http://www.imperialviolet.org


From jsalowey@cisco.com  Sun Feb 28 20:02:06 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 093CE3A7904 for <tls@core3.amsl.com>; Sun, 28 Feb 2010 20:02:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[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 SeTB5cSGbrXE for <tls@core3.amsl.com>; Sun, 28 Feb 2010 20:02:05 -0800 (PST)
Received: from sj-iport-1.cisco.com (sj-iport-1.cisco.com [171.71.176.70]) by core3.amsl.com (Postfix) with ESMTP id 5904F3A6F89 for <tls@ietf.org>; Sun, 28 Feb 2010 20:02:05 -0800 (PST)
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: AvsEAMvKikurRN+J/2dsb2JhbACbFnOheZc/hHsEgxc
X-IronPort-AV: E=Sophos;i="4.49,557,1262563200"; d="scan'208";a="303760461"
Received: from sj-core-3.cisco.com ([171.68.223.137]) by sj-iport-1.cisco.com with ESMTP; 01 Mar 2010 04:02:05 +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 o21425RW019210 for <tls@ietf.org>; Mon, 1 Mar 2010 04:02:05 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, 28 Feb 2010 20:02:05 -0800
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, 28 Feb 2010 20:02:02 -0800
Message-ID: <AC1CFD94F59A264488DC2BEC3E890DE509B5C12A@xmb-sjc-225.amer.cisco.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Interest in taking draft-seggelmann-tls-dtls-heartbeat-01 as a working group item
Thread-Index: Acq48/MYa6YEcmvVTiCILU51ykW55Q==
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: <tls@ietf.org>
X-OriginalArrivalTime: 01 Mar 2010 04:02:05.0783 (UTC) FILETIME=[F4D7D670:01CAB8F3]
Subject: [TLS] Interest in taking draft-seggelmann-tls-dtls-heartbeat-01 as a working group item
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, 01 Mar 2010 04:02:06 -0000

Since the last call for interest ran up against the re-negotiation issue
I would like to check again to see if there is interest in taking this
up as a TLS working group item.  Please respond if you approve or
disapprove taking this on as a working group item.  If you approve
please indicate if you are willing to contribute text or review.  Please
respond by March 12, 2010.=20


Thanks,

Joe

From jsalowey@cisco.com  Sun Feb 28 21:47: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 59A753A7DD9 for <tls@core3.amsl.com>; Sun, 28 Feb 2010 21:47:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[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 oKCkolJz547a for <tls@core3.amsl.com>; Sun, 28 Feb 2010 21:47:34 -0800 (PST)
Received: from sj-iport-5.cisco.com (sj-iport-5.cisco.com [171.68.10.87]) by core3.amsl.com (Postfix) with ESMTP id 681203A67D9 for <tls@ietf.org>; Sun, 28 Feb 2010 21:47:34 -0800 (PST)
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: AvsEABzkikurR7H+/2dsb2JhbACbFnOiUpc4hHsEgxc
X-IronPort-AV: E=Sophos;i="4.49,557,1262563200"; d="scan'208";a="158311322"
Received: from sj-core-2.cisco.com ([171.71.177.254]) by sj-iport-5.cisco.com with ESMTP; 01 Mar 2010 05:47:34 +0000
Received: from xbh-sjc-231.amer.cisco.com (xbh-sjc-231.cisco.com [128.107.191.100]) by sj-core-2.cisco.com (8.13.8/8.14.3) with ESMTP id o215lYbR016672; Mon, 1 Mar 2010 05:47:34 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, 28 Feb 2010 21:47:34 -0800
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, 28 Feb 2010 21:47:31 -0800
Message-ID: <AC1CFD94F59A264488DC2BEC3E890DE509B5C165@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <C7AD78F1.89D1%stefan@aaa-sec.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" draft
Thread-Index: Acq23Mnomt5WrrPJ+0WEPjfWEFUKbgCJT+KA
References: <877hq0balz.fsf@mocca.josefsson.org> <C7AD78F1.89D1%stefan@aaa-sec.com>
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: "Stefan Santesson" <stefan@aaa-sec.com>, "Simon Josefsson" <simon@josefsson.org>, "Brian Smith" <brian@briansmith.org>
X-OriginalArrivalTime: 01 Mar 2010 05:47:34.0733 (UTC) FILETIME=[B130F7D0:01CAB902]
Cc: tls@ietf.org
Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track" 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, 01 Mar 2010 05:47:35 -0000

Hi Stefan,

What is the disadvantage if the client cannot cache information from a
handshake in which the server does not include the hash? =20

Thanks,

Joe

> -----Original Message-----
> From: tls-bounces@ietf.org [mailto:tls-bounces@ietf.org] On Behalf Of
> Stefan Santesson
> Sent: Friday, February 26, 2010 4:11 AM
> To: Simon Josefsson; Brian Smith
> Cc: tls@ietf.org
> Subject: Re: [TLS] draft-ietf-tls-cached-info-02 / New "Fast-Track"
draft
>=20
> Simon and Brian,
>=20
> On 10-02-26 10:38 AM, "Simon Josefsson" <simon@josefsson.org> wrote:
>=20
> >> My second suggestion is to have the server calculate the hash, and
> >> give the calculated hash to the client along with the content. Then
> >> the client and the server don't have to agree on any algorithms at
> >> all, and the server can choose whatever algorithm it wants.
> >
> > I like this approach.  The server gets to chose the hash, and the
client
> > will have to comply.  It is easy to implement, and it is possible to
> > transition to other checksum algorithms over time.
>=20
>=20
> I'm sorry, but this seems like a really bad idea.
>=20
> The idea of this draft is that a client should be able to cash
information
> form a perfectly normal handshake (one where the server does not
provide a
> hash that may represent what it sends).
>=20
> /Stefan
>=20
>=20
>=20
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
