r/askscience •

If quantim computers become a widespread stable technololgy will there be any way to protect our communications with encryption? Will we just have to resign ourselves to the fact that people would be listening in on us?

[deleted] — view deleted post

0 Upvotes

697 comments sorted by

View all comments

Show parent comment

236

u/compounding May 26 '17

Classified hardware or not, the “Moore’s law” of general purpose quantum computing (useful for breaking cryptography unlike special purpose optimization systems like D-Wave) has a doubling time of ~6 years, and an ideal quantum computer capable of attacking widely used RSA 2048 keys is still 8 generations away, requiring nearly 50 years even assuming that the current exponential growth continues. Considering that the first systems are likely to be less than ideal, 9 or 10 generations might be more realistic guesses for a useable attack.

Even if the NSA is 3 generations and nearly 2 decades ahead of the publicly known/published academics, they would still be more than 30 years away from a practical attack on current crypto systems using quantum computing.

On the other hand, if the NSA is even 1-2 years ahead of the curve (and security patches) on endpoint exploitation with standard 0-day attacks, then they can crack into just about any system and read the data before it gets encrypted in the first place no matter how strong the algorithm.

If you were assigning priorities at the NSA, which attack vector would you choose to focus on?

69

u/armrha May 26 '17

Yep - this is why the information security people accurately predicted the NSA strategy right after they closed down their chip plants. It's just the practical approach - the government does not have unlimited money.

41

u/nano_adler May 26 '17

I want to add that Snowden encrypted his Leaks with PGP. Since he had a very profound look into NSA tech, I don't believe that the NSA could decrypt those algorithms.

15

u/asdjk482 May 26 '17

I don't know anything about cryptography, but isn't the security of key-based systems like PGP dependent on the mathematical difficulty of certain encryption functions, like factorization or whatever?

26

u/nano_adler May 26 '17

/u/mfukar explains it quite nicely. Most current Crypto-Algorithms rely on factorization or other calculation that can be done quickly done in one-way, but not the other way around. Factorization is slow, but multiplying is quick. A quantum computer (or a good algorithm nobody has thougth of, yet) could make factorization fast.

Since Snowden apparantly trusts in PGP, he seems to think that the NSA would be far away from a quantum computer and those better factorization techniques.

10

u/OhNoTokyo May 26 '17

Or perhaps Snowden doesn't care if the NSA can decrypt his data. I mean, it's not like they don't already have the data, right?

I suppose he might want to prevent the NSA from knowing everything he took, but it was my impression that his data was encrypted to mostly keep it out of third party hands before he was ready to release it to them himself.

And of course, Snowden may also be wrong about NSA capabilities, even if he's significantly more in the know than your average man on the street would be. But, again, I don't think he cares if they decrypt it or he thinks the process is sufficiently expensive enough that they wouldn't bother or couldn't do so in a reasonable amount of time.

11

u/UncleMeat11 May 26 '17

The snowden leaks do one better. They provide evidence that the NSA was looking for ways to circumvent SSL. This implies that they do not have the capabilities to break current asymmetric schemes.

→ More replies (3)

8

u/armrha May 26 '17

The process is not just expensive, it's essentially impossible, even for the NSA. The amount of time it'd take to have a 50/50 shot at cracking it is astronomical, even if you converted all matter in the solar system into a computer for doing it. And there is just no way they are five decades ahead of the current rate of progression for quantum computers, especially not just in the last 4 years since we got a peek on how they spend their budgets.

6

u/BabyFaceMagoo2 May 26 '17

They don't have a quantum computer in the NSA, no.

They are still using the cluster made from like 2000 PS3s ffs.

2

u/millijuna May 28 '17

In the case of most cryptography as we think of it, the public key cryptography (aka RSA) is only used to encrypt the key exchange for a more efficient stream cypher. So, for example, you would use AES or similar cypher to encrypt the body of your email or text, and then use RSA to encrypt and transmit the AES key.

2

u/mfukar Parallel and Distributed Systems | Edge Computing May 26 '17

