
From nobody Mon Mar  1 01:00:20 2021
Return-Path: <wk@gnupg.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 F20FC3A1862 for <openpgp@ietfa.amsl.com>; Mon,  1 Mar 2021 01:00:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.198
X-Spam-Level: 
X-Spam-Status: No, score=-0.198 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=gnupg.org
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3eLCQrxL8FF1 for <openpgp@ietfa.amsl.com>; Mon,  1 Mar 2021 01:00:17 -0800 (PST)
Received: from kerckhoffs.g10code.com (kerckhoffs.g10code.com [IPv6:2001:aa8:fff1:100::22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2D5F73A1866 for <openpgp@ietf.org>; Mon,  1 Mar 2021 01:00:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnupg.org;  s=20181017; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=de8dYxIpVKsc535RzSu89ZaAnnRO4mpLqO+5jlgOal4=; b=CLuseFnVe+u2xv3lTmgbdp92D8 doaEKbDNoQOF4kt8kXq7b2H7dPYmmfysR47EAbbDj5ie1lAZwbRa1TO2I1ehT5snnwZIOlsnKEOry IKf3vfYWxE3EnDHfGbnCq8QAndeZeGJ/OZZ0NQjy/0uR1RvyhYZYLhsgJ3xWLL29hzbw=;
Received: from uucp by kerckhoffs.g10code.com with local-rmail (Exim 4.89 #1 (Debian)) id 1lGePQ-0000Xn-QW for <openpgp@ietf.org>; Mon, 01 Mar 2021 10:00:08 +0100
Received: from wk by wheatstone.g10code.de with local (Exim 4.92 #5 (Debian)) id 1lGeNt-000815-Bu; Mon, 01 Mar 2021 09:58:33 +0100
From: Werner Koch <wk@gnupg.org>
To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Cc: openpgp@ietf.org
References: <87h7lyccns.fsf@fifthhorseman.net>
Organisation: GnuPG e.V.
X-message-flag: Mails containing HTML will not be read! Please send only plain text.
Mail-Followup-To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>, openpgp@ietf.org
Date: Mon, 01 Mar 2021 09:58:32 +0100
In-Reply-To: <87h7lyccns.fsf@fifthhorseman.net> (Daniel Kahn Gillmor's message of "Sat, 27 Feb 2021 00:17:27 -0500")
Message-ID: <87czwj8d3b.fsf@wheatstone.g10code.de>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=Peking_FDM_Twister_Crash_encryption_clones_Standoff_assassinate_Whit"; micalg=pgp-sha256; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/ScvkwnLcvev2UklE_z64_diEby4>
Subject: Re: [openpgp] ECC point encoding and "flag byte"
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 01 Mar 2021 09:00:19 -0000

--=Peking_FDM_Twister_Crash_encryption_clones_Standoff_assassinate_Whit
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

In "EdDSA problem and possible change about ECC" from 2019-10-29
(87a79kmhd1.fsf@iwagami.gniibe.org) Gniibe already addressed this
problem and suggested the introduction of a new data type (dubbed SOS
for Simple Octet String) to be used for new curves.  He also provided
an initial draft for this change.

Long term implementers of PGP know about the troubles with the MPI
rules.  With the new curve(s) we have an opportunity to fix this issue.
But of course backward compatibility to RFC-6637 is required; which is
actually not too hard.


Shalom-Salam,

   Werner

=2D-=20
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

--=Peking_FDM_Twister_Crash_encryption_clones_Standoff_assassinate_Whit
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQSHd0YfKgdOvEgNNZQZzByeCFsQegUCYDysuQAKCRAZzByeCFsQ
eku9AQDk6W1pCmZm5vzNplU9pbb/CeZpN3yn4Waci9eRbI/I4gEAhIWRocyuVuiN
8GvE7GXt8dxOenwvgwoFv48yc9WNQAg=
=i4JV
-----END PGP SIGNATURE-----
--=Peking_FDM_Twister_Crash_encryption_clones_Standoff_assassinate_Whit--


From nobody Mon Mar  1 02:16:47 2021
Return-Path: <hanno@hboeck.de>
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 570B73A1952 for <openpgp@ietfa.amsl.com>; Mon,  1 Mar 2021 02:16:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.001
X-Spam-Level: 
X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gPP3FJipFPpz for <openpgp@ietfa.amsl.com>; Mon,  1 Mar 2021 02:16:43 -0800 (PST)
Received: from zucker2.schokokeks.org (zucker2.schokokeks.org [178.63.68.90]) (using TLSv1.2 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 99A673A194F for <openpgp@ietf.org>; Mon,  1 Mar 2021 02:16:43 -0800 (PST)
Date: Mon, 1 Mar 2021 11:16:39 +0100
From: Hanno =?iso-8859-1?q?B=F6ck?= <hanno@hboeck.de>
To: openpgp@ietf.org
Message-ID: <20210301111639.6f8dbbdc@computer>
In-Reply-To: <6a1649f1-1b64-0a44-7a7d-07dae7b0dc20@cs.tcd.ie>
References: <YDrbaRiQ34MstP30@camp.crustytoothpaste.net> <87ft1g9goo.fsf@wheatstone.g10code.de> <YDvuaAXgwEDffYbt@camp.crustytoothpaste.net> <6a1649f1-1b64-0a44-7a7d-07dae7b0dc20@cs.tcd.ie>
X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha256; boundary="=_zucker.schokokeks.org-5958-1614593800-0001-2"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/4nK2rL3KftBRTVmXL0M9wepWJJI>
Subject: Re: [openpgp] RSA-PSS and RSA-OAEP for v5
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 01 Mar 2021 10:16:46 -0000

This is a MIME-formatted message.  If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_zucker.schokokeks.org-5958-1614593800-0001-2
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Sun, 28 Feb 2021 19:47:15 +0000
Stephen Farrell <stephen.farrell@cs.tcd.ie> wrote:

> On 28/02/2021 19:26, brian m. carlson wrote:
> >=20
> > I think it's very clear, based on a history of CVEs, that as
> > practically implemented, PKCS #1 padding is weak compared to PSS
> > and OAEP. =20
>=20
> FWIW, my impression is that that is not clear. Quite a few
> people do have that position for sure, but equally, the views
> expressed by e.g. Werner and Peter Gutmann also seem fairly
> commonly held afaics.

I saw Peter Gutmann's notes on PSS a while ago [1] and was considering
writing a reply, but I didn't find the motivation and was unsure how
relevant this is given the demise of RSA.

I wrote my thesis on PSS, so I'm quite familiar with it. I think
Gutmann has some points, but these are almost entirely not really
weaknesses in PSS itself, but of an amount of excess flexibility in the
standard that could easily be fixed.

I believe there are basically 2 changes that would make PSS much less
fragile. I know OAEP less, but I think it's pretty much the same
situation:

a) There's an excess of parameter choices for PSS. It allows choosing
2 different hash functions, a mask generation function (which has only
one choice available) and a salt length. If you remove that flexibility
(by simply defining "use sha256, use the standard mgf1 as there is no
other one, use the default salt length of 20, don't support anything
else") all issues with it go away.

b) There's a lot of cornercases in the algorithm due to the fact that
the standard allows a completely flexible key size. If you'd say "only
key sizes that are a multiple of 8" (or even "only 2048/4096 bits are
allowed") the implementation gets much simpler and is pretty
straightforward.

One could easily define RSA-PSS-Simple (or RSA-OAEP-Simple) with these
two restrictions and I believe that would remove most concerns about
complexity. Though given that the world is moving away from RSA and the
big postquantum revolution is coming anyway I'm not sure it's worth
doing that.

[1]
https://www.metzdowd.com/pipermail/cryptography/2019-November/035449.html

--=20
Hanno B=C3=B6ck
https://hboeck.de/

--=_zucker.schokokeks.org-5958-1614593800-0001-2
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEn3wfQCCb9MicJwD8dkhfABMwL8oFAmA8vwcACgkQdkhfABMw
L8q5TQ//Y2pNU/fkmB+FOnMb+eQV+AXP1xZTUYw3qoN6h7k0S6fLtBXPks7cKIVo
x9DUK6V6ho7DkTb4kiYKvs1PLGjx9a/ZWzkF62Q6rXMHZqQT3kyB6hD/rwMNMd13
t42exUSGkUqcz9ulH6nJgRVGX3vXjpKXg4Qwcnv8Q80pnJhGSnLVRWN5TQa3Vf4Y
kK7FK717IUCRHtfcagcErwmrx8QBKCXC1Giq4K58t194SbbMUNM8f+FsurEOAYko
chVvZs5ct3WDDeMQln0mZVKwLIPk5Lu0AYIf99i6Sh7QfLgcovHNAzdv0ioNrejS
kFdflKUGu7cG5S7NV0yiGuzl5y3cO2g2KaETXEKgQTGmmUeFsGYfy1LOay6/Zltn
wOgjcTSdVEwcAPcEqOwgc5WoWGOrfl3gVZBgHWlv0a51o52niUdP3s0TKxHrSd0t
+PW3fFRfYUESc3bRsiaRFVJ3VqimayHMsUW91HHOol9/TVZeF908RAJXV2h76BON
sy8r55OCPFhwERDKtUaFQebWcnpftDA8SIQWzvA3E+UsvoJ65tSPZrIkmsrPBudd
YHO8tp0wrKiPF6ztFJ/bNUPkZMNF0JmOWA/qGT0yXZCxvdeemXkMWM1t0ullKdLC
wG91aUJ9XXY3qopLscCzNJroZLE7xVP0dvrI01RYbWZgyg6JLRs=
=SiFA
-----END PGP SIGNATURE-----

--=_zucker.schokokeks.org-5958-1614593800-0001-2--


From nobody Mon Mar  1 03:38:50 2021
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 80C4E3A1A83 for <openpgp@ietfa.amsl.com>; Mon,  1 Mar 2021 03:38:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.001
X-Spam-Level: 
X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[SPF_NONE=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jeTK9mmxYRWX for <openpgp@ietfa.amsl.com>; Mon,  1 Mar 2021 03:38:43 -0800 (PST)
Received: from mail.dasr.de (mail.dasr.de [217.69.77.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8B1193A1A7F for <openpgp@ietf.org>; Mon,  1 Mar 2021 03:38:43 -0800 (PST)
Received: from p5de92c26.dip0.t-ipconnect.de ([93.233.44.38] helo=forster.huenfield.org) by mail.dasr.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from <neal@walfield.org>) id 1lGgsj-0007WX-Ge; Mon, 01 Mar 2021 11:38:33 +0000
Received: from grit.huenfield.org ([192.168.20.9] helo=grit.walfield.org) by forster.huenfield.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <neal@walfield.org>) id 1lGgsj-0000mI-1F; Mon, 01 Mar 2021 12:38:33 +0100
Date: Mon, 01 Mar 2021 12:38:32 +0100
Message-ID: <877dmraytj.wl-neal@walfield.org>
From: "Neal H. Walfield" <neal@walfield.org>
To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Cc: Paul Wouters <paul@nohats.ca>, openpgp@ietf.org
In-Reply-To: <87pn0mcecf.fsf@fifthhorseman.net>
References: <7d8bdda1-4e5c-6c10-f3cd-1d191fad595c@nohats.ca> <87im6faw06.wl-neal@walfield.org> <87pn0mcecf.fsf@fifthhorseman.net>
User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/26 (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.9
X-SA-Exim-Mail-From: neal@walfield.org
X-SA-Exim-Scanned: No (on forster.huenfield.org); SAEximRunCond expanded to false
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/AmFb537QcXsqUBURXgnbuI3hU84>
Subject: Re: [openpgp] I-D Action: draft-ietf-openpgp-crypto-refresh-02.txt (fwd)
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 01 Mar 2021 11:38:49 -0000

On Sat, 27 Feb 2021 05:41:04 +0100,
Daniel Kahn Gillmor wrote:
> Hi Neal--
> 
> Thanks for the nit-picks.  Two concerns:
> 
> On Fri 2021-02-26 12:50:17 +0100, Neal H. Walfield wrote:
> > -- 20 octets representing a recipient encryption subkey or a master key fingerprint, identifying the key material that is needed for the decryption.
> > -  For version 5 keys the 20 leftmost octets of the fingerprint are used.
> > +- [ ] 20 octets representing a recipient encryption subkey or a primary key fingerprint identifying the key material that is needed for decryption
> > +  (for version 5 keys the 20 leftmost octets of the fingerprint are used).

I don't know how that crept it.

> what does the [ ] you've inserted here mean?  It looks like a markdown
> todo-list "checkbox", maybe it was inserted by mistake?
> 
> > -    09 k0 k1 ... k31 c0 c1 05 05 05 05 05
> > +    09 k0 k1 ... k31 C0 C1 05 05 05 05 05
> >  
> > -The octets c0 and c1 above denote the checksum.
> > +The octets C0 and C1 above denote the checksum.
> 
> This seems like a mistake.  C0 and C1 could be specific hexadecimal
> octets (decimal 12), whereas "c0" and "c1" here are intended to be
> placeholders for the checksum.  This is a bit confusing, maybe it would
> be better to use s0 and s1 (s for "sum") so that it's clear that it
> isn't hex?

Good points!  I think using s0 and s1 is the best suggestion so far.


From nobody Mon Mar  1 04:05:15 2021
Return-Path: <wk@gnupg.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 3FC563A1AE9 for <openpgp@ietfa.amsl.com>; Mon,  1 Mar 2021 04:05:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.199
X-Spam-Level: 
X-Spam-Status: No, score=-0.199 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=gnupg.org
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mE6RGL7yizcC for <openpgp@ietfa.amsl.com>; Mon,  1 Mar 2021 04:05:12 -0800 (PST)
Received: from kerckhoffs.g10code.com (kerckhoffs.g10code.com [IPv6:2001:aa8:fff1:100::22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6635C3A1AE8 for <openpgp@ietf.org>; Mon,  1 Mar 2021 04:05:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnupg.org;  s=20181017; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=FZ5R3dc5DAR4AxJiT89FX5ka6kMVe9t/Gj5nl0K5BRI=; b=iO7crpIVUyC8zRYj2u72zV+x0k cHMxFIioto2O47ef8A6uECApUcjY5mYgYhXLVdu0ttBQBamiAHW66w4sLtc4r3XyvkhScr4cirhM7 LluMGcCcWVZho4bUWd9Wf0IwusXeNKFFDMXTeNnMqAtxntUOrJwNAR/NRzPLh3mG0SI0=;
Received: from uucp by kerckhoffs.g10code.com with local-rmail (Exim 4.89 #1 (Debian)) id 1lGhIS-0001ch-E6 for <openpgp@ietf.org>; Mon, 01 Mar 2021 13:05:08 +0100
Received: from wk by wheatstone.g10code.de with local (Exim 4.92 #5 (Debian)) id 1lGhHQ-0002un-UO; Mon, 01 Mar 2021 13:04:04 +0100
From: Werner Koch <wk@gnupg.org>
To: "brian m. carlson" <sandals@crustytoothpaste.net>
Cc: openpgp@ietf.org
References: <YDrbaRiQ34MstP30@camp.crustytoothpaste.net> <87ft1g9goo.fsf@wheatstone.g10code.de> <YDvuaAXgwEDffYbt@camp.crustytoothpaste.net> <6a1649f1-1b64-0a44-7a7d-07dae7b0dc20@cs.tcd.ie> <YDv3k8Oky7dmn2PG@camp.crustytoothpaste.net>
Organisation: GnuPG e.V.
X-message-flag: Mails containing HTML will not be read! Please send only plain text.
Mail-Followup-To: "brian m. carlson" <sandals@crustytoothpaste.net>, openpgp@ietf.org
Date: Mon, 01 Mar 2021 13:03:58 +0100
In-Reply-To: <YDv3k8Oky7dmn2PG@camp.crustytoothpaste.net> (brian m. carlson's message of "Sun, 28 Feb 2021 20:05:39 +0000")
Message-ID: <874khv84i9.fsf@wheatstone.g10code.de>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=Border_Minox_Armani_Blackbird_Wackenhut_Power_lines_Chemical_agent_S"; micalg=pgp-sha256; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/bmKX3aGGAx80lr4mS60JvlQjpGA>
Subject: Re: [openpgp] RSA-PSS and RSA-OAEP for v5
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 01 Mar 2021 12:05:14 -0000

--=Border_Minox_Armani_Blackbird_Wackenhut_Power_lines_Chemical_agent_S
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Sun, 28 Feb 2021 20:05, brian m. carlson said:

> Sure, I'm happy to defer this for the moment.  We don't need to make a
> decision immediately, and considering that I just proposed this

Because Brian agreed to the chair's suggestion to defer this issue, I
did not reply and I wish other don't do either.  Thanks.


Salam-Shalom,

   Werner

=2D-=20
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

--=Border_Minox_Armani_Blackbird_Wackenhut_Power_lines_Chemical_agent_S
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQSHd0YfKgdOvEgNNZQZzByeCFsQegUCYDzYLwAKCRAZzByeCFsQ
ekvsAQD28i+FqAcL9opiF20381KTY9RDCANRSTbRzwIw2740bgD9FVIrQIerMy9y
L0m/j72o0SD2946Q+hPmTjr/oxL1aQE=
=Qp0S
-----END PGP SIGNATURE-----
--=Border_Minox_Armani_Blackbird_Wackenhut_Power_lines_Chemical_agent_S--


From nobody Mon Mar  1 05:29:24 2021
Return-Path: <pgut001@cs.auckland.ac.nz>
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 189083A1C1D for <openpgp@ietfa.amsl.com>; Mon,  1 Mar 2021 05:29:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level: 
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id re8tnNBCZGn8 for <openpgp@ietfa.amsl.com>; Mon,  1 Mar 2021 05:29:20 -0800 (PST)
Received: from au-smtp-delivery-117.mimecast.com (au-smtp-delivery-117.mimecast.com [103.96.23.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0A8EE3A1C1B for <openpgp@ietf.org>; Mon,  1 Mar 2021 05:29:19 -0800 (PST)
Received: from AUS01-SY4-obe.outbound.protection.outlook.com (mail-sy4aus01lp2177.outbound.protection.outlook.com [104.47.71.177]) (Using TLS) by relay.mimecast.com with ESMTP id au-mta-38-cSYBKw80PN-Z0fUdAYfZ9Q-1; Tue, 02 Mar 2021 00:29:15 +1100
X-MC-Unique: cSYBKw80PN-Z0fUdAYfZ9Q-1
Received: from HK2PR02CA0163.apcprd02.prod.outlook.com (2603:1096:201:1f::23) by SYXPR01MB0927.ausprd01.prod.outlook.com (2603:10c6:0:9::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.19; Mon, 1 Mar 2021 13:29:09 +0000
Received: from HK2APC01FT046.eop-APC01.prod.protection.outlook.com (2603:1096:201:1f:cafe::1e) by HK2PR02CA0163.outlook.office365.com (2603:1096:201:1f::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.19 via Frontend Transport; Mon, 1 Mar 2021 13:29:08 +0000
X-MS-Exchange-Authentication-Results: spf=none (sender IP is 130.216.95.208) smtp.mailfrom=cs.auckland.ac.nz; crustytoothpaste.net; dkim=none (message not signed) header.d=none;crustytoothpaste.net; dmarc=none action=none header.from=cs.auckland.ac.nz
Received: from uxcn13-tdc-e.UoA.auckland.ac.nz (130.216.95.208) by HK2APC01FT046.mail.protection.outlook.com (10.152.249.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.3890.19 via Frontend Transport; Mon, 1 Mar 2021 13:29:08 +0000
Received: from uxcn13-ogg-d.UoA.auckland.ac.nz (10.6.2.5) by uxcn13-tdc-e.UoA.auckland.ac.nz (10.6.3.9) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 2 Mar 2021 02:29:06 +1300
Received: from uxcn13-ogg-d.UoA.auckland.ac.nz ([10.6.2.5]) by uxcn13-ogg-d.UoA.auckland.ac.nz ([10.6.2.5]) with mapi id 15.00.1497.010; Tue, 2 Mar 2021 02:29:06 +1300
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: "brian m. carlson" <sandals@crustytoothpaste.net>, "openpgp@ietf.org" <openpgp@ietf.org>
Thread-Topic: [openpgp] RSA-PSS and RSA-OAEP for v5
Thread-Index: AQHXDWPcH6D7hziraEeY3WgYIFAhT6pt6Q09//8xegCAAgew5Q==
Date: Mon, 1 Mar 2021 13:29:05 +0000
Message-ID: <1614604853195.25383@cs.auckland.ac.nz>
References: <YDrbaRiQ34MstP30@camp.crustytoothpaste.net> <87ft1g9goo.fsf@wheatstone.g10code.de>, <YDvuaAXgwEDffYbt@camp.crustytoothpaste.net>
In-Reply-To: <YDvuaAXgwEDffYbt@camp.crustytoothpaste.net>
Accept-Language: en-NZ, en-GB, en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [130.216.158.4]
MIME-Version: 1.0
X-EOPAttributedMessage: 0
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: e2af2bcd-434c-4dcd-7547-08d8dcb5fe21
X-MS-TrafficTypeDiagnostic: SYXPR01MB0927:
X-Microsoft-Antispam-PRVS: <SYXPR01MB09270347F34DE8133E7D5936EE9A9@SYXPR01MB0927.ausprd01.prod.outlook.com>
X-MS-Oob-TLC-OOBClassifiers: OLM:7219
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0
X-Microsoft-Antispam-Message-Info: Al8k5yFBN5WTTfp58/ae1oB0KzRXpeM3wEN+TDkohqm/RbztSdcy3XpaG7SMKdfbSSNbxHKo1qttm5niS+TrMcUQa+3Mv4THbUt8FhaWpHfKJplMHQ5BftjkQ8Duw3Y3E9cmQ9w7w/QiPQZ1aFOw1Ex35cqI7AS9+aMwNHhw/oCW88uG2P/Gojf0hUL3OM64lsYMXad1cSxTuE7pOgaFTqzub22XUZ6kGppRkY0URzN6+0aRpn/POjUw0j7uNNjNM3yQeTNDkE7ywJ/PjwIBAkpbRvlK+JkNwqkcNUWYBC6HQhJtKXpx89ZLP4JJgCo+dwLFFmFOmzxigzUDpP3yZTwZAC43vWoHVl6YBQqPvW3tnUjLZkes5wGB9fhoYfappz7pa8w2NpOCWK8PZT2QhiTNuw/cpHElU9fSAp0T/t1ppw8TUikLGZLhvkIohW0eWUOnh/5JeG0ROUvfjMz/U6M3OmPoGTHFY03HJptKMAZm3b8x3qNorw0FVLr4Hm7t0PoHEzjJoVEBUUG79dCqJ0zHw0sOhJaV6xJFtNKcx3biJns61oxDvckrJDA3kb4JFRKiMpfwK22XL8fUDgee4HDt0OJ76TIUFpYDHKiMdoWGBz6KDAcsbJqeD30yFY7P+VM9wLtpLcN4T5AY6Vx5Aw==
X-Forefront-Antispam-Report: CIP:130.216.95.208; CTRY:NZ; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:uxcn13-tdc-e.UoA.auckland.ac.nz; PTR:natgate1-1.auckland.ac.nz; CAT:NONE; SFS:(4636009)(39860400002)(136003)(396003)(346002)(376002)(36840700001)(46966006)(786003)(316002)(336012)(186003)(110136005)(83380400001)(82310400003)(70586007)(36906005)(478600001)(47076005)(5660300002)(26005)(2616005)(70206006)(36860700001)(8676002)(8936002)(7636003)(82740400003)(86362001)(356005)(2906002); DIR:OUT; SFP:1101
X-OriginatorOrg: cs.auckland.ac.nz
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Mar 2021 13:29:08.0273 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: e2af2bcd-434c-4dcd-7547-08d8dcb5fe21
X-MS-Exchange-CrossTenant-Id: d1b36e95-0d50-42e9-958f-b63fa906beaa
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=d1b36e95-0d50-42e9-958f-b63fa906beaa; Ip=[130.216.95.208];  Helo=[uxcn13-tdc-e.UoA.auckland.ac.nz]
X-MS-Exchange-CrossTenant-AuthSource: HK2APC01FT046.eop-APC01.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SYXPR01MB0927
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: cs.auckland.ac.nz
Content-Language: en-NZ
Content-Type: text/plain; charset=WINDOWS-1252
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/ZU2vG-5v69Loea9-jKHRCk5OT1I>
Subject: Re: [openpgp] RSA-PSS and RSA-OAEP for v5
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 01 Mar 2021 13:29:22 -0000

brian m. carlson <sandals@crustytoothpaste.net> writes:=0A=0A>Most cryptogr=
aphic libraries already support RSA-PSS and RSA-OAEP, so there's=0A>little =
code to add.=0A=0A*Some* crypto libraries support OAEP and PSS, but they're=
 virtually never=0Aused.  When they are used, they often only support the s=
ingle parameter set=0Athat whoever decided to use PSS instead of PKCS #1 we=
nt for, and fail=0Amysteriously if you modify any one of the 8,000 paramete=
rs that PSS and OAEP=0Acan work with.  Admittedly this is a miniscule sampl=
e size because virtually=0Anothing uses them, but from the few times I've r=
un into them it's been an=0Ainterop nightmare trying to guess what the othe=
r side will do.  The best=0Aapproach seems to be to request sample messages=
 from the other side and then=0Ause exactly that parameter set and nothing =
else for anything you send them.=0A=0AAlthough this would tend to suggest a=
n approach of fixing all parameters at a=0Agiven set of values, all this is=
 then doing is reinventing an incredibly=0Acomplex equivalent to PKCS #1, w=
hich seems excessive when a much simpler=0Asolution is to say "use encode-t=
hen-memcmp() to verify the signature" in the=0Aspec.=0A=0APeter.=0A


From nobody Mon Mar  1 15:05:10 2021
Return-Path: <masanoriogino@gmail.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 558673A248B for <openpgp@ietfa.amsl.com>; Mon,  1 Mar 2021 15:02:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qsXVGgS4zS8c for <openpgp@ietfa.amsl.com>; Mon,  1 Mar 2021 15:02:41 -0800 (PST)
Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A19EB3A247A for <openpgp@ietf.org>; Mon,  1 Mar 2021 15:02:41 -0800 (PST)
Received: by mail-ed1-x535.google.com with SMTP id bd6so9694748edb.10 for <openpgp@ietf.org>; Mon, 01 Mar 2021 15:02:41 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:from:date:message-id:subject:to; bh=P/1UwocX4NSLp40WUFWjQA4IxxvZ8nHcNC9SS4ZGJ9M=; b=jDmJEMpJRGEk7XDZFfSeYSdNP94gzffP4X5mIYaa+0F9SshYdrPMAhXJlMKnUsXEeh u/YOMJbweAZtwSIciWwHtow8pl6jHdhJPm7cm7qwZnN2gZgm3weRmzXgU4tSi7nFN7KI /ey6ylF8S942p1bg3m3bPUv4nAwvqzIaaCYhzQ9ZY7Y3xnByjPc366Zm9SJO/nN3dt2L HqOmkVVCXpx3DZ2pnMrU85M+2YRfw0HYVHwou0rs3fr/XRtLqvn1PkqGDuzVNN/QOtaQ EB1w5TiKPuM6QrEZcAH6K0Y3XmkF7f0ArfS1FQGsXVbG4kr7ScUZXY0izYEgHfmmB/qH i0tw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=P/1UwocX4NSLp40WUFWjQA4IxxvZ8nHcNC9SS4ZGJ9M=; b=M/4Tf3wUPBC0uKfl/TIEnNz1MACOr0xpl2N99i5XKRg/MwyIFP/tsLQjYepNybeeSP DHPIAcaWh/BRX3ifmfLtU4QP46ojURpHxF71ZTLvz/1asHIsKuuDjOAfdpdJ9jkWaRao 8oXK3ov068zZeidkr2wj1earSzzg1Cn6obgX/jN40V8Wv5v4+bDvtG49S+HGOJUjcy/v CgemrW6M9rKOUVQDNGDIewtylHYZeMYcR0IElcEwgt+Sunl6ee7f+tNM+NpDEccE2slF uZ3u5iImgW3lJv3AZ6p1UMXKsghJsyUYabJGlvqMN8M5Yqd/spW7tbCIBJ1JxeqndxKL yV7A==
X-Gm-Message-State: AOAM533vqEItPgE9+JSkS7bYe2yy1H3Vd9UXGemGWhvPCe+XGLqE/ABH Wcl9TokWlcA2XqoVztvzGWjdNB4hVd0Y0jiXGZr8xfHGxgo=
X-Google-Smtp-Source: ABdhPJwcPNyCajIXz1ZbtSvGBik4+bqxAe5+GqVb5k4cVpXo3E2Tiev/C8veFqeREXjryjNH+ngWYp8b3m8jXHSgm4w=
X-Received: by 2002:a05:6402:10c8:: with SMTP id p8mr17904724edu.144.1614639757968;  Mon, 01 Mar 2021 15:02:37 -0800 (PST)
MIME-Version: 1.0
From: Masanori Ogino <masanori.ogino@gmail.com>
Date: Tue, 2 Mar 2021 08:02:24 +0900
Message-ID: <CAA-4+jd_AR6Yt8WvvEE_M+pj8hyJEhRVM8AsXLNHpHqA8jJQyQ@mail.gmail.com>
To: openpgp@ietf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/B5MC1Mfwd9lAJ55bewhY5f6rK1I>
X-Mailman-Approved-At: Mon, 01 Mar 2021 15:05:09 -0800
Subject: [openpgp] OpenPGP Suite-B Profile vs. RFC 8423
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 01 Mar 2021 23:02:44 -0000

Hello folks,

First of all, thank you all for your effort on revising OpenPGP RFC!
I am really glad to hear that the OpenPGP WG was officially rebooted recently.

I have a comment on draft-ietf-openpgp-crypto-refresh-02, section 16.2.
The section specifies a compatibility profile conforming the Suite B.
However, IETF published RFC 8423 that moved several RFCs referring the
Suite B for other protocols to Historic.

>From RFC 8423:
> In July 2015, NSA published the Committee for National Security
> Systems Advisory Memorandum 02-15 as the first step in replacing
> Suite B with NSA's Commercial National Security Algorithm (CNSA)
> Suite.
> (...)
> As indicated in [CNSA], NSA is transitioning from Suite B to the CNSA
> Suite.  As a result, the profiles of the security protocols for the
> Suite B algorithms are now only of historic interest.

It would be great if the ongoing revision specifies a CNSA profile
and/or obsoletes the Suite B profile IMHO.
What do you think?

Best,
Masanori


From nobody Mon Mar  1 21:58:43 2021
Return-Path: <kaduk@mit.edu>
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 C509E3A2658 for <openpgp@ietfa.amsl.com>; Mon,  1 Mar 2021 21:58:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h-epE6z6CDQC for <openpgp@ietfa.amsl.com>; Mon,  1 Mar 2021 21:58:40 -0800 (PST)
Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 72AAD3A2656 for <openpgp@ietf.org>; Mon,  1 Mar 2021 21:58:40 -0800 (PST)
Received: from kduck.mit.edu ([24.16.140.251]) (authenticated bits=56) (User authenticated as kaduk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 1225wXis018564 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 2 Mar 2021 00:58:37 -0500
Date: Mon, 1 Mar 2021 21:58:33 -0800
From: Benjamin Kaduk <kaduk@mit.edu>
To: Masanori Ogino <masanori.ogino@gmail.com>
Cc: openpgp@ietf.org
Message-ID: <20210302055833.GY21@kduck.mit.edu>
References: <CAA-4+jd_AR6Yt8WvvEE_M+pj8hyJEhRVM8AsXLNHpHqA8jJQyQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAA-4+jd_AR6Yt8WvvEE_M+pj8hyJEhRVM8AsXLNHpHqA8jJQyQ@mail.gmail.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/8c-PCansy5IHDzrq3wLnynWi9G8>
Subject: Re: [openpgp] OpenPGP Suite-B Profile vs. RFC 8423
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Mar 2021 05:58:43 -0000

On Tue, Mar 02, 2021 at 08:02:24AM +0900, Masanori Ogino wrote:
> Hello folks,
> 
> First of all, thank you all for your effort on revising OpenPGP RFC!
> I am really glad to hear that the OpenPGP WG was officially rebooted recently.
> 
> I have a comment on draft-ietf-openpgp-crypto-refresh-02, section 16.2.
> The section specifies a compatibility profile conforming the Suite B.
> However, IETF published RFC 8423 that moved several RFCs referring the
> Suite B for other protocols to Historic.
> 
> >From RFC 8423:
> > In July 2015, NSA published the Committee for National Security
> > Systems Advisory Memorandum 02-15 as the first step in replacing
> > Suite B with NSA's Commercial National Security Algorithm (CNSA)
> > Suite.
> > (...)
> > As indicated in [CNSA], NSA is transitioning from Suite B to the CNSA
> > Suite.  As a result, the profiles of the security protocols for the
> > Suite B algorithms are now only of historic interest.
> 
> It would be great if the ongoing revision specifies a CNSA profile
> and/or obsoletes the Suite B profile IMHO.
> What do you think?

Obsoleting (or maybe even just not describing; I didn't look at the current
state of it) the Suite B profile seems worthwhile.

The ongoing CNSA work has not been done in the IETF itself, and instead is
progressing as RFCs via the Independent Submissions Editor.

-Ben


From nobody Mon Mar  1 23:25:15 2021
Return-Path: <wk@gnupg.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 7E4F33A279A for <openpgp@ietfa.amsl.com>; Mon,  1 Mar 2021 23:25:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=gnupg.org
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GWIp7qzTYoe7 for <openpgp@ietfa.amsl.com>; Mon,  1 Mar 2021 23:25:12 -0800 (PST)
Received: from kerckhoffs.g10code.com (kerckhoffs.g10code.com [IPv6:2001:aa8:fff1:100::22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 87F5B3A2798 for <openpgp@ietf.org>; Mon,  1 Mar 2021 23:25:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnupg.org;  s=20181017; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=zKgBra5mdrrJh/bZNeD5C2va0TaYwCet4eTK0CeIbCQ=; b=RmgiaIxS4eTDMVot0zxDxRbAgs jfonhxw7rij/QqWAgBwEWOIxPunNp5jAsVK+qfZqnEb+h3NsumFScFKYpkmEWj8J6yLCy+tWhEO86 0rgxD5jUXzcKbcBVdkc+nIsOMesi7A59ExaHnjXzlcsoB1tGLm0/LtJ6QPpbddcEK/xU=;
Received: from uucp by kerckhoffs.g10code.com with local-rmail (Exim 4.89 #1 (Debian)) id 1lGzP3-0008Cz-06 for <openpgp@ietf.org>; Tue, 02 Mar 2021 08:25:09 +0100
Received: from wk by wheatstone.g10code.de with local (Exim 4.92 #5 (Debian)) id 1lGzLL-0001R9-1m; Tue, 02 Mar 2021 08:21:19 +0100
From: Werner Koch <wk@gnupg.org>
To: Benjamin Kaduk <kaduk@mit.edu>
Cc: Masanori Ogino <masanori.ogino@gmail.com>,  openpgp@ietf.org
References: <CAA-4+jd_AR6Yt8WvvEE_M+pj8hyJEhRVM8AsXLNHpHqA8jJQyQ@mail.gmail.com> <20210302055833.GY21@kduck.mit.edu>
Organisation: GnuPG e.V.
X-message-flag: Mails containing HTML will not be read! Please send only plain text.
Mail-Followup-To: Benjamin Kaduk <kaduk@mit.edu>, Masanori Ogino <masanori.ogino@gmail.com>, openpgp@ietf.org
Date: Tue, 02 Mar 2021 08:21:18 +0100
In-Reply-To: <20210302055833.GY21@kduck.mit.edu> (Benjamin Kaduk's message of "Mon, 1 Mar 2021 21:58:33 -0800")
Message-ID: <87pn0i6mxd.fsf@wheatstone.g10code.de>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=cypherpunk_mol_cryptographic_strategic_Cartel_de_Golfo_Burn_Deaths=S"; micalg=pgp-sha256; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/QSrz1fQTqs0HOV5FUNBvkCMzol0>
Subject: Re: [openpgp] OpenPGP Suite-B Profile vs. RFC 8423
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Mar 2021 07:25:15 -0000

--=cypherpunk_mol_cryptographic_strategic_Cartel_de_Golfo_Burn_Deaths=S
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Mon,  1 Mar 2021 21:58, Benjamin Kaduk said:

> Obsoleting (or maybe even just not describing; I didn't look at the curre=
nt
> state of it) the Suite B profile seems worthwhile.

I would also suggest to remove any mention of the Suite B profile.

If we mention a specific local standard others countries may also want
to have their profiles mentioned (e.g. Brainpool in Europe).


Salam-Shalom,

   Werner

=2D-=20
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

--=cypherpunk_mol_cryptographic_strategic_Cartel_de_Golfo_Burn_Deaths=S
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQSHd0YfKgdOvEgNNZQZzByeCFsQegUCYD3nbgAKCRAZzByeCFsQ
ei7jAQCD5BdGvoykT9OpEoq8uesdIp9iWVnoC2e/DjPAnSHf1AD+K63IJBQOK2x+
C3WVGS6FbeSvySpYqEC5IjoKRohKsAI=
=Qm7L
-----END PGP SIGNATURE-----
--=cypherpunk_mol_cryptographic_strategic_Cartel_de_Golfo_Burn_Deaths=S--


From nobody Tue Mar  2 00:56:17 2021
Return-Path: <masanoriogino@gmail.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 B97D23A13E3 for <openpgp@ietfa.amsl.com>; Tue,  2 Mar 2021 00:56:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level: 
X-Spam-Status: No, score=-2.098 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, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a87nahJ7eIgU for <openpgp@ietfa.amsl.com>; Tue,  2 Mar 2021 00:56:13 -0800 (PST)
Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3F5BA3A13D6 for <openpgp@ietf.org>; Tue,  2 Mar 2021 00:56:13 -0800 (PST)
Received: by mail-ed1-x52e.google.com with SMTP id dm26so609455edb.12 for <openpgp@ietf.org>; Tue, 02 Mar 2021 00:56:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DhMeotfXkcXzJ3vrRCf+VJthAvhx2NRAjj/2qhRyfwQ=; b=bOIcH+LrJ3+CBeMc2gpo8dTNZNyLcbIsiRCmYGqFkGccXESkgEn22bAa/R8A9RbHRM nSloZ2EZrqgS6i3+EcCJo3teIEvq2G0W/+QjGV51PmozEXZzlD7eHNPFZ9Y8Yv0znPcN 0RopZnZGvpeMF9iOtAxl5w+5C3h7mwlKqIRrUfHbEgIbUEOW6dJyyB3H9d8wt8OHMLp4 5EHC+qdNgEiSJwlbUlfs3vyTZ11tLFVwO5XuoPObtqt1Pqa6lbbcUmriD1BBghOuIP/t PDy7iw0jQoMEHAuD804bDLUOornbAsmZwW5LId1tB4BDmAkaN9k2BVYU8VZ7MdR5KIlw anGw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DhMeotfXkcXzJ3vrRCf+VJthAvhx2NRAjj/2qhRyfwQ=; b=p6gpVK8Slid2GEQsxy+WwVu9zPnystpzkR5DjDR0B8GUfo1G4yBLU4vGsfNXqPACH2 TC8hOQl/tycEsAdVvTR3LxUcKnCEmm4rXOi/1IVyoMO2ZNEQYlwcTPNI/iWXWr+CrkaA 5rBzSZf/xIszkY1uwe0RbY6h1XK/L/BNKxS+kuSWHtLxfYw/gczLopCeVN2SGBeFmB/F V2XQEC9zdn8dJ1vRFlu2lcgBRsmuN62AxELw2hRhlqWs4VigygNfULtWH8iX141GpbCi EJV8l1LErWKvHGg+C/7z5iWa8EKof17c/EJkXyXc1W/TeTGAKJxhkhTltLdlsqxfaDWW 6qpg==
X-Gm-Message-State: AOAM533IP7TSrMp347klV+l1S3NT/MILeMYkGN0M6ujn8n7PMVWZv7wF 5GmFcNBBMkljSsvXLueyeHgqgYqXCFoZdG7jl8w=
X-Google-Smtp-Source: ABdhPJwru1HAFp3morzE220PUccBBZHYTTU+sjrfIkWDsIvfn661BXS8LZJD3nmQAqDVCYUPGQ45pAwYLtIofWANCmQ=
X-Received: by 2002:aa7:d987:: with SMTP id u7mr7512474eds.326.1614675368840;  Tue, 02 Mar 2021 00:56:08 -0800 (PST)
MIME-Version: 1.0
References: <CAA-4+jd_AR6Yt8WvvEE_M+pj8hyJEhRVM8AsXLNHpHqA8jJQyQ@mail.gmail.com> <20210302055833.GY21@kduck.mit.edu> <87pn0i6mxd.fsf@wheatstone.g10code.de>
In-Reply-To: <87pn0i6mxd.fsf@wheatstone.g10code.de>
From: Masanori Ogino <masanori.ogino@gmail.com>
Date: Tue, 2 Mar 2021 17:55:57 +0900
Message-ID: <CAA-4+jduV50LZmabODjToNj2BSnJ8F_1LJ6V2a34fD896yM7kw@mail.gmail.com>
To: Benjamin Kaduk <kaduk@mit.edu>, Werner Koch <wk@gnupg.org>
Cc: openpgp@ietf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/Gff2QW9AF7piLCAvXtH3sn3K9go>
Subject: Re: [openpgp] OpenPGP Suite-B Profile vs. RFC 8423
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Mar 2021 08:56:15 -0000

Hello Benjamin and Werner,

Thank you for prompt responses.

On Tue, Mar 2, 2021 at 4:25 PM Werner Koch <wk@gnupg.org> wrote:
>
> On Mon,  1 Mar 2021 21:58, Benjamin Kaduk said:
>
> > Obsoleting (or maybe even just not describing; I didn't look at the current
> > state of it) the Suite B profile seems worthwhile.
>
> I would also suggest to remove any mention of the Suite B profile.
>
> If we mention a specific local standard others countries may also want
> to have their profiles mentioned (e.g. Brainpool in Europe).

It makes sense for sure.

Best,
Masanori


From nobody Tue Mar  2 19:27:07 2021
Return-Path: <gniibe@fsij.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 09A633A1820 for <openpgp@ietfa.amsl.com>; Tue,  2 Mar 2021 19:27:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
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, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=fsij.org
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XGnQ_n_ZU_ug for <openpgp@ietfa.amsl.com>; Tue,  2 Mar 2021 19:27:02 -0800 (PST)
Received: from akagi.fsij.org (akagi.fsij.org [217.70.189.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6144C3A180A for <openpgp@ietf.org>; Tue,  2 Mar 2021 19:27:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=fsij.org; s=main; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=MybijfpMJQGjUkPWjiGicDVTskw9U0kWfNVNdDBkhh0=; b=t9/q7GcjflhpsZr2qbw2g2sWxX vlQE5kfL1UU8rJhZfkI4Wf50l/mZ8McqedtxkNzkQrd/e5aZ6UeJWsVO5zI8a3qoT+AMAVZr6/8bg 88qJrJTwvKnm2/FjlSV7EXAxWH0tpnqMgDk3HwF+pz2ldsddprBVjz/9Soukn2Bak+QOV+isGGau+ 63BJowftsFEiWhoXXvelK9dmy0t/BDoKqD55CVhrSphuoFvCYT5UQUqmOh365pg09FBPVIVuMBVq1 EXSZq/9s0ekF7pKWa+7GInWsgLeUOZDb0hamGny/hQPGhqVNq2KdsR8PKsO9xnNMlcjAIKmfn1S2t m0QXCJzA==;
Received: from m014008080161.v4.enabler.ne.jp ([14.8.80.161] helo=iwagami.gniibe.org) by akagi.fsij.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <gniibe@fsij.org>) id 1lHIA5-0002oD-8O; Wed, 03 Mar 2021 04:26:58 +0100
Received: by iwagami.gniibe.org (sSMTP sendmail emulation); Wed, 03 Mar 2021 12:26:52 +0900
From: NIIBE Yutaka <gniibe@fsij.org>
To: Werner Koch <wk@gnupg.org>, Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Cc: openpgp@ietf.org
In-Reply-To: <87czwj8d3b.fsf@wheatstone.g10code.de>
References: <87h7lyccns.fsf@fifthhorseman.net> <87czwj8d3b.fsf@wheatstone.g10code.de>
Date: Wed, 03 Mar 2021 12:26:52 +0900
Message-ID: <87v9a829z7.fsf@iwagami.gniibe.org>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/FJkI6YgWMpAOiVJCqLbz7MD9NVw>
Subject: Re: [openpgp] ECC point encoding and "flag byte"
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Mar 2021 03:27:06 -0000

Hello,

I tried to modify/fix the specification, but I realized that I don't
have enough skills writing (a part of) specification.

So, instead of the modifying the specification, I wrote a bug report.

Here it is (in ReST format, an initial version).

It is also available at:
https://www.gniibe.org/log/bugreport/openpgp/ecc-in-openpgp.html
(possibly, more update in future)

Your comments will be appreciated. 

--------------------------
=================================
ECC in OpenPGP (as of March 2021)
=================================

In this bug report, I describe how we can improve OpenPGP specification
for ECC, so that different implementations can inter-operate well, and
an implementation can avoid a bug.

Firstly, I point out the single issue: **Opaque Data Element should be
available in OpenPGP**.  I name it **Strange Octet String (SOS)**.

Secondly, I explain about where we should use SOS to represent ECC
things in OpenPGP.

Thirdly, I describe how ECC things were defined in OpenPGP.  And I
explain how these were implemented in GnuPG for classic ECC, then
modern ECC (Ed25519 and Curve25519).

Fourthly, I describe my bug in GnuPG 2.3-beta regarding Ed25519 key
and signature, which I'm fixing now.

Fifthly, I explain about the implementation of handling Ed448
signature and X448 encryption in GnuPG 2.3-beta, with SOS.

Lastly, I conclude that SOS may be the best apporach for OpenPGP.


1: Opaque Data Element should be available in OpenPGP
=====================================================

RFC 4880 and RFC 6637 were good, when it was common to represent data
in big-endian format.

These days, in modern ECC, things are defined in little-endian format.

In this situation, it's good to have a data element which can
represent **something in native format** (or anything, hopefully).


Don't repeat, just refer
------------------------

It's good for a specification to be able to simply **refer** another
specification when it uses technology of latter.

When we repeat some definitions in a specification from another
specification, something wrong may happen.  It's good when we can
avoid this.


Strange Octet String (SOS)
--------------------------

Here, I propose an opaque data element in OpenPGP, named Strange Octet
String (SOS).

I had tried introducing straight-forward Octet String to OpenPGP
(length in octets plus an opaque string), but for backward
compatibility, I concluded that "strange" one is better, instead.

It is defined as:

    An SOS consists of two pieces: a two-octet scalar that is the length
    of the SOS in bits followed by an opaque string of octets.

Most important point is that no semantics is given for the data
element, but it is up to underlying crypto algorithm.  (-: down to?)

Another point is that it has exactly the same structure of MPI, thus,
every MPI can be handled as an SOS.

When an SOS data object is handled as an MPI, it would look "strange"
as it may include preceding zeros, which is not allowed in well-formed
MPI.


2: Let us use SOS for ECC things
================================

I'd like to propose using SOS for ECC things.  We can use SOS for
following data.

* EdDSA Signature

  - R: to represent an EC point, use SOS
  - S: to represent integer, use SOS

* EdDSA Public Key

  - For an EC point, use SOS

* ECDH Public Key with modern Curves

  - For an an EC point, use SOS

* EdDSA Secret Key

  - Just use SOS

* ECDH Secret Key with modern Curves

  - Just use SOS

* ECDH Ephemeral Public Key with modern Curves

  - For an an EC point, use SOS

(If needed,) existing definitions for ECC can replace MPI to SOS.


3: ECC in RFC 6637, Ed25519 and Curve25519 in OpenPGP
=====================================================

You'd say, it's a mess.  But that's how it's evolved.


Classic ECC with MPI
--------------------

In RFC 6637, it is defined using MPI as:

::

   9. Encoding of Public and Private Keys
   [...]
      Algorithm-Specific Fields for ECDSA keys:
   [...]
         o  MPI of an EC point representing a public key
   [...]
        Algorithm-Specific Fields for ECDH keys:
   [...]
            -  MPI of an EC point representing a public key
   [...]
        Algorithm-Specific Fields for ECDH or ECDSA secret keys:
   [...]
         o  an MPI of an integer representing the secret key, which is a
            scalar of the public EC point
   [...]
   10.  Message Encoding with Public Keys
   [...]
      Algorithm-Specific Fields for ECDH:
   [...]
         o an MPI of an EC point representing an ephemeral public key

And ECDSA signature is effectively defined using MPI as:

::

      Algorithm-Specific Fields for ECDSA signatures:

        - MPI of ECDSA value r.

        - MPI of ECDSA value s.



Ed25519 data format
-------------------

If I described current format for Ed25519...

Keys are something like this:

::

   9. Encoding of Public and Private Keys
   [...]
      Algorithm-Specific Fields for EdDSA keys:
   [...]
         o  MPI of an EC point representing a public key with prefix 0x40
            so that we can avoid removing preceding zeros.
   [...]
        Algorithm-Specific Fields for EdDSA secret keys:
   [...]
         o  an MPI of an integer representing the secret key,
            in little-endian format, removing preceding zeros to be
            well-formed MPI.

Signature are something like this:

::

      Algorithm-Specific Fields for ECDSA signatures:

        - MPI of R of EdDSA, whcih represents an EC point without
          prefix 0x40, removing preceding zeros to make it well-formed
          MPI.

        - MPI of EdDSA value s, an integer in little endian format,
          removing preceding zeros to be well-formed MPI.

Please note that we don't put 0x40 to represent an EC point in R part
of signature.  Please also note that we have to remove preceding zeros
to form well-formed MPI for secret keys (non-encrypted), R and S part
of signature.


Curve25519 data format
----------------------

If I described current format for Curve25519, it's something like this:

::

   9. Encoding of Public and Private Keys
   [...]
        Algorithm-Specific Fields for ECDH keys:
   [...]
            -  MPI of an EC point representing a public key with prefix 0x40
               so that we can avoid removing preceding zeros.
   [...]
        Algorithm-Specific Fields for ECDH secret keys:
   [...]
         o  an MPI of an integer representing the secret key, which is a
            scalar of the public EC point (!!big-endian integer!!)
   [...]
   10.  Message Encoding with Public Keys
   [...]
      Algorithm-Specific Fields for ECDH:
   [...]
         o an MPI of an EC point representing an ephemeral public key
           with prefix 0x40 so that we can avoid removing preceding zeros.

It's a mixture of little-endian and big-endian, unfortunately.


4: Ed25519 interoperability issue in GnuPG 2.3-beta (currently being fixed)
===========================================================================

In GnuPG 2.3-beta, it is handled as SOS, so, we have an issue for Ed25519.

See:

- Key: https://dev.gnupg.org/T5120

- Signature: https://dev.gnupg.org/T5331


5: Ed448 and X448 in GnuPG 2.3-beta, using SOS
==============================================

Keys and signatures are simply defined using SOS, there are no prefix,
no removal or recovery of zeros.

As described above, it would look a bit strange as an OpenPGP data, if
you interpret it as an MPI (it may include preceding zeros), but it's
a way simple.


Conclusion
==========

For new things, like Ed448 and X448, it's better to use SOS.

Lastly, let me make an excuse.  Curve25519 in GnuPG was implemented in
that way, the intention at that time was to align to RFC 6637 and
existing implementation (X25519 specification was not yet available).
-- 


From nobody Wed Mar  3 00:02:27 2021
Return-Path: <gniibe@fsij.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 AA3263A1C85 for <openpgp@ietfa.amsl.com>; Wed,  3 Mar 2021 00:02:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
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, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=fsij.org
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id apoM4uEvuyYv for <openpgp@ietfa.amsl.com>; Wed,  3 Mar 2021 00:02:24 -0800 (PST)
Received: from akagi.fsij.org (akagi.fsij.org [217.70.189.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9A6433A1C84 for <openpgp@ietf.org>; Wed,  3 Mar 2021 00:02:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=fsij.org; s=main; h=Content-Type:MIME-Version:Message-ID:Date:In-reply-to:Subject:Cc: To:From:References:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=sxRFibkfySGqC0OVmKxXurbH+T+pnXynBQ/s7ev4EDs=; b=swPJrzypXdNV7KH/zs5HDC0SYV N2bq6aSROfqVPt1xS/F6NK8KsN3xLlPIg9SatsQrbzSZTMNvBouo4xL3SMKVDUcAHJlLCHr36tmaG pp7onEUK4FVA97LAa/DZq4JcaiflsmFUpw2UQmf/nq5Lb5+ZKqN24uQlICu1LM8LxBuYQe/qlO4LQ TeCoj+SwHiYHWoRizXxn5575b3ENC3AKxh7CO/KC451fQHHJ8D+Gf4cza0iiZ9VyMcX1CfoZFTTVV 7AhPYn8AMdEDM/xafgwL4EYwawg4nktognmLs1M7Fhs1Spu1Ar72WmdBuFZ+pgIJTPUO3a1n58tzT 5+EYYuPw==;
Received: from i201193.dynamic.ppp.asahi-net.or.jp ([61.125.201.193] helo=localhost) by akagi.fsij.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <gniibe@fsij.org>) id 1lHMSY-00030j-So; Wed, 03 Mar 2021 09:02:19 +0100
References: <87h7lyccns.fsf@fifthhorseman.net> <87czwj8d3b.fsf@wheatstone.g10code.de> <87v9a829z7.fsf@iwagami.gniibe.org>
User-agent: mu4e 1.0; emacs 27.1
From: NIIBE Yutaka <gniibe@fsij.org>
To: Werner Koch <wk@gnupg.org>, Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Cc: openpgp@ietf.org
In-reply-to: <87v9a829z7.fsf@iwagami.gniibe.org>
Date: Wed, 03 Mar 2021 17:02:15 +0900
Message-ID: <8735xcmzqw.fsf@jumper.gniibe.org>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/-8xzKLqiVbIVb21mSMt-2DhU3s0>
Subject: Re: [openpgp] ECC point encoding and "flag byte"
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Mar 2021 08:02:27 -0000

--=-=-=
Content-Type: text/plain

NIIBE Yutaka wrote:
> 4: Ed25519 interoperability issue in GnuPG 2.3-beta (currently being fixed)
> ===========================================================================
>
> In GnuPG 2.3-beta, it is handled as SOS, so, we have an issue for Ed25519.
>
> See:
>
> - Key: https://dev.gnupg.org/T5120
>
> - Signature: https://dev.gnupg.org/T5331

Here are two example files which were produced by GnuPG 2.3-beta.
Those include Ed25519 signatures.

0110.asc includes signature with S part having zero at the start.
0354.asc includes signature with R part having zero at the start.

Here are dumps of these files:

========= 0110.asc ==========
# off=0 ctb=88 tag=2 hlen=2 plen=117
:signature packet: algo 22, keyid E267B052364F028D
	version 4, created 1614755507, md5len 0, sigclass 0x01
	digest algo 10, begin of digest 4f 78
	hashed subpkt 33 len 21 (issuer fpr v4 249CB3771750745D5CDD323CE267B052364F028D)
	hashed subpkt 2 len 4 (sig created 2021-03-03)
	subpkt 16 len 8 (issuer key ID E267B052364F028D)
	data: ADEE890B755C3B52D46FB0105097F23B5905B472C626222ACB4E441D8EB40001
	data: 007119FF80C34DA152BDB07E1EF5D968CB9F2773002A0CF57911670BE248CF06

========= 0354.asc ==========
# off=0 ctb=88 tag=2 hlen=2 plen=117
:signature packet: algo 22, keyid E267B052364F028D
	version 4, created 1614755520, md5len 0, sigclass 0x01
	digest algo 10, begin of digest 28 19
	hashed subpkt 33 len 21 (issuer fpr v4 249CB3771750745D5CDD323CE267B052364F028D)
	hashed subpkt 2 len 4 (sig created 2021-03-03)
	subpkt 16 len 8 (issuer key ID E267B052364F028D)
	data: 001DB3839E3FD8D4CB81357EE5E42F4AF652C252A03A0FB21768621B1025C08C
	data: AF5A0910EF1D4D6BDD07EA0AA6D69049CB7BA7ED42427E14B8B72CF2C2231704


I wonder if other implementations can handle these files correctly.

Specifically, it is malformed MPI in terms of current OpenPGP
specification.
-- 

--=-=-=
Content-Type: text/plain
Content-Disposition: attachment; filename=0110.asc

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello OpenPGP! This is 0110-th message
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQQknLN3F1B0XVzdMjziZ7BSNk8CjQUCYD82swAKCRDiZ7BSNk8C
jU94AQCt7okLdVw7UtRvsBBQl/I7WQW0csYmIirLTkQdjrQAAQEAAHEZ/4DDTaFS
vbB+HvXZaMufJ3MAKgz1eRFnC+JIzwY=
=cHln
-----END PGP SIGNATURE-----

--=-=-=
Content-Type: text/plain
Content-Disposition: attachment; filename=0354.asc

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello OpenPGP! This is 0354-th message
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQQknLN3F1B0XVzdMjziZ7BSNk8CjQUCYD82wAAKCRDiZ7BSNk8C
jSgZAQAAHbODnj/Y1MuBNX7l5C9K9lLCUqA6D7IXaGIbECXAjAEAr1oJEO8dTWvd
B+oKptaQSct7p+1CQn4UuLcs8sIjFwQ=
=6aK5
-----END PGP SIGNATURE-----

--=-=-=--


From nobody Wed Mar  3 01:18:49 2021
Return-Path: <wiktor@metacode.biz>
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 7B3833A1D85 for <openpgp@ietfa.amsl.com>; Wed,  3 Mar 2021 01:18:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level: 
X-Spam-Status: No, score=-2.1 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, NICE_REPLY_A=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=metacode.biz
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tZni9jzMMop3 for <openpgp@ietfa.amsl.com>; Wed,  3 Mar 2021 01:18:45 -0800 (PST)
Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5684D3A1C87 for <openpgp@ietf.org>; Wed,  3 Mar 2021 01:18:45 -0800 (PST)
Received: by mail-ed1-x536.google.com with SMTP id l12so28927451edt.3 for <openpgp@ietf.org>; Wed, 03 Mar 2021 01:18:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=metacode.biz; s=2017;  h=to:cc:references:from:organization:subject:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0LxYhEJzTBOfa7Rzt3dceb+pqvHTXdXs6G9GVpqETmU=; b=0BD7leTWqcZHAkYnjqYtxhi8S35MAI0HtYN0lVUMgHBvJJYSz+f6aUclOMi994IHoQ T5Nl11RWS9ey3IDZKWCyVBgCQSkwXWRndSCLlNSeQLGZO+fANkFh+hHfRHdCPhLIzrnx VvHrc8yjzjy8Tx4VLN/fhFpEfaYfAre/T7sdIyN08kERG8190Yj2uI7MBJhkgKywDOrM ih3iY28wIaOQIhy9qtDS1P/rqa2Sp3w7r/ne8338RsytXWTtqqyAh3ms8hSXn7gxDuJ1 ZwRQJ9g/OU4ePYdXpBn1iKsGrzjDsI9lN+REYVd6YqHBJq2Fgr7qzwjTaHiNqz7q8NFr 7MBQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:references:from:organization:subject :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=0LxYhEJzTBOfa7Rzt3dceb+pqvHTXdXs6G9GVpqETmU=; b=hNsxpzhc4aDvD6KBr0HYhVHvOEe9szwP8LbqX/dNgzhhyhObXjim1816446IklkIM/ JmGKI6czmqMaHI0igXmyxqB131nx7NOYfa7ZaxG2bBpLweHE7cyBTNG0pqfaA6RBiuew 15JFNUYH88FpTWSdTiLdFXJbjHY1TkVzf+9gzPS3HbbRrAe0RqpL40FU6XzX70srweBz VKr8DxynZzXBSeH82G+eJzHBI+5/Q8vv9CuHYfcNgYv6OZlCx/TxEL1+xdTXO3OXkn1s bZSe+KQDGsY7dDBiGYtn3bO40EsD7CBHAIzSWkmMiiyGh2u6ggtEFiCE24ozaBhC6TV3 gzrg==
X-Gm-Message-State: AOAM531gRiDjvYaDwRK8vH1xHbloepYC/toEggHYGgtjDrkJoOZNrlzD reDvicfRnibiqLHEzxL3XjNkuAegjmUfHA==
X-Google-Smtp-Source: ABdhPJz1oblE3IOs69mQFdV8K7F5f7oxVbML7cj74/M+vcIYDSl94cRX1uXLtejK0ty693NDDN/rhA==
X-Received: by 2002:a50:fe17:: with SMTP id f23mr25174664edt.258.1614763122975;  Wed, 03 Mar 2021 01:18:42 -0800 (PST)
Received: from [192.168.1.160] (public-gprs351902.centertel.pl. [37.47.5.223]) by smtp.googlemail.com with ESMTPSA id c17sm20526119edw.32.2021.03.03.01.18.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Mar 2021 01:18:42 -0800 (PST)
To: NIIBE Yutaka <gniibe@fsij.org>
Cc: openpgp@ietf.org, Werner Koch <wk@gnupg.org>, Daniel Kahn Gillmor <dkg@fifthhorseman.net>
References: <87h7lyccns.fsf@fifthhorseman.net> <87czwj8d3b.fsf@wheatstone.g10code.de> <87v9a829z7.fsf@iwagami.gniibe.org>
From: Wiktor Kwapisiewicz <wiktor@metacode.biz>
Organization: Metacode
Message-ID: <ee1f255c-beb2-e149-9910-bf004b739bf1@metacode.biz>
Date: Wed, 3 Mar 2021 10:19:07 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0
MIME-Version: 1.0
In-Reply-To: <87v9a829z7.fsf@iwagami.gniibe.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/bjTxRFL-CETUAHCMO7aMgog1V8g>
Subject: Re: [openpgp] ECC point encoding and "flag byte"
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Mar 2021 09:18:47 -0000

Hi Niibe,

Thanks for working on that! Having recently read the MPI section there 
are definitely some things that could be improved.

But I want to comment on one particular thing:

On 03.03.2021 04:26, NIIBE Yutaka wrote:
> When an SOS data object is handled as an MPI, it would look "strange"
> as it may include preceding zeros, which is not allowed in well-formed
> MPI.

Actually from my reading of section 3.2 [0] preceding zeros are not 
explicitly disallowed in the spec. It's just the preceding zeros should 
not count towards MPI length:

>    The length field of an MPI describes the length starting from its
>    most significant non-zero bit.  Thus, the MPI [00 02 01] is not
>    formed correctly.  It should be [00 01 01].



[0]: https://tools.ietf.org/html/rfc4880#section-3.2

It doesn't say that [00 01 00 01] is invalid, just that the length 
should not include leading zeros: [00 02 01].

(Unless I'm reading something wrong: please correct me if that's the fact).

For the record I thought that the "byte length" (not MPI bit length) 
would be more appropriate because for all purposes the emitted stream 
will always contain full bytes anyway but I do understand you want to 
keep the backwards compatibility. Even though maybe new curves can use 
this new byte-length SOS.

Calculating bits correctly seems to be more complex than necessary with 
potential for confusion: I've reported it to GnuPG [1] and Sequoia [2].

[1]: https://lists.gnupg.org/pipermail/gnupg-devel/2021-March/034735.html

[2]: https://gitlab.com/sequoia-pgp/sequoia/-/issues/682

Kind regards,
Wiktor


From nobody Wed Mar  3 14:29:35 2021
Return-Path: <fw@deneb.enyo.de>
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 0F8353A1C68; Wed,  3 Mar 2021 14:29:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8i5y8iSE47aB; Wed,  3 Mar 2021 14:29:30 -0800 (PST)
Received: from albireo.enyo.de (albireo.enyo.de [37.24.231.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3DBC43A1C67; Wed,  3 Mar 2021 14:29:27 -0800 (PST)
Received: from [172.17.203.2] (port=36387 helo=deneb.enyo.de) by albireo.enyo.de ([172.17.140.2]) with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1lHZzf-0006dm-1X; Wed, 03 Mar 2021 22:29:23 +0000
Received: from fw by deneb.enyo.de with local (Exim 4.92) (envelope-from <fw@deneb.enyo.de>) id 1lHZze-0000Sp-TH; Wed, 03 Mar 2021 23:29:22 +0100
From: Florian Weimer <fw@deneb.enyo.de>
To: Wiktor Kwapisiewicz <wiktor=40metacode.biz@dmarc.ietf.org>
Cc: NIIBE Yutaka <gniibe@fsij.org>, Werner Koch <wk@gnupg.org>, openpgp@ietf.org, Daniel Kahn Gillmor <dkg@fifthhorseman.net>
References: <87h7lyccns.fsf@fifthhorseman.net> <87czwj8d3b.fsf@wheatstone.g10code.de> <87v9a829z7.fsf@iwagami.gniibe.org> <ee1f255c-beb2-e149-9910-bf004b739bf1@metacode.biz>
Date: Wed, 03 Mar 2021 23:29:22 +0100
In-Reply-To: <ee1f255c-beb2-e149-9910-bf004b739bf1@metacode.biz> (Wiktor Kwapisiewicz's message of "Wed, 3 Mar 2021 10:19:07 +0100")
Message-ID: <8735xban25.fsf@mid.deneb.enyo.de>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/cyodLapwin6NAKb7E_0S7v71Mec>
Subject: Re: [openpgp] ECC point encoding and "flag byte"
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Mar 2021 22:29:33 -0000

* Wiktor Kwapisiewicz:

> [0]: https://tools.ietf.org/html/rfc4880#section-3.2
>
> It doesn't say that [00 01 00 01] is invalid, just that the length 
> should not include leading zeros: [00 02 01].
>
> (Unless I'm reading something wrong: please correct me if that's the fact).
>
> For the record I thought that the "byte length" (not MPI bit length) 
> would be more appropriate because for all purposes the emitted stream 
> will always contain full bytes anyway but I do understand you want to 
> keep the backwards compatibility. Even though maybe new curves can use 
> this new byte-length SOS.
>
> Calculating bits correctly seems to be more complex than necessary with 
> potential for confusion: I've reported it to GnuPG [1] and Sequoia [2].
>
> [1]: https://lists.gnupg.org/pipermail/gnupg-devel/2021-March/034735.html
>
> [2]: https://gitlab.com/sequoia-pgp/sequoia/-/issues/682

This isn't really specific to ECC.  RSA has a similar issue.  I've
asked about this before, but it seems the message got lost at the
time.

From: Florian Weimer <fw@deneb.enyo.de>
To: ietf-openpgp@imc.org
Subject: Implementations do not seem to use RFC 3447 PKCS#1 encoding
Date: Thu, 02 Apr 2020 22:56:26 +0200
Message-ID: <87a73tk3np.fsf@mid.deneb.enyo.de>

It seems that some implementations drop leading zeros from MPIs,
violating the octet string length requirements in RFC 3447, which are
also repeated in section 13.1 of RFC 4880.

This is likely the result of a rule in section 3.2 of RFC 4880 that
leading zeros in MPIs should not be encoded.

It's not possible to follow both rules at the same time.

Has this come up before?


From nobody Wed Mar  3 14:38:50 2021
Return-Path: <angel@16bits.net>
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 555B13A1C91 for <openpgp@ietfa.amsl.com>; Wed,  3 Mar 2021 14:38:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Mf07tLvvrVwm for <openpgp@ietfa.amsl.com>; Wed,  3 Mar 2021 14:38:45 -0800 (PST)
Received: from mail.direccionemail.com (mail.direccionemail.com [199.195.249.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9BEB83A1C94 for <openpgp@ietf.org>; Wed,  3 Mar 2021 14:38:45 -0800 (PST)
Message-ID: <e41505a7f57175dd18f45cf7c1e8c2f7ea63458d.camel@16bits.net>
From: =?ISO-8859-1?Q?=C1ngel?= <angel@16bits.net>
To: openpgp@ietf.org
Date: Wed, 03 Mar 2021 23:38:41 +0100
In-Reply-To: <87v9a829z7.fsf@iwagami.gniibe.org>
References: <87h7lyccns.fsf@fifthhorseman.net> <87czwj8d3b.fsf@wheatstone.g10code.de> <87v9a829z7.fsf@iwagami.gniibe.org>
Content-Type: text/plain; charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/eCbb3lA6qkaQYpQH3RZxev1_daA>
Subject: Re: [openpgp] ECC point encoding and "flag byte"
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Mar 2021 22:38:49 -0000

On 2021-03-03 at 12:26 +0900, NIIBE Yutaka wrote:
> 1: Opaque Data Element should be available in OpenPGP
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
>=20
> RFC 4880 and RFC 6637 were good, when it was common to represent data
> in big-endian format.
>=20
> These days, in modern ECC, things are defined in little-endian
> format.
>=20
> In this situation, it's good to have a data element which can
> represent **something in native format** (or anything, hopefully).

No, you can't. Or rather, I expect it is an issue of terminology :-)
Written that way, it seems that you refer to the data being in the
system native *endianness*. Which you can't do, since it must be=20
possible to create a key on a big endian machine and use it (both the
public and the private one) on a little endian endian machine, or vice
versa.
On the other hand, if you mean an opaque blob private to the algorithm,
that's perfectly fine (and what's already there, I think) *but* you
need to define it anyway, it doesn't matter if it's in the OpenPGP spec
or in a specification for X curve which defines a wire format. So I
don't think you can escape from it, really :-/

Regards




From nobody Thu Mar  4 00:10:15 2021
Return-Path: <wk@gnupg.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 1537D3A15B4 for <openpgp@ietfa.amsl.com>; Thu,  4 Mar 2021 00:10:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=gnupg.org
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NrBoRIbIm2uN for <openpgp@ietfa.amsl.com>; Thu,  4 Mar 2021 00:10:12 -0800 (PST)
Received: from kerckhoffs.g10code.com (kerckhoffs.g10code.com [IPv6:2001:aa8:fff1:100::22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3C1493A15B2 for <openpgp@ietf.org>; Thu,  4 Mar 2021 00:10:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnupg.org;  s=20181017; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=TWHcKAq/LyYkpKGGPCw7yTRbKpu1YVmeL2Ufq4CttYE=; b=T/U0DspYS2U9m8ki47PLM6TLNd ROmlSIbExZ+QWaGtCn9ratNdkQVQZ4L4bJbhuuNHzTCvnsQyyIFX84qPGs+0bPwfQi34LYuLsWTy/ NXJrNcsxEG4+zCLtJgBsu9NGw7hk+CLvnVIDcXyDNa9VGTWfLT6AKPPIAxBoXesktmbg=;
Received: from uucp by kerckhoffs.g10code.com with local-rmail (Exim 4.89 #1 (Debian)) id 1lHj3f-0000sb-W3 for <openpgp@ietf.org>; Thu, 04 Mar 2021 09:10:08 +0100
Received: from wk by wheatstone.g10code.de with local (Exim 4.92 #5 (Debian)) id 1lHj2P-0006sq-3g; Thu, 04 Mar 2021 09:08:49 +0100
From: Werner Koch <wk@gnupg.org>
To: =?utf-8?Q?=C3=81ngel?= <angel@16bits.net>
Cc: openpgp@ietf.org
References: <87h7lyccns.fsf@fifthhorseman.net> <87czwj8d3b.fsf@wheatstone.g10code.de> <87v9a829z7.fsf@iwagami.gniibe.org> <e41505a7f57175dd18f45cf7c1e8c2f7ea63458d.camel@16bits.net>
Organisation: GnuPG e.V.
X-message-flag: Mails containing HTML will not be read! Please send only plain text.
Mail-Followup-To: =?utf-8?Q?=C3=81ngel?= <angel@16bits.net>, openpgp@ietf.org
Date: Thu, 04 Mar 2021 09:08:48 +0100
In-Reply-To: <e41505a7f57175dd18f45cf7c1e8c2f7ea63458d.camel@16bits.net> (=?utf-8?Q?=22=C3=81ngel=22's?= message of "Wed, 03 Mar 2021 23:38:41 +0100")
Message-ID: <87v9a75oj3.fsf@wheatstone.g10code.de>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=genetic_La_Familia_diwn_Blackbird_USP_S_Box_Flintlock_Indigo_Al_Qaed"; micalg=pgp-sha256; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/UjTXgqPaw_OkDo77R7WmcR10jq4>
Subject: Re: [openpgp] ECC point encoding and "flag byte"
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Mar 2021 08:10:14 -0000

--=genetic_La_Familia_diwn_Blackbird_USP_S_Box_Flintlock_Indigo_Al_Qaed
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On Wed,  3 Mar 2021 23:38, =C3=81ngel said:

>> In this situation, it's good to have a data element which can
>> represent **something in native format** (or anything, hopefully).
>
> No, you can't. Or rather, I expect it is an issue of terminology :-)

He meant in the algorithm/protocol/curve native format.  In fact we
already use the term "Native point format of the curve follows" in the
ECC pojnt compression flag bytes.

> On the other hand, if you mean an opaque blob private to the algorithm,
> that's perfectly fine (and what's already there, I think) *but* you
> need to define it anyway, it doesn't matter if it's in the OpenPGP spec

The algorithm/protocol/curve already defines this.


Shalom-Salam,

   Werner

=2D-=20
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

--=genetic_La_Familia_diwn_Blackbird_USP_S_Box_Flintlock_Indigo_Al_Qaed
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQSHd0YfKgdOvEgNNZQZzByeCFsQegUCYECVkAAKCRAZzByeCFsQ
euRaAQDcDVMzRgcsu2EhsxaXum7Od/UpWIa/cxj/PkTscCgSLAD8D/p185MdkcFX
JMXseuL06dmJEG96O7BcpDwZUFnJRAg=
=uzeK
-----END PGP SIGNATURE-----
--=genetic_La_Familia_diwn_Blackbird_USP_S_Box_Flintlock_Indigo_Al_Qaed--


From nobody Thu Mar  4 16:14:19 2021
Return-Path: <angel@16bits.net>
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 C368D3A19F9 for <openpgp@ietfa.amsl.com>; Thu,  4 Mar 2021 16:14:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8pipi69NilcD for <openpgp@ietfa.amsl.com>; Thu,  4 Mar 2021 16:14:16 -0800 (PST)
Received: from mail.direccionemail.com (mail.direccionemail.com [199.195.249.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E3A733A19F3 for <openpgp@ietf.org>; Thu,  4 Mar 2021 16:14:15 -0800 (PST)
Message-ID: <7dda8b9e31616bf84d409c33e4eeef79f366143f.camel@16bits.net>
From: =?ISO-8859-1?Q?=C1ngel?= <angel@16bits.net>
To: openpgp@ietf.org
Date: Fri, 05 Mar 2021 01:14:11 +0100
In-Reply-To: <87v9a75oj3.fsf@wheatstone.g10code.de>
References: <87h7lyccns.fsf@fifthhorseman.net> <87czwj8d3b.fsf@wheatstone.g10code.de> <87v9a829z7.fsf@iwagami.gniibe.org> <e41505a7f57175dd18f45cf7c1e8c2f7ea63458d.camel@16bits.net> <87v9a75oj3.fsf@wheatstone.g10code.de>
Content-Type: text/plain; charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/kTGuadF81AFVhReKzIDWGFq_8_w>
Subject: Re: [openpgp] ECC point encoding and "flag byte"
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Mar 2021 00:14:18 -0000

On 2021-03-04 at 09:08 +0100, Werner Koch wrote:
> On Wed,  3 Mar 2021 23:38, =C1ngel said:
>=20
> > > In this situation, it's good to have a data element which can
> > > represent **something in native format** (or anything,
> > > hopefully).
> >=20
> > No, you can't. Or rather, I expect it is an issue of terminology :-)
>=20
> He meant in the algorithm/protocol/curve native format.  In fact we
> already use the term "Native point format of the curve follows" in
> the ECC point compression flag bytes.
>=20
> > On the other hand, if you mean an opaque blob private to the
> > algorithm,
> > that's perfectly fine (and what's already there, I think) *but* you
> > need to define it anyway, it doesn't matter if it's in the OpenPGP
> > spec
>=20
> The algorithm/protocol/curve already defines this.

Thanks Werner. I kinda expected that Niibe meant something like that.
But it needs to be stated more clearly.


I think the text should be something like this:

> Algorithm-Specific Part for ECDSA Keys
> The public key is this series of values:
>=20
>=20
> a variable-length field containing a curve OID, formatted as follows:
>=20
> 	a one-octet size of the following field; values 0 and 0xFF are
> reserved for future extensions,
>=20
> 	the octets representing a curve OID, defined in {{ecc-curve-oid}};
>=20
> a variable length field containing curve-specific octets,
> representing a public key.
>=20
>=20
> The secret key is this single multiprecision integer:
>=20
> a variable length field containing curve-specific octets,
> representing the secret key, which is a scalar of the public EC point.

And then another section like:

#### Curve-specific octets

For Curve25519: a block of 32 bytes which encode a scalar in the way
defined on section 5 of rfc7748.
For Curve448: a block of 56 bytes which encode a scalar in the way
defined on section 5 of rfc7748.

For NIST P-256:
...



(I used the term Curve-specific octets rather than Strange Octet String
in the draft, trying to keep it more obvious, albeit it's probably
still under-specified)


Best regards



From nobody Mon Mar  8 01:15:46 2021
Return-Path: <sylvain.besencon@unifr.ch>
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 BFDB73A2832 for <openpgp@ietfa.amsl.com>; Mon,  8 Mar 2021 01:15:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level: 
X-Spam-Status: No, score=-2.1 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, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=unifr.ch
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RRjMjA5qy5Eg for <openpgp@ietfa.amsl.com>; Mon,  8 Mar 2021 01:15:43 -0800 (PST)
Received: from unifr.ch (sr-svx-334.unifr.ch [134.21.201.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 61CDB3A2848 for <openpgp@ietf.org>; Mon,  8 Mar 2021 01:15:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=unifr.ch; s=20160316; h=Content-Transfer-Encoding:MIME-Version:Content-Type:Date:To: From:Subject:Message-ID:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=wHgIyVxTzO1BiHLN2BDELn7Dql8NdLSuC31tmez0SyU=; b=LDF1NOXUFMxr+twEskty/1qaQ9 4Ld6D7LEsGODRBVhUtsbQSUAtRIIL+S5VTw4v9ShrwAiV/+qSSEHfBY5KU8jPvH9x6Nh4QMCPseUu U2zwsuGoTBbENE9sK/8JCRipA3wq7tHXd3dAmFM2mLsdgdDFKAS4sismrnTPCCRdpZqo=;
Received: from svx-post2.unifr.ch ([134.21.82.202] helo=post.unifr.ch) by unifr.ch stage1 with esmtps (Exim MailCleaner)  id 1lJByv-0007WS-NO for <openpgp@ietf.org>  from <sylvain.besencon@unifr.ch>; Mon, 08 Mar 2021 10:15:40 +0100
Received: from [213.55.244.20] (helo=cyber-cheese-mama) by svx-post2.unifr.ch with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <sylvain.besencon@unifr.ch>) id 1lJByv-0004mn-JX for openpgp@ietf.org; Mon, 08 Mar 2021 10:15:17 +0100
Message-ID: <e0998b87e120a3e0cf515aa490099a03b875b488.camel@unifr.ch>
From: Sylvain =?ISO-8859-1?Q?Besen=E7on?= <sylvain.besencon@unifr.ch>
To: openpgp@ietf.org
Date: Mon, 08 Mar 2021 10:15:17 +0100
Content-Type: text/plain; charset="UTF-8"
User-Agent: Evolution 3.36.4-0ubuntu1 
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Authenticated-sender: besencos (LOGIN), alias="sylvain.besencon@unifr.ch"
X-MailCleaner-TrustedIPs: Ok
X-ACL-Info: Whitelisted (uf_ip_whitelist)
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/4djhqaizzVsB7gnQjF1T8nc-UbE>
Subject: [openpgp] My anthropological research on OpenPGP
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Mar 2021 09:15:46 -0000

Dear OpenPGP community,

I hope this finds you all well!

My name is Sylvain Besençon (but you can also call me sylvi - easier to
pronounce!) and I'm doing a PhD in anthropology at the University of
Fribourg, Switzerland. I am writing to this ML to let you know about my
research on maintenance and innovation practices around OpenPGP.

I've already met some of you, but as I'd like to follow up the crypto
refresh work that you started, I thought it would be better to send
this email to make you know about my research and my interest in
following your work! :)

The (very) general question I try to address in my PhD is: how is
information security made and unmade, by whom, and through what kind of
processes? To (partly) answer this question, I started to focus on the
crypto community and in particular on the case of OpenPGP because I
find its history and current development fascinating: among others, its
age (30 years this year! \o/), the many controversies, and most of all
the collective effort to refresh the standard and maintain its
implementations. As you see, I am not so much interested in the users'
experience but rather in your work, as cryptographers and coders who
discuss the standard and implement it. I'm curious about how to
(re)design such an old protocol, what it means to "take care" of it,
and all this mostly invisible work done to maintain it.

Of course, I'd be happy to answer any of your questions, but I don't
want this email to be too long, so I will just send a few more links
and cut it here. There's a paper that my supervisor and I wrote which
uses the efail disclosure as a case study to discuss our methods [1].
There's also a podcast that I recorded during a conference last year
[2]. And finally, there's also a platform where you can see (and
comment) some of my work [3].

[1] https://bop.unibe.ch/Tsantsa/article/view/7103
[2] 
https://www.buzzsprout.com/1323889/5257330-episode-8-sylvain-besencon-securing-by-hacking-maintenance-regimes-around-an-end-to-end-encryption-standard
[3] https://cva.unifr.ch/

And one more thing: during the IETF meetings I will attend, I will take
some notes and use the presentation material, but I won't record any
things. I may quote my notes or some parts of what was said in upcoming
publications, but this will be anonymized. Of course, I'd be happy to
discuss with you if you have any objection or if you don't feel at
ease.
Or simply if you're curious about my work! So please, feel free to
contact me! :)

Best wishes, and have a nice IETF week!

sylvi
-- 
Sylvain Besençon ▪︎ Assistant diplômé
Unité anthropologie sociale
Université de Fribourg
Bld. de Pérolles 90, CH-1700 Fribourg
Bureau G320 | tel +41 26 300 78 46
PGP:	9584 92A9 80DC C8FE F5C5
	EE91 56F7 ACD4 B1FD E56F

Platform for Experimental and Collaborative Ethnography:
https://cva.unifr.ch


From nobody Mon Mar 15 16:32:47 2021
Return-Path: <dkg@fifthhorseman.net>
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 5EE203A12E3 for <openpgp@ietfa.amsl.com>; Mon, 15 Mar 2021 16:32:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.306
X-Spam-Level: 
X-Spam-Status: No, score=-6.306 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_HI=-5, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=fifthhorseman.net header.b=Q5j4ZqCp; dkim=pass (2048-bit key) header.d=fifthhorseman.net header.b=aKfzhqWj
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hA1OZ-UAWX8Z for <openpgp@ietfa.amsl.com>; Mon, 15 Mar 2021 16:32:43 -0700 (PDT)
Received: from che.mayfirst.org (unknown [162.247.75.117]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C90A33A12DE for <openpgp@ietf.org>; Mon, 15 Mar 2021 16:32:43 -0700 (PDT)
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1615851162; h=from : to : cc : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=3a/zb1M0a+pOIo/VqWCIhi/8QBMscopaz/EIShZDhds=; b=Q5j4ZqCpQAtgjqt/lCn2Twld2YwE4cPII+hvwadO/LHYTuJkps3aOgLUCDgzBcL8jRPYB 9sXlqhXcVyUSvp/CA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1615851162; h=from : to : cc : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=3a/zb1M0a+pOIo/VqWCIhi/8QBMscopaz/EIShZDhds=; b=aKfzhqWjiXx5aZX8gDWHRW4h0AR+HDyqbWQdPLxblQWlY/TM2c+R+TLUPYXVJNIqeiaL+ xzn5hmeBQNIlNKj+r/gK0cJyd9Mq2e/8eh9AMp2ksqbmXVHAUUNnnQsPNJff6l3Lg/KzhO/ w76VyAj2D7I5ZOglS33yAD1of71MKzOQG3siCQJ3nUZsdJRORNQ5obysVzGyKGBCo1V1qqp UPiuf1t1sv+0Mw+K1Swx71/Ns1dEey4I9ik9mrJ1OVfDI9tVWAEs/Xphqg1haxDHzqIZ8qo iyZZZOuz7Owni3n33FzIvu5YJr/6ZCMg2+8NyTJ8nbJyyiaSvSTKjFG601Mw==
Received: from fifthhorseman.net (unknown [IPv6:2001:470:1f07:60d:841d:2bce:26c3:59c6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id 18357F9A8; Mon, 15 Mar 2021 19:32:42 -0400 (EDT)
Received: by fifthhorseman.net (Postfix, from userid 1000) id A1605205CC; Mon, 15 Mar 2021 19:13:19 -0400 (EDT)
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: Werner Koch <wk@gnupg.org>, Benjamin Kaduk <kaduk@mit.edu>
Cc: Masanori Ogino <masanori.ogino@gmail.com>, openpgp@ietf.org
In-Reply-To: <87pn0i6mxd.fsf@wheatstone.g10code.de>
References: <CAA-4+jd_AR6Yt8WvvEE_M+pj8hyJEhRVM8AsXLNHpHqA8jJQyQ@mail.gmail.com> <20210302055833.GY21@kduck.mit.edu> <87pn0i6mxd.fsf@wheatstone.g10code.de>
Autocrypt: addr=dkg@fifthhorseman.net; prefer-encrypt=mutual; keydata= mDMEX+i03xYJKwYBBAHaRw8BAQdACA4xvL/xI5dHedcnkfViyq84doe8zFRid9jW7CC9XBiI0QQf FgoAgwWCX+i03wWJBZ+mAAMLCQcJEOCS6zpcoQ26RxQAAAAAAB4AIHNhbHRAbm90YXRpb25zLnNl cXVvaWEtcGdwLm9yZ/tr8E9NA10HvcAVlSxnox6z62KXCInWjZaiBIlgX6O5AxUKCAKbAQIeARYh BMKfigwB81402BaqXOCS6zpcoQ26AADZHQD/Zx9nc3N2kj13AUsKMr/7zekBtgfSIGB3hRCU74Su G44A/34Yp6IAkndewLxb1WdRSokycnaCVyrk0nb4imeAYyoPtBc8ZGtnQGZpZnRoaG9yc2VtYW4u bmV0PojRBBMWCgCDBYJf6LTfBYkFn6YAAwsJBwkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3Rh dGlvbnMuc2VxdW9pYS1wZ3Aub3JnL0Gwxvypz2tu1IPG+yu1zPjkiZwpscsitwrVvzN3bbADFQoI ApsBAh4BFiEEwp+KDAHzXjTYFqpc4JLrOlyhDboAAPkXAP0Z29z7jW+YzLzPTQML4EQLMbkHOfU4 +s+ki81Czt0WqgD/SJ8RyrqDCtEP8+E4ZSR01ysKqh+MUAsTaJlzZjehiQ24MwRf6LTfFgkrBgEE AdpHDwEBB0DkKHOW2kmqfAK461+acQ49gc2Z6VoXMChRqobGP0ubb4kBiAQYFgoBOgWCX+i03wWJ BZ+mAAkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3Jnfvo+ nHoxDwaLaJD8XZuXiaqBNZtIGXIypF1udBBRoc0CmwICHgG+oAQZFgoAbwWCX+i03wkQPp1xc3He VlxHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3JnaheiqE7Pfi3Atb3GGTw+ jFcBGOaobgzEJrhEuFpXREEWIQQttUkcnfDcj0MoY88+nXFzcd5WXAAAvrsBAIJ5sBg8Udocv25N stN/zWOiYpnjjvOjVMLH4fV3pWE1AP9T6hzHz7hRnAA8d01vqoxOlQ3O6cb/kFYAjqx3oMXSBhYh BMKfigwB81402BaqXOCS6zpcoQ26AADX7gD/b83VObe14xrNP8xcltRrBZF5OE1rQSPkMNy+eWpk eCwA/1hxiS8ZxL5/elNjXiWuHXEvUGnRoVj745Vl48sZPVYMuDgEX+i03xIKKwYBBAGXVQEFAQEH QIGex1WZbH6xhUBve5mblScGYU+Y8QJOomXH+rr5tMsMAwEICYjJBBgWCgB7BYJf6LTfBYkFn6YA CRDgkus6XKENukcUAAAAAAAeACBzYWx0QG5vdGF0aW9ucy5zZXF1b2lhLXBncC5vcmcEAx9vTD3b J0SXkhvcRcCr6uIDJwic3KFKxkH1m4QW0QKbDAIeARYhBMKfigwB81402BaqXOCS6zpcoQ26AAAX mwD8CWmukxwskU82RZLMk5fm1wCgMB5z8dA50KLw3rgsCykBAKg1w/Y7XpBS3SlXEegIg1K1e6dR fRxL7Z37WZXoH8AH
Date: Mon, 15 Mar 2021 19:13:18 -0400
Message-ID: <87wnu86mep.fsf@fifthhorseman.net>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/ZZjadb-bjyc_sKWB8Ku3Gw2m4wA>
Subject: Re: [openpgp] OpenPGP Suite-B Profile vs. RFC 8423
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Mar 2021 23:32:46 -0000

--=-=-=
Content-Type: text/plain

On Tue 2021-03-02 08:21:18 +0100, Werner Koch wrote:
> I would also suggest to remove any mention of the Suite B profile.
>
> If we mention a specific local standard others countries may also want
> to have their profiles mentioned (e.g. Brainpool in Europe).

With no hats on, just speaking as a user and an implementer: I'd also be
fine with removing all mention of "compatibility profiles" (including
Suite B) from the crypto-refresh draft.  We're going to have enough work
to do to settle on changes to Mandatory-to-Implement and other
implementation guidance, and i think these profiles are confusing and
unclear.

        --dkg

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQQttUkcnfDcj0MoY88+nXFzcd5WXAUCYE/qDwAKCRA+nXFzcd5W
XOV/AP9zZbY7zsBjmLn9ibbXJuWS1eQVjqKbimqfexMuQRu4fAD+NoG7qtBfEPxC
sNtIL7ER8O4aNgemgQUZHN5+UhDcQQw=
=jsl2
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Mon Mar 15 16:32:55 2021
Return-Path: <dkg@fifthhorseman.net>
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 3E7A53A12E1 for <openpgp@ietfa.amsl.com>; Mon, 15 Mar 2021 16:32:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=fifthhorseman.net header.b=o6EPLAYR; dkim=pass (2048-bit key) header.d=fifthhorseman.net header.b=0B2g3gIj
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ElEwgq70JbIz for <openpgp@ietfa.amsl.com>; Mon, 15 Mar 2021 16:32:45 -0700 (PDT)
Received: from che.mayfirst.org (che.mayfirst.org [IPv6:2001:470:1:116::7]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E9CAF3A12E2 for <openpgp@ietf.org>; Mon, 15 Mar 2021 16:32:44 -0700 (PDT)
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1615851161; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=yi9espowAuApzR2szPq06i4ibuL2UPPoPi0rCS5SFoI=; b=o6EPLAYRiy6PB+2wGbucxG9b4HujDs/nC5EahDH0oWpKqR8NdQmJo70kxrkl2J8tGcUbS PdndNv9lMNAUcggAg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1615851161; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=yi9espowAuApzR2szPq06i4ibuL2UPPoPi0rCS5SFoI=; b=0B2g3gIj2hVshRPH3/jiC1ag+RSefEZAK5TuUi8DdyHkrOKkH54HoxYGveD92TJ7TTRxG UbCQmSrzZP0V+qdF+4DaKg9ts+GvHSYex3g2wDJyRNgEPMf1sO9yCZRMM8BERGFVT1qDzWR uaAIMp3UMzuVnIsdxbST6uY6cujHxyhp66sUCTwrlmJjRBd6xZA2fNXa1p09RQ2ExLm1tDw OQiDLtnZTNqQeTJnHHL9lF9wWMyYJV/QV5qqaIkP6bpAhEk4hark3kszOkl1LzZ3KrK+zU6 HDYYx19e7Aa/h/2tAF0Au+dlpm5EeHoIwsPDdyuZ6RBuLDJrol6dp/xx4P0w==
Received: from fifthhorseman.net (lair.fifthhorseman.net [108.58.6.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id 9DC33F9A5 for <openpgp@ietf.org>; Mon, 15 Mar 2021 19:32:41 -0400 (EDT)
Received: by fifthhorseman.net (Postfix, from userid 1000) id 44CAF204A0; Mon, 15 Mar 2021 19:09:48 -0400 (EDT)
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: openpgp@ietf.org
In-Reply-To: <87k0qucdep.fsf@fifthhorseman.net>
References: <87y2fcdnc5.fsf@fifthhorseman.net> <87k0qucdep.fsf@fifthhorseman.net>
Autocrypt: addr=dkg@fifthhorseman.net; prefer-encrypt=mutual; keydata= mDMEX+i03xYJKwYBBAHaRw8BAQdACA4xvL/xI5dHedcnkfViyq84doe8zFRid9jW7CC9XBiI0QQf FgoAgwWCX+i03wWJBZ+mAAMLCQcJEOCS6zpcoQ26RxQAAAAAAB4AIHNhbHRAbm90YXRpb25zLnNl cXVvaWEtcGdwLm9yZ/tr8E9NA10HvcAVlSxnox6z62KXCInWjZaiBIlgX6O5AxUKCAKbAQIeARYh BMKfigwB81402BaqXOCS6zpcoQ26AADZHQD/Zx9nc3N2kj13AUsKMr/7zekBtgfSIGB3hRCU74Su G44A/34Yp6IAkndewLxb1WdRSokycnaCVyrk0nb4imeAYyoPtBc8ZGtnQGZpZnRoaG9yc2VtYW4u bmV0PojRBBMWCgCDBYJf6LTfBYkFn6YAAwsJBwkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3Rh dGlvbnMuc2VxdW9pYS1wZ3Aub3JnL0Gwxvypz2tu1IPG+yu1zPjkiZwpscsitwrVvzN3bbADFQoI ApsBAh4BFiEEwp+KDAHzXjTYFqpc4JLrOlyhDboAAPkXAP0Z29z7jW+YzLzPTQML4EQLMbkHOfU4 +s+ki81Czt0WqgD/SJ8RyrqDCtEP8+E4ZSR01ysKqh+MUAsTaJlzZjehiQ24MwRf6LTfFgkrBgEE AdpHDwEBB0DkKHOW2kmqfAK461+acQ49gc2Z6VoXMChRqobGP0ubb4kBiAQYFgoBOgWCX+i03wWJ BZ+mAAkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3Jnfvo+ nHoxDwaLaJD8XZuXiaqBNZtIGXIypF1udBBRoc0CmwICHgG+oAQZFgoAbwWCX+i03wkQPp1xc3He VlxHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3JnaheiqE7Pfi3Atb3GGTw+ jFcBGOaobgzEJrhEuFpXREEWIQQttUkcnfDcj0MoY88+nXFzcd5WXAAAvrsBAIJ5sBg8Udocv25N stN/zWOiYpnjjvOjVMLH4fV3pWE1AP9T6hzHz7hRnAA8d01vqoxOlQ3O6cb/kFYAjqx3oMXSBhYh BMKfigwB81402BaqXOCS6zpcoQ26AADX7gD/b83VObe14xrNP8xcltRrBZF5OE1rQSPkMNy+eWpk eCwA/1hxiS8ZxL5/elNjXiWuHXEvUGnRoVj745Vl48sZPVYMuDgEX+i03xIKKwYBBAGXVQEFAQEH QIGex1WZbH6xhUBve5mblScGYU+Y8QJOomXH+rr5tMsMAwEICYjJBBgWCgB7BYJf6LTfBYkFn6YA CRDgkus6XKENukcUAAAAAAAeACBzYWx0QG5vdGF0aW9ucy5zZXF1b2lhLXBncC5vcmcEAx9vTD3b J0SXkhvcRcCr6uIDJwic3KFKxkH1m4QW0QKbDAIeARYhBMKfigwB81402BaqXOCS6zpcoQ26AAAX mwD8CWmukxwskU82RZLMk5fm1wCgMB5z8dA50KLw3rgsCykBAKg1w/Y7XpBS3SlXEegIg1K1e6dR fRxL7Z37WZXoH8AH
Date: Mon, 15 Mar 2021 19:09:46 -0400
Message-ID: <87zgz46mkl.fsf@fifthhorseman.net>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/AhEhpjw-E-JzKd4bKzTiLdWHBgA>
Subject: Re: [openpgp] OpenPGP interim meeting tomorrow (2021-02-26 15:00Z)
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Mar 2021 23:32:47 -0000

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On Sat 2021-02-27 00:01:18 -0500, Daniel Kahn Gillmor wrote:
> I've cleaned and uploaded the notes here:
>
> https://datatracker.ietf.org/meeting/interim-2021-openpgp-01/materials/mi=
nutes-interim-2021-openpgp-01-202102261500-00

It occurs to me that I never posted the notes from the interim
specifically to the list.   I include them below, so that there's no
need to pull from the website if you don't want to.

Regards,

     --dkg


IETF OpenPGP February 2021 Interim
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D

2021-02-26T15:00Z

Meeting held via
[WebEx](https://ietf.webex.com/ietf/j.php?MTID=3Dm1b3bb4269a2ef10b9995442e0=
9426b84)

=2D Agenda Bash
=2D Progress on draft-ietf-openpgp-crypto-refresh
=2D Developing the draft
=2D Next steps on draft-ietf-openpgp-crypto-refresh
=2D IETF 110 Agenda & next Interim

Attendees:

=2D Stephen Farrell
=2D Neal H. Walfield
=2D Daniel Kahn Gillmor (dkg)
=2D Paul Wouters
=2D =C3=81ngel Gonz=C3=A1lez
=2D Werner Koch
=2D Vincent Breitmoser
=2D Friedel Ziegelmayer (dignifiedquire)
=2D Jonathan McDowell
=2D Sylvain Besen=C3=A7on
=2D Derek Atkins
=2D Andre Heinecke
=2D Christoph Biedl
=2D Andrew Gallagher
=2D Nora Widdecke
=2D Ben Kaduk
=2D Daniel Huigens
=2D Justus Winter
=2D Peter Yee
=2D Heiko Stamer
=2D Jonathan Hammell

Notes taken on [Riseup's
etherpad](https://pad.riseup.net/p/2021-02-26-openpgp-interim-keep).

Primary Notetaker: Vincent Breitmoser

meeting begins: 16:04 UTC

chair intro, Stephen Farrell & dkg

## Agenda Bashing

no comments, moving on

(session recording starts late) naughty co-chair :-)

## Catchup for OpenPGP WG (dkg)

=2D rfc4880bis was running on its own, but with wg name
=2D plan was to recharter and restart wg
=2D over time restore changes from bis, establish consensus on individual d=
iffs
=2D general updates about -00 to -02 of new doc [slides 4-5]

## Development status (dkg)

=2D draft development: now in markdown
=2D nitpicks can be given as merge requests, substantive changes need ML
discussion - issue tracker is ok, but do follow up on ML since it's the
canonical place - rfc4880.md: identical to rfc4880, as md - rfc4880bis.md: =
last
version of rfc4880bis draft, as md (historical reminder) - crypto-refresh.m=
d:
working document

stephen
: additional comments from editors? (Paul & Werner)

no comments

## next steps, overview of diffs of bis to crypto-refresh

dkg
: [slide 7] changes split up into: chartered crypto-refresh changes,
crypto-refresh related, not crypto-refresh

daniel huigens
: intended recipient could be viewed as crypto-refresh to fix surreptitious
forwarding issue

dkg
: might want to promote? (...)

werner
: brainpool curves are already in 6637, thus not relevant for crypto-refresh

dkg
: can't see them in 6637

werner
: right. any curve can be used by oid, so still unnecessary

dkg
: perhaps just put in that info?

neal
: support for crypto-refresh, and afterwards work on new draft. better not
discuss too much about what is and isn't in scope

andre
: prefer not to go for another rfc. huge PITA certifying for new spec, woul=
d be
better to have this iteration suffice for the next 10 years derek : agree w=
ith
andre, for non-contentious issues we should include them even if not
crypto-related

stephen
: need to stick to charter. we can go beyond once that has been done
successfully. tried getting too much done before, couldn't focus enough on =
what
needed to be done. maybe other ways to handle certification issue?

dkg
: maybe include non-contentious issues that have no crypto implications? st=
ill,
important to stick to charter.

ben
: IESG had a case or two where documents handed in exceeded charter. this
caused problems, should stay in charter at least for the next months.

paul
: prefer to get document done quick and leave anything contentious to second
document, don't repeat previous cycle

(text werner)
: agree with paul

(text huigens)
: +1

(text friedel)
: +1

stephen & dkg
: anything missing from points? [slide 7]
  - no comments (feel free to bring to list)

dkg
: points on list [slide 7] might not mean we reach charter, might find
additional

## beyond merge of 4880bis

dkg
: [slide 8] curve448? S2K update (argon2)? weren't possible in last iterati=
on

(text daniel huigens)
: agree with those

### argon2

werner
: argon2 makes no sense for openpgp. only makes sense if interoperable thus
would need to be mandatory, not good for argon2. code point ok, mandatory n=
ot
for openpgp.
  clarifications: symmetric encryption not primary use for openpgp, kdf not
  that important because symmetric use cases would use full entropy anyways

huigens
: s2k update important, use cases do exist

andre
: fully disagree, symmetric crypto covers long retention, any change is API
breakage, introduces problems

(more back and forth andre/huigens)

derek
: already have compat issues with pgp 2.6, bridge already crossed.

dkg
: no need to break old stuff when introducing new intro. having text to
consider would help the discussion. might be problem to introduce new algo
without guidance on when they may be used. no capabilities in symmetric
algorithms.

  by this reasoning, symmetric openpgp crypto is stuck and we can never cha=
nge
  it?

andre
: want algorithms in spec so we can switch when vulnerabilities occur. but =
is
painful for users, so must consider when we enforce it. no objections to
argon2, but don't want to switch default without attack scenario

dkg
: need specification yesterday on how to interpret, but don't generate.

(text andre)
: agreed

stephen
: create issue to track this issue

werner
: argon2 has been discussed on ML, too. can't come to an agreement here, sh=
ould
leave discussion for later

### curve448

stephen
: thoughts on curve448?

werner
: gnupg has curve448. noticed that to do properly this in spec, need new da=
ta
type. that would take a while, maybe leave it out

## other updates?

stephen
: other updates for crypto-refresh, beyond bis?

angel
: (on symmetric algos again), same issue with public keys (e.g. curve448).
needs way to use new algorithms while keeping compatibility

(text neal)
: not an issue because there is features subpacket

### userid-less keys

andre
: regarding keys without user ids. seems huge split in community regarding =
this
issue, maybe we should discuss it?
  my opinion (as mail client implementor): no idea what should do with pgp =
keys
  without user ids. huge issue because this kind of key breaks my use cases.

stephen
: should create issue for that

vincent
: whole point of user id-less keys is so that you can get updates.

andre
: I would like to clarify if it is legal to provide such keys.  I think it =
is
disallowed, but vincent is doing it anyway.  We should clarify this in the =
new
RFC.

vincent
: I would also like the next RFC to clarify this.

dkg
: other similar use cases, e.g. free-floating revocation certificates. also=
 not
specced but useful. might want to spec common formats that are in use, to g=
ive
better overview

neal
: user ids without signatures are ok. hagrid could add "null" user id, so 4=
880
already addresses this

## Upcoming meetings

dkg
: registration for IETF 110 open [slide 9]
  - Meeting 2021-03-11 "Session II"

stephen
: waivers available. based on honor system, please don't abuse

dkg
: next interim? since IETF 111 is end of july. early may
  more frequent meetings possible. if we want that, should focus on specific
  topics

(text paul)
: early may sounds good

(text daniel huigens)
: might be useful to hold semi-regularly

stephen
: let's assume early may, confirm on list

derek
: 4-6 weeks sounds reasonable

(sentiment that conferencing solution didn't work great, discussion about
alternatives on list)

meeting closed 16:07 UTC

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQQttUkcnfDcj0MoY88+nXFzcd5WXAUCYE/pOwAKCRA+nXFzcd5W
XNBVAP4qt4VNAEhQtTvF7xCA97g6DiQcM7wUU2oXrB/7xCrKygD/enTvoVRXCfwL
/Dqst/04NiHqm0txrWAJH0BU8fd7cAE=
=EwyU
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Mon Mar 15 16:38:42 2021
Return-Path: <dkg@fifthhorseman.net>
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 860AE3A1301 for <openpgp@ietfa.amsl.com>; Mon, 15 Mar 2021 16:38:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.306
X-Spam-Level: 
X-Spam-Status: No, score=-1.306 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, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=fifthhorseman.net header.b=HgqV4pGB; dkim=pass (2048-bit key) header.d=fifthhorseman.net header.b=RfZvPIDt
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LH3WjmFS2SeB for <openpgp@ietfa.amsl.com>; Mon, 15 Mar 2021 16:38:38 -0700 (PDT)
Received: from che.mayfirst.org (unknown [162.247.75.117]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B7B6D3A12FF for <openpgp@ietf.org>; Mon, 15 Mar 2021 16:38:38 -0700 (PDT)
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1615851518; h=from : to : subject : date : message-id : mime-version : content-type : from; bh=2OYCrQUIUyeLINjgMUwbGbDlJcrIv+xbdRe3Qs4rosg=; b=HgqV4pGBNz0QIOD7leW0VevmguL1wo7pDZLTIXzzzde9OHygg+n1geCCgf4F0soFBrtxd FMy5498JkpXoE1SAw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1615851518; h=from : to : subject : date : message-id : mime-version : content-type : from; bh=2OYCrQUIUyeLINjgMUwbGbDlJcrIv+xbdRe3Qs4rosg=; b=RfZvPIDtECpSb8QsKNUyMcWRK97zuYRAm6T9EjeLxOZgF0nr4bN74FPTLVhjzOcZNztkX L5/Ch8/o1p9icTzQBv5nti3qLekJn9xFdm/nSuZlAmny3zi6oFavMUuv3yMlC9amDDtzeZ5 GytOS2l09CeALCkq9idn2qYHtIiXVc6xN/f1Nof7XBEzeyD+ZcQdcTiJ06xlNwXBhYnBy4f a672srv3Qy//ROkCht9PVJqt3xiSprr7Y83fuit1h3TLdZFjBLvjaEJt/MIE7h9lDbrLfH5 zJAfBNNO/Y2tRcbVjPQW76r7FFgiI3nc5ZJZGb+onFK232yuJemTblGxgy3A==
Received: from fifthhorseman.net (unknown [IPv6:2001:470:1f07:60d:841d:2bce:26c3:59c6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id 0A408F9A6 for <openpgp@ietf.org>; Mon, 15 Mar 2021 19:38:38 -0400 (EDT)
Received: by fifthhorseman.net (Postfix, from userid 1000) id 83C8E2032E; Mon, 15 Mar 2021 19:38:35 -0400 (EDT)
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: openpgp@ietf.org
Autocrypt: addr=dkg@fifthhorseman.net; prefer-encrypt=mutual; keydata= mDMEX+i03xYJKwYBBAHaRw8BAQdACA4xvL/xI5dHedcnkfViyq84doe8zFRid9jW7CC9XBiI0QQf FgoAgwWCX+i03wWJBZ+mAAMLCQcJEOCS6zpcoQ26RxQAAAAAAB4AIHNhbHRAbm90YXRpb25zLnNl cXVvaWEtcGdwLm9yZ/tr8E9NA10HvcAVlSxnox6z62KXCInWjZaiBIlgX6O5AxUKCAKbAQIeARYh BMKfigwB81402BaqXOCS6zpcoQ26AADZHQD/Zx9nc3N2kj13AUsKMr/7zekBtgfSIGB3hRCU74Su G44A/34Yp6IAkndewLxb1WdRSokycnaCVyrk0nb4imeAYyoPtBc8ZGtnQGZpZnRoaG9yc2VtYW4u bmV0PojRBBMWCgCDBYJf6LTfBYkFn6YAAwsJBwkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3Rh dGlvbnMuc2VxdW9pYS1wZ3Aub3JnL0Gwxvypz2tu1IPG+yu1zPjkiZwpscsitwrVvzN3bbADFQoI ApsBAh4BFiEEwp+KDAHzXjTYFqpc4JLrOlyhDboAAPkXAP0Z29z7jW+YzLzPTQML4EQLMbkHOfU4 +s+ki81Czt0WqgD/SJ8RyrqDCtEP8+E4ZSR01ysKqh+MUAsTaJlzZjehiQ24MwRf6LTfFgkrBgEE AdpHDwEBB0DkKHOW2kmqfAK461+acQ49gc2Z6VoXMChRqobGP0ubb4kBiAQYFgoBOgWCX+i03wWJ BZ+mAAkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3Jnfvo+ nHoxDwaLaJD8XZuXiaqBNZtIGXIypF1udBBRoc0CmwICHgG+oAQZFgoAbwWCX+i03wkQPp1xc3He VlxHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3JnaheiqE7Pfi3Atb3GGTw+ jFcBGOaobgzEJrhEuFpXREEWIQQttUkcnfDcj0MoY88+nXFzcd5WXAAAvrsBAIJ5sBg8Udocv25N stN/zWOiYpnjjvOjVMLH4fV3pWE1AP9T6hzHz7hRnAA8d01vqoxOlQ3O6cb/kFYAjqx3oMXSBhYh BMKfigwB81402BaqXOCS6zpcoQ26AADX7gD/b83VObe14xrNP8xcltRrBZF5OE1rQSPkMNy+eWpk eCwA/1hxiS8ZxL5/elNjXiWuHXEvUGnRoVj745Vl48sZPVYMuDgEX+i03xIKKwYBBAGXVQEFAQEH QIGex1WZbH6xhUBve5mblScGYU+Y8QJOomXH+rr5tMsMAwEICYjJBBgWCgB7BYJf6LTfBYkFn6YA CRDgkus6XKENukcUAAAAAAAeACBzYWx0QG5vdGF0aW9ucy5zZXF1b2lhLXBncC5vcmcEAx9vTD3b J0SXkhvcRcCr6uIDJwic3KFKxkH1m4QW0QKbDAIeARYhBMKfigwB81402BaqXOCS6zpcoQ26AAAX mwD8CWmukxwskU82RZLMk5fm1wCgMB5z8dA50KLw3rgsCykBAKg1w/Y7XpBS3SlXEegIg1K1e6dR fRxL7Z37WZXoH8AH
Date: Mon, 15 Mar 2021 19:38:34 -0400
Message-ID: <87o8fk6l8l.fsf@fifthhorseman.net>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/J9BtKaoShzB6B6igkBkMjrda0Is>
Subject: [openpgp] Working Group reportback from IETF 110
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Mar 2021 23:38:41 -0000

--=-=-=
Content-Type: text/plain

Thanks to everyone who joined the OpenPGP Working Group last week at
IETF 110.  We had a packed agenda, with not a lot of time for extra
discussion.  Below is the report i sent to the SAAG list:

----
  We discussed attacks against secret key material that are facilitated by
  corruption of the associated public keys.  This is research work by
  Bruseghini, Paterson, and Huigens.

  We also had a presentation of the OpenPGP Interoperability Test Suite by
  Winter, identifying places where interoperability is solid, and places
  where more guidance is likely to be needed.  See
  https://tests.sequoia-pgp.org/ for more detail from this ongoing
  project.

  Finally, Niibe presented some of the historical warts of ECC wire
  representation within OpenPGP, and proposed an argument for a
  normalization of ECC representation for future curves, including CFRG's
  "heavy-duty" curve Curve448.
----

The minutes for the 110 meeting can be found at
https://datatracker.ietf.org/doc/minutes-110-openpgp/ and are reproduced
here as well (thanks to Yoav Nir for taking the minutes).

The XMPP room openpgp@jabber.ietf.org was logged during the meeting
here:

https://www.ietf.org/jabber/logs/openpgp@jabber.ietf.org/2021-03-11.html

---------------
## OpenPGP Session @ IETF 110
2021-03-11 14:30:00 to 15:30:00 UTC

Stephen Farrell and DKG chairing.

Note Well was projected.

No agenda bashing. Will go over github issues (with Paul W) if time permits.

DKG went over the process for rfc4880bis. Using gitlab.
Stephen: Looking to do that (work on the crypto refresh draft) in interim
meetings. Not open for new ideas at this time.

----

## Lara Bruseghini presenting Key Extraction Attacks through Encrypted Private
Key Corruption Stephen Farrell: When will we see the results? Lara: Don't know
yet. Kirsty Paine: Did you report the vulnerabilities (found in two apps) Lara:
Yes. We contacted them. They've been fixed a few months ago. Kenny Paterson: We
did responsible disclosure. All libraries we found were patched.

----

## Justus Winter on A Common OpenPGP Interoperability Test Suite
DKG (no relation to the dkgpg library): Thanks for the presentation and the
work. ### No other questions

----

## NIIBE Yutaka on SOS (Simple Octet String)
### [representing new ECC in OpenPGP]
PHB: Can also use a random seed + a per-algorithms key generation mechanism. If
we adopted that, you push the onus of tagging and bagging on the algorithm
creators. DKG: That has serious interop / legacy issues with deployed clients.
PHB: Yes, but this solution is good for the next set of curves.

----

## Open Issues (with the draft)
Paul Wouters: pulling in a lot of issues. 3DES is still a MUST because we
didn't get to this section yet. Presenting the parts in small chunks to the WG.
Re-confirmed the consensus on the items. DKG: Can follow up now or on the list.
Paul W: If we have a new way for new curves, should discuss it soon, because
we're going to do that part soon. Stephen Farrell: Think we want 1 or 2
interims between now and 111.  Willl do Doodle polls on the list.

DKG: Hoping to get more people to give feedback on the list.
Stephen Farrell: Good night.

### Session ended
-------------------

Regards,

        --dkg

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQQttUkcnfDcj0MoY88+nXFzcd5WXAUCYE/v+wAKCRA+nXFzcd5W
XGEtAQDlL/ghj/kWYcijHqSgqXOPJJVaDWfpqc2wK81XUncvdQEAg+hHuMxG4xac
adOBBJyo2T2fw5s2UALTRiBOxEz+0A4=
=q4w4
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Wed Mar 17 07:55:23 2021
Return-Path: <dkg@fifthhorseman.net>
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 620713A0EB5 for <openpgp@ietfa.amsl.com>; Wed, 17 Mar 2021 07:55:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=fifthhorseman.net header.b=P8/P15l6; dkim=pass (2048-bit key) header.d=fifthhorseman.net header.b=jVHWMnSW
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LSUKwj-aUaqR for <openpgp@ietfa.amsl.com>; Wed, 17 Mar 2021 07:55:18 -0700 (PDT)
Received: from che.mayfirst.org (che.mayfirst.org [IPv6:2001:470:1:116::7]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BB15D3A0E94 for <openpgp@ietf.org>; Wed, 17 Mar 2021 07:55:18 -0700 (PDT)
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1615992914; h=from : to : subject : date : message-id : mime-version : content-type : from; bh=9fZpBs39ocpehS6IxQetiDgQkcn0VszA2RViqp1m2u4=; b=P8/P15l6omRsizEVglAeG9qunv3iMcVi0Fi0awcxZGn1HRWUXhC4g2C3qNvWK8NGiKjZj /BDC+G5OL2xsUL0Ag==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1615992914; h=from : to : subject : date : message-id : mime-version : content-type : from; bh=9fZpBs39ocpehS6IxQetiDgQkcn0VszA2RViqp1m2u4=; b=jVHWMnSWk321llaFxyvpvPVBzkvCV6h1mAAGKwYRGutgB6YRfzzDNkoz8MJpxcD5BrqXC VqWnfMn4MmXTr2MgMjCG/JD/AdExlJkI4UXNrzX0UIC66bKQiaCE6xthjXeYtRVF1epKAxW XCHTr0t1YOZ+5UDbsszZYXxGheULQ0Md748U2PopIkSpvtq56qHS0j0vBfC9S2xK3Sa53Ck 87vLtdCWagWSj8AXf4c5lmQdPqafoLpIPJjaUeWo34057Zcw/fHkjEEhLGwTTh2TqD3Bri6 VtfJ4b0GFv7iCe0tmm8uk+3jMDwnPDLRgH7MWeuhvZ7dBSiYdR4SpKJTZroA==
Received: from fifthhorseman.net (lair.fifthhorseman.net [108.58.6.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id C2D59F9A6 for <openpgp@ietf.org>; Wed, 17 Mar 2021 10:55:14 -0400 (EDT)
Received: by fifthhorseman.net (Postfix, from userid 1000) id 6390020415; Wed, 17 Mar 2021 09:28:10 -0400 (EDT)
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: openpgp@ietf.org
Autocrypt: addr=dkg@fifthhorseman.net; prefer-encrypt=mutual; keydata= mDMEX+i03xYJKwYBBAHaRw8BAQdACA4xvL/xI5dHedcnkfViyq84doe8zFRid9jW7CC9XBiI0QQf FgoAgwWCX+i03wWJBZ+mAAMLCQcJEOCS6zpcoQ26RxQAAAAAAB4AIHNhbHRAbm90YXRpb25zLnNl cXVvaWEtcGdwLm9yZ/tr8E9NA10HvcAVlSxnox6z62KXCInWjZaiBIlgX6O5AxUKCAKbAQIeARYh BMKfigwB81402BaqXOCS6zpcoQ26AADZHQD/Zx9nc3N2kj13AUsKMr/7zekBtgfSIGB3hRCU74Su G44A/34Yp6IAkndewLxb1WdRSokycnaCVyrk0nb4imeAYyoPtBc8ZGtnQGZpZnRoaG9yc2VtYW4u bmV0PojRBBMWCgCDBYJf6LTfBYkFn6YAAwsJBwkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3Rh dGlvbnMuc2VxdW9pYS1wZ3Aub3JnL0Gwxvypz2tu1IPG+yu1zPjkiZwpscsitwrVvzN3bbADFQoI ApsBAh4BFiEEwp+KDAHzXjTYFqpc4JLrOlyhDboAAPkXAP0Z29z7jW+YzLzPTQML4EQLMbkHOfU4 +s+ki81Czt0WqgD/SJ8RyrqDCtEP8+E4ZSR01ysKqh+MUAsTaJlzZjehiQ24MwRf6LTfFgkrBgEE AdpHDwEBB0DkKHOW2kmqfAK461+acQ49gc2Z6VoXMChRqobGP0ubb4kBiAQYFgoBOgWCX+i03wWJ BZ+mAAkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3Jnfvo+ nHoxDwaLaJD8XZuXiaqBNZtIGXIypF1udBBRoc0CmwICHgG+oAQZFgoAbwWCX+i03wkQPp1xc3He VlxHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3JnaheiqE7Pfi3Atb3GGTw+ jFcBGOaobgzEJrhEuFpXREEWIQQttUkcnfDcj0MoY88+nXFzcd5WXAAAvrsBAIJ5sBg8Udocv25N stN/zWOiYpnjjvOjVMLH4fV3pWE1AP9T6hzHz7hRnAA8d01vqoxOlQ3O6cb/kFYAjqx3oMXSBhYh BMKfigwB81402BaqXOCS6zpcoQ26AADX7gD/b83VObe14xrNP8xcltRrBZF5OE1rQSPkMNy+eWpk eCwA/1hxiS8ZxL5/elNjXiWuHXEvUGnRoVj745Vl48sZPVYMuDgEX+i03xIKKwYBBAGXVQEFAQEH QIGex1WZbH6xhUBve5mblScGYU+Y8QJOomXH+rr5tMsMAwEICYjJBBgWCgB7BYJf6LTfBYkFn6YA CRDgkus6XKENukcUAAAAAAAeACBzYWx0QG5vdGF0aW9ucy5zZXF1b2lhLXBncC5vcmcEAx9vTD3b J0SXkhvcRcCr6uIDJwic3KFKxkH1m4QW0QKbDAIeARYhBMKfigwB81402BaqXOCS6zpcoQ26AAAX mwD8CWmukxwskU82RZLMk5fm1wCgMB5z8dA50KLw3rgsCykBAKg1w/Y7XpBS3SlXEegIg1K1e6dR fRxL7Z37WZXoH8AH
Date: Wed, 17 Mar 2021 09:28:09 -0400
Message-ID: <875z1p7vva.fsf@fifthhorseman.net>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/jHhPgDSwzJVrvW2Ciap9IzyjlHU>
Subject: [openpgp] incomplete/confusing guidance around "Hash" Armor header for cleartext signing framework
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Mar 2021 14:55:22 -0000

--=-=-=
Content-Type: text/plain

(no hats on, just noticed a textual problem and wanted to record it on
the list)

The current draft (and RFC 4880) seems internally inconsistent about the
mandatory nature of the "Hash" armor header in the Cleartext Signing
Framwork section.

In particular, it defines 'one or more "Hash" Armor Headers' as an
official part of what a clearsigned message looks like, but then it
discusses what it means when such a header is absent.  (and, when the
header is absent, it says it uses MD5, yikes -- that makes this relevant
to the crypto refresh).

Additionally, though multiple headers could be present, "If more than
one message digest is used in the signature, the "Hash" armor header
contains a comma-delimited list of used message digests."

Finally, what should an implementation do if the hash header doesn't
match the digests found in the actual signature?

This text should be reworked to make the expectations clearer, both for
those generating such a message and for those consuming it.  And it
should *not* encourage the use of MD5.

I've noted this as
https://gitlab.com/openpgp-wg/rfc4880bis/-/issues/26.  If anyone wants
to propose a patch that cleans this up, that'd be welcome.

     --dkg

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQQttUkcnfDcj0MoY88+nXFzcd5WXAUCYFID6gAKCRA+nXFzcd5W
XPWyAQDcIUxFDUVsoSGkqFUKMiaEv2Fu3pf86lOiuG8dr+x4wQEA+7tqP72i+wb7
OayWV5tq5dVH4lEnE52LpHzHCZQvLwQ=
=BPEG
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Wed Mar 17 07:55:29 2021
Return-Path: <dkg@fifthhorseman.net>
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 8BC653A0EDB for <openpgp@ietfa.amsl.com>; Wed, 17 Mar 2021 07:55:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level: 
X-Spam-Status: No, score=-2.098 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_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=fifthhorseman.net header.b=Z22pnV06; dkim=pass (2048-bit key) header.d=fifthhorseman.net header.b=acC6t6wZ
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JohefflBs8x9 for <openpgp@ietfa.amsl.com>; Wed, 17 Mar 2021 07:55:18 -0700 (PDT)
Received: from che.mayfirst.org (che.mayfirst.org [IPv6:2001:470:1:116::7]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8FF5D3A0E9B for <openpgp@ietf.org>; Wed, 17 Mar 2021 07:55:18 -0700 (PDT)
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1615992914; h=from : to : subject : date : message-id : mime-version : content-type : content-transfer-encoding : from; bh=lQN619utqPhnvBB15b0B5SO3fAlz+UjqWdQICaYCCHg=; b=Z22pnV06aVf1XQJIvR8X4PyGUCOJOwT78xDfxkneS/tnY5QfYPp1iDyMy+CgguM1axsoD MswmuTRXJ5jKAhaCg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1615992914; h=from : to : subject : date : message-id : mime-version : content-type : content-transfer-encoding : from; bh=lQN619utqPhnvBB15b0B5SO3fAlz+UjqWdQICaYCCHg=; b=acC6t6wZU3HVESOlfXjDAiDO/0DF3VEFKrxH8DJaJTgcrmeKY8QjXO52gPA4EJisYpy5t GY+0iXntC1f30dSw2nvV8E5FINuwcKU3yCzxABe5XYOa+/bLUqHgmPXe9TJ/H+CSnsxSAH7 C8ZCB1Nl/lut2OdtYIBlV0L0rppOCLCw9jvj12Z6EvYKnji/yUSRdazz6Xaivx8orQ50hU1 X7RdfZuJWW8LQLcR+t8ik9ABtcLUenhqOWPWLxrJ5Xv8uGw2To+dxpt3346KpTewn+ibfsf noUCwW5Msvg3a0fjcZaZAsIrS+tF4eFRUmft276rP+J62/BpA7cJr7+GFNEQ==
Received: from fifthhorseman.net (lair.fifthhorseman.net [108.58.6.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id B9ED0F9A5 for <openpgp@ietf.org>; Wed, 17 Mar 2021 10:55:14 -0400 (EDT)
Received: by fifthhorseman.net (Postfix, from userid 1000) id E446B2045F; Wed, 17 Mar 2021 10:55:08 -0400 (EDT)
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: IETF OpenPGP WG <openpgp@ietf.org>
Date: Wed, 17 Mar 2021 10:55:08 -0400
Message-Id: <20210317145508.136021-1-dkg@fifthhorseman.net>
X-Mailer: git-send-email 2.30.2
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/4t-UPtHS0iZzCi8BZDOBK6e44NE>
Subject: [openpgp] [RFC4880bis PATCH] Clarify CRC-24 C example implementation
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Mar 2021 14:55:24 -0000

The mismatch between the variable in the sample CRC-24 generation code
and the definition of the generator in the paragraph above has been a
source of confusion for over 20 years (see [0] for the first instance
I could find in the wild).  It has also been raised as an explicit
erratum [1].

[0] https://mailarchive.ietf.org/arch/msg/openpgp/F29_03_iISnOS7DF0PUH-tVVKsI/

[1] https://www.rfc-editor.org/errata/eid5491

One option would be to change the CRC24_POLY variable in the code to
exactly match the generator described above.  This allows the `crc24`
accumulator to overflow, which on most architectures has has no
practical functional change, because of the masking step at the end of
the function.

However, allowing the `crc24` accumulator to overflow *might* cause a
problem in some obscure architecture, as (a) `crc24` is defined as
"long", which is typically a signed type, and (b) left-shift behavior
is undefined for overflowing signed values (and also for negative
signed values) [2].

[2] http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf § 6.5.7(4)

So allowing the accumulator to overflow in the sample code seems
ill-advised.  This change clarifies both that the accumulator should
be treated as unsigned, and aligns the variable with the textual
description of the generator.

It follows a suggestion first made by Hal Finney 22 years ago [3].

[3] https://mailarchive.ietf.org/arch/msg/openpgp/UMLreIiKtKzXEnPT5ZbcDDjRQX0/
---
 crypto-refresh.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/crypto-refresh.md b/crypto-refresh.md
index 9fbb6eb..9f57a1a 100644
--- a/crypto-refresh.md
+++ b/crypto-refresh.md
@@ -2116,9 +2116,9 @@ The nonzero initialization can detect more errors than a zero initialization.
 ## An Implementation of the CRC-24 in "C"
 
     #define CRC24_INIT 0xB704CEL
-    #define CRC24_POLY 0x1864CFBL
+    #define CRC24_GENERATOR 0x864CFBL
 
-    typedef long crc24;
+    typedef unsigned long crc24;
     crc24 crc_octets(unsigned char *octets, size_t len)
     {
         crc24 crc = CRC24_INIT;
@@ -2128,7 +2128,7 @@ The nonzero initialization can detect more errors than a zero initialization.
             for (i = 0; i < 8; i++) {
                 crc <<= 1;
                 if (crc & 0x1000000)
-                    crc ^= CRC24_POLY;
+                    crc ^= (CRC24_GENERATOR | 0x1000000L);
             }
         }
         return crc & 0xFFFFFFL;
-- 
2.30.2


From nobody Wed Mar 17 08:05:23 2021
Return-Path: <dkg@fifthhorseman.net>
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 80C243A0F4D for <openpgp@ietfa.amsl.com>; Wed, 17 Mar 2021 08:05:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=fifthhorseman.net header.b=5d/GXgVx; dkim=pass (2048-bit key) header.d=fifthhorseman.net header.b=D/PPuE7Z
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SvjHscUgN1oA for <openpgp@ietfa.amsl.com>; Wed, 17 Mar 2021 08:05:18 -0700 (PDT)
Received: from che.mayfirst.org (che.mayfirst.org [IPv6:2001:470:1:116::7]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4E4DA3A0F04 for <openpgp@ietf.org>; Wed, 17 Mar 2021 08:05:18 -0700 (PDT)
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1615993517; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=CJRsXbjA4GAO/qg9XHHkGAgBo4br1kofJAhfiptiH8U=; b=5d/GXgVx6Ngk6dI0MP9CfBN1ChZymN0cKFeajpykZi11A+toJ8pAhJJl9rj0QTkGgxRBf af2Kp7wcbao067PCw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1615993517; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=CJRsXbjA4GAO/qg9XHHkGAgBo4br1kofJAhfiptiH8U=; b=D/PPuE7ZK9Vq1ePc4fBn2CmTQKS/g9khg7oVlCrdGNWvLkv47Po4w2ehSWPr7fJ8J9pqt 4MVGdud0bkv9KQwgg5+cGb4q2tR3dyWW3Vvy5InbxvTyCvCHmLEiiLvEC26a5QjibId/+Dp IzcReF7H8r4zw64FjJYpaVgEoCPzlmokXntSM2vp/8qfYsevs0dFy4gWBGVssJbflahtPK7 mc8sfAhQp73YViYDVaFKjIkCP25bkqrej2WQX+hHDNdys11gYSJZxuLNXPWZDfUTf2fFMeJ WQoMggN7RYLWFhhb4kpSvlGuqGj6m5cvpTiS8PFAxDzcz6U9aR9xmLPnOtIw==
Received: from fifthhorseman.net (lair.fifthhorseman.net [108.58.6.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id 6742BF9A5 for <openpgp@ietf.org>; Wed, 17 Mar 2021 11:05:17 -0400 (EDT)
Received: by fifthhorseman.net (Postfix, from userid 1000) id 8A55920415; Wed, 17 Mar 2021 11:05:15 -0400 (EDT)
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: IETF OpenPGP WG <openpgp@ietf.org>
In-Reply-To: <20210317145508.136021-1-dkg@fifthhorseman.net>
References: <20210317145508.136021-1-dkg@fifthhorseman.net>
Autocrypt: addr=dkg@fifthhorseman.net; prefer-encrypt=mutual; keydata= mDMEX+i03xYJKwYBBAHaRw8BAQdACA4xvL/xI5dHedcnkfViyq84doe8zFRid9jW7CC9XBiI0QQf FgoAgwWCX+i03wWJBZ+mAAMLCQcJEOCS6zpcoQ26RxQAAAAAAB4AIHNhbHRAbm90YXRpb25zLnNl cXVvaWEtcGdwLm9yZ/tr8E9NA10HvcAVlSxnox6z62KXCInWjZaiBIlgX6O5AxUKCAKbAQIeARYh BMKfigwB81402BaqXOCS6zpcoQ26AADZHQD/Zx9nc3N2kj13AUsKMr/7zekBtgfSIGB3hRCU74Su G44A/34Yp6IAkndewLxb1WdRSokycnaCVyrk0nb4imeAYyoPtBc8ZGtnQGZpZnRoaG9yc2VtYW4u bmV0PojRBBMWCgCDBYJf6LTfBYkFn6YAAwsJBwkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3Rh dGlvbnMuc2VxdW9pYS1wZ3Aub3JnL0Gwxvypz2tu1IPG+yu1zPjkiZwpscsitwrVvzN3bbADFQoI ApsBAh4BFiEEwp+KDAHzXjTYFqpc4JLrOlyhDboAAPkXAP0Z29z7jW+YzLzPTQML4EQLMbkHOfU4 +s+ki81Czt0WqgD/SJ8RyrqDCtEP8+E4ZSR01ysKqh+MUAsTaJlzZjehiQ24MwRf6LTfFgkrBgEE AdpHDwEBB0DkKHOW2kmqfAK461+acQ49gc2Z6VoXMChRqobGP0ubb4kBiAQYFgoBOgWCX+i03wWJ BZ+mAAkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3Jnfvo+ nHoxDwaLaJD8XZuXiaqBNZtIGXIypF1udBBRoc0CmwICHgG+oAQZFgoAbwWCX+i03wkQPp1xc3He VlxHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3JnaheiqE7Pfi3Atb3GGTw+ jFcBGOaobgzEJrhEuFpXREEWIQQttUkcnfDcj0MoY88+nXFzcd5WXAAAvrsBAIJ5sBg8Udocv25N stN/zWOiYpnjjvOjVMLH4fV3pWE1AP9T6hzHz7hRnAA8d01vqoxOlQ3O6cb/kFYAjqx3oMXSBhYh BMKfigwB81402BaqXOCS6zpcoQ26AADX7gD/b83VObe14xrNP8xcltRrBZF5OE1rQSPkMNy+eWpk eCwA/1hxiS8ZxL5/elNjXiWuHXEvUGnRoVj745Vl48sZPVYMuDgEX+i03xIKKwYBBAGXVQEFAQEH QIGex1WZbH6xhUBve5mblScGYU+Y8QJOomXH+rr5tMsMAwEICYjJBBgWCgB7BYJf6LTfBYkFn6YA CRDgkus6XKENukcUAAAAAAAeACBzYWx0QG5vdGF0aW9ucy5zZXF1b2lhLXBncC5vcmcEAx9vTD3b J0SXkhvcRcCr6uIDJwic3KFKxkH1m4QW0QKbDAIeARYhBMKfigwB81402BaqXOCS6zpcoQ26AAAX mwD8CWmukxwskU82RZLMk5fm1wCgMB5z8dA50KLw3rgsCykBAKg1w/Y7XpBS3SlXEegIg1K1e6dR fRxL7Z37WZXoH8AH
Date: Wed, 17 Mar 2021 11:05:14 -0400
Message-ID: <871rcd7rdh.fsf@fifthhorseman.net>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/WgS7Czzay8ujXyuLT0PT1N20m8k>
Subject: Re: [openpgp] [RFC4880bis PATCH] Clarify CRC-24 C example implementation
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Mar 2021 15:05:20 -0000

--=-=-=
Content-Type: text/plain

On Wed 2021-03-17 10:55:08 -0400, Daniel Kahn Gillmor wrote:
> The mismatch between the variable in the sample CRC-24 generation code
> and the definition of the generator in the paragraph above has been a
> source of confusion for over 20 years.

I recorded this proposed minor cleanup as MR 39:
https://gitlab.com/openpgp-wg/rfc4880bis/-/merge_requests/39

        --dkg

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQQttUkcnfDcj0MoY88+nXFzcd5WXAUCYFIaqwAKCRA+nXFzcd5W
XGphAQDxoH4xhLd8SWctilhy+tvYEEdVqj85j+rFi8lqntYnzgD/cRlFljo2Iltg
HKkuYXI8x2Tm6wUhAAF5eOqFJkYwmQw=
=aSMB
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Wed Mar 17 18:20:08 2021
Return-Path: <angel@16bits.net>
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 1C3893A19E7 for <openpgp@ietfa.amsl.com>; Wed, 17 Mar 2021 18:20:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b0LfZQ0_GXO1 for <openpgp@ietfa.amsl.com>; Wed, 17 Mar 2021 18:20:05 -0700 (PDT)
Received: from mail.direccionemail.com (mail.direccionemail.com [199.195.249.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4E5B93A19E9 for <openpgp@ietf.org>; Wed, 17 Mar 2021 18:20:04 -0700 (PDT)
Message-ID: <0b29b5c446910e9dfe1ac89854f17012fc143851.camel@16bits.net>
From: =?ISO-8859-1?Q?=C1ngel?= <angel@16bits.net>
To: openpgp@ietf.org
Date: Thu, 18 Mar 2021 02:20:02 +0100
In-Reply-To: <875z1p7vva.fsf@fifthhorseman.net>
References: <875z1p7vva.fsf@fifthhorseman.net>
Content-Type: text/plain; charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/sPNvTswBD4yKiExG3NR5cV4b8AA>
Subject: Re: [openpgp] incomplete/confusing guidance around "Hash" Armor header for cleartext signing framework
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Mar 2021 01:20:07 -0000

On 2021-03-17 at 09:28 -0400, Daniel Kahn Gillmor wrote:
> The current draft (and RFC 4880) seems internally inconsistent about
> the
> mandatory nature of the "Hash" armor header in the Cleartext Signing
> Framwork section.
>=20
> In particular, it defines 'one or more "Hash" Armor Headers' as an
> official part of what a clearsigned message looks like, but then it
> discusses what it means when such a header is absent.=20

And it was copied from rfc2440 as well.

I think the phrase
>      - One or more "Hash" Armor Headers,
should have been
>      - One or more Armor Headers,


Then it covers other armor headers that may be present, such as
"Charset:", and then it suddenly makes sense the following discussion
about a missing Hash header.

Best regards



From nobody Wed Mar 17 18:34:00 2021
Return-Path: <angel@16bits.net>
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 7C10A3A1A26 for <openpgp@ietfa.amsl.com>; Wed, 17 Mar 2021 18:33:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 34bteEEZwWXg for <openpgp@ietfa.amsl.com>; Wed, 17 Mar 2021 18:33:56 -0700 (PDT)
Received: from mail.direccionemail.com (mail.direccionemail.com [199.195.249.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C17003A1A24 for <openpgp@ietf.org>; Wed, 17 Mar 2021 18:33:56 -0700 (PDT)
Message-ID: <25e8d5713bcccb7b86e0f9ce75dafba80fb41530.camel@16bits.net>
From: =?ISO-8859-1?Q?=C1ngel?= <angel@16bits.net>
To: openpgp@ietf.org
Date: Thu, 18 Mar 2021 02:33:54 +0100
In-Reply-To: <871rcd7rdh.fsf@fifthhorseman.net>
References: <20210317145508.136021-1-dkg@fifthhorseman.net> <871rcd7rdh.fsf@fifthhorseman.net>
Content-Type: text/plain; charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/lgj10hSe_YyVOeJrEZtR7epMUXw>
Subject: Re: [openpgp] [RFC4880bis PATCH] Clarify CRC-24 C example implementation
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Mar 2021 01:33:59 -0000

On 2021-03-17 at 11:05 -0400, Daniel Kahn Gillmor wrote:
> On Wed 2021-03-17 10:55:08 -0400, Daniel Kahn Gillmor wrote:
> > The mismatch between the variable in the sample CRC-24 generation
> > code
> > and the definition of the generator in the paragraph above has been
> > a
> > source of confusion for over 20 years.
>=20
> I recorded this proposed minor cleanup as MR 39:
> https://gitlab.com/openpgp-wg/rfc4880bis/-/merge_requests/39
>=20
>         --dkg

What about using, instead of the 'long' type, which may mean quite
dfferent things, the uint_least32_t type defined in ISO C 7.18 ?



From nobody Wed Mar 17 20:08:49 2021
Return-Path: <dkg@fifthhorseman.net>
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 B5F663A1CB3 for <openpgp@ietfa.amsl.com>; Wed, 17 Mar 2021 20:08:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.306
X-Spam-Level: 
X-Spam-Status: No, score=-1.306 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, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=fifthhorseman.net header.b=/4wJQEGo; dkim=pass (2048-bit key) header.d=fifthhorseman.net header.b=QWBv6CEh
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Yu3NugLR387w for <openpgp@ietfa.amsl.com>; Wed, 17 Mar 2021 20:08:46 -0700 (PDT)
Received: from che.mayfirst.org (unknown [162.247.75.117]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 426373A1CAF for <openpgp@ietf.org>; Wed, 17 Mar 2021 20:08:46 -0700 (PDT)
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1616036923; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=dMAz7r6MM02EdiWNe6CIxWNnojw6uj0C7SVsQp5QsbM=; b=/4wJQEGoZtNGCfIDPcUDSi2LHJXD+3WbC+4yDTjYAkAvhREN2tELsqVhh99Cnvg5qv1pw 8bUkgwmb+EiRtzaCQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1616036923; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=dMAz7r6MM02EdiWNe6CIxWNnojw6uj0C7SVsQp5QsbM=; b=QWBv6CEhElgdiBui+XJwLqTRy4W9i4nN6h+3Vze0fiEcXJ9TS0+l5zOmx20bGI0hKjBTW 5mYOm/E8mWcGEWfGNs9KKPTh9/ImVgPbsW69ZFHgx1TqMFvWLUix11OZDC9Vnh6lo4jZXHN PuO1NNzBToy3zuKvd9GT1h3m8rOpab4PI4JnbYWlBVS68kd/tftWCnUIch4MNnPrIgVErSR HOy/jzDGz6ZTzv87sWbUZ7gg61zgr/6FznHHM7fYbkhbiN6oP8DjUVk1vJVQ+/QVB48aqhw 1gIoVs9jfZlTa/I2KtdOGAP5/c0uOHYexzKhC0avOO217/hj41h8HtPyU7KQ==
Received: from fifthhorseman.net (lair.fifthhorseman.net [108.58.6.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id 768F7F9A6; Wed, 17 Mar 2021 23:08:43 -0400 (EDT)
Received: by fifthhorseman.net (Postfix, from userid 1000) id AE6F12045F; Wed, 17 Mar 2021 22:54:20 -0400 (EDT)
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: =?utf-8?Q?=C3=81ngel?= <angel@16bits.net>, openpgp@ietf.org
In-Reply-To: <25e8d5713bcccb7b86e0f9ce75dafba80fb41530.camel@16bits.net>
References: <20210317145508.136021-1-dkg@fifthhorseman.net> <871rcd7rdh.fsf@fifthhorseman.net> <25e8d5713bcccb7b86e0f9ce75dafba80fb41530.camel@16bits.net>
Autocrypt: addr=dkg@fifthhorseman.net; prefer-encrypt=mutual; keydata= mDMEX+i03xYJKwYBBAHaRw8BAQdACA4xvL/xI5dHedcnkfViyq84doe8zFRid9jW7CC9XBiI0QQf FgoAgwWCX+i03wWJBZ+mAAMLCQcJEOCS6zpcoQ26RxQAAAAAAB4AIHNhbHRAbm90YXRpb25zLnNl cXVvaWEtcGdwLm9yZ/tr8E9NA10HvcAVlSxnox6z62KXCInWjZaiBIlgX6O5AxUKCAKbAQIeARYh BMKfigwB81402BaqXOCS6zpcoQ26AADZHQD/Zx9nc3N2kj13AUsKMr/7zekBtgfSIGB3hRCU74Su G44A/34Yp6IAkndewLxb1WdRSokycnaCVyrk0nb4imeAYyoPtBc8ZGtnQGZpZnRoaG9yc2VtYW4u bmV0PojRBBMWCgCDBYJf6LTfBYkFn6YAAwsJBwkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3Rh dGlvbnMuc2VxdW9pYS1wZ3Aub3JnL0Gwxvypz2tu1IPG+yu1zPjkiZwpscsitwrVvzN3bbADFQoI ApsBAh4BFiEEwp+KDAHzXjTYFqpc4JLrOlyhDboAAPkXAP0Z29z7jW+YzLzPTQML4EQLMbkHOfU4 +s+ki81Czt0WqgD/SJ8RyrqDCtEP8+E4ZSR01ysKqh+MUAsTaJlzZjehiQ24MwRf6LTfFgkrBgEE AdpHDwEBB0DkKHOW2kmqfAK461+acQ49gc2Z6VoXMChRqobGP0ubb4kBiAQYFgoBOgWCX+i03wWJ BZ+mAAkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3Jnfvo+ nHoxDwaLaJD8XZuXiaqBNZtIGXIypF1udBBRoc0CmwICHgG+oAQZFgoAbwWCX+i03wkQPp1xc3He VlxHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3JnaheiqE7Pfi3Atb3GGTw+ jFcBGOaobgzEJrhEuFpXREEWIQQttUkcnfDcj0MoY88+nXFzcd5WXAAAvrsBAIJ5sBg8Udocv25N stN/zWOiYpnjjvOjVMLH4fV3pWE1AP9T6hzHz7hRnAA8d01vqoxOlQ3O6cb/kFYAjqx3oMXSBhYh BMKfigwB81402BaqXOCS6zpcoQ26AADX7gD/b83VObe14xrNP8xcltRrBZF5OE1rQSPkMNy+eWpk eCwA/1hxiS8ZxL5/elNjXiWuHXEvUGnRoVj745Vl48sZPVYMuDgEX+i03xIKKwYBBAGXVQEFAQEH QIGex1WZbH6xhUBve5mblScGYU+Y8QJOomXH+rr5tMsMAwEICYjJBBgWCgB7BYJf6LTfBYkFn6YA CRDgkus6XKENukcUAAAAAAAeACBzYWx0QG5vdGF0aW9ucy5zZXF1b2lhLXBncC5vcmcEAx9vTD3b J0SXkhvcRcCr6uIDJwic3KFKxkH1m4QW0QKbDAIeARYhBMKfigwB81402BaqXOCS6zpcoQ26AAAX mwD8CWmukxwskU82RZLMk5fm1wCgMB5z8dA50KLw3rgsCykBAKg1w/Y7XpBS3SlXEegIg1K1e6dR fRxL7Z37WZXoH8AH
Date: Wed, 17 Mar 2021 22:54:19 -0400
Message-ID: <87sg4t5fz8.fsf@fifthhorseman.net>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/FPcISPykEI2bqZlXhlNYfUa410g>
Subject: Re: [openpgp] [RFC4880bis PATCH] Clarify CRC-24 C example implementation
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Mar 2021 03:08:48 -0000

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On Thu 2021-03-18 02:33:54 +0100, =C3=81ngel wrote:
> What about using, instead of the 'long' type, which may mean quite
> dfferent things, the uint_least32_t type defined in ISO C 7.18 ?

i'd be fine with either one.  afaict, "unsigned long" is always at least
at least a 32-bit unsigned integer, and is more typical idiomatic C, but
if the WG prefers uint_least32_t i would not object.  (technically the
CRC-24 accumulator just needs 25 bits -- one to test for overflow -- but
we don't need to cut it so fine :P)

  --dkg

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQQttUkcnfDcj0MoY88+nXFzcd5WXAUCYFLA3AAKCRA+nXFzcd5W
XNtvAP9k6agq/mXq37fQ5YxDtuc5zIO4ntf8b4rgghcPSBzHEwEAhdIiRVuZgA9y
LpSNL/1I3tqajGojVNYz2t1cpO2EwQI=
=UZU3
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Thu Mar 18 01:50:20 2021
Return-Path: <wk@gnupg.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 BE3103A2539 for <openpgp@ietfa.amsl.com>; Thu, 18 Mar 2021 01:50:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.099
X-Spam-Level: 
X-Spam-Status: No, score=-7.099 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_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=gnupg.org
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1-R7ie6kjHzQ for <openpgp@ietfa.amsl.com>; Thu, 18 Mar 2021 01:50:14 -0700 (PDT)
Received: from kerckhoffs.g10code.com (kerckhoffs.g10code.com [IPv6:2001:aa8:fff1:100::22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BB4D53A252C for <openpgp@ietf.org>; Thu, 18 Mar 2021 01:50:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnupg.org;  s=20181017; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=zBIFGEOltTpTCSwI3gyqJ8GJdKtBMhT4z+3SeP9WIpE=; b=kpTfExMNodVuXkhhRs6jfSw/oB ymJxdegzfzTgenuJczz8R38LJsnk8pfXssiShRGwiaN0Qyeqjz6Xs34ew+CJXqnDHzoZRpc6Y2BEd dEUvOMHZMmcAZhf/H3GSCHC1oIWyusWaPdOxMQy/7NqnRWXknlEpajvFfNWKc8dCpy9w=;
Received: from uucp by kerckhoffs.g10code.com with local-rmail (Exim 4.89 #1 (Debian)) id 1lMoM5-0006vR-2D for <openpgp@ietf.org>; Thu, 18 Mar 2021 09:50:09 +0100
Received: from wk by wheatstone.g10code.de with local (Exim 4.92 #5 (Debian)) id 1lMoI8-0000El-VJ; Thu, 18 Mar 2021 09:46:04 +0100
From: Werner Koch <wk@gnupg.org>
To: =?utf-8?Q?=C3=81ngel?= <angel@16bits.net>
Cc: openpgp@ietf.org
References: <875z1p7vva.fsf@fifthhorseman.net> <0b29b5c446910e9dfe1ac89854f17012fc143851.camel@16bits.net>
Organisation: GnuPG e.V.
X-message-flag: Mails containing HTML will not be read! Please send only plain text.
Mail-Followup-To: =?utf-8?Q?=C3=81ngel?= <angel@16bits.net>, openpgp@ietf.org
Date: Thu, 18 Mar 2021 09:46:04 +0100
In-Reply-To: <0b29b5c446910e9dfe1ac89854f17012fc143851.camel@16bits.net> (=?utf-8?Q?=22=C3=81ngel=22's?= message of "Thu, 18 Mar 2021 02:20:02 +0100")
Message-ID: <87o8fgrgs3.fsf@wheatstone.g10code.de>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=Afghanistan_halcon_bank_Looting_Law_enforcement_Reno_OTP_State_of=em"; micalg=pgp-sha256; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/pp8NlvM_OvSHLIJev9rfe8K41bA>
Subject: Re: [openpgp] incomplete/confusing guidance around "Hash" Armor header for cleartext signing framework
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Mar 2021 08:50:19 -0000

--=Afghanistan_halcon_bank_Looting_Law_enforcement_Reno_OTP_State_of=em
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On Thu, 18 Mar 2021 02:20, =C3=81ngel said:

> I think the phrase
>>      - One or more "Hash" Armor Headers,
> should have been
>>      - One or more Armor Headers,

Nope becuase ...

> Then it covers other armor headers that may be present, such as
> "Charset:", and then it suddenly makes sense the following discussion

There should be only one Charset header.

ctuallay I would like to drop Charset because it is useless becauuse we
can also interpret that the Charset must be UTF-8.  In any case, MIME is
a way better method to define such properties.  Better have that only at
one place to avoid conflicts - and the armor header are not protected
which has led to questions in the past.


Shalom-Salam,

   Werner

=2D-=20
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

--=Afghanistan_halcon_bank_Looting_Law_enforcement_Reno_OTP_State_of=em
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQSHd0YfKgdOvEgNNZQZzByeCFsQegUCYFMTTAAKCRAZzByeCFsQ
euGXAQDBM0Bfx9us0fygol81y7RZQLsGO0nDz9446TrLYg2yjwEA+nRr48sXknIN
mN+c2xOZVtJiFWWnnFb1W9WJn8jfxgo=
=T7d3
-----END PGP SIGNATURE-----
--=Afghanistan_halcon_bank_Looting_Law_enforcement_Reno_OTP_State_of=em--


From nobody Thu Mar 18 01:50:23 2021
Return-Path: <wk@gnupg.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 2E1353A253D for <openpgp@ietfa.amsl.com>; Thu, 18 Mar 2021 01:50:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level: 
X-Spam-Status: No, score=-2.098 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_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=gnupg.org
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5tiVhzKYGECQ for <openpgp@ietfa.amsl.com>; Thu, 18 Mar 2021 01:50:14 -0700 (PDT)
Received: from kerckhoffs.g10code.com (kerckhoffs.g10code.com [IPv6:2001:aa8:fff1:100::22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BAE643A2527 for <openpgp@ietf.org>; Thu, 18 Mar 2021 01:50:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnupg.org;  s=20181017; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=tcRXI1R8V+2+uNncFaVGbccv7okmEIlt8MQhYHzldsA=; b=Ul8eEbvNeSHIeutGx40/aQa+aU eGFZ3okw9UAmSWjinc0CLdZtxgTFuZpmOh3EHkfHPgzp1t4FfdWb/UJDe6wXmaoxdVBCaEoYZMHqm lcEGRbmfKWAAbM7rZPdNyiwSSIrUyOY5XUmtrvP0et4MLKsfN+WmLIRNJHZd2lPuhMIM=;
Received: from uucp by kerckhoffs.g10code.com with local-rmail (Exim 4.89 #1 (Debian)) id 1lMoM4-0006vE-DI for <openpgp@ietf.org>; Thu, 18 Mar 2021 09:50:08 +0100
Received: from wk by wheatstone.g10code.de with local (Exim 4.92 #5 (Debian)) id 1lMoLK-0000IK-Js; Thu, 18 Mar 2021 09:49:22 +0100
From: Werner Koch <wk@gnupg.org>
To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Cc: =?utf-8?Q?=C3=81ngel?= <angel@16bits.net>,  openpgp@ietf.org
References: <20210317145508.136021-1-dkg@fifthhorseman.net> <871rcd7rdh.fsf@fifthhorseman.net> <25e8d5713bcccb7b86e0f9ce75dafba80fb41530.camel@16bits.net> <87sg4t5fz8.fsf@fifthhorseman.net>
Organisation: GnuPG e.V.
X-message-flag: Mails containing HTML will not be read! Please send only plain text.
Mail-Followup-To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>, =?utf-8?Q?=C3=81ngel?= <angel@16bits.net>, openpgp@ietf.org
Date: Thu, 18 Mar 2021 09:49:22 +0100
In-Reply-To: <87sg4t5fz8.fsf@fifthhorseman.net> (Daniel Kahn Gillmor's message of "Wed, 17 Mar 2021 22:54:19 -0400")
Message-ID: <87k0q4rgml.fsf@wheatstone.g10code.de>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=DSD_BECCA_Lacrosse_Hazardous_material_incident_bullion_E911_MITM_wir"; micalg=pgp-sha256; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/Q1xbJc6HLe3Y8xrrAgFijuyS7fQ>
Subject: Re: [openpgp] [RFC4880bis PATCH] Clarify CRC-24 C example implementation
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Mar 2021 08:50:19 -0000

--=DSD_BECCA_Lacrosse_Hazardous_material_incident_bullion_E911_MITM_wir
Content-Type: multipart/mixed; boundary="=Failure_eavesdropping_Bush_Wired_quiche_Transportation_security_DEVG"

--=Failure_eavesdropping_Bush_Wired_quiche_Transportation_security_DEVG
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Wed, 17 Mar 2021 22:54, Daniel Kahn Gillmor said:

> i'd be fine with either one.  afaict, "unsigned long" is always at least
> at least a 32-bit unsigned integer, and is more typical idiomatic C, but
> if the WG prefers uint_least32_t i would not object.  (technically the

This is a protocol, specification and not an implementation description.
Thus this should be considred as Pseudo code.

Anyway, I am in favor of applying Hal Finney's old suggestion (patch 39,
attached).


Salam-Shalom,

   Werner


=2D-=20
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

--=Failure_eavesdropping_Bush_Wired_quiche_Transportation_security_DEVG
Content-Type: text/x-diff; charset=utf-8
Content-Disposition: inline; filename=39.patch
Content-Transfer-Encoding: quoted-printable

From=20998f55481cd4101eefe45350ded408dbfdd16438 Mon Sep 17 00:00:00 2001
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Wed, 17 Mar 2021 09:54:16 -0400
Subject: [PATCH] Clarify CRC-24 C example implementation
MIME-Version: 1.0
Content-Type: text/plain; charset=3DUTF-8
Content-Transfer-Encoding: 8bit

The mismatch between the variable in the sample CRC-24 generation code
and the definition of the generator in the paragraph above has been a
source of confusion for over 20 years (see [0] for the first instance
I could find in the wild).  It has also been raised as an explicit
erratum [1].

[0] https://mailarchive.ietf.org/arch/msg/openpgp/F29_03_iISnOS7DF0PUH-tVVK=
sI/

[1] https://www.rfc-editor.org/errata/eid5491

One option would be to change the CRC24_POLY variable in the code to
exactly match the generator described above.  This allows the `crc24`
accumulator to overflow, which on most architectures has has no
practical functional change, because of the masking step at the end of
the function.

However, allowing the `crc24` accumulator to overflow *might* cause a
problem in some obscure architecture, as (a) `crc24` is defined as
"long", which is typically a signed type, and (b) left-shift behavior
is undefined for overflowing signed values (and also for negative
signed values) [2].

[2] http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf =C2=A7 6.5.7(=
4)

So allowing the accumulator to overflow in the sample code seems
ill-advised.  This change clarifies both that the accumulator should
be treated as unsigned, and aligns the variable with the textual
description of the generator.

It follows a suggestion first made by Hal Finney 22 years ago [3].

[3] https://mailarchive.ietf.org/arch/msg/openpgp/UMLreIiKtKzXEnPT5ZbcDDjRQ=
X0/
=2D--
 crypto-refresh.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/crypto-refresh.md b/crypto-refresh.md
index 9fbb6eb..9f57a1a 100644
=2D-- a/crypto-refresh.md
+++ b/crypto-refresh.md
@@ -2116,9 +2116,9 @@ The nonzero initialization can detect more errors tha=
n a zero initialization.
 ## An Implementation of the CRC-24 in "C"
=20
     #define CRC24_INIT 0xB704CEL
=2D    #define CRC24_POLY 0x1864CFBL
+    #define CRC24_GENERATOR 0x864CFBL
=20
=2D    typedef long crc24;
+    typedef unsigned long crc24;
     crc24 crc_octets(unsigned char *octets, size_t len)
     {
         crc24 crc =3D CRC24_INIT;
@@ -2128,7 +2128,7 @@ The nonzero initialization can detect more errors tha=
n a zero initialization.
             for (i =3D 0; i < 8; i++) {
                 crc <<=3D 1;
                 if (crc & 0x1000000)
=2D                    crc ^=3D CRC24_POLY;
+                    crc ^=3D (CRC24_GENERATOR | 0x1000000L);
             }
         }
         return crc & 0xFFFFFFL;
=2D-=20
GitLab


--=Failure_eavesdropping_Bush_Wired_quiche_Transportation_security_DEVG--

--=DSD_BECCA_Lacrosse_Hazardous_material_incident_bullion_E911_MITM_wir
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQSHd0YfKgdOvEgNNZQZzByeCFsQegUCYFMUEgAKCRAZzByeCFsQ
ekLYAQDkxXLS5GxkWQrAYR8HfPYLv9Y/ummN/Xz2nBXpY/P9iAEAjgff/U2sm61C
96YrVFy1MLbDRLTbkEifsp5FERN0sQE=
=Qb9p
-----END PGP SIGNATURE-----
--=DSD_BECCA_Lacrosse_Hazardous_material_incident_bullion_E911_MITM_wir--


From nobody Thu Mar 18 15:39:24 2021
Return-Path: <sandals@crustytoothpaste.net>
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 0A2B23A0C98 for <openpgp@ietfa.amsl.com>; Thu, 18 Mar 2021 15:39:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (3072-bit key) header.d=crustytoothpaste.net
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MXoRANoHLc7b for <openpgp@ietfa.amsl.com>; Thu, 18 Mar 2021 15:39:21 -0700 (PDT)
Received: from injection.crustytoothpaste.net (injection.crustytoothpaste.net [192.241.140.119]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 63A4D3A0C93 for <openpgp@ietf.org>; Thu, 18 Mar 2021 15:39:21 -0700 (PDT)
Received: from camp.crustytoothpaste.net (unknown [IPv6:2001:470:b978:101:7d4e:cde:7c41:71c2]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by injection.crustytoothpaste.net (Postfix) with ESMTPSA id 4CB8F6046C for <openpgp@ietf.org>; Thu, 18 Mar 2021 22:38:48 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=crustytoothpaste.net; s=default; t=1616107128; bh=rYSXBFmnW1K+xhAQNaK/WIbPHXxVwbtsDc+tU1roiz4=; h=Date:From:To:Subject:References:Content-Type:Content-Disposition: In-Reply-To:From:Reply-To:Subject:Date:To:CC:Resent-Date: Resent-From:Resent-To:Resent-Cc:In-Reply-To:References: Content-Type:Content-Disposition; b=NtF9j8WiaIGririFq+isCe0mH3XzvZCENb9Drunq23MM/2mOf8kDaDzs/4ILJY7du 07BGgkRs9pGY+yE6xQ24FUv7IuaZRciZxFbJt0tFzhuipyjq459cphilYPxBYlpS+E asyBw/caCzoKYJVwbJJxJSu89RhnOlZjp6CXeAhoMZkcxycTNaNFNrJlBH7mAA3FdS c5zLv+CinfRX6PAP0kK1gARiotHs6L6Biy8TnXajlPzR61Hi1YLLvFzOHaPKRixLOF u7jMyymxC0ZFGpxuc2KLIYi2DryMrtikGDZk8y0xhtP5I9Yb2jf+Nn9Q5WjvgYc4u/ y0BKf6iEjGU7JhHd5EIBtkh+Qs2qAQiIAkMeFASpf+RJ1IOv3+OaI2/VpYSArv18Xb nYLofWluaTu/wOnKycO8LUgI8Y993QQPvQDgQ9BLtEYywr7O8RHF27ESO2qP6Dm2ze BwOMZVBSdLhixh6zFBWjNuRbOPz81DPrLLVEmMPzyl3vYj66mEo
Date: Thu, 18 Mar 2021 22:38:41 +0000
From: "brian m. carlson" <sandals@crustytoothpaste.net>
To: openpgp@ietf.org
Message-ID: <YFPWcTDig8jChiry@camp.crustytoothpaste.net>
References: <20210317145508.136021-1-dkg@fifthhorseman.net> <871rcd7rdh.fsf@fifthhorseman.net> <25e8d5713bcccb7b86e0f9ce75dafba80fb41530.camel@16bits.net>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HtaVIoq7tbFMB1PI"
Content-Disposition: inline
In-Reply-To: <25e8d5713bcccb7b86e0f9ce75dafba80fb41530.camel@16bits.net>
User-Agent: Mutt/2.0.5 (2021-01-21)
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/YI6JB-vxvOxh1Zz_cVpaxjqevwA>
Subject: Re: [openpgp] [RFC4880bis PATCH] Clarify CRC-24 C example implementation
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Mar 2021 22:39:23 -0000

--HtaVIoq7tbFMB1PI
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2021-03-18 at 01:33:54, =C3=81ngel wrote:
> On 2021-03-17 at 11:05 -0400, Daniel Kahn Gillmor wrote:
> > On Wed 2021-03-17 10:55:08 -0400, Daniel Kahn Gillmor wrote:
> > > The mismatch between the variable in the sample CRC-24 generation
> > > code
> > > and the definition of the generator in the paragraph above has been
> > > a
> > > source of confusion for over 20 years.
> >=20
> > I recorded this proposed minor cleanup as MR 39:
> > https://gitlab.com/openpgp-wg/rfc4880bis/-/merge_requests/39
> >=20
> >         --dkg
>=20
> What about using, instead of the 'long' type, which may mean quite
> dfferent things, the uint_least32_t type defined in ISO C 7.18 ?

My preference here is uint32_t, since as a practical matter all modern
architectures offer that and implement it reasonably efficiently, and it
is much more commonly used.  More recent languages like Rust and Go just
assume everyone has such a type, and in the unlikely event someone uses
a system that doesn't have it, they'll clearly know how to adjust.

However, I'm also fine with uint_least32_t or unsigned long.  The
important thing is that we produce something that is (a) correct so that
it produces the right results, (b) conformant so that compilers don't
break it in the name of better optimizations during undefined behavior,
and (c) as simple and easy to understand as possible.  Any option which
meets those requirements is satisfactory to me.
--=20
brian m. carlson (he/him or they/them)
Houston, Texas, US

--HtaVIoq7tbFMB1PI
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.2.27 (GNU/Linux)

iHUEABYKAB0WIQQILOaKnbxl+4PRw5F8DEliiIeigQUCYFPWcQAKCRB8DEliiIei
gT8BAP9ZlfUQYgdwEMmrnbZrGBgy9KK2Icply8yIAT0WnL3ntQEAkFa/Lf4Bissu
yyQx/URkeewA6D/S69vzQuJzQIWIfAU=
=CRba
-----END PGP SIGNATURE-----

--HtaVIoq7tbFMB1PI--


From nobody Thu Mar 18 16:00:20 2021
Return-Path: <sandals@crustytoothpaste.net>
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 C00793A0D25 for <openpgp@ietfa.amsl.com>; Thu, 18 Mar 2021 16:00:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (3072-bit key) header.d=crustytoothpaste.net
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3pmhcmgc5kie for <openpgp@ietfa.amsl.com>; Thu, 18 Mar 2021 16:00:15 -0700 (PDT)
Received: from injection.crustytoothpaste.net (injection.crustytoothpaste.net [192.241.140.119]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 10F773A0D24 for <openpgp@ietf.org>; Thu, 18 Mar 2021 16:00:14 -0700 (PDT)
Received: from camp.crustytoothpaste.net (unknown [IPv6:2001:470:b978:101:7d4e:cde:7c41:71c2]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by injection.crustytoothpaste.net (Postfix) with ESMTPSA id D44436046C for <openpgp@ietf.org>; Thu, 18 Mar 2021 22:59:43 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=crustytoothpaste.net; s=default; t=1616108384; bh=z0bKVHnhnLhWVusrHOdLwcJomowaxxIal1nFiy50MeM=; h=Date:From:To:Subject:References:Content-Type:Content-Disposition: In-Reply-To:From:Reply-To:Subject:Date:To:CC:Resent-Date: Resent-From:Resent-To:Resent-Cc:In-Reply-To:References: Content-Type:Content-Disposition; b=gY2npM2Peh0ki53H784I/WJM4FObtqorZbUg1ByxMrl9k8l/GkM9CxsG1fSEe6ekj aYTsJCXM43iCj93jrbsTW2mGQRSYcm57+4snPLxQIbTa7lT82XQMWfuHeMdj/nnE7S bwtZhRegM/i8TH5GJOHmCBJ23uyukE3YVagDS6Mn32K2l7682fRnvxTVET/V9B87V8 ejA9Jl4KnZhx7whMuB7g3eglHcx44t+e45MQx/EGZxMaEnFjzeazCyWuj1pDlXtLy3 S9MCxNYA1D+cwqsPkz63Pmc/dyF07CIUneh34D8WlKHf2vV8CbzeQVqel1QwSWSKWB wfmodpB2ZcMCmxixNAUKOv1/Jf/h5YFe1Dq4s1WCRzfzGD4U9WcYYiW1SZj+eV5mlk 8F7QR2nMCe6cqfteyS6Yl2D/onA8070OZB26YoFVO0Vj1NZkdSDrFQmB5ePdCkr4f6 r5/uFyCjfYC/v4qzHxXcart1v/RMLRg/MtM4TCbZBtaEquxYur3
Date: Thu, 18 Mar 2021 22:59:39 +0000
From: "brian m. carlson" <sandals@crustytoothpaste.net>
To: openpgp@ietf.org
Message-ID: <YFPbW9BLDdCn4E7I@camp.crustytoothpaste.net>
References: <875z1p7vva.fsf@fifthhorseman.net>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Q6m+d16gvOV2OWUV"
Content-Disposition: inline
In-Reply-To: <875z1p7vva.fsf@fifthhorseman.net>
User-Agent: Mutt/2.0.5 (2021-01-21)
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/4gIbgVodeczxRbdji-qS5b_d_kM>
Subject: Re: [openpgp] incomplete/confusing guidance around "Hash" Armor header for cleartext signing framework
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Mar 2021 23:00:17 -0000

--Q6m+d16gvOV2OWUV
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2021-03-17 at 13:28:09, Daniel Kahn Gillmor wrote:
> (no hats on, just noticed a textual problem and wanted to record it on
> the list)
>=20
> The current draft (and RFC 4880) seems internally inconsistent about the
> mandatory nature of the "Hash" armor header in the Cleartext Signing
> Framwork section.
>=20
> In particular, it defines 'one or more "Hash" Armor Headers' as an
> official part of what a clearsigned message looks like, but then it
> discusses what it means when such a header is absent.  (and, when the
> header is absent, it says it uses MD5, yikes -- that makes this relevant
> to the crypto refresh).
>=20
> Additionally, though multiple headers could be present, "If more than
> one message digest is used in the signature, the "Hash" armor header
> contains a comma-delimited list of used message digests."
>=20
> Finally, what should an implementation do if the hash header doesn't
> match the digests found in the actual signature?
>=20
> This text should be reworked to make the expectations clearer, both for
> those generating such a message and for those consuming it.  And it
> should *not* encourage the use of MD5.

I agree that MD5 is right out.  If we expect implementations to need
this to process a message correctly, then it should be mandatory, since
if someone really wants to use MD5, they should be fine declaring that
up front.  Practically, though, nobody will want to use MD5 for that
purpose, because a signature with MD5 doesn't tell you anything
interesting about the integrity of the message, so everyone will need to
declare a hash.

In my implementation, I would personally choose to instantiate only the
provided algorithms, and as such, I would return an error if the values
did not include the required algorithms, failing the operation.
Alternative implementations might choose to instantiate all digests and
just pick the ones they need at the end, at the cost of additional
computational power.  I don't have a strong preference as to what we do,
but I would like to leave the former possibility open because it
drastically simplifies fast one-pass streaming implementations,
especially if the clearsigned data is large.

I also agree with Werner that Charset is no longer interesting and we
should just use UTF-8.  The encoding practically needs to be
ASCII-compatible so that the delimiters and dash stuffing work, so other
Unicode encodings are out, and generally non-Unicode encodings are
considered obsolete.  That does exclude the possibility that someone
uses a mostly text-compatible binary body there that gracefully handles
newline conversions, but I feel like that's unlikely.
--=20
brian m. carlson (he/him or they/them)
Houston, Texas, US

--Q6m+d16gvOV2OWUV
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.2.27 (GNU/Linux)

iHUEABYKAB0WIQQILOaKnbxl+4PRw5F8DEliiIeigQUCYFPbWwAKCRB8DEliiIei
gRmWAQDu3YXoQuSufbEHlBdFkJlGl+Xx5KZeZqLH50YcCIjotAEAwizIJ92T2/Op
elPlt/pfn+jEIgI0omKcpxQndQkpPAo=
=C+fO
-----END PGP SIGNATURE-----

--Q6m+d16gvOV2OWUV--


From nobody Thu Mar 18 16:08:09 2021
Return-Path: <angel@16bits.net>
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 4CA7E3A0D69 for <openpgp@ietfa.amsl.com>; Thu, 18 Mar 2021 16:08:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8hxfKe3Mk1Ws for <openpgp@ietfa.amsl.com>; Thu, 18 Mar 2021 16:08:05 -0700 (PDT)
Received: from mail.direccionemail.com (mail.direccionemail.com [199.195.249.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 544B03A0D64 for <openpgp@ietf.org>; Thu, 18 Mar 2021 16:08:05 -0700 (PDT)
Message-ID: <60773433fb4dfae65a59c089c22e24c37e7913cf.camel@16bits.net>
From: =?ISO-8859-1?Q?=C1ngel?= <angel@16bits.net>
To: openpgp@ietf.org
Date: Fri, 19 Mar 2021 00:08:02 +0100
In-Reply-To: <87k0q4rgml.fsf@wheatstone.g10code.de>
References: <20210317145508.136021-1-dkg@fifthhorseman.net> <871rcd7rdh.fsf@fifthhorseman.net> <25e8d5713bcccb7b86e0f9ce75dafba80fb41530.camel@16bits.net> <87sg4t5fz8.fsf@fifthhorseman.net> <87k0q4rgml.fsf@wheatstone.g10code.de>
Content-Type: text/plain; charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/NLDbICF0jnfWtyMSCM9JWijg22I>
Subject: Re: [openpgp] [RFC4880bis PATCH] Clarify CRC-24 C example implementation
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Mar 2021 23:08:07 -0000

> (technically the CRC-24 accumulator just needs 25 bits -- one to test
> for overflow -- but we don't need to cut it so fine :P)

I don't think you would find many platforms with a uint_least25_t type. ;-)
I generally prefer explicit sizes when the number of bits matter, but
you are right: a long is more idiomatic. I don't mind either way.


On 2021-03-18 at 09:49 +0100, Werner Koch wrote:
> Anyway, I am in favor of applying Hal Finney's old suggestion (patch
> 39, attached).


As the goal is to provide clear code, that ORed 0x1000000 may still be
a bit surprising (albeit less than when it was included in the
constant). I think it would be clearer to use

                   if (crc & 0x1000000) {
                       crc =3D (crc ^ CRC24_POLY) & 0xffffff;
                   }


or, following more closely hal's second suggestion:
                   if (crc & 0x1000000) {
                       crc &=3D 0xffffff; /* Clear bit 25 to avoid overflow=
 */
                       crc ^=3D CRC24_POLY;
                   }




Best regards



From nobody Thu Mar 18 16:19:20 2021
Return-Path: <angel@16bits.net>
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 94C173A0DDD for <openpgp@ietfa.amsl.com>; Thu, 18 Mar 2021 16:19:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 71Z9kRMwnxgX for <openpgp@ietfa.amsl.com>; Thu, 18 Mar 2021 16:19:17 -0700 (PDT)
Received: from mail.direccionemail.com (mail.direccionemail.com [199.195.249.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 122463A0B72 for <openpgp@ietf.org>; Thu, 18 Mar 2021 16:19:16 -0700 (PDT)
Message-ID: <5a927ffed96b38efa08c58b6a29e565dff87a535.camel@16bits.net>
From: =?ISO-8859-1?Q?=C1ngel?= <angel@16bits.net>
To: openpgp@ietf.org
Date: Fri, 19 Mar 2021 00:19:15 +0100
In-Reply-To: <20210317145508.136021-1-dkg@fifthhorseman.net>
References: <20210317145508.136021-1-dkg@fifthhorseman.net>
Content-Type: text/plain; charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/dTsyiSSgq8y4-ZDoBB6UD5fahJ0>
Subject: Re: [openpgp] The checksum may appear
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Mar 2021 23:19:19 -0000

Looking at the Radix-64 section, I noticed the phrase
> The checksum with its leading equal sign MAY appear on the first line
> after the base64 encoded data.

I understand it is that way to convey that the checksum may not appear
at all, but it would be better to explicitly say so.



diff --git a/crypto-refresh.md b/crypto-refresh.md
index 9fbb6eb..bb9635b 100644
--- a/crypto-refresh.md
+++ b/crypto-refresh.md
@@ -2100,7 +2100,7 @@ As stated in the introduction, OpenPGP's underlying n=
ative representation for ob
 In principle, any printable encoding scheme that met the requirements of t=
he unsafe channel would suffice, since it would=20
not change the underlying binary bit streams of the native OpenPGP data str=
uctures.
 The OpenPGP standard specifies one such printable encoding scheme to ensur=
e interoperability.
=20
-OpenPGP's Radix-64 encoding is composed of two parts: a base64 encoding of=
 the binary data and a checksum.
+OpenPGP's Radix-64 encoding is composed of two parts: a base64 encoding of=
 the binary data and an optional checksum.
 The base64 encoding is identical to the MIME base64 content-transfer-encod=
ing {{RFC2045}}.
=20
 The checksum is a 24-bit Cyclic Redundancy Check (CRC) converted to four c=
haracters of radix-64 encoding by the same MIME=20
base64 transformation, preceded by an equal sign (=3D).
@@ -2108,7 +2108,7 @@ The CRC is computed by using the generator 0x864CFB a=
nd an initialization of 0xB
 The accumulation is done on the data before it is converted to radix-64, r=
ather than on the converted data.
 A sample implementation of this algorithm is in the next section.
=20
-The checksum with its leading equal sign MAY appear on the first line afte=
r the base64 encoded data.
+If present, the checksum with its leading equal sign SHALL appear on the n=
ext line after the base64 encoded data.
=20
 Rationale for CRC-24: The size of 24 bits fits evenly into printable base6=
4.
 The nonzero initialization can detect more errors than a zero initializati=
on.



From nobody Thu Mar 18 17:43:49 2021
Return-Path: <angel@16bits.net>
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 194A63A109C for <openpgp@ietfa.amsl.com>; Thu, 18 Mar 2021 17:43:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Uq_KdXeazVMZ for <openpgp@ietfa.amsl.com>; Thu, 18 Mar 2021 17:43:45 -0700 (PDT)
Received: from mail.direccionemail.com (mail.direccionemail.com [199.195.249.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 601513A109A for <openpgp@ietf.org>; Thu, 18 Mar 2021 17:43:44 -0700 (PDT)
Message-ID: <84dd70a1f9bc5f0b5f8c8f5f5a02bbc6fc50f93a.camel@16bits.net>
From: =?ISO-8859-1?Q?=C1ngel?= <angel@16bits.net>
To: openpgp@ietf.org
Date: Fri, 19 Mar 2021 01:43:42 +0100
In-Reply-To: <87o8fgrgs3.fsf@wheatstone.g10code.de>
References: <875z1p7vva.fsf@fifthhorseman.net> <0b29b5c446910e9dfe1ac89854f17012fc143851.camel@16bits.net> <87o8fgrgs3.fsf@wheatstone.g10code.de>
Content-Type: text/plain; charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/qTFWwjpBwqt-NKkwhdOO_-DXzqo>
Subject: Re: [openpgp] incomplete/confusing guidance around "Hash" Armor header for cleartext signing framework
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Mar 2021 00:43:47 -0000

On 2021-03-18 at 09:46 +0100, Werner Koch wrote:
> On Thu, 18 Mar 2021 02:20, =C1ngel said:
>=20
> > I think the phrase
> > >      - One or more "Hash" Armor Headers,
> > should have been
> > >      - One or more Armor Headers,
>=20
> Nope becuase ...
>=20
> > Then it covers other armor headers that may be present, such as
> > "Charset:", and then it suddenly makes sense the following
> > discussion
>=20
> There should be only one Charset header.

No. What I mean is that it only says =ABOne or more "Hash" Armor
Headers,=BB. It doesn't mention other Armor Headers. Charset was an
example I gave of other armor headers that might be there.


And yes, Charset is a weird header. It doesn't make much sense to
define it but say it may be followed or ignored and treated as utf-8
anyway. The sane thing would be to state that when encoding utf-8 MUST
be used, and receivers are not required to implement any other charset.
The behavior if they find a different charset would be up to them, they
could implement more charsets (specially interesting for old content),
show an error message, use a different charset and hope for the best...


> In any case, MIME is a way better method to define such
> properties.  Better have that only at one place to avoid conflicts -
> and the armor header are not protected which has led to questions in
> the past.
>=20

I'm not so sure. If it's an armored message, the charset header will be
more right than the document MIME. If it's a clearsigned one, then
either of them may be the correct one. The only safe way would be to
specify the same charset in the MIME Content-Type as in the PGP own
Charset heaer, and that such charset is utf-8.


Best regards




From nobody Thu Mar 18 23:50:16 2021
Return-Path: <wk@gnupg.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 93D8A3A145C for <openpgp@ietfa.amsl.com>; Thu, 18 Mar 2021 23:50:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=gnupg.org
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kiP9QICYdHOn for <openpgp@ietfa.amsl.com>; Thu, 18 Mar 2021 23:50:12 -0700 (PDT)
Received: from kerckhoffs.g10code.com (kerckhoffs.g10code.com [IPv6:2001:aa8:fff1:100::22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 94D053A145A for <openpgp@ietf.org>; Thu, 18 Mar 2021 23:50:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnupg.org;  s=20181017; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=eCCPHH8TstTaU+1M3WIDZ5rB735nRM9bz+CAvgraB64=; b=hVss+CnvyklWl6pdQ/04nycLos fo7SlEa2YlxJf2s3CjJYQqEK53FX8gWEeCWOxxMz57PFtIFT4Itt2m/Y4XCAfSzsNmyYydhnBenK2 gKGcjnIi8+0l62+aKBHS2oFIck6knrqXzx9m8OH7zEHEiKk7gXfi+oRDPR4waSS+sycs=;
Received: from uucp by kerckhoffs.g10code.com with local-rmail (Exim 4.89 #1 (Debian)) id 1lN8xU-0002eF-23 for <openpgp@ietf.org>; Fri, 19 Mar 2021 07:50:08 +0100
Received: from wk by wheatstone.g10code.de with local (Exim 4.92 #5 (Debian)) id 1lN8wC-0002ql-IP; Fri, 19 Mar 2021 07:48:48 +0100
From: Werner Koch <wk@gnupg.org>
To: "brian m. carlson" <sandals@crustytoothpaste.net>
Cc: openpgp@ietf.org
References: <875z1p7vva.fsf@fifthhorseman.net> <YFPbW9BLDdCn4E7I@camp.crustytoothpaste.net>
Organisation: GnuPG e.V.
X-message-flag: Mails containing HTML will not be read! Please send only plain text.
Mail-Followup-To: "brian m. carlson" <sandals@crustytoothpaste.net>, openpgp@ietf.org
Date: Fri, 19 Mar 2021 07:48:48 +0100
In-Reply-To: <YFPbW9BLDdCn4E7I@camp.crustytoothpaste.net> (brian m. carlson's message of "Thu, 18 Mar 2021 22:59:39 +0000")
Message-ID: <87im5nprjj.fsf@wheatstone.g10code.de>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=CBOT_Bin_Laden_Spammer_SASP_Gang_Power_lines_Verisign_insurgency_dat"; micalg=pgp-sha256; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/mEEnOOxmRwm0My5lSB2aHLj1gFU>
Subject: Re: [openpgp] incomplete/confusing guidance around "Hash" Armor header for cleartext signing framework
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Mar 2021 06:50:15 -0000

--=CBOT_Bin_Laden_Spammer_SASP_Gang_Power_lines_Verisign_insurgency_dat
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Thu, 18 Mar 2021 22:59, brian m. carlson said:

> I agree that MD5 is right out.  If we expect implementations to need
> this to process a message correctly, then it should be mandatory, since
> if someone really wants to use MD5, they should be fine declaring that
> up front.  Practically, though, nobody will want to use MD5 for that

You can't do that for existisng data and thus we need to allow such a
default.  New messages should of course not be created using MD5 and
thus for all practical reasons SHA256 will show up there.  In any case
this is mostly irrelevant because what we have here is basically a
one-pass signature packet.  It needs to be matched against the signature
anyway and for the signature we have rules what algorithm may be used
(for new messages).

> interesting about the integrity of the message, so everyone will need to
> declare a hash.

Right.

> computational power.  I don't have a strong preference as to what we do,
> but I would like to leave the former possibility open because it
> drastically simplifies fast one-pass streaming implementations,
> especially if the clearsigned data is large.

Ack.


Salam-Shalom,

   Werner

=2D-=20
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

--=CBOT_Bin_Laden_Spammer_SASP_Gang_Power_lines_Verisign_insurgency_dat
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQSHd0YfKgdOvEgNNZQZzByeCFsQegUCYFRJUAAKCRAZzByeCFsQ
en6WAP4r8Dl5SVR0KHp8VxyCxaQnKkIXRepsvOT9ufv1iVNV2wEAvZuryg0iJuvN
kCVsa9T8tdmkpsgsAzm7V7dvpAMbYQE=
=scir
-----END PGP SIGNATURE-----
--=CBOT_Bin_Laden_Spammer_SASP_Gang_Power_lines_Verisign_insurgency_dat--


From nobody Thu Mar 18 23:55:14 2021
Return-Path: <wk@gnupg.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 680873A147F for <openpgp@ietfa.amsl.com>; Thu, 18 Mar 2021 23:55:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=gnupg.org
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 72zn1kHrTtwg for <openpgp@ietfa.amsl.com>; Thu, 18 Mar 2021 23:55:10 -0700 (PDT)
Received: from kerckhoffs.g10code.com (kerckhoffs.g10code.com [IPv6:2001:aa8:fff1:100::22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 613463A147E for <openpgp@ietf.org>; Thu, 18 Mar 2021 23:55:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnupg.org;  s=20181017; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=tDOMAhyuOvKqCATxOT36pY+rVWm2+YHa34ZZJ/Iu2FI=; b=emBVje7bB6NDZYoryovdvAq2Sj 4wVrjQhyQjUn0svHIPc3vNnvzGbOCd1IkKJEC75ijPHDyZIqE+2hRC7zhgUy8oXeepBcYZqiOp55T nHLbi8vg4QwOTaxTq7xileY5ywqT8spwHhNc4OFIJBbfpy3BXp3LFZpHAoFpbpacVPqs=;
Received: from uucp by kerckhoffs.g10code.com with local-rmail (Exim 4.89 #1 (Debian)) id 1lN92J-0002jo-C9 for <openpgp@ietf.org>; Fri, 19 Mar 2021 07:55:07 +0100
Received: from wk by wheatstone.g10code.de with local (Exim 4.92 #5 (Debian)) id 1lN929-0002xB-4K; Fri, 19 Mar 2021 07:54:57 +0100
From: Werner Koch <wk@gnupg.org>
To: =?utf-8?Q?=C3=81ngel?= <angel@16bits.net>
Cc: openpgp@ietf.org
References: <20210317145508.136021-1-dkg@fifthhorseman.net> <5a927ffed96b38efa08c58b6a29e565dff87a535.camel@16bits.net>
Organisation: GnuPG e.V.
X-message-flag: Mails containing HTML will not be read! Please send only plain text.
Mail-Followup-To: =?utf-8?Q?=C3=81ngel?= <angel@16bits.net>, openpgp@ietf.org
Date: Fri, 19 Mar 2021 07:54:56 +0100
In-Reply-To: <5a927ffed96b38efa08c58b6a29e565dff87a535.camel@16bits.net> (=?utf-8?Q?=22=C3=81ngel=22's?= message of "Fri, 19 Mar 2021 00:19:15 +0100")
Message-ID: <87blbfpr9b.fsf@wheatstone.g10code.de>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=World_Health_Organization_Yukon_World_News_JUWTF_sneakers_Scammers=A"; micalg=pgp-sha256; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/WCXKPE4U8zB7dBViahZgfgwIVyk>
Subject: Re: [openpgp] The checksum may appear
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Mar 2021 06:55:12 -0000

--=World_Health_Organization_Yukon_World_News_JUWTF_sneakers_Scammers=A
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On Fri, 19 Mar 2021 00:19, =C3=81ngel said:

> -OpenPGP's Radix-64 encoding is composed of two parts: a base64
> encoding of the binary data and a checksum.
> +OpenPGP's Radix-64 encoding is composed of two parts: a base64
> encoding of the binary data and an optional checksum.

> -The checksum with its leading equal sign MAY appear on the first line
> after the base64 encoded data.
> +If present, the checksum with its leading equal sign SHALL appear on
> the next line after the base64 encoded data.

Adding "optional" and making the CRC a SHOULD create indeed clarifies
the intention of the RFC.  Thus I am in favor of this change.


Shalom-Salam,

   Werner

=2D-=20
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

--=World_Health_Organization_Yukon_World_News_JUWTF_sneakers_Scammers=A
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQSHd0YfKgdOvEgNNZQZzByeCFsQegUCYFRKwAAKCRAZzByeCFsQ
euOXAQCjxJ/4V14JM6qa1qKAuOAyiDkK3wwbiNL2ri4tjjjRPQD9Gc+YlpHRteH8
X0VXQEkZe7VyXyyjjeX7xve5dQKKdAw=
=51u0
-----END PGP SIGNATURE-----
--=World_Health_Organization_Yukon_World_News_JUWTF_sneakers_Scammers=A--


From nobody Fri Mar 19 15:34:33 2021
Return-Path: <dkg@fifthhorseman.net>
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 94E5A3A1275 for <openpgp@ietfa.amsl.com>; Fri, 19 Mar 2021 15:34:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.507
X-Spam-Level: 
X-Spam-Status: No, score=-0.507 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DATE_IN_PAST_03_06=1.592, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=fifthhorseman.net header.b=XHOLFC1K; dkim=pass (2048-bit key) header.d=fifthhorseman.net header.b=0QvPEkX3
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9UGUPg9DluXS for <openpgp@ietfa.amsl.com>; Fri, 19 Mar 2021 15:34:30 -0700 (PDT)
Received: from che.mayfirst.org (che.mayfirst.org [IPv6:2001:470:1:116::7]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 212143A1274 for <openpgp@ietf.org>; Fri, 19 Mar 2021 15:34:30 -0700 (PDT)
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1616193267; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=BMCxGTMggr9gSMa3/+X5W+C7qPPvQ3WoIt1X7Mkenn4=; b=XHOLFC1KdSrnwhPQ7CryWcEIfVWmbwpbKbS99FKwg5xEETBDxI/+3NCYMxppZLTnWoelS kfJZoX0sXCWYAavAg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1616193267; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=BMCxGTMggr9gSMa3/+X5W+C7qPPvQ3WoIt1X7Mkenn4=; b=0QvPEkX3AzYs0RDHbUysJWW7/8nT+MSPD1rSB8Ia4y3MNrljXnEdGq3THopPcfhmCT0rA +RxNXUDziiqkqpHUTlcUSXBhAjTDJlN1aUfymogDgPX0F9+jPWVjI+q3d+naY3GbNflE/3p FfZ0ZwGOp4Q5Q6WT2JjFL6uwChCqSjV34Aj5/6heg5+mI1JsTYPT9yObBvx6BBz3iuk7RfE AtUnOR/m8sQ53Ckfwf8OlzFBbSMpplpsptmAk4tzo8LFzN/9x1J5X0EgSdlX/bkO8JhQlaw bXVbo3WtExouHXEnzC5untaZWgzOgV7kOCM3iM2qCDBosNyJyFfJQdzvbS5A==
Received: from fifthhorseman.net (lair.fifthhorseman.net [108.58.6.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id 49245F9A7; Fri, 19 Mar 2021 18:34:27 -0400 (EDT)
Received: by fifthhorseman.net (Postfix, from userid 1000) id F4217203F0; Fri, 19 Mar 2021 13:24:11 -0400 (EDT)
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: =?utf-8?Q?=C3=81ngel?= <angel@16bits.net>, openpgp@ietf.org
In-Reply-To: <60773433fb4dfae65a59c089c22e24c37e7913cf.camel@16bits.net>
References: <20210317145508.136021-1-dkg@fifthhorseman.net> <871rcd7rdh.fsf@fifthhorseman.net> <25e8d5713bcccb7b86e0f9ce75dafba80fb41530.camel@16bits.net> <87sg4t5fz8.fsf@fifthhorseman.net> <87k0q4rgml.fsf@wheatstone.g10code.de> <60773433fb4dfae65a59c089c22e24c37e7913cf.camel@16bits.net>
Autocrypt: addr=dkg@fifthhorseman.net; prefer-encrypt=mutual; keydata= mDMEX+i03xYJKwYBBAHaRw8BAQdACA4xvL/xI5dHedcnkfViyq84doe8zFRid9jW7CC9XBiI0QQf FgoAgwWCX+i03wWJBZ+mAAMLCQcJEOCS6zpcoQ26RxQAAAAAAB4AIHNhbHRAbm90YXRpb25zLnNl cXVvaWEtcGdwLm9yZ/tr8E9NA10HvcAVlSxnox6z62KXCInWjZaiBIlgX6O5AxUKCAKbAQIeARYh BMKfigwB81402BaqXOCS6zpcoQ26AADZHQD/Zx9nc3N2kj13AUsKMr/7zekBtgfSIGB3hRCU74Su G44A/34Yp6IAkndewLxb1WdRSokycnaCVyrk0nb4imeAYyoPtBc8ZGtnQGZpZnRoaG9yc2VtYW4u bmV0PojRBBMWCgCDBYJf6LTfBYkFn6YAAwsJBwkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3Rh dGlvbnMuc2VxdW9pYS1wZ3Aub3JnL0Gwxvypz2tu1IPG+yu1zPjkiZwpscsitwrVvzN3bbADFQoI ApsBAh4BFiEEwp+KDAHzXjTYFqpc4JLrOlyhDboAAPkXAP0Z29z7jW+YzLzPTQML4EQLMbkHOfU4 +s+ki81Czt0WqgD/SJ8RyrqDCtEP8+E4ZSR01ysKqh+MUAsTaJlzZjehiQ24MwRf6LTfFgkrBgEE AdpHDwEBB0DkKHOW2kmqfAK461+acQ49gc2Z6VoXMChRqobGP0ubb4kBiAQYFgoBOgWCX+i03wWJ BZ+mAAkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3Jnfvo+ nHoxDwaLaJD8XZuXiaqBNZtIGXIypF1udBBRoc0CmwICHgG+oAQZFgoAbwWCX+i03wkQPp1xc3He VlxHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3JnaheiqE7Pfi3Atb3GGTw+ jFcBGOaobgzEJrhEuFpXREEWIQQttUkcnfDcj0MoY88+nXFzcd5WXAAAvrsBAIJ5sBg8Udocv25N stN/zWOiYpnjjvOjVMLH4fV3pWE1AP9T6hzHz7hRnAA8d01vqoxOlQ3O6cb/kFYAjqx3oMXSBhYh BMKfigwB81402BaqXOCS6zpcoQ26AADX7gD/b83VObe14xrNP8xcltRrBZF5OE1rQSPkMNy+eWpk eCwA/1hxiS8ZxL5/elNjXiWuHXEvUGnRoVj745Vl48sZPVYMuDgEX+i03xIKKwYBBAGXVQEFAQEH QIGex1WZbH6xhUBve5mblScGYU+Y8QJOomXH+rr5tMsMAwEICYjJBBgWCgB7BYJf6LTfBYkFn6YA CRDgkus6XKENukcUAAAAAAAeACBzYWx0QG5vdGF0aW9ucy5zZXF1b2lhLXBncC5vcmcEAx9vTD3b J0SXkhvcRcCr6uIDJwic3KFKxkH1m4QW0QKbDAIeARYhBMKfigwB81402BaqXOCS6zpcoQ26AAAX mwD8CWmukxwskU82RZLMk5fm1wCgMB5z8dA50KLw3rgsCykBAKg1w/Y7XpBS3SlXEegIg1K1e6dR fRxL7Z37WZXoH8AH
Date: Fri, 19 Mar 2021 13:24:11 -0400
Message-ID: <87blbf5a6c.fsf@fifthhorseman.net>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/lYyOm2QVuqUIWrygvWIxcUlTS74>
Subject: Re: [openpgp] [RFC4880bis PATCH] Clarify CRC-24 C example implementation
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Mar 2021 22:34:32 -0000

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On Fri 2021-03-19 00:08:02 +0100, =C3=81ngel wrote:
> On 2021-03-18 at 09:49 +0100, Werner Koch wrote:
>> Anyway, I am in favor of applying Hal Finney's old suggestion (patch
>> 39, attached).
>
>
> As the goal is to provide clear code, that ORed 0x1000000 may still be
> a bit surprising (albeit less than when it was included in the
> constant). I think it would be clearer to use
>
>                    if (crc & 0x1000000) {
>                        crc =3D (crc ^ CRC24_POLY) & 0xffffff;
>                    }
>
>
> or, following more closely hal's second suggestion:
>                    if (crc & 0x1000000) {
>                        crc &=3D 0xffffff; /* Clear bit 25 to avoid overfl=
ow */
>                        crc ^=3D CRC24_POLY;
>                    }

fwiw, i'm fine with either of these.  I note that the change i'd
originally proposed renamed the constant to CRC24_GENERATOR, to align it
with the term in the text ("poly" doesn't appear anywhere in the text,
but "generator" does).

That said, we are pretty clearly in bike-shedding territory here.

I have heard no one advocate for leaving the text unchanged, and i have
heard no one advocate for just silently amending the code to drop bit 25
from the constant.

All of the other variants proposed in this thread seem to have people
expressing various degrees of mild preference, so long as:

 - bit 25 should be cleared during accumulation
 - the accumulator type is explicitly and clearly unsigned
 - the variable definition matches the constant in the text

i observe that the first two points are mutually redundant -- when the
accumulator is unsigned, then overflow doesn't hit undefined behavior,
if i'm reading the C spec correctly.  But it still seems cleaner and
easier to understand if the sample code includes both belt and
suspenders.

<chair hat on>
I think the editors should pick one particular color of bike shed that
satisfies the conditions above and include it in the next revision.
If a member of the WG strongly objects to the revision, we can have more
discussion, but otherwise, i think the WG should focus on more pressing
topics.
</chair hat off>

        --dkg

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQQttUkcnfDcj0MoY88+nXFzcd5WXAUCYFTeOwAKCRA+nXFzcd5W
XKYNAQDPP3MtB6TNih1xju7Qg8L1+wQtmaYAEC/gAV4/vLzfqgEAgDaUQ4XlKDVw
Qr2j5+JSai7hLOhFdhWjLS3xwvqPcw4=
=/5OP
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Fri Mar 19 15:34:38 2021
Return-Path: <dkg@fifthhorseman.net>
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 DFE793A1274 for <openpgp@ietfa.amsl.com>; Fri, 19 Mar 2021 15:34:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=fifthhorseman.net header.b=lzWTAG0V; dkim=pass (2048-bit key) header.d=fifthhorseman.net header.b=Pt12z2lp
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qIlc7GItqCbJ for <openpgp@ietfa.amsl.com>; Fri, 19 Mar 2021 15:34:30 -0700 (PDT)
Received: from che.mayfirst.org (che.mayfirst.org [IPv6:2001:470:1:116::7]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E856B3A1273 for <openpgp@ietf.org>; Fri, 19 Mar 2021 15:34:29 -0700 (PDT)
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1616193267; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=uHjxIG5fMlt4+0b72pB7dft7xLHkFzWsyYYcJVGB1Vk=; b=lzWTAG0VbFkU48lPBirAtbWuxW+nIaewfTtdM+BNugdiVRDmAaznYeTjjmiHKDZ63u7wZ U/2fvGQBTsfS4fnAA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1616193267; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=uHjxIG5fMlt4+0b72pB7dft7xLHkFzWsyYYcJVGB1Vk=; b=Pt12z2lpUBXMsEpsEc2r+vQwcfPNhqGiwKuGSL+0ffmljHpfroa1blzMUJVVaGAv5WIsK G6SSwrCRifb6ahOo/NK34GgKAOz8GT3t+54lieA0QzGcp7M0WgxIiXrWEUxNDmcrVJGgXGy psP7xRRDPcw8JZdInldIWSXEXkSncbltfoYr/NZe6UMPuH8us15uUQG9AmYGCm8aocbuzwS wlr4CSno0wX19KhAV2l8AyIrpQQ+ADvatMAMqotOy5EnZTNVlC2kI5oJV6cgT2Vo/Vl5rl8 dX8IxPlDx/iDxdfvPLrviyMPMybqh7jl8KNusUG2w63TyojqQTDWpcEjRyDw==
Received: from fifthhorseman.net (lair.fifthhorseman.net [108.58.6.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id 41A65F9A6; Fri, 19 Mar 2021 18:34:27 -0400 (EDT)
Received: by fifthhorseman.net (Postfix, from userid 1000) id 4140620557; Fri, 19 Mar 2021 17:39:59 -0400 (EDT)
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: =?utf-8?Q?=C3=81ngel?= <angel@16bits.net>, openpgp@ietf.org
In-Reply-To: <5a927ffed96b38efa08c58b6a29e565dff87a535.camel@16bits.net>
References: <20210317145508.136021-1-dkg@fifthhorseman.net> <5a927ffed96b38efa08c58b6a29e565dff87a535.camel@16bits.net>
Autocrypt: addr=dkg@fifthhorseman.net; prefer-encrypt=mutual; keydata= mDMEX+i03xYJKwYBBAHaRw8BAQdACA4xvL/xI5dHedcnkfViyq84doe8zFRid9jW7CC9XBiI0QQf FgoAgwWCX+i03wWJBZ+mAAMLCQcJEOCS6zpcoQ26RxQAAAAAAB4AIHNhbHRAbm90YXRpb25zLnNl cXVvaWEtcGdwLm9yZ/tr8E9NA10HvcAVlSxnox6z62KXCInWjZaiBIlgX6O5AxUKCAKbAQIeARYh BMKfigwB81402BaqXOCS6zpcoQ26AADZHQD/Zx9nc3N2kj13AUsKMr/7zekBtgfSIGB3hRCU74Su G44A/34Yp6IAkndewLxb1WdRSokycnaCVyrk0nb4imeAYyoPtBc8ZGtnQGZpZnRoaG9yc2VtYW4u bmV0PojRBBMWCgCDBYJf6LTfBYkFn6YAAwsJBwkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3Rh dGlvbnMuc2VxdW9pYS1wZ3Aub3JnL0Gwxvypz2tu1IPG+yu1zPjkiZwpscsitwrVvzN3bbADFQoI ApsBAh4BFiEEwp+KDAHzXjTYFqpc4JLrOlyhDboAAPkXAP0Z29z7jW+YzLzPTQML4EQLMbkHOfU4 +s+ki81Czt0WqgD/SJ8RyrqDCtEP8+E4ZSR01ysKqh+MUAsTaJlzZjehiQ24MwRf6LTfFgkrBgEE AdpHDwEBB0DkKHOW2kmqfAK461+acQ49gc2Z6VoXMChRqobGP0ubb4kBiAQYFgoBOgWCX+i03wWJ BZ+mAAkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3Jnfvo+ nHoxDwaLaJD8XZuXiaqBNZtIGXIypF1udBBRoc0CmwICHgG+oAQZFgoAbwWCX+i03wkQPp1xc3He VlxHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3JnaheiqE7Pfi3Atb3GGTw+ jFcBGOaobgzEJrhEuFpXREEWIQQttUkcnfDcj0MoY88+nXFzcd5WXAAAvrsBAIJ5sBg8Udocv25N stN/zWOiYpnjjvOjVMLH4fV3pWE1AP9T6hzHz7hRnAA8d01vqoxOlQ3O6cb/kFYAjqx3oMXSBhYh BMKfigwB81402BaqXOCS6zpcoQ26AADX7gD/b83VObe14xrNP8xcltRrBZF5OE1rQSPkMNy+eWpk eCwA/1hxiS8ZxL5/elNjXiWuHXEvUGnRoVj745Vl48sZPVYMuDgEX+i03xIKKwYBBAGXVQEFAQEH QIGex1WZbH6xhUBve5mblScGYU+Y8QJOomXH+rr5tMsMAwEICYjJBBgWCgB7BYJf6LTfBYkFn6YA CRDgkus6XKENukcUAAAAAAAeACBzYWx0QG5vdGF0aW9ucy5zZXF1b2lhLXBncC5vcmcEAx9vTD3b J0SXkhvcRcCr6uIDJwic3KFKxkH1m4QW0QKbDAIeARYhBMKfigwB81402BaqXOCS6zpcoQ26AAAX mwD8CWmukxwskU82RZLMk5fm1wCgMB5z8dA50KLw3rgsCykBAKg1w/Y7XpBS3SlXEegIg1K1e6dR fRxL7Z37WZXoH8AH
Date: Fri, 19 Mar 2021 17:39:58 -0400
Message-ID: <875z1m6cwh.fsf@fifthhorseman.net>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/8bcDzBOAoJVMXH8Y1Yr3LgNX59M>
Subject: Re: [openpgp] The checksum may appear
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Mar 2021 22:34:32 -0000

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On Fri 2021-03-19 00:19:15 +0100, =C3=81ngel wrote:
> diff --git a/crypto-refresh.md b/crypto-refresh.md
> index 9fbb6eb..bb9635b 100644
> --- a/crypto-refresh.md
> +++ b/crypto-refresh.md
> @@ -2100,7 +2100,7 @@ As stated in the introduction, OpenPGP's underlying=
 native representation for ob
>  In principle, any printable encoding scheme that met the requirements of=
 the unsafe channel would suffice, since it would=20
> not change the underlying binary bit streams of the native OpenPGP data s=
tructures.
>  The OpenPGP standard specifies one such printable encoding scheme to ens=
ure interoperability.
>=20=20
> -OpenPGP's Radix-64 encoding is composed of two parts: a base64 encoding =
of the binary data and a checksum.
> +OpenPGP's Radix-64 encoding is composed of two parts: a base64 encoding =
of the binary data and an optional checksum.
>  The base64 encoding is identical to the MIME base64 content-transfer-enc=
oding {{RFC2045}}.
>=20=20
>  The checksum is a 24-bit Cyclic Redundancy Check (CRC) converted to four=
 characters of radix-64 encoding by the same MIME=20
> base64 transformation, preceded by an equal sign (=3D).
> @@ -2108,7 +2108,7 @@ The CRC is computed by using the generator 0x864CFB=
 and an initialization of 0xB
>  The accumulation is done on the data before it is converted to radix-64,=
 rather than on the converted data.
>  A sample implementation of this algorithm is in the next section.
>=20=20
> -The checksum with its leading equal sign MAY appear on the first line af=
ter the base64 encoded data.
> +If present, the checksum with its leading equal sign SHALL appear on the=
 next line after the base64 encoded data.
>=20=20
>  Rationale for CRC-24: The size of 24 bits fits evenly into printable bas=
e64.
>  The nonzero initialization can detect more errors than a zero initializa=
tion.

As an implementer and a maintainer, I am in favor of this change.  I
think it makes the draft more accurately represent the state of the
ecosystem, where i suspect implementations are willing to accomodate
an absent CRCs.

As a chair, I note that this does seem to subtly change the semantics of
the document, and therefore I think we need to hear from more people in
the WG about whether this seems correct.  Thanks to Werner for already
weighing in on this.

The other way is to have hard data about what implementations are
willing to accept.  I've opened
https://gitlab.com/sequoia-pgp/openpgp-interoperability-test-suite/-/issues=
/42
to suggest that the interoperability test suite should have a batch of
consumer tests that demonstrate which implementations can handle a
missing CRC.

If folks are interested in helping out with the test suite, this might
be a relatively easy way to make a contribution.

   --dkg

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQQttUkcnfDcj0MoY88+nXFzcd5WXAUCYFUaLgAKCRA+nXFzcd5W
XEvYAP9dTGVHM8jdxrRcJWrgEvQmyHLK8Ll3xcfn5YO6JbslrgD9G1ipyd/mAyi7
o33LmZAqMJnZnomtNpZAi9VJSMUZSAU=
=z7eR
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Fri Mar 19 19:03:36 2021
Return-Path: <angel@pgp.16bits.net>
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 9E5453A173B for <openpgp@ietfa.amsl.com>; Fri, 19 Mar 2021 19:01:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VEVia1Fwi63M for <openpgp@ietfa.amsl.com>; Fri, 19 Mar 2021 19:01:41 -0700 (PDT)
Received: from mail.direccionemail.com (mail.direccionemail.com [199.195.249.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 962BD3A173A for <openpgp@ietf.org>; Fri, 19 Mar 2021 19:01:41 -0700 (PDT)
Message-ID: <39e6b111f642a944214fd28d2fb53914b540c780.camel@16bits.net>
From: =?ISO-8859-1?Q?=C1ngel?= <angel@pgp.16bits.net>
To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>, openpgp@ietf.org
Date: Sat, 20 Mar 2021 03:01:37 +0100
In-Reply-To: <87blbf5a6c.fsf@fifthhorseman.net>
References: <20210317145508.136021-1-dkg@fifthhorseman.net> <871rcd7rdh.fsf@fifthhorseman.net> <25e8d5713bcccb7b86e0f9ce75dafba80fb41530.camel@16bits.net> <87sg4t5fz8.fsf@fifthhorseman.net> <87k0q4rgml.fsf@wheatstone.g10code.de> <60773433fb4dfae65a59c089c22e24c37e7913cf.camel@16bits.net> <87blbf5a6c.fsf@fifthhorseman.net>
Content-Type: text/plain; charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/8GZS_PRbDZ_zLOyeS_vkEf2b-10>
X-Mailman-Approved-At: Fri, 19 Mar 2021 19:03:35 -0700
Subject: Re: [openpgp] [RFC4880bis PATCH] Clarify CRC-24 C example implementation
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Mar 2021 02:01:44 -0000

On 2021-03-19 at 13:24 -0400, Daniel Kahn Gillmor wrote:
>=20
> fwiw, i'm fine with either of these.  I note that the change i'd
> originally proposed renamed the constant to CRC24_GENERATOR, to align
> it with the term in the text ("poly" doesn't appear anywhere in the
> text, but "generator" does).

Right. I began from Hal's mail [1] Particularly the second option is
his code just adding the comment. Thus I didn't want to add another
change with the constant rename (something I'm fine with).


Another potential point is if 0xffffff should have been changed to
0xffffffUL, as we are also changing the type to unsigned, but it looks
redundant.


> That said, we are pretty clearly in bike-shedding territory here.
>=20
> I have heard no one advocate for leaving the text unchanged, and i have
> heard no one advocate for just silently amending the code to drop bit 25
> from the constant.

Indeed. Even if discussing which wording might be (slightly) better,
let me explicitly state my support, in that I think all proposed
changes on this thread represent an improvement over the existing text.

Best regards


1-=20
https://mailarchive.ietf.org/arch/msg/openpgp/UMLreIiKtKzXEnPT5ZbcDDjRQX0/



From nobody Tue Mar 23 19:12:31 2021
Return-Path: <dkg@fifthhorseman.net>
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 519A23A1D62 for <openpgp@ietfa.amsl.com>; Tue, 23 Mar 2021 19:12:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=fifthhorseman.net header.b=nGue3kTJ; dkim=pass (2048-bit key) header.d=fifthhorseman.net header.b=VOil2J4e
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ImjrTIgOyCqy for <openpgp@ietfa.amsl.com>; Tue, 23 Mar 2021 19:12:24 -0700 (PDT)
Received: from che.mayfirst.org (che.mayfirst.org [IPv6:2001:470:1:116::7]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DB8DE3A1D61 for <openpgp@ietf.org>; Tue, 23 Mar 2021 19:12:23 -0700 (PDT)
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1616551941; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : from; bh=hP7PVeFH6G+iLjcd1ruTPs3zA6+QgCAqXrmzaDaLgo0=; b=nGue3kTJtJwD5bKJeG0l887lRKmVhgqTWKj52u1e4lsSNPOMsSx4UHKLu0dBGLg4lU0JD /kF+3ZlEmX9iDMoDQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1616551941; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : from; bh=hP7PVeFH6G+iLjcd1ruTPs3zA6+QgCAqXrmzaDaLgo0=; b=VOil2J4e0hl4lE4pzoIBFfht5Ra4BKJlj6qLCLKpnLRU7x4W/sgKmpPGy8Moyf8257UTO EOYPWZYqVkpjG9xcpNG0rmPeTTARJh6/KLAtQ7R5D4josVVfNXap2BUDnK+7SE34cn6ZG+V we2Q9FstjWlecotf43U62FBv8myM9Df9cHd/814PAem3/reukyv+HGUgqaq6HX/fn+nflZx gARxeuGNOVmv/P6KvmFyVjLm03xqMOKknU4D7MjZ49mwE9AfOgGSYPj/eKu2LGr+BCNPewr jNoyuUDIzp8kPsgB4bDjMLu/jTAQhI8UVeVVt8Z5S6t0HAmfO2afVYT78OPw==
Received: from fifthhorseman.net (lair.fifthhorseman.net [108.58.6.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id 40EA2F9A5 for <openpgp@ietf.org>; Tue, 23 Mar 2021 22:12:21 -0400 (EDT)
Received: by fifthhorseman.net (Postfix, from userid 1000) id D54DB203F0; Tue, 23 Mar 2021 22:12:13 -0400 (EDT)
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: IETF OpenPGP WG <openpgp@ietf.org>
Date: Tue, 23 Mar 2021 22:12:13 -0400
Message-Id: <20210324021213.333485-1-dkg@fifthhorseman.net>
X-Mailer: git-send-email 2.30.2
In-Reply-To: <87wnu86mep.fsf@fifthhorseman.net>
References: <87wnu86mep.fsf@fifthhorseman.net>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/8MAC07hO1OU9Of3-sPR5lvQY6Ns>
Subject: [openpgp] [RFC4880bis PATCH] Drop "Compatibility Profiles" section.
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Mar 2021 02:12:30 -0000

This section was imported from RFC 6637, but it is confusing,
incomplete, outdated, and duplicative.

It is confusing because it is called "Compatibility Profiles", a
general name, but it only references algorithms in combination with
various Elliptic Curve choices.  This made more sense when it was part
of RFC 6637, but doesn't make as much sense in a replacement for RFC
4880.

It is incomplete because it offers no attempt at "Compatibility
Profiles" that use non-ECC asymmetric crypto. We could rename it to
"Elliptic Curve Compatibility Profiles", but that would just leave the
document as a whole without additional guidance for non-ECC
algorithms.

It is outdated because it refers to Suite B, which has been deprecated
by its authors (see RFC 8423).

And it is duplicative, because it places additional constraints on MTI
requirements that we're working on actively as part of the
cryptographic refresh of RFC 4880.

The simplest thing seems to be to drop the section entirely.

Further work on algorithm implementation/deployment requirements might
suggest creation of new, up-to-date compatibility profiles that cover
the cryptographic suites likely to be used together, but if that work
happens, it should be done in consultation with the CFRG.  It should
be clearly documented, narrowly-targeted, up-to-date, and
non-conflicting with whatever MTI requirements we land on.
---
 crypto-refresh.md | 43 -------------------------------------------
 1 file changed, 43 deletions(-)

diff --git a/crypto-refresh.md b/crypto-refresh.md
index 9fbb6eb..eb8250c 100644
--- a/crypto-refresh.md
+++ b/crypto-refresh.md
@@ -212,12 +212,6 @@ normative:
     date: March 2007
     seriesinfo:
       NIST Special Publication: 800-56A Revision 1
-  SuiteB:
-    target: http://www.nsa.gov/ia/programs/suiteb_cryptography/
-    title: NSA Suite B Cryptography
-    author:
-      org: National Security Agency
-    date: 2010-03-11
   TWOFISH:
     title: The Twofish Encryption Algorithm
     author:
@@ -2904,7 +2898,6 @@ Consider, for example, that while both the public key and the per-recipient ECDH
 
 A key derivation function (KDF) is necessary to implement the EC encryption.
 The Concatenation Key Derivation Function (Approved Alternative 1) {{SP800-56A}} with the KDF hash function that is SHA2-256 {{FIPS180}} or stronger is REQUIRED.
-See {{compatibility-profiles}} for the details regarding the choice of the hash function.
 
 For convenience, the synopsis of the encoding method is given below with significant simplifications attributable to the restricted choice of hash functions in this document.
 However, {{SP800-56A}} is the normative source of the definition.
@@ -3471,42 +3464,6 @@ NIST P-521 | SHA2-512 | AES-256
   Countermeasures can often be taken at the higher protocol level, such as limiting the number of allowed failures or time-blinding of the operations associated with each network interface.
   Mitigations at the scalar multiplication level seek to eliminate any measurable distinction between the ECC point addition and doubling operations.
 
-# Compatibility Profiles
-
-## OpenPGP ECC Profile
-
-A compliant application MUST implement NIST curve P-256, SHOULD implement NIST curve P-521, and SHOULD implement Curve25519 as defined in {{ecc-curve-oid}}.
-A compliant application MUST implement SHA2-256 and SHOULD implement SHA2-384 and SHA2-512.
-A compliant application MUST implement AES-128 and SHOULD implement AES-256.
-
-A compliant application SHOULD follow {{security-considerations}} regarding the choice of the following algorithms for each curve:
-
-- the KDF hash algorithm,
-
-- the KEK algorithm,
-
-- the message digest algorithm and the hash algorithm used in the key certifications,
-
-- the symmetric algorithm used for message encryption.
-
-It is recommended that the chosen symmetric algorithm for message encryption be no less secure than the KEK algorithm.
-
-## Suite-B Profile
-
-A subset of algorithms allowed by this document can be used to achieve {{SuiteB}} compatibility.
-The references to {{SuiteB}} in this document are informative.
-This document is primarily concerned with format specification, leaving additional security restrictions unspecified, such as matching the assigned security level of information to authorized recipients or interoperability concerns arising from fewer allowed algorithms in {{SuiteB}} than allowed by this document.
-
-### Security Strength at 192 Bits
-
-To achieve the security strength of 192 bits, {{SuiteB}} requires NIST curve P-384, AES-256, and SHA2-384.
-The symmetric algorithm restriction means that the algorithm of KEK used for key wrapping in {{ec-dh-algorithm-ecdh}} and an OpenPGP session key used for message encryption must be AES-256.
-The hash algorithm restriction means that the hash algorithms of KDF and the OpenPGP message digest calculation must be SHA2-384.
-
-### Security Strength at 128 Bits
-
-The set of algorithms in {{security-strength-at-192-bits}} is extended to allow NIST curve P-256, AES-128, and SHA2-256.
-
 # Implementation Nits
 
 This section is a collection of comments to help an implementer, particularly with an eye to backward compatibility.
-- 
2.30.2


From nobody Wed Mar 24 06:07:42 2021
Return-Path: <dkg@fifthhorseman.net>
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 60CFF3A2C61 for <openpgp@ietfa.amsl.com>; Wed, 24 Mar 2021 06:07:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.306
X-Spam-Level: 
X-Spam-Status: No, score=-1.306 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, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=fifthhorseman.net header.b=QUyDzStH; dkim=pass (2048-bit key) header.d=fifthhorseman.net header.b=iEJxjyJJ
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7fRBoGBCoCs5 for <openpgp@ietfa.amsl.com>; Wed, 24 Mar 2021 06:07:35 -0700 (PDT)
Received: from che.mayfirst.org (unknown [162.247.75.117]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3762D3A2C5F for <openpgp@ietf.org>; Wed, 24 Mar 2021 06:07:35 -0700 (PDT)
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1616591252; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=YOVTRvxn8PfZxeS6jCOKvaV90spocEtsrEttLXHuB0U=; b=QUyDzStHF7w12tnX33cunhorQ+KsflVqr5OShsS/WMQvUvhR2xXQTc7j1dXfB+R1Lm8Zk uW6g9L/7wsL57fVCQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1616591252; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=YOVTRvxn8PfZxeS6jCOKvaV90spocEtsrEttLXHuB0U=; b=iEJxjyJJXppK05GtsTBf5Eq/XstViM0LjC6FLT8kCq2sACn5EnPbKsioJZjqaEQdheuXU b4f6mhSBqtEO2NWDLC33o/fKI2apgucU+cTAmv7RGuYZ5Poxdjdn16cNE6UQRcF1gJ4yGes qv+4Vba3o395EhLcWnfhIx7N1sdmUg0aAzd5IN3dyLZ5OanCYcnlgWb3xxs04GxAv8vJZUR 5a9N8yZUAscoF5cOOCN6MMpaY3TTQ0Kw2AvRRkzIJaZZwTMw0QjoJ+4/fqhODX0pKSueHZh UEU1EVIdmvR3+vwftONLLuxrJoh34420PaJuENItI/3OhdzKSng9ODBR1ZXA==
Received: from fifthhorseman.net (lair.fifthhorseman.net [108.58.6.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id 682A3F9A5 for <openpgp@ietf.org>; Wed, 24 Mar 2021 09:07:32 -0400 (EDT)
Received: by fifthhorseman.net (Postfix, from userid 1000) id 57AE1203F0; Tue, 23 Mar 2021 22:13:13 -0400 (EDT)
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: IETF OpenPGP WG <openpgp@ietf.org>
In-Reply-To: <20210324021213.333485-1-dkg@fifthhorseman.net>
References: <87wnu86mep.fsf@fifthhorseman.net> <20210324021213.333485-1-dkg@fifthhorseman.net>
Autocrypt: addr=dkg@fifthhorseman.net; prefer-encrypt=mutual; keydata= mDMEX+i03xYJKwYBBAHaRw8BAQdACA4xvL/xI5dHedcnkfViyq84doe8zFRid9jW7CC9XBiI0QQf FgoAgwWCX+i03wWJBZ+mAAMLCQcJEOCS6zpcoQ26RxQAAAAAAB4AIHNhbHRAbm90YXRpb25zLnNl cXVvaWEtcGdwLm9yZ/tr8E9NA10HvcAVlSxnox6z62KXCInWjZaiBIlgX6O5AxUKCAKbAQIeARYh BMKfigwB81402BaqXOCS6zpcoQ26AADZHQD/Zx9nc3N2kj13AUsKMr/7zekBtgfSIGB3hRCU74Su G44A/34Yp6IAkndewLxb1WdRSokycnaCVyrk0nb4imeAYyoPtBc8ZGtnQGZpZnRoaG9yc2VtYW4u bmV0PojRBBMWCgCDBYJf6LTfBYkFn6YAAwsJBwkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3Rh dGlvbnMuc2VxdW9pYS1wZ3Aub3JnL0Gwxvypz2tu1IPG+yu1zPjkiZwpscsitwrVvzN3bbADFQoI ApsBAh4BFiEEwp+KDAHzXjTYFqpc4JLrOlyhDboAAPkXAP0Z29z7jW+YzLzPTQML4EQLMbkHOfU4 +s+ki81Czt0WqgD/SJ8RyrqDCtEP8+E4ZSR01ysKqh+MUAsTaJlzZjehiQ24MwRf6LTfFgkrBgEE AdpHDwEBB0DkKHOW2kmqfAK461+acQ49gc2Z6VoXMChRqobGP0ubb4kBiAQYFgoBOgWCX+i03wWJ BZ+mAAkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3Jnfvo+ nHoxDwaLaJD8XZuXiaqBNZtIGXIypF1udBBRoc0CmwICHgG+oAQZFgoAbwWCX+i03wkQPp1xc3He VlxHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3JnaheiqE7Pfi3Atb3GGTw+ jFcBGOaobgzEJrhEuFpXREEWIQQttUkcnfDcj0MoY88+nXFzcd5WXAAAvrsBAIJ5sBg8Udocv25N stN/zWOiYpnjjvOjVMLH4fV3pWE1AP9T6hzHz7hRnAA8d01vqoxOlQ3O6cb/kFYAjqx3oMXSBhYh BMKfigwB81402BaqXOCS6zpcoQ26AADX7gD/b83VObe14xrNP8xcltRrBZF5OE1rQSPkMNy+eWpk eCwA/1hxiS8ZxL5/elNjXiWuHXEvUGnRoVj745Vl48sZPVYMuDgEX+i03xIKKwYBBAGXVQEFAQEH QIGex1WZbH6xhUBve5mblScGYU+Y8QJOomXH+rr5tMsMAwEICYjJBBgWCgB7BYJf6LTfBYkFn6YA CRDgkus6XKENukcUAAAAAAAeACBzYWx0QG5vdGF0aW9ucy5zZXF1b2lhLXBncC5vcmcEAx9vTD3b J0SXkhvcRcCr6uIDJwic3KFKxkH1m4QW0QKbDAIeARYhBMKfigwB81402BaqXOCS6zpcoQ26AAAX mwD8CWmukxwskU82RZLMk5fm1wCgMB5z8dA50KLw3rgsCykBAKg1w/Y7XpBS3SlXEegIg1K1e6dR fRxL7Z37WZXoH8AH
Date: Tue, 23 Mar 2021 22:13:12 -0400
Message-ID: <87pmzp2taf.fsf@fifthhorseman.net>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/GcrbiQSpD_oi1cncdb8lzlZglXc>
Subject: Re: [openpgp] [RFC4880bis PATCH] Drop "Compatibility Profiles" section.
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Mar 2021 13:07:40 -0000

--=-=-=
Content-Type: text/plain

On Tue 2021-03-23 22:12:13 -0400, Daniel Kahn Gillmor wrote:
> This section was imported from RFC 6637, but it is confusing,
> incomplete, outdated, and duplicative.

This suggestion is recorded in gitlab as
https://gitlab.com/openpgp-wg/rfc4880bis/-/merge_requests/41

        --dkg

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQQttUkcnfDcj0MoY88+nXFzcd5WXAUCYFqgOQAKCRA+nXFzcd5W
XJ20AP9vXkwVpDV8EuBeoGh5KZ5weCBGW+fVEWvfFChrJTTinwD9F/2qoy13qEJO
XbbivrpJwJe0VjedXTWF6iR5dhDnIww=
=BTka
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Wed Mar 24 17:07:37 2021
Return-Path: <angel@16bits.net>
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 CBA663A13AD for <openpgp@ietfa.amsl.com>; Wed, 24 Mar 2021 17:07:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IuSkKQHcNnTT for <openpgp@ietfa.amsl.com>; Wed, 24 Mar 2021 17:07:25 -0700 (PDT)
Received: from mail.direccionemail.com (mail.direccionemail.com [199.195.249.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 774BD3A1411 for <openpgp@ietf.org>; Wed, 24 Mar 2021 17:07:06 -0700 (PDT)
Message-ID: <9cf9ae77e21fa330918df0754707e9304a41fd36.camel@16bits.net>
From: =?ISO-8859-1?Q?=C1ngel?= <angel@16bits.net>
To: openpgp@ietf.org
Date: Thu, 25 Mar 2021 01:07:06 +0100
In-Reply-To: <87blbfpr9b.fsf@wheatstone.g10code.de>
References: <20210317145508.136021-1-dkg@fifthhorseman.net> <5a927ffed96b38efa08c58b6a29e565dff87a535.camel@16bits.net> <87blbfpr9b.fsf@wheatstone.g10code.de>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/PqVu8m9KWCHeLXrD-axy7lA16r4>
Subject: Re: [openpgp] The checksum may appear
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Mar 2021 00:07:35 -0000

On 2021-03-19 at 07:54 +0100, Werner Koch wrote:
> > -The checksum with its leading equal sign MAY appear on the first line
> > after the base64 encoded data.
> > +If present, the checksum with its leading equal sign SHALL appear on
> > the next line after the base64 encoded data.
>=20
> Adding "optional" and making the CRC a SHOULD create indeed clarifies
> the intention of the RFC.  Thus I am in favor of this change.

Note I wasn't placing the later. I only stated that you can only place
the checksum at the end.
I was planning to treat this as a feature request and add a phrase with
such SHOULD, since I agree it's a good idea, but turns out I can't come
out with a better rationale than =E2=80=9Cit's cheap enough it makes sense =
to
do it even if not giving much value=E2=80=9D.

What is the goal of the armor CRC?
The only good use case I can think of is when a human has been
involved, such as when restoring a key from paper.

On other scenarios, the CRC would either be too weak (e.g. in presence
of an active attacker) or protecting from an error that would already
have been handled at lower layers.
[1] and [2] suggest it was added to avoid modem line noise altering the
messages (which nowadays should be discarded at e.g. TCP).

Without a compelling use case, I don't think it should be a SHOULD.
And finally, we should at least mention why it was once considered
useful.


The original change is available in git mode at
https://gitlab.com/Angel-Gonzalez/rfc4880bis/-/tree/checksum-may-appear


Best regards

1- https://mailarchive.ietf.org/arch/msg/openpgp/3K6tSdebEjQw8K1z1pZkXxyvu-=
k/
2- https://mailarchive.ietf.org/arch/msg/openpgp/2FmAqP-nJkV08E1qQ4YNO2xR2P=
c/



From nobody Wed Mar 24 17:31:07 2021
Return-Path: <angel@16bits.net>
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 49C7C3A13B0 for <openpgp@ietfa.amsl.com>; Wed, 24 Mar 2021 17:31:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ld6N1XB7AAHg for <openpgp@ietfa.amsl.com>; Wed, 24 Mar 2021 17:31:01 -0700 (PDT)
Received: from mail.direccionemail.com (mail.direccionemail.com [199.195.249.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D63973A13AE for <openpgp@ietf.org>; Wed, 24 Mar 2021 17:31:00 -0700 (PDT)
Message-ID: <fe514371632287e762d6f320edaf106a93dca047.camel@16bits.net>
From: =?ISO-8859-1?Q?=C1ngel?= <angel@16bits.net>
To: openpgp@ietf.org
Date: Thu, 25 Mar 2021 01:31:00 +0100
In-Reply-To: <4a4f4ca9aa11c850bfcd5ebde7e3d57f51fdf38a.camel@16bits.net>
References: <7d8bdda1-4e5c-6c10-f3cd-1d191fad595c@nohats.ca> <87h7lzavvc.wl-neal@walfield.org>,<87mtvqcdtk.fsf@fifthhorseman.net> <1614483966879.85613@cs.auckland.ac.nz> <4a4f4ca9aa11c850bfcd5ebde7e3d57f51fdf38a.camel@16bits.net>
Content-Type: text/plain; charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/3n9FbH67uhP0aOBL3HX_bnJw8Ow>
Subject: Re: [openpgp] Sec. Considerations MUST about S2K [was: Re: I-D Action: draft-ietf-openpgp-crypto-refresh-02.txt]
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Mar 2021 00:31:05 -0000

On 2021-02-28 at 23:09 +0100, =C1ngel wrote:
> I would suggest a didactic approach, something like
> > Simple S2K and Salted S2K specifiers are not particularly secure=20
> > when used with a low-entropy secret, such as those typically
> > provided
> > by users, and implementations SHOULD avoid using these methods on
> > encryption of both keys and messages.
>=20
> Best regards

As there were no further opinions, I have proposed this on

https://gitlab.com/openpgp-wg/rfc4880bis/-/merge_requests/42


Note: I'm purposefully not adding anything at the Security section.
That section is currently a chaotic mixture. I think it would be best
to keep local issues at their corresponding section (maybe even
creating security subsections) and leave =A715 for general one. By its
own nature, this spec will have many security-related points, and we
can't expect to repeat everything there.
In any case, imho we should organize it first, stripping it as much as
possible. It can be discussed later if some points really need to come
back.

Best regards




From nobody Wed Mar 24 17:55:00 2021
Return-Path: <dkg@fifthhorseman.net>
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 D488D3A1482 for <openpgp@ietfa.amsl.com>; Wed, 24 Mar 2021 17:54:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.306
X-Spam-Level: 
X-Spam-Status: No, score=-1.306 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, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=fifthhorseman.net header.b=3z06e+C9; dkim=pass (2048-bit key) header.d=fifthhorseman.net header.b=koRD5xzl
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AnnAp-Rf5TPy for <openpgp@ietfa.amsl.com>; Wed, 24 Mar 2021 17:54:55 -0700 (PDT)
Received: from che.mayfirst.org (unknown [162.247.75.117]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 066B03A1481 for <openpgp@ietf.org>; Wed, 24 Mar 2021 17:54:55 -0700 (PDT)
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1616633692; h=from : to : cc : subject : date : message-id : mime-version : content-type : from; bh=z/rESuw6V35xnPNGuY0lsGGPcrm8Bn8CpYr4E/fLmz8=; b=3z06e+C9smanAhlZIIWhDk0E8VBSuWVkd/k0ejrbaA7xrilHoa9neQxtAtlYcXF7/gJ2H DYBI7OsQ3SIwTijCQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1616633692; h=from : to : cc : subject : date : message-id : mime-version : content-type : from; bh=z/rESuw6V35xnPNGuY0lsGGPcrm8Bn8CpYr4E/fLmz8=; b=koRD5xzlAwq74ce5md01myxjDmzkhQyW2t50DE1lSUlb1Uo+AWfP3mJ8KhzXCKzG4f7ZQ eQFUwXjf1LMEjRgn8zD0TdGjoh59C4tRw/ijXLoqAGdBxZwZyFDp0xOB2DAkvFNNcvNmnZo ctDWWAwOi4OwWBGFmkQghlmbgmvsB/ta+qlaZ4G8I7fbJzSfldMVLGWiLyZmf2frjPtGH/n UmeBv2KzGjyPSiPspWGdIo6f6hyVD0JI2V+c58UDcmtFqBl5ux+Vu2lpBQXO53OumaGEYqf DlrVCY7zUPWVzfUCitrNXVPZYSdoXe+fMGhjxA6OIjS0XnKBjjRHRSBwBOAw==
Received: from fifthhorseman.net (unknown [IPv6:2001:470:1f07:60d:841d:2bce:26c3:59c6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id DE018F9A7; Wed, 24 Mar 2021 20:54:52 -0400 (EDT)
Received: by fifthhorseman.net (Postfix, from userid 1000) id 084BF2054D; Wed, 24 Mar 2021 20:54:50 -0400 (EDT)
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: openpgp@ietf.org
Cc: NIIBE Yutaka <gniibe@fsij.org>
Autocrypt: addr=dkg@fifthhorseman.net; prefer-encrypt=mutual; keydata= mDMEX+i03xYJKwYBBAHaRw8BAQdACA4xvL/xI5dHedcnkfViyq84doe8zFRid9jW7CC9XBiI0QQf FgoAgwWCX+i03wWJBZ+mAAMLCQcJEOCS6zpcoQ26RxQAAAAAAB4AIHNhbHRAbm90YXRpb25zLnNl cXVvaWEtcGdwLm9yZ/tr8E9NA10HvcAVlSxnox6z62KXCInWjZaiBIlgX6O5AxUKCAKbAQIeARYh BMKfigwB81402BaqXOCS6zpcoQ26AADZHQD/Zx9nc3N2kj13AUsKMr/7zekBtgfSIGB3hRCU74Su G44A/34Yp6IAkndewLxb1WdRSokycnaCVyrk0nb4imeAYyoPtBc8ZGtnQGZpZnRoaG9yc2VtYW4u bmV0PojRBBMWCgCDBYJf6LTfBYkFn6YAAwsJBwkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3Rh dGlvbnMuc2VxdW9pYS1wZ3Aub3JnL0Gwxvypz2tu1IPG+yu1zPjkiZwpscsitwrVvzN3bbADFQoI ApsBAh4BFiEEwp+KDAHzXjTYFqpc4JLrOlyhDboAAPkXAP0Z29z7jW+YzLzPTQML4EQLMbkHOfU4 +s+ki81Czt0WqgD/SJ8RyrqDCtEP8+E4ZSR01ysKqh+MUAsTaJlzZjehiQ24MwRf6LTfFgkrBgEE AdpHDwEBB0DkKHOW2kmqfAK461+acQ49gc2Z6VoXMChRqobGP0ubb4kBiAQYFgoBOgWCX+i03wWJ BZ+mAAkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3Jnfvo+ nHoxDwaLaJD8XZuXiaqBNZtIGXIypF1udBBRoc0CmwICHgG+oAQZFgoAbwWCX+i03wkQPp1xc3He VlxHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3JnaheiqE7Pfi3Atb3GGTw+ jFcBGOaobgzEJrhEuFpXREEWIQQttUkcnfDcj0MoY88+nXFzcd5WXAAAvrsBAIJ5sBg8Udocv25N stN/zWOiYpnjjvOjVMLH4fV3pWE1AP9T6hzHz7hRnAA8d01vqoxOlQ3O6cb/kFYAjqx3oMXSBhYh BMKfigwB81402BaqXOCS6zpcoQ26AADX7gD/b83VObe14xrNP8xcltRrBZF5OE1rQSPkMNy+eWpk eCwA/1hxiS8ZxL5/elNjXiWuHXEvUGnRoVj745Vl48sZPVYMuDgEX+i03xIKKwYBBAGXVQEFAQEH QIGex1WZbH6xhUBve5mblScGYU+Y8QJOomXH+rr5tMsMAwEICYjJBBgWCgB7BYJf6LTfBYkFn6YA CRDgkus6XKENukcUAAAAAAAeACBzYWx0QG5vdGF0aW9ucy5zZXF1b2lhLXBncC5vcmcEAx9vTD3b J0SXkhvcRcCr6uIDJwic3KFKxkH1m4QW0QKbDAIeARYhBMKfigwB81402BaqXOCS6zpcoQ26AAAX mwD8CWmukxwskU82RZLMk5fm1wCgMB5z8dA50KLw3rgsCykBAKg1w/Y7XpBS3SlXEegIg1K1e6dR fRxL7Z37WZXoH8AH
Date: Wed, 24 Mar 2021 20:54:49 -0400
Message-ID: <87eeg42gti.fsf@fifthhorseman.net>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/t5qhbQCnlDaUc6Zbze7r8tTDd0Q>
Subject: [openpgp] Algorithm-specific data: problems with Simple Octet Strings, and possible alternatives
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Mar 2021 00:55:00 -0000

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi OpenPGP folks--

I spent a good part of today trying to write a patch for including
Simple Octet Strings in the crypto-refresh draft, pursuant to gniibe's
presentation at IETF 110 and his public memo at:

   https://www.gniibe.org/memo/standard/openpgp/ecc-in-openpgp-sos.html

This message doesn't include the patch i wanted to make because I think
i ran into a problem with it.  I'm trying to explain the problem here,
and how my thinking has shifted in the course of trying to write the
thing down.  Please correct me where I've erred.

IIUC, SOS is basically intended as a genericization of MPI; it
represents its length in a two-vector scalar as (8*octet-count) instead
of as (bit-count).  It "fits" where MPI fits, but doesn't require
leading-zero removal, or require interpretation as an integer at all.

The problem comes with the different length representations, in
particular for existing ECC mechanisms.

Because existing ECC points are currently represented with a leading
prefix byte (0x04 for NIST curves, 0x40 for 25519), and that byte has
the leading bit cleared, the MPI version of the length scalar is
*different* on the wire from the SOS version of the length scalar.

As a concrete example, a NIST p256 pubkey looks today like this (using
visualization from "sq packet dump --hex"):

```
Public-Key Packet, old CTB, 2 header bytes + 82 bytes
    Version: 4
    Creation time: 2021-03-24 22:06:14 UTC
    Pk algo: ECDSA public key algorithm
    Pk size: 256 bits
    Fingerprint: D4732B93D4E82D068EE197A63A73ED20925926A6
    KeyID: 3A73ED20925926A6
=20=20
   00000000  98                                                 CTB
   00000001     52                                              length
   00000002        04                                           version
   00000003           60 5b b7 d6                               creation_ti=
me
   00000007                       13                            pk_algo
   00000008                           08                        curve_len
   00000009                              2a 86 48 ce 3d 03 01   curve
   00000010  07
   00000011     02 03                                           ecdsa_publi=
c_len
   00000013           04 29 75 bb 53  55 49 31 80 ab 03 54 15   ecdsa_public
   00000020  a0 6c 29 10 a8 85 b7 2f  e5 93 81 90 48 08 b8 0e
   00000030  c7 02 55 aa 51 b2 b7 6a  00 7a a1 2b cf 25 a7 e7
   00000040  9c 95 b1 fa 79 87 c2 cb  94 53 a8 da c2 00 58 45
   00000050  79 a0 96 8e
```

but if it was represented in SOS form, we'd see this change:

```text/x-diff
    00000010  07
=2D   00000011     02 03                                           ecdsa_pu=
blic_len
+   00000011     02 08                                           ecdsa_publ=
ic_len
    00000013           04 29 75 bb 53  55 49 31 80 ab 03 54 15   ecdsa_publ=
ic
```

The result is that the fingerprint would also change (to
C9EAB3BE6B20CAEA568BE93F9BA3D29CBB873842), since the bytestream that
feeds into the fingerprint calculation changes.  This means that we can
represent a single EC public key (with the exact same creation date) in
at least two different ways just by varying whether the public point is
seen as an SOS or an MPI.

(note: this concern is not necessarily just for ECC; it's also relevant
for traditional RSA, DSA, and ElGamal key MPI components that might have
the highest set bit somewhere other than just below an octet boundary.
For example, if we were to "retcon" RSA's e component as an SOS instead
of an MPI, the most common value for e (65537) could change on the wire
from [00 11 01 00 01] to [00 18 11 00 01], resulting in a similar change
to the fingerprint)

This leaves me wondering about the utility of the SOS abstraction.  I
can imagine a few distinct options:

 a) Introduce SOS and apply it to existing ECC pubkeys.  This is what I
    understand to be gniibe's proposal.  It looks like this means an
    implementation will have to cope with multiple distinct wire
    representations and fingerprints of the exact same public key.

 b) Introduce the SOS abstraction, but only use it for *new* pubkey
    algorithms.  All existing ECC (including NIST and 25519) would still
    be this weird pseudo-MPI, representing the count based on the
    highest set bit, not 8*octet-count, and requiring clearing of
    leading zeros.

 c) Introduce a variant of SOS that indicates count based on highest set
    bit (not 8*octet-count) and use that for everything, but without
    requiring removal of leading all-zero octets.

 d) Not introduce the SOS abstraction at all, but instead explicitly say
    that new algorithms can define their own fixed algorithm-specific
    bytestream for public key material, secret key material, and
    signatures -- it does not need to be MPIs (gniibe's memo calls this
    approach "Each data format definition by each curve").

 e) No SOS abstraction, and just keep on doing the kind of pseudo-MPI
    we've been doing for any new curves (gniibe's memo calls this
    "Practically easiest").

 f) Introduce a new distinct data type that uses an actual octet count
    for each bytestring (gniibe's memo calls this "Non-strange but Just
    an Octet String")

Of these choices, I'm leaning toward (d) but i'd love to hear what other
people think.

(a) Seems problematic because of the multiple acceptable representations
    outlined above.  It's already pretty tricky that the fingerprint of
    a piece of given public key material can vary depending on the
    creation timestamp.  Some implementations might try to normalize an
    SOS into a "compliant" MPI, thereby affecting their ability to
    calculate the correct fingerprint.  I don't think we currently have
    any tests that demonstrate interoperability in the face of this kind
    of confusion.

(b) Seems sort of pointless because it doesn't let us clean up any of
    the existing mess.  If we're going to keep all the existing mess, we
    might as well go with (d).

(c) Introduces a new problem: When encoding an SOS string, how many
    leading zero-octets should be used?  If the answer is
    "implementation gets to decide" then we share the
    multiple-representations problem with (a); And if the answer is
    "each algorithm has a mandated size" then we might as well go with
    (d).  Also, when consuming such a string, an implementation would
    need to first scan through all the leading zero-octets before it
    could use the length count to jump to the next field.  That's a new
    piece of ugliness for OpenPGP parsing.

(e) Bothers me because it means that each new algorithm introduced has
    to declare not only its data formats, but how to transform those
    data formats into the semblance of an OpenPGP "MPI".  This just
    seems like extra work and new ways for both implementers and
    specifiers to get things wrong.

(f) Seems excessive: why declare a standard for encoding lengths of
    fields in those cases where the lengths are pre-determined by the
    algorithm in question (i expect that to be most cases for new
    algorithms).  For specific algorithms which have variable length
    parameters, *those algorithms* can declare how they want to delimit
    the fields.  If the goal is to be able to skip over
    algorithm-specific details of an algorithm that we don't know, what
    are we skipping *to*?  For public key packets and signature packets,
    the only thing that comes next is the end of the packet, whose size
    we already know.  For secret key packets, we *might* try to skip
    from the public key material to the secret key material, but again,
    if we don't know how many MPIs (or SOSes or JOSes) to skip for
    public keys we might not even be able to tell when the s2k usage
    octet starts, so we can't do that today anyway.

I will probably try to draw up a concrete patch for (d) unless other
folks in the WG think it would be useful for consideration.  The patch
will likely ask IANA to add new columns to the "public key algorithm"
registry (e.g. "public key representation", "secret key representation"
and "signature representation") and to formally include an Elliptic
Curves registry with similar columns, so that we have a compact way to
view these distinctions, and a place for new proposals to include
updates.

If any of my analysis above is wrong, please help me understand it
better!

      --dkg

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQQttUkcnfDcj0MoY88+nXFzcd5WXAUCYFvfWQAKCRA+nXFzcd5W
XCOyAQC+RUICLtFvUj4BLwyvH9yatyVmm4vyM/meqVXOb2OmHQD/fuhWx+zwvrQf
YX114vKear+pnuVk1cZ7StPQwjNq7wg=
=X8hI
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Wed Mar 24 18:20:24 2021
Return-Path: <angel@16bits.net>
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 0DA4D3A1553 for <openpgp@ietfa.amsl.com>; Wed, 24 Mar 2021 18:20:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h5jorLyMxOcr for <openpgp@ietfa.amsl.com>; Wed, 24 Mar 2021 18:20:17 -0700 (PDT)
Received: from mail.direccionemail.com (mail.direccionemail.com [199.195.249.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 936623A1558 for <openpgp@ietf.org>; Wed, 24 Mar 2021 18:20:17 -0700 (PDT)
Message-ID: <26945b02701cdbcf7af0ebd3adaa325b91021be7.camel@16bits.net>
From: =?ISO-8859-1?Q?=C1ngel?= <angel@16bits.net>
To: openpgp@ietf.org
Date: Thu, 25 Mar 2021 02:20:16 +0100
In-Reply-To: <87pmzp2taf.fsf@fifthhorseman.net>
References: <87wnu86mep.fsf@fifthhorseman.net> <20210324021213.333485-1-dkg@fifthhorseman.net> <87pmzp2taf.fsf@fifthhorseman.net>
Content-Type: text/plain; charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/QAaOPDAau-OVcmVZNHjo7QUUb8U>
Subject: Re: [openpgp] [RFC4880bis PATCH] Drop "Compatibility Profiles" section.
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Mar 2021 01:20:22 -0000

On 2021-03-23 at 22:13 -0400, Daniel Kahn Gillmor wrote:
> On Tue 2021-03-23 22:12:13 -0400, Daniel Kahn Gillmor wrote:
> > This section was imported from RFC 6637, but it is confusing,
> > incomplete, outdated, and duplicative.
>=20
> This suggestion is recorded in gitlab as
> https://gitlab.com/openpgp-wg/rfc4880bis/-/merge_requests/41
>=20
>         --dkg

+1

This issue also affected the security considerations section. I made a
follow-up at https://gitlab.com/dkg/rfc4880bis/-/merge_requests/1

I tried to keep what was salvable but ended up leaving just three lines
from rfc6637.

Best regards



From nobody Wed Mar 24 18:30:46 2021
Return-Path: <paul@nohats.ca>
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 BEEAD3A15A7 for <openpgp@ietfa.amsl.com>; Wed, 24 Mar 2021 18:30:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
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, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nohats.ca
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Tk6-Hq-CcjyB for <openpgp@ietfa.amsl.com>; Wed, 24 Mar 2021 18:30:40 -0700 (PDT)
Received: from mx.nohats.ca (mx.nohats.ca [IPv6:2a03:6000:1004:1::68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 01E323A15A9 for <openpgp@ietf.org>; Wed, 24 Mar 2021 18:30:39 -0700 (PDT)
Received: from localhost (localhost [IPv6:::1]) by mx.nohats.ca (Postfix) with ESMTP id 4F5SGg70JyzFKs; Thu, 25 Mar 2021 02:30:35 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nohats.ca; s=default; t=1616635835; bh=zG+aWoT9N4f2ZKv9HTM7v24HghRy4oYccGm0hJp1E8s=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=HuxdUDcgW+R4FzpXConik7BKWsOj0PLEw2cjkDLMXSPn88tld/dKO1YiS6t9ghGcu hbprWDRkvr9XWowe1n4RH29x09nWSDTqrdoVMQub+d+DbF+PcpWN+CTv8TVk4K3FnH n1SpjHgQn9yLvq07fh4yaaghZgsyVkcMcVjksOsA=
X-Virus-Scanned: amavisd-new at mx.nohats.ca
Received: from mx.nohats.ca ([IPv6:::1]) by localhost (mx.nohats.ca [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id Vgty__fleEuC; Thu, 25 Mar 2021 02:30:34 +0100 (CET)
Received: from bofh.nohats.ca (bofh.nohats.ca [193.110.157.194]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.nohats.ca (Postfix) with ESMTPS; Thu, 25 Mar 2021 02:30:33 +0100 (CET)
Received: by bofh.nohats.ca (Postfix, from userid 1000) id 8B6AC6029A46; Wed, 24 Mar 2021 21:30:32 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1]) by bofh.nohats.ca (Postfix) with ESMTP id 82AC86FD7F; Wed, 24 Mar 2021 21:30:32 -0400 (EDT)
Date: Wed, 24 Mar 2021 21:30:32 -0400 (EDT)
From: Paul Wouters <paul@nohats.ca>
To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
cc: IETF OpenPGP WG <openpgp@ietf.org>
In-Reply-To: <87pmzp2taf.fsf@fifthhorseman.net>
Message-ID: <5e22a94f-887d-3ecb-5e4e-13d4e7fa5dbc@nohats.ca>
References: <87wnu86mep.fsf@fifthhorseman.net> <20210324021213.333485-1-dkg@fifthhorseman.net> <87pmzp2taf.fsf@fifthhorseman.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; format=flowed
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/L9ClFpD4MoFnUcnpL7cImXNcWus>
Subject: Re: [openpgp] [RFC4880bis PATCH] Drop "Compatibility Profiles" section.
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Mar 2021 01:30:45 -0000

On Tue, 23 Mar 2021, Daniel Kahn Gillmor wrote:

> On Tue 2021-03-23 22:12:13 -0400, Daniel Kahn Gillmor wrote:
>> This section was imported from RFC 6637, but it is confusing,
>> incomplete, outdated, and duplicative.
>
> This suggestion is recorded in gitlab as
> https://gitlab.com/openpgp-wg/rfc4880bis/-/merge_requests/41

I have merged it.

Paul


From nobody Thu Mar 25 12:27:29 2021
Return-Path: <dkg@fifthhorseman.net>
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 CF4F73A2ABC for <openpgp@ietfa.amsl.com>; Thu, 25 Mar 2021 12:27:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=fifthhorseman.net header.b=+CDPlywl; dkim=pass (2048-bit key) header.d=fifthhorseman.net header.b=A3RRlUFA
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qoO-zTFb8wZ0 for <openpgp@ietfa.amsl.com>; Thu, 25 Mar 2021 12:27:22 -0700 (PDT)
Received: from che.mayfirst.org (che.mayfirst.org [IPv6:2001:470:1:116::7]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4D4BC3A2ABA for <openpgp@ietf.org>; Thu, 25 Mar 2021 12:27:22 -0700 (PDT)
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1616700438; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=yftadXO+5kDKBppsTY56lzFd+MMds4XNkedSVmsfXOw=; b=+CDPlywlTHIfbzZypTCNbIObtFntMU2/2DXGoEKN5CYuyzjpRG88MwyG4/WvJVMooPX1Q M84qHo3SVjeCua4Bg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1616700438; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=yftadXO+5kDKBppsTY56lzFd+MMds4XNkedSVmsfXOw=; b=A3RRlUFAqTQt7MXPOSAluEB6FmbOO6lPIaK1Xlo28CzxNrmAJBAA5IggwDZhmocLpD5H9 iiZeAtXUNyDY2HyMrqZZVSO0RnDFepkcTgPH7OXdCRCe1vgJMo9ApflQ+c2grO70bl/t2nF nZDlpeajsfm5e0fwmkpHw/8bDKwVD36AO/A4jznkLuStYTzDnbL54s2sZ3/ClMvzr3qgSVG aA9kiBNjoZbjaZKyQ1vxYaZB4XHou+afLz7imgQqjnr1+I3FSoZzbyUg4rd2aEBmSLsNKz5 nEdzJNMC1vsR1VuBK0LOp3MRvPGVtTE+4FGrmFkFskrv/siO5LJeQaFPatqA==
Received: from fifthhorseman.net (unknown [IPv6:2001:470:1f07:60d:841d:2bce:26c3:59c6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id 27083F9A6; Thu, 25 Mar 2021 15:27:17 -0400 (EDT)
Received: by fifthhorseman.net (Postfix, from userid 1000) id 826BB20387; Thu, 25 Mar 2021 08:38:12 -0400 (EDT)
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: =?utf-8?Q?=C3=81ngel?= <angel@16bits.net>, openpgp@ietf.org
In-Reply-To: <26945b02701cdbcf7af0ebd3adaa325b91021be7.camel@16bits.net>
References: <87wnu86mep.fsf@fifthhorseman.net> <20210324021213.333485-1-dkg@fifthhorseman.net> <87pmzp2taf.fsf@fifthhorseman.net> <26945b02701cdbcf7af0ebd3adaa325b91021be7.camel@16bits.net>
Autocrypt: addr=dkg@fifthhorseman.net; prefer-encrypt=mutual; keydata= mDMEX+i03xYJKwYBBAHaRw8BAQdACA4xvL/xI5dHedcnkfViyq84doe8zFRid9jW7CC9XBiI0QQf FgoAgwWCX+i03wWJBZ+mAAMLCQcJEOCS6zpcoQ26RxQAAAAAAB4AIHNhbHRAbm90YXRpb25zLnNl cXVvaWEtcGdwLm9yZ/tr8E9NA10HvcAVlSxnox6z62KXCInWjZaiBIlgX6O5AxUKCAKbAQIeARYh BMKfigwB81402BaqXOCS6zpcoQ26AADZHQD/Zx9nc3N2kj13AUsKMr/7zekBtgfSIGB3hRCU74Su G44A/34Yp6IAkndewLxb1WdRSokycnaCVyrk0nb4imeAYyoPtBc8ZGtnQGZpZnRoaG9yc2VtYW4u bmV0PojRBBMWCgCDBYJf6LTfBYkFn6YAAwsJBwkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3Rh dGlvbnMuc2VxdW9pYS1wZ3Aub3JnL0Gwxvypz2tu1IPG+yu1zPjkiZwpscsitwrVvzN3bbADFQoI ApsBAh4BFiEEwp+KDAHzXjTYFqpc4JLrOlyhDboAAPkXAP0Z29z7jW+YzLzPTQML4EQLMbkHOfU4 +s+ki81Czt0WqgD/SJ8RyrqDCtEP8+E4ZSR01ysKqh+MUAsTaJlzZjehiQ24MwRf6LTfFgkrBgEE AdpHDwEBB0DkKHOW2kmqfAK461+acQ49gc2Z6VoXMChRqobGP0ubb4kBiAQYFgoBOgWCX+i03wWJ BZ+mAAkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3Jnfvo+ nHoxDwaLaJD8XZuXiaqBNZtIGXIypF1udBBRoc0CmwICHgG+oAQZFgoAbwWCX+i03wkQPp1xc3He VlxHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3JnaheiqE7Pfi3Atb3GGTw+ jFcBGOaobgzEJrhEuFpXREEWIQQttUkcnfDcj0MoY88+nXFzcd5WXAAAvrsBAIJ5sBg8Udocv25N stN/zWOiYpnjjvOjVMLH4fV3pWE1AP9T6hzHz7hRnAA8d01vqoxOlQ3O6cb/kFYAjqx3oMXSBhYh BMKfigwB81402BaqXOCS6zpcoQ26AADX7gD/b83VObe14xrNP8xcltRrBZF5OE1rQSPkMNy+eWpk eCwA/1hxiS8ZxL5/elNjXiWuHXEvUGnRoVj745Vl48sZPVYMuDgEX+i03xIKKwYBBAGXVQEFAQEH QIGex1WZbH6xhUBve5mblScGYU+Y8QJOomXH+rr5tMsMAwEICYjJBBgWCgB7BYJf6LTfBYkFn6YA CRDgkus6XKENukcUAAAAAAAeACBzYWx0QG5vdGF0aW9ucy5zZXF1b2lhLXBncC5vcmcEAx9vTD3b J0SXkhvcRcCr6uIDJwic3KFKxkH1m4QW0QKbDAIeARYhBMKfigwB81402BaqXOCS6zpcoQ26AAAX mwD8CWmukxwskU82RZLMk5fm1wCgMB5z8dA50KLw3rgsCykBAKg1w/Y7XpBS3SlXEegIg1K1e6dR fRxL7Z37WZXoH8AH
Date: Thu, 25 Mar 2021 08:38:11 -0400
Message-ID: <87blb72yto.fsf@fifthhorseman.net>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/8C8nIeBYtbQsPAVjo9F5wulx2Eo>
Subject: Re: [openpgp] [RFC4880bis PATCH] Drop "Compatibility Profiles" section.
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Mar 2021 19:27:28 -0000

--==-=-=
Content-Type: multipart/mixed; boundary="=-=-="

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On Thu 2021-03-25 02:20:16 +0100, =C3=81ngel wrote:
> This issue also affected the security considerations section. I made a
> follow-up at https://gitlab.com/dkg/rfc4880bis/-/merge_requests/1

Looks like you've done a merge request against my personal repo, rather
than putting it in the openpgp-wg repo where everyone else will be able
to see it -- i recommend making this MR against
https://gitlab.com/openpgp-wg/rfc4880bis instead so that it gets public
visibility, and the merge requests aren't scattered.  I'm attaching the
proposed patch below so that people following the list can see it.

> I tried to keep what was salvable but ended up leaving just three lines
> from rfc6637.

I'm not convinced that these specific security considerations are
invalid given that the compatibility profiles section is gone.  For
example, do we believe it to be untrue that:

    Compliant applications SHOULD implement, advertise through key
    preferences, and use the strongest algorithms specified in this
    document.

I think that looks correct, and I see no reason to cut it just because
we've dropped the Compatibility Profiles section.

So, (with no hats on) i'm not personally convinced of this change.  What
do other folks in the WG think?

If there are specific points in the Security Considerations section that
you (or anyone else) think should be dropped, or if anyone wants to
propose clarifications or improvements to these sections, I'd be happy
to reconsider a narrower edit too.

              --dkg


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
 filename=0001-Additionally-remove-text-from-rfc6637-security-secti.patch
Content-Transfer-Encoding: quoted-printable

From=207093221bf096836f1ffe389d0202f486f4982186 Mon Sep 17 00:00:00 2001
From: =3D?UTF-8?q?=3DC3=3D81ngel?=3D <angel@16bits.net>
Date: Thu, 25 Mar 2021 02:00:33 +0100
Subject: [RFC4880bis PATCH] Additionally remove text from rfc6637 security
 section.

It relies and complemented the removed "Compatibility Profiles" section
and shares a number of its issues.

Some parts may be readded later, but currently it's not ready as-is.
=2D--
 crypto-refresh.md | 57 ++++-------------------------------------------
 1 file changed, 4 insertions(+), 53 deletions(-)

diff --git a/crypto-refresh.md b/crypto-refresh.md
index eb8250c..493a51b 100644
=2D-- a/crypto-refresh.md
+++ b/crypto-refresh.md
@@ -2859,6 +2859,9 @@ Finally, the Key ID and fingerprint of a subkey are c=
alculated in the same way a
 This section descripes algorithms and parameters used with Elliptic Curve =
Cryptography (ECC) keys.
 A thorough introduction to ECC can be found in {{KOBLITZ}}.
=20
+None of the ECC methods described in this document are allowed with deprec=
ated V3 keys.
+Refer to {{FIPS186}}, B.4.1, for the method to generate a uniformly distri=
buted ECC private key.
+
 ## Supported ECC Curves
=20
 This document references three named prime field curves, defined in {{FIPS=
186}} as "Curve P-256", "Curve P-384", and "Curve P-521".
@@ -3405,59 +3408,7 @@ Asymmetric key size | Hash size | Symmetric key size
   On the other hand, it is inconvenient to the user to be informed that th=
ey typed in the wrong passphrase only after a petabyte of data is decrypted.
   There are many cases in cryptographic engineering where the implementer =
must use care and wisdom, and this is one.
=20
=2D- Refer to {{FIPS186}}, B.4.1, for the method to generate a uniformly di=
stributed ECC private key.
=2D
=2D- The curves proposed in this document correspond to the symmetric key s=
izes 128 bits, 192 bits, and 256 bits, as described in the table below.
=2D  This allows a compliant application to offer balanced public key secur=
ity, which is compatible with the symmetric key strength for each AES algor=
ithm defined here.
=2D
=2D  The following table defines the hash and the symmetric encryption algo=
rithm that SHOULD be used with a given curve for ECDSA or ECDH.
=2D  A stronger hash algorithm or a symmetric key algorithm MAY be used for=
 a given ECC curve.
=2D  However, note that the increase in the strength of the hash algorithm =
or the symmetric key algorithm may not increase the overall security offere=
d by the given ECC key.
=2D
=2D{: title=3D"Elliptic Curve cryptographic guidance"}
=2DCurve name | ECC | RSA strength | Hash size strength, informative | Symm=
etric key size
=2D-----------|-----|--------------|---------------------------------|-----=
--------------
=2DNIST P-256 | 256 | 3072 | 256 | 128
=2DNIST P-384 | 384 | 7680 | 384 | 192
=2DNIST P-521 | 521 | 15360 | 512 | 256
=2D
=2D- Requirement levels indicated elsewhere in this document lead to the fo=
llowing combinations of algorithms in the OpenPGP profile: MUST implement N=
IST curve P-256 / SHA2-256 / AES-128, SHOULD implement NIST curve P-521 / S=
HA2-512 / AES-256, MAY implement NIST curve P-384 / SHA2-384 / AES-256, amo=
ng other allowed combinations.
=2D
=2D  Consistent with the table above, the following table defines the KDF h=
ash algorithm and the AES KEK encryption algorithm that SHOULD be used with=
 a given curve for ECDH.
=2D  A stronger KDF hash algorithm or AES KEK algorithm MAY be used for a g=
iven ECC curve.
=2D
=2D{: title=3D"Elliptic Curve KDF and KEK recommendations"}
=2DCurve name | Recommended KDF hash algorithm | Recommended KEK encryption=
 algorithm
=2D-----------|--------------------------------|---------------------------=
----------
=2DNIST P-256 | SHA2-256 | AES-128
=2DNIST P-384 | SHA2-384 | AES-192
=2DNIST P-521 | SHA2-512 | AES-256
=2D
=2D- This document explicitly discourages the use of algorithms other than =
AES as a KEK algorithm because backward compatibility of the ECDH format is=
 not a concern.
=2D  The KEK algorithm is only used within the scope of a Public-Key Encryp=
ted Session Key Packet, which represents an ECDH key recipient of a message.
=2D  Compare this with the algorithm used for the session key of the messag=
e, which MAY be different from a KEK algorithm.
=2D
=2D  Compliant applications SHOULD implement, advertise through key prefere=
nces, and use the strongest algorithms specified in this document.
=2D
=2D  Note that the symmetric algorithm preference list may make it impossib=
le to use the balanced strength of symmetric key algorithms for a correspon=
ding public key.
=2D  For example, the presence of the symmetric key algorithm IDs and their=
 order in the key preference list affects the algorithm choices available t=
o the encoding side, which in turn may make the adherence to the table abov=
e infeasible.
=2D  Therefore, compliance with this specification is a concern throughout =
the life of the key, starting immediately after the key generation when the=
 key preferences are first added to a key.
=2D  It is generally advisable to position a symmetric algorithm ID of stre=
ngth matching the public key at the head of the key preference list.
=2D
=2D  Encryption to multiple recipients often results in an unordered inters=
ection subset.
=2D  For example, if the first recipient's set is {A, B} and the second's i=
s {B, A}, the intersection is an unordered set of two algorithms, A and B.
=2D  In this case, a compliant application SHOULD choose the stronger encry=
ption algorithm.
=2D
=2D  Resource constraints, such as limited computational power, is a likely=
 reason why an application might prefer to use the weakest algorithm.
=2D  On the other side of the spectrum are applications that can implement =
every algorithm defined in this document.
=2D  Most applications are expected to fall into either of two categories.
=2D  A compliant application in the second, or strongest, category SHOULD p=
refer AES-256 to AES-192.
=2D
=2D  SHA-1 MUST NOT be used with the ECDSA or the KDF in the ECDH method.
=2D
=2D  MDC MUST be used when a symmetric encryption key is protected by ECDH.
=2D  None of the ECC methods described in this document are allowed with de=
precated V3 keys.
=2D  A compliant application MUST only use iterated and salted S2K to prote=
ct private keys, as defined in {{iterated-and-salted-s2k}}, "Iterated and S=
alted S2K".
+- SHA-1 MUST NOT be used with the ECDSA or the KDF in the ECDH method.
=20
   Side channel attacks are a concern when a compliant application's use of=
 the OpenPGP format can be modeled by a decryption or signing oracle model,=
 for example, when an application is a network service performing decryptio=
n to unauthenticated remote users.
   ECC scalar multiplication operations used in ECDSA and ECDH are vulnerab=
le to side channel attacks.
=2D-=20
2.30.2


--=-=-=--

--==-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQQttUkcnfDcj0MoY88+nXFzcd5WXAUCYFyENAAKCRA+nXFzcd5W
XP8dAP9b94kCg6lAUoVge1Xp4bj+M7nS7vZjN2c0r61widx2BgEAkktK/j3hvh5v
8UdxBYHor5aUujbGfqXhnzqhmttjrwE=
=x9I9
-----END PGP SIGNATURE-----
--==-=-=--


From nobody Thu Mar 25 16:50:32 2021
Return-Path: <dkg@fifthhorseman.net>
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 0263B3A1022 for <openpgp@ietfa.amsl.com>; Thu, 25 Mar 2021 16:50:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=fifthhorseman.net header.b=OF8XAtYh; dkim=pass (2048-bit key) header.d=fifthhorseman.net header.b=SVF5ld+Y
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OeHBsyyQRbth for <openpgp@ietfa.amsl.com>; Thu, 25 Mar 2021 16:50:25 -0700 (PDT)
Received: from che.mayfirst.org (che.mayfirst.org [IPv6:2001:470:1:116::7]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D885B3A1021 for <openpgp@ietf.org>; Thu, 25 Mar 2021 16:50:25 -0700 (PDT)
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1616716222; h=from : to : cc : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=jHuUDVey0QNdJn+bi4tU/5a6HTbUq9bQb86w7V+bqS0=; b=OF8XAtYhI5Iy0i9QxeailTVhZgQD4O+WriDyq+sfXFv9Cr/hhJBYhoYXmIuLCF73cJZDy TKvwRXLrbAABTwFCw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1616716222; h=from : to : cc : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=jHuUDVey0QNdJn+bi4tU/5a6HTbUq9bQb86w7V+bqS0=; b=SVF5ld+YoaqCliNUN/DoMF2XVKj6wcr8scnxDEKHxJ3kPUkifyRwLEHDgu4LKjc73pTqr NwJLPk+OMvKOmZAu7A0BBKqPkP0w4KMMt+No6DOua9hc7/5erpiJrlLu6TPQOW/kanxWqtS QSEHLQkfunHzn65jfzWy4Sn8JmennPMzEpvfjmCQ9spX2TCUauvHLVtRYWV8PdZ4hHYNcH2 sGpZUa6HnXO/DLg5JUzNO//pEEdGydhuQ7lVSqPSutrqYBkVTBE5HTfeAtMt5Ply+oaoIjp jVfaKVhQIW1/GXuY2lmsbNuSWt9ZDuqG7zjctdHlPZVGUZQTK8028cSuM/0g==
Received: from fifthhorseman.net (lair.fifthhorseman.net [108.58.6.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id 95AE3F9A5; Thu, 25 Mar 2021 19:50:22 -0400 (EDT)
Received: by fifthhorseman.net (Postfix, from userid 1000) id E2D59203A9; Thu, 25 Mar 2021 16:57:07 -0400 (EDT)
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: openpgp@ietf.org
Cc: NIIBE Yutaka <gniibe@fsij.org>
In-Reply-To: <87eeg42gti.fsf@fifthhorseman.net>
References: <87eeg42gti.fsf@fifthhorseman.net>
Autocrypt: addr=dkg@fifthhorseman.net; prefer-encrypt=mutual; keydata= mDMEX+i03xYJKwYBBAHaRw8BAQdACA4xvL/xI5dHedcnkfViyq84doe8zFRid9jW7CC9XBiI0QQf FgoAgwWCX+i03wWJBZ+mAAMLCQcJEOCS6zpcoQ26RxQAAAAAAB4AIHNhbHRAbm90YXRpb25zLnNl cXVvaWEtcGdwLm9yZ/tr8E9NA10HvcAVlSxnox6z62KXCInWjZaiBIlgX6O5AxUKCAKbAQIeARYh BMKfigwB81402BaqXOCS6zpcoQ26AADZHQD/Zx9nc3N2kj13AUsKMr/7zekBtgfSIGB3hRCU74Su G44A/34Yp6IAkndewLxb1WdRSokycnaCVyrk0nb4imeAYyoPtBc8ZGtnQGZpZnRoaG9yc2VtYW4u bmV0PojRBBMWCgCDBYJf6LTfBYkFn6YAAwsJBwkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3Rh dGlvbnMuc2VxdW9pYS1wZ3Aub3JnL0Gwxvypz2tu1IPG+yu1zPjkiZwpscsitwrVvzN3bbADFQoI ApsBAh4BFiEEwp+KDAHzXjTYFqpc4JLrOlyhDboAAPkXAP0Z29z7jW+YzLzPTQML4EQLMbkHOfU4 +s+ki81Czt0WqgD/SJ8RyrqDCtEP8+E4ZSR01ysKqh+MUAsTaJlzZjehiQ24MwRf6LTfFgkrBgEE AdpHDwEBB0DkKHOW2kmqfAK461+acQ49gc2Z6VoXMChRqobGP0ubb4kBiAQYFgoBOgWCX+i03wWJ BZ+mAAkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3Jnfvo+ nHoxDwaLaJD8XZuXiaqBNZtIGXIypF1udBBRoc0CmwICHgG+oAQZFgoAbwWCX+i03wkQPp1xc3He VlxHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3JnaheiqE7Pfi3Atb3GGTw+ jFcBGOaobgzEJrhEuFpXREEWIQQttUkcnfDcj0MoY88+nXFzcd5WXAAAvrsBAIJ5sBg8Udocv25N stN/zWOiYpnjjvOjVMLH4fV3pWE1AP9T6hzHz7hRnAA8d01vqoxOlQ3O6cb/kFYAjqx3oMXSBhYh BMKfigwB81402BaqXOCS6zpcoQ26AADX7gD/b83VObe14xrNP8xcltRrBZF5OE1rQSPkMNy+eWpk eCwA/1hxiS8ZxL5/elNjXiWuHXEvUGnRoVj745Vl48sZPVYMuDgEX+i03xIKKwYBBAGXVQEFAQEH QIGex1WZbH6xhUBve5mblScGYU+Y8QJOomXH+rr5tMsMAwEICYjJBBgWCgB7BYJf6LTfBYkFn6YA CRDgkus6XKENukcUAAAAAAAeACBzYWx0QG5vdGF0aW9ucy5zZXF1b2lhLXBncC5vcmcEAx9vTD3b J0SXkhvcRcCr6uIDJwic3KFKxkH1m4QW0QKbDAIeARYhBMKfigwB81402BaqXOCS6zpcoQ26AAAX mwD8CWmukxwskU82RZLMk5fm1wCgMB5z8dA50KLw3rgsCykBAKg1w/Y7XpBS3SlXEegIg1K1e6dR fRxL7Z37WZXoH8AH
Date: Thu, 25 Mar 2021 16:57:07 -0400
Message-ID: <875z1f2bq4.fsf@fifthhorseman.net>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/FV55lvldZRYwCImXmodnZxFAuQQ>
Subject: Re: [openpgp] Algorithm-specific data: problems with Simple Octet Strings, and possible alternatives
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Mar 2021 23:50:31 -0000

--=-=-=
Content-Type: text/plain

On Wed 2021-03-24 20:54:49 -0400, Daniel Kahn Gillmor wrote:
> (a) Seems problematic because of the multiple acceptable representations
>     outlined above.  It's already pretty tricky that the fingerprint of
>     a piece of given public key material can vary depending on the
>     creation timestamp.  Some implementations might try to normalize an
>     SOS into a "compliant" MPI, thereby affecting their ability to
>     calculate the correct fingerprint.  I don't think we currently have
>     any tests that demonstrate interoperability in the face of this kind
>     of confusion.

I've opened this issue in the interop test suite suggesting a way to
test whether implementations might diverge:

https://gitlab.com/sequoia-pgp/openpgp-interoperability-test-suite/-/issues/45

sorry to not offer it with any specific implementation yet.

        --dkg

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQQttUkcnfDcj0MoY88+nXFzcd5WXAUCYFz5IwAKCRA+nXFzcd5W
XNXoAP45sdW34PhbTkFgEl5yWlrg3MM0IuuDQhTjebNAuXbYpQEAzVO/P1GfCspQ
B9KBBBXOyxKPH1WD3y5OXtc6FMOFNwo=
=ahvn
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Thu Mar 25 17:28:56 2021
Return-Path: <angel@16bits.net>
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 E3C803A1189 for <openpgp@ietfa.amsl.com>; Thu, 25 Mar 2021 17:28:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZOqscnZmf949 for <openpgp@ietfa.amsl.com>; Thu, 25 Mar 2021 17:28:50 -0700 (PDT)
Received: from mail.direccionemail.com (mail.direccionemail.com [199.195.249.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 711573A0B59 for <openpgp@ietf.org>; Thu, 25 Mar 2021 17:28:49 -0700 (PDT)
Message-ID: <029c60b6a313d33cf5cc7e15791be8c0c582370c.camel@16bits.net>
From: =?ISO-8859-1?Q?=C1ngel?= <angel@16bits.net>
To: openpgp@ietf.org
Date: Fri, 26 Mar 2021 01:28:47 +0100
In-Reply-To: <87blb72yto.fsf@fifthhorseman.net>
References: <87wnu86mep.fsf@fifthhorseman.net> <20210324021213.333485-1-dkg@fifthhorseman.net> <87pmzp2taf.fsf@fifthhorseman.net> <26945b02701cdbcf7af0ebd3adaa325b91021be7.camel@16bits.net> <87blb72yto.fsf@fifthhorseman.net>
Content-Type: text/plain; charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/wFgkmhOwGFZlgZicWMjju8AK1Mg>
Subject: Re: [openpgp] [RFC4880bis PATCH] Drop "Compatibility Profiles" section.
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Mar 2021 00:28:55 -0000

On 2021-03-25 at 08:38 -0400, Daniel Kahn Gillmor wrote:
> On Thu 2021-03-25 02:20:16 +0100, =C1ngel wrote:
> > This issue also affected the security considerations section. I made a
> > follow-up at https://gitlab.com/dkg/rfc4880bis/-/merge_requests/1
>=20
> Looks like you've done a merge request against my personal repo, rather
> than putting it in the openpgp-wg repo where everyone else will be able
> to see it -- i recommend making this MR against
> https://gitlab.com/openpgp-wg/rfc4880bis instead so that it gets public
> visibility, and the merge requests aren't scattered.  I'm attaching the
> proposed patch below so that people following the list can see it.

Hi Daniel

Yep. I wanted it to appear on top of merge_requests/41 but did not find
how to do that. Happy to learn how to do that.

Now that Paul has merged your branch, I have rebased it and opened a
direct MR against the main repository:
https://gitlab.com/openpgp-wg/rfc4880bis/-/merge_requests/44


> > I tried to keep what was salvable but ended up leaving just three lines
> > from rfc6637.
>=20
> I'm not convinced that these specific security considerations are
> invalid given that the compatibility profiles section is gone.  For
> example, do we believe it to be untrue that:
>=20
>     Compliant applications SHOULD implement, advertise through key
>     preferences, and use the strongest algorithms specified in this
>     document.
>=20
> I think that looks correct, and I see no reason to cut it just because
> we've dropped the Compatibility Profiles section.


I considered it. That (and folllowing) paragraphs look mostly fine. The
problem there is the part about "use the strongest algorithms specified
in this document". On 6637 that refers to the algorithm strength it is
defining (i.e. the previous paragraphs that get removed). I considered
whether it could be amended. That could end up as "use the strongest
algorithms as defined by local policy", "as defined by the implementer"
or some similarly vague description which wasn't really satisfactory.
Also note that "specified in this document" changes meanings when put
in 4880-refresh than in 6637 which was just about ECC.

I like some of the points it discusses, such as the order issue with
multiple recipients, but it still revolves around strength ("the
stronger encryption algorithm", "the weakest algorithm"...) which is no
longer defined.

I think we're better clearing it and seeing what is importable. I may
have missed some sentence, but I doubt you could keep most of it as
such.*

We MAY want to provide a more complete table than was in 6637
(preferably as a new section, not embedded in Security), in which case
we could more easily reimport some bigger chunk.
That is worth its own discussion, though. I'm not convinced at this
point that 4880-refresh should explicitly state the relative strength
of each algorithm.


(*) A phrase that got removed but should be recovered is =ABMDC MUST be
used when a symmetric encryption key is protected by ECDH.=BB. I pondered
where to move it, but I concluded that should better go at its own
changeset stating that new algorithms cannot be used without MDC i.e.
they cannot be used with the "Symmetrically Encrypted Data Packet"
(still somewhat redundant, as that one MUST NOT be created).


Additionally, the phrase "A compliant application MUST only use
iterated and salted S2K"... is also mostly fine, but I had already
covered a proposal for that one in the previous=20
https://gitlab.com/openpgp-wg/rfc4880bis/-/merge_requests/42


If you find other phrases being removed that you think should have been
kept, I would be happy discuss them in more detail. But for now, and
after carefully reviewing the change itself, I stand by the proposal I
did.

Best regards



From nobody Thu Mar 25 19:44:06 2021
Return-Path: <angel@16bits.net>
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 03CAC3A15BD for <openpgp@ietfa.amsl.com>; Thu, 25 Mar 2021 19:44:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VRUo7ORNxrn8 for <openpgp@ietfa.amsl.com>; Thu, 25 Mar 2021 19:44:03 -0700 (PDT)
Received: from mail.direccionemail.com (mail.direccionemail.com [199.195.249.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3D75A3A15BC for <openpgp@ietf.org>; Thu, 25 Mar 2021 19:44:02 -0700 (PDT)
Message-ID: <f26e29d001224fc09e587b696416188a6fb6cc41.camel@16bits.net>
From: =?ISO-8859-1?Q?=C1ngel?= <angel@16bits.net>
To: openpgp@ietf.org
Date: Fri, 26 Mar 2021 03:44:00 +0100
In-Reply-To: <87eeg42gti.fsf@fifthhorseman.net>
References: <87eeg42gti.fsf@fifthhorseman.net>
Content-Type: text/plain; charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/TKB4ILsk6EzHMMTSbrE2b7slCHY>
Subject: Re: [openpgp] Algorithm-specific data: problems with Simple Octet Strings, and possible alternatives
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Mar 2021 02:44:05 -0000

Some thoughts, trying to write down the problem definition (of which I
may be missing something) and throwing out a few ideas, not necessarily
useful.



> ```text/x-diff
>     00000010  07
> -   00000011     02 03                                           ecdsa_pu=
blic_len
> +   00000011     02 08                                           ecdsa_pu=
blic_len
>     00000013           04 29 75 bb 53  55 49 31 80 ab 03 54 15   ecdsa_pu=
blic
> ```

Tthe source of this difference is
 04h =3D 0000 0100b.

Thus, SOS would counts those 5 leading zero bits but MPI doesn't.


Currently a consumer could round the bit length to the next multiple of
8 and use that for jumping n octets, *except* if the encoded number
would begin with the high bit set.
E.g. number 128 is [00 08 00 80] not [00 08 80] (which would a negative
number, could that appear anywhere?)

Spurious leading zeroes (e.g. [00 09 00 00 00 01 FF]) are not allowed
now.

However, in SOS-land, an algorithm may want to use a block of octets
"00 00 00 01 FF". That could be prepended with a length of 40 (SOS
proposal) 09 (MPI bit counting)...

If we restrict ourselves to the modern ECC pubkeys (retconning this to
RSA would be very cool, but probably impossible) it currently uses,
for NIST curves:

 04 || x || y=20

which is an UncompressedPointRepresentation (rfc8422#section-5.4.1):
an uncompressed(4) PointConversionForm followed by X & Y opaques.

and for Ed25519/Curve25519 it uses=20
 40 || x


I'm thinking that perhaps the SOS could be defined as having *three*
prefix bytes. The upper 13 bits defining the length of the black box,
followed by a 3 bit parameter checksum and an algo parameter not
included in the SOS count. NIST Curves would be defined as X || Y and
receive a PointConversionForm of 4 as parameter.

Similarly for X25519.

That would allow defining the current pseudo-MPIs in a cleaner way
based on an algorithm-specific opaque string as SOS tried to.

Future algorithms could set a parameter such as 0x80 or 0xFF to produce
a nicer count, but considering the first byte as a separate (and
somewhat magic) value outside of the opaque string do allow a better
definition than the current MPI which are really something else, while
making existing implementations fit instead of requiring special casing
("Practically easiest" option).

However, that doesn't work for the signature, where there *is* zero-
removal/zero-recovery.


Best





From nobody Thu Mar 25 20:27:27 2021
Return-Path: <paul@nohats.ca>
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 20BD23A0A1C for <openpgp@ietfa.amsl.com>; Thu, 25 Mar 2021 20:27:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
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, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nohats.ca
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Mqr0J__izzOQ for <openpgp@ietfa.amsl.com>; Thu, 25 Mar 2021 20:27:21 -0700 (PDT)
Received: from mx.nohats.ca (mx.nohats.ca [IPv6:2a03:6000:1004:1::68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 364643A0A1E for <openpgp@ietf.org>; Thu, 25 Mar 2021 20:27:21 -0700 (PDT)
Received: from localhost (localhost [IPv6:::1]) by mx.nohats.ca (Postfix) with ESMTP id 4F66pt14fBz35r; Fri, 26 Mar 2021 04:27:18 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nohats.ca; s=default; t=1616729238; bh=eR+/9bFXNN858xiW4XlgX2F3tKjyAyHrctASd7OHOF4=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=ChQ5YGSE6mWW0CLjpnA9lsSJy8aQstr0l11T1biU9NzkWYM2TTyoJodcClHmlsRxi T04PL4lghNK7TRbWnvRqWJIxhxPPpWNRVTB3E2gh8tLIPY5dnAw151txrhg7XzFlL0 tLXj3NXqdbMP8EYVqqNWThKPaYBeL3diz53g5G5k=
X-Virus-Scanned: amavisd-new at mx.nohats.ca
Received: from mx.nohats.ca ([IPv6:::1]) by localhost (mx.nohats.ca [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id hc_XmGRnTKyC; Fri, 26 Mar 2021 04:27:16 +0100 (CET)
Received: from bofh.nohats.ca (bofh.nohats.ca [193.110.157.194]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.nohats.ca (Postfix) with ESMTPS; Fri, 26 Mar 2021 04:27:16 +0100 (CET)
Received: by bofh.nohats.ca (Postfix, from userid 1000) id 1CF0660299AB; Thu, 25 Mar 2021 23:27:15 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1]) by bofh.nohats.ca (Postfix) with ESMTP id 142AC6FD7F; Thu, 25 Mar 2021 23:27:15 -0400 (EDT)
Date: Thu, 25 Mar 2021 23:27:15 -0400 (EDT)
From: Paul Wouters <paul@nohats.ca>
To: =?ISO-8859-15?Q?=C1ngel?= <angel@16bits.net>
cc: openpgp@ietf.org
In-Reply-To: <029c60b6a313d33cf5cc7e15791be8c0c582370c.camel@16bits.net>
Message-ID: <ba29e6e3-7fe8-4ed6-819c-b0d0a22ec24@nohats.ca>
References: <87wnu86mep.fsf@fifthhorseman.net> <20210324021213.333485-1-dkg@fifthhorseman.net> <87pmzp2taf.fsf@fifthhorseman.net> <26945b02701cdbcf7af0ebd3adaa325b91021be7.camel@16bits.net> <87blb72yto.fsf@fifthhorseman.net> <029c60b6a313d33cf5cc7e15791be8c0c582370c.camel@16bits.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15; format=flowed
Content-Transfer-Encoding: 8BIT
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/Ym5J-1SQd-AwFLT0ypqyDCqUU18>
Subject: Re: [openpgp] [RFC4880bis PATCH] Drop "Compatibility Profiles" section.
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Mar 2021 03:27:26 -0000

On Fri, 26 Mar 2021, Ángel wrote:

>> I'm attaching the
>> proposed patch below so that people following the list can see it.
>
> Hi Daniel
>
> Yep. I wanted it to appear on top of merge_requests/41 but did not find
> how to do that. Happy to learn how to do that.
>
> Now that Paul has merged your branch, I have rebased it and opened a
> direct MR against the main repository:
> https://gitlab.com/openpgp-wg/rfc4880bis/-/merge_requests/44

I had a look at it. While some text indeed is weird because of the move
from an ECC only document into the generic bis document, I think some
of the text you suggest removing might still make sense, such as the
recommendations of hash algorithms for these curves. And that the place
within the document might be right too?

> I considered it. That (and folllowing) paragraphs look mostly fine. The
> problem there is the part about "use the strongest algorithms specified
> in this document". On 6637 that refers to the algorithm strength it is
> defining (i.e. the previous paragraphs that get removed). I considered
> whether it could be amended. That could end up as "use the strongest
> algorithms as defined by local policy", "as defined by the implementer"
> or some similarly vague description which wasn't really satisfactory.
> Also note that "specified in this document" changes meanings when put
> in 4880-refresh than in 6637 which was just about ECC.

I agree that needs fixing. The question is how/when to do this. If we
cut the entire section as you propose, we need to a file a tracking bug
to re-evaluate what to bring back, revised or verbatim later on in the
process when we are pulled up all the existing non-controversial work.

> I think we're better clearing it and seeing what is importable. I may
> have missed some sentence, but I doubt you could keep most of it as
> such.*

I think that could work, but let's get the opinion of a few others ?

> (*) A phrase that got removed but should be recovered is «MDC MUST be
> used when a symmetric encryption key is protected by ECDH.». I pondered
> where to move it, but I concluded that should better go at its own
> changeset stating that new algorithms cannot be used without MDC i.e.
> they cannot be used with the "Symmetrically Encrypted Data Packet"
> (still somewhat redundant, as that one MUST NOT be created).

If others agree, we need a tracking item for this too?

> Additionally, the phrase "A compliant application MUST only use
> iterated and salted S2K"... is also mostly fine, but I had already
> covered a proposal for that one in the previous
> https://gitlab.com/openpgp-wg/rfc4880bis/-/merge_requests/42

I would need to hear from more people about this change to see if there
is consensus for this.

speaking with no roles others than an individual:

You suggest:

 	- Implementations SHOULD use salted or iterated-and-salted S2K specifiers,
 	- as simple S2K specifiers are more vulnerable to dictionary attacks.
 	+ Simple S2K and Salted S2K specifiers are not particularly secure when used
         + with a low-entropy secret, such as those typically provided by users, and
         + implementations SHOULD avoid using these methods on encryption of both keys and messages.
 	[...]
 	- A compliant application MUST only use iterated and salted S2K to protect private keys,
         - as defined in {{iterated-and-salted-s2k}}, "Iterated and Salted S2K".

I think merging these two as you done is fine. I would try to use "SHOULD NOT use"
instead of "SHOULD avoid".

I don't think the phrasing of "not particularly secure".  Can it not just say "weak" or
"vulnerable to low cost attacks" ?

Also, if it is this bad, why is this a SHOULD and not a MUST ? That is,
when would be a valid reason for an implementation to ignore the SHOULD?

> If you find other phrases being removed that you think should have been
> kept, I would be happy discuss them in more detail. But for now, and
> after carefully reviewing the change itself, I stand by the proposal I
> did.

Note I only looked at the diff, I did not go looking for other phrases.

Paul


From nobody Thu Mar 25 23:24:21 2021
Return-Path: <gniibe@fsij.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 024AD3A1201 for <openpgp@ietfa.amsl.com>; Thu, 25 Mar 2021 23:24:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
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, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=fsij.org
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aZ1hzs5Bylvj for <openpgp@ietfa.amsl.com>; Thu, 25 Mar 2021 23:24:15 -0700 (PDT)
Received: from akagi.fsij.org (akagi.fsij.org [217.70.189.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DF0C33A11D9 for <openpgp@ietf.org>; Thu, 25 Mar 2021 23:24:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=fsij.org; s=main; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Y/8aGM57Yi7h6WOtCkJZZFusicN7uRpT5f0q/B2t7W8=; b=YgGXrHrlrGbFMIm5CiLJkHKLLN RHa2ryrX9AkCtGElBNILmdm3WTSaZLsofhI+mmJuTToAnnxqLhJYyAR5Z7EevswiOM6b85lTbPv59 dAcvyiCpt4OjUrS0XWXh1l8VeC7ai4TGarx4k/KkcIKvgLiWwDcwEWskJ0mKvw9BNYG5ZaZ66yERJ 2h8pUAj07GKXz/CZD1HG67bIuaUq3b0B2qCTHsMIoY4yQkRqMAr3jxA5ECUDy/iKBvQ7eu0a8RAw4 VlGB4yKdYRDf1Q9ThKpqtjEjQRGxZ/8OIP2cMhkfZzwnb8fXfD9AGcYCvXq4D5lyCOEGvxbtrWl3i 6sX1tBRQ==;
Received: from m014008080161.v4.enabler.ne.jp ([14.8.80.161] helo=iwagami.gniibe.org) by akagi.fsij.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <gniibe@fsij.org>) id 1lPft7-00045M-CR; Fri, 26 Mar 2021 07:24:06 +0100
Received: by iwagami.gniibe.org (sSMTP sendmail emulation); Fri, 26 Mar 2021 15:24:00 +0900
From: NIIBE Yutaka <gniibe@fsij.org>
To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Cc: openpgp@ietf.org
In-Reply-To: <87eeg42gti.fsf@fifthhorseman.net>
References: <87eeg42gti.fsf@fifthhorseman.net>
Date: Fri, 26 Mar 2021 15:24:00 +0900
Message-ID: <87im5ebfgf.fsf@iwagami.gniibe.org>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/nF55-PpZsYmRugwTJnvq6ey2DTU>
Subject: Re: [openpgp] Algorithm-specific data: problems with Simple Octet Strings, and possible alternatives
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Mar 2021 06:24:20 -0000

Hello,

Daniel Kahn Gillmor <dkg@fifthhorseman.net> wrote:
> IIUC, SOS is basically intended as a genericization of MPI; it
> represents its length in a two-vector scalar as (8*octet-count) instead
> of as (bit-count).  It "fits" where MPI fits, but doesn't require
> leading-zero removal, or require interpretation as an integer at all.

Sorry, I was not able to describe SOS accurately, in detail.

In the implementation of SOS in GnuPG 2.3-beta, it is mixture of two;
One case is with bit-count and another case is with 8*octet-count.
Former is used when there is no problem of leading-zero removal.  Latter
is used to ensure no removal of leading zeros.

>  a) Introduce SOS and apply it to existing ECC pubkeys.

My (not-so-strong) proposal is to introduce SOS data type, and apply it
for ECC (pubkey or ephemeral key, signature, and secret), so that we can
explicitly require no removal of leading zeros to allow fixed-size data.

Implementations will have to handle new representation with leading
zeros (when interpreted as an MPI).  Actually, many already do when
reading data.

I think that we cannot remove the existing mess from implementations,
when we need to support existing data.

What I pursued was to clarify the mess with possible improvement by the
specification.

The benefit of this approach is:

    Minimum impact to the specification and implementations.

    Compatibility, possibly encouraging better interoperability for
    existing corner-cases (of Ed25519 and ECDH with Curve25519).

    Flexibility, for new curves, no extra definition will be needed.

But, I know that describing existing data of Ed25519 as weird MPI
representation acculately ... would be difficult in a specification.

So, I don't insist much for applying SOS idea in the specification.  For
some implementers, it would work as a technical guidance for
interoperability to interpret existing OpenPGP data with Ed25519.


Well, nevertheless, I believe that it's good to introduce a new distinct
data type (if not SOS) for opaque octet string, if possible.  It will be
useful to be friendly to not-yet-standardized things.
-- 


From nobody Fri Mar 26 14:22:18 2021
Return-Path: <dkg@fifthhorseman.net>
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 CEA9F3A1070 for <openpgp@ietfa.amsl.com>; Fri, 26 Mar 2021 14:22:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=fifthhorseman.net header.b=pi36c43T; dkim=pass (2048-bit key) header.d=fifthhorseman.net header.b=LjKzySr7
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qo5NOLKroiAN for <openpgp@ietfa.amsl.com>; Fri, 26 Mar 2021 14:22:11 -0700 (PDT)
Received: from che.mayfirst.org (che.mayfirst.org [IPv6:2001:470:1:116::7]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 62B603A106E for <openpgp@ietf.org>; Fri, 26 Mar 2021 14:22:11 -0700 (PDT)
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1616793726; h=from : to : cc : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=kB+g6yuqoKiLxdcGPc5k4Q1OhI5C+5rQp8crkk3f528=; b=pi36c43TKb/cL8JzRHPTafG4lYg9dHt2Ula7HcKmDJiBDMAvwEbGNlMdf42XzvuYaj3Fb wUbSt9sr3Ww1FhvAw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1616793726; h=from : to : cc : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=kB+g6yuqoKiLxdcGPc5k4Q1OhI5C+5rQp8crkk3f528=; b=LjKzySr788bhEm4KqzJSG0Rfq3ogFXMY7qSB5dTowWEj2UiApdjBpNItVEgq82/AbqEnz iwmdGoAsRGGbpFhD6PvxnYJWcK+BXcghmFo5t/lik5qfIW+KkejW/IZ/y6Hax0AaKYNDUDX n75xYIV5rCns/SSQauMf5SpiUa5utq6JoIt7wlW2mUa4o+2tqsc1ufCwwCKPrXb2mDCZlGY AQv34IVHsLbtFyCmIHpq6c5kGepggrLgFrxh9rf32q9pgSoOXuC8hHyV900ooqy9biXTDSL HYmqu3E62IBRZBKdyLyUv1Y8Gq+gAvrX66H4VeXPfuq64DsBJchuvOp8K96A==
Received: from fifthhorseman.net (lair.fifthhorseman.net [108.58.6.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id 6EB5AF9A6; Fri, 26 Mar 2021 17:22:06 -0400 (EDT)
Received: by fifthhorseman.net (Postfix, from userid 1000) id 78D69203A9; Fri, 26 Mar 2021 13:43:28 -0400 (EDT)
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: NIIBE Yutaka <gniibe@fsij.org>
Cc: openpgp@ietf.org
In-Reply-To: <87im5ebfgf.fsf@iwagami.gniibe.org>
References: <87eeg42gti.fsf@fifthhorseman.net> <87im5ebfgf.fsf@iwagami.gniibe.org>
Autocrypt: addr=dkg@fifthhorseman.net; prefer-encrypt=mutual; keydata= mDMEX+i03xYJKwYBBAHaRw8BAQdACA4xvL/xI5dHedcnkfViyq84doe8zFRid9jW7CC9XBiI0QQf FgoAgwWCX+i03wWJBZ+mAAMLCQcJEOCS6zpcoQ26RxQAAAAAAB4AIHNhbHRAbm90YXRpb25zLnNl cXVvaWEtcGdwLm9yZ/tr8E9NA10HvcAVlSxnox6z62KXCInWjZaiBIlgX6O5AxUKCAKbAQIeARYh BMKfigwB81402BaqXOCS6zpcoQ26AADZHQD/Zx9nc3N2kj13AUsKMr/7zekBtgfSIGB3hRCU74Su G44A/34Yp6IAkndewLxb1WdRSokycnaCVyrk0nb4imeAYyoPtBc8ZGtnQGZpZnRoaG9yc2VtYW4u bmV0PojRBBMWCgCDBYJf6LTfBYkFn6YAAwsJBwkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3Rh dGlvbnMuc2VxdW9pYS1wZ3Aub3JnL0Gwxvypz2tu1IPG+yu1zPjkiZwpscsitwrVvzN3bbADFQoI ApsBAh4BFiEEwp+KDAHzXjTYFqpc4JLrOlyhDboAAPkXAP0Z29z7jW+YzLzPTQML4EQLMbkHOfU4 +s+ki81Czt0WqgD/SJ8RyrqDCtEP8+E4ZSR01ysKqh+MUAsTaJlzZjehiQ24MwRf6LTfFgkrBgEE AdpHDwEBB0DkKHOW2kmqfAK461+acQ49gc2Z6VoXMChRqobGP0ubb4kBiAQYFgoBOgWCX+i03wWJ BZ+mAAkQ4JLrOlyhDbpHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3Jnfvo+ nHoxDwaLaJD8XZuXiaqBNZtIGXIypF1udBBRoc0CmwICHgG+oAQZFgoAbwWCX+i03wkQPp1xc3He VlxHFAAAAAAAHgAgc2FsdEBub3RhdGlvbnMuc2VxdW9pYS1wZ3Aub3JnaheiqE7Pfi3Atb3GGTw+ jFcBGOaobgzEJrhEuFpXREEWIQQttUkcnfDcj0MoY88+nXFzcd5WXAAAvrsBAIJ5sBg8Udocv25N stN/zWOiYpnjjvOjVMLH4fV3pWE1AP9T6hzHz7hRnAA8d01vqoxOlQ3O6cb/kFYAjqx3oMXSBhYh BMKfigwB81402BaqXOCS6zpcoQ26AADX7gD/b83VObe14xrNP8xcltRrBZF5OE1rQSPkMNy+eWpk eCwA/1hxiS8ZxL5/elNjXiWuHXEvUGnRoVj745Vl48sZPVYMuDgEX+i03xIKKwYBBAGXVQEFAQEH QIGex1WZbH6xhUBve5mblScGYU+Y8QJOomXH+rr5tMsMAwEICYjJBBgWCgB7BYJf6LTfBYkFn6YA CRDgkus6XKENukcUAAAAAAAeACBzYWx0QG5vdGF0aW9ucy5zZXF1b2lhLXBncC5vcmcEAx9vTD3b J0SXkhvcRcCr6uIDJwic3KFKxkH1m4QW0QKbDAIeARYhBMKfigwB81402BaqXOCS6zpcoQ26AAAX mwD8CWmukxwskU82RZLMk5fm1wCgMB5z8dA50KLw3rgsCykBAKg1w/Y7XpBS3SlXEegIg1K1e6dR fRxL7Z37WZXoH8AH
Date: Fri, 26 Mar 2021 13:43:27 -0400
Message-ID: <877dlt6cao.fsf@fifthhorseman.net>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/CHt3so2oQ00kO4BN4bABhd3y2pA>
Subject: Re: [openpgp] Algorithm-specific data: problems with Simple Octet Strings, and possible alternatives
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Mar 2021 21:22:17 -0000

--=-=-=
Content-Type: text/plain

Thanks for responding, gniibe--

On Fri 2021-03-26 15:24:00 +0900, NIIBE Yutaka wrote:
> In the implementation of SOS in GnuPG 2.3-beta, it is mixture of two;
> One case is with bit-count and another case is with 8*octet-count.
> Former is used when there is no problem of leading-zero removal.  Latter
> is used to ensure no removal of leading zeros.

I think you're saying that GnuPG 2.3-beta will select between these two
choices based on the algorithm in use -- whether that's a first-order
algorithm as selected from the public-key algorithms registry, or a
distinct curve OID within a EdDSA/ECDSA/ECDH pubkey selection.

Is that right?  which choices are made in what cases?

> My (not-so-strong) proposal is to introduce SOS data type, and apply it
> for ECC (pubkey or ephemeral key, signature, and secret), so that we can
> explicitly require no removal of leading zeros to allow fixed-size data.

If we have fixed-sized data for all three of these elements for a
particular algorithm (which i expect to be the case with new elliptic
curves) then why do we need a prefix length indicator at all?

> Implementations will have to handle new representation with leading
> zeros (when interpreted as an MPI).

Are you saying that there are certificates, private keys, or signatures
in the wild that provide MPIs for existing, specified algorithms, which
have leading zero bytes, or have the MPI length specified in such a way
that it counts leading zero bits?  If so, which implementations are
producing them?

> Actually, many already do when reading data.

How do they cope with multiple representations and fingerprints of the
same key material?  I've opened
https://gitlab.com/sequoia-pgp/openpgp-interoperability-test-suite/-/issues/45
to try to gather data on how different implementations would cope with
encountering something like this in the wild (but i haven't written any
test yet, i'm hoping other folks will step up and write those tests, but
if you have code that is producing these things already, please point ot
it)

>     Minimum impact to the specification and implementations.
>
>     Compatibility, possibly encouraging better interoperability for
>     existing corner-cases (of Ed25519 and ECDH with Curve25519).

My worry is that we actually get *worse* interoperability with existing
corner cases, if we have two distinct ways to represent exactly the same
public key, and two distinct fingerprints for the same public key
material + date.

>     Flexibility, for new curves, no extra definition will be needed.

But if the octet strings for each new curve are going to use a "native"
format for that curve, then we need a definition per curve anyway.  Why
isn't it easier to just include the size in the curve-specific
definition, and not put it directly on the wire at all?

> But, I know that describing existing data of Ed25519 as weird MPI
> representation acculately ... would be difficult in a specification.

I think our current draft actually *underspecifies* a lot of what is
currently expected of an implementation.  I'm hoping we can improve
that, even if it's difficult.

> So, I don't insist much for applying SOS idea in the specification.  For
> some implementers, it would work as a technical guidance for
> interoperability to interpret existing OpenPGP data with Ed25519.

i'd love to see some concrete guidance for implementers, and some of
that could be in the spec (even if just in an "implementation guidance"
section).  But I'm worried about the impact of recommending handling of
these variant forms.

> Well, nevertheless, I believe that it's good to introduce a new distinct
> data type (if not SOS) for opaque octet string, if possible.  It will be
> useful to be friendly to not-yet-standardized things.

If we have not-yet-standardized things that ultimately do need a new
abstraction, I agree we should consider a common abstraction.  But if
this abstraction isn't going to work directly for any existing piece,
and if the main new things that we contemplate don't need any
abstraction at all (they can just be well-documented fixed-length
fields), then i'm not convinced that this particular abstraction is
useful.  Why do we need such an abstraction?

        --dkg

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQQttUkcnfDcj0MoY88+nXFzcd5WXAUCYF4dQAAKCRA+nXFzcd5W
XAZpAQDAU3ioYBNfCHnv+Xq3HG5l2uQLQjr9F9w3g+IDRR+wqQEAqtOwQqW7zmOo
x7JMFq3uQJTjgvub3CDC8ee4/JG4ew4=
=ap7O
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Fri Mar 26 20:14:04 2021
Return-Path: <angel@16bits.net>
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 9DC5F3A1BA3 for <openpgp@ietfa.amsl.com>; Fri, 26 Mar 2021 20:14:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IPdc1UQVCoTU for <openpgp@ietfa.amsl.com>; Fri, 26 Mar 2021 20:13:58 -0700 (PDT)
Received: from mail.direccionemail.com (mail.direccionemail.com [199.195.249.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id ECF253A1BA2 for <openpgp@ietf.org>; Fri, 26 Mar 2021 20:13:57 -0700 (PDT)
Message-ID: <bef0bff9eb8e3ce01c1eddd3bd5fa01afb7c6fa3.camel@16bits.net>
From: =?ISO-8859-1?Q?=C1ngel?= <angel@16bits.net>
To: openpgp@ietf.org
Date: Sat, 27 Mar 2021 04:13:52 +0100
In-Reply-To: <fe514371632287e762d6f320edaf106a93dca047.camel@16bits.net>
References: <7d8bdda1-4e5c-6c10-f3cd-1d191fad595c@nohats.ca> <87h7lzavvc.wl-neal@walfield.org>,<87mtvqcdtk.fsf@fifthhorseman.net> <1614483966879.85613@cs.auckland.ac.nz> <4a4f4ca9aa11c850bfcd5ebde7e3d57f51fdf38a.camel@16bits.net> <fe514371632287e762d6f320edaf106a93dca047.camel@16bits.net>
Content-Type: text/plain; charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/ml5gzuQtSY6ANBejs8Xk66x_abQ>
Subject: Re: [openpgp] Sec. Considerations MUST about S2K [was: Re: I-D Action: draft-ietf-openpgp-crypto-refresh-02.txt]
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Mar 2021 03:14:03 -0000

On 2021-03-25 at 01:31 +0100, =C1ngel wrote:
> On 2021-02-28 at 23:09 +0100, =C1ngel wrote:
> > I would suggest a didactic approach, something like
> > > Simple S2K and Salted S2K specifiers are not particularly secure=20
> > > when used with a low-entropy secret, such as those typically
> > > provided
> > > by users, and implementations SHOULD avoid using these methods on
> > > encryption of both keys and messages.
> >=20
> > Best regards
>=20
> As there were no further opinions, I have proposed this on
>=20
> https://gitlab.com/openpgp-wg/rfc4880bis/-/merge_requests/42

On=20
https://mailarchive.ietf.org/arch/msg/openpgp/Ym5J-1SQd-AwFLT0ypqyDCqUU18
Paul comments on this point:


> > > but I had already covered a proposal for that one in the previous
> > > https://gitlab.com/openpgp-wg/rfc4880bis/-/merge_requests/42
>=20
> I would need to hear from more people about this change to see if there
> is consensus for this.
>=20
> speaking with no roles others than an individual:
>=20
> You suggest:
>=20
>         - Implementations SHOULD use salted or iterated-and-salted S2K sp=
ecifiers,
>         - as simple S2K specifiers are more vulnerable to dictionary atta=
cks.
>         + Simple S2K and Salted S2K specifiers are not particularly secur=
e when used
>          + with a low-entropy secret, such as those typically provided by=
 users, and
>          + implementations SHOULD avoid using these methods on encryption=
 of both keys and messages.
>         [...]
>         - A compliant application MUST only use iterated and salted S2K t=
o protect private keys,
>          - as defined in {{iterated-and-salted-s2k}}, "Iterated and Salte=
d S2K".
>=20
> I think merging these two as you done is fine. I would try to use "SHOULD=
 NOT use"
> instead of "SHOULD avoid".
>=20
> I don't think the phrasing of "not particularly secure".  Can it not just=
 say "weak" or
> "vulnerable to low cost attacks" ?
>=20
> Also, if it is this bad, why is this a SHOULD and not a MUST ? That is,
> when would be a valid reason for an implementation to ignore the SHOULD?

Recapping:
- Text from RFC 6637 said =ABMUST only use iterated and salted S2K=BB

- Neal pointed that precludes private S2K algorithms, and suggested
=ABMUST NOT use Simple S2K and MUST NOT use Salted S2K=BB

- dkg noted they could be allowed if the string is known to be of high
entropy.

- Peter translated that to =ABWhere it's likely that a low-entropy secret
is being employed, a compliant application SHOULD use [...]=BB

- I finally rephrased it adding the explanation on why we don't like
those two methods.

So:
> why is this a SHOULD and not a MUST ?=20

Because of the scenario brought up by dkg that a system which
knows that the string is high-entropy ("good key equivalent") should
not be prohibited from using those.

If we agree this is a legitimate concern, this should be kept as a
SHOULD. No point into getting into the specific scenarios it may be
allowed or not.
On the other hand, the working group may consider that's not a
compelling reason to SHOULD it, and to use an iterated and salted even
if you have a perfect-grade passphrase.
I see value in both propositions.


I'm fine with changing SHOULD avoid into SHOULD NOT. That asks for
changing the both into either, as well. Not a problem.


> I don't think the phrasing of "not particularly secure".  Can it not
> just say "weak" or "vulnerable to low cost attacks" ?

What about simply "are not secure" ?


Best regards



From nobody Fri Mar 26 20:16:04 2021
Return-Path: <angel@16bits.net>
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 43A0D3A1C3B for <openpgp@ietfa.amsl.com>; Fri, 26 Mar 2021 20:16:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Tft_HCgn86-c for <openpgp@ietfa.amsl.com>; Fri, 26 Mar 2021 20:15:58 -0700 (PDT)
Received: from mail.direccionemail.com (mail.direccionemail.com [199.195.249.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 68C903A1C00 for <openpgp@ietf.org>; Fri, 26 Mar 2021 20:15:56 -0700 (PDT)
Message-ID: <b4c6cb0b929dff027b28df546e4d90560dbba94f.camel@16bits.net>
From: =?ISO-8859-1?Q?=C1ngel?= <angel@16bits.net>
To: openpgp@ietf.org
Date: Sat, 27 Mar 2021 04:15:52 +0100
In-Reply-To: <ba29e6e3-7fe8-4ed6-819c-b0d0a22ec24@nohats.ca>
References: <87wnu86mep.fsf@fifthhorseman.net> <20210324021213.333485-1-dkg@fifthhorseman.net> <87pmzp2taf.fsf@fifthhorseman.net> <26945b02701cdbcf7af0ebd3adaa325b91021be7.camel@16bits.net> <87blb72yto.fsf@fifthhorseman.net> <029c60b6a313d33cf5cc7e15791be8c0c582370c.camel@16bits.net> <ba29e6e3-7fe8-4ed6-819c-b0d0a22ec24@nohats.ca>
Content-Type: text/plain; charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/vhbKnA8a0bSOPm8URY40V70e_y8>
Subject: Re: [openpgp] [RFC4880bis PATCH] Drop "Compatibility Profiles" section.
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Mar 2021 03:16:02 -0000

On 2021-03-25 at 23:27 -0400, Paul Wouters wrote:
> On Fri, 26 Mar 2021, =C1ngel wrote:
>=20
> > > I'm attaching the
> > > proposed patch below so that people following the list can see
> > > it.
> >=20
> > Hi Daniel
> >=20
> > Yep. I wanted it to appear on top of merge_requests/41 but did not
> > find
> > how to do that. Happy to learn how to do that.
> >=20
> > Now that Paul has merged your branch, I have rebased it and opened
> > a
> > direct MR against the main repository:
> > https://gitlab.com/openpgp-wg/rfc4880bis/-/merge_requests/44
>=20
> I had a look at it. While some text indeed is weird because of the move
> from an ECC only document into the generic bis document, I think some
> of the text you suggest removing might still make sense, such as the
> recommendations of hash algorithms for these curves.=20

Good point, that table may be useful without the requirement levels.

> And that the place within the document might be right too?

That's an editorial matter, but I don't think so. I find the security
section to contain many things without a clear script, just a mixture
of things related to security. The problem is that most of the rfc has
some relation to security :-)
There are rfcs with only a few security points to note. Having a
section listing all of them is good. But I don't think that's suitable=20
for OpenPGP.

I would prefer to see as little as possible on the Security
Considerations, with the points within the most relevant section to the
topic. See for example how I positioned the line about you MUST use
Iterated and salted s2k at the part discussing rather than in that
generic section. IMHO that makes more sense, instead of having a S2K
requisite in a complete separate part of the document.

Nevertheless, the Security Considerations need an overhaul. There are
multiple types of items: general advice, attack descriptions, key size
tables...
And it must grow, some of that is outdated, while other missing.

That ECC table I would probably place it at its own section, probably
as a 13.5.

Other points should perhaps be 15.x subsections.



> > (...)
>=20
> I agree that needs fixing. The question is how/when to do this. If we
> cut the entire section as you propose, we need to a file a tracking bug
> to re-evaluate what to bring back, revised or verbatim later on in the
> process when we are pulled up all the existing non-controversial work.

I agree with opening a task to reevaluate that later, if merged.
This was not intended as a permanent removal.


> > I think we're better clearing it and seeing what is importable. I may
> > have missed some sentence, but I doubt you could keep most of it as
> > such.*
>=20
> I think that could work, but let's get the opinion of a few others ?



> > (*) A phrase that got removed but should be recovered is =ABMDC MUST be
> > used when a symmetric encryption key is protected by ECDH.=BB. I ponder=
ed
> > where to move it, but I concluded that should better go at its own
> > changeset stating that new algorithms cannot be used without MDC i.e.
> > they cannot be used with the "Symmetrically Encrypted Data Packet"
> > (still somewhat redundant, as that one MUST NOT be created).
>=20
> If others agree, we need a tracking item for this too?

Yes, probably. Unless we get a quick consensus on this topic.


> > Additionally, the phrase "A compliant application MUST only use
> > iterated and salted S2K"... is also mostly fine, but I had already
> > covered a proposal for that one in the previous
> > https://gitlab.com/openpgp-wg/rfc4880bis/-/merge_requests/42
>=20
> I would need to hear from more people about this change to see if
> there is consensus for this.
>=20
> speaking with no roles others than an individual:

This part was proposed in February on a different thread. I am moving
your comment there and replying in that one:

https://mailarchive.ietf.org/arch/msg/openpgp/ml5gzuQtSY6ANBejs8Xk66x_abQ


Regards



From nobody Mon Mar 29 00:52:45 2021
Return-Path: <gniibe@fsij.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 50AB43A341E for <openpgp@ietfa.amsl.com>; Mon, 29 Mar 2021 00:52:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.096
X-Spam-Level: 
X-Spam-Status: No, score=-2.096 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_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=fsij.org
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TJiNXvhnPEnJ for <openpgp@ietfa.amsl.com>; Mon, 29 Mar 2021 00:52:38 -0700 (PDT)
Received: from akagi.fsij.org (akagi.fsij.org [217.70.189.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3C3A33A341D for <openpgp@ietf.org>; Mon, 29 Mar 2021 00:52:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=fsij.org; s=main; h=Content-Type:MIME-Version:Message-ID:Date:In-reply-to:Subject:Cc: To:From:References:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=DuhURwJlJgN0AKrcWRcdaA+djeRs/ySHGxo70zAGh+M=; b=VCFPPOMzfbn/uF3z/cFp43qVsG pxq/AvihzRWVctzh+S2uULO7z7r50ZXhGRmGBeLSlE+68nTRGRJdUgV12e4YB9K9BKwdJrrozW146 u317VGF9ceXluoscUNkGvoz2MjXre5gV/gps54AW9tvGWxOaK0iy9MaIXSxDz+pByleI7nr4Y0JCS xSuYqxpf6zTWb9KZQcaugrarxMGd/W8cSGK+M6fOfCTtIybX1LO4LJSVtjdXH8/PZDoaoqk9lVJVV 1iiSecjJIkizncLvlnj0m/eLuwTurgzdqd6M7paxAZqRKwtTmQKm3BuPOPpRBAtv4jmdmgHKwO/RW LQkLx3fw==;
Received: from i201193.dynamic.ppp.asahi-net.or.jp ([61.125.201.193] helo=localhost) by akagi.fsij.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <gniibe@fsij.org>) id 1lQmhH-0008An-Bg; Mon, 29 Mar 2021 09:52:28 +0200
References: <87eeg42gti.fsf@fifthhorseman.net> <87im5ebfgf.fsf@iwagami.gniibe.org>
User-agent: mu4e 1.0; emacs 27.1
From: Niibe Yutaka <gniibe@fsij.org>
To: openpgp@ietf.org
Cc: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
In-reply-to: <87im5ebfgf.fsf@iwagami.gniibe.org>
Autocrypt: addr=gniibe@fsij.org; prefer-encrypt=mutual; keydata= mDMEVcrxeBYJKwYBBAHaRw8BAQdAnMfaPVY4ldwFJr18e9ADT+T0M9U9GC4K800CrtT2QXe0Hk5J SUJFIFl1dGFrYSA8Z25paWJlQGZzaWoub3JnPoh8BBMWCAAkAhsDBQsJCAcCBhUICQoLAgQWAgMB Ah4BAheABQJVzIzWAhkBAAoJEOJnsFI2TwKNJUIA/0oRcUoOhkVi/rdewnuALVWcnTuUvPexVQh+ CfHgvEP1AQDQX/cPFSaydSNTzsxPBYoa/pgfF8dFKVVlnJIwy07PBbg4BFXK8XgSCisGAQQBl1UB BQEBB0BDF4eWFoYKSDGvt26As8ASzh75ZkjRqs70cxQiJAp7QAMBCAeIYQQYFggACQUCVcrxeAIb DAAKCRDiZ7BSNk8CjfVqAP9NFD+rTePZAVyWmOfzko7Y2yTGLwlqMTEuVVnEHoI6jAD9Ezv6ojRl z/47hOw32N2L2zDiE/dxT5CCm3ZVxST8GgK4MwRVyvK+FgkrBgEEAdpHDwEBB0DsZ495muN9/vr8 IJ7sVPe4n3w6jER3bIKv7tkHWPQXTIhhBBgWCAAJBQJVyvK+AhsgAAoJEOJnsFI2TwKNNhsA/2GW iUDVSAoM1SDUFLutSsM4/kJMlIhtVWy2u0svQxN5AP0VHPGkBv84mnlqxHAQa4y3lWku2ZgR5aN+ vuR5JjyUCw==
Date: Mon, 29 Mar 2021 16:52:23 +0900
Message-ID: <87r1jypfbc.fsf@jumper.gniibe.org>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/DG3RrKvRzepwBmXu8qZfQpO6OoQ>
Subject: Re: [openpgp] Algorithm-specific data: problems with Simple Octet Strings, and possible alternatives
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Mar 2021 07:52:43 -0000

NIIBE Yutaka wrote:
> Sorry, I was not able to describe SOS accurately, in detail.

So, I write this.  It is also available at:
https://www.gniibe.org/memo/standard/openpgp/sos-in-openpgp.html

==========================

SOS is a suggestion to OpenPGP implementations to address the zero
removal/recovery problem.  I know that implementations already handle
it by adding zero recovary for Ed25519.  For new curves, it's good if
we won't need to support zero recovary again.


SOS in practice
===============

Referring the definition of SOS (in the previous article), it is defined as:

    An SOS consists of two pieces: a two-octet scalar that is the length
    of the SOS in bits followed by an opaque string of octets.

The important point here is: There are multiple interpretations of
"the length of the SOS in bits".

This means that canonicalizing SOS representation is not defined by
the SOS handling itself.


Reading SOS representation
--------------------------

When parsing octet sequence in SOS representation, an implementation
expects a two-octet scaler and then an opaque string of octets with
the following length in octets:

    ("the length of the SOS in bits" + 7) / 8

Then, it does **not** check representation in bits.

Thus, when reading, the SOS [00 02 01] is considered formed correctly.
So are [00 08 01], and [00 08 00].


Writing SOS representation
--------------------------

When writing an octet string into SOS representation, an
implementation does following steps:

* 1: Examine the first octet in the octet string.

* 2: NBITS = 8 * length_of_string_in_octets

  * 2-1: If the first octet is zero, then no change of NBITS.

  * 2-2: If it's not zero, examine the bit-representation of it, to
         tweak NBITS = NBITS - number_of_leading_0_bits.

* 3: Output the scalar to represent NBITS, then the octet string.

Note that it does **never** remove anything from an octet string.


Impact to OpenPGP implementations
=================================

If it will be agreed, implementations will have to support non-zero
removal representations in Ed25519 signature and secret.


My conclusion (Manga practice requires conclusion, but I don't insist)
=======================================================================

SOS asks a clarification of Ed25519 signature and secret, and adding
support of non-zero removal to implementations.

In return, it will be easier to add support of new curves in a cleaner
way, with no need to support zero-recovery.

Note that it's not best for new curves, when assigning algo number to
specification is possible.  Use of SOS means that adding a two-octet
scalar to represent an octet string (in each use), which might not be
needed if the length information is determined by the context easily.



Post Script
===========

I don't like zero-removal or any removal by some internal processing.

I remember that for the song `S.O.S`_ (around 1977 in Japan), the intro
of the track was removed during its broadcast.

.. _S.O.S: https://en.wikipedia.org/wiki/S.O.S._(Pink_Lady_song)
--


From nobody Mon Mar 29 01:31:59 2021
Return-Path: <fw@deneb.enyo.de>
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 311E83A34F6 for <openpgp@ietfa.amsl.com>; Mon, 29 Mar 2021 01:31:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1YV6qBOVqU-d for <openpgp@ietfa.amsl.com>; Mon, 29 Mar 2021 01:31:55 -0700 (PDT)
Received: from albireo.enyo.de (albireo.enyo.de [37.24.231.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AA5EA3A34F5 for <openpgp@ietf.org>; Mon, 29 Mar 2021 01:31:55 -0700 (PDT)
Received: from [172.17.203.2] (port=60267 helo=deneb.enyo.de) by albireo.enyo.de ([172.17.140.2]) with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1lQnJQ-0002oM-6p; Mon, 29 Mar 2021 08:31:52 +0000
Received: from fw by deneb.enyo.de with local (Exim 4.92) (envelope-from <fw@deneb.enyo.de>) id 1lQnJQ-0001sI-5W; Mon, 29 Mar 2021 10:31:52 +0200
From: Florian Weimer <fw@deneb.enyo.de>
To: Niibe Yutaka <gniibe@fsij.org>
Cc: openpgp@ietf.org,  Daniel Kahn Gillmor <dkg@fifthhorseman.net>
References: <87eeg42gti.fsf@fifthhorseman.net> <87im5ebfgf.fsf@iwagami.gniibe.org> <87r1jypfbc.fsf@jumper.gniibe.org>
Date: Mon, 29 Mar 2021 10:31:52 +0200
In-Reply-To: <87r1jypfbc.fsf@jumper.gniibe.org> (Niibe Yutaka's message of "Mon, 29 Mar 2021 16:52:23 +0900")
Message-ID: <875z1awebr.fsf@mid.deneb.enyo.de>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/dgzg_Asfgj3ynh9T-otr42Uok-M>
Subject: Re: [openpgp] Algorithm-specific data: problems with Simple Octet Strings, and possible alternatives
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Mar 2021 08:31:57 -0000

* Niibe Yutaka:

> Impact to OpenPGP implementations
> =================================
>
> If it will be agreed, implementations will have to support non-zero
> removal representations in Ed25519 signature and secret.

Let me note again that zero-stripping for MPIs affects RSA as well and
makes OpenPGP inconsistent with its normative references.


From nobody Tue Mar 30 16:28:23 2021
Return-Path: <angel@16bits.net>
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 D76973A1572 for <openpgp@ietfa.amsl.com>; Tue, 30 Mar 2021 16:28:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Cyl0egjweh_T for <openpgp@ietfa.amsl.com>; Tue, 30 Mar 2021 16:28:19 -0700 (PDT)
Received: from mail.direccionemail.com (mail.direccionemail.com [199.195.249.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EFE853A1574 for <openpgp@ietf.org>; Tue, 30 Mar 2021 16:28:18 -0700 (PDT)
Message-ID: <94662237f3ae0ae5deacad3fa1a3dbec4b195d2a.camel@16bits.net>
From: =?ISO-8859-1?Q?=C1ngel?= <angel@16bits.net>
To: openpgp@ietf.org
Date: Wed, 31 Mar 2021 01:28:13 +0200
In-Reply-To: <87r1jypfbc.fsf@jumper.gniibe.org>
References: <87eeg42gti.fsf@fifthhorseman.net> <87im5ebfgf.fsf@iwagami.gniibe.org> <87r1jypfbc.fsf@jumper.gniibe.org>
Content-Type: text/plain; charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/c9bNcb6owh-N0bJHL9DOhgUA2hQ>
Subject: Re: [openpgp] Algorithm-specific data: problems with Simple Octet Strings, and possible alternatives
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Mar 2021 23:28:22 -0000

Thanks gniibe, I think this makes it clearer.

Naming it "the length of the SOS in bits" seems a bit confusing, so
perhaps better to refer differently to that.


> The important point here is: There are multiple interpretations of
> "the length of the SOS in bits".
>=20
> This means that canonicalizing SOS representation is not defined by
> the SOS handling itself.

But you *do* need a canonical representation, as notedd by dkg

Seems easy to solve, though. When you a SOS like [00 02 01] or [00 08
01] specify it must be computed as its canonical representation
(i.e. [00 01 01]). Although I would prefer to just reject them as
malformed.

You would still need to support reading a SOS with zero removal and
without, switching between those depending on the algorithm (eek), but
those would be two different representations, not nine.


This specification of SOS would be backwards compatible to MPI in that
values without leading zeroes would have the same representation in MPI
and SOS, and SOS would support reading a MPI-encoded value.


Main problem seem to be the signatures, where you have multiple
MPI/SOS.
Maybe someone can test how the different implementations in the
interoperability test suite behave when seeing signatures by Alice
without zero removal?
Probably most of them will consider it broken, but explicitly knowing
that is probably be an interesting answer nevertheless.


Best regards



From nobody Wed Mar 31 00:51:51 2021
Return-Path: <wiktor@metacode.biz>
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 ABC513A1ECB for <openpgp@ietfa.amsl.com>; Wed, 31 Mar 2021 00:51:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=metacode.biz
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qmo7carg4bro for <openpgp@ietfa.amsl.com>; Wed, 31 Mar 2021 00:51:44 -0700 (PDT)
Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A74F73A1EC8 for <openpgp@ietf.org>; Wed, 31 Mar 2021 00:51:43 -0700 (PDT)
Received: by mail-wr1-x436.google.com with SMTP id k8so18643788wrc.3 for <openpgp@ietf.org>; Wed, 31 Mar 2021 00:51:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=metacode.biz; s=2017;  h=to:references:cc:from:organization:subject:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Wju8KxujUNBDoYn5ETlPhnSM4omg6MhSY6/xO87p4NU=; b=ORziVDHUhK1KnitdmqmInLjZUCKe58xcvSQFIyB9vFr+JZxJbA9HlKxq43xFEtQK9k a7t/TUzLwOfwRzXwygWf+MYgnsXcW8NxMgUbo49pjipSPQxAsquXWgPwY21DxHXHMSj5 DBBpA6Mn493t+YUXmDUGOXJvf/ChdVcjNzeYcd23fZ5Bt4aPhmpAnQPTv9I5s8Kx8T8H 45TDt6n1N60gUKsbUfmpuevx5oCASrAtKGEIjvl4xD+/8x/vO96ybmSAhD25wlg6ns7+ uM6yXJloaiFVyTPBwX96OSmrj4duPTyZuTDGK2A/jnEi0OX9Xg8W7L4C6jnHdNfFjLiI ucMA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:references:cc:from:organization:subject :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=Wju8KxujUNBDoYn5ETlPhnSM4omg6MhSY6/xO87p4NU=; b=unO+z9c31jJxXUnZ2Q4s3VQuqym++r+Suf1MiP1DacDntb2srkvuhLQSPJkanJAL64 Pe8mSdODAoHeLGH+E0lZu0tJmBq4mFcj/lgxkx11C5+Fd0EJH7pqY5k0LsNfxLk2QNXk A6wOgCz9Kk6ujWQVUqZsm6zugxe7BSGLRNR/uzU6S/MuODHzgZhVECMY0Eu8k0xGk6Zk crXEPN7p3bhxZmppPf41SA68buO8JJuaw0eS3ot8NNC39gN6sifmSS6OdmfL7WhXZ2FS CkfcLkb9Zey5ltCZHKCsMcj3TwADVEfO6Pxe934lEPaekHeSqcbT2w4apNhlyqhl7tsi 2bLA==
X-Gm-Message-State: AOAM532hxZQrASJeH7IojdNLvb6xKriX2NC/SfC7ih+3EhnLStlaTxSl lwxEQUf9lihHZGdyglUkn3VEk99bSIrnsw==
X-Google-Smtp-Source: ABdhPJy+9PIEEmoG1K+apumIIB6u5jPy86zQvau8grZa3deREb5UfQ0/jgUuXEuE3O/P03i0dsgLbg==
X-Received: by 2002:a5d:6d48:: with SMTP id k8mr2072000wri.93.1617177101329; Wed, 31 Mar 2021 00:51:41 -0700 (PDT)
Received: from [192.168.1.202] (public-gprs409405.centertel.pl. [37.47.230.126]) by smtp.googlemail.com with ESMTPSA id n9sm2824142wrx.46.2021.03.31.00.51.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 Mar 2021 00:51:40 -0700 (PDT)
To: =?UTF-8?B?w4FuZ2Vs?= <angel@16bits.net>
References: <87eeg42gti.fsf@fifthhorseman.net> <f26e29d001224fc09e587b696416188a6fb6cc41.camel@16bits.net>
Cc: openpgp@ietf.org
From: Wiktor Kwapisiewicz <wiktor@metacode.biz>
Organization: Metacode
Message-ID: <bcffbe40-fd7d-cebf-3c17-087228ce3199@metacode.biz>
Date: Wed, 31 Mar 2021 09:51:43 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0
MIME-Version: 1.0
In-Reply-To: <f26e29d001224fc09e587b696416188a6fb6cc41.camel@16bits.net>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/cyaGxGuAzSN-ZUSm6Fi_64Bh0EM>
Subject: Re: [openpgp] Algorithm-specific data: problems with Simple Octet Strings, and possible alternatives
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 31 Mar 2021 07:51:50 -0000

Hi Ángel,

Just a minor note from me reading the MPI section:

On 26.03.2021 03:44, Ángel wrote:
> Spurious leading zeroes (e.g. [00 09 00 00 00 01 FF]) are not allowed
> now.

If by "now" you mean MPIs then a careful reading of "3.2. 
Multiprecision Integers" [0] reveals that was is forbidden is counting 
leading zeros in length. If the length is properly computed ("starting 
from its most significant non-zero bit") then there is nothing that 
prevents implementations from inserting zero bytes between length and 
the first non-zero byte.

[0]: https://tools.ietf.org/html/rfc4880#section-3.2

Example:

"Thus, the MPI [00 02 01] is not formed correctly.  It should be [00 01 
01]."

But there is no rule that prevents [00 01 00 01] from being valid.

Kind regards,
Wiktor

