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)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 24 Feb 2016 14:57:28 +0000 (14:57 +0000)
commite4fbf4767440472f9d23b0f25a2b905e1c63b6a8
treed1f6ba26628fce6a1aee36e81ab754443729cbcf
parentc031a4213c11a5db475f528c182f7b3858df11db
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>
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