Which GnuPG functions depend on RSA and elliptic-curve keys

GnuPG's default new keys still use RSA or Curve25519 algorithms, and post-quantum Kyber subkeys are available only as an opt-in in the 2.5 series.

On this page

Which GnuPG functions depend on RSA and elliptic-curve keys today

By default, GnuPG key generation still produces RSA keys (rsa2048 or rsa3072, according to the --default-new-key-algo manual page checked on 2026-12-04) or the planned ed25519 and cv25519 pairing, and post-quantum Kyber encryption subkeys exist only as an opt-in in the 2.5 series. Security leads running GnuPG 2.5.x should confirm which version line each workstation, build server and signing host runs, since the 2.5.22 announcement of 2026-08-31 introduced Kyber (ML-KEM) as a PQC encryption algorithm. Branch 2.4 reached end-of-life on 2026-06-30 according to the download page checked on the same date, and branch 2.2 ended on 2024-12-31, so systems on those lines will receive no further updates and need a plan.

Anyone who creates keys should be aware that a Kyber subkey is requested explicitly, through gpg --quick-generate-key with the pqc algo value, or through addkey with a Kyber variant. The same manual says pqc9980 is accepted only when --allow-9980 is given. The sources do not say that any post-quantum algorithm has become a default for new keys. Kyber covers encryption only. The 2024 Koch post says quantum-resistant signature schemes were not yet available, and the sources listed on this page do not say that signatures, certificates or key server operations have gained post-quantum support. Treat signing keys, certificates and keyserver lookups as classical in any inventory, and confirm the current status with the GnuPG project before drawing conclusions.

Before deciding on an opt-in, confirm three things: the exact release on each host, whether downstream tools you depend on can read composite Kyber keys (the manual says Kyber keys are implemented as a composite key, and that --export-options=mode1003 can force a GNU-specific extension), and whether your key exchange partners run versions that handle Kyber subkeys. The sources do not name those partners' versions, so confirm them directly with each partner before relying on Kyber encryption across organizational boundaries.

Which GnuPG functions use public-key algorithms, by version line

This table compares GnuPG version lines 1.4, 2.2, 2.4, 2.5 and 2.6 against the functions that rely on public-key cryptography, such as key generation, SSH agent use and keyserver lookups. Read each row for what the cited sources state and the date of each source, and treat any cell that says the sources do not address post-quantum status as something to confirm with the vendor. The main takeaway is that post-quantum key support appears only from the 2.5 line onward, and the sources do not show it as the default.

FunctionVersion lines and what the sources sayPost-quantum status in the sources
Default key generationThe gpg manual gives the current default as rsa2048 for signing and certification with rsa2048 for encryption, or rsa3072 (manual page checked 2026-12-04). It names ed25519 and cv25519 as the planned future default.The sources do not state that a post-quantum algorithm is a default for new keys.
Kyber subkeys (2.5 line)The 2.5.22 announcement (2026-08-31) introduces Kyber, also called ML-KEM or FIPS-203, as a PQC encryption algorithm. The 2.5.12 announcement (2025-09-02) adds Kyber variant selection through addkey.Kyber is a post-quantum key-encapsulation method for encryption subkeys in the 2.5 line. The sources do not address signature schemes.
Composite keys (2.5 line)The gpg manual says Kyber keys are implemented as a composite key. A 2024 post by Werner Koch names composites such as ky1024_cv448 (ML-KEM-1024 with X448), but says the full set shipped was not yet listed.Composite Kyber keys are post-quantum for the encryption part. The sources do not list every composite in current releases.
Key generation with pqc (2.5 and 2.6 lines)The manual states that --quick-generate-key accepts algo values default, future-default and pqc, and that pqc yields a quantum-resistant encryption subkey. The pqc9980 value requires --allow-9980.The sources describe pqc as quantum-resistant for the encryption subkey only. The 2.6 line status is described only as LTS with no PQC change noted beyond 2.4 behavior.
SSH agent use (all lines)The gpg-agent manual says the OpenSSH agent protocol is always enabled on Unix and SSH_AUTH_SOCK is set only with enable-ssh-support. Keys are used for SSH only when listed in sshcontrol or marked Use-for-ssh.The sources do not say whether SSH authentication with GnuPG keys uses post-quantum algorithms.
Keyserver and OCSP lookups (all lines)The dirmngr manual says there has been no default keyserver since 2.5.3, and hkps uses system CAs unless hkp-cacert is set. OCSP requests are rejected unless --allow-ocsp is set.The sources do not say whether keyserver or OCSP connections use post-quantum algorithms.
Compliance mode (all lines)The compliance manual says the default is --gnupg. In de-vs mode, --min-rsa-length can make 2048-bit RSA and DSA keys non-compliant, for example with a value of 3000.The sources do not state that compliance mode accepts or requires post-quantum algorithms.
Version lines 2.2 and 2.4 (end of life)The download page gives end-of-life dates of 2024-12-31 for 2.2 and 2026-06-30 for 2.4 (checked 2026-12-04). The 2.5.22 announcement says 2.4 will receive no more updates.The sources do not describe Kyber or other post-quantum support in 2.2 or 2.4.
Version line 1.4 (legacy)The download page lists 1.4.23 (dated 2018-06-11) as the legacy 1.4 release.The sources do not describe post-quantum support in the 1.4 line.

