[openpgp] Re: Size of ML-DSA Secret key in draft-ietf-openpgp-pqc and other considerations
Simo Sorce <simo@redhat.com> Tue, 11 February 2025 14:13 UTC
Return-Path: <simo@redhat.com>
X-Original-To: openpgp@ietfa.amsl.com
Delivered-To: openpgp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6C90FC3EFF05 for <openpgp@ietfa.amsl.com>; Tue, 11 Feb 2025 06:13:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.247
X-Spam-Level:
X-Spam-Status: No, score=-2.247 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.148, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_NONE=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 (1024-bit key) header.d=redhat.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 yWpJ_lXJ8Cij for <openpgp@ietfa.amsl.com>; Tue, 11 Feb 2025 06:13:25 -0800 (PST)
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 ietfa.amsl.com (Postfix) with ESMTPS id 45940C37E169 for <openpgp@ietf.org>; Tue, 11 Feb 2025 06:13:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1739283204; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XgDp2OovS7ymj5Na9JM1H3IbcZ/6CbzajiCpT4pdp/E=; b=OSpcD6qjL2pgWtdlAI5TvyL03I43xgyPSRW2vIDjckAQFAeUUcjnfvkwZh+hLB014IFmYJ CXJenRCze0LO51/8z3bTRY7W5KlKOzafHO4JcrtFDprHy2Z5CY1YV02DWv4YJ2DUBplXYY 8DEiYk6tOSZ37JsG5CMdPqlQ3wqboyI=
Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-561-n6B_bfnyMRKCkRxxUWxA_g-1; Tue, 11 Feb 2025 09:13:22 -0500
X-MC-Unique: n6B_bfnyMRKCkRxxUWxA_g-1
X-Mimecast-MFC-AGG-ID: n6B_bfnyMRKCkRxxUWxA_g
Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-6e44e2f430bso61301406d6.1 for <openpgp@ietf.org>; Tue, 11 Feb 2025 06:13:22 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739283201; x=1739888001; h=mime-version:user-agent:content-transfer-encoding:organization :references:in-reply-to:date:cc:to:from:subject:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XgDp2OovS7ymj5Na9JM1H3IbcZ/6CbzajiCpT4pdp/E=; b=UXoyzFBXZ62gTFIWwpGwxVWbtxJiFxwiJZ1C1+IZL+5Jf8FnZB/LzCfFZ45jBBwPcZ umO1e0tU3oBY+0IAie7aq7HxUpWJrc5GaG7WiNpBT6VhGHgJy6Nxps3u32Q4nG0RAGi3 98iUPfk2b+a151B4215O5F9A8/PTRP3a8EM9aIlQ5mwHOwXmDb1S4ToVhYbiCUYI7D3b yGo7PVi2PHoml4ZKch1TOoxr06770jz1rxWsgTICGgBIQ1XzcP2/xFLY5qNvouVmkWzJ v79G0TMhg8Kg8AV28tCl0nEyTHL0ueNZ/dREgfxYA0YjnMuU/k7L/q9WdarXyj96sNDt KOgw==
X-Gm-Message-State: AOJu0YzXDswlMqOiK6OB2KBseR9XlKUHap6z/QkblArQnYJtHrb8BNFs kLp0n0BAHwpIX7+IhQL5hR8Af5VlKLuiwL2vQB+L+GFSfCZwkzsDi6h3opKzSLICISmXFkaPmJn WXpFRbVVPUHTvevxTP/ZD3FIjFjcjXLVqfzJzFe+j2Vo0BZ3zkuxUIA==
X-Gm-Gg: ASbGncu/iS0t4Xnn0U9DMJzaSN0FwSirRyXyXN3dnmWYhqn5iZ16cum4IWPQMgANIxP u0NfS7IwIytngW6AZXOKiAJ7Vs8TzFMWmFNiAFm84hT3ZrIIsEXbKVbHo2WTEJbO2yRgrQdhb3G Wy796rMvqb53Z2NdxM/HJn9YbwyJdL0YEQD8e4wCqwNCq1F47bIEg7MzPyfpXe0PFSQJFjKTITw YWd/badH2WQRcvbufda6MPOcnkdCame73VnUix8MFHn4zFErDWiJzaLLQ8pUY8wjNQNDBuHvRY=
X-Received: by 2002:a05:6214:2262:b0:6d8:a9a6:83ef with SMTP id 6a1803df08f44-6e468063c51mr56887126d6.20.1739283201665; Tue, 11 Feb 2025 06:13:21 -0800 (PST)
X-Google-Smtp-Source: AGHT+IHgP5eMsWsvl3ClRA+9m2/aZjT0zx17iBwaHMbXfiwcIlipbsQIk/Fhg29D/EBAzifj9hVHcA==
X-Received: by 2002:a05:6214:2262:b0:6d8:a9a6:83ef with SMTP id 6a1803df08f44-6e468063c51mr56886786d6.20.1739283201280; Tue, 11 Feb 2025 06:13:21 -0800 (PST)
Received: from m8.users.ipa.redhat.com ([2603:7000:9400:fe80::986]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6e45db0891asm29323596d6.67.2025.02.11.06.13.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Feb 2025 06:13:20 -0800 (PST)
Message-ID: <5cb2c33dc3ac862d7798d8f540e7974f75f6e77f.camel@redhat.com>
From: Simo Sorce <simo@redhat.com>
To: Falko Strenzke <falko.strenzke@mtg.de>, Aron Wussler <aron@wussler.it>
Date: Tue, 11 Feb 2025 09:13:20 -0500
In-Reply-To: <f27496bb-090a-42db-92ac-c2adff60faa5@mtg.de>
References: <f8e34cda2473b36fa3db819fd09fe05ed8fdc35d.camel@redhat.com> <0NnLQ5QK6Pu-Z6OJUjwKuU3n5joUWg5LWhh5PwIzZIKfqD-vMkv5fxt2oZJKeA1MZP0leh6LGwLzjH6CtFf02Pg0KNkknx4LdzGmHhEbTsk=@wussler.it> <2ef0cb6899f56e5d8f50aa0b3aa3238d64fae281.camel@redhat.com> <f27496bb-090a-42db-92ac-c2adff60faa5@mtg.de>
Organization: Red Hat
User-Agent: Evolution 3.52.4 (3.52.4-2.fc40)
MIME-Version: 1.0
X-Mimecast-Spam-Score: 0
X-Mimecast-MFC-PROC-ID: hfW_97L43S0hqPXkibxqfXsXJorBny0FR6FqPFtuYj0_1739283202
X-Mimecast-Originator: redhat.com
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Message-ID-Hash: OWL7HMCQOFMEV3QOTORDJWVPUTA3U3SL
X-Message-ID-Hash: OWL7HMCQOFMEV3QOTORDJWVPUTA3U3SL
X-MailFrom: simo@redhat.com
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: Size of ML-DSA Secret key in draft-ietf-openpgp-pqc and other considerations
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/w4IUFaL-Jh4d5U7qiYkTRZphWok>
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>
On Tue, 2025-02-11 at 08:09 +0100, Falko Strenzke wrote: > Hi Simo, > > Am 10.02.25 um 21:33 schrieb Simo Sorce: > > Hi Aron, > > > > On Mon, 2025-02-10 at 17:14 +0000, Aron Wussler wrote: > > > > > Note that the specification is only for the wire format, and transferring among identical tokens will still be possible, no matter the format we choose. > > It think this might come to bite in the future, but I do not have the > > energy to argue for it now. Once we'll have interop issue I'll let you > > guys deal with it :) > If the expanded format turns out to be needed in the future, it could be > distinguished based on the length of the secret key material. It could, but it will be danger territory to do that, it is quite brittle, and there is a risk applications built today won't notice and take the first 32 bytes of the expanded key and try to use them as the seed. Of course this would be a bug but it is not a great place to be in anyway. > > > > > 2. Code points > > > This was discussed at IETF 117, 118 and 119. We concluded that this could be done in a separate doc, adding a further codepoint for ML-DSA (or ML-KEM) as standalone when the WG feels ready for it. > > Just to be clear the reason I am asking is that CNSA 2.0 "seems" to > > exclude hybrids (I know, not my choice, they also do not allow SLH-DSA > > which I would very much prefer for long term signatures... ). > In their FAQ > <https://media.defense.gov/2022/Sep/07/2003071836/-1/-1/0/CSI_CNSA_2.0_FAQ_.PDF>, > they say that they don't require hybrids, but don't exclude them. I hope that will be the case. That said I already have another classical signature to apply for historical/compatibility reasons (RSA), so a hybrid signature is a net overhead for my use case, both in having to manage yet another keypair, and in computation overhead in the HSMs. > > > > I think I can "work around" this by simply ignoring the spec and > > considering a signature valid even if the EdDSA part is unchecked, and > > live with that. > From how I read their FAQ, using the hybrids that are specified in the > draft should be fine with CNSA 2.0, even if both parts are checked. Maybe, but my problem goes beyond that, see above. > > > > For tokens that support only one key this is more challenging, but I > > guess one of the two keys will have to stay on disk and be less secure > > until a new spec that allows for "pure" algorithms is provided. > Hardware tokens might very well support both algorithms. As far as I can > see, at least Curve25519 is widely supported. I expect PQC-enabled > tokens to support both ML-* and *25519. Yes it is possible, and hopefully we'll approve a pure ML-DSA code point before long, it is just that the timings of CNSA 2.0 requiring PQ signatures before the end of 2025 are creating pressure to establish downstream conventions and create and distribute keys etc.. changing later will be another hurdle. > > > > > 3. Signature data digests > > > I honestly have seen that requirement, and am still wondering why the hell it is there. I don't understand it, and the "SHA-3 limits interoperability" reason sounds really weird to me, feels to me as "we have a machine in the basement that can break this hash". Happy to hear other reasons tho. > > > > > > Said this, if for you this is a blocker for RHEL, I think we can revisit the hash binding requirement. > > Yes this is the only "blocker" I have, > > We use PGP for signing packages and we really need a way to be CNSA 2.0 > > compliant. > > At this time it means ML-DSA-87 for signatures and either SHA-384 or > > SHA-512 for content hashes. > > > > I do not think the NSA can break SHA2 as they allow SHA3/SHAKE as > > internal implementations in the signature algorithms. I think this is > > more of a case of: "we have accelerators that can speed up SHA2 but not > > SHA3 and we want to keep using them for the time being to produce > > content hashes" > > > > This is my speculation, several of their positions are questionable, > > but I still need to be able to support their preferences as they are > > not broken (as far as we know). > > In the FAQ, NSA gives lack of interoperability as the reason for not > allowing SHA-3. It makes little sense to claim lack of interoperability when you are requesting net new signatures and also hinting that you do not care about classic ones at all. But hey, whatever rocks their boat, I just need to be compatible, not like the choice. > > Best regards, > Falko > > > > > Best, > > Simo. > > > -- > > *MTG AG* > Dr. Falko Strenzke > > Phone: +49 6151 8000 24 > E-Mail: falko.strenzke@mtg.de > Web: mtg.de <https://www.mtg.de> > > ------------------------------------------------------------------------ > > MTG AG - Dolivostr. 11 - 64293 Darmstadt, Germany > Commercial register: HRB 8901 > Register Court: Amtsgericht Darmstadt > Management Board: Jürgen Ruf (CEO), Tamer Kemeröz > Chairman of the Supervisory Board: Dr. Thomas Milde > > This email may contain confidential and/or privileged information. If > you are not the correct recipient or have received this email in error, > please inform the sender immediately and delete this email.Unauthorised > copying or distribution of this email is not permitted. > > Data protection information: Privacy policy > <https://www.mtg.de/en/privacy-policy> > -- Simo Sorce Distinguished Engineer RHEL Crypto Team Red Hat, Inc
- [openpgp] Size of ML-DSA Secret key in draft-ietf… Simo Sorce
- [openpgp] Re: Size of ML-DSA Secret key in draft-… Aron Wussler
- [openpgp] Re: Size of ML-DSA Secret key in draft-… Simo Sorce
- [openpgp] Re: Size of ML-DSA Secret key in draft-… Aron Wussler
- [openpgp] Re: Size of ML-DSA Secret key in draft-… Falko Strenzke
- [openpgp] Re: Size of ML-DSA Secret key in draft-… Kousidis, Stavros
- [openpgp] Re: Size of ML-DSA Secret key in draft-… Johannes Roth
- [openpgp] Re: Size of ML-DSA Secret key in draft-… Daniel Huigens
- [openpgp] Re: Size of ML-DSA Secret key in draft-… Andrew Gallagher
- [openpgp] Re: Size of ML-DSA Secret key in draft-… Simo Sorce
- [openpgp] Re: Size of ML-DSA Secret key in draft-… Aron Wussler
- [openpgp] Re: Size of ML-DSA Secret key in draft-… Falko Strenzke
- [openpgp] Re: Size of ML-DSA Secret key in draft-… Simo Sorce