okay, i looked into it a bit more and that does seem to be one read on the situation, but statistically it’s way too random to tell what’s actually going on. and the chances do in fact include that nothing is really going on and when this thing gets revealed it turns out to be a nothingburger.
basically the ingredients are
- openai and anthropic creating vague panic and urging people to move to post-quantum crypto
- the nsa insisting we use pure mlkem/mldsa, without a classical crypto layered on top, as usual
- everyone even mildly in the know panic-jumping to p384, the most secure classical algorithm (if you disregard the possible nsa backdoor)
you can trivially disregard the nsa’s argument. layering a classical algorithm like x25519 or p384 on top of your post-quantum crypto gives you better security than the pure post-quantum crypto, for practically free, and it’s already implemented pretty much everywhere that mlkem is implemented at all.
as for the others, there are two options:
- ai has discovered some cryptanalysis that weakens small elliptic curves, forcing us to use larger primitives
- there is a near-term risk of a quantum computer
in case of #1, switching to pure post-quantum is the stupidest possible move you can make. mlkem/mldsa is significantly younger than either the elliptic curve algorithms or rsa, and thus the risk of it breaking to classical cryptanalysis is significantly higher than there is to rsa or ecc. i still hold it that rsa is at higher risk than ecc, but both are safer options than mlkem against a classical attack.
in case of #2, jumping to a larger curve only buys a tiny bit of time. it’s very unlikely that if x25519 fails, p384 wouldn’t follow at most a few years afterwards. which would mean hndl is viable.
the industry’s decision is more or less to jump to larger primitives, particularly p384 or large rsa implementations now, and to post-quantum hybrids later. this is somewhat consistent with #1. it does not suggest that x25519, specifically, is broken (because otherwise p256 would remain an option), but it does suggest that no one really knows what’s going on and no one knows what algorithm to trust.
personally, i think there’s a minor breakthrough that slightly weakens most forms of crypto. it’s not a p=np situation for sure, because that would break post-quantum cryptography too, and it may be a classified quantum computer happening sooner than expected, but that news wouldn’t come from ai companies, and the nsa isn’t doing anything they haven’t been doing before. the real risk might be a heightened chance of future breakthroughs, but to properly defend against that, the trick isn’t to increase the size of your primitives, it is to use as many primitives as you can.
there are more post-quantum schemes than just mlkem. hqc and mayo came up several times while i was looking it up, personally in any system i design for this i’ll be pairing them with mlkem/mldsa and x25519/ed25519. if ai cryptanalysis is the real issue, we should probably also secure symmetric primitives, but thankfully aes-256 and chacha20 are both mature, and sha-2 and sha-3 use very different math too. there is no single library that practically implements all of this, but if you just ensure you chain multiple primitives at each step, you will always have redundancy when one of them gets broken.