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

Xuelei Fan <xuelei.fan@vimino.com> Fri, 27 November 2015 01:48 UTC

Return-Path: <xuelei.fan@vimino.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 2DAB41A877A for <tls@ietfa.amsl.com>; Thu, 26 Nov 2015 17:48:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.278
X-Spam-Level:
X-Spam-Status: No, score=-1.278 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, SPF_PASS=-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 bghHTRl-r9hZ for <tls@ietfa.amsl.com>; Thu, 26 Nov 2015 17:48:15 -0800 (PST)
Received: from mail-ob0-x22d.google.com (mail-ob0-x22d.google.com [IPv6:2607:f8b0:4003:c01::22d]) (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 07CF01A8778 for <tls@ietf.org>; Thu, 26 Nov 2015 17:48:15 -0800 (PST)
Received: by obbww6 with SMTP id ww6so72959649obb.0 for <tls@ietf.org>; Thu, 26 Nov 2015 17:48:14 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vimino-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=2vwqQb6HHK3rxFZsznI0MyoStQkEE7d8DQq5DJHWKaw=; b=SIYepnL35FrYDeG+o+TErclY10hMGefNefbdEVBDBF2ZYnIQbRmgKwTnVPZS3WwKa4 BYrKm5jsW5q2BjmIUXvzw6zm0gdLcQFkzGmAWaF73UulHoLBt+v8/cgAuUJlYmHORR7s FU0Y2qpEAMoFxShQvbJQsbL0AZltFh2d7NEU0cButWtNby2w5MHVFlWx+4AvmM7R85AT QqKkpDa9j8ghiMd5xswkyma/R1UrxYN+wkLWjdVbeCBqGhqQFKuVBavDX0BWlGsmTFBJ 2zFWNmRmkUpmt8SSXmmygpjK9P8N9CMVBAUCVSmDkmrHEiQBlIa3x1wMiBLdUNS/OVX0 GaGQ==
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:date :message-id:subject:from:to:cc:content-type; bh=2vwqQb6HHK3rxFZsznI0MyoStQkEE7d8DQq5DJHWKaw=; b=KEoulkrS/xVpWMOrAW8Jyw7DMT5uY6MQ+yN8YaUnaD1ZwccZPwPnpxDU5wnhdvYmuG NmmXmd9tfu2fi4Ms1Le9Q87juacc3iI+NqiAVLLZqyafldtgNaTXMd5/eQh7FdwESko8 B8KVvW/noCeS9+z+yFYxYdqXcpsVUJb7ZvpwFGUj7C9C2uv25c/6N/Jw8pvcvTRMkc3d uKthxHCSUS6FC5GPWKQLh+8byo+ubJF+Nwlp8vPdE9L9iC3afUy/SloVCU4O9eh9wNqX lLAO9OtyrlzaFjYTTEUWw6Ku8UgLVheXy0C4RrbYrR4oswRa+4h8sQgf7xSe2qbWhuh2 j6UA==
X-Gm-Message-State: ALoCoQnKktufOdSb11EL7edfvQvoBKPm8XH+QqbmVoTUtUk3AF0Ek4U1azwSmlbeO2ldts6d7ves
MIME-Version: 1.0
X-Received: by 10.182.81.162 with SMTP id b2mr30506830oby.7.1448588894489; Thu, 26 Nov 2015 17:48:14 -0800 (PST)
Received: by 10.76.171.103 with HTTP; Thu, 26 Nov 2015 17:48:14 -0800 (PST)
X-Originating-IP: [148.87.19.218]
In-Reply-To: <201511262039.01452.davemgarrett@gmail.com>
References: <CAAgBOhuOPB=jxO=WWHmy_y7ARY5qfdK2x4xC9t-Z-vn0UU5Paw@mail.gmail.com> <20151126191525.GB3728@LK-Perkele-V2.elisa-laajakaista.fi> <CAAgBOhvRY+TPKb-Bwtpm_uGKJwJyaY7pDZfd38MrucOhSC_oEg@mail.gmail.com> <201511262039.01452.davemgarrett@gmail.com>
Date: Fri, 27 Nov 2015 09:48:14 +0800
Message-ID: <CAAgBOht9egOhCKWb6LKeOraH-Dd8-bfNYf4kgMiK_unwZPASkg@mail.gmail.com>
From: Xuelei Fan <xuelei.fan@vimino.com>
To: Dave Garrett <davemgarrett@gmail.com>
Content-Type: multipart/alternative; boundary="047d7b2e49f07b649805257be22f"
Archived-At: <http://mailarchive.ietf.org/arch/msg/tls/-MORhOq-iUkmJYcCYymiDGTdgCw>
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: Fri, 27 Nov 2015 01:48:16 -0000

> I think, key_share is ordered too.  If considering both key_share and
> > supported_groups together, looks like there are two options
> [...]
>
> Yes, I addressed the conflict of priorities in one of my PRs, but it's on
> my todo list to rewrite it as ekr noted a few parts that needed changing.
> We agreed on simply making the two orders be required to be the same,
> though at "SHOULD"-level requirement. Those that have them differ will be
> dealt with at the implementations' discretion.
>
> Requiring the two order the same would triage order checking.  It may be
easier that the key_share does not define the order.



> > For this case, key_share can be omitted to indicate to request server
> > choice shares.
>
> I dislike special cases; people screw them up. Life is easier if all
> (EC)DHE suites need a fixed set of accompanying extensions. Less
> complicated and simpler to describe clearly. (as pointed out, omitting it
> left us with garbled text, though that was also just due to us
> flip-flopping on how to handle it)

I meant that the proposal uses one of the options for the final version,
not both.  It may be more simple, I think.

Thanks,
Xuelei