]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
3fd7d65abfcaaec406b10c936e5d2dd610fdc122
[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: MD4 Digest functions, SHA-384 Digest functions, SHA-512 Digest functions,
10 # HMAC-MD5 functions, HMAC-SHA1 functions, 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) 2010 - 2019, Intel Corporation. All rights reserved.<BR>
15 # SPDX-License-Identifier: BSD-2-Clause-Patent
16 #
17 ##
18
19 [Defines]
20 INF_VERSION = 0x00010005
21 BASE_NAME = SmmCryptLib
22 MODULE_UNI_FILE = SmmCryptLib.uni
23 FILE_GUID = 028080a3-8958-4a62-a1a8-0fa1da162007
24 MODULE_TYPE = DXE_SMM_DRIVER
25 VERSION_STRING = 1.0
26 PI_SPECIFICATION_VERSION = 0x0001000A
27 LIBRARY_CLASS = BaseCryptLib|DXE_SMM_DRIVER SMM_CORE MM_STANDALONE
28
29 #
30 # The following information is for reference only and not required by the build tools.
31 #
32 # VALID_ARCHITECTURES = IA32 X64 ARM AARCH64
33 #
34
35 [Sources]
36 Hash/CryptMd4Null.c
37 Hash/CryptMd5.c
38 Hash/CryptSha1.c
39 Hash/CryptSha256.c
40 Hash/CryptSm3.c
41 Hash/CryptSha512Null.c
42 Hmac/CryptHmacMd5Null.c
43 Hmac/CryptHmacSha1Null.c
44 Hmac/CryptHmacSha256.c
45 Cipher/CryptAes.c
46 Cipher/CryptTdesNull.c
47 Cipher/CryptArc4Null.c
48 Pk/CryptRsaBasic.c
49 Pk/CryptRsaExtNull.c
50 Pk/CryptPkcs1Oaep.c
51 Pk/CryptPkcs5Pbkdf2.c
52 Pk/CryptPkcs7SignNull.c
53 Pk/CryptPkcs7VerifyCommon.c
54 Pk/CryptPkcs7VerifyBase.c
55 Pk/CryptPkcs7VerifyEku.c
56 Pk/CryptDhNull.c
57 Pk/CryptX509.c
58 Pk/CryptAuthenticodeNull.c
59 Pk/CryptTsNull.c
60 Pem/CryptPem.c
61
62 SysCall/CrtWrapper.c
63 SysCall/ConstantTimeClock.c
64 SysCall/BaseMemAllocation.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 [Packages]
79 MdePkg/MdePkg.dec
80 CryptoPkg/CryptoPkg.dec
81
82 [LibraryClasses]
83 BaseLib
84 IoLib
85 BaseMemoryLib
86 MemoryAllocationLib
87 OpensslLib
88 IntrinsicLib
89 PrintLib
90
91 #
92 # Remove these [BuildOptions] after this library is cleaned up
93 #
94 [BuildOptions]
95 #
96 # suppress the following warnings so we do not break the build with warnings-as-errors:
97 # C4090: 'function' : different 'const' qualifiers
98 #
99 MSFT:*_*_*_CC_FLAGS = /wd4090
100
101 XCODE:*_*_*_CC_FLAGS = -mmmx -msse -std=c99
102
103 GCC:*_CLANG35_*_CC_FLAGS = -std=c99
104 GCC:*_CLANG38_*_CC_FLAGS = -std=c99