If there's anything you should not rely on authority for, it's encryption.

11

u/dfgdfsgdfs May 26 '17

the “Moore’s law” of general purpose quantum computing (useful for breaking cryptography

There is no "general purpose quantum computing" up to date.

There are reports describing probability distributions of various numbers of "qbits" - that is entangled particles. While the results are consistent with theory describing quantum entanglement when you look at error bars of any of those measurements it is clear that there are no stable entanglements.

Entanglement is a probability distribution and breaking cryptography requires exact answer. If your answer is 1 in 10100 accurate you need to repeat your calculations about 10500 times to get a correct answer for RSA-2048.

So when we will see report of entanglement of 2048 qbits we will be still methods, technologies and physics away from general purpose quantum computing.

5

u/compounding May 26 '17

Yes, I fully agree. My use of “general purpose” as a stand in for “capable of running Shor’s or Grover’s algorithm” is quite misleading in retrospect since “general purpose” has an established definition which implies quite a different set of capabilities.

And yes, 2048 qbits is the theoretical minimum, but practically it is far more likely that a real world attack will require at least double that to apply error correction for the decoherence which is almost assured on systems that large.

→ More replies (2)

4

u/steak21 May 26 '17

50 years to become a serious threat to encryption? So we'll have time to develop better quantum cryptography.

17

u/compounding May 26 '17

Yes, for current strong keys like RSA 2048 or AES 256, but note that there are lots of applications that don’t currently implement such strong encryption and those would be vulnerable sooner until and unless they were upgraded.

Also note that even a properly implemented quantum computer running Shor’s algorithm with the requisite qbits doesn’t take the cracking time down to zero, it drops the difficulty massively, but has hard limits on a single machine that would require something like 4 months to crack a single strong modern key (i.e., you would need hundreds run in parallel to make real world use of such a design).

There are also likely to be other theoretical advancements and optimizations along the way, but even a fully functioning quantum computer right now running in the NSA wouldn’t immediately “break” the world until it can be manufactured at scale, and even then we can get an extra generation or two by moving past current 2048 bit keys which are only predicted to be good for ~15 years against the progression of standard computational attacks anyway.

21

u/thegreatunclean May 26 '17

More specifically Grover's reduces the keystrength of algorithms like AES-256 by half, so AES-256 on a quantum computer is as strong as AES-128 is on a normal computer. Safe for now, baring some massive breakthrough.

We have good thermodynamics-based reasons to believe that 2^256 operations is impossible for a classical computer to achieve. So even with known quantum speedups a 512-bit symmetric key should be "safe" from brute-force attacks.

The light at the end of the tunnel is slightly dashed by the fact that all popular public-key crypto is borked and that's how the symmetric keys are exchanged. It takes zero effort to break AES-256 if you can trivially break the RSA that covered the key exchange.

→ More replies (5)

2

u/ESCAPE_PLANET_X May 26 '17

To add to that, I believe without checking the current number of quidbits we've gotten working is like 26? Was someone other than dwave. Got a ways to go before they can even attack the smaller key spaces of more common encryption.

1

u/EtcEtcWhateva May 26 '17

What's the time difference between RSA 2048 and RSA 4096? Would it just be 6 years?

1

u/compounding May 26 '17

Roughly, yes, assuming an optimal implementation that doesn’t require extra bits for error correction. Certainly no longer than 2 generations (12 years) for a non-perfect system assuming that the doubling time holds.

Adding key length doesn’t give you a lot of time until the “next generation” can handle the key, but it does makes each key harder to crack on a quantum computer that can handle the key. Roughly, 14 days on a single quantum computer for 1024, 110 days for 2048, and ~2.5 years for 4096 on a computer with enough qbits for each respectively, and it isn’t very clear to me if that limit can be accelerated at all by running it in parallel on multiple systems like you can with classical computing.

1

u/RUreddit2017 May 26 '17

And Moore's Law has been over for a little bit now, so it's really far more generations away then that

→ More replies (51)