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

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

220 points by yuvadam 5 days ago | eprint.iacr.org | 95 comments on HN | Vote on HN (opens Hacker News) |

Comments loaded (87)

  1. As ChatGPT put it: "Well, shit." We'll see if, or rather when this or an improvement/approach like it is a practical way to derive private keys from public keys.
    Replies (1)
    1. Well, this result doesn't really add anything new and is in fact vastly worse than the best already-existing algorithm.
  2. LLM's are making exponential progress on subexponential-time algorithms
  3. > The algorithm uses zero random bits and relies on neither the Generalized Riemann Hypothesis nor smoothness heuristics

    How quaint. I remember back when we didn't know Dirichlet GRH was true.

    Replies (1)
    1. We were so naive in the good old days of a week ago

      we didn't know anything but we were happy dammit!

      Replies (1)
      1. No we weren't
        Replies (1)
        1. Happier, though.
  4. A randomized subexponential-time algorithm for the discrete logarithm problem has been known for close to 50 years: https://pages.cs.wisc.edu/~cs812-1/adleman.pdf

    The present deterministic algorithm is highly unlikely to have practical consequences for cryptographic protocols in use.

    Replies (1)
    1. Also the current best algorithm has running time proportional to the square root of the group order. This one has running time proportional to the group order, which means it's a nonstarter for practical atacks.
      Replies (1)
      1. did you misread o(1) as 1 or smth?
  5. Opus 5.5 claims there are no immediate cryptographic consequences. Maybe bigger elliptic curve keys one day, and RSA can already be attacked by faster algorithms. Seemingly this is a complexity theory result rather than a cryptography result.
    Replies (2)
    1. True. But in the last couple of weeks the Bayesian probability of new math trashing a major piece of in use cryptography in the near future has shot up—-easily eclipsing the risk from quantum computing working out.
      Replies (2)
      1. there is no reason to assume that AI-driven progress would disproportionately benefit classical cryptanalysis while leaving quantum computing unaffected

        edit: quantum algorithms and error-correction algorithms are math problems. breakthroughs in quantum algorithms already reduced the qubits needed to break RSA quite drastically already. maybe AI could even aid in qubit design and hardware architecture.

        Replies (5)
        1. Quantum computing is a physical engineering project. Classical cryptanalysis is math. AI is demonstrably better at math right now. So there is a very good reason.
          Replies (2)
          1. quantum algorithms and error-correction algorithms are math problems. breakthroughs in quantum algorithms already reduced the qubits needed to break RSA quite drastically already. maybe AI could even aid in qubit design and hardware architecture.
            Replies (1)
            1. Yes, but we currently have no usable qubits at all. So even dramatic math breakthroughs don’t do anything in the near future.
          2. [Quoting:] "physical engineering (...) cryptanalysis is math"

            [Orwellian-Televisor-Sounds] "WE'LL BURDEN ANTOTHER 'STILL-THINKING' PROBLEM ON YOU... 'SCIENTIFIC-INTELLIGENCE', OR AS YOU SAY 'AI' EMMITs PROTONs. SO THERE WILL BE NO SAFE 'QUANTUMCRYPTING'. NOW GO ON CIVILIAN. THERE IS NOTHING TO SEE..."

            P-:

            Replies (1)
            1. Sorry, I lost another pass... Attached (in German:)

              " Das wenig bekannte, alte Wort: "Stadt" gedeiht scheinbar immer noch in den Herzen der Leute. "

              https://bilderupload.org/image/e8de03505-50a-physik-finalmai...

              ...with a humorous touch of 'explain' for your entertainment (-;

              Regards, enjoy your weekend...

        2. Of course there is: building quantum computers needs to happen in the real world, breaking crypto with classical algorithms can happen entirely in cyberspace.
        3. If AI sufficiently breaks crypto math such that a classical algorithm can decrypt anything, then it doesn’t really matter (for now, in this context) whether it also boosts quantum algorithms.
        4. Shor’s algorithm is extremely simple and, if run on an ideal quantum computer, has very low complexity. The complexity of solving ECDLP with Shor’s algorithm is not drastically higher than the complexity of EC multiplication/exponentiation (choose your favorite terminology) on the same computer.

          I don’t think the original factoring/discrete log paper tried to optimize the gate count at all (certainly the author’s lecture on the topic did not) and it’s still quite efficient. And it’s obviously possible to optimize it.

          Actual quantum computers are messy, and logical qubit design and algorithm porting is a sort of combination of somewhat specialized math and code golfing. AI will be fantastic at it.

        5. A better algorithm for a quantum computer that we don't have, has fewer immediate consequences than a better algorithm for a classical computer that we do have.
      2. At this point maybe we should just start building up the infrastructure for one-time-pads. Go to the Apple Store or your bank once a month or so, and load up on a couple gigs of physically random bits.
        Replies (4)
        1. Anything can happen, but asymmetric crypto looks more at risk than symmetric.

          If we lost that, we’d need to do a combination of physical key exchanges (for most critical / sensitive cases) and Kerberos style key exchange servers.

          Replies (1)
          1. Symmetric crypto also depends on unproven assumptions that AI may or may not disprove.
        2. And how do you get those bits to the other party to your encryption?
          Replies (2)
          1. Well, at least we’ll be able to do online banking and Apple updates. Does Amazon still have stores? Maybe they can distribute bits through Wholefoods locations.
          2. See RFCs 1149, 2549 and 6214.
        3. What's the difference between this and a TOTP protocol where you go in and scan the seed at your source of trust?
          Replies (2)
          1. The difference is that you don't reuse one time pads like you do with seed based algorithms like TOTP.
          2. I don’t know anything about cryptography, my post was mostly a joke. Classic one time pads are information-theoretically unbreakable of course, but the idea of going to a shop in person to load up on bits seems too silly.

            How’s TOTP work? Generally if there’s a seed involved I’d be worried that some bits could be reused. But, as I said before, I don’t know anything about crypto.

            Replies (1)
            1. Come to think of it, my bank delivers a debit card through the post to me containing a tiny chip, maybe it could work? Presumably the shop would receive a one time pad from the bank too.

              Continue this thread (1 replies) →

        4. None of the mathematical advances that may happen in the near future is relevant for the traditional secret-key cryptography.

          Public-key cryptography is not strictly necessary, key exchange can be done using pre-shared secret keys.

          Within an organization, public-key algorithms offer only few improvements over secret-key algorithms, e.g. the ability to revoke certificates.

          Where public-key algorithms have great advantages is for asymmetric communication between unknown customers and an authenticated server, e.g. for online purchases and online banking.

          If the existing public-key algorithms became broken tomorrow, that would have negligible effect for spy agencies or competent terrorists, but it would disrupt the Internet commerce.

          Replies (1)
          1. Isn't the whole problem about safely communicating pre shared keys?
    2. Correction: Opus 5.5 + your specific prompt, with your specific subscription on 2026/11/27 claims no immediate cryptographic consequences.

      I fixed it for you.

  6. "Reasoning" is experimentation with a feedback loop and continuous refinement.

    https://news.ycombinator.com/item?id=48218066

  7. 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 (1)
      1. 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.

              Continue this thread (1 replies) →

    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.
  8. Hey does anyone know what their LLM told them about this? That's definitely what I was hoping to read
    Replies (1)
    1. Your sarcasm notwithstanding, I seriously think that asking the top models for an explanation, maybe w/ cross-checking their responses with each other and then a "simplified explanation" has better chances of being relevant than a random comment on the Internet was ~1 year ago. Obviously different if you know and trust someone and can verify their identity. But as for randoms on a forum, yeah I'll take my chances w/ the clankers on math problems.
      Replies (1)
      1. > Obviously different if you know and trust someone and can verify their identity.

        one of the few things this forum has over any other is precisely that some relevant people post here using their actual identity. people come to forums for the human aspect, anyone who's here have access to the top models and could prompt themselves if sufficiently interested.

  9. Since it's what everyone is going to be worrying about: This result does not matter practically for cybersecurity.

    The best practical algorithm for solving elliptic curve DLP is BSGS (Baby Step, Giant Step) which grows as 2^{b/2+o(b)} in the key length.

    This result claims 2^O(b/(log log b)) which is technically subexponential, but since that `log log b` term grows so slowly it pretty much would only beat BSGS for absolutely gigantic keys.

    Replies (4)
    1. I’m not very familiar with this stuff at all, but this comment doesn’t seem right. That’s the Shanks method presented nicely in Table 1 with time complexity p^{1/2+o(1)}, vs. this method’s p^o(1). I’m confused how you ended up at O(p).
      Replies (1)
      1. p^1/2 is sqrt(p).
        Replies (1)
        1. Yes. An exponent of o(1) is better than 1/2. (I’d assume you misread it as O(1), but you’d really have to misread it as exactly 1…)
          Replies (1)
          1. I did some deeper analysis and you're correct.

            The paper's result is still not a practical cybersec threat, but not for the reasons I initially stated.

            I'll edit my initial comment.

            Replies (1)
            1. What’s the deal with the {} ?
    2. The right conclusion for the wrong reason. They claim the new algorithm is theoretically faster for huge numbers and only impractical because of massive initial overhead.

      Perhaps misread the paper's actual bound which is p^{o(1)} and means the exponent on p eventually shrinks smaller than any positive number including 0.5 (the square root) once p is big enough.

    3. Thanks for explaining it. How does it work on actual hardware? Are any of these algorithms better at utilizing CPU cache or SIMD?
      Replies (2)
      1. This work really isn't at the hardware or even practical execution level. Just showing how the algorithm on an abstract idealized machine scales with input size. There's a lot of optimization that goes into getting this to work on a real machine.
      2. That depends, how fast does the tape on your Turing machine move?
        Replies (1)
        1. As it turns out there is (at least one). There goes my (next) weekend: https://aturingmachine.com/
    4. How much bigger are the constants on this result?
  10. Can this have implications for integer factoring in P? Apart from the fact that someone might have already solved it and is sitting on the result (for national security).
    Replies (1)
    1. This is directly adapted from the recent discoveries in integer factoring.

      And neither of those algorithms are in P.

  11. The verification angle interests me more than the algorithm itself: a deterministic claim is cheap to state and expensive to trust, so we started building replayable audits for exactly that gap. Same approach applied to the recent VP≠VNP announcements from Anthropic and OpenAI — pulled the claims down, re-ran them against independent Lean kernels, posted results and replay scripts at github.com/huv0310-arch/k25-evidence. Happy to be proven wrong on any line; that's kind of the point.
  12. Kinda feel the news isn't the speed but that there is no need of randomness and GRH.
    Replies (1)
    1. Is GRH still an issue though given that it's proven?
      Replies (1)
      1. It’s still more satisfying to prove something using fewer / simpler dependencies.
  13. Reminder: Algorithms for integer factorization essentially always have an analogue for prime-field DLP. Usually it takes a bit longer than this for the details to be ironed out, but the surprise would have been if this algorithm didn't exist.
  14. Can this help with finally factoring Pi? That would break all encryption, I've heard.
    Replies (1)
    1. Pi was recently factored by OpenAI. The trick they used was to project onto the complex plane, as it has both a real factor (P) and an imaginary factor (i). The most surprising consequence is that Pi^2 is actually negative.
      Replies (2)
      1. One interesting corollary is that if you multiply it by e it’s conjectured to be delicious.
      2. It looked crazy, but given the news lately I'm not as ashamed to have looked it up as I would have been a week ago.
  15. Known for ages by anyone in this field.
  16. Just the excuse I need for brushing up number theory. Any other paper recommendations are welcome.
    Replies (1)
    1. This was an excellent talk about the proof of the quasi-Riemann hypothesis by an expert in the field, in case that interests you; https://youtu.be/kYCOOyYkit8?is=l5XvFSzAiypzSTSx. It's quite followable and walks through the main steps of the proof.
  17. I’d love to read the story of how the authors made the connection. Did they start with this problem and go looking for a new tool, or see the earlier paper and think ‘oh wait, we could use this’?
  18. What does the future look like if P=NP? Are there alternatives in cryptography that would allow us to encrypt data?
    Replies (2)
    1. One-time pad encryption stays valid anyways. For critical data implementation is probably doable: e. g. banks will provide 1gb flash drives with single use keys, which is enough for years of transactions for most users.
    2. I'd easily trade cryptography for all the rainbows and kittens that a constructive practical P=NP algorithm would imply.

      >Are there alternatives in cryptography that would allow us to encrypt data

      Yes, but they are really annoying and have a lot of drawbacks.

      Replies (1)
      1. What benefits do you see? Sorry, I'm not very informed in this space
        Replies (1)
        1. A constructive, practical proof of P=NP (an unlikely outcome) would basically allow us to solve any problem where the solution can be verified quickly.

          This covers a shocking number of real world problems. wikipedia https://en.wikipedia.org/wiki/List_of_NP-complete_problems has a list of some of them.

          The implications would be so great it would be difficult to come up with something it wouldn't affect. I would unironically say it would be on par with the invention of fire, for how much it would change lives.

  19. I suspect the only reason people are hyped up about this is all the AI hype and panic.

    This is not the sort of result that should make headlines. Don't get me wrong, its a good result, congrats to the researcher, but this is the sort of thing of interest to theoreticians, not to people who make or use cryptosystems.

8 comments are not loaded here. Read them on Hacker News ↗.