[CFRG] Re: [lamps] Cross-testing update on LAMPS Composite and cfrg-concrete-hybrid-kems

John Mattsson <john.mattsson@ericsson.com> Thu, 16 October 2025 14:22 UTC

Return-Path: <john.mattsson@ericsson.com>
X-Original-To: cfrg@mail2.ietf.org
Delivered-To: cfrg@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 9E83875014DC for <cfrg@mail2.ietf.org>; Thu, 16 Oct 2025 07:22:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 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, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_NONE=0.001, TRACKER_ID=0.1] autolearn=unavailable autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=ericsson.com
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 2j1u2MRtm-G5 for <cfrg@mail2.ietf.org>; Thu, 16 Oct 2025 07:22:47 -0700 (PDT)
Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazlp170100001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c200::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 21C6C75013C3 for <cfrg@irtf.org>; Thu, 16 Oct 2025 07:22:45 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tiAik3EitYoON/mnXfdSifzbEN6kEOviPGEa0+AFqaSmZOtgNbiX6R1OknArCl1CwCjoDPhirS4SEggSdI4b2AZV6/Qvv/EnIpac1zH/en1eAJE0J7iijbxQd6/ug7nc9kFv2Pb69ch8KKrS+Yu9Uh3Y+qWBJsJRSH6f66YRPymU4qLtpQ4pOFS1qjWmJp8CUcofm3+bM59VpjAoSC2DpfVxjj5jHKEgSvwkXLbA8cA/9H5OL0VKScQBW0bcOeZt8KZPqVPziw+RN3Xhd9x8Ie8VyH5n2WBjZ5kVXsI+1N41ZmJhhHBOVDENHeFAkyAl81Ohrbwa2atU+guYS1asbg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=HCznnvLK4k0LjdzijsOqN4MdoL4HIFexI3o1HbBMtrs=; b=B1RKImgdQVVFonTIkxNaBl9RHg1kEeVBGmMCuqMCQ0wVobHDB2+b/do+4AEgVgPBxkNKoz4lYF6iTok2sMPS9Unh4f3Zx8PgnasCl4IQ1FyG2K0FYYcrTN9F3/FWDVJVd0BoAXLtd3yPGDycz5+ckIkwZaGbc8lyL+8KOUQ3Hy8x/W7U/F+B6/rG679UsE3Mm00ujFTPJffpQqxKW/bd1BxQegS2ANEJk9BsIVi0YKhzaCPbUxjx1FHvu6qgzgpo5VpjwcRuvDPrFYS9GQGq56g9WrY9UBc8VNE1d6ckfLCSyYmKXzwsy6m1JzTlyvZJZVRctyTV4fBn49iOFlB/WQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HCznnvLK4k0LjdzijsOqN4MdoL4HIFexI3o1HbBMtrs=; b=QNF85qi8bqEdLy8DBCOpdRIAmRdX0m7haY/OW0JprnVxqDGhiKiAhPntdu0S9cykUCqcHujVrfLw/LZuiOdMoxTP5sQbKYaBmBJtSL13E1ce7PPkhlGe81svX5OrD5cbx2OTlsE5sOkWlWEAVSo8kY8XceW62OihDCSdDKL+cCnCu05kkmJd40zIz/KopB0X/R3h7a2wZj3afeWHTxwJ/UKY0x5Ud/Qiag5LNL/ibfrc2AyS2Jg0WHEE6vnyLdaivEQezbyHcMG75k8+ktDuWCX7rTBK4d9woVDuCvgkh+WHc7W0EXRzvz8z4t2ErZ62cDsO1iKAEj22G43RQ8bArA==
Received: from GVXPR07MB9678.eurprd07.prod.outlook.com (2603:10a6:150:114::10) by DB9PR07MB7849.eurprd07.prod.outlook.com (2603:10a6:10:2a5::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9228.11; Thu, 16 Oct 2025 14:22:37 +0000
Received: from GVXPR07MB9678.eurprd07.prod.outlook.com ([fe80::bcf3:3f45:888e:a4b8]) by GVXPR07MB9678.eurprd07.prod.outlook.com ([fe80::bcf3:3f45:888e:a4b8%3]) with mapi id 15.20.9228.012; Thu, 16 Oct 2025 14:22:37 +0000
From: John Mattsson <john.mattsson@ericsson.com>
To: Mike Ounsworth <ounsworth@gmail.com>, CFRG <cfrg@irtf.org>, "hpke@ietf.org" <hpke@ietf.org>, LAMPS WG <spasm@ietf.org>
Thread-Topic: [lamps] Cross-testing update on LAMPS Composite and cfrg-concrete-hybrid-kems
Thread-Index: AQHcPqE4m8wiQZMhVk+WXEklBwqCuLTE0bUR
Date: Thu, 16 Oct 2025 14:22:37 +0000
Message-ID: <GVXPR07MB9678FDBAA074E15BD532135C89E9A@GVXPR07MB9678.eurprd07.prod.outlook.com>
References: <CAKZgXHrTWjv6Wz_yRkHBdOgMdJ3nweozoQoizZrGb2Fh5=xj5A@mail.gmail.com>
In-Reply-To: <CAKZgXHrTWjv6Wz_yRkHBdOgMdJ3nweozoQoizZrGb2Fh5=xj5A@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-reactions: allow
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ericsson.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: GVXPR07MB9678:EE_|DB9PR07MB7849:EE_
x-ms-office365-filtering-correlation-id: ff0d41b5-d9db-4817-5ecd-08de0cbf74d4
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;ARA:13230040|376014|1800799024|366016|13003099007|38070700021|8096899003|7053199007;
x-microsoft-antispam-message-info: UXRz+btH/2my/apN0RLW2qeHdR8ep4Gjt3hI4XkGJnLXiTCGh8NMFkC9wP9GPz09+3YUo4d5ysyNwglch1jg6/ZSZ5FjNkf4kqsC6KOQXazrOcPz6Nb9nDzLBIEhjC0CLb6MsxHl01EfUxuYmVOIfvR7naPNHT0p3FGKBrjPSVTu+OUAe5wzgi811/W6kqrpd0oJjFtVKuY8yjCyuoWnv4slap6s+t5+O+YRkYNSHjOcwIsZc3VJTsA2/SsgpHYThdE053kObpwdNTw85ySmJKhYlahFKro0hN+9x8IAV5/rn6a9sba6/XX6TcczkCAaMpjMx+3CPor3Wh0X3dVfRrk36t9uS96aLmhWGyYPn9yhSiPtXnqsUQgZcfeGJY9QQ6PAJ5IcstIsvz+x/xvZBWeECgktwGpUudnus+QlAldzcGO7XNGU6lUAzpoTXdEM+3nre7PIh5XYN1MWYxqATaDQqHGwrnBfERqYOYW7JFTq0BAxhH3rw5tRsP6LfjxXJ3v0E2R91Vuufi09CqCO7p3iO6Dhk52iuvpdYLV6IqYAMsVycXIOc6Ce+a3MO+lTr6JGWHgMQVmPNAyrPuf3qak3gU9XeAPnKkkL7Zcs0cVkq2bow4EEmlP+tqDTEhrQtHOTMmJLR+cPBwvl9jdAntZpWjLLuOYcty9oyocF55cTKB6Y5OBdTRybLo704Tq10a6wMGHZO7mugPs7CrFthzq7/iyKBKqCsjMKsMedGlr8qgdP3TgtKGW0l3dyE5EuwXNeeXJhzdA85MB2EKaeZwlPtILvYo1A8Lghc15imqP2v92eDuEAEbOWrk51ydH+/irLyfQWPX62kYnBNUZg+SJQlRn5FohejaRAApMc7cG85HVEYQC5h32Wt70c/wSTxR0YmuOB0ZINNvb0U3yyRBlwK7/t8RaRQqEwmOcoMsEpIqaE05fZif1cQLnQhZtlTf7aB5z5LTdSg2sl27iAWLAXnGFhBPH6zpGtwWgEdnPwgVOEYfBzzvWBn9opOBASinBvmN0cCe7vDcDLJXRY5t1wkS83uun7Wk/Wk2udnnWmJZkPDHU6HGo7BE68qQ37QpsLtMAxvWvgEi3qexRkSSsqTHYJccXKMjxzZqPoYAe55MsGd8vf/yw+vwC1YyJnENad6S8KL5IrCiQsqfkEfbZJVvt2nOeFu/eAYUOSUsOFgwILMQzJ8YpHRlVMa7c2nftjOhlogbe5As0ekdtGhxpn/qZZwUSS1wMcFkNCkJnfT7bKPozhBMSG/v9doKIo9dwCbyuKx2SQKprVaRoFV/ph0nFcZB+IzOdDJOdfYfIxPfkIsBNllMMkQeZDVXbLpz9jEoVu9G+AZF0DGtSpzbEtT4+nydsbyN37pQJwuSTvFogwXtD4kKNTT0jkCKpJg4GmeE2JvQZiwjZ2a0/+S2OqFcCLmkPyLJ4Pz2BjExSj72rarbPwrFlgua6Nvr5jMaTrTI+xYTB3PVerUKgki54YROns2u7Glty5dAs9NSYnGeG4osqE4TsNxrQvqzpmJTaDL94FRN4Uh5nOzsv/zQ==
x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GVXPR07MB9678.eurprd07.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(366016)(13003099007)(38070700021)(8096899003)(7053199007);DIR:OUT;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wcq8S0Nf9GK+G3Zv+LxQ78BkvPjMBGRLUIjIb8xUJKyNit2+Gc2C6IN1b0n5yBXYXiocdPztW0S/2NMBiuxY1PIZ/osJBKygiLV+w4pAgA6IRru/dQp4O++IguJG+rMKuCE6xil3j+xSUQ5QyEc6fCAFtbd9YSsrjxWaez80aity6ckp8ZbJHNPGRmt+kqzpVqBrtALha1ZFRqQr3XYhDI2X1CzSwiNnv4XjXn7/QFqZuI4AxqrINWLsd//a12xQTnC/XL1bV3H/nNZs1LzhWboEFRsMtkh9P8ggt65B3HvLNgoNaT87kPUjw/2tKFiW5c9cOS0+H+jY0jX1y+t+PRyTjBOcok+2dlWVz86WfkFsTV4rQC1S88ZllC1Lileg35FckNi9IBV+FVukA0qcE/ApV0LbWmFJa/GGWJCVo583xmFe5ga2cbhjbPiKr8LZz8JT4EREzyYDeRaLXSpc/4KnuhMpFpixl/3A0/FjmQ92w/iJ1Vfraw8DTqHODZMaEEBKz0p6w2TL/DHcAGirIjRwaBwPZpqlRuhDThxR1lMXqfAgayx/uQ0Cz9FzZbkoDnxsazk06SSfoyt7cf28duX1sGwRuso1pC05dr925pcQQs1LcYuZCF7YDVsAvqyvYo=
Content-Type: multipart/alternative; boundary="_000_GVXPR07MB9678FDBAA074E15BD532135C89E9AGVXPR07MB9678eurp_"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: GVXPR07MB9678.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: ff0d41b5-d9db-4817-5ecd-08de0cbf74d4
X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Oct 2025 14:22:37.1292 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: ZzrNlsDtH3H8+tIimL61W+ZzLDT+dweCGIPm84grFo70soRHIT72QN2RBl3ayy2LrdBo3GDNezHDOBzyWb4wbUM8RthFithBD5E6NpDMHgE=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR07MB7849
Message-ID-Hash: W6JYDJPS7VF3MXSJ3SQAZGCY3XPYMLG7
X-Message-ID-Hash: W6JYDJPS7VF3MXSJ3SQAZGCY3XPYMLG7
X-MailFrom: john.mattsson@ericsson.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-cfrg.irtf.org-0; header-match-cfrg.irtf.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [CFRG] Re: [lamps] Cross-testing update on LAMPS Composite and cfrg-concrete-hybrid-kems
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/v9mcyvfj4EUcSPR7UWbFgoxfnkc>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Owner: <mailto:cfrg-owner@irtf.org>
List-Post: <mailto:cfrg@irtf.org>
List-Subscribe: <mailto:cfrg-join@irtf.org>
List-Unsubscribe: <mailto:cfrg-leave@irtf.org>

Hi Mike,

draft-ietf-lamps-pq-composite-kem-08 states:

”At the time of writing, [SP-800-227] is in its public draft period and not yet in force.”

I think the first check should be to check that draft-ietf-lamps-pq-composite-kem is compatible with the final version of SP 800-227 which is now “in force”. As stated in FIPS 203, SP 800-227 provides requirements for the use of ML-KEM in applications.

Cheers,
John

From: Mike Ounsworth <ounsworth@gmail.com>
Date: Thursday, 16 October 2025 at 15:31
To: CFRG <cfrg@irtf.org>, hpke@ietf.org <hpke@ietf.org>, LAMPS WG <spasm@ietf.org>
Subject: [lamps] Cross-testing update on LAMPS Composite and cfrg-concrete-hybrid-kems
Hi CFRG, HPKE, and LAMPS.

This is just a status update.


draft-ietf-lamps-pq-composite-kem has run out of time and we're gonna ask to start WGLC within a few days (the composite-sigs has passed WGLC yesterday).

One outstanding item was alignment with cfrg-concrete-hybrid-kems. I just pulled the latest test vectors from  https://github.com/cfrg/draft-irtf-cfrg-concrete-hybrid-kems , ran them through a script I wrote that bolts on to the lamps reference implementation to convert a cfrg-concrete-hybrid-kems test vector into a lamps-composite-kem test vector, and tests them. Results: we are cross-compatible on X-Wing, but not on P256 (and that's after hacking my script to use the CFRG label not the LAMPS label, so there's clearly some other bug at play, but I have no idea what, so of course I assume it's on the cfrg reference impl side 😋).

MLKEM768_X25519:
        ss from CFRG test vectors, and decapsulated ss
        60447f94b1e3675f09dbc4bc1abe8eafa14aed544547637aa980c3822ddd8578
        60447f94b1e3675f09dbc4bc1abe8eafa14aed544547637aa980c3822ddd8578

MLKEM768_P256:
        ss from CFRG test vectors, and decapsulated ss
        0a0768e2475eb7897799ac2e5d3abae0632792cd3d2221ebac2c04fa7cd973fc
        f726c75f8e63da0f59f28130622ef2d67038000d959d632e7053f9b3383be9d3

There's also the open issue of aligning the KEM combiner domain-separator labels, or intentionally not aligning the labels, which is being discussed here: https://github.com/cfrg/draft-irtf-cfrg-concrete-hybrid-kems/pull/15



LAMPS has run out of time, we have to start our WGLC. So this is mostly an advisory that if anyone in the HPKE community has comments on interop with LAMPS, you should raise them during the LAMPS WGLC that I hope will start as soon as I post a new version.


-Mike Ounsworth