Re: [TLS] Pull request for 1RTT Handshake
Watson Ladd <watsonbladd@gmail.com> Sat, 05 July 2014 03:30 UTC
Return-Path: <watsonbladd@gmail.com>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1])
by ietfa.amsl.com (Postfix) with ESMTP id A6A101A0303
for <tls@ietfa.amsl.com>; Fri, 4 Jul 2014 20:30:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9,
DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
FREEMAIL_FROM=0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44])
by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id tGQn_KjqLn0P for <tls@ietfa.amsl.com>;
Fri, 4 Jul 2014 20:30:51 -0700 (PDT)
Received: from mail-wg0-x230.google.com (mail-wg0-x230.google.com
[IPv6:2a00:1450:400c:c00::230])
(using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
(No client certificate requested)
by ietfa.amsl.com (Postfix) with ESMTPS id 758601A01C8
for <tls@ietf.org>; Fri, 4 Jul 2014 20:30:51 -0700 (PDT)
Received: by mail-wg0-f48.google.com with SMTP id m15so1158534wgh.19
for <tls@ietf.org>; Fri, 04 Jul 2014 20:30:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:cc:content-type;
bh=Q5p3FgobTao7aNyOxXUIYEARtocPzlqOC4vrzfc5FqE=;
b=tcc3MiD/xuXA8cfRjUfCDKc/opYtfg228XnLotp7RSdCbhpY4Wzk3cIVdRAvGW7Ptq
znc1mnXqjbkE2VH5AJ9axkG95SgEe+aksdyATFpvY9tOFjt4ZGxWRbULVH3ckqNZy8n8
LysUIoFF850yHlVEMEejMDG95mCO3d7Ary373xHRi/kSG0Md5/dgrKOZAl840FZJrlR/
ok2MK0+YzEnEtijEWeprXugBwihjjjBnE8M3UzP1JkzbWHs9gES42LBS+fruVs1ExnKl
tx5kg2VoR/MlNx17NeY2+8obUbhSVLhr8Wg7IV1oe5AFRJ6vjGOS2l+wzJlWgNUtkItD
Y0EQ==
MIME-Version: 1.0
X-Received: by 10.180.86.225 with SMTP id s1mr6707023wiz.36.1404531049928;
Fri, 04 Jul 2014 20:30:49 -0700 (PDT)
Received: by 10.194.21.69 with HTTP; Fri, 4 Jul 2014 20:30:49 -0700 (PDT)
In-Reply-To: <CABcZeBN3sUTW3+BU3=e51+br20A9Z8=MN0i2YjK3hJ2JvLjwPQ@mail.gmail.com>
References: <CABcZeBNTJZo+ua6eV8H1Pwb2MqzD=o20=s+XkiQUL9fftspJrQ@mail.gmail.com>
<CACsn0c=2pFnjt2FWryH+N=kLAL7rnWswnqZbH8C4Q1aNM=qsLg@mail.gmail.com>
<CABcZeBNoycR_PCKarK+PkK8rHs0LeO=_9h7_h-GYftOvzZfLKA@mail.gmail.com>
<CACsn0c=ANxuR50RtuQPwS-sz9XGHyPW7o9SDRH3YL_yQfZdiqQ@mail.gmail.com>
<CABcZeBN3sUTW3+BU3=e51+br20A9Z8=MN0i2YjK3hJ2JvLjwPQ@mail.gmail.com>
Date: Fri, 4 Jul 2014 20:30:49 -0700
Message-ID: <CACsn0cnyhcOQLTJnmKymbhMUwvqWyJxGBPrrmJiY8=D8CAULjQ@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Eric Rescorla <ekr@rtfm.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/tls/kXPrTyvOEBnr8I6d13Vd4Bng2Gc
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Pull request for 1RTT Handshake
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working
group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tls>,
<mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls/>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>,
<mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 05 Jul 2014 03:30:53 -0000
On Thu, Jul 3, 2014 at 10:27 PM, Eric Rescorla <ekr@rtfm.com> wrote: > On Thu, Jul 3, 2014 at 9:41 PM, Watson Ladd <watsonbladd@gmail.com> wrote: >> >> On Thu, Jul 3, 2014 at 9:00 PM, Eric Rescorla <ekr@rtfm.com> wrote: >> >> Why send two messages when one will do? In particular the server can >> send a Server Key Exchange, >> and a Certificate, CertificateVerify message in response to the Client >> Hello. > > > I assume you intend the ServerHello here as well, since you need that for > the > cipher suite, etc.? > > >> >> Once the client receives this, it's ready to send data after its CKE >> and such messages. >> >> Restarting the protocol the way we have now introduces another round trip. > > > Ah, I understand what you are suggesting. > > Certainly something like this is possible, but the general sense of the > discussion at the Interim was that people wanted the "wrong group" > handshake to look like a missed guess/correction followed by the "right > group" handshake, in the interest of simplicity. Note also that if we > have a relatively small number of groups (which seems like a good idea > in any case) then the vast majority of handshakes can complete in 1-RTT > because the client guesses right (e.g., they send P256 and 25519 and > the server supports one or both.) True: the client can take a guess. > > Another difficulty is that it in the flow you are suggesting, you don't > protect > the server's first flight, which includes: > > - The server's extensions response (and request if we add DKG/Ritter's > 'type B extensions'). > > - The server's certificate (relevant if using SNI encryption and for > passive protection for P2P applications). Unless I'm missing something you aren't either: the Change Cipher Spec would come before the Certificate and Certificate Verification to protect these two. But yes, this does require guessing of server parameters, so once we need to do that, might as well guess more. (It seems a bit weird to me to design the protocol one feature request at a time: that way lies Perl 6. Also, I don't recall having seen 'type B extensions': what was the rationale? How was the answer going to come back?) Sincerely, Watson Ladd > > In some cases, an attacker can elicit these, so protection is just > passive, and in others he cannot, in which case protection is also > active. > > Best, > -Ekr > -- "Those who would give up Essential Liberty to purchase a little Temporary Safety deserve neither Liberty nor Safety." -- Benjamin Franklin
- [TLS] Pull request for 1RTT Handshake Eric Rescorla
- Re: [TLS] Pull request for 1RTT Handshake Watson Ladd
- Re: [TLS] Pull request for 1RTT Handshake Eric Rescorla
- Re: [TLS] Pull request for 1RTT Handshake Watson Ladd
- Re: [TLS] Pull request for 1RTT Handshake Eric Rescorla
- Re: [TLS] Pull request for 1RTT Handshake Watson Ladd