Re:Android RNG Weakness Renders Bitcoin Wallets Insecure
by tptacek on Monday August 12, 2013 @10:54AM
(#6199518)
So then what you should do is write a "libpcap for randomness" that uses the best-practices method of getting randomness from the OS CSPRNG. On Linux it'll be just a couple lines; on BSD it'll be a few more lines for the "atomicio" equivalent read, and on WINAPI it'd set up and call CryptGenRandom.
There's value in having a uniform interface to all the different OS CSPRNGs.
What I'm saying isn't valuable is duplicative effort to build additional CSPRNG logic in the app layer. As we keep seeing, these app-layer CSPRNGs are additional single points of failure; they don't add defensive depth.
Re:Android RNG Weakness Renders Bitcoin Wallets Insecure
by tedunangst on Monday August 12, 2013 @12:22PM
(#6200018)
How is OpenSSL RAND_bytes not that uniform interface?
Re:Android RNG Weakness Renders Bitcoin Wallets Insecure
by tptacek on Monday August 12, 2013 @12:35PM
(#6200110)
OpenSSL provides its own CSPRNG. When that CSPRNG breaks, as it has in the past, no amount of careful validation of the OS CSPRNG helps you. The OpenSSL CSPRNG is thus a second single point of failure.
Oh great, yet another way that Linux developers are going to write broken code because they think the whole unix world behaves like Linux...