Which GnuPG components depend on RSA and ECC keys

GnuPG uses public-key cryptography in several places: OpenPGP key pairs, the agent's SSH support, signature validation rules, and the network tools that fetch keys and check certificates. The sources below state how each component depends on RSA or elliptic-curve keys and where they stay silent, so you know what to confirm in your own configuration.

OpenPGP primary keys and subkeys

A GnuPG key pair has a certification and signing primary key plus encryption subkeys. The default for new keys is RSA 2048 for certify and sign, with RSA 2048 for encryption, and the manual also names RSA 3072 and the planned future default of Ed25519 with Curve25519. Check each key's algorithm with gpg --list-keys --with-colons before assuming what it uses. The sources do not say how many existing keys still use RSA.

Esoteric options manual

Post-quantum encryption subkeys

The manual says --quick-generate-key accepts the algorithm value pqc, which yields a key with a quantum-resistant encryption subkey, and that Kyber is implemented as a composite key. Kyber keys can be imported, exported and protected in the agent from version 2.5.14. The sources do not say that any post-quantum algorithm is the default for new keys, and they do not list every composite shipped in current releases.

Key management manual

Agent SSH support and sshcontrol

When enable-ssh-support is set, gpg-agent sets SSH_AUTH_SOCK and serves SSH keys. Only keys whose 40-hex-digit keygrip appears in the sshcontrol file are used for SSH. The manual calls that file deprecated in favor of a Use-for-ssh attribute in the key files. Check which mechanism your agent uses, since the sources do not say what the algorithm of an SSH key must be.

Agent configuration manual

Third-party signatures and SHA-1

The gpg manual states that third-party key signatures made with SHA-1 are treated as invalid by default. The --allow-weak-key-signatures option overrides that behavior. Review any use of that override in scripts or team configuration, since the sources do not describe its effect on RSA or elliptic-curve signatures in other cases.

Esoteric options manual

Dirmngr and hkps certificate checks

The dirmngr manual says there has been no default keyserver since version 2.5.3. Without an hkp-cacert directive, dirmngr verifies hkps TLS certificates against the system CAs. Those certificates use the public-key algorithms of the server's chain, which the sources do not describe. Confirm which trust store and keyserver your deployment uses.

Dirmngr options manual

OCSP checks in dirmngr

OCSP requests are rejected by default unless --allow-ocsp is set. The defaults are 600 seconds for --ocsp-max-clock-skew and 7776000 seconds (90 days) for --ocsp-max-period. The sources do not say which public-key algorithms OCSP responders in this path must use. Confirm with your certificate authority before enabling OCSP in a regulated environment.

