[TLS] Re: FW: I-D Action: draft-kwiatkowski-tls-ecdhe-mlkem-03.txt
Viktor Dukhovni <ietf-dane@dukhovni.org> Mon, 10 March 2025 00:46 UTC
Return-Path: <ietf-dane@dukhovni.org>
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 EB08096FF22 for <tls@mail2.ietf.org>; Sun, 9 Mar 2025 17:46:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -4.398
X-Spam-Level:
X-Spam-Status: No, score=-4.398 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (1024-bit key) header.d=dukhovni.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 j3ir9NMEGiMd for <tls@mail2.ietf.org>; Sun, 9 Mar 2025 17:46:46 -0700 (PDT)
Received: from chardros.imrryr.org (chardros.imrryr.org [144.6.86.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 76DA296FF1D for <tls@ietf.org>; Sun, 9 Mar 2025 17:46:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dukhovni.org; i=@dukhovni.org; q=dns/txt; s=f8320d6e; t=1741567603; h=date : from : to : subject : message-id : reply-to : references : mime-version : content-type : in-reply-to : content-transfer-encoding : from; bh=ttXe8BX6WzFsaHhcZpK13sPto4Dh/fXRdkOaONSDb7A=; b=oIRLwnMy5e1NEEqSujZaWhvj6h2w1AzHX9oqF0OVebS9XaLThuWJdAXhWNPsjrbn9T4q+ GofbZ3c0s+5CaliBrPjIik+UqxVF2V2piTfI1u2zIaVb4vCHZ8LuD+nYjA2QsccaN0WblDP G62Aa6Fwe5heuZv3tQyxwucTmcaatdM=
Received: by chardros.imrryr.org (Postfix, from userid 1000) id 63F1193558C; Mon, 10 Mar 2025 11:46:43 +1100 (AEDT)
Date: Mon, 10 Mar 2025 11:46:43 +1100
From: Viktor Dukhovni <ietf-dane@dukhovni.org>
To: tls@ietf.org
Message-ID: <Z842c12hY9LNOd8J@chardros.imrryr.org>
References: <Z82aAuvLY1tiDxbQ@chardros.imrryr.org> <20250309231710.335050.qmail@cr.yp.to>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
In-Reply-To: <20250309231710.335050.qmail@cr.yp.to>
Mail-Followup-To: <tls@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-ID-Hash: TKRIQJXZP266AQ5DTKVGBQTB276IXDCE
X-Message-ID-Hash: TKRIQJXZP266AQ5DTKVGBQTB276IXDCE
X-MailFrom: ietf-dane@dukhovni.org
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
X-Mailman-Version: 3.3.9rc6
Precedence: list
Reply-To: tls@ietf.org
Subject: [TLS] Re: FW: I-D Action: draft-kwiatkowski-tls-ecdhe-mlkem-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/DlO0s-8QRTDzzxJOpSDCkXLhWmM>
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>
On Sun, Mar 09, 2025 at 11:17:10PM -0000, D. J. Bernstein wrote: > Viktor Dukhovni writes: > > However, you'll be thrilled to learn that it is not possible for a TLS > > server to reuse its ML-KEM keyshare when a client uses a fresh ephemeral > > ML-KEM keyshare. > > "Not possible"? > > In ECDH, or more precisely ElGamal encrypton: Alice sends A = aG; Bob > sends B = bG and C = bA+M; Alice recovers M as C-aB. > > In Kyber, Alice sends G and A = aG+e; Bob sends B = Gb+d and C = Ab+M+c; > Alice recovers M by rounding C-aB. > > Bob can save time by reusing b. The speedup isn't as big as in the ECDH > context if Alice chooses fresh G and A, but there's still _some_ > savings, notably the time to prepare b for multiplication. > > I'm not saying that this is safe. I'm saying that it's what will happen > if Bob is looking for the best speed that interoperates. It can also > happen by accident, of course. I'd expect such designs to be quite unlikely, because in constrast with static DH keys, there is no notion of "ŷ" as a static ML-KEM key. Also, the APIs are not structured to support ŷ as an input to either ML-KEM.Encaps(ek), or the derandomised ML-KEM.Encaps_internal(ek, 𝑚). One might also hypothetically use a constant "𝑚", compromising the derived shared key: (𝐾, 𝑟) ← G(𝑚 ‖ H(ek)). I think the concern here is what "plasibly mainstream" implementations are likely to do, where some reuse of client ephemeral keys can be expected, but reuse of ŷ does not look particularly plausible. -- Viktor.
- [TLS] FW: I-D Action: draft-kwiatkowski-tls-ecdhe… John Mattsson
- [TLS] Re: I-D Action: draft-kwiatkowski-tls-ecdhe… Salz, Rich
- [TLS] Re: FW: I-D Action: draft-kwiatkowski-tls-e… Viktor Dukhovni
- [TLS] Re: FW: I-D Action: draft-kwiatkowski-tls-e… John Mattsson
- [TLS] Re: FW: I-D Action: draft-kwiatkowski-tls-e… Viktor Dukhovni
- [TLS] Re: FW: I-D Action: draft-kwiatkowski-tls-e… John Mattsson
- [TLS] Re: FW: I-D Action: draft-kwiatkowski-tls-e… Viktor Dukhovni
- [TLS] Re: FW: I-D Action: draft-kwiatkowski-tls-e… Salz, Rich
- [TLS] Re: FW: I-D Action: draft-kwiatkowski-tls-e… D. J. Bernstein
- [TLS] Re: FW: I-D Action: draft-kwiatkowski-tls-e… Viktor Dukhovni
- [TLS] Re: FW: I-D Action: draft-kwiatkowski-tls-e… Peter C
- [TLS] Re: FW: I-D Action: draft-kwiatkowski-tls-e… Viktor Dukhovni
- [TLS] Re: FW: I-D Action: draft-kwiatkowski-tls-e… Dang, Quynh H. (Fed)
- [TLS] Re: FW: I-D Action: draft-kwiatkowski-tls-e… D. J. Bernstein
- [TLS] Re: FW: I-D Action: draft-kwiatkowski-tls-e… John Mattsson
- [TLS] Re: FW: I-D Action: draft-kwiatkowski-tls-e… D. J. Bernstein
- [TLS] Re: I-D Action: draft-kwiatkowski-tls-ecdhe… Kris Kwiatkowski
- [TLS] Re: I-D Action: draft-kwiatkowski-tls-ecdhe… Viktor Dukhovni
- [TLS] Re: I-D Action: draft-kwiatkowski-tls-ecdhe… Filippo Valsorda
- [TLS] Re: I-D Action: draft-kwiatkowski-tls-ecdhe… Eric Rescorla
- [TLS] Re: I-D Action: draft-kwiatkowski-tls-ecdhe… Bas Westerbaan