2 # Cryptographic Library Instance for SMM driver.
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.
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.
14 # Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.<BR>
15 # SPDX-License-Identifier: BSD-2-Clause-Patent
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
26 PI_SPECIFICATION_VERSION = 0x0001000A
27 LIBRARY_CLASS = BaseCryptLib|DXE_SMM_DRIVER SMM_CORE MM_STANDALONE
30 # The following information is for reference only and not required by the build tools.
32 # VALID_ARCHITECTURES = IA32 X64 ARM AARCH64
42 Hash/CryptSha512Null.c
43 Hmac/CryptHmacMd5Null.c
44 Hmac/CryptHmacSha1Null.c
45 Hmac/CryptHmacSha256.c
48 Cipher/CryptTdesNull.c
49 Cipher/CryptArc4Null.c
54 Pk/CryptPkcs7SignNull.c
55 Pk/CryptPkcs7VerifyCommon.c
56 Pk/CryptPkcs7VerifyBase.c
57 Pk/CryptPkcs7VerifyEku.c
60 Pk/CryptAuthenticodeNull.c
65 SysCall/ConstantTimeClock.c
66 SysCall/BaseMemAllocation.c
82 CryptoPkg/CryptoPkg.dec
94 # Remove these [BuildOptions] after this library is cleaned up
98 # suppress the following warnings so we do not break the build with warnings-as-errors:
99 # C4090: 'function' : different 'const' qualifiers
101 MSFT:*_*_*_CC_FLAGS = /wd4090
103 XCODE:*_*_*_CC_FLAGS = -mmmx -msse -std=c99
105 GCC:*_CLANG35_*_CC_FLAGS = -std=c99
106 GCC:*_CLANG38_*_CC_FLAGS = -std=c99
107 GCC:*_CLANG9_*_CC_FLAGS = -std=c99 -Wno-error=incompatible-pointer-types