Remix.run Logo
▲ dist-epoch 5 hours ago

But if you already change the code to add a new algorithm, is it really that hard to also change the shape of the key exch? Code needs to be upgraded either way on both sides.

▲tptacek 5 hours ago | parent [-]

No, the deployment story is the same, but the design process is more complicated, because you have to make departures from Noise. Remember, Jason didn't freelance the WireGuard key exchange; he built it on a formally modeled foundation.

▲amluto 4 hours ago | parent | next [-]

There’s a paper called PQNoise that is more or less a KEM-based Noise adaptation, and if I put all the pieces together right, Wireguard’s use of Noise could switch to PQNoise without adding rounds.

https://eprint.iacr.org/2022/539

▲dave_universetf 4 hours ago | parent [-]

Unfortunately pqnoise makes each handshake message exceed typical internet MTUs by a big margin. So it's not a drop-in replacement in UDP-based contexts.

▲amluto 33 minutes ago | parent [-]

An LLM calculates that pqnoise-KK using ML-KEM for some keys and Classic McEliece for the others easily fits in the standard Ethernet/Internet MTU.

There are tradeoffs, of course. The key table would be orders of magnitude larger than now, and unknown peers would need to send over a key before they could connect.

▲dist-epoch 5 hours ago | parent | prev [-]

> he built it on a formally modeled foundation.

Interesting, sounds like something today's agents can help a lot with.

▲0c3ca83 5 hours ago | parent [-]

Only if you don't care about understanding it. Understanding things someone else wrote is slower than writing it yourself.

And nobody wants to yolo crypto, or put their names on things they don't understand.

▲athrowaway3z 4 hours ago | parent [-]

Crypto can and will be created & formalized by LLMs - with some experts prompting during design and testing - and they will be more secure for it.

If you're clinging into the belief that understanding is a requirement you must have been living under a rock the past month. Especially in a field like crypto where the securing and breaking are the end goals unlike with proving the RH or the thousand of other math proofs for open questions.

▲0c3ca83 3 hours ago | parent [-]

This must be a troll. The human is still legally on the hook. Until Anthropic is legally on the hook, nothing changes.

▲tptacek 3 hours ago | parent | next [-]

There's no coherent resolution for this cursed subthread. Humans will still legally be on the hook. Jason is almost certainly not going to vibecode a new WireGuard version (I talk to him a bit and don't get a very agent-pilled read from him; if he was going to do that, v2 would already exist). But cryptography absolutely is going to be generated, implemented, and formally verified by AI models in the coming year. For fixed, easily-verifiable tasks like this, models already outperform humans --- not at designing new algorithms (who knows when that will happen, I sure don't) but at implementing, optimizing, and verifying pre-specified cryptography.

▲athrowaway3z 2 hours ago | parent | prev [-]

> The human is still legally on the hook.

What? Who? Where? How?

This must be a widespread practice for you to bring this up.

Best i've ever gotten is certificates of tests and reviews, and the disclaimer that they're specifically not on the hook.

Please tell me more about my options of the humans / companies that are willing to be legally on the hook.

▲0c3ca83 2 hours ago | parent [-]

Ask your agent. Or don't, understanding isn't important anymore.