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: 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.
13 # Copyright (c) 2010 - 2022, Intel Corporation. All rights reserved.<BR>
14 # SPDX-License-Identifier: BSD-2-Clause-Patent
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
25 PI_SPECIFICATION_VERSION = 0x0001000A
26 LIBRARY_CLASS = BaseCryptLib|DXE_SMM_DRIVER SMM_CORE MM_STANDALONE
29 # The following information is for reference only and not required by the build tools.
31 # VALID_ARCHITECTURES = IA32 X64 ARM AARCH64
44 Hash/CryptParallelHash.c
45 Hash/CryptDispatchApMm.c
49 Cipher/CryptAeadAesGcmNull.c
54 Pk/CryptPkcs7SignNull.c
55 Pk/CryptPkcs7VerifyCommon.c
56 Pk/CryptPkcs7VerifyBase.c
57 Pk/CryptPkcs7VerifyEku.c
60 Pk/CryptAuthenticodeNull.c
63 Pk/CryptRsaPssSignNull.c
69 SysCall/ConstantTimeClock.c
70 SysCall/BaseMemAllocation.c
86 CryptoPkg/CryptoPkg.dec
99 # Remove these [BuildOptions] after this library is cleaned up
103 # suppress the following warnings so we do not break the build with warnings-as-errors:
106 XCODE:*_*_*_CC_FLAGS = -mmmx -msse -std=c99
108 GCC:*_CLANG35_*_CC_FLAGS = -std=c99
109 GCC:*_CLANG38_*_CC_FLAGS = -std=c99
110 GCC:*_CLANGPDB_*_CC_FLAGS = -std=c99 -Wno-error=incompatible-pointer-types