keepcalculator

06 Numbers and Powers

Post-Quantum TLS: Solved and Unsolved

Card No. 06·65995 · Updated · Standard formula, shown below

Average pace 5.00 min/km
Average speed
12.00 km/h
Result
Finish time
50 min
You entered
Distance
10 km
You entered
You enter
Finish time, Distance
You get
Average pace, Average speed
Rounding
2 dp

Post-quantum TLS (Transport Layer Security) refers to the integration of quantum-resistant cryptographic algorithms into the TLS protocol, which secures most internet communications. It has solved the immediate threat of “harvest now, decrypt later” attacks by making the handshake resistant to future quantum computers, but it has not yet solved the challenges of performance overhead, migration complexity, and the security of all TLS features. This article explains what post-quantum TLS has achieved, what remains unresolved, and what it means for you.

Background: Why TLS Needs Quantum Resistance

TLS is the cryptographic protocol that encrypts data between your browser and a website, ensuring privacy and integrity. It relies on two main types of cryptography: asymmetric (public-key) for the handshake, and symmetric (e.g., AES) for the bulk data. The asymmetric part is vulnerable to Shor’s algorithm, which a sufficiently powerful quantum computer could use to factor large integers and compute discrete logarithms, breaking RSA and elliptic curve cryptography (ECC) almost instantly.

This threat is not hypothetical for the future. Attackers can already record encrypted traffic and store it. Once a quantum computer is available, they could decrypt that stored data retroactively. This is the “harvest now, decrypt later” problem. Post-quantum TLS aims to replace the vulnerable asymmetric algorithms with ones that are believed to be secure against both classical and quantum attacks.

The National Institute of Standards and Technology (NIST) has been running a competition to standardize post-quantum algorithms. In 2024, they finalized three standards: ML-KEM (formerly CRYSTALS-Kyber) for key exchange, and ML-DSA (formerly CRYSTALS-Dilithium) and SLH-DSA (formerly SPHINCS+) for digital signatures. These are the algorithms that post-quantum TLS implementations are beginning to use.

What Post-Quantum TLS Has Solved

The core problem—protecting the handshake from quantum attacks—has been solved in principle. By using a hybrid key exchange that combines a classical algorithm (like ECDHE) with a post-quantum one (like ML-KEM), TLS can ensure that even if the quantum algorithm is later broken, the classical one still protects the session. This hybrid approach is already being deployed by major browsers and CDNs.

Specifically, post-quantum TLS has solved:

  • Key exchange confidentiality: The session keys are derived using a post-quantum algorithm, so a quantum computer cannot derive them from the handshake messages.
  • Forward secrecy: Because the key exchange is ephemeral (new per session), even if a long-term private key is compromised, past sessions remain secure. This property is preserved in hybrid designs.
  • Authentication (partially): Digital signatures in the certificate chain are being upgraded to post-quantum algorithms, preventing a quantum computer from forging a certificate. However, this is not fully solved for all legacy systems, as discussed below.

In practice, this means that a website using post-quantum TLS is safe from the “harvest now, decrypt later” attack. The recorded traffic cannot be decrypted by a future quantum computer because the key exchange used a quantum-resistant algorithm.

What Post-Quantum TLS Has NOT Solved

Despite the progress, post-quantum TLS is not a complete solution. Several significant challenges remain:

  • Performance overhead: Post-quantum algorithms have much larger keys and ciphertexts. For example, ML-KEM-768 public keys are 1184 bytes, compared to 32 bytes for X25519. This increases handshake size by several kilobytes, which can slow down connections on low-bandwidth networks and increase latency.
  • Migration complexity: Upgrading TLS stacks, libraries, and hardware (like hardware security modules) to support new algorithms is a massive undertaking. Many legacy systems may never be updated, leaving them vulnerable.
  • Certificate chain trust: While new certificates can use post-quantum signatures, the trust anchors (root CAs) are still classical. A quantum computer could forge a certificate from a root CA if that root is not upgraded. This is a long-term problem that requires global coordination.
  • Side-channel attacks: Post-quantum algorithms are new and may have implementation flaws that leak information. Constant-time implementations are harder to achieve for lattice-based schemes, and side-channel resistance is not fully proven.
  • Standardization gaps: Not all TLS features have post-quantum equivalents. For example, TLS 1.3’s session resumption (PSK) and early data (0-RTT) may not be fully protected by post-quantum algorithms yet.

In short, post-quantum TLS protects the handshake, but it does not solve the problem of legacy systems, performance, or the full lifecycle of certificate trust.

How Post-Quantum TLS Works

In a typical TLS 1.3 handshake, the client and server exchange key shares using ephemeral Diffie-Hellman (ECDHE). In post-quantum TLS, this is replaced or augmented with a key encapsulation mechanism (KEM) like ML-KEM. The client generates a KEM key pair, sends the public key, and the server encapsulates a shared secret, which the client decapsulates. Both sides then derive the same session key.

