Unofficial Hacker News companion — get notified on comment replies, and more.

NSA advises immediate transition to post-quantum cryptography (opens external site)

2701 points by intunderflow 1 day ago www.nsa.gov 1277 comments (opens Hacker News) Vote (opens Hacker News)

View full thread · View on Hacker News

Comment thread (12)

  1. Okay, let's say I was designing my own cryptographic protocol.

    Yeah, I know, "don't roll your own crypto", yada yada yada

    Purely theoretically, as a thought experiment

    What are the downsides of using three-layered encryption on top of each other, consisting of: 1) stupidly large RSA, let's say RSA-8192; 2) elliptic curves; 3) one of the new post-quantum things that they all recommend?

    Replies (6)
    1. Hybrid schemes are already being standardized in TLS and SSH. Example: https://www.rfc-editor.org/info/rfc10042/
    2. Other than the answers already given: because factoring and the elliptic curve discrete log problem are both in a sense an instance of the abelian hidden subgroup problem, in practice most major developments attacking crypto on one problem have resulted in an analogous or copied solution for the other problem. As a result, there may be limited security utility to composing algorithms based on those two problems in particular when your concern is future cryptoanalysis developments.
      Replies (1)
      1. Yes, but RSA is:

        - marginally more resistant to Shor's algorithm, compared to ECC

        - resistant to poisoned constants, unlike ECC

        So, what is the reason not to? What would I be losing by adding one more layer?

        Replies (1)
        1. Attack surface. So nothing really, if your threat model focusses on cryptographic breakthroughs

          You should throw in some xor for good measure though. That's actually provably secure but also finite. I'm only half joking if you want to try your hand at this, might as well look into if there is a practical way to use that in some situations

    3. Yes, and then actually then roll your own on top of that to really throw them for a loop :)

      Now for my own question: how do they stack? e.g. 2 layers of RSA? (As a function of key size, e.g. 2x1024 = 2048?)

      Or is the deeper point here that key size (and therefore stacking?) becomes irrelevant if a weakness is discovered from the math side of things?

    4. Two things:

      -Layering can be tricky, make sure you do it right.

      -performance

      But in general yes, most post quantum stuff is layering both the new pqc algo with a classical algo to get security of both.

    5. IBM did this back in the day, they took DES, and called it 3DES. And it was backwards compatible with regular 1DES systems if you used the same key for all three layers
      Replies (1)
      1. Is that why the middle round was backwards? I always thought that was mysterious.
        Replies (1)
        1. The decryption operation in the second round prevents meet-in-the-middle attacks,[1] which involves making time-memory tradeoffs.

          [1] https://en.wikipedia.org/wiki/Meet-in-the-middle_attack

          Replies (1)
          1. They would be true whether it was encryption or decryption. I read the second round decryption was indeed so that using the same key three times would make it equivalent to 1DES.
    6. I agree with you. We do this by chaining existing primitives, and yes, the performance is worse, but that's to be expected.

      It probably opens room for implementation errors, too, but it's easy enough to fuzz for those these days, especially w/ AEAD.

      I'd also say there is a difference between hybrid schemes (common) and truely layered / in-series schemes.