Dirmngr options manual

How the answer changes for new keys, existing keys and SSH use

When you generate a key with no algorithm option, the answer comes from the default setting, not from a post-quantum choice. The GnuPG manual for --default-new-key-algo gives the current default as rsa2048/cert,sign+rsa2048/encr (or rsa3072), and names ed25519/cert,sign+cv25519/encr as the planned future default. The manual does not state that a post-quantum algorithm is the default for new keys, so a key created this way depends on RSA or elliptic-curve public-key cryptography.

  • Current default: rsa2048/cert,sign+rsa2048/encr, or rsa3072, as listed in the manual checked on 2026-12-04.
  • Planned default: ed25519/cert,sign+cv25519/encr, named as the future default, with no date given in the sources.
  • Unattended generation: Key-Type sets the primary algorithm, Key-Length applies to RSA, and Key-Curve is required for ECC keys.
  • Default length source: the Key-Length default is taken from gpg --gpgconf-list on your system, so check that output on each host.

Confirm the default on each installed version with gpg --gpgconf-list and the --default-new-key-algo setting in your configuration.

What to check in your GnuPG estate first

This sequence establishes which GnuPG installations, keys and agent settings exist before any post-quantum decision is made. Its output is a dated inventory that shows which systems depend on RSA and elliptic-curve keys and which items remain unknown. Run it on each workstation, build host and server that uses gpg.

  1. Confirm installed versions and branches

    Record the GnuPG version on every system with gpg, gpg-agent or dirmngr installed, and note the branch each one belongs to. Compare each branch against the end-of-life dates on the GnuPG download page as checked on 2026-12-04: branch 2.2 ended on 2024-12-31 and branch 2.4 ends on 2026-06-30, while branches 2.5 and 2.6 are Long Term Support with the end-of-life date still to be announced. Mark any system on an ended branch as a priority item. This step is closed when every system has a version and branch recorded in the inventory.

  2. List existing key algorithms and subkeys

    For each keyring, run gpg --list-keys with the algorithm and usage columns visible, and record the primary key algorithm, each subkey algorithm and each subkey's capability (sign, encrypt, certify, authenticate). Note any RSA key size and any ECC curve. The sources here do not state how many keys a typical estate holds, so count your own. This step is closed when every keyring has a complete list of primary keys and subkeys with algorithms recorded.

  3. Check which keys are used for SSH

    On each system where gpg-agent provides SSH, check whether enable-ssh-support is set and whether SSH_AUTH_SOCK points at the agent socket. The gpg-agent manual says that only keys listed in the sshcontrol file, identified by their 40-hex-digit keygrip, are used for SSH, and that the file is deprecated in favor of a Use-for-ssh attribute in the key files. Record which keys are authorized for SSH on each host, and confirm which mechanism your version reads. This step is closed when every SSH-enabled host has its authorized keygrips listed.

  4. Confirm agent and dirmngr configuration

    Read gpg-agent.conf and dirmngr.conf on each system and record the values that affect public-key use: the default cache time-to-live, the minimum passphrase length, the s2k count calibration, whether OCSP is enabled through allow-ocsp, and which keyserver or hkps CA settings apply. Where a value is not set in the file, record the default shown in the manual and mark it as inherited. The sources here do not say how these settings interact with your own policy, so confirm that with your security team. This step is closed when each host's agent and dirmngr settings are written down.

  5. Check compliance and signature policy settings

    Record whether any system sets the compliance option, a minimum RSA length, or allow-weak-key-signatures. The gpg compliance manual states that the default mode is --gnupg and that --min-rsa-length and --require-compliance apply in de-vs mode, where a value of 3000 makes 2048-bit RSA and DSA keys non-compliant. Note any override of the default SHA-1 treatment for third-party key signatures. This step is closed when each host's compliance mode and signature overrides are recorded.

  6. Record the default for new keys

    Run gpg with the default-new-key-algo option and record what new keys would get on each installed version. The manual page, checked on 2026-12-04, gives the current default as rsa2048 or rsa3072 with an encryption subkey, and names ed25519 with cv25519 as the planned future default. The manual does not state that a post-quantum algorithm is the default for new keys, so confirm with the vendor if you need that point. This step is closed when the new-key default is recorded for every version in use.

  7. Record what is unknown

    List every item that the earlier steps could not confirm, such as a system with no readable configuration, a keyring whose owner is unknown, or a setting whose effect your version does not document. Assign each item an owner and a next action, and state the source you will check, whether the vendor, the product documentation or your own testing. Do not fill a gap with an assumption. This step is closed when the unknowns list has an owner and a source against each entry.

