[TLS] Re: I-D Action: draft-ietf-tls-key-share-prediction-03.txt
David Benjamin <davidben@chromium.org> Fri, 19 September 2025 22:10 UTC
Return-Path: <davidben@google.com>
X-Original-To: tls@mail2.ietf.org
Delivered-To: tls@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 758A465CD863 for <tls@mail2.ietf.org>; Fri, 19 Sep 2025 15:10:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -9.483
X-Spam-Level:
X-Spam-Status: No, score=-9.483 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.017, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (1024-bit key) header.d=chromium.org
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P26QG2qAGzD8 for <tls@mail2.ietf.org>; Fri, 19 Sep 2025 15:10:09 -0700 (PDT)
Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id EF38C65CD857 for <tls@ietf.org>; Fri, 19 Sep 2025 15:10:08 -0700 (PDT)
Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-b211ccfda1dso366019166b.3 for <tls@ietf.org>; Fri, 19 Sep 2025 15:10:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1758319802; x=1758924602; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=AKygYhIlJlZAI8FWBYW0HOwDMZhgqNRc0mMZUaBOfFk=; b=AWJFHUuPGP4LP4Kzaxm60LiPcBcd95jawok4yxlqvxJtwU4mjbEjos8d4ZauE6vQ7o J59izFeH0qZUiv8RRbxp3dCwc8mNWY1DoiLyFLCzVUB/ZCrxoIAAAQnNCYtOA13v/toy f7GV5ACucp4QGQy2yuT41bU1RjS5iiO6TWL7k=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758319802; x=1758924602; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AKygYhIlJlZAI8FWBYW0HOwDMZhgqNRc0mMZUaBOfFk=; b=Ct294J9nALu+tfhwAHx19ZgD2K24ol1rOIyZq7HW16autri0fbT9G8OyJxzqDyXFlc boiD4E/TUdcJWXRNfu5S3F2Vf0si+WtfPk+VfRpL5bK4IdQFHR9GFOya9Xc8LWiWUPg4 gCbhFVnBACHUzyWavVviYEDXhLd3NLhnICkKQ4J1t4kN8/n6J7POxoX9jLR4zEQRxpep 5ZZ23rUowRk+xbGbIRl6jG2sNWSAjVxusiseX+yyWmDWj+4bF7WalFqILSwKdbvpCqW7 oSwrBCFEGveUrjrErncB2KVVkAATGGNo4/w3/U8fJ3VADwIO1XE1oY9alBdWIuE/FK68 rwZg==
X-Gm-Message-State: AOJu0YwQ89N2yG/kJT+Tb/QfJgDyc5xYYjGbUoujc0W6oYgLbhlqLsea HsIYY7VdnSQRvUk32g84Od5jeF4XucTO1wIM5/mZ3dbfhZyJN6Z+AhLtjeEoNB3aqz+Pt1rpe8W ruiQFRfj+bm9xwT2kQaF7yenxBrs5SGrLvBJIYWWli1GRqeyWX/A2v4Y=
X-Gm-Gg: ASbGncstS57/ggywb2VP7M33qLCM89+VKD5ffwv+nWm4g5GtZwD6qrG1+KQhBX5zOd2 Dt51vTDNCgTmsxc1NjGqNS89u+/fAenpauZCn6jWO0g50gRaZKi8LzwVRmem6cp6SOPCRIgb/lX 9kRK/Js+yPRfr0/cRkOFIEQ8XIO5NFHc8CZxWIOw8RcOk5o+X6VG1DnfM2LVnyMxjjEFDOdlagN ytG9KdNjwC+OS4b
X-Google-Smtp-Source: AGHT+IEMoWG9OMHyNy/GeFgW2DWLFpYsjVPsqSlVkz8/q5eBkf8eW+/yJBp/y2GyEQZ5KU2P/Sa3vMFQUtDZk0hpXus=
X-Received: by 2002:a17:906:fd85:b0:b04:590a:a5b5 with SMTP id a640c23a62f3a-b24ee9db261mr471815666b.24.1758319801442; Fri, 19 Sep 2025 15:10:01 -0700 (PDT)
MIME-Version: 1.0
References: <175648533584.1254387.5994327440602937181@dt-datatracker-67876766b7-bkzgr> <e0b19687-ef32-4e6d-97c7-7fe88fbdae4e@kavula.fi> <CAF8qwaDSpQKzDUxNJQnjmJ7Hk6i4C5XFJTHRs_W54N=Pfxd7TQ@mail.gmail.com> <fb66ba2e-5463-42ce-aaa1-48a4c3ce25cd@kavula.fi>
In-Reply-To: <fb66ba2e-5463-42ce-aaa1-48a4c3ce25cd@kavula.fi>
From: David Benjamin <davidben@chromium.org>
Date: Fri, 19 Sep 2025 18:09:44 -0400
X-Gm-Features: AS18NWBXaDIS6XzJFkpOG9sQxOn6U-SNoWz2M2DfT1xY1TPr_zQVp9T9vvT8XYI
Message-ID: <CAF8qwaD9MuoTrxTEW7jAe3UPcEU-1OVnYoi+HZOQfP8ZpZJ=iA@mail.gmail.com>
To: Marc Penninga <marc@kavula.fi>
Content-Type: multipart/alternative; boundary="0000000000002bc630063f2ebb9b"
Message-ID-Hash: 6UXJ4QMK55WGIT4EQSQEEWZDNVGIIHJB
X-Message-ID-Hash: 6UXJ4QMK55WGIT4EQSQEEWZDNVGIIHJB
X-MailFrom: davidben@google.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-tls.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: tls@ietf.org
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [TLS] Re: I-D Action: draft-ietf-tls-key-share-prediction-03.txt
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/XhDIKmYQqhDIY3bYvEn6XwpLqOQ>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tls>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Owner: <mailto:tls-owner@ietf.org>
List-Post: <mailto:tls@ietf.org>
List-Subscribe: <mailto:tls-join@ietf.org>
List-Unsubscribe: <mailto:tls-leave@ietf.org>
(Was on vacation last week, so I'm still catching up on everything.) On Tue, Sep 9, 2025 at 4:23 AM Marc Penninga <marc@kavula.fi> wrote: > > > On 08-09-2025 at 23:09, David Benjamin wrote: > > Thanks! These are great comments! I uploaded a PR with text that tries > to address it here: > > https://github.com/tlswg/tls-key-share-prediction/pull/15 < > https://github.com/tlswg/tls-key-share-prediction/pull/15> > > Thanks you for your extensive response and the PR! The new text looks good > to me. A few more detailed responses below, inline . > > > There isn't really a well-defined distinction in TLS between "preferred" > things vs "supported" things. Suppose the server's supported groups, in > preference order, are ML-KEM-768, X25519, P-256, P-384. Which ones are the > "preferred" ones? Just ML-KEM-768? The first two? The first three? All but > the last one? I mean maybe the human making that list was thinking, "yeah, > I really like the first three but I guess I'll tolerate P-384", but there > isn't really a functional difference between any other prefix being > "preferred". > > The situation I was thinking of is a server that prefers hybrid KEMs, but > is willing to tolerate ECC-only to support older clients. In such a case > the server might consider not advertising the ECC-only groups in > tls-supported-groups at all. But putting them at the end of > tls-supported-groups should be enough to make clear that those are the > least-preferred groups. > Ah, makes sense. Yeah, it's probably safe for a server to omit the tail of its list? Though there's probably also not much benefit. Dunno if it's worth the verbiage. *shrug* > > - Section 3.3: what should a client do if there are several named > groups in common? Should it send a key_share for the first match, or for > its preferred one, or for all matches? > > > > > > Hmm, yeah, the text is unclear. Thinking about what it /should/ say, I > suspect the answer is "it depends". On the one hand, all but one key share > is guaranteed to be a waste of bandwidth and CPU. So that suggests you > should simply pick the one you think the server would have picked and then > send that one. On the other hand, you might guess wrong for a variety of > reasons mentioned in Section 3.4. So maybe you want to send multiple > matches to cover for that. > > > > But since this is a pretty clear "the server supports these groups" > signal, I would err towards sending just the one match over sending a bunch > as spares. You particularly wouldn't want to predict a large or > computationally expensive option lightly. > > > > I've expanded on the text a bit in the PR. Does that look better? > > It does; the new text makes clear that it's up to the client to make a > decision here. I also like that the new text explicitly mentions the > considerations that may play a role in such a decision. > One thing that does still bother me a bit is the phrase "successfully > predicts". The client doesn't know the server's selection mechanism, so it > cannot know at this point whether its prediction will be successful or not. > Maybe you should leave out the word "successfully", or say something like > "if the client finds a mutually supported group"? > Ah yeah, that is confusing. I was just thinking "the function doesn't return an error for whatever reason", but yeah let's just drop the word. I've updated the PR. "If the client finds a mutually supported group" seems to prompt the questions about what happens if there are multiple matches. > > - Section 4: the two last sentences in the third paragraph contain > important information for server implementors; I suggest promoting these to > a separate section on server behavior, following section 3.3 on client > behavior. > > > > > > Hmm. Had a hard time moving that since it was tied up in the rest of the > discussion. Though it's also just restarting a corollary from RFC 8446. The > main point of this section is that servers are already expected to > implement something that makes this safe. (An earlier draft had something > much more complicated and the conclusion then was to take all that out.) I > reworded this text a bit though, so maybe that's better? > > I had originally read this as an extra requirement on servers, not as > restating an existing one from RFC8446. I think the new text is clearer. > > > - Section 4, final paragraph: there is a gap between the first > sentence (which speaks of reducing the risk of downgrade attacks) and the > rest of this paragraph (which discusses other reasons why a client may > ignore tls-supported-groups). I suggest moving that rest (which isn't > security related) elsewhere, e.g. to section 3.3. > > > > > > Hmm, we're talking about "To reduce the risk of downgrade attacks with > incorrectly deployed servers, [...]", right? The rest of the sentence is > talking about how you might limit the influence to PQ groups, so that an > attacker cannot downgrade to ECDH, even if the server was incorrectly > deployed. That's talking about the downgrade attack. Rephrased it a bit in > the PR so maybe that's clearer? > > I had originally read this as promoting the use of pq-groups rather than > preventing downgrade attacks; with the new text it's clear that it belongs > here. > > _______________________________________________ > TLS mailing list -- tls@ietf.org > To unsubscribe send an email to tls-leave@ietf.org >
- [TLS] I-D Action: draft-ietf-tls-key-share-predic… internet-drafts
- [TLS] Re: I-D Action: draft-ietf-tls-key-share-pr… Marc Penninga
- [TLS] Re: I-D Action: draft-ietf-tls-key-share-pr… David Benjamin
- [TLS] Re: I-D Action: draft-ietf-tls-key-share-pr… Marc Penninga
- [TLS] Re: I-D Action: draft-ietf-tls-key-share-pr… David Benjamin