Post-quantum migration · Language runtimes

Post-quantum cryptography in Java, Go, Node.js, Python and Rust

Every mainstream runtime now ships NIST's post-quantum algorithms, but each added them in a different release and with different defaults. This page sets out, stack by stack, which version gives you ML-KEM, ML-DSA and hybrid TLS by default, and what we change in your code base to get there.

JDK 24first Java release with ML-KEM (JEP 496) and ML-DSA (JEP 497)
JDK 27first Java release with hybrid TLS 1.3 key exchange by default (JEP 527)
Go 1.24crypto/mlkem added and X25519MLKEM768 on by default in crypto/tls
2030OpenSSL 3.5, the LTS that brought ML-KEM and ML-DSA, is supported until April 2030
Watch and download

Post-quantum migration in a few minutes

AI warning on cryptography: post-quantum migration explained (1:48) The 2 December joint statement, the deadlines, where RSA and ECC hide, and the five steps. Watch on YouTube
AI advances and cryptography: plan your post-quantum migration now (1:30) Why the 2 December warning matters for every stack, and what a migration involves. Watch on YouTube

The video loads from YouTube (youtube-nocookie.com) only when you press play.

Two separate jobs: key exchange and signatures

Post-quantum migration in application code splits into two pieces of work. The first is key establishment: TLS connections and any code that wraps keys or agrees secrets, which should move to ML-KEM (FIPS 203), usually in a hybrid with X25519. This is urgent because recorded traffic can be decrypted later. The second is signatures: code signing, JWTs, document signing and certificates, which move to ML-DSA (FIPS 204) or the hash-based SLH-DSA (FIPS 205). That is less urgent for data in transit, but signing keys and the systems that verify them last a long time.

For most teams, the first job is mainly a runtime upgrade, because the TLS stack in each runtime now does hybrid key exchange by default. The second job touches your own code, key management and the partners who verify your signatures. The details by stack follow.

PQC library support: the stack matrix

The table gives the first release of each runtime or library with each capability, taken from the vendors' own release notes. A dash means there is no such release yet in that runtime's standard library or core package.

First version with each capability (facts checked 2 December 2026)
Runtime / libraryML-KEMML-DSAHybrid TLS by default
Java (OpenJDK)JDK 24 (JEP 496)JDK 24 (JEP 497)JDK 27 (JEP 527)
Go standard library1.24 (crypto/mlkem)1.27 (crypto/mldsa)1.24 (X25519MLKEM768)
Node.js24.7.0 (crypto.encapsulate)24.7.0 (crypto.sign)24.5.0 and 22.20.0
Python, pyca/cryptography48.0.0 with OpenSSL 3.5 (47.0.0 on AWS-LC/BoringSSL)48.0.0 with OpenSSL 3.5 (47.0.0 on AWS-LC/BoringSSL)Not in the package: TLS comes from the ssl module and its OpenSSL
Rust, rustlsIn TLS via the aws-lc-rs providerDepends on the crypto provider crate0.23.27 (aws-lc-rs provider)
OpenSSL (C, and anything linking it)3.5.03.5.03.5.0
Bouncy Castle Java1.791.79-
Bouncy Castle C# / .NET2.5.02.5.0-

In Java, hybrid TLS by default arrived in a non-LTS release: JDK 27, not the JDK 25 LTS.

Post-quantum cryptography in Java

JDK 24 (March 2025) delivered ML-KEM through JEP 496 and ML-DSA through JEP 497. ML-KEM is used through the KeyPairGenerator and the KEM API added in JDK 21, with ML-KEM-768 as the default parameter set; ML-DSA is used through KeyPairGenerator and Signature, with ML-DSA-44, ML-DSA-65 and ML-DSA-87. Both are in the JDK itself, so no third-party provider is needed.

Hybrid TLS is newer. JEP 527 added X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024 to the JDK's TLS 1.3 implementation in JDK 27, released on 15 September 2026, with X25519MLKEM768 first in the default list. Code that uses javax.net.ssl gets it without changes, and it can be tuned with the jdk.tls.namedGroups property or SSLParameters.setNamedGroups.

The catch is the release train. JDK 25 is the current long-term support release and has the JDK 24 algorithm APIs, but we have not found a backport of hybrid TLS to it. A Java estate on JDK 21 or 25 therefore has three options: move to JDK 27, terminate TLS in front of the JVM on a server that has hybrid support, or use a third-party TLS provider. We help you choose per service.

  • Our Java offer: inventory of JDK versions and crypto providers in use, upgrade plan for JDK 24+ APIs, a decision on hybrid TLS per service (JDK 27, TLS termination or provider), and replacement of RSA/ECDSA signing paths with ML-DSA where the verifiers can follow.

Go: ML-KEM by default since 1.24