Hybrid designs combine both classical and quantum key exchange. For example, a client might send both an X25519 key share and an ML-KEM public key. The server combines both shared secrets into the key schedule. This ensures that if one algorithm is broken, the other still provides security. The TLS 1.3 specification allows for this through the use of groups, and the IETF has defined hybrid groups like X25519Kyber768.

For authentication, the server’s certificate is signed with a post-quantum signature algorithm (e.g., ML-DSA). The client verifies the signature using the post-quantum public key in the certificate. This prevents a quantum computer from impersonating the server, provided the certificate itself is valid and the root CA is trusted.

Choosing the Right Post-Quantum TLS Implementation

If you are a website administrator or developer, you need to decide when and how to deploy post-quantum TLS. Here are key factors to consider:

  • Compatibility: Ensure your TLS library supports the new algorithms. OpenSSL 3.5 and later, BoringSSL, and NSS have added support for ML-KEM and ML-DSA. Check your server software.
  • Hybrid vs. pure: Use hybrid key exchange (e.g., X25519Kyber768) to maintain compatibility with clients that do not support post-quantum yet. Pure post-quantum may break older clients.
  • Performance: Test the performance impact. Larger handshakes can increase latency, especially on mobile networks. Consider using connection resumption to mitigate.
  • Certificate management: You will need to obtain a post-quantum certificate from a CA that supports it. Not all CAs do yet. Consider using a hybrid certificate that includes both classical and quantum signatures.
  • Monitoring: Monitor your TLS handshake failure rates and performance metrics after deployment to catch any issues.

For most users, the transition will be transparent, as browsers and servers will negotiate the best common algorithm. But for administrators, planning is essential.

Common Problems and Misconceptions

One common misconception is that post-quantum TLS is already fully deployed and all traffic is safe. In reality, only a small fraction of websites use it, and many clients do not support it yet. Another misconception is that post-quantum algorithms are proven secure. They are believed secure, but they are new and may have undiscovered vulnerabilities.

Common problems include:

  • Handshake failures: Some middleboxes (firewalls, load balancers) may not handle the larger key shares, causing connection drops.
  • Increased latency: The larger handshake can add a round trip or increase packet size, especially on slow networks.
  • CPU overhead: Lattice-based algorithms are computationally intensive, though modern implementations are optimized. For high-traffic servers, this can be a concern.
  • Compatibility with TLS 1.2: Post-quantum algorithms are only defined for TLS 1.3. If you still support TLS 1.2, you cannot use them.

To avoid these issues, test in a staging environment, use hybrid modes, and gradually roll out.

Comparison: Post-Quantum TLS vs. Quantum Key Distribution (QKD)

Quantum key distribution (QKD) is often mentioned as an alternative. QKD uses quantum mechanics to exchange keys with unconditional security, but it requires dedicated hardware and point-to-point links. Post-quantum TLS, on the other hand, is software-based and works over existing infrastructure. QKD is not a drop-in replacement for TLS; it solves a different problem (key distribution) and is not practical for internet-scale use. Post-quantum TLS is the practical solution for securing the internet.

Costs and Safety Considerations

The cost of implementing post-quantum TLS is primarily in engineering time and infrastructure upgrades. There is no direct financial cost for using open-source libraries, but you may need to purchase new certificates or hardware if your current setup cannot handle the new algorithms. The safety benefit is clear: protecting data from future quantum attacks. However, there is a risk of introducing new bugs or compatibility issues. Therefore, it is crucial to follow best practices and test thoroughly.

Frequently Asked Questions

When will quantum computers break RSA?

No one knows for sure. Estimates range from 10 to 30 years, but it could be sooner. The threat is real enough that NIST has standardized post-quantum algorithms, and many organizations are already migrating.

Is my data safe now if I use post-quantum TLS?

Yes, for the handshake. The key exchange is protected by post-quantum algorithms, so even if a quantum computer exists, it cannot decrypt the session. However, the security of the data also depends on the symmetric encryption (AES) and the overall implementation.

What is a hybrid TLS handshake?

A hybrid handshake uses both a classical algorithm (like X25519) and a post-quantum algorithm (like ML-KEM) for key exchange. The shared secrets from both are combined to derive the session key. This ensures security even if one algorithm is broken.

Do I need to change my browser to use post-quantum TLS?

Most modern browsers (Chrome, Firefox, Safari, Edge) have already enabled post-quantum key exchange by default. You don’t need to do anything. If a website supports it, your browser will use it automatically.

Can post-quantum TLS be used with TLS 1.2?

No, post-quantum algorithms are only defined for TLS 1.3. If you need to support TLS 1.2, you cannot use them. You should upgrade to TLS 1.3 to take advantage of post-quantum security.

Conclusion

Post-quantum TLS is a critical step toward securing the internet against quantum computers. It has solved the immediate problem of key exchange confidentiality, but it has not yet solved the challenges of full migration, performance, and long-term trust. As the technology matures, these gaps will likely be addressed, but for now, it is essential to understand what it does and does not protect.

Related

Formula used
in t | Finish time | min | 50 | 0
in d | Distance | km | 10 | 0 | 100000
out pace | Average pace | min/km | t / d | 2
out speed | Average speed | km/h | d / (t / 60) | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →