Even knowing p=np would not change anything that fast. As I understand it, it just tells that P will grow polynomial with the difficulty rising. It doesn't tell "it's easy" or "can be made with less compute". For breaking the RSA you would need factorization of the multiplication of two big prime numbers
For a concrete example, parsing an ambiguous context-free grammar is O(n³). Not only is this in P, 3 is about as small as you can hope for an exponent to be.
We find that exponent of 3 so onerous that we devote all our efforts to developing unambiguous grammars instead.
Various gross programming errors come from using an O(n²) algorithm - quadratic time is considered the practical worst case for sorting algorithms, n+1 database queries are bad because they're quadratic, returning-to-the-paint-pot ( https://martynplummer.wordpress.com/2015/10/16/shlemiel-the-... ) is bad because it's quadratic...
> Most of the discourse around "polynomial time" assumes that "polynomial time" means "linear".
This is not true. The discourse assumes not galactic/feasible before heat death of the universe. We want to avoid n^3 for random grammars we parse all the time. For cracking cryptography, even if it's onerous enough to require like a year of supercomputer time to crack a single one, there are high value targets that make it worth it
> For cracking cryptography, even if it's onerous enough to require like a year of supercomputer time to crack a single one, there are high value targets that make it worth it
even being able to hit 5-6 certificates, and only 5-6, still unravels the entire PKI world.
crack the root certs and everything else is in jeopardy
like, do you trust the large corporations buying up all of the compute?
> For cracking cryptography, even if it's onerous enough to require like a year of supercomputer time to crack a single one, there are high value targets that make it worth it
The nature of polynomial complexity with a moderate exponent - let's say it's 3 again - is that if something takes a year of supercomputer time, you can easily blow it up into 1000 years of supercomputer time. With an exponent of 3, that means increasing the problem size by a factor of 10, so I guess instead of a 2048-bit key you'd have a 2.5KB key.
How much of a problem would that actually pose?
What if we blew the key size up to 2.5MB? That's basically table stakes for any modern communication over the internet anyway. (OK, a random wikipedia page that I already had open sends me about 1MB of content. There is no perceptible loading time.)
> The discourse assumes not galactic/feasible before heat death of the universe.
There's exactly one reason for this: we've made assumptions that allow us to set that standard. If it turns out that we need assumptions that won't allow for that standard, we will painlessly change the standard; there is no need, under any circumstances, to set cracking time to "the lifetime of the universe".
Back-of-the-envelope math applied to OpenSSL's RSA benchmark, assuming the complexity of RSA public and private key operations is roughly quadratic and cubic in key size, respectively, suggests that one core on my desktop PC's Kaby Lake i7 would take a few minutes to do a single 2.5 MB RSA public key operation and a couple years to do a single 2.5 MB RSA private key operation.
Replies (1)
We find that exponent of 3 so onerous that we devote all our efforts to developing unambiguous grammars instead.
Various gross programming errors come from using an O(n²) algorithm - quadratic time is considered the practical worst case for sorting algorithms, n+1 database queries are bad because they're quadratic, returning-to-the-paint-pot ( https://martynplummer.wordpress.com/2015/10/16/shlemiel-the-... ) is bad because it's quadratic...
Rockstar made the news by putting quadratic-time bugs into the loading screen for GTA Online: https://nee.lv/2021/02/28/How-I-cut-GTA-Online-loading-times...
Most of the discourse around "polynomial time" assumes that "polynomial time" means "linear".
Replies (1)
This is not true. The discourse assumes not galactic/feasible before heat death of the universe. We want to avoid n^3 for random grammars we parse all the time. For cracking cryptography, even if it's onerous enough to require like a year of supercomputer time to crack a single one, there are high value targets that make it worth it
Replies (2)
even being able to hit 5-6 certificates, and only 5-6, still unravels the entire PKI world.
crack the root certs and everything else is in jeopardy
like, do you trust the large corporations buying up all of the compute?
The nature of polynomial complexity with a moderate exponent - let's say it's 3 again - is that if something takes a year of supercomputer time, you can easily blow it up into 1000 years of supercomputer time. With an exponent of 3, that means increasing the problem size by a factor of 10, so I guess instead of a 2048-bit key you'd have a 2.5KB key.
How much of a problem would that actually pose?
What if we blew the key size up to 2.5MB? That's basically table stakes for any modern communication over the internet anyway. (OK, a random wikipedia page that I already had open sends me about 1MB of content. There is no perceptible loading time.)
> The discourse assumes not galactic/feasible before heat death of the universe.
There's exactly one reason for this: we've made assumptions that allow us to set that standard. If it turns out that we need assumptions that won't allow for that standard, we will painlessly change the standard; there is no need, under any circumstances, to set cracking time to "the lifetime of the universe".
Replies (1)
Back-of-the-envelope math applied to OpenSSL's RSA benchmark, assuming the complexity of RSA public and private key operations is roughly quadratic and cubic in key size, respectively, suggests that one core on my desktop PC's Kaby Lake i7 would take a few minutes to do a single 2.5 MB RSA public key operation and a couple years to do a single 2.5 MB RSA private key operation.