Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1388101

Re: random(4) changes

From Stephan Mueller <smueller@chronox.de>
Newsgroups linux.kernel
Subject Re: random(4) changes
Date 2016-04-26 23:10 +0200
Message-ID <rsip4-6eQ-23@gated-at.bofh.it> (permalink)
References <rsi5I-5Mq-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Am Dienstag, 26. April 2016, 16:43:30 schrieb George Spelvin:

Hi George,

(I am not covering the initial part as I leave you time to read through the 
paper which should cover those aspects)

> 
> That's what I don't like about Intel's RDRAND and similar hardware RNGs:
> they are whitening too early.
> 
> That's also what I don't like about XORing down to 1 bit before adding
> to the pool.  Again, whitening too early!
> 
> 
> Is that any clearer?

I see what you are saying. And I know that the best way (TM) would be to 
simply concatenate the time stamps. But that is not feasible.

And considering that I only want to have 0.9 bits of entropy, why should I not 
collapse it? The XOR operation does not destroy the existing entropy, it only 
caps it to at most one bit of information theoretical entropy. As I can show 
that the original value has many more bits of entropy, I use that as my safety 
margin.

Hence, I combine the safety margin provided by the XOR folding with a nice and 
easy maintenance of the harvested one bit by simply concatenating them. Again, 
the entire harvesting and collection shall be very easy to understand without 
hiding anything. In addition it is intended to solely use XOR and 
concatenation, i.e. the two only functions whose effect on entropy are known.

Ciao
Stephan

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: random(4) changes "George Spelvin" <linux@horizon.com> - 2016-04-26 22:50 +0200
  Re: random(4) changes Stephan Mueller <smueller@chronox.de> - 2016-04-26 23:10 +0200
    Re: random(4) changes "George Spelvin" <linux@horizon.com> - 2016-04-27 02:30 +0200
      Re: random(4) changes "George Spelvin" <linux@horizon.com> - 2016-04-27 20:10 +0200

csiph-web