Sapherbox logoSapherboxBlog
All articles

Quantum-safe data exchange: a post-quantum connection is not enough

Hybrid TLS protects bytes for the seconds they travel. The keys that unlock a shared document are stored for years. Why ML-KEM must replace RSA and elliptic curves where files are shared.

Also available in Deutsch

“Quantum-safe” has become a line on data sheets. In most cases it means one specific thing: the vendor’s web servers now negotiate a post-quantum key exchange for TLS, the protocol behind the padlock in the browser. It is the smaller half of the problem for anyone who exchanges documents. This article is about the other half.

Two jobs for public-key cryptography

A document platform uses public-key cryptography for two unrelated jobs, and it is easy to conflate them.

The first job is the connection. When your browser talks to a server, both sides agree on a fresh secret for that session, encrypt the traffic with it, and throw it away when the connection closes. The agreement is the vulnerable step: with classical algorithms it relies on elliptic curves, which a large quantum computer would break. Hybrid TLS fixes that by adding ML-KEM, the key-encapsulation standard NIST published as FIPS 203, next to the classical exchange. Chrome, Firefox and the major CDNs do this by default now, and a server built on OpenSSL 3.5 can too.

The second job is access. In an end-to-end encrypted system, every file is encrypted with its own random key, and that file key is encrypted again, “wrapped”, for each person or folder allowed to read it. Sharing a document means wrapping its key to the recipient’s public key. This is also key establishment, and until recently it was done with RSA or elliptic curves everywhere, for the simple reason that nothing else existed.

The two jobs differ in one way that decides everything: how long the result lives.

Seconds versus years

A TLS session secret exists for the duration of a connection. To attack it later, someone must have recorded the traffic at the time, on a network path they controlled, and kept the recording. That is the “harvest now, decrypt later” scenario, and it is why transport had to move first. But the attacker needs a position on the wire at the moment of transfer, and gets only the bytes that passed in that session.

A wrapped file key exists for as long as the file does. It sits in the provider’s database next to the ciphertext, it is copied into every backup, it travels with the file to every recipient, and it stays valid after the connection that delivered it is long forgotten. Anyone who obtains a copy of that database, a backup tape, a decommissioned disk, a provider breach, a subpoena, a departing administrator, holds every wrapped key of every file. With RSA still doing the wrapping, a quantum computer turns that copy into every plaintext, regardless of how the bytes once crossed the network.

So the honest reading of a post-quantum TLS badge is: the eavesdropper has been dealt with. The data at rest, which is where documents spend years, is still protected by the algorithm that is scheduled to be retired.

Why replacing RSA and elliptic curves is mandatory, not optional

This is not a matter of taste. The bodies that write cryptographic requirements have put dates on it.

  • NIST’s transition plan (IR 8547) deprecates RSA and elliptic-curve key establishment at 112-bit security by 2030 and disallows all quantum-vulnerable public-key algorithms by 2035.
  • The European Commission’s coordinated roadmap of June 2025 asks member states to start migrating by the end of 2026, to have high-risk use cases done by 2030 and the rest by 2035.
  • The German BSI and the French ANSSI recommend hybrid constructions now, so that a weakness in a young post-quantum algorithm does not become a weakness in the whole system.

Our earlier article on who has written the requirements walks through each of these. For data exchange the consequence is sharper than for transport, because of the lifetime problem above. A file wrapped with RSA in 2026 and kept for ten years is a file that will still be sitting under a disallowed algorithm in 2036. Transport can be fixed by a server upgrade on one afternoon. Stored keys cannot: they can only be re-wrapped by someone who holds the private key that opens them, which in an end-to-end system is the user, not the provider. A provider cannot migrate your data at rest for you. That is the whole point of end-to-end encryption, and it is why the migration has to be built into the clients and started early.

What “quantum-safe data exchange” has to cover

If a platform wants to use the phrase, the following has to be true, and documented.

  1. Key establishment for every recipient is hybrid. Each wrap of a file key, each sealed folder key, each key shared with a group, uses ML-KEM together with a classical algorithm, combined so that both must be broken. One algorithm alone, classical or post-quantum, is not enough today.
  2. Long-lived envelopes are covered too. The user’s own identity keys are stored encrypted under something; recovery material and escrow keys are wrapped to something. Those wraps outlive files. They need the same treatment.
  3. Transport is hybrid. The TLS part, so that the connection does not become the weak link. This is the cheap one.
  4. Symmetric encryption has enough margin. AES-256 is not threatened in any practical way; a quantum computer halves its effective strength at most, which still leaves 128 bits. Content encryption does not need to change.
  5. Signatures are on the roadmap, with a stated date. Signatures are the honest exception. ML-DSA (FIPS 204) exists, but signature forgery is not a harvest-now problem: an attacker needs the quantum computer at the moment of the attack, not years later. Confidentiality must move first; integrity can follow in a planned way. A vendor should say which signature algorithm is in use and when it changes.
  6. Old material has a migration path. Keys wrapped before the switch do not become safe by themselves. The clients have to re-wrap them on the next access, and the platform has to be able to show which ones remain.

A single sentence on a product page, “post-quantum ready”, covers none of these on its own. Ask which of the six it means.

Where Sapherbox stands

Since July 2026 every key wrap in Sapherbox is hybrid: RSA-4096 together with ML-KEM-768, combined so that an attacker must break both. That applies to file keys, folder key bundles, group keys, the search key and the escrow envelope. The construction is described in hybrid post-quantum key wrapping, and the sealed envelope format is the same in the web app, the sync client and the native Mac app. Keys wrapped under the older format were re-wrapped by the clients during the migration; the servers never held the private halves, so they could not have done it.

The connection is hybrid as well: the tenant hosts offer X25519MLKEM768 for the TLS key exchange, and the clients negotiate it. The security overview and the whitepaper were updated the same week, because until then they said the opposite, and documentation that says “not yet” is worth more than a badge that says “done”.

Signatures are the open item. Grants and folder key bundles are signed with Ed25519, a classical algorithm. That protects the integrity of who-may-read-what against a server that would rather hand out a different key, and it is not threatened by stored ciphertext. ML-DSA is on our roadmap; we will say so here when it ships, with a date, and not before.

The question to ask

When a vendor says “quantum-safe”, the useful question is not “which algorithm” but “which keys”. The connection, or the keys that sit next to the documents for a decade? If the answer only covers the first, the documents are not covered. Harvest now, decrypt later is a problem for data that has to stay confidential for many years.

Questions?

Write to hello@sapherbox.com. The cryptographic design is documented in the security whitepaper, including the parts that are not finished.