SecurityInnovation / PGPy

Pretty Good Privacy for Python
BSD 3-Clause "New" or "Revised" License
313 stars 98 forks source link

Improve forward compatibility #442

Open dkg opened 1 year ago

dkg commented 1 year ago

These tests are pulled from the OpenPGP Interoperability Test Suite, in particular from those tests tagged "forward-compat":

https://tests.sequoia-pgp.org/?q=forward-compat

These failures make it difficult to use PGPy in an OpenPGP ecosystem that can evolve, because PGPy will complain about OpenPGP objects that contain something it doesn't understand, even though the rest of the message is otherwise comprehensible and usable.

See Justus Winter's message to openpgp@ietf.org describing his concerns:

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

I've selected specific examples that PGPy is known to currently fail with.


This series should make all the new tests pass, which should also improve the score of PGPy on the interop test suite.

dkg commented 1 year ago

These changes also include some (hopefully positive) side effects: