QUANTUM HEROToolkit ↗
← SUNDAY FUNNIESTHE POST-QUANTUM EDITION

EPISODE 3 / REPLACEMENT ALGORITHMS

It doesn’t fit!

The ticket office has upgraded its connection. Now Quantum Hero has to get a newly signed ticket through the old gate.

Quantum Hero and an engineer bring two cable ends together.
Engineer The ticket office has a secret! Both ends agreed on it.
Quantum Hero holds a long accordion-fold ticket beside a narrow slot.
Quantum Hero One passenger. Three metres of autograph.
An engineer and Quantum Hero try tickets on two generations of reader.
Technician The new gate likes it. Let’s ask the one on platform two.

Behind the panels

What happens at each end of the cable?

ML-KEM lets two endpoints establish a shared secret. A TLS 1.3 group called X25519MLKEM768 combines it with X25519. The client sends a 1,216-byte key share and the server sends a 1,120-byte share. Those lengths cover just the key shares. TLS uses the resulting keys to protect the connection.

NIST FIPS 203 · ML-KEM · RFC 10024 §4 · TLS key shares

How long is the autograph?

The issuer signs the ticket so the reader can check who issued it and whether its contents changed. NIST standardized ML-DSA and the hash-based SLH-DSA for signatures. A raw ML-DSA-65 signature takes 3,309 bytes before the ticket adds its own fields or encoding. Check the actual encoded ticket against the reader’s input limit.

NIST FIPS 204 · ML-DSA · NIST FIPS 205 · SLH-DSA · RFC 9881, Table 2 · signature sizes

Will the old gate open?

Check which signature algorithm and encoding the ticket format allows and which ones each reader implements. In staging, try old and new valid tickets on both reader generations, then change one signed field and confirm rejection. For the ticket office connection, record the negotiated TLS group and handshake time through the production proxy configuration. Test how an older peer behaves under your fallback policy before rolling out.

NIST NCCoE · interoperability and performance testing · OpenSSL 3.5 · default TLS key shares