svn commit: r285439 - head/sys/dev/random

2015-07-13 Thread Mark Murray
Author: markm Date: Mon Jul 13 08:38:21 2015 New Revision: 285439 URL: https://svnweb.freebsd.org/changeset/base/285439 Log: Rework the read routines to keep the PRNG sources happy. These work in units of crypto blocks, so must have adequate space to write. This means needing to be careful

Re: svn commit: r285439 - head/sys/dev/random

2015-07-13 Thread Mark R V Murray
On 13 Jul 2015, at 20:25, Peter Jeremy pe...@rulingia.com wrote: On 2015-Jul-13 08:38:21 +, Mark Murray ma...@freebsd.org wrote: +/* + * Belt-and-braces. + * Round up the read length to a crypto block size multiple, +

Re: svn commit: r285439 - head/sys/dev/random

2015-07-13 Thread Peter Jeremy
On 2015-Jul-13 08:38:21 +, Mark Murray ma...@freebsd.org wrote: + /* + * Belt-and-braces. + * Round up the read length to a crypto block size multiple, + * which is what the underlying generator is