]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
0a2eb0323272b18971eb54bdf57aa53de42f2bbd
[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-MD5 functions, HMAC-SHA1/SHA256 functions, AES/TDES/ARC4 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 - 2020, Intel Corporation. All rights reserved.<BR>
15 # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
16 # SPDX-License-Identifier: BSD-2-Clause-Patent
17 #
18 ##
19
20 [Defines]
21 INF_VERSION = 0x00010005
22 BASE_NAME = RuntimeCryptLib
23 MODULE_UNI_FILE = RuntimeCryptLib.uni
24 FILE_GUID = 78189cc0-727d-46a4-84ea-f7dd860de64a
25 MODULE_TYPE = DXE_RUNTIME_DRIVER
26 VERSION_STRING = 1.0
27 LIBRARY_CLASS = BaseCryptLib|DXE_RUNTIME_DRIVER
28 CONSTRUCTOR = RuntimeCryptLibConstructor
29
30 #
31 # The following information is for reference only and not required by the build tools.
32 #
33 # VALID_ARCHITECTURES = IA32 X64 ARM AARCH64
34 #
35
36 [Sources]
37 InternalCryptLib.h
38 Hash/CryptMd5.c
39 Hash/CryptSha1.c
40 Hash/CryptSha256.c
41 Hash/CryptSm3.c
42 Hash/CryptSha512Null.c
43 Hmac/CryptHmacMd5Null.c
44 Hmac/CryptHmacSha1Null.c
45 Hmac/CryptHmacSha256Null.c
46 Kdf/CryptHkdfNull.c
47 Cipher/CryptAesNull.c
48 Cipher/CryptTdesNull.c
49 Cipher/CryptArc4Null.c
50 Pk/CryptRsaBasic.c
51 Pk/CryptRsaExtNull.c
52 Pk/CryptPkcs1OaepNull.c
53 Pk/CryptPkcs5Pbkdf2Null.c
54 Pk/CryptPkcs7SignNull.c
55 Pk/CryptPkcs7VerifyCommon.c
56 Pk/CryptPkcs7VerifyRuntime.c
57 Pk/CryptPkcs7VerifyEkuRuntime.c
58 Pk/CryptDhNull.c
59 Pk/CryptX509.c
60 Pk/CryptAuthenticodeNull.c
61 Pk/CryptTsNull.c
62 Pem/CryptPem.c
63
64 SysCall/CrtWrapper.c
65 SysCall/TimerWrapper.c
66 SysCall/RuntimeMemAllocation.c
67
68 [Sources.Ia32]
69 Rand/CryptRandTsc.c
70
71 [Sources.X64]
72 Rand/CryptRandTsc.c
73
74 [Sources.ARM]
75 Rand/CryptRand.c
76
77 [Sources.AARCH64]
78 Rand/CryptRand.c
79
80 [Sources.RISCV64]
81 Rand/CryptRand.c
82
83 [Packages]
84 MdePkg/MdePkg.dec
85 CryptoPkg/CryptoPkg.dec
86
87 [LibraryClasses]
88 BaseLib
89 BaseMemoryLib
90 UefiBootServicesTableLib
91 UefiRuntimeServicesTableLib
92 DebugLib
93 OpensslLib
94 IntrinsicLib
95 PrintLib
96
97 #
98 # Remove these [BuildOptions] after this library is cleaned up
99 #
100 [BuildOptions]
101 #
102 # suppress the following warnings so we do not break the build with warnings-as-errors:
103 # C4090: 'function' : different 'const' qualifiers
104 #
105 MSFT:*_*_*_CC_FLAGS = /wd4090
106
107 # -JCryptoPkg/Include : To disable the use of the system includes provided by RVCT
108 # --diag_remark=1 : Reduce severity of "#1-D: last line of file ends without a newline"
109 RVCT:*_*_ARM_CC_FLAGS = -JCryptoPkg/Include --diag_remark=1
110
111 GCC:*_CLANG35_*_CC_FLAGS = -std=c99
112 GCC:*_CLANG38_*_CC_FLAGS = -std=c99
113 GCC:*_CLANGPDB_*_CC_FLAGS = -std=c99 -Wno-error=incompatible-pointer-types
114
115 XCODE:*_*_*_CC_FLAGS = -std=c99