← Back to section · Digital Security
Post-Quantum Upgrades for End-to-End Encryption: From PQXDH to PQ3
End-to-end encryption hides message content even from the server, but its key agreement also rests on elliptic curves. Signal and Apple have shipped two post-quantum upgrade paths showing how ratchet protocols graft on ML-KEM.
End-to-end encryption (E2EE) is the strongest form of data encryption: messages are encrypted on the sender’s device and decrypted only on the recipient’s, while providers, carriers, and cloud vendors see ciphertext throughout. The confidentiality of Signal, WhatsApp, and iMessage rests on it. But end-to-end encryption is not automatically quantum-immune — its message encryption is symmetric and solid, yet its key agreement, like mainstream TLS, is built on elliptic curves.
The weak point is the session’s first second
Take the Signal protocol: before two people can talk, the X3DH protocol agrees on keys using a bundle of public keys the other party published in advance, with all agreement material relayed through the server. The agreement carries multiple signatures and key combinations, but cryptographically its security reduces to the hardness of elliptic-curve Diffie-Hellman. An adversary who records the agreement traffic and the ciphertext that follows can, once a quantum computer solves elliptic-curve discrete logarithms, recompute the session’s initial secret — and since the ratchet’s evolution derives from that secret, a lost starting point endangers a substantial span of history. It is the same harvest-now-decrypt-later attack as against TLS, with the battlefield moved from backbone networks to message servers.
The ratchet structure also provides natural cushioning: session keys evolve one-way and old keys are continuously destroyed, so an adversary holding the state at one moment cannot work backward to earlier messages (backward secrecy), and breaking one point does not automatically yield the future either (future secrecy comes from fresh agreement material being injected). The exposure concentrates at the session start and at each renegotiation point.
Two upgrade paths
Signal’s PQXDH (deployed in 2023) moved initial key agreement to hybrid mode: alongside the existing X25519, it adds an ML-KEM encapsulation key (Kyber1024 at the time), and the final secret is derived from both outputs together. If the classical algorithm falls to quantum attack, the post-quantum part holds; if the post-quantum algorithm turns out to have a classical weakness, X25519 holds. Neither server nor clients changed message formats, and the upgrade is invisible to users.
Apple’s PQ3 (shipped with iMessage in 2024) goes a step further, working on two layers: session setup uses hybrid ML-KEM agreement in the same spirit as PQXDH, and during the session the ratchet periodically injects fresh ML-KEM agreements, so post-quantum protection spans the whole conversation rather than only its start. Apple defines formal security levels for protocols and rates PQ3 at its highest (Level 3). Periodic injection of fresh agreement material has a further benefit: if any single agreement is broken by future technology, the contamination is bounded between neighboring injections instead of covering the entire conversation history.
Groups and multiple devices: the hard part is not one-to-one
The one-to-one ratchet is elegant; the real complexity lives in group chats and multi-device accounts. A phone plus a computer means several endpoints per account, each needing its own key material and session state. In groups, members come and go, and each membership change should rotate the session keys, lest departed members keep reading and new members read backward into history. The Sender Keys approach used by WhatsApp and Signal amortizes key distribution to join time, at the price of weaker future secrecy than the per-message one-to-one ratchet. Post-quantum upgrades are thornier still in groups: ML-KEM public keys and ciphertexts are an order of magnitude larger than elliptic-curve ones, and every member rotation redistributes that material, so bandwidth and storage grow with group size. Public deployments so far prioritize one-to-one sessions; post-quantum group messaging is the homework every vendor is still finishing.
What end-to-end does not protect
Draw the boundary clearly: end-to-end encryption protects transit and server-side storage, not the endpoints themselves. Malware on a device, a shoulder-surfer, a user forwarding a message — encryption is helpless against all of these. And if cloud backups are encrypted in a provider-decryptable way, as many apps’ chat backups are by default, the entire conversation history can be read from the backup: end-to-end breaks at the backup. When evaluating an end-to-end product, backup encryption and group key management deserve the same scrutiny as the one-to-one protocol itself.
Lessons for engineering practice
Three transferable lessons emerge. First, hybrid first: deriving keys from old and new algorithms in parallel is the standard move while confidence in new algorithms is still forming; TLS and messaging protocols converge on it. Second, the upgrade point is agreement, not payload: symmetric message encryption (AES, ChaCha) and the ratchet’s hash chains need no changes; the engineering concentrates on key agreement and key storage formats. Third, build in agility: leave extension room in algorithm identifiers and key formats at design time, so the next algorithm transition does not require rewriting the protocol.
For ordinary users the conclusion is reassuring: mainstream end-to-end applications have completed or advanced their post-quantum upgrades without users noticing. The real concern is products with home-grown encrypted-chat features whose agreement protocols have not been touched in years — their end-to-end may exist in name only.
A frequently asked question is whether the post-quantum upgrade slows messaging down. On public figures, the added computation of hybrid agreement is milliseconds on a modern phone, and ML-KEM encapsulation and decapsulation are fast in themselves. The real cost is bandwidth: larger agreement material means a few extra kilobytes at every session setup and ratchet injection — imperceptible for one-to-one chat, but worth serious optimization on poor networks and in very large groups. This is why upgrade order is generally one-to-one first, groups later: land the highest-benefit, lowest-cost part first, then tackle the scaling problem.
Tags: end-to-end encryptionSignal protocolML-KEM