]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
CryptoPkg/BaseCryptLib: Enabled CryptSha512 for Smm/Runtime drivers
[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 - 2021, Intel Corporation. All rights reserved.<BR>
15 # Copyright (c) 2021, 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/CryptSha512.c
43 Hmac/CryptHmacSha256.c
44 Kdf/CryptHkdf.c
45 Cipher/CryptAes.c
46 Pk/CryptRsaBasic.c
47 Pk/CryptRsaExtNull.c
48 Pk/CryptPkcs1OaepNull.c
49 Pk/CryptPkcs5Pbkdf2Null.c
50 Pk/CryptPkcs7SignNull.c
51 Pk/CryptPkcs7VerifyCommon.c
52 Pk/CryptPkcs7VerifyRuntime.c
53 Pk/CryptPkcs7VerifyEkuRuntime.c
54 Pk/CryptDhNull.c
55 Pk/CryptX509.c
56 Pk/CryptAuthenticodeNull.c
57 Pk/CryptTsNull.c
58 Pk/CryptRsaPssNull.c
59 Pk/CryptRsaPssSignNull.c
60 Pem/CryptPem.c
61
62 SysCall/CrtWrapper.c
63 SysCall/TimerWrapper.c
64 SysCall/RuntimeMemAllocation.c
65
66 [Sources.Ia32]
67 Rand/CryptRandTsc.c
68
69 [Sources.X64]
70 Rand/CryptRandTsc.c
71
72 [Sources.ARM]
73 Rand/CryptRand.c
74
75 [Sources.AARCH64]
76 Rand/CryptRand.c
77
78 [Sources.RISCV64]
79 Rand/CryptRand.c
80
81 [Packages]
82 MdePkg/MdePkg.dec
83 CryptoPkg/CryptoPkg.dec
84
85 [LibraryClasses]
86 BaseLib
87 BaseMemoryLib
88 UefiBootServicesTableLib
89 UefiRuntimeServicesTableLib
90 DebugLib
91 OpensslLib
92 IntrinsicLib
93 PrintLib
94
95 #
96 # Remove these [BuildOptions] after this library is cleaned up
97 #
98 [BuildOptions]
99 #
100 # suppress the following warnings so we do not break the build with warnings-as-errors:
101 # C4090: 'function' : different 'const' qualifiers
102 #
103 MSFT:*_*_*_CC_FLAGS = /wd4090
104
105 # -JCryptoPkg/Include : To disable the use of the system includes provided by RVCT
106 # --diag_remark=1 : Reduce severity of "#1-D: last line of file ends without a newline"
107 RVCT:*_*_ARM_CC_FLAGS = -JCryptoPkg/Include --diag_remark=1
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