Remix.run Logo
▲ vaishnavsm 5 hours ago

Can anyone explain why key exchange alone makes your site PQC?

▲bux93 5 hours ago | parent | next [-]

For a TLS connection, there's 3 steps involved; the certificate, key exchange and bulk encryption. Bulk encryption is symmetric, which is not impacted by quantum. If key exchange is also quantum-safe, the certificate is the weak link. Unfortunately, there are no PQC web PKI certificates generally available. But, that's also true for quantum computing itself.

Being able to crack the certificate would enable a man-in-the-middle attack, but only when quantum is available. It doesn't enable capture-now-and-decrypt-later.

So for now, KEX is the immediate concern in relation to quantum.

Of course, the rest of the website may still be completely non-PQC, from DNS (DNSSEC uses ECDSA P-256) to the underlying databases etc.

▲kibwen 4 hours ago | parent [-]

> Bulk encryption is symmetric, which is not impacted by quantum.

To be extra pedantic, symmetric encryption is impacted by quantum computers via Grover's algorithm, but in practice this is considered easy to mitigate and not a cause for concern.

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

Do I understand correctly that the mitigation would roughly be just doubling the key size?

▲kyleomalley 3 hours ago | parent | prev [-]

Meaning, AES-256 is generally considered quantum resistant via Grover’s algorithm for those wondering what this means in practice. Via Grover, AES-256 work factor drops in half (“128 bits of quantum security”)

Applied mathematics was a mistake.

▲antiloper 4 hours ago | parent | prev | next [-]

If key exchange is classical, then an attacker can harvest encrypted data now, and decrypt it in the future when they have a quantum computer. Post-quantum key exchange algorithms prevent that.

Classical digital signatures (e.g. ECDSA) are also vulnerable to quantum computers, but the attacker would need a quantum computer NOW, while the handshake is in progress. Breaking ECDSA in the future does not affect TLS handshakes in the present (of course other digital signature applications e.g. for signing phone firmware are a different matter).

▲cwmma 5 hours ago | parent | prev | next [-]

it doesn't, you also need a cert, but haproxy can't do anything about that so their just focusing on the part they can fix in software.

▲lxgr 3 hours ago | parent [-]

You can perform the actual key establishment using PQC and only depend on the classical cert for authentication. This doesn't help with present-day impersonation, but it does prevent "harvest now, decrypt later".

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

Because after key exchange you use symmetric ciphers which are safe from quantum computers (they have almost no mathematical structure)

▲fer 5 hours ago | parent | prev [-]

Quantum computers don't affect symmetric encryption all that much vs RSA/ECDH