---
title: "Post-quantum readiness for TLS at Meta"
description: "Meta has deployed hybrid X25519+Kyber key exchange in its Fizz TLS library for most internal service traffic, prioritizing store-now-decrypt-later protection where it controls both endpoints."
url: "https://swe.quest/articles/post-quantum-readiness-for-tls-at-meta-92c6471e952cc018"
canonical: "https://engineering.fb.com/2024/05/22/security/post-quantum-readiness-tls-pqr-meta/"
source: "Meta Engineering"
published: "2024-05-22"
difficulty: "hard"
kind: "Case study"
reading_minutes: 8
tags: ["cryptography","networking","concurrency","debugging"]
---

# Post-quantum readiness for TLS at Meta

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2024-05-22, 8 min read, Case study. Original: [https://engineering.fb.com/2024/05/22/security/post-quantum-readiness-tls-pqr-meta/](https://engineering.fb.com/2024/05/22/security/post-quantum-readiness-tls-pqr-meta/)

## Summary

Meta has deployed hybrid X25519+Kyber key exchange in its Fizz TLS library for most internal service traffic, prioritizing store-now-decrypt-later protection where it controls both endpoints. Kyber768 is the default, but Kyber512 is used where the larger 1184-byte keyshare pushed resumption ClientHellos (with PSKs) past the TCP MSS and broke TCP Fast Open, adding an extra RTT. Rollout surfaced a race condition in liboqs's Keccak dispatch causing segfaults, fixed upstream with pthread\_once, and HelloRetryRequest thrashing during cross-host resumption, solved by splitting TLS session scopes into classical and hybrid. The hybrid group cost about 40% more CPU than X25519 alone.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Cryptography](https://swe.quest/tags/cryptography.md) (Security)
- [Networking](https://swe.quest/tags/networking.md) (Infrastructure)
- [Concurrency](https://swe.quest/tags/concurrency.md) (Compilers & runtimes)
- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)

## Prerequisites

- TLS 1.3 handshake ([easy posts on Cryptography](https://swe.quest/tags/cryptography.md?difficulty=easy))
- Diffie-Hellman key exchange
- TCP Fast Open ([easy posts on Networking](https://swe.quest/tags/networking.md?difficulty=easy))
- session resumption with PSK

## Keywords

Kyber, X25519, Fizz, liboqs, TLS 1.3, TCP Fast Open, post-quantum cryptography, HelloRetryRequest

## Related posts

- [Quantum Resistance and the Signal Protocol](https://swe.quest/articles/quantum-resistance-and-the-signal-protocol-c3f2777c1bd78ede.md): Signal · 2023-09-19 · Easy · 6 min read · Cryptography, Communications
  Signal is upgrading its X3DH key agreement to PQXDH, which derives the session shared secret from both X25519 elliptic-curve key agreement and the CRYSTALS-Kyber post-quantum key encapsulation mechanism, so an attacker must break both to recover keys.
- [Signal Protocol and Post-Quantum Ratchets](https://swe.quest/articles/signal-protocol-and-post-quantum-ratchets-12284f0594462a50.md): Signal · 2025-10-02 · Hard · 26 min read · Cryptography, Communications
  Signal adds the Sparse Post Quantum Ratchet (SPQR), a continuously advancing ML-KEM-based ratchet whose output is mixed with the existing Double Ratchet to form a "Triple Ratchet".
- [Post-quantum security for SSH access on GitHub](https://swe.quest/articles/post-quantum-security-for-ssh-access-on-github-48c898bb38241343.md): GitHub Engineering · 2025-09-15 · Medium · 3 min read · Cryptography, Networking
  GitHub is adding the hybrid post-quantum SSH key exchange sntrup761x25519-sha512 (Streamlined NTRU Prime combined with X25519 ECDH) to its Git SSH endpoints on September 17, 2025.
- [Enforcing encryption at scale](https://swe.quest/articles/enforcing-encryption-at-scale-123c858612356c4f.md): Meta Engineering · 2021-07-12 · Hard · 7 min read · Linux, Security, Cryptography, Networking
  Meta enforces TLS on internal service traffic with SSLWall, a host-level daemon plus eBPF programs that detect and cut off plaintext connections, chosen over L7 firewalls to keep the blast radius small and allow fine-grained rollout.
- [How Meta built large-scale cryptographic monitoring](https://swe.quest/articles/how-meta-built-large-scale-cryptographic-monitoring-007f3fb06e949eb9.md): Meta Engineering · 2024-11-12 · Medium · 10 min read · Cryptography, Observability, Scaling, C & C++
  Meta logs every operation in FBCrypto, its managed cryptographic library, without sampling by aggregating identical events into per-event counts in an in-process buffer and flushing them periodically to Scribe, with data landing in Scuba and Hive.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
