]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
9318052a51c54becc5eebb85efc399e18e8d9ac7
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / SmmCryptLib.inf
1 ## @file
2 # Cryptographic Library Instance for SMM 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 # RSA external functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, and
11 # authenticode signature verification functions are not supported in this instance.
12 #
13 # Copyright (c) 2010 - 2022, Intel Corporation. All rights reserved.<BR>
14 # SPDX-License-Identifier: BSD-2-Clause-Patent
15 #
16 ##
17
18 [Defines]
19 INF_VERSION = 0x00010005
20 BASE_NAME = SmmCryptLib
21 MODULE_UNI_FILE = SmmCryptLib.uni
22 FILE_GUID = 028080a3-8958-4a62-a1a8-0fa1da162007
23 MODULE_TYPE = DXE_SMM_DRIVER
24 VERSION_STRING = 1.0
25 PI_SPECIFICATION_VERSION = 0x0001000A
26 LIBRARY_CLASS = BaseCryptLib|DXE_SMM_DRIVER SMM_CORE MM_STANDALONE
27
28 #
29 # The following information is for reference only and not required by the build tools.
30 #
31 # VALID_ARCHITECTURES = IA32 X64 ARM AARCH64
32 #
33
34 [Sources]
35 InternalCryptLib.h
36 Hash/CryptMd5.c
37 Hash/CryptSha1.c
38 Hash/CryptSha256.c
39 Hash/CryptSm3.c
40 Hash/CryptSha512.c
41 Hash/CryptSha3.c
42 Hash/CryptXkcp.c
43 Hash/CryptCShake256.c
44 Hash/CryptParallelHash.c
45 Hmac/CryptHmac.c
46 Kdf/CryptHkdfNull.c
47 Cipher/CryptAes.c
48 Cipher/CryptAeadAesGcmNull.c
49 Pk/CryptRsaBasic.c
50 Pk/CryptRsaExtNull.c
51 Pk/CryptPkcs1Oaep.c
52 Pk/CryptPkcs5Pbkdf2.c
53 Pk/CryptPkcs7SignNull.c
54 Pk/CryptPkcs7VerifyCommon.c
55 Pk/CryptPkcs7VerifyBase.c
56 Pk/CryptPkcs7VerifyEku.c
57 Pk/CryptDhNull.c
58 Pk/CryptX509.c
59 Pk/CryptAuthenticodeNull.c
60 Pk/CryptTsNull.c
61 Pk/CryptRsaPss.c
62 Pk/CryptRsaPssSignNull.c
63 Pk/CryptEcNull.c
64 Pem/CryptPem.c
65 Bn/CryptBnNull.c
66
67 SysCall/CrtWrapper.c
68 SysCall/ConstantTimeClock.c
69 SysCall/BaseMemAllocation.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 [Packages]
84 MdePkg/MdePkg.dec
85 CryptoPkg/CryptoPkg.dec
86
87 [LibraryClasses]
88 BaseLib
89 IoLib
90 BaseMemoryLib
91 MemoryAllocationLib
92 OpensslLib
93 IntrinsicLib
94 PrintLib
95 MmServicesTableLib
96 SynchronizationLib
97
98 [FixedPcd]
99 gEfiCryptoPkgTokenSpaceGuid.PcdOpensslEcEnabled
100
101 #
102 # Remove these [BuildOptions] after this library is cleaned up
103 #
104 [BuildOptions]
105 #
106 # suppress the following warnings so we do not break the build with warnings-as-errors:
107 # C4090: 'function' : different 'const' qualifiers
108 #
109 MSFT:*_*_*_CC_FLAGS = /wd4090
110
111 XCODE:*_*_*_CC_FLAGS = -mmmx -msse -std=c99
112
113 GCC:*_CLANG35_*_CC_FLAGS = -std=c99
114 GCC:*_CLANG38_*_CC_FLAGS = -std=c99
115 GCC:*_CLANGPDB_*_CC_FLAGS = -std=c99 -Wno-error=incompatible-pointer-types