audk/SecurityPkg/RandomNumberGenerator/RngDxe
Flickdm a85336531c SecurityPkg RngDxe: Remove incorrect limitation on GetRng
Removed from gEfiRngAlgorithmRaw an incorrect assumption that
Raw cannot return less than 256 bits. The DRNG Algorithms
should always use a 256 bit seed as per nist standards
however a caller is free to request less than 256 bits.
>
>     //
>    // When a DRBG is used on the output of a entropy source,
>    // its security level must be at least 256 bits according to UEFI
Spec.
>    //
>    if (RNGValueLength < 32) {
>      return EFI_INVALID_PARAMETER;
>    }
>

AARCH64 platforms do not have this limitation and this brings both
implementations into alignment with each other and the spec.

Cc: Jiewen Yao <jiewen.yao@intel.com>

Signed-off-by: Doug Flick [MSFT] <doug.edk2@gmail.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Pierre Gondois <pierre.gondois@arm.com>
Acked-by: Jiewe Yao <Jiewen.yao@intel.com>
2024-05-24 15:48:52 +00:00
..
AArch64 SecurityPkg: RngDxe: Fixing mAvailableAlgoArray allocator 2023-09-08 12:48:57 +00:00
Arm SecurityPkg: RngDxe: Fixing mAvailableAlgoArray allocator 2023-09-08 12:48:57 +00:00
Rand SecurityPkg RngDxe: Remove incorrect limitation on GetRng 2024-05-24 15:48:52 +00:00
ArmRngDxe.c SecurityPkg/RngDxe: Simplify Rng algorithm selection for Arm 2023-09-08 09:48:55 +00:00
ArmTrng.c SecurityPkg/RngDxe: Add AArch64 RawAlgorithm support through ArmTrngLib 2022-11-06 16:32:28 +00:00
RngDxe.c SecurityPkg/RngDxe: Conditionally install EFI_RNG_PROTOCOL 2023-03-07 15:34:23 +00:00
RngDxe.inf SecurityPkg/RngDxe: Use GetRngGuid() when probing RngLib 2023-09-08 09:48:55 +00:00
RngDxe.uni SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
RngDxeExtra.uni SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
RngDxeInternals.h SecurityPkg/RngDxe: Check before advertising Cpu Rng algo 2022-11-06 16:32:28 +00:00