2 # Cryptographic Library Instance for PEIM.
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.
10 # HMAC-SHA256 functions, AES functions, RSA external
11 # functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, X.509
12 # certificate handler functions, authenticode signature verification functions,
13 # PEM handler functions, and pseudorandom number generator functions are not
14 # supported in this instance.
16 # Copyright (c) 2010 - 2022, Intel Corporation. All rights reserved.<BR>
17 # SPDX-License-Identifier: BSD-2-Clause-Patent
22 INF_VERSION = 0x00010005
23 BASE_NAME = PeiCryptLib
24 MODULE_UNI_FILE = PeiCryptLib.uni
25 FILE_GUID = 9a2a4375-194c-4e97-9f67-547ec98d96ca
28 LIBRARY_CLASS = BaseCryptLib|PEIM PEI_CORE
31 # The following information is for reference only and not required by the build tools.
33 # VALID_ARCHITECTURES = IA32 X64
43 Hash/CryptParallelHashNull.c
47 Cipher/CryptAeadAesGcmNull.c
50 Pk/CryptPkcs1OaepNull.c
51 Pk/CryptPkcs5Pbkdf2Null.c
52 Pk/CryptPkcs7SignNull.c
53 Pk/CryptPkcs7VerifyCommon.c
54 Pk/CryptPkcs7VerifyBase.c
55 Pk/CryptPkcs7VerifyEku.c
58 Pk/CryptAuthenticodeNull.c
61 Pk/CryptRsaPssSignNull.c
68 SysCall/ConstantTimeClock.c
69 SysCall/BaseMemAllocation.c
73 CryptoPkg/CryptoPkg.dec
84 gEfiCryptoPkgTokenSpaceGuid.PcdOpensslEcEnabled
87 # Remove these [BuildOptions] after this library is cleaned up
91 # suppress the following warnings so we do not break the build with warnings-as-errors:
92 # C4090: 'function' : different 'const' qualifiers
93 # C4718: 'function call' : recursive call has no side effects, deleting
95 MSFT:*_*_*_CC_FLAGS = /wd4090 /wd4718
97 GCC:*_CLANG35_*_CC_FLAGS = -std=c99
98 GCC:*_CLANG38_*_CC_FLAGS = -std=c99
99 GCC:*_CLANGPDB_*_CC_FLAGS = -std=c99 -Wno-error=incompatible-pointer-types
101 XCODE:*_*_*_CC_FLAGS = -std=c99