]> Git Repo - linux.git/commit - include/linux/efi.h
efi/random: Increase size of firmware supplied randomness
authorArd Biesheuvel <[email protected]>
Fri, 25 Aug 2017 15:50:16 +0000 (16:50 +0100)
committerIngo Molnar <[email protected]>
Sat, 26 Aug 2017 07:20:33 +0000 (09:20 +0200)
commitc2ceb5fd4e921506e86208b82fca716a2c3aad59
tree960b9e5412ea59b8326b83939104f1c1ada0cab1
parentccc829ba3624beb9a703fc995d016b836d9eead8
efi/random: Increase size of firmware supplied randomness

The crng code requires at least 64 bytes (2 * CHACHA20_BLOCK_SIZE)
to complete the fast boot-time init, so provide that many bytes
when invoking UEFI protocols to seed the entropy pool. Also, add
a notice so we can tell from the boot log when the seeding actually
took place.

Signed-off-by: Ard Biesheuvel <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Matt Fleming <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
drivers/firmware/efi/efi.c
drivers/firmware/efi/libstub/random.c
include/linux/efi.h
This page took 0.050039 seconds and 4 git commands to generate.