Re: [TLS] "selected_group" field in HelloRetryRequest in TLS 1.3

Martin Thomson <martin.thomson@gmail.com> Sat, 28 November 2015 02:25 UTC

Return-Path: <martin.thomson@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 83DC61B2FAD for <tls@ietfa.amsl.com>; Fri, 27 Nov 2015 18:25:02 -0800 (PST)
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 Pl8H4hvfNHNA for <tls@ietfa.amsl.com>; Fri, 27 Nov 2015 18:25:01 -0800 (PST)
Received: from mail-ig0-x22c.google.com (mail-ig0-x22c.google.com [IPv6:2607:f8b0:4001:c05::22c]) (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 470861B2FAC for <tls@ietf.org>; Fri, 27 Nov 2015 18:25:01 -0800 (PST)
Received: by igvg19 with SMTP id g19so40361675igv.1 for <tls@ietf.org>; Fri, 27 Nov 2015 18:25:00 -0800 (PST)
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=CCSHJv80SeBWm3T499FjyFF3yLT3jVmqbvgA6kglLnE=; b=lN3/f6N5MI+PX3fgHl8bXxi2L85whPa9OJ1y+y8NVQPRPrHdUIcXLyMTFsguq/V0ai eG66aTxeVCS6PhCXmaDF57qUcUQ6VYcD4AnMVCsNk6iNVaBIY095d7z14wZhR1dUe8hF ju8Xx50PygEKtpxnA9endL2H2SucAG6GhMF2IBSrU7ryex/XZyEpkeauo9EYivyS+6sJ 3aGCdfReLzjNjJ7AMP4PYR/2WCdNlV2WshrcPmZaatzdaenY7T+P5cQX+V/CjmUni7LF 0zam6cQ8z1AckyNeKVNzj4qj5ZdcHHxU/9zpqzYVlFt6lHGlHdJ7oSpLuyAG6AxMx644 eHYA==
MIME-Version: 1.0
X-Received: by 10.50.143.10 with SMTP id sa10mr11707428igb.77.1448677500434; Fri, 27 Nov 2015 18:25:00 -0800 (PST)
Received: by 10.36.155.139 with HTTP; Fri, 27 Nov 2015 18:25:00 -0800 (PST)
In-Reply-To: <CAAgBOhu_u0mkvKT2L6qTebJQ4Y4U_CDMnpHYP3O1q=e1QvBgGA@mail.gmail.com>
References: <CAAgBOhu_u0mkvKT2L6qTebJQ4Y4U_CDMnpHYP3O1q=e1QvBgGA@mail.gmail.com>
Date: Fri, 27 Nov 2015 18:25:00 -0800
Message-ID: <CABkgnnVa2Y8FsAkkhBvS+9kXm75Un99e=+dEnCXqu1eQN=TQ4w@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Xuelei Fan <xuelei.fan@vimino.com>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <http://mailarchive.ietf.org/arch/msg/tls/SOlH0Pdt8YgHfQJc6a_rezySqHg>
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] "selected_group" field in HelloRetryRequest 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: Sat, 28 Nov 2015 02:25:02 -0000

On 26 November 2015 at 18:38, Xuelei Fan <xuelei.fan@vimino.com> wrote:
> What's the consideration to place selected_group out of the extensions filed
> in HelloRetryRequest?

An extension would work, except that I believe that extensions in
HelloRetryRequest are going to carry somewhat different semantics to
those in other Hello messages.

If we go to dynamically generated groups, then we can easily define a
new FFDHE code point to signal the use of a dynamic group.  Though I
think that I'd be sad about having to always spend an extra round trip
if it came to that.

Also, it's not much, but the explicit field keeps the message (a tiny
bit) smaller and easier to process.