[openpgp] Re: Size of ML-DSA Secret key in draft-ietf-openpgp-pqc and other considerations

Simo Sorce <simo@redhat.com> Mon, 10 February 2025 20:33 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 16ABBC207973 for <openpgp@ietfa.amsl.com>; Mon, 10 Feb 2025 12:33:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.253
X-Spam-Level:
X-Spam-Status: No, score=-2.253 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_H2=-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] 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 TfeeGP0m8vHU for <openpgp@ietfa.amsl.com>; Mon, 10 Feb 2025 12:33:18 -0800 (PST)
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 7A9C0C207967 for <openpgp@ietf.org>; Mon, 10 Feb 2025 12:33:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1739219596; 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=mmW8KWegaSG0Z7EKTq8E03JPH0iU5D4tyaOuM8ayaXM=; b=LaURomIFP2fTcDhDCTyohXwUZwODMksh7uvoz1ULIDX1W18KxZ+4/uSZaSO2sf9YdyUHNI kq4Z3iWyhBP2H3ycW9s/OogHGd9GjncoMGoONQbx0/h5NehgGPi9lrnxgRxiQz070eRoY6 CuY3RdP8JH80D1xNam6PoAGIpkdJFFI=
Received: from mail-oi1-f200.google.com (mail-oi1-f200.google.com [209.85.167.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-370-pV1ban4ZOE2x-mOlb_ogxg-1; Mon, 10 Feb 2025 15:33:15 -0500
X-MC-Unique: pV1ban4ZOE2x-mOlb_ogxg-1
X-Mimecast-MFC-AGG-ID: pV1ban4ZOE2x-mOlb_ogxg
Received: by mail-oi1-f200.google.com with SMTP id 5614622812f47-3f314fdd5b9so4473767b6e.2 for <openpgp@ietf.org>; Mon, 10 Feb 2025 12:33:15 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739219593; x=1739824393; 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=mmW8KWegaSG0Z7EKTq8E03JPH0iU5D4tyaOuM8ayaXM=; b=Ff9v2EU46mMAgb48RCWwgqJ/5i7IaexXQIubwT8+fx72aUeaGYQbG31305CwVAkCqN z5YcV2TYUie9XFupJ2dQd266sCOwSAKNvOoRxEoPXzHNmV/9yS4ai+vd6StD2M12HdPv jfcexgobGg5qqLDgeTjLyIh2mJ703ki4zhElfdHmFiKVDL7zKm5PU+1eDzwhmPRXT3sW ZG34xjDt27sYdn6cPpmbWYBAL5MJntjQWHbDFV18tonRe0UxVYpQa/SNRZD0+6PdvmHC 7oGyKeS7NF91kiW1DtoxMjjzxzl2PdepDhh6lOYtRCIV3b1coxBfK7EUBFE7P4pcEUcV cdCg==
X-Gm-Message-State: AOJu0YzSz++AV2Kl3cupibSl4ADULzojgjT3A+kXM5df+uIXLZNgk9WD b22JU2aslGLUD69cy7jl6T6BhhzHkquJ8knPYayHtpX/PbissyBkQkH8JEbDcvkd32r7FtC7XWC mmIJpyKDZ1eDTBwSbKJWjXQm7Uuri6v1G+JfpPMZMgWJvNX+6MqfG1A==
X-Gm-Gg: ASbGnct1OzwSSNjgzdC2qupCqbeVyIb/gAjJLz1q0jekC/tq7F8wUfqIOo7eXF4VyhO zRb5jH0ERu3jkc1Lp1jnEduL65CwwZSgx3ImldTov+SCTlz+PKF9S68rLIm5RTU28g5HnFa0gPC KaQ+gJtLdz0ZHnIWpS3RXPS236Xum2Qs+1JYDQnCiCjTGHzpO0zI4LjpagONnygNOXCyUz85gJt LpdkW/IKdtWbnj1sPMkhwwuPG7eX5VsBnXuMWK9IF87YKRu7qrYQkmfX47INoT85Y/HeABhrAU=
X-Received: by 2002:a05:6870:169d:b0:29e:4340:b1b with SMTP id 586e51a60fabf-2b83ed06682mr9793819fac.9.1739219592989; Mon, 10 Feb 2025 12:33:12 -0800 (PST)
X-Google-Smtp-Source: AGHT+IHerdU0E6ixNrcXgHXB9IbePBebAl0i2rILTlmQuuM4md99atm1ta6ZhtCh/ha9uz0XtjFPDw==
X-Received: by 2002:a05:6870:169d:b0:29e:4340:b1b with SMTP id 586e51a60fabf-2b83ed06682mr9793808fac.9.1739219592611; Mon, 10 Feb 2025 12:33:12 -0800 (PST)
Received: from m8.users.ipa.redhat.com ([2603:7000:9400:fe80::986]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-726af914bedsm2592186a34.10.2025.02.10.12.33.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Feb 2025 12:33:11 -0800 (PST)
Message-ID: <2ef0cb6899f56e5d8f50aa0b3aa3238d64fae281.camel@redhat.com>
From: Simo Sorce <simo@redhat.com>
To: Aron Wussler <aron@wussler.it>
Date: Mon, 10 Feb 2025 15:33:10 -0500
In-Reply-To: <0NnLQ5QK6Pu-Z6OJUjwKuU3n5joUWg5LWhh5PwIzZIKfqD-vMkv5fxt2oZJKeA1MZP0leh6LGwLzjH6CtFf02Pg0KNkknx4LdzGmHhEbTsk=@wussler.it>
References: <f8e34cda2473b36fa3db819fd09fe05ed8fdc35d.camel@redhat.com> <0NnLQ5QK6Pu-Z6OJUjwKuU3n5joUWg5LWhh5PwIzZIKfqD-vMkv5fxt2oZJKeA1MZP0leh6LGwLzjH6CtFf02Pg0KNkknx4LdzGmHhEbTsk=@wussler.it>
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: eaiShCD0gVVcdO32N0r1tc8gvbUjIOL31diM0D6LpQQ_1739219593
X-Mimecast-Originator: redhat.com
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Message-ID-Hash: 3INN5SJ2IT7MVVM555RWUCWHUEW4FFGD
X-Message-ID-Hash: 3INN5SJ2IT7MVVM555RWUCWHUEW4FFGD
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/8qr7qJdo6N_4eGklR6hTovtWltU>
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 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 :)

> 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... ).

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.

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.

> 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).

Best,
Simo.

-- 
Simo Sorce
Distinguished Engineer
RHEL Crypto Team
Red Hat, Inc