News for hackers. Stuff that matters.
Re:Myths about /dev/urandom by viraptor on Tuesday September 01, 2015 @03:16AM (#10151113)
There's safe and there's FUD. Nobody will read 2^80 bytes from urandom. You'll literally run out of time before that. It would take around 1,782,051,134 years to do on my system.

So if they write that there's a vulnerability after reading 2^80 bytes - that's great! We're secure. If they write that you must ensure to do something after 2^80 bytes - that's complete bullshit.

Re:Myths about /dev/urandom by raverbashing on Tuesday September 01, 2015 @04:34AM (#10151314)
Yes, reading 2^80 bytes for a practical attac is impossible today (and also for the near future)

However, remember when attacks to 3DES, MD5 were only theoretical?

Also, you may not even need to read 2^80 bytes, there might be a (future) vulnerability that allows you to shortcut this.

Re:Myths about /dev/urandom by RyanZAG on Tuesday September 01, 2015 @04:57AM (#10151360)
There are physical limits to our reality and it's very unlikely those limits can be broken (eg, speed of light). Given those limits, 2^80 is large enough that the limit cannot be surpassed without fully breaking reality (eg, timetravel).

If you can break reality, all bets are off though and trying to defend against attacks that break reality in the future are impossible.

Re:Myths about /dev/urandom by johncolanduoni on Tuesday September 01, 2015 @04:48AM (#10151340)
The difference is that weaknesses were found in 3DES and MD5. Increasing computing power was not the main factor. "Only" being able to produce 2^80 random bytes is a known and expected limitation. Sure, the CSPRNG could in theory be found to have a weakness, but that has nothing to do with the 2^80 bytes and the same could be said for virtually any cryptographic algorithm.
Re:Myths about /dev/urandom by tptacek on Tuesday September 01, 2015 @10:17AM (#10152461)
What weaknesses in 3DES are you thinking about that yield practical attacks?
Re:Myths about /dev/urandom by johncolanduoni on Tuesday September 01, 2015 @12:17PM (#10153484)
I am not arguing that there are; that was the parent comment. However, while the 3DES weaknesses don't yield practical attacks now, they still reduce the effective key length. My point was not that 3DES is different in that it is exploitable, but that it is different from the 2^80 limit in that the CSPRNG in that the later is not a result of a mistake in the algorithm's design but instead an expected feature. Just like the fact that any fixed-size key symmetric cipher is "limited" by that key size.

Now, if someone found a lower limit based on exploiting some weakness in the random number generation, the analogy with 3DES and MD5 would make more sense.

Re:Myths about /dev/urandom by tptacek on Tuesday September 01, 2015 @10:16AM (#10152457)
Which practical attacks on 3DES are you thinking of?
Re:Myths about /dev/urandom by raverbashing on Tuesday September 01, 2015 @10:26AM (#10152538)
Just brute force basically

But there seems to be smarter attacks (ref 21) https://en.wikipedia.org/wiki/Triple_DES#Security

Re:Myths about /dev/urandom by tptacek on Tuesday September 01, 2015 @10:30AM (#10152559)
Those are not practical attacks. But your argument hinges on their being non-theoretical attacks on 3DES. Are there others you were thinking of?
Re:Myths about /dev/urandom by raverbashing on Tuesday September 01, 2015 @02:06PM (#10154471)
3DES might have been a bad example.

My point is that even if today some sizes and lengths seem only of theoretical concern, tomorrow there might be a vulnerability, a new approach to the problem, or even natural technological evolution that might turn it into a practical attack (even when it seems impossible today)

Re:Myths about /dev/urandom by tptacek on Tuesday September 01, 2015 @02:42PM (#10154729)
But that's true of every cryptographic primitive. You can't make reasoned decisions based on that logic.
Re:Myths about /dev/urandom by ReidZB on Tuesday September 01, 2015 @10:36AM (#10152604)
From what I recall, the consensus is that the smarter attack is less efficient than brute force overall.