An unofficial, read-only Hacker News reader. Join the beta →

Unconditional Integer Factorization in Subexponential Time (opens external site)

158 points by _alternator_ 2 days ago | github.com | 32 comments on HN

Comments (32)

  1. So this is the big one?

    Edit: Context from Gemini:

    > Cryptography & Real-World Security No Immediate Threat to RSA: Despite the headline exponent of $1/3$, this does not break RSA or compromise current public-key infrastructure.

    > Reassurance for Cryptographic Assumptions: Ironically, proving that factoring is unconditionally in $L_N[1/3, O(1)]$ reinforces existing cryptographic modeling. Cryptographers already assume adversaries can factor in $L_N[1/3, 1.923]$ time when sizing RSA keys; this theorem simply removes the theoretical possibility that worst-case hard instances exist that resist $L_N[1/3]$ algorithms.

    Replies (4)
    1. For context, factoring RSA with a key size of 1024 would still take 500k core years to compute. This proof and that estimate are only an improvement. The algorithm is superpolynomial. Worse than polynomial, but faster than exponential. To my understanding, anyway.
      Replies (1)
      1. That's not that long for an interested MegaCorp or Nation State actor and a targeted cert, even a root CA
        Replies (1)
        1. And which 1024-bit key you would dedicate a year of supercomputer time to breaking?
          Replies (2)
          1. Zscaler's 50-year root CA.
            Replies (1)
            1. You mean ZscalerRootCertificate-2048-SHA256.crt?

              Also, even if it used a 1024-bit key, it's a cert for a MITM proxy. You're already MITM'd, it doesn't matter if the MITM uses a 1024-bit key or a 1048576 bit key.

          2. Sigh. I feel like I’m being attacked here.

            The comment before me gave a difficulty time that on its face looked expensive; but my response was a reflection on that “that may look like a long time, and it sounds like it! But there are players out there that have the resources to do it”.

            I wasn’t going for a “checkmate” or anything. 2048 and 4096 bit certificates are several orders of magnitude more difficult to break. Enough that it makes this a non-issue.

            Why you gotta bite?

            Replies (1)
            1. Because cryptographers love creating panic over highly impractical theoretical attacks when everyone knows that to break a cryptographically protected anything you point Artex at it, completely ignore that the crypto even exists, and when you come back from your coffee you're in via a chained-exploit 0day that's been in there for 15 years.

              Not attacking you here but pointing out that while people distract themselves with numerology the actual attackers are running rampant more or less unchecked. For example who's-who of major players for years used DKIM keys as weak as 384 bits, with 4,000 domains, a third of all the ones using DKIM, using keys so weak that anyone, as in a single individual not a government, could have broken them. And... nothing happened, because the attackers didn't care. It wasn't affecting them, all the things they were exploiting were elsewhere so it didn't matter if the keys were 384 bits or 16,384 bits.

              Continue this thread (1 replies) →

    2. I think it's an upperbound only. If they can prove it's also the lowerbound, then it would be the big one.
      Replies (1)
      1. Right, a super polynomial lower bound also would have proved P != NP
    3. > this theorem simply removes the theoretical possibility that worst-case hard instances exist that resist $L_N[1/3]$ algorithms.

      I don't think this theorem proves this. This would be an enormously huge deal, because it would show that factoring is not polynomial. The paper would state that front and center, in the abstract, in the title, and about 10 more times on the first two pages.

      I think the paper just says that what was known empirically in the past (that factorization can be done with an algorithm in the L_N[1/3, O(1)] class), is now proven formally. It does not establish a lower bound.

      Replies (1)
      1. It would prove P!=NP...
        Replies (1)
        1. Integer factorization is not known to be NP Complete.
          Replies (1)
          1. Yes, so proving factorization is in P doesn't prove that P=NP.

            Integer factorization is in NP though (it's just not proven to be NP-hard). So proving that you can't factorize in polynomial time would prove that P!=NP.

    4. I dont think so.

      Factoring in P would be the big one.

  2. I don't get the excitement

    hasn't L[1/3] factoring already been a thing for decades with general number sieve?

    Replies (1)
    1. Yes but it was never proven (hence the "unconditional" qualifier). However, I believe unconditional subexponential has been known for some weeks now, as an indirect consequence of the ETH refutation (still, L[1/3] is better). Time flies!
  3. How much _below_ exponential time are we talking about?
    Replies (2)
    1. The exponent is 105 * n^1/3 * (log n)^2/3 for the proven deterministic algorithm (this is what L[1/3, 105] apparently means). Note that the best known probabilistic algorithm, much older than this, was 1.923 * n^1/3 * (log n)^2/3 (this was L[1/3, 1.923]). This older algorithm is thus ~exp(103) times faster than the newly proven one, hence why this has no cryptographic impact. Note that n here is the bit size of the number you are trying to factor.
    2. This [1] Wikipedia article explains the notation pretty well. L[0] would be polynomial in log n, which is the actual size of the input, and L[1] would be exponential. This is L[1/3]. I guess that makes it 2/3 below exponential. ;)

      [1] https://en.wikipedia.org/wiki/L-notation

  4. All of that rumourmongering, and all we got was a stronger bound.

    ;)

  5. > Every prime factor in the output is certified deterministically via Agrawal–Kayal–Saxena primality testing

    Little did they know they could have used a faster deterministic primality test now that GRH is known to be true.

    Replies (1)
    1. Sounds interesting, which primality test is that? Do you have any references?
      Replies (1)
      1. The test I am thinking of is Miller's deterministic test [1], which predates but is related to the widely-used Miller-Rabin probabilistic test. (Note that the terminology is apparently historically a bit weird regarding what is the "Extended" vs the "Generalized" Riemann Hypothesis, but the recently released proof covers what's needed in order to prove that this test is correct.)

        [1] https://www.cs.cmu.edu/~glmiller/Publications/Papers/Mi76.pd...

        Replies (1)
        1. Nice! Thanks for the reference.
  6. Their notation is wrong: L_X(α,c) = exp *!* (c *,* ... )
  7. Alright, guess I can ask this here. In my quizzes I ask a question something like "Which of the following can factor a large composite number orders of magnitude faster than brute forcing," and the answer is none of the above, this doesn't exist.

    What do y'all think of this question? And is it still true? My gut is that it is, yes?

    Replies (2)
    1. I don’t know about orders of magnitude but there are ways to factorize that are better than just brute forcing (trial division).

      https://en.wikipedia.org/wiki/General_number_field_sieve

      I think this is misleading enough to remove the questions, since someone probably can’t be expected to know how the runtime of this algorithm actually compares to trial division and how this depends on number size.

    2. I don't think that clearly excludes randomized algorithms, and if you don't Lenstra-Pomerance 1992 was already unconditionally proven to run in L[1/2].

      There's also "can" vs. "proven worst case". Like, GNFS empirically has factored some large numbers faster than brute force would have taken.

      But no, this claimed result doesn't seem to change anything about your question.

  8. GNFS is already subexponential who cares? I want to know what they're not telling us, and hope there's some crypto left at the end of it.