[openpgp] Re: v4+v6

"Neal H. Walfield" <neal@walfield.org> Mon, 10 February 2025 09:50 UTC

Return-Path: <neal@walfield.org>
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 5F470C14F693 for <openpgp@ietfa.amsl.com>; Mon, 10 Feb 2025 01:50:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.907
X-Spam-Level:
X-Spam-Status: No, score=-1.907 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
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 G-D884th0R7q for <openpgp@ietfa.amsl.com>; Mon, 10 Feb 2025 01:50:34 -0800 (PST)
Received: from mail.dasr.de (mail.dasr.de [202.61.250.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 04385C151536 for <openpgp@ietf.org>; Mon, 10 Feb 2025 01:50:31 -0800 (PST)
Received: from p5de920fd.dip0.t-ipconnect.de ([93.233.32.253] helo=forster.huenfield.org) by mail.dasr.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <neal@walfield.org>) id 1thQQu-00Casw-0P; Mon, 10 Feb 2025 10:50:28 +0100
Received: from alice.huenfield.org ([192.168.20.191] helo=alice.walfield.org) by forster.huenfield.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <neal@walfield.org>) id 1thQQs-00CG9f-2g; Mon, 10 Feb 2025 10:50:27 +0100
Date: Mon, 10 Feb 2025 10:50:27 +0100
Message-ID: <87cyfqf7rw.wl-neal@walfield.org>
From: "Neal H. Walfield" <neal@walfield.org>
To: Paul Schaub <vanitasvitae@riseup.net>
In-Reply-To: <73661632-0660-4F96-93CB-02CD11A9F363@riseup.net>
References: <87h653fd5p.wl-neal@walfield.org> <73661632-0660-4F96-93CB-02CD11A9F363@riseup.net>
User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (Gojō) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)
MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue")
Content-Type: text/plain; charset="US-ASCII"
X-SA-Exim-Connect-IP: 192.168.20.191
X-SA-Exim-Mail-From: neal@walfield.org
X-SA-Exim-Version: 4.2.1 (built Wed, 06 Jul 2022 17:57:39 +0000)
X-SA-Exim-Scanned: Yes (on forster.huenfield.org)
Message-ID-Hash: MVQJY2JFUMVTAVWH6LSPIKSRPB2TS4MP
X-Message-ID-Hash: MVQJY2JFUMVTAVWH6LSPIKSRPB2TS4MP
X-MailFrom: neal@walfield.org
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
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [openpgp] Re: v4+v6
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/8whel_LKd5rypf31XB3ySjObYL8>
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 Paul,

Thanks for taking a look.

On Sun, 09 Feb 2025 17:53:43 +0100,
Paul Schaub wrote:
> > By using the same key material and the same meta-data, it is possible
> to transform a v4 key packet into a v6 key packet and vica-versa [...]
> 
> I'm not sure about the vice-versa part. My instinct would tell me there might be dragons when "downgrading" a v6
> certificate into a v4 one, even though I cannot come up with a concrete idea for an attack. So treat this as just an
> articulation of my gut feelings :D

I'm also less sure about this part, and I hope others who understand
the cryptography better than I do can comment.

> All in all its a nice idea, although its not universally applicable
> to all certs (e.g. legacy/weak keys).
>
> Also, some popular key types (legacy x25519, legacy ed25519) MUST NOT be used with v6, so I guess you'd
> transform them to the new key type, which is no longer a bijection, as the v4 cert might also use the new
> non-legacy algorithms.

You're right.  I failed to note that this proposal only applies to the
intersection of algorithms and constraints specified by RRC 4880 and
RFC 9580.

:) Neal