efi: stub: implement efi_get_random_bytes() based on EFI_RNG_PROTOCOL
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Sun, 10 Jan 2016 10:29:07 +0000 (11:29 +0100)
committerAlex Shi <alex.shi@linaro.org>
Wed, 11 May 2016 15:20:52 +0000 (23:20 +0800)
commitee6457583818600e4c9b7f3a09d358d6ae3727b8
tree45df2ff9ac427af2cf289c816c85e57474ae2547
parent98e23ea3a3dd23269a69282291f9bef53e262bc2
efi: stub: implement efi_get_random_bytes() based on EFI_RNG_PROTOCOL

This exposes the firmware's implementation of EFI_RNG_PROTOCOL via a new
function efi_get_random_bytes().

Reviewed-by: Matt Fleming <matt@codeblueprint.co.uk>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit e4fbf4767440472f9d23b0f25a2b905e1c63b6a8)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
drivers/firmware/efi/libstub/Makefile
drivers/firmware/efi/libstub/efistub.h
drivers/firmware/efi/libstub/random.c [new file with mode: 0644]
include/linux/efi.h