I argued in my last post that we should seriously consider triple-hybrid key exchange as a fallback if multiple cryptographic assumptions start failing.
So I built Trident, an experimental Rust KEM combining X25519, ML-KEM-768 and HQC-192.
The idea is to protect the shared secret using three different mathematical assumptions, so that breaking any two isn’t enough.
Early benchmarks (on a very small VM):
- Key generation: ~1ms
- Encapsulation: ~2ms
- Decapsulation: ~2.7 ms
The bigger cost is bandwidth. Trident has a 5.7 KB public key and 10.1 KB ciphertext, compared with 1.2 KB and 1.1 KB for X-Wing.
That’s a significant increase for TLS, but the computational overhead looks manageable.
The construction is experimental and hasn’t had formal security analysis. The next interesting question is how much the larger handshake affects real-world TLS performance.
Open-sourced it here:
https://github.com/conor-deegan/trident
@conordeeganWe should be preparing for multiple cryptographic hardness assumptions to fail, potentially within a relatively short period of time.
AI is already finding new cryptanalytic attacks and improving existing ones. This could weaken discrete logarithms, factoring and lattices through advances in classical cryptanalysis, while also accelerating progress towards Q-Day.
The major deployed standards have held up so far. Maybe we've selected particularly strong algorithms. But I wouldn't assume the best publicly known attacks are the best attacks that exist (my base case). Some results may never be published.
My bet is that cryptanalysis will move faster than we can standardise and deploy replacement algorithms.
A few things we should be doing:
1. Invest more in hash-based signatures.
If discrete logarithms, factoring and lattices all become vulnerable, we still have hash-based signatures.
We know the trade-offs around performance, signature sizes and state management. There's plenty of room to improve these, and making them practical across more applications should be a priority.
2. Seriously consider triple-hybrid key exchange.
X25519 + ML-KEM + HQC.
Three different mathematical assumptions. With a sound construction, one surviving component is enough to protect the shared secret.
Yes, it means larger handshakes and more complexity. That's a reasonable trade for reducing our dependence on any one assumption.
3. Plan for partial breaks.
Losing 20 bits of security is very different from practical private-key recovery.
But if a standardised scheme believed to provide 128-bit security is suddenly estimated at 100 bits, what does that mean for NIST guidance, FIPS-validated deployments and systems required to maintain a minimum security level?
We need practical responses to different levels of compromise, not just complete breaks.
4. Plan for recovering trust.
If a signature scheme is broken, how do we authenticate replacement keys when the old signatures can be forged?
If key exchange is broken, previously recorded traffic may become decryptable. Updating the algorithm doesn't fix that.
We need recovery mechanisms that don't depend on the cryptography being replaced.
5. Know which systems can operate without public-key cryptography.
If several assumptions fail and alternatives aren't ready, some critical systems may need to use pre-established symmetric keys, restrict connectivity or temporarily stop establishing new trust relationships.
That's not a solution for the entire (open-)internet, but it may be the best approach for some systems.
For signatures, I'd prioritise practical hash-based cryptography. For key exchange, I'd prioritise assumption diversity, including (possibly) triple-hybrid constructions.
We should be preparing for the possibility that we won't have years between major cryptanalytic breakthroughs