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

Rumors swirling that labs might have cracked Factoring in P (opens external site)

513 points by lilytweed 2 days ago | www.reddit.com | 384 comments on HN

View full thread · View on Hacker News

Comment thread (12)

  1. My browser says that "The connection to this site is encrypted and authenticated using TLS 1.3, X25519MLKEM768, and AES_256_GCM

    So elliptic curve and post-quantum algorithms are already in use.

    Replies (1)
    1. No, that's key exchange. So while this means a passive eavesdropper can't decode it with a known algorithm on a quantum computer, the certificate private key used for authentication (the website's "who am I") still relies on RSA. If nothing else, then by the root certs.

      Key exchange is pretty much rolled out. Certs almost not at all. Sure, you can switch your server cert to elliptic curve, but it'll still be signed by an RSA root cert. (or could be, for impersonation)

      But also note that P=NP is not the same thing as PQC. Not exactly. A cryptographically relevant quantum computer can break factorization-based crypto, but the rumoured proof is that factoring isn't even in NP (or P is indeed NP).

      Replies (3)
      1. My browser says that the certificate for news.ycombinator.com and all the certs up to root are signed using "X9.62 ECDSA Signature with SHA-384"
        Replies (1)
        1. I should have been clearer when I said "If nothing else, then by the root certs".

          Are there ECDSA root certs? Sure. But unless you pin to them, someone can still make a fake cert rooted back to an RSA root cert.

          And I don't see any cert pinning config for news.ycombinator.com, after a brief check.

          Replies (1)
          1. If RSA is broken, wouldn't browser and smartphone app security logic be changed to not trust any authentication protocol exchange and cert signature using the RSA algorithm?

            All RSA algorithms would join RSA < 2048 bits, Diffie Helman < 2048 bits and the other algorithms for symmetric encryption, hashing and key exchange/signatures that were once used by TLS/SSL but are no longer trusted.

            Replies (1)
            1. It will be changed anyway because PQ, but it's a multi year process.

              But in any case the point was to refute "but look, the site is already safe".

      2. factorization is obviously in NP because prime factors are a certificate and PRIMES is in P
        Replies (2)
        1. You don't even need PRIMES to be in P (even though it is), factorization of an RSA key doesn't need to verify that the two factors are prime.
          Replies (1)
          1. I agree, I was just responding to the narrow question of whether factorization is in NP. To talk about that you have to phrase it as a decision problem, eg, “Does N have a prime factor between 2 and k?” To be in NP, a “yes” response should come with a certificate that’s checkable in polynomial time. So the certificate here would a prime factor. We can check in polynomial time that it’s a divisor, and that it’s prime. But also yes I agree that simply exhibiting ANY factor under shows that N has a prime factor under k, so PRIMES being in P isn’t required for factorization to be in NP.
        2. By "isn't even in NP" I meant lower complexity than NP, not higher complexity.

          But yes, pedantically also PRIMES is in NP, because P is in NP.

      3. P = NP with a practical algorithm (low exponent) does break all PQC because all PQC algorithms are in NP because they all have polynomial checkable certificates
        Replies (1)
        1. I didn't say otherwise. But unless factoring is found to be NP complete, it doesn't mean that all pubkey falls with it, as I understand it.