]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / RuntimeCryptLib.inf
1 ## @file
2 # Cryptographic Library Instance for DXE_RUNTIME_DRIVER.
3 #
4 # Caution: This module requires additional review when modified.
5 # This library will have external input - signature.
6 # This external input must be validated carefully to avoid security issues such as
7 # buffer overflow or integer overflow.
8 #
9 # Note: SHA-384 Digest functions, SHA-512 Digest functions,
10 # HMAC-SHA256 functions, AES functions, RSA external
11 # functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, and
12 # authenticode signature verification functions are not supported in this instance.
13 #
14 # Copyright (c) 2009 - 2022, Intel Corporation. All rights reserved.<BR>
15 # Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
16 # Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
17 # SPDX-License-Identifier: BSD-2-Clause-Patent
18 #
19 ##
20
21 [Defines]
22 INF_VERSION = 0x00010005
23 BASE_NAME = RuntimeCryptLib
24 MODULE_UNI_FILE = RuntimeCryptLib.uni
25 FILE_GUID = 78189cc0-727d-46a4-84ea-f7dd860de64a
26 MODULE_TYPE = DXE_RUNTIME_DRIVER
27 VERSION_STRING = 1.0
28 LIBRARY_CLASS = BaseCryptLib|DXE_RUNTIME_DRIVER
29 CONSTRUCTOR = RuntimeCryptLibConstructor
30
31 #
32 # The following information is for reference only and not required by the build tools.
33 #
34 # VALID_ARCHITECTURES = IA32 X64 ARM AARCH64
35 #
36
37 [Sources]
38 InternalCryptLib.h
39 Hash/CryptMd5.c
40 Hash/CryptSha1.c
41 Hash/CryptSha256.c
42 Hash/CryptSm3.c
43 Hash/CryptSha512.c
44 Hash/CryptParallelHashNull.c
45 Hmac/CryptHmac.c
46 Kdf/CryptHkdf.c
47 Cipher/CryptAes.c
48 Cipher/CryptAeadAesGcmNull.c
49 Pk/CryptRsaBasic.c
50 Pk/CryptRsaExtNull.c
51 Pk/CryptPkcs1OaepNull.c
52 Pk/CryptPkcs5Pbkdf2Null.c
53 Pk/CryptPkcs7SignNull.c
54 Pk/CryptPkcs7VerifyCommon.c
55 Pk/CryptPkcs7VerifyRuntime.c
56 Pk/CryptPkcs7VerifyEkuRuntime.c
57 Pk/CryptDhNull.c
58 Pk/CryptX509.c
59 Pk/CryptAuthenticodeNull.c
60 Pk/CryptTsNull.c
61 Pk/CryptRsaPssNull.c
62 Pk/CryptRsaPssSignNull.c
63 Pk/CryptEcNull.c
64 Pem/CryptPem.c
65 Bn/CryptBnNull.c
66
67 SysCall/CrtWrapper.c
68 SysCall/TimerWrapper.c
69 SysCall/RuntimeMemAllocation.c
70
71 [Sources.Ia32]
72 Rand/CryptRandTsc.c
73
74 [Sources.X64]
75 Rand/CryptRandTsc.c
76
77 [Sources.ARM]
78 Rand/CryptRand.c
79
80 [Sources.AARCH64]
81 Rand/CryptRand.c
82
83 [Sources.RISCV64]
84 Rand/CryptRand.c
85
86 [Sources.LOONGARCH64]
87 Rand/CryptRand.c
88
89 [Packages]
90 MdePkg/MdePkg.dec
91 CryptoPkg/CryptoPkg.dec
92
93 [LibraryClasses]
94 BaseLib
95 BaseMemoryLib
96 UefiRuntimeServicesTableLib
97 DebugLib
98 OpensslLib
99 IntrinsicLib
100 PrintLib
101
102 #
103 # Remove these [BuildOptions] after this library is cleaned up
104 #
105 [BuildOptions]
106 #
107 # suppress the following warnings so we do not break the build with warnings-as-errors:
108 #
109 GCC:*_CLANG35_*_CC_FLAGS = -std=c99
110 GCC:*_CLANG38_*_CC_FLAGS = -std=c99
111 GCC:*_CLANGPDB_*_CC_FLAGS = -std=c99 -Wno-error=incompatible-pointer-types
112
113 XCODE:*_*_*_CC_FLAGS = -std=c99