[openpgp] Re: I-D list for Open Specification for Pretty Goo d Privacy notification: Changes to draft-gallagher-openpgp-code -point-exhaustion

Justus Winter <[email protected]>
Newsgroups gmane.ietf.openpgp
Message-ID <[email protected]>
Andrew Gallagher <[email protected]> writes:

>> Then, you couldn't use multi-byte code points in any existing packet
>> version, because that would turn what every software on this planet
>> expects to be a fixed-size field into a variable-sized field, and
>> failing to understand the scheme leads to catastrophic loss of parser
>> synchronization (maybe with security implications).
>
> The use of octets >=128 for the extension scheme ensures that parser
> desynchronisation always results in the emission of an unallocated
> code point. In most cases the remainder of the packet is not parseable
> even in principle if the code point is unknown, and in the rest the
> errors are minor, with no security implications.

In Sequoia, we explicitly model unknown values, and parse and roundtrip
artifacts with unknown values just fine.  I strongly believe that this
principle has resulted in a very robust and forward-compatible
implementation.

And, I have identified aspects of RFC4880 where it was impossible to
parse (parts) of packets unless you knew the algorithms used in the
artifact.  Notably, it is not possible to compute the fingerprint of
secret key packets unless you know the key packet's asymmetric
algorithm.

I made an effort to avoid this and similar problems in RFC9580.

> I checked the wire format of every packet and subpacket that contains
> a code point, and the results are listed in section 5 of the
> document. If I have missed anything, please let me know!

Your proposal breaks computing the fingerprint of secret key packets
again unless the implementation understands your multi-byte encoding.
I consider that a regression.

I'm going to strongly push back on anything that makes parsing OpenPGP
artifacts impossible unless you know some as of yet unknown algorithm or
encoding scheme.  That is a nightmare for forward-compatibility.

I don't believe in the argument "well if you don't understand this part
here, you cannot use the packet anyway, so you might as well model the
rest as opaque bytes".


Best,
Justus

_______________________________________________
openpgp mailing list -- [email protected]
To unsubscribe send an email to [email protected]
signature.asc (application/pgp-signature, 584 B)
-----BEGIN PGP SIGNATURE-----

wsC7BAEBCgBvBYJn2pp5CRCI3H4zOF95HUcUAAAAAAAeACBzYWx0QG5vdGF0aW9u
cy5zZXF1b2lhLXBncC5vcmeJX7VZkBBC3Luvn/LcgNH4q4vGm6IMAhkEsXAgeXPS
VBYhBCVqTlXkpy2XrSRo54jcfjM4X3kdAAB2Egf/RR1placr18yyO9RJRU3M5OHR
kzSGKqbJ5mAmLh9e9d5Ry7X395p2uy0c808MGKaUWyTHHofi+xZsC9Xelu13c8NU
tr29c6eoUsi2zfADdVz0xPitgNlsEJorMT05ppE+bPLoZfJwHWD9ig3gNyx1rUAe
qy3pqZ+c7hiP+EwLipSzZk2nmEY0rkUxxHGOro0H0g2H5aA6/3UnTlDA0jW45kIt
7NfEQHJOoarOCaW5Nn6iYubJ5MPCozNpu50NpO+oQfCCkSIh77x/vvF6684EyqPl
cUTgSKlcK/TTERHyksf/DU4HOQJdsvbxm+4httITXpGMtSyAivg6kAy3MC+k4Q==
=NIHU
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.