Unofficial Hacker News client - receive Push Notifications on replies.

Post-quantum encryption adoption (opens external site)

398 points by mfiguiere 18 hours ago | radar.cloudflare.com | 206 comments on HN | Vote on HN (opens Hacker News)

View full thread · View on Hacker News

Comment thread (12)

  1. Of course there is - you’re trading off efficiency, particularly at a very important part of the connection establishment. Hybrid PQC signatures are large and require extra packets to be sent - they don’t fit into the initial packet connection which is an important optimization that was worked on for a very long time (it requires extra round trips which means latency).
    Replies (3)
    1. Most PQ cryptosystems are already famous for having huge key sizes, the overhead of keeping the conventional elliptic curve crypto for key exchange or signature is nothing in comparison. But sometimes, yes, omitting the elliptic curve crypto can save you a packet when the PQC scheme barely fits.
      Replies (3)
      1. I also think the tradeoff is obvious too.

        A slight increase in latency when that’s already fairly irrelevant on the internet (seriously i’m loading a 10mb page to write text already!) vs a risk that you lose crypto if the single alg you used is broken.

        I’m taking the extra latency everytime.

        Replies (1)
        1. What you’re describing if very different than adding latency to the literal connection establishment. The former is solvable through faster internet and goes away as a problem or you can compress or otherwise optimize the size. The latter is a physics light speed problem that’s not solvable other than removing round trips and happens on every connection so you can’t even parallelize your way out of trouble and compression isn’t relevant.

          It’s a take that suggests you don’t understand the shape of the problem and why people are concerned about it and conflating it with other concerns that aren’t as relevant.

      2. You misunderstood my point. It wasn’t that we should keep just PQC but instead drop PQC and keep classical. If the announcement is as expected that PQC is fundamentally flawed, then it adds nothing while having a huge cost.
        Replies (1)
        1. You said "Hybrid PQC signatures are large and require extra packets to be sent", perhaps you should have said "PQC signatures are large and require extra packets to be sent".
          Replies (1)
          1. Sure, but you can also strongman my statement and assume that if I'm making a comment like this, I probably understand which part is contributing to the size.
      3. Huh. I can't verify off-hand what ChatGPT is saying, but ML-KEM-768 public keys are just barely small enough that, presuming the TLS record doesn't already overflow, adding the 32 bytes for the ECDHE key in the hybrid scheme might push the TLS record + TCP header + IPv4 header a few bytes over the 1280 minimum IPv6 MTU, and even more likely if actually using IPv6.

        So I guess it may actually be a thing some people might have to consider to some extent, at least as a curious hypothetical. I started off this reply pushing back against your hedge as I assumed ML-KEX already pushed messages beyond 1500 bytes, but the relevant TLS record framing overhead isn't as large as I thought. If we just settled on ML-KEM-1024 then all would be well again.

    2. I don't understand what you're referring to with your "Of course there is"? I wonder if my previous message came came across as suggesting that there were no downsides...?
      Replies (1)
      1. I thought that was your point. Apologies.
    3. Avoiding extra round trips is easy with a proper transport protocol. For instance, QUIC has no fundamental difficulty handling multi-packet handshakes in a burst (though implementations may leave something to be desired on this front).

      Relying on fitting the entire handshake in a single packet is just indicative of obsolete design.

      Replies (1)
      1. Extra round trips are a physics problem - you can’t fight physics and the speed of light.

        1. The handshake doesn’t fit into a single IP packet always requiring fragmentation (even if you use jumbo frames middleware will fragment it).

        2. Even with rfc6928, the handshake with a multi-cert PQC chain exceeds the initial window and requires an extra full RTT before it completes. The initial congestion window is existed and there’s nothing to do there aside from trying to increase it which is challenging for a lot of reasons. So TCP is negatively impacted by a lot and TCP is generally preferred within the cloud.

        3. HRR which tries to bypass the size instead can fail resulting in an additional RTT (now we’re at 2)

        4. QUIC isn’t immune to this and the size of PQC exceeds the amount of data it can use to establish the connection. Indeed in some ways it can be even more susceptible because now even clienthello doesn’t fit into a single packet meaning there’s a greater opportunity for issuer loss to hit the initial connection attempt.

        So you’re incorrect this doesn’t impact QUIC and your indirect this is a result of an obsolete design - there are very very good reasons to want the initial connection to fit into a single packet. Indeed, even if you just increase the size of that initial window to try to keep everything into 1 RTT you’re now amplifying the memory requirement for a connection attempt by 10x. It’s nothing when you only handle a few connections, but that’s because you’re not considering what happens to a heavily loaded server or a server having to manage a DDOS attack.

        My problem is that PQC is a non trivial negative impact on everyone if QCs aren’t ever going to be able to crack classical keys. Doubly so if PQC algorithms are just straight up weak to classical methods.