[TLS] Re: FW: I-D Action: draft-kwiatkowski-tls-ecdhe-mlkem-03.txt

Viktor Dukhovni <ietf-dane@dukhovni.org> Sun, 09 March 2025 15:48 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 9654295B70A for <tls@mail2.ietf.org>; Sun, 9 Mar 2025 08:48:54 -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 w8_ma_1W2OvH for <tls@mail2.ietf.org>; Sun, 9 Mar 2025 08:48:53 -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 15B7995B705 for <tls@ietf.org>; Sun, 9 Mar 2025 08:48:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dukhovni.org; i=@dukhovni.org; q=dns/txt; s=f8320d6e; t=1741535331; h=date : from : to : subject : message-id : reply-to : references : mime-version : content-type : in-reply-to : from; bh=0JfxTlmWsMfnS3YbbwDLq84T4uAWFJ/pVoUf0QEWxLI=; b=sSEw6dGVtw+PJjKCGYnj6HQBBHpA9SwI/8xaDOUheExC9PDOhtvApu05SFYbLBlvGqrif 9FvqSOAkg0iA9sYEt20SW3SUinkm/JZAJ8lxIZNyryN6LLdkOzbAFe5aYNhqEeuGPqAuyyc VSZdLfCzlOQtsehbjdJSo4XikoD02Zo=
Received: by chardros.imrryr.org (Postfix, from userid 1000) id 4966C93558C; Mon, 10 Mar 2025 02:48:51 +1100 (AEDT)
Date: Mon, 10 Mar 2025 02:48:51 +1100
From: Viktor Dukhovni <ietf-dane@dukhovni.org>
To: tls@ietf.org
Message-ID: <Z824Y7MkprTRQviq@chardros.imrryr.org>
References: <GVXPR07MB9678E29CF1D00E59164EB89089D72@GVXPR07MB9678.eurprd07.prod.outlook.com> <Z82aAuvLY1tiDxbQ@chardros.imrryr.org> <GVXPR07MB9678BFF2F2284DEDCC6B6AF989D72@GVXPR07MB9678.eurprd07.prod.outlook.com> <Z82ofVKnPfcyGyNF@chardros.imrryr.org> <GVXPR07MB96784E6850B9A809801BB79789D72@GVXPR07MB9678.eurprd07.prod.outlook.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <GVXPR07MB96784E6850B9A809801BB79789D72@GVXPR07MB9678.eurprd07.prod.outlook.com>
Mail-Followup-To: <tls@ietf.org>
Message-ID-Hash: NLAFYIDWC2I25OLXBEQDVB6SLVBLAW56
X-Message-ID-Hash: NLAFYIDWC2I25OLXBEQDVB6SLVBLAW56
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/DDUgv9rvnQlp_nPcgyJvQQzXYgo>
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 03:16:46PM +0000, John Mattsson wrote:

> I don't think time is the important factor. The important thing is
> that encapsulation keys used with different servers are independent.
> If you have a timing side channel in KEM.Decaps(dk, c) that leaks the
> encapsulation key, this encapsulation key should not enable passive
> eavesdropping of connections with other servers.

Timing side-channels that leak the secret key in under ~10 samples would
be newsworthy.  I would support a broad recommendation (SHOULD) of
single-use keys, but not MUST, nor extreme measures such as separate
code points.

> Timing side channels leaking private keys has been common for
> classical algorithms and are likely also for quantum-resistant KEMs.

> ML-KEM KeyGen() is so fast that reusing encapsulation keys to save a
> few CPU cycles is not justifiable.

Sure, fast enough that we can expect typical mainstream implementations
to employ single-use ephemeral keys. But, "not justifiable" is a stretch
without an opportunity to consider the particulars of the case in
question.

-- 
    Viktor.