Remix.run Logo
▲ Merrill a day ago

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.

▲knorker a day ago | parent | next [-]

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

▲articulatepang a day ago | parent | next [-]

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

▲knorker 11 hours ago | parent [-]

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.

▲Merrill a day ago | parent | prev | next [-]

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"

▲knorker a day ago | parent [-]

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.

▲Merrill a day ago | parent [-]

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.

▲knorker 14 hours ago | parent [-]

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".

▲articulatepang a day ago | parent | prev [-]

factorization is obviously in NP because prime factors are a certificate and PRIMES is in P

▲Sesse__ a day ago | parent | next [-]

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.

▲articulatepang a day ago | parent [-]

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.

▲knorker 14 hours ago | parent | prev [-]

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.

▲ a day ago | parent | prev [-]
[deleted]