[cryptography] Weak random data XOR good enough random data = better random data?

James A. Donald jamesd at echeque.com
Mon Jul 28 16:44:56 EDT 2014

On 2014-07-29 02:23, Lodewijk andré de la porte wrote:
> Hey everyone,
> If I XOR probably random data with good enough random data, does that
> result in at least good enough random data?

Yes, but other mixing functions are better.

Best to hash all streams together, rather than xor them together.  Then 
if there is any random difference between two imperfectly random 
streams, the resulting stream will be more random than either one.

More information about the cryptography mailing list