[openpgp] Re: ML-KEM and ML-DSA secret key format
Aron Wussler <aron@wussler.it> Wed, 26 February 2025 13:42 UTC
Return-Path: <aron@wussler.it>
X-Original-To: openpgp@mail2.ietf.org
Delivered-To: openpgp@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 6C8841D2E71 for <openpgp@mail2.ietf.org>; Wed, 26 Feb 2025 05:42:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 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_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietfa.org (amavisd-new); dkim=pass (2048-bit key) header.d=wussler.it
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietfa.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RwNIxBw8IwLh for <openpgp@mail2.ietf.org>; Wed, 26 Feb 2025 05:42:57 -0800 (PST)
Received: from mail-4022.protonmail.ch (mail-4022.protonmail.ch [185.70.40.22]) (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 045B91D2E42 for <openpgp@ietf.org>; Wed, 26 Feb 2025 05:42:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wussler.it; s=protonmail2; t=1740577375; x=1740836575; bh=23FypxVGFWYbI+z+42nMFxTiuYAM+YVTV2c27AYdnkk=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=Dz9cjDB8IGg9v2TmeMGjysu2kBXOwar7Iwrnct4iAe7mtK7VSY2Ga9YY+1A8Kma9n nXOp1MxCY5/TSgDsD6Dhd5HEZZTOBTyL5ImUKnL5MzxLcgugbbqSL/2FFSPBgqGHvm UNje/o9tZxiG6MT45o0tk88HIAxTGfndgUXCzunT8qNEL2vUHsY9gPfN7htEun7EQ3 ShK8MqUzDG9UHMu7OymTrwXQFNqSi66mhhUnBB501hG6hiWBQvCU2FD9d4yXcvwsse 0xQnacv1oWYyGwtxGfeoEyaUvLkg8GGEHjnZqetZjRXRWr6L2mrFGFOBrRAO136hyC MlWWFqxCC7zAw==
Date: Wed, 26 Feb 2025 13:42:52 +0000
To: Stephen Farrell <stephen.farrell@cs.tcd.ie>
From: Aron Wussler <aron@wussler.it>
Message-ID: <oa-f1kLfj5SY47NIE1x6kqQxWfe-oQZUOsKevSWMfmafdVuLPL06GEWJR9wIjny9tb6FuaGd98pTESiVGrHP2tzWTCYgg_chitIqcGF2Eks=@wussler.it>
In-Reply-To: <9ca7ac72-e56b-4ac8-a894-44e31718c046@cs.tcd.ie>
References: <vN75HSFXALBJQMd1A60IEhI_gqmw27cvjvVTK6APPoK-NjROf5a0KTPiRtUC3G04hrX_pb1Yzpu7n2R90yIVYbqJZpRPkkyxLbH6cy7tpjw=@wussler.it> <9ca7ac72-e56b-4ac8-a894-44e31718c046@cs.tcd.ie>
Feedback-ID: 10883271:user:proton
X-Pm-Message-ID: 94996611a4376b1c8e819ddc14c74d457809bb2f
MIME-Version: 1.0
Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha512"; boundary="------8cd6833b491479064e0bc283c9f93a832d94c4a41087301bdba0a3a8d184d835"; charset="utf-8"
Message-ID-Hash: JSMCJP5LVBXXYNW56K465553TRARFLK6
X-Message-ID-Hash: JSMCJP5LVBXXYNW56K465553TRARFLK6
X-MailFrom: aron@wussler.it
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-openpgp.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: "openpgp@ietf.org" <openpgp@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [openpgp] Re: ML-KEM and ML-DSA secret key format
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/M4Nf2uL0_3uJw7t39exYZjdMyrA>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Owner: <mailto:openpgp-owner@ietf.org>
List-Post: <mailto:openpgp@ietf.org>
List-Subscribe: <mailto:openpgp-join@ietf.org>
List-Unsubscribe: <mailto:openpgp-leave@ietf.org>
Hi Stephen, I personally think OpenPGP has a different usage and public than LAMPS, and while factoring their decisions does make a lot of sense, I would like to know if there is any strong usage requirement here. Many online tutorials explain how to import an existing OpenPGP key into an HSM, but haven't found much about exporting one, thus why I think that the "always being able to import" brings more value than "always being able to export". Said this, I might be living in my own bubble, know little about OpenPGP for software signing, and would like to explore the requirements on the list! Cheers, Aron -- Aron Wussler Sent with ProtonMail, OpenPGP key 0x7E6761563EFE3930 On Wednesday, 26 February 2025 at 14:31, Stephen Farrell <stephen.farrell@cs.tcd.ie> wrote: > Hi Aron, > > I've been watching the LAMPS discussion on this, but not reading > it in detail (too many mails/options;-). Shouldn't we wait until > LAMPS has reached a rough consensus on the topic before we make > a change? We might or might not want to land in the same place, > but it'd seem odd if we don't factor their conclusions into our > discussion, and they don't yet seem to have reached a conclusion. > (Or did I miss that?) > > Thanks, > S. > > On 26/02/2025 11:51, Aron Wussler wrote: > > > Hi everyone, > > > > At the interim meeting on February 10 we discussed the ML-KEM and ML-DSA secret key format, stating we'd prefer to keep the seed format even though LAMPS is reconsidering this choice because of HSM manufacturers. > > We gave it another thought, and we'd like to collect more explicit consensus on this point, also considered Simo's thread on the list [1] that opened right after the interim. > > > > We would like to consider the following two options: > > > > ## Keeping the seed format only > > This is the status quo in the specification. > > - It makes it very hard to introduce a different SK format in the future, because we only use fixed length. It could be somehow inferred from the packet length, but it would be astonishingly hacky. > > - Importing keys into HSMs will always be possible (no matter if expanded or seed, if tooling is available) > > - Exporting keys from HSMs that support only expanded format will not produce a valid OpenPGP key (the key can't be rendered as the standard seed wire format, but they could be copied to a similar HSM) > > > > ## Allowing both seed and expanded format explicitly > > Proposed text: https://github.com/openpgp-pqc/draft-openpgp-pqc/pull/171 > > - It makes both formats possible, preferring seed format > > - Adds complexity and failure cases > > - Importing keys into HSMs will sometimes fail (HSM supports only seed, but key is expanded) > > - Exporting keys from HSMs will always result in a valid wire format > > - Not all current crypto libraries accept the expanded format (one of the reasons why it's optional in the proposed spec) > > > > We have considered the option of adding a "version" or "type" byte that leaves the door open for a future standardization of another secret key format without doing it directly now, but I see only disadvantages in this: > > - If we never use it, it's a useless byte and additional failure case (unknown value) > > - If anyone ends up using it, it will bring all the complexity as defining two formats now, plus the chance of having little to no specification or guidance > > > > For reference, this is tracked in this issue: https://github.com/openpgp-pqc/draft-openpgp-pqc/issues/169 > > > > Please provide feedback in the next two weeks (until the start of IETF 122 on Sat 15.03). > > > > Cheers, > > Aron > > > > [1] https://mailarchive.ietf.org/arch/msg/openpgp/wborm6DvCotyZPzs-kPdyXPtoS0/ > > > > -- > > Aron Wussler > > Sent with ProtonMail, OpenPGP key 0x7E6761563EFE3930 > > > > _______________________________________________ > > openpgp mailing list -- openpgp@ietf.org > > To unsubscribe send an email to openpgp-leave@ietf.org > > > _______________________________________________ > openpgp mailing list -- openpgp@ietf.org > To unsubscribe send an email to openpgp-leave@ietf.org
- [openpgp] ML-KEM and ML-DSA secret key format Aron Wussler
- [openpgp] Re: ML-KEM and ML-DSA secret key format Stephen Farrell
- [openpgp] Re: ML-KEM and ML-DSA secret key format Aron Wussler
- [openpgp] Re: ML-KEM and ML-DSA secret key format Simo Sorce
- [openpgp] Re: ML-KEM and ML-DSA secret key format Aron Wussler
- [openpgp] Re: ML-KEM and ML-DSA secret key format Simo Sorce
- [openpgp] Re: ML-KEM and ML-DSA secret key format Michael Richardson
- [openpgp] Re: ML-KEM and ML-DSA secret key format Daniel Huigens
- [openpgp] Re: ML-KEM and ML-DSA secret key format Heiko Schäfer
- [openpgp] Re: ML-KEM and ML-DSA secret key format Andrew Gallagher