Re: [TLS] PR ¤468: Cookie for hrr

Eric Rescorla <ekr@rtfm.com> Sun, 22 May 2016 21:31 UTC

Return-Path: <ekr@rtfm.com>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 52BBF12B013 for <tls@ietfa.amsl.com>; Sun, 22 May 2016 14:31:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=rtfm-com.20150623.gappssmtp.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ytKtqaiUJr3l for <tls@ietfa.amsl.com>; Sun, 22 May 2016 14:31:36 -0700 (PDT)
Received: from mail-yw0-x231.google.com (mail-yw0-x231.google.com [IPv6:2607:f8b0:4002:c05::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EB28312D5AF for <tls@ietf.org>; Sun, 22 May 2016 14:31:35 -0700 (PDT)
Received: by mail-yw0-x231.google.com with SMTP id c127so38011949ywb.1 for <tls@ietf.org>; Sun, 22 May 2016 14:31:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtfm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=wnNQm+Sdf7sI0618o1z97VfEtNY/OIAVUKzu+EYk+hg=; b=AD5R7D7i4aZQi31sKgF0oO3XXdeIfopgutK+yYGpFh1SDL6IaUhlcvBeZa8CCQskgi t52+i3jzFD6bmgNSxQQZjs1jPGZn5Upjjl4sleSfEsdBQjNOS3gtN27K20Y+YHE4YoCd uzD2Iih8iZLqCrv4/A5ofrPhvJc/e25r+H2muaVxTMMPi9IFbgpcWfOO/e8j/KfbEiYF Lh4qrijhFKPlD84m097uUpdOg9zCuGpsDutKYyYhcbz2de0V6hCHufS+XGgo0j2v5YXP 2ZYakVl9CVAJQCdABkMPbopW9by7Hr8/PoCDhOtaXCsfk4C7IgRQknoDsBPFFDvJ6oQy yr7w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=wnNQm+Sdf7sI0618o1z97VfEtNY/OIAVUKzu+EYk+hg=; b=S0Rx9UBpViPq9MrCMmkLCDFG1AWT3yT98x97shgXwhtJtac5CL4rr8EkaQTMZwJ18t PyB34B4IsZpMGBP7VD43jEQJJCeZnpT+j87din9+bj9KFpv1VkILshObMtpardQCez9W y2zSnfvVQH7Baf9lUQOZRoApqT6/50L646e0gp04Xdt8HrB0siH3sao4ZEjDhwjQs6Ps rhd2q+s6OOZtwkFlqK01dwGojR+uiyHTwosJR5Nn77CCBDgq3YlHccGp7Z3Vhh9VgW7e 9aF527mQc3qUJGlTu2ScZend/+hhwlZbtpjwE3o49vvDs2cLpThwHwWooMJ+JWyzMYnf mhvQ==
X-Gm-Message-State: AOPr4FUvo8y7PhNCKA3w54HL97efjd+EvOVa0fgw/N3PyEpE82oIIIlHCj/dHGpojFYEyaajcovwlvRphtA25A==
X-Received: by 10.13.233.1 with SMTP id s1mr7702147ywe.286.1463952695179; Sun, 22 May 2016 14:31:35 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.129.132.12 with HTTP; Sun, 22 May 2016 14:30:55 -0700 (PDT)
In-Reply-To: <20160522204823.GC17811@LK-Perkele-V2.elisa-laajakaista.fi>
References: <20160522142212.GA17666@LK-Perkele-V2.elisa-laajakaista.fi> <CABcZeBPEQMJvBkb9kNvE4XeV8PyXoi=MchxrjPmmmYbJ8aXamQ@mail.gmail.com> <20160522155921.GA17811@LK-Perkele-V2.elisa-laajakaista.fi> <CABcZeBPBtuqm-Qz7+WaQfaCzqKSXdpfER-cRHxCV0reae6vpyg@mail.gmail.com> <20160522193302.GB17811@LK-Perkele-V2.elisa-laajakaista.fi> <CABcZeBNG0dkqTbJ0HNYJOi3Uk7SHGm85AwkWtPTcO3ff6Ag_1A@mail.gmail.com> <20160522204823.GC17811@LK-Perkele-V2.elisa-laajakaista.fi>
From: Eric Rescorla <ekr@rtfm.com>
Date: Sun, 22 May 2016 14:30:55 -0700
Message-ID: <CABcZeBPft0CZuiqahnZ8s5_NrcEn=++pXsgGntP9-Xe+qBGz8w@mail.gmail.com>
To: Ilari Liusvaara <ilariliusvaara@welho.com>
Content-Type: multipart/alternative; boundary="94eb2c07cfb45d6fdc0533750cfc"
Archived-At: <http://mailarchive.ietf.org/arch/msg/tls/UA-gfoui4OgZli7kGvklVcV0kFY>
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] PR ¤468: Cookie for hrr
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tls/>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@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, 22 May 2016 21:31:39 -0000

On Sun, May 22, 2016 at 1:48 PM, Ilari Liusvaara <ilariliusvaara@welho.com>
wrote:

> On Sun, May 22, 2016 at 12:50:38PM -0700, Eric Rescorla wrote:
> > On Sun, May 22, 2016 at 12:33 PM, Ilari Liusvaara <
> ilariliusvaara@welho.com>
> > wrote:
> >
> > > On Sun, May 22, 2016 at 11:30:10AM -0700, Eric Rescorla wrote:
> > > > On Sun, May 22, 2016 at 8:59 AM, Ilari Liusvaara <
> > > ilariliusvaara@welho.com>
> > > > wrote:
> > > >
> > > > > Actually, looking at it, I didn't find how EDI context is
> > > > > determined. And EDI context needs to be fit into cookies because
> > > > > it isn't retransmitted on 2nd CH.
> > > > >
> > > >
> > > > I don't understand what you're saying here. Here is my claim:
> > > >
> > > > 1. The second ClientHello doesn't come with EDI.
> > > > 2. The Cookie (if used for this) needs to contain the entire hash
> > > >     state, which means it includes the ClientHello w/ EDI
> transitively.
> > > > 3. Therefore you can recover the hash state no matter how much
> > > >     the client changes the ClientHello (though we forbid a lot of
> > > >     changes)
> > > >
> > > > If I'm wrong here, would definitely like to know. Can you explain?
> > >
> > > That would require hash implementation supporting freezing/thawing
> > > (I have seen only one, and that used MD5), which is even more exotic
> > > than forking checkpointable hash implementations.
> > >
> >
> > This is a bit of an irritation, I agree. However, it's only required for
> > stateless implementations, so not your average TLS stack. If you
> > have a better suggestion, I'd love to have it, thought!
>
> Well, if you didn't have to deal with possibly overly large contexts,
> you could just reconstruct the 1st ClientHello and HelloRetryRequest.
>
> (Reconstruction is even easier without having to worry about cross-
> handshake cookies).
>

They're gone!

-Ekr


>
>
> -Ilari
>