aboutsummaryrefslogtreecommitdiffstats
path: root/src/selftest
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-23 18:02:08 +0000
committerlloyd <[email protected]>2008-11-23 18:02:08 +0000
commit1bddfc5aeffc8ece20c18b4b8f6a9a006969ff80 (patch)
tree4d3d3bde418c6fde92c30e439939cb3b2889c3ba /src/selftest
parent6ed33c39344921294b782f004002a942cbd82eb6 (diff)
Change unix_procs entropy source to be a plain EntropySource instead of
a Buffered_EntropySource. Data used in the poll is directly accumulated into the output buffer using XOR, wrapping around as needed. The implementation uses xor_into_buf from xor_buf.h This is simpler and more convincingly secure than the method used by Buffered_EntropySource. In particular the collected data is persisted in the buffer there much longer than needed. It is also much harder for entropy sources to signal errors or a failure to collected data using Buffered_EntropySource. And, with the simple xor_into_buf function, it is actually quite easy to remove without major changes.
Diffstat (limited to 'src/selftest')
0 files changed, 0 insertions, 0 deletions