Re: [TLS] Extensions "supported_groups" and "key_share" in TLS 1.3

Eric Rescorla <ekr@rtfm.com> Thu, 26 November 2015 23:02 UTC

Return-Path: <ekr@rtfm.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 EBCC01B2C96 for <tls@ietfa.amsl.com>; Thu, 26 Nov 2015 15:02:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level:
X-Spam-Status: No, score=-1.277 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001] autolearn=no
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 jMoBnN5Di49v for <tls@ietfa.amsl.com>; Thu, 26 Nov 2015 15:02:49 -0800 (PST)
Received: from mail-yk0-x232.google.com (mail-yk0-x232.google.com [IPv6:2607:f8b0:4002:c07::232]) (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 91A541B2C87 for <tls@ietf.org>; Thu, 26 Nov 2015 15:02:49 -0800 (PST)
Received: by ykba77 with SMTP id a77so101865441ykb.2 for <tls@ietf.org>; Thu, 26 Nov 2015 15:02:48 -0800 (PST)
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:content-type; bh=ePJ2xJ+46Z8a5o0P79xgszvlEMra8CRiJSlPe7l1l/4=; b=rxuxIakospZKKAVVlzEFKpVKnl1a2cYF7dZvIZnRv37o9M01F6Us2UVBYfjeqmsXN+ 2JIwlmhSBlIh2xiPTYk0vdmjCKZP9b2erMfXJSjy9ZBKQzummrtyq1VfQc/NuGRgRxbN c2SuGvLj0qwxCWbkeThT+ZP7J61dk6OTNGTVVEZVQMT4q7BC/rKG0WU35P2a5+3LKS04 XXL6EWAgaeJpppXPRF5svk7ryS0/2NJ+OSJPNcP2K336mCnvja+qGL1+kdpPD5/bts8B jefunX2nc2DNdroaZLwaMxedj9SyLh1gdFnHEklQeKG/CWwI+Xwhrmn/a6bhEfk49gaE HR0w==
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:content-type; bh=ePJ2xJ+46Z8a5o0P79xgszvlEMra8CRiJSlPe7l1l/4=; b=JeF/PkgkDL08R99X/9p/EGmcRwCIF2ECy8230KI7nI01chPOnzRBQwgbTmiSLWB6IO HBPxNzsS1sjWIp/geWbHOV1RWbjBZ2BecY5iJxAQyrOk4wyQ00DhzqBTXkA0d68p08oR N3fYIGHaBcp+iNtkEb6v0wuUZFv8cZ7qfBIW51IYAx2UTeAQ3hggC2F++4JF23Ees/vv 94UFJ/2v1k8G+ZVxyy4mVhEFfoR/Cy4mgqQcvU/x+5oomAiW45jS5f38eQLM0CwKk7NZ 9Z5HmSnrf27MLePJkWPg1ypxhMdL7/0swWvUpw9PC3loglI7vnt8gN//ZaHUwKn9iQ2C VgwQ==
X-Gm-Message-State: ALoCoQk7xdVkFCTOzs+c/1WnGGi9OhtZkO//uVOj5TPpYfNM8KA3iVg3bSYBhaeyz4fvvyOqQXAs
X-Received: by 10.13.197.194 with SMTP id h185mr38760696ywd.12.1448578968863; Thu, 26 Nov 2015 15:02:48 -0800 (PST)
MIME-Version: 1.0
Received: by 10.13.249.197 with HTTP; Thu, 26 Nov 2015 15:02:09 -0800 (PST)
In-Reply-To: <201511261750.11459.davemgarrett@gmail.com>
References: <CAAgBOhuOPB=jxO=WWHmy_y7ARY5qfdK2x4xC9t-Z-vn0UU5Paw@mail.gmail.com> <CAAgBOhtG7vKx6Bro9+Qp2Gbcz8sitatYKEL=R5tW8ix7rSeMqw@mail.gmail.com> <20151126191525.GB3728@LK-Perkele-V2.elisa-laajakaista.fi> <201511261750.11459.davemgarrett@gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
Date: Thu, 26 Nov 2015 15:02:09 -0800
Message-ID: <CABcZeBM6Yw0KujF6sPZzYn20JX4LvMF4Mb=D5H2JZapDuBNYrw@mail.gmail.com>
To: Dave Garrett <davemgarrett@gmail.com>
Content-Type: multipart/alternative; boundary="001a114edd4ade747a05257992f9"
Archived-At: <http://mailarchive.ietf.org/arch/msg/tls/5R_9vHnNZ0-epM31ULPWbKUyVIw>
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Extensions "supported_groups" and "key_share" in TLS 1.3
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: <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: Thu, 26 Nov 2015 23:02:51 -0000

On Thu, Nov 26, 2015 at 2:50 PM, Dave Garrett <davemgarrett@gmail.com>
wrote:

> On Thursday, November 26, 2015 02:15:25 pm Ilari Liusvaara wrote:
> > I actually looked at the Editors's Copy. The description is a mess: It
> > seemingly first requires key_share extension, even for the first
> > ClientHello... Now, that extension can't be empty... And then proceeds
> > to say to omit it if client has no shares to send... Which looks like
> > it is mutually contradictionary.
>
> We went back and forth on whether to omit or require an empty extension.
> It looks like we have a mix of the two left in there that need fixing. (I
> think something got merged weird) Thanks for pointing this out.
>
> I think it might be easier if we just required the extension for all cases
> where (EC)DHE suites are offered, and have it empty to request a server
> choice, instead of an omitted extension.


Yes, we should either have that or have empty be forbidden. It's a matter
of taste
but on balance, let's go with "empty". If you want to submit a PR that
cleans
this up, I'll merge that.

-Ekr

If I remember correctly, that's what I had originally. One way or another,
> it needs to be fixed to be consistent.
>
>
> Dave
>