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