What the sources do not say about GnuPG post-quantum signatures and defaults

The sources document post-quantum encryption in GnuPG 2.5 but leave several signature, default and option questions open. Each card names one gap and what to ask the GnuPG Project or your vendor before you record an answer for Which GnuPG functions depend on RSA and elliptic-curve keys.

Whether a post-quantum signature scheme exists

The 2024 Kyber specification post says quantum-resistant signature schemes were not yet available in GnuPG and calls them far less urgent than encryption. The sources reviewed do not say whether a post-quantum signature algorithm has been added in any release since. Keys used for signing, including release signatures and package signatures, still rely on RSA or elliptic-curve keys unless the sources say otherwise. Ask the GnuPG Project for the current status of post-quantum signing and the release in which it would ship.

Kyber specification post

The full set of composite curves

The 2024 post gives names such as ky1024_cv448, which pairs ML-KEM-1024 with X448, but says the curve to pair with ML-KEM-768 was still open. The sources do not list every composite shipped in current releases. Before you rely on any composite in a key inventory, confirm the complete list for the exact version you run with gpg --version and the manual. Ask the GnuPG Project to publish that list with the release it applies to.

GnuPG manual commands

Post-quantum defaults for new keys

The manual for --default-new-key-algo names rsa2048/cert,sign+rsa2048/encr (or rsa3072) as the current default and ed25519/cert,sign+cv25519/encr as the planned future default. The manual does not state that any post-quantum algorithm is a default for new keys. The pqc value for --quick-generate-key is an explicit choice, not a default. Confirm with the GnuPG Project whether a post-quantum default is planned and in which release, and check your own --default-new-key-algo setting.

GPG esoteric options

The --require-pqc-encryption option

The 2024 post floated a possible --require-pqc-encryption option to force quantum-resistant encryption once deployment is wide. The post describes it as a proposal, not a documented option. The sources reviewed do not show it in the manual or any release announcement. Do not write a configuration that uses it. Ask the GnuPG Project whether the option exists in your version and, if not, whether it is planned.

Kyber details in the 2.6 series

The 2.5.22 announcement says the 2.6 series will not differ much from 2.4 apart from PQC support, and that 2.4 has reached end of life. The sources do not give the full Kyber feature set, the supported variants or the upgrade path for 2.6. The download page lists branch 2.6 as Long Term Support with its end-of-life date to be announced. Ask the GnuPG Project for the 2.6 Kyber feature list, its variant set and its release dates before you plan a branch change.

2.5.22 announcement

What can go wrong when moving GnuPG keys toward Kyber

The first risk is that a new key does not get a post-quantum encryption subkey unless someone asks for one. The GnuPG manual says gpg --quick-generate-key accepts the algo values "default", "future-default" and "pqc", and only "pqc" yields a key with a quantum-resistant encryption subkey. The manual's page on --default-new-key-algo, checked on 2026-12-04, gives the current default as RSA (rsa2048 or rsa3072) and names an Ed25519 and Curve25519 pairing as the planned future default. Confirm the algorithm on every key your teams generate, for example by checking the output of gpg --list-keys for the subkey type, because a key created with the default settings stays RSA or ECC.

