]> git.proxmox.com Git - mirror_edk2.git/blame - SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf
SecurityPkg/RngDxe: Check before advertising Cpu Rng algo
[mirror_edk2.git] / SecurityPkg / RandomNumberGenerator / RngDxe / RngDxe.inf
CommitLineData
3aa8dc6c 1## @file\r
60c944c7 2# Produces the UEFI Random Number Generator protocol\r
3aa8dc6c
LQ
3#\r
4# This module will leverage Intel Secure Key technology to produce the Random\r
5# Number Generator protocol, which is used to provide high-quality random numbers\r
6# for use in applications, or entropy for seeding other random number generators.\r
7# Refer to http://software.intel.com/en-us/articles/intel-digital-random-number\r
8# -generator-drng-software-implementation-guide/ for more information about Intel\r
9# Secure Key technology.\r
10#\r
b3548d32 11# Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
3b60842c 12# (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
8a897478 13# Copyright (c) 2021 - 2022, Arm Limited. All rights reserved.<BR>\r
289b714b 14# SPDX-License-Identifier: BSD-2-Clause-Patent\r
3aa8dc6c
LQ
15#\r
16##\r
17\r
18[Defines]\r
19 INF_VERSION = 0x00010005\r
20 BASE_NAME = RngDxe\r
21 FILE_GUID = B981A835-6EE8-4f4c-AE0B-210AA0BFBF01\r
22 MODULE_TYPE = DXE_DRIVER\r
23 VERSION_STRING = 1.0\r
24 ENTRY_POINT = RngDriverEntry\r
4b3e9d80 25 UNLOAD_IMAGE = RngDriverUnLoad\r
60c944c7 26 MODULE_UNI_FILE = RngDxe.uni\r
3aa8dc6c
LQ
27\r
28#\r
29# The following information is for reference only and not required by the build tools.\r
30#\r
4e5ecdba 31# VALID_ARCHITECTURES = IA32 X64 AARCH64\r
3aa8dc6c
LQ
32#\r
33\r
34[Sources.common]\r
35 RngDxe.c\r
4e5ecdba
RC
36 RngDxeInternals.h\r
37\r
38[Sources.IA32, Sources.X64]\r
39 Rand/RngDxe.c\r
40 Rand/RdRand.c\r
4e5ecdba
RC
41 Rand/AesCore.c\r
42 Rand/AesCore.h\r
43\r
44[Sources.AARCH64]\r
45 AArch64/RngDxe.c\r
3aa8dc6c 46\r
3aa8dc6c
LQ
47[Packages]\r
48 MdePkg/MdePkg.dec\r
49 SecurityPkg/SecurityPkg.dec\r
50\r
51[LibraryClasses]\r
52 UefiLib\r
53 UefiBootServicesTableLib\r
54 BaseLib\r
b3548d32 55 DebugLib\r
3aa8dc6c
LQ
56 UefiDriverEntryPoint\r
57 TimerLib\r
3b60842c 58 RngLib\r
3aa8dc6c
LQ
59\r
60[Guids]\r
4e5ecdba
RC
61 gEfiRngAlgorithmSp80090Hash256Guid ## SOMETIMES_PRODUCES ## GUID # Unique ID of the algorithm for RNG\r
62 gEfiRngAlgorithmSp80090Hmac256Guid ## SOMETIMES_PRODUCES ## GUID # Unique ID of the algorithm for RNG\r
60c944c7 63 gEfiRngAlgorithmSp80090Ctr256Guid ## SOMETIMES_PRODUCES ## GUID # Unique ID of the algorithm for RNG\r
4e5ecdba
RC
64 gEfiRngAlgorithmX9313DesGuid ## SOMETIMES_PRODUCES ## GUID # Unique ID of the algorithm for RNG\r
65 gEfiRngAlgorithmX931AesGuid ## SOMETIMES_PRODUCES ## GUID # Unique ID of the algorithm for RNG\r
60c944c7 66 gEfiRngAlgorithmRaw ## SOMETIMES_PRODUCES ## GUID # Unique ID of the algorithm for RNG\r
3aa8dc6c
LQ
67\r
68[Protocols]\r
60c944c7 69 gEfiRngProtocolGuid ## PRODUCES\r
3aa8dc6c 70\r
4e5ecdba
RC
71[Pcd]\r
72 gEfiSecurityPkgTokenSpaceGuid.PcdCpuRngSupportedAlgorithm ## CONSUMES\r
73\r
3aa8dc6c
LQ
74[Depex]\r
75 TRUE\r
9a70350f
AF
76\r
77[BuildOptions]\r
78 XCODE:*_*_*_CC_FLAGS = -mmmx -msse\r
60c944c7
DG
79\r
80[UserExtensions.TianoCore."ExtraFiles"]\r
3b60842c 81 RngDxeExtra.uni\r