Re: [CFRG] [EXTERNAL] Re: (no subject)

Mike Ounsworth <Mike.Ounsworth@entrust.com> Wed, 21 February 2024 20:59 UTC

Return-Path: <Mike.Ounsworth@entrust.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 52AA3C14F6FB for <cfrg@ietfa.amsl.com>; Wed, 21 Feb 2024 12:59:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.104
X-Spam-Level:
X-Spam-Status: No, score=-2.104 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, HTML_FONT_LOW_CONTRAST=0.001, HTML_MESSAGE=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=entrust.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mRccIB1RZfKj for <cfrg@ietfa.amsl.com>; Wed, 21 Feb 2024 12:59:31 -0800 (PST)
Received: from mx07-0015a003.pphosted.com (mx07-0015a003.pphosted.com [185.132.183.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A79A3C14F70D for <cfrg@irtf.org>; Wed, 21 Feb 2024 12:59:25 -0800 (PST)
Received: from pps.filterd (m0242864.ppops.net [127.0.0.1]) by mx08-0015a003.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41LKKPlk008045; Wed, 21 Feb 2024 14:59:22 -0600
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=entrust.com; h= from:to:cc:subject:date:message-id:references:in-reply-to :content-type:mime-version; s=mail1; bh=BCZHPhZG+WEcH3JyCszjY5wc BPMlC6rVkMTOlrmHG/I=; b=RkT/EqQ6H/elFQLfZM9kNSivH5ab01gxNt+0P3vt 8hegE0+RuW3hB5uuR5Qk0fydzz/dFZlpMP9Ust+HRbETXH1wcmUh7DokSvKF/tS9 +gz7Vs3dZVKGqQTcWe6vS1ZDL3+xSSMZfjhmTDOKcoppFYv9GadcbiC/Fq+sj/59 Wdprr6Mo+W+g8eKC9rPJPmPV1wnHg55nw/HZUuYaDJ+ex5eEgyPaRyvRRE1m3o6T qDAO45pS4Pm6Jl+5iCEBl9WPtQUJfIz5WqKvIWTmOXcR2SGSrUhWPOJOM5aGv7Pb Uj0ePIBGOtvSb2BiAbHE4b4Yb9zk7OlNlwSDCfseqYV3Qw==
Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2168.outbound.protection.outlook.com [104.47.55.168]) by mx08-0015a003.pphosted.com (PPS) with ESMTPS id 3wd1yyvwg0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Feb 2024 14:59:21 -0600 (CST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hloF2BCP1kPoAbv1DoL413zvFh8Nqg/t6GGmQ0ZlbpUWdLbfEFpOviTFcFutAuh450u+ntKAjFkyjXS+i9hxBcrLy8bfrhF6WUr+BXn3EfZdVlIiNZqYVf4qgfF6TRXrL6k6MKIs0gd4y5HMVmqdnjLFsJtP/oI03JTPLDeNT8mkWPLHNoQCNYdZgQF1m+pnVZdKKoUXUdpmnAoTfqo+RyHHG6E3PG54Qw3XoT1HNBi38yTvDo74RVz61EDf/DzVO9oarHwaxmpHZIqI5l9yMENts1nmpvB/6jDHjJhufdar4OFArM/IMng/wgbG4ld0bYHBvJdX2wBAVt1uR12Csw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=EiHsQ5Etx3NMELmXh5PCTNaxEjf/NfkjjRFmez8aIck=; b=hQo1DfyZBuTF/QXW48VjDyO0isLwgJVR2N7d2aoTC+UQYR8TGVVm2zrcFMB8/pak8IVkcnIFi+04zCYlOCwidiitsAjn+ij2KQ/rkRRCcRUdMwa8THvI93rDmf/r9HjgiedfdSaHMp7eu7qpNRukcrRQeCi4vnlijpaezeeQnFy3vg8gEuRWeH7HmUWIn4vccEngQ9qo8LMPwrTKmvBOTh6cdYXaZcUBSJaY6PpDa3IkaNJcQOK2s3ot8s1iAn68w0UklAslpxGEvv1u5cnTEtD3qzbWqLuPqBVtyqJ8nJ6Egn4eHQrkPJyipv2viz0GHozpK7uYmb4BOTQDGBaqTQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=entrust.com; dmarc=pass action=none header.from=entrust.com; dkim=pass header.d=entrust.com; arc=none
Received: from CH0PR11MB5739.namprd11.prod.outlook.com (2603:10b6:610:100::20) by PH7PR11MB6029.namprd11.prod.outlook.com (2603:10b6:510:1d0::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.38; Wed, 21 Feb 2024 20:59:16 +0000
Received: from CH0PR11MB5739.namprd11.prod.outlook.com ([fe80::e3f0:78e1:48fc:8a03]) by CH0PR11MB5739.namprd11.prod.outlook.com ([fe80::e3f0:78e1:48fc:8a03%3]) with mapi id 15.20.7339.007; Wed, 21 Feb 2024 20:59:15 +0000
From: Mike Ounsworth <Mike.Ounsworth@entrust.com>
To: Watson Ladd <watsonbladd@gmail.com>
CC: Andy Lutomirski <luto@amacapital.net>, Filippo Valsorda <filippo@ml.filippo.io>, CFRG <cfrg@irtf.org>
Thread-Topic: [CFRG] [EXTERNAL] Re: (no subject)
Thread-Index: AQHaZQAT9w6oROlTyE6uPr5CH50LobEVNu3AgAAI3ICAAAEugA==
Date: Wed, 21 Feb 2024 20:59:15 +0000
Message-ID: <CH0PR11MB5739912410D1855B31CD41A59F572@CH0PR11MB5739.namprd11.prod.outlook.com>
References: <20240221165144.860827.qmail@cr.yp.to> <25cecba9-7c35-41c7-962a-c204a76e538c@app.fastmail.com> <CALCETrXru4ehNw=SDQantWK7zWTC0255cehuYYZqLD6Hw3Wkqw@mail.gmail.com> <CH0PR11MB5739C76681009F9EDA6B45259F572@CH0PR11MB5739.namprd11.prod.outlook.com> <CACsn0ckCJykHy3+WKMWahda_TPAyrgPh8-93i65d2RRmEB34gw@mail.gmail.com> <CH0PR11MB573954D6F10C8B89BE8BDB539F572@CH0PR11MB5739.namprd11.prod.outlook.com> <CACsn0c=L920fUM=4fnCSW4kdAoY3LkHpvmd-kmnuMYdcr6URkw@mail.gmail.com>
In-Reply-To: <CACsn0c=L920fUM=4fnCSW4kdAoY3LkHpvmd-kmnuMYdcr6URkw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: CH0PR11MB5739:EE_|PH7PR11MB6029:EE_
x-ms-office365-filtering-correlation-id: 78770d45-dc0e-4a64-6f41-08dc331ff6c4
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 1Ix8hveP1d/ghCDUCKbHnTyfQEjc+jhmBNWuItjcL+rjFwtPWiCCwZqeY52TSwu8g8x7Wo7TMe3CpVKvda9Gwc04rlg4u/zjQJprryYrp8uGcmz625mvf7UnUPc8BVHOupDsDOHpSzQbVqK4tsqj27vctmDyKAYKVblblCwS2v0Ch7UiBvYf2qF9Wnr820wr1JwsjcUS1kAU1Ipbi0gDd2ENYdfhD9HSconn1p6NKorPDIEr6UigxU6Y7DI0dJMRV0K5lWCkhx1VBjNsVqsBiXAIT+1j0VFgfMw3qloRYhcqZUwJzSfWe3gFTBvaUzlEs03YYuFhM73Owl0Ckvby8qm191Z+niOzqwMoBYDUvoh6Ux5bI2J1lihhwTBzanUQvmMLncatNw/a06ynKnOgQdvjH4cO7GjEJG4WzTsLK9hykqq0XT0uPb1zc6xx+29P3psdVHOZdiVhP7YmSoDDsCx5PIuTqs2rBY0V0bIGGLU80OdjNL4+q+lJB/PzLf3xMKDYEr8hUFKdlnOpwvI8p/fJezH5+NX+9I7VvDXIGptSqS/iIjNVtxPqHPpI7PtfaB21u1uBhtKpnBSKj0AxFADcBc+XaEb8RwyCymJeGvoOV16o0gLPO935JoQ+ws0n
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH0PR11MB5739.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(230273577357003)(38070700009); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: e5WnaGfRnjMFiIBR4v9g4IefBZmZS2iwqWzzv8RWqNyRTmukixQyowplNhWKDuLva1tQYJTsdME+sbxa6NNb/rL+1/b9jGOhOfMFAeCYt6zWKJIbcI9aBteAuLsoDNtm2zMifB+4tvGGf2Z8tIPZQ2W972ADJlEX+XA769YAz34hk3WiIPiQr+4LSqIAOIoNKGzlRX/YOlIqx8cnXzVswxaN93F1ajYjTNQOowgPVvDuIeRkT6fANLIMYc6gN5jSIEUm0vu5m2JVNLYE5/Ay6bc3UiLVM2K+hkYx+PVs4TElVSBoILsFAR9EExHczXC0AoXDevfKNP/9p40ojJgknia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BnBi6pHR9gkJpzBOYGEiQgv90xBEKTQurGFJyBFlWBK0Mu6/lggOFdvAcoyer5ir/K84RbhCw6CQ9t3dhV7ooiQWvkc1hHrfpowFn2RsBjrJxZor+Su6XhLY9cxUoQIzBvDTiysWwqfGU8FN/+eBZdT8kq2TXthgmDCEmGB061
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="2.16.840.1.101.3.4.2.1"; boundary="----=_NextPart_000_0327_01DA64D6.87318780"
MIME-Version: 1.0
X-OriginatorOrg: entrust.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: CH0PR11MB5739.namprd11.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 78770d45-dc0e-4a64-6f41-08dc331ff6c4
X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2024 20:59:15.6250 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: f46cf439-27ef-4acf-a800-15072bb7ddc1
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 7vjr0I4niYA0y66zD7U7r18dRPkedQ2GK4g2CfEVagr1M8vyrHzcHi4MAfkWVCj0PspAEtU8XquEpuJ8y19Fg9xi1I9C4WCZq3itSeP5ZQI=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB6029
X-Proofpoint-ORIG-GUID: pxhdtqxWO91nOg6ZifObcFvbryW103NC
X-Proofpoint-GUID: pxhdtqxWO91nOg6ZifObcFvbryW103NC
X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-21_08,2024-02-21_02,2023-05-22_02
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 adultscore=0 lowpriorityscore=0 spamscore=0 impostorscore=0 priorityscore=1501 mlxscore=0 clxscore=1015 mlxlogscore=804 phishscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402210164
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/PMQtkxKiz687-fc_sgOuG6-pfXU>
Subject: Re: [CFRG] [EXTERNAL] Re: (no subject)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://mailman.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://mailman.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Wed, 21 Feb 2024 20:59:35 -0000

Hi Watson,

 

I do actually agree with you that if we *could* find one single hybrid KEM that works for all usecases, then that would be great. I don’t disagree with your goal, but I also don’t think it matches the real world.

 

To take an example: S/MIME (either public or private trust) – or more generally, custom applications built on CMS – which are still typically RSA-only ecosystems because ECC never really provided the economic incentive to replace fleets of smartcarads, “don’t fix what aint broke” etc. Plus, many of these environments require FIPS or CC crypto, so any change to crypto code needs to go through re-cert, which is like 18 – 24 months right now. After that, stuff needs to go into pre-prod environments which can have QA cycles as long as 2 years, then you’ve gotta line up with a planned CA expiry or other hardware refresh cycle (some CAs we deal with were, for example stood up in 2005 and have an operational lifetime until 2035). So it’s like 3.5 – 6 years until crypto changes actually see production. I am so jealous of people who can implement shiny new crypto and get it into production within the same year. So jealous. You get to deal with the easiest possible version of this migration problem.

 

For those stubborn ecosystems, if you want to do a PQ migration in an even remotely graceful manner, it’s gotta be adding ML-DSA and ML-KEM to your existing RSA-based infrastructure without making any changes that would require the RSA part to undergo FIPS / CC evaluation again. That cuts down time-to-deployment of having to wait in the FIPS / CC queue, and it gives you options to bolt on now and use opportunistically, rather than have to wait for your CAs to expire naturally, or the last client in your ecosystem to get upgraded.

 

I agree that it would be really nice if everyone could make X-Wing work, but I just don’t see it working out that way.

 

And there are usecases here (like public-trust S/MIME) that are undeniably “Internet”, so I don’t think the IETF can reasonably turn our back on providing the technical building blocks for graceful migration.

 

---

Mike Ounsworth

 

From: Watson Ladd <watsonbladd@gmail.com> 
Sent: Wednesday, February 21, 2024 2:31 PM
To: Mike Ounsworth <Mike.Ounsworth@entrust.com>
Cc: Andy Lutomirski <luto@amacapital.net>; Filippo Valsorda <filippo@ml.filippo.io>; CFRG <cfrg@irtf.org>
Subject: Re: [CFRG] [EXTERNAL] Re: (no subject)

 

On Wed, Feb 21, 2024 at 12: 13 PM Mike Ounsworth <Mike. Ounsworth@ entrust. com> wrote: > > > Why? We have a hybrid KEM. That's all you need. > > > > You’ll have to forgive me for not knowing which single one you are 



On Wed, Feb 21, 2024 at 12:13 PM Mike Ounsworth
<Mike.Ounsworth@entrust.com <mailto:Mike.Ounsworth@entrust.com> > wrote:
> 
> > Why? We have a hybrid KEM. That's all you need.
> 
> 
> 
> You’ll have to forgive me for not knowing which single one you are referring to. At my count, we have at least ____ well-motivated candidates for “the one” floating around.
 
Pick one that is a IND-CCA2 KEM. What's a protocol that can't use it,
but could use another?
 
Remember: to deploy you need a new identifier, newly generated key
material, recipients upgrading to accept it and new code to implement.
That's true for all of these, and the costs aren't much different
depending on which one. So why should every WG go pick a different
one?
 
> 
> 
> 
> ML-KEM + X25519 with X25519 CT and PK (“X-Wing”)
> 
> ML-KEM + X25519 that includes both ciphertexts but not public keys.
> 
> X25519Kyber768 that only explicitly includes SS’s because PKs and CTs are already bound in a protocol-level transcript (ex.: draft-ietf-tls-hybrid-design)
> 
> SecP256r2Kyber768 that only explicitly includes SS’s because PKs and CTs are already bound in a protocol-level transcript (ex.: draft-ietf-tls-hybrid-design)
> 
> Sntrup761_X25519 (“Chempat-X”, draft-josefsson-ntruprime-hybrid-01)
> 
> OpenPGP, LAMPS, and probably JOSE / COSE will need to support ECDH hybrids
> 
> LAMPS will probably need to support RSA-KEM and/or RSA-OAEP hybrids.
> 
> 
> 
> Each of those seems well motivated; as in, someone is going to need that and will do it with or without IETF blessing. Better to get IETF / CFRG review and standardization.
 
TLS doesn't need to do the X25519Kyber768: we did it because it was
fast and secure *for TLS*. I'd prefer to see a solution that's
general, called an IND-CCA2 hybrid KEM, and have protocols interface
to it in a way that makes any other KEM drop in: that's way safer for
everyone.
 
> 
> 
> 
> I honestly don’t see how you get from that list to “We have a hybrid KEM. That’s all you need.”
> 
> 
> 
> 
> 
> If CFRG wants to review each one as a one-off, then cool, that could work. But saying that CFRG will produce the winning ML-KEM_X25519 combiner, and any protocol that wants something else is wrong, is … IMO naïve.
 
Having a thousand flowers bloom means cryptographic libraries are more
complex and runs the risk of them exposing terrible combinations,
particularly if they implement special cases like concatenation that
are not safe for all protocols. The nightmare scenario is a generic
combination API getting expressed by some widely used library,
inviting proliferation of bizzare combinations as people build stuff
and have to interop. Meanwhile a IND-CCA2 KEM functions like any other
if the protocol is designed to accept it. In my view that's what we
should aim for.
 
Just as we moved past every protocol putting together MAC and block
ciphers independently to a uniform AEAD registry and interface into
which any faster, stronger, cheaper algorithm should slot, we should
do this for KEMs.
 
Sincerely,
Watson