[Buildroot] [PATCH v3] package/urandom-scripts: actually credit seed files via seedrng

Jason A. Donenfeld Jason at zx2c4.com
Mon Apr 4 14:32:31 UTC 2022


Hi David,

On Sun, Apr 03, 2022 at 07:30:23AM +0000, David Laight wrote:
> >   AFAIU (but neither the commit message nor the seedrng about page explain it)
> > the Blake2 algorithm was simply chosen because it's small. Any hash function
> > should be fine. There's sha1, sha2 and sha3 in libbb, so I guess one of them
> > should have all the desired properties.
> 
> The unrolled blakes2 is typically 5kb of object code.
> The unrolled code is better for large buffers,
> but just fetching the code to the I-cache will
> significantly affect performance for small buffers.
> I really ought to sit and measure the cutoff.
> 
> The code is:
> [...]

Yes, yes, I know: you've been peppering my inbox about BLAKE2s for a few
months now. :-) By the way, for the kernel, you still haven't sent
me any real patches yet. Happy to look at whatever code with benchmarks
you have available.

Anyway, for busybox, I'll likely be using something already in libbb, so
no worries here.

Jason



More information about the buildroot mailing list