2015-07-29 06:33:24

by Stephan Müller

[permalink] [raw]
Subject: Re: [PATCH 2/2] ath9k: export HW random number generator

Am Dienstag, 28. Juli 2015, 13:41:57 schrieb Sandy Harris:

Hi Sandy,
>
>> However, the hwrandom framework does not provide any conditioning logic.
>
>At first sight, this sounds like a blunder to me, but I have not
>looked at hwrandom at all. Is there a rationale?

I think hwrandom is solely a framework to hook up RNG devices to user space.
There is no massaging of data coming from the HW RNGs. Usually those HW RNGs
all have their own conditioner and there is no need to do a conditioning
again.
>
>For example, not building conditioning into that driver would make
>perfect sense if the output were just being fed into the random(4)
>which does plenty of mixing. The only problem then would be to make
>sure of giving random(4) reasonable entropy estimates.

hwrandom *may* be used to feed into the entropy pools. But there is no
technical guarantee for that. Furthermore, I have seen use cases where the
output of hwrandom is used for other purposes.

Ciao
Stephan