I’m not qualified to answer this.
(Well my qualification is this – I took a semester of Theory of Computation class about a decade ago and barely managed to pass without screwing up my scholarship in the foreign country I was studying in. Today I write PHP during my day job..)
One way to try to get the private key is to try all possibilities. For an RSA key with 4096 bits, there are 2^4096 possible keys, which I’m told is greater than the number of atoms in the universe.
So you see, this is a O(2^n) operation. ie., the algorithm is “exponential”.
You’ll never finish checking all those combinations before the universe ends, or at least not before the Sun explodes and the Earth ceases to exist as we know it.
Unless you’re really really lucky and a key you try during your lifetime happens to be the actual private key. But the likelihood of that happening is practically zero because of the sheer number of possibilities.
The point is, you have to exhaustively check all possible keys. Exponential.
P=NP means there exists a polynomial time (O(n^k)) algorithm to find the private key. ie., it can be found relatively quickly.
This is all I know. I skipped a lot of details. Experts can chime in.
> P=NP means there exists a polynomial time (O(n^k)) algorithm to find the private key. ie., it can be found relatively quickly.
Assuming k is manageable. If k=4096, you're still in for a bad time with even the next 50 years of computers (more quantum breakthroughs notwithstanding)
RSA can be broken much faster than brute force because it's a matter of factorizing a number. That's why the key is so long. 4096 bits is quite excessive when only 256 are needed for quantum brute force prevention.
Not claiming to be an expert, but you can game this by saying you can find a 4096-bit RSA key in O(1) time, because O(2^4096) is O(1). :P
I like your explanation, but you merely said that a high number of possibilities means it takes a long high time to break it. This is true independently of whether such high number is obtained as an exponential (2^n) or a polynomial (k*n, with k very big).
I think it's more about growth: if we ever build a supercomputer that can break RSA in a reasonal time, we will bump that 4096 a bit to still be safe. In the case of exponential algorithm like 2^n, if you increase n by 1, you double the breaking time. In the other case you have to double n to get the same effect.
So, it's not about how hard it is to break it, it's about how fast can we make it harder.