Skip to content

Draft: openpgp: Make IntendedRecipient and IssuerFingerprint roundtrippable.

Nora Widdecke requested to merge nora/820 into main

openpgp: Make IndendedRecipient and IssuerFingerprint roundtrippable.

  • When parsing an Intended Recipient or Issuer Fingerprint subpacket, the version field is only preserved ifs value is 4. The subpacket is stored as a Fingerprint, which has V4 and Invalid variants, but Invalid does not store an associated version.

  • Fix by adding a new Fingerprint::Unknown{version, fingerprint} variant, that replaces Fingerprint::Invalid.

  • Quickcheck found a case that demonstrates the issue, use that as a test.

  • Fixes #820.

Edited by Nora Widdecke

Merge request reports