An unofficial, read-only Hacker News reader.

A Deterministic Subexponential-Time Algorithm for the Discrete Logarithm Problem [pdf] (opens external site)

219 points by yuvadam 1 day ago | eprint.iacr.org | 94 comments on HN

View full thread · View on Hacker News

Comment thread (14)

  1. Should OpenSSH implement a config option that requires two different types of keys? If we don't know whether RSA or Ed25519 is weakened, then better to have both?

    The situation on e.g. GitHub is sort of the opposite: if you use both RSA and Ed25519, then it's as strong as the weakest of the two.

    Replies (4)
    1. This is already their chosen path for PQC, ed25519 and mldsa44 will likely replace the bare ed25519 default within a year-ish.
    2. I think that's just "hybrid" key exchange. I.e., when I'm connecting to news.ycombinator.com now, my browser is exchanging keys by mlkem768x25519 in TLS 1.3, which is still secure if either one of ML-KEM or Ed25519 fall.

      https://www.rfc-editor.org/rfc/rfc9954.html (RFC 9954 Hybrid Key Exchange in TLS 1.3")

      > "Hybrid key exchange refers to using multiple key exchange algorithms simultaneously and combining the result with the goal of providing security even if a way is found to defeat the encryption for all but one of the component algorithms."

      Note that Ed25519 would fall together with RSA if that P=BQP rumor is true. (Ed25519 is a special case of the discrete logarithm problem in the OP, by the way).

      Replies (2)
      1. I'm not sure they'd publish anything, you'd just be giving nation state adversaries the key to unlock their treasure trove of hoarded internet traffic, possibly setting off a chain of secret revelation, and causing mayhem generally.

        Not everyone with a rtx5090 is going to be able to factor large primes and start breaking encryption, it only benefits nation states really. The same goes for your adversary, they aren't going to tell anyone either.. Hard to judge how it would play out. There woukd probably be a prisoner dilemma of sorts playing out while everything gets rolled over to PQC, and then one day Satoshi's wallet would suddenly drain.

        Replies (1)
        1. If you can solve the problem with AI this quickly then you must assume that the enemy already has solved it, or will solve it soon.

          As you say, watching legacy systems quickly getting switched to PQC would be a decent heads up.

          Even still switch to PQC now anyway.

      2. Is there a rumor of a BQP=P result? Wildest I'd heard was a rumor that Facrorization is in P, which would be related, but far weaker. P = BQP would have massive implications, even in theoretical physics.
        Replies (1)
        1. P=BQP will have zero implications for theoretical physics.

          It would kill quantum computing on the other hand, basically proving that quantum computing is just computing.

          Replies (1)
          1. Quantum Advantage is a prediction of quantum physics (note: not a mathematical prediction in the sense that its existence is required, but an expectation raised by the people working in the field), and is often cited as proof that the world described by quantum mechanics is "richer" in a very deep sense than the classical mechanics world. Some people even use it as evidence in favor of the Many Worlds Interpretation.

            I do agree that none of these would simply fall down if it were proven that quantum computers were no more powerful than classical computers. But it would still affect part of the established worldview in the foundations of theoretical physics, and it would require quite a few arguments to be rewritten.

            If the proof were also practical, that is, if it came with actual efficient algorithms, then it would revolutionize theoretical physics, as it would allow simulations of complex QM systems.

            Replies (1)
            1. > it would allow simulations of complex QM systems.

              No, it would not. The point of a simulation is that the result should resemble reality.

              The only thing a quantum computer simulates is a quantum computer. There's no guarantee that whatever you simulate with this approach produces a result that the universe also produces.

    3. You would want to do that for key exchange too, not just authentication. OpenSSH already supports this for authentication; setting "AuthenticationMethods publickey,publickey" in sshd_config(5) will force users to supply 2 independent authorised keys. It also already supports hybrid key exchange.
      Replies (1)
      1. AuthenticationMethods publickey,publickey does not require different types, so if you have two machines each with a unique (rsa, ed25199) pair, OpenSSH will also accept (rsa, rsa) or (ed25199, ed25199).
        Replies (1)
        1. It can require different types if that's how you set up your authorized_keys file. You can then mark it immutable so that it can't be changed.

          You should also create an empty authorized_keys2 file in this case (since OpenSSH will read both by default), unless you set e.g. "AuthorizedKeysFile .ssh/authorized_keys" in sshd_config(5) too.

          It can't accept rsa,rsa in your example since neither machine has 2 RSA authentication keys in your example.

          EDIT: There's also the AuthorizedKeysCommand directive instead, if you want to write a fancier program to constrain the permitted keys on offer. For example, it could look at all of the authorized keys listed in your file and offer only RSA ones, then later offer only Ed25519 ones.

    4. The weaker of the two. Two is not enough to use the superlative, only the comparative.
      Replies (1)
      1. That's a true limitation in theory, but in practice it's absolutely fine for sufficiently large values of 2.