]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[efi] Distribute available entropy within stack cookie
authorMichael Brown <mcb30@ipxe.org>
Thu, 9 Jul 2020 12:56:50 +0000 (13:56 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 9 Jul 2020 12:56:50 +0000 (13:56 +0100)
commitfcdd9c0982e6c5a435fefdcc9444242fd4fbdd8b
treebca63d1a2c2331c3bfffcf8c794ba218c7e8feb4
parentf7ddda435cf0d116098351986f89517e3d88af13
[efi] Distribute available entropy within stack cookie

Several of the values used to compute a stack cookie (in the absence
of a viable entropy source) will tend to have either all-zeroes or
all-ones in the higher order bits.  Rotate the values in order to
distribute the (minimal) available entropy more evenly.

Suggested-by: Pete Beck <pete.beck@ioactive.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/interface/efi/efi_init.c