Remix.run Logo
▲ jmqb a day ago

At that point you may as well bite the bullet and skip the algebraic shortcuts:

HPKE(DHKEM(ffdhe4096, KMAC256) + FrodoKEM-640-AES, KMAC256, ChaCha20Poly1305)

On a modern server CPU, this handshake takes roughly 1 ms. To make a 0-RTT deployment resilient against denial-of-service and replay attacks, you can gate the key exchange behind time-bound, endpoint-keyed proof of work, backed by a compact Bloom filter that falls back to a 1-RTT interactive challenge on false positives. Transport: QUIC with 24 KiB initial congestion window and 64 KiB initial max_data limit easily accommodates the key sizes without adding extra round-trips.

▲teravor 21 hours ago | parent [-]

DHKEM is an option, but the performance profile is symmetric. there could be advantages to having an asymmetric profile where one side must do much more work than the other (such as the 'supplicant' client and a busy server).

interestingly, with the Rabin cryptosystem you can even take it to the extreme using a multi-prime configuration where one side would need to do orders of magnitude more work. though I cannot think of a useful application of this on the spot (it would effectively be a secure 0-RTT proof-of-work type sytem).

▲rushdeceit 18 hours ago | parent [-]

> interestingly, with the Rabin cryptosystem you can even take it to the extreme using a multi-prime configuration where one side would need to do orders of magnitude more work. though I cannot think of a useful application of this on the spot (it would effectively be a secure 0-RTT proof-of-work type sytem).

This will not work. You will not be able to verify if the client handed you a multi-prime key. They could just give you a standard 2 prime key with a cheap prime^power added.

If anything, it makes the strategy of using a multi-prime Rabin cryptosystem against a weak quantum adversary non-viable. You would have to use RSA for it.