Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Signal 26 min read Deep dive hardMaster

Signal Protocol and Post-Quantum Ratchets

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". It extends quantum resistance beyond PQXDH's session handshake to forward secrecy and post-compromise security. KEM key exchange needs ordered, asymmetric messages, and ML-KEM 768 keys and ciphertexts each exceed 1000 bytes versus 32 for ECDH. SPQR handles this with a state machine that coordinates encapsulation-key and ciphertext exchange, and with erasure-coded chunks spread across messages. The chunking keeps message sizes small and uniform and tolerates loss, reordering and offline peers. It also forces an attacker who wants to block key agreement into an obvious denial of service. Rollout requires no user action.

Assumes: Diffie-Hellman key exchangeforward secrecykey encapsulation mechanismsDouble Ratchet algorithm

Related posts

  • Quantum Resistance and the Signal Protocol

    Signal easyNovice

    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. The hybrid design guards against harvest-now-decrypt-later attacks by future quantum computers while hedging against undiscovered weaknesses in newer post-quantum schemes, one of which was broken classically during NIST standardization. PQXDH is already live for new chats between updated clients, X3DH will be disabled for new chats after an update window, and existing chats will be migrated. Protection against an attacker with a contemporaneous quantum computer remains future work.

  • Post-quantum readiness for TLS at Meta

    Meta Engineering hardMaster

    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.

  • The post-quantum future of web privacy

    Cloudflare hardMaster

    Privacy Pass tokens rely on RSA and elliptic curves, so a quantum attacker could forge them, but redemption remains unconditionally unlinkable even after Q-day. Cloudflare outlines a post-quantum path for its next-generation MOLE credential system, whose issuer-hiding endorsements let a moderator verify a token came from a trusted anchor without learning which one. The proposed building block is PoMFRIT, a blind signature that proves knowledge of a multivariate (MAYO or UOV) signature on a hashed commitment using the VOLE-in-the-Head zero-knowledge proof system. Swapping MAYO for UOV yields roughly 4.3KB signatures in exchange for 46.6KB public keys, and the same components can be recomposed into the other credential types MOLE needs.

  • How Trail of Bits helps verify the integrity of your Signal chats

    Trail of Bits easyNovice

    Signal's Automatic Key Verification is a key transparency system that keeps a globally consistent, auditable map from phone numbers to public keys, so a compromised server cannot quietly hand out a false key. Trail of Bits runs one of three independent auditors, alongside Signal and Cloudflare. Its auditor is an independent open-source implementation that tracks each new entry in a local Merkle tree and periodically signs tree heads from a single consistent lineage. Clients require signatures from all three auditors within the last seven days, which caps a split-view attack at about one week before warnings appear.

  • How Meta built large-scale cryptographic monitoring

    Meta Engineering mediumAdept

    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. The buffer is a folly::ConcurrentHashMap shared across threads. Randomized first-flush delays smooth write spikes, and derived-key operations are rolled up under the parent key name to cut volume while still giving a pessimistic count for detecting key overuse. The resulting dataset drives key rotation, inventories of weak and quantum-vulnerable algorithms for migration, migration-safety alarms based on success rates, and fleet-wide library version tracking. Remaining challenges include Scribe and Scuba capacity and flushing safely at shutdown.

The quest for software engineering knowledge.

Look:
Layout: