[PATCH] urngd: Add support for read()ing entropy

Petr Štetiar ynezz at true.cz
Mon Jul 13 03:15:49 EDT 2020


nwfilardo at gmail.com <nwfilardo at gmail.com> [2020-07-12 21:57:39]:

Hi,

> From: Nathaniel Wesley Filardo <nwfilardo at gmail.com>
> 
> This allows us to attach a hwrng exposed as a character device (e.g.).
> 
> At most one sample will be taken every time we also add entropy via the
> jitter mechanism.  We won't try reading if the stream hasn't indicated its
> readiness, and we'll go back to waiting if ever the stream produces
> 0 bytes or an error on read.
> 
> While here, do some tidying:

please split this into two separate patches so it's easier to review and
reason about. One for the RNG fd, 2nd for the cleanup. Thanks.

-- ynezz



More information about the openwrt-devel mailing list