Re: [PATCH 12/12] config.mak.uname: add a note about CSPRNG_METHOD for Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 20/03/2025 05:20, Patrick Steinhardt wrote:
[snip]
>> That was my immediate thought also. :)
> 
> Okay. Will you pick it up in v2 of this patch series?

Heh, well, that was my immediate thought, but having thought
some more, and considering Brian's earlier email response, I
have thought again. ;)

Without a wholesale change to the logic (in order to make it
platform siloed), it is probably best to just set the Linux
default to 'getrandom'. (I can override in config.mak for my
tests, or just ignore that difference now I know :) ).

The issue is that each platform has a different priority order
for the 'backends' (even multiple orders depending on the
criteria, eg. availability, performance), so the current order
is probably fine on newer Linux systems. However, to cater to
older systems, it would be best to default to getrandom.

[Note cygwin and *BSD systems should prefer arc4random, on Linux
all of the three main options (arc4random, getrandom, getentropy)
are pretty much the same from a performance perspective, but
getrandom is much more 'available'].

So, yes, a v2 of the series, but a different final patch.

ATB,
Ramsay Jones





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux