]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
c79f2bf4c6c0fd04711586f632dec0c4ff56dbdd
[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 InternalCryptLib.h
37 Hash/CryptMd4Null.c
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/CryptHmacSha256.c
46 Cipher/CryptAes.c
47 Cipher/CryptTdesNull.c
48 Cipher/CryptArc4Null.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 Pem/CryptPem.c
62
63 SysCall/CrtWrapper.c
64 SysCall/ConstantTimeClock.c
65 SysCall/BaseMemAllocation.c
66
67 [Sources.Ia32]
68 Rand/CryptRandTsc.c
69
70 [Sources.X64]
71 Rand/CryptRandTsc.c
72
73 [Sources.ARM]
74 Rand/CryptRand.c
75
76 [Sources.AARCH64]
77 Rand/CryptRand.c
78
79 [Packages]
80 MdePkg/MdePkg.dec
81 CryptoPkg/CryptoPkg.dec
82
83 [LibraryClasses]
84 BaseLib
85 IoLib
86 BaseMemoryLib
87 MemoryAllocationLib
88 OpensslLib
89 IntrinsicLib
90 PrintLib
91
92 #
93 # Remove these [BuildOptions] after this library is cleaned up
94 #
95 [BuildOptions]
96 #
97 # suppress the following warnings so we do not break the build with warnings-as-errors:
98 # C4090: 'function' : different 'const' qualifiers
99 #
100 MSFT:*_*_*_CC_FLAGS = /wd4090
101
102 XCODE:*_*_*_CC_FLAGS = -mmmx -msse -std=c99
103
104 GCC:*_CLANG35_*_CC_FLAGS = -std=c99
105 GCC:*_CLANG38_*_CC_FLAGS = -std=c99