The second risk is the release branch. On 2026-12-04 the GnuPG download page listed 2.5.24 as the current stable release and 1.4.23 as the legacy 1.4 release, with end-of-life dates of 2024-12-31 for branch 2.2 and 2026-06-30 for branch 2.4. The 2.5.22 announcement says 2.4 has reached end-of-life and will receive no more updates. Installations on 1.4, 2.2 or 2.4 therefore cannot take Kyber support, and a host on any of them needs an upgrade path to a supported branch before any key change. The same announcement says the 2.6 series will not differ much from 2.4 apart from PQC support, so teams on 2.4 should plan the move to 2.5 or 2.6 rather than waiting for a fix.

The third risk is client compatibility. The sources do not state which older clients can read Kyber keys beyond saying that Kyber support arrived in the 2.5 series, so a 2.4 or earlier client should be assumed unable to read them until the vendor or your own test shows otherwise. Keep an inventory of the GnuPG versions used to encrypt to, verify and import your keys, and test a Kyber-enabled key with each before publishing it. Also note that a SHA-1 third-party key signature is treated as invalid by default, and that --allow-weak-key-signatures overrides that. Do not turn the override on across a fleet to clear errors without first finding which keys produce them.

Is GnuPG quantum safe, and which version do I need

Is GnuPG quantum safe today?

The sources do not support calling GnuPG quantum safe. The GnuPG project publishes no compliance, validation or quantum-safety claim for the product as a whole, and the sources do not say so. What the sources do support is narrower: GnuPG 2.5 added Kyber, the algorithm the 2.5.22 announcement names as "aka ML-KEM or FIPS-203", as a post-quantum encryption option. Post-quantum signature schemes were not yet available according to a May 2024 post by Werner Koch. So the accurate answer is that GnuPG offers post-quantum encryption in the 2.5 line, that the default for new keys is still RSA or Curve25519 based, and that a post-quantum key exists only where someone generated one. Confirm the current state of each algorithm with the project before recording an answer in your inventory.

Which GnuPG version introduces Kyber support?

The 2.5 series introduces Kyber. The GnuPG 2.5.22 announcement of 2026-08-31 lists "the introduction of Kyber (aka ML-KEM or FIPS-203) as PQC encryption algorithm" among the main features of the 2.5 series. Support has since been extended in later 2.5 releases: the 2.5.12 announcement of 2025-09-02 says gpg --edit-key addkey lets users select the Kyber variants, and the 2.5.14 announcement says Kyber secret keys can now be imported and exported and are protected in the agent. The sources on this page do not say whether Kyber exists in the 2.4 or 2.2 branches. Those branches are end-of-life: the download page gives 2026-06-30 for 2.4 and 2024-12-31 for 2.2, and the 2.5.22 announcement says 2.4 will receive no more updates. Check the exact 2.5 point release you run, because each announcement adds behavior the earlier release lacks.

Which GnuPG version should I run now?

Run a 2.5 release. The download page of 2026-12-04 lists 2.5.24, dated 2026-09-23, as the current stable release. It also lists branches 2.5 and 2.6 as Long Term Support, with the end-of-life date still to be announced, while 2.4 has reached its end-of-life date and 2.2 ended in 2024. The legacy 1.4.23 release, dated 2018-06-11, should not be the base for a post-quantum plan. The 2.6 series, according to the 2.5.22 announcement, does not differ much from 2.4 apart from PQC support, so a 2.6 move mainly adds the post-quantum features rather than changing how you run the product. Before you commit, confirm the release your distribution packages, since a distribution may ship a patched older build that does not match the upstream version numbers.

Does GnuPG post-quantum support cost extra?

The sources do not state any price for GnuPG, and GnuPG is free software licensed under the GNU General Public License, according to the home page checked on 2026-12-04. So the software itself carries no license fee. Cost comes from the work around it: the time to upgrade hosts from end-of-life branches, to regenerate or add keys, to change import and export procedures, to test signing and decryption against partners, and to document the change. Those costs are one-time for the upgrade and recur only when you rotate keys or follow new releases. Who pays depends on whether your own staff do the work or an outside firm does, and a quote should show each piece separately. Ask for the hours, the systems in scope and the test plan, and ask whether the price includes retesting after the next release.

What breaks when I move GnuPG to post-quantum keys?

The sources name several points where behavior changes, and the list below covers what they support:

  • Key generation: gpg --quick-generate-key accepts the algo values "default", "future-default" and "pqc", and "pqc" yields a key with a quantum-resistant encryption subkey. A key made this way is not readable by software that does not understand the Kyber composite format.
  • Key export: the manual says Kyber keys are implemented as a composite key, and that --export-options=mode1003 forces a GNU-specific extension for all key types. Recipients who do not run a compatible build may fail to import the result.
  • Signatures: third-party signatures made with SHA-1 are treated as invalid by default, and --allow-weak-key-signatures overrides that.
  • Keyservers: no default keyserver exists since 2.5.3, and dirmngr uses system CAs for hkps unless hkp-cacert is set.

Test each of these against the partners and archives that rely on your keys before you change anything.

What should I ask the GnuPG project or my distributor?

The GnuPG project publishes release announcements and manuals, and the sources on this page do not include a formal roadmap or a vendor notice on post-quantum transition timing, so confirm that directly. Ask whether the project plans to add post-quantum signature schemes, since Koch described them in 2024 as not yet available and less urgent than encryption. Ask whether the planned --require-pqc-encryption option will be documented, because the sources show it only as a proposal. Ask for the end-of-life date of branch 2.5 and of 2.6, which the download page leaves to be announced. Ask your distributor which build it ships, whether it includes the Kyber patches, and how it backports security fixes. Record the answers with their dates, because each depends on a release that can change.

Can my team do the GnuPG post-quantum work ourselves?

Yes, if your team already runs GnuPG for signing, encryption or key servers and has time to test. The work is mostly configuration, key management and testing rather than new code. The steps are to upgrade hosts to a 2.5 release, decide which keys need a post-quantum encryption subkey, generate or add those keys using the documented pqc value, and check that every partner who decrypts your data can read the result. Outside help is worth considering when many systems depend on your keys, when archives must stay decryptable for years, or when your staff lack time to rerun tests after each release. DeployOpen plans, implements, tests and documents self-hosted open-source platforms inside a client's own infrastructure, and most engagements are fixed-scope with the scope agreed in writing before work starts. DeployOpen does not publish a price list, and a quote follows from that written scope.

How DeployOpen helps plan GnuPG post-quantum work

DeployOpen approaches the question of which GnuPG functions depend on RSA and elliptic-curve keys by mapping each data flow and login path to the key types it uses, then checking those settings against the current release and its documented options. The output is a written inventory that your security team can review and record.

How we scope

  • Agree in writing which GnuPG installations, keyrings, key servers and signing workflows fall inside the engagement.
  • Confirm which GnuPG versions are in use, since the 2.4 branch has reached end of life and 2.5 and 2.6 are Long Term Support.
  • Engagements are fixed-scope, with deliverables and timelines set out in the written agreement before work starts.

How we build

  • Check key generation defaults, subkey types and the algo values your workflows use against the GnuPG manual.
  • Review the dirmngr, gpg-agent and SSH settings that decide which keys are used for which protocol.
  • Document each finding with the GnuPG version, option name and the manual page it was checked against.

How we hand over

  • Deliver an inventory listing each function, the public-key algorithm it relies on and the setting that controls it.
  • Record which post-quantum options exist in your installed version and which are still proposals or undocumented.
  • Flag items that need confirmation with the GnuPG project or your own testing before you rely on them.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after the handover.
  • Retesting can be scheduled when you upgrade GnuPG or change key generation and export settings.
  • Ask any provider you evaluate for the written scope, deliverables and the exact GnuPG versions the work covers.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.