Go has moved fastest. Go 1.24 (February 2025) added the crypto/mlkem package and turned on X25519MLKEM768 in crypto/tls whenever Config.CurvePreferences is nil; GODEBUG=tlsmlkem=0 turns it off for servers that mishandle large handshakes. Go 1.26 (February 2026) also enabled SecP256r1MLKEM768 and SecP384r1MLKEM1024 by default and added crypto/hpke with post-quantum hybrid KEMs.

Go 1.27 (August 2026) added crypto/mldsa, ML-DSA keys and signatures in crypto/x509, and ML-DSA signature schemes in TLS 1.3. The trap we look for in Go services is an explicit CurvePreferences list copied from an old hardening guide: it silently removes the hybrid default.

  • Our Go offer: toolchain upgrade to a supported release, a scan for hard-coded CurvePreferences and tlsmlkem=0, and ML-DSA adoption via crypto/mldsa on Go 1.27 where you sign tokens or artefacts.

Node.js: ML-KEM and ML-DSA through OpenSSL 3.5

Node.js 24.5.0 (July 2025) moved to OpenSSL 3.5, which brings hybrid TLS by default; Cloudflare's support list also gives 22.20.0 for the 22.x line. Node.js 24.7.0 (August 2025) added application-level APIs: ML-KEM through the new crypto.encapsulate() and crypto.decapsulate(), ML-DSA through the existing crypto.sign() and crypto.verify(), and both in the Web Crypto subtle API.

  • Our Node.js offer: move services to a supported 24.x line (or 22.20.0+ for TLS only), check for distribution builds that link a system OpenSSL older than 3.5, and implement ML-DSA signing for tokens, webhooks or artefacts through node:crypto.

Python: the cryptography package and your OpenSSL

In Python the algorithms and the TLS stack come from different places. The pyca cryptography package added ML-KEM and ML-DSA modules in 47.0.0 (April 2026) for AWS-LC and BoringSSL builds, and in 48.0.0 (May 2026) for OpenSSL 3.5 or later, which made them available in the standard wheels. Version 49.0.0 added signing of X.509 certificates, CSRs and CRLs with ML-DSA keys, and 50.0.0 accepts ML-DSA certificates in its verification APIs by default.

TLS in Python is handled by the standard library ssl module, using whichever OpenSSL the interpreter was built against. We check ssl.OPENSSL_VERSION on each runtime image and test the negotiated group, rather than assume it, because system Python on older distributions still links OpenSSL 3.0.

  • Our Python offer: upgrade cryptography to a release with the post-quantum modules, align base images on OpenSSL 3.5, and test the handshake from each service.

Rust, Bouncy Castle and the C/C++ world

rustls supports X25519MLKEM768 through its aws-lc-rs crypto provider and, since 0.23.27 (May 2025), prefers it by default. Other hybrid groups, such as SecP256r1MLKEM768, are available but not offered by default. Services built on the ring provider need a provider change to get the hybrid.

Bouncy Castle added ML-KEM, ML-DSA and SLH-DSA in Java 1.79 (October 2024) and C# .NET 2.5.0 (December 2024). It is the usual route for older JVMs that cannot move to JDK 24 and for .NET code that needs SLH-DSA; for current .NET see our .NET 10 page. C and C++ code that links OpenSSL gets all three algorithms with OpenSSL 3.5, the long-term support release to April 2030.

  • Our Rust and C/C++ offer: move rustls users to the aws-lc-rs provider and a current release, and upgrade OpenSSL-linked builds to 3.5, including statically linked and vendored copies.

Keys in the cloud: KMS support for ML-DSA

Signing keys should live in a key management service, and two of the large providers now hold post-quantum keys. AWS KMS added ML-DSA-44, ML-DSA-65 and ML-DSA-87 signing keys in June 2025, held in FIPS 140-3 Level 3 HSMs. Google Cloud KMS announced general availability of ML-DSA, SLH-DSA and ML-KEM in July 2026. We have not found a Microsoft announcement of native ML-DSA keys in Azure Key Vault, so for Azure estates we plan around what Microsoft has published.

Moving a signing workflow is rarely only a code change: every verifier, partner and long-lived artefact has to accept the new signature. That is why we start with the cryptographic inventory and sequence the work against the NCSC timeline and, where it applies, CNSA 2.0.

How a stack upgrade runs

  1. Inventory

    Runtimes, versions, crypto libraries and providers, TLS endpoints and signing keys across your repositories and images.

  2. Plan per stack

    For each service, the smallest change that gets hybrid TLS by default and the route to ML-DSA where you sign.

  3. Upgrade and test

    Runtime and library upgrades with your test suite, plus handshake checks against real clients and partners.

  4. Guard it

    CI checks that fail if a pinned curve list, an old OpenSSL or a classical-only signer comes back.

Engagements

Start with a free call, then a fixed-price assessment

Every migration starts by finding where your cryptography actually is. We work on any stack: .NET, Java, Go, Python, Node.js, PHP, Rust, C and C++, iOS and Android, cloud KMS, HSMs and PKI. Prices are fixed before work starts. BEK Service Ltd is not VAT registered, so no VAT is added.

