RFC 9580: OpenPGP modernised

Summary

In July 2024, Paul Wouters, Daniel Huigens of Proton, Justus Winter of Sequoia PGP and Yutaka Niibe published a thoroughly renewed version of OpenPGP in RFC 9580. The document replaces RFC 4880 from 2007 and introduces version 6 keys, authenticated encryption and Argon2 for passphrases. Ed25519 and X25519 are now mandatory, while new RSA keys should no longer be generated.

What is new

Version 6 keys use a 256-bit fingerprint based on SHA2-256. Encrypted data is protected with AEAD methods, with OCB mandatory for every implementation. Passphrases for secret keys can be derived with Argon2 from RFC 9106, which makes guessing attacks more expensive.

A new padding packet can obscure the size of messages and so hinder traffic analysis. Because version 4 fingerprints still need SHA-1, the RFC allows detecting and rejecting inputs from known SHA-1 collision attacks.

A split ecosystem

Not all major implementations follow the new standard. Werner Koch, developer of GnuPG, announced the LibrePGP project in November 2023, which pursues an older draft for revising RFC 4880; LWN.net described this in December 2023 as a schism in the OpenPGP world.

LibrePGP justified the move by saying users expected long-term stability rather than disruptive changes. For users this means that new keys and messages are not equally interchangeable with every piece of software.

Ideas

  • Version 6 keys bring a 256-bit fingerprint.
  • AEAD protects confidentiality and integrity in one step.
  • OCB is the mandatory AEAD mode for all implementations.
  • Argon2 protects secret key passphrases against guessing attacks.
  • Ed25519 and X25519 are mandatory algorithms.
  • A padding packet hinders inferences from message sizes.

Insights

  • A standard for long-term formats must weigh modernisation against compatibility with millions of existing keys.
  • When major implementations do not adopt a standard, practice rather than the document decides interoperability.

Facts

  • RFC 9580 appeared in July 2024 as a Proposed Standard and is 166 pages long.
  • It obsoletes RFC 4880, RFC 5581 on Camellia and RFC 6637 on elliptic curves.
  • Version 6 fingerprints are 256-bit SHA2-256 values.
  • Implementations must support AES-128, SHA2-256 and OCB.

References

Remarks

  • Appendix A contains sample keys and messages for versions 4 and 6 that implementations can use to test their interoperability.

Recommendations

  • Before switching to version 6 keys, check which programs the other side uses.
  • Replace old RSA and DSA keys with Ed25519/X25519 in a planned way.
  • Protect secret key passphrases with Argon2 on the next export where the software offers it.

Read the RFC at the RFC Editor

Search the Web Archive

Found a mistake or have something to add? Get in touch.