Free readiness call

Free 30 minutes

A video call with an engineer. Tell us what you run; we tell you where your quantum-vulnerable cryptography most likely is, what the deadlines mean for you, and whether an assessment is worth it.

  • Your stacks, vendors and data lifetimes
  • Which deadlines apply to you
  • A straight answer on next steps
Book the free call

Migration and implementation

Quoted after the assessment

We do the work: runtime upgrades, crypto-agility layers, hybrid TLS, PQC signatures and key exchange, testing and the evidence your customers or auditors ask for.

  • Runtime and library upgrades on any stack
  • Hybrid ML-KEM key exchange, ML-DSA signatures
  • PKI, KMS and HSM changes
  • Regression and interop testing
  • Evidence pack for customers and auditors
Ask for a quote
  1. Discover

    Inventory every algorithm, key, certificate, library and protocol in scope.

  2. Prioritise

    Rank by how long the data must stay secret and how hard each change is.

  3. Upgrade

    Move runtimes and libraries to versions that support NIST's PQC standards.

  4. Implement

    Hybrid key exchange first, then PQC signatures, behind a crypto-agile layer.

  5. Evidence

    Test, document and hand over what your customers and auditors ask for.

FAQ

Questions we are asked

Which Java version do I need for post-quantum cryptography?

JDK 24 or later for the ML-KEM and ML-DSA APIs, so JDK 25 LTS has them. For hybrid post-quantum TLS by default in javax.net.ssl you need JDK 27, or TLS terminated in front of the JVM.

Is ML-KEM in Go on by default?

Yes. Since Go 1.24, crypto/tls offers X25519MLKEM768 by default when Config.CurvePreferences is not set. If your code sets that field, you must add the hybrid group yourself.

Does Node.js support ML-DSA?

Yes. Node.js 24.7.0 supports ML-DSA through crypto.sign() and crypto.verify(), and ML-KEM through crypto.encapsulate() and crypto.decapsulate(), on its bundled OpenSSL 3.5.

Do I need Bouncy Castle?

Only if you are on a runtime without native support, such as a JVM older than 24, or need an algorithm your runtime lacks. Where the standard library has it, we prefer the standard library.

Should we switch signatures to ML-DSA now?

Start with key exchange, because recorded traffic is the immediate risk. Plan signatures now and switch them when your verifiers can follow; long-lived signing keys and firmware or code signing come first.

Can you work on a mixed estate?

Yes. Most estates mix runtimes. We plan per service, upgrade in small, tested changes and leave CI checks behind so the result stays in place.

Sources

Facts checked against the sources below on 2026-12-02. Standards and product support change; tell us if something here is out of date. This page is general information, not legal or compliance advice.

  1. JEP 496: Quantum-Resistant Module-Lattice-Based Key Encapsulation Mechanism (OpenJDK, 2025-03-18)
  2. JEP 497: Quantum-Resistant Module-Lattice-Based Digital Signature Algorithm (OpenJDK, 2025-03-18)
  3. JEP 527: Post-Quantum Hybrid Key Exchange for TLS 1.3 (OpenJDK, 2026-09-15)
  4. Post-Quantum Hybrid Key Exchange for TLS 1.3 (inside.java (Oracle), 2026-02-17)
  5. Oracle releases Java 27 and strengthens post-quantum cryptography support (Oracle, 2026-09-15)
  6. Go 1.24 release notes (The Go Project, 2025-02)
  7. Go 1.26 release notes (The Go Project, 2026-02)
  8. Go 1.27 release notes (The Go Project, 2026-08)
  9. Node.js v24.5.0 (Node.js, 2025-07-31)
  10. Node.js v24.7.0 (Node.js, 2025-08-27)
  11. cryptography changelog (Python Cryptographic Authority, 2026-12-01)
  12. rustls releases (rustls, 2025-05-05)
  13. Latest NIST PQC standards and more: Bouncy Castle Java 1.79 (Bouncy Castle, 2024-10-31)
  14. NIST PQC support and more: Bouncy Castle C# .NET 2.5.0 (Bouncy Castle, 2024-12-04)
  15. OpenSSL 3.5 release notes (OpenSSL, 2025-04-08)
  16. Post-quantum support (client and library defaults) (Cloudflare, 2026-12-02)
  17. AWS KMS adds support for post-quantum ML-DSA digital signatures (AWS, 2025-06-13)
  18. Future-proofing data integrity: quantum-safe digital signatures in Cloud KMS (Google Cloud, 2026-07-29)
Talk to an engineer

Book your free 30-minute readiness call

Tell us what you run and what is driving the question: a customer questionnaire, a government contract, a regulator or your own roadmap. We reply within one working day with times for a call.

Prefer e-mail? Write to sales@bekservice.uk.

BEK Service Ltd, a software company registered in England and Wales (company no. 12590587). We use what you send only to answer you; see our privacy policy.