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.
9 # Note: MD4 Digest functions, SHA-384 Digest functions, SHA-512 Digest functions,
10 # HMAC-MD5 functions, HMAC-SHA1/SHA256 functions, AES/TDES/ARC4 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 - 2017, Intel Corporation. All rights reserved.<BR>
17 # This program and the accompanying materials
18 # are licensed and made available under the terms and conditions of the BSD License
19 # which accompanies this distribution. The full text of the license may be found at
20 # http://opensource.org/licenses/bsd-license.php
22 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
23 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
28 INF_VERSION = 0x00010005
29 BASE_NAME = PeiCryptLib
30 MODULE_UNI_FILE = PeiCryptLib.uni
31 FILE_GUID = 9a2a4375-194c-4e97-9f67-547ec98d96ca
34 LIBRARY_CLASS = BaseCryptLib|PEIM PEI_CORE
37 # The following information is for reference only and not required by the build tools.
39 # VALID_ARCHITECTURES = IA32 X64
47 Hash/CryptSha512Null.c
48 Hmac/CryptHmacMd5Null.c
49 Hmac/CryptHmacSha1Null.c
50 Hmac/CryptHmacSha256Null.c
52 Cipher/CryptTdesNull.c
53 Cipher/CryptArc4Null.c
57 Pk/CryptPkcs5Pbkdf2Null.c
58 Pk/CryptPkcs7SignNull.c
63 Pk/CryptAuthenticodeNull.c
70 SysCall/ConstantTimeClock.c
71 SysCall/BaseMemAllocation.c
75 CryptoPkg/CryptoPkg.dec
86 # Remove these [BuildOptions] after this library is cleaned up
90 # suppress the following warnings so we do not break the build with warnings-as-errors:
91 # C4090: 'function' : different 'const' qualifiers
92 # C4718: 'function call' : recursive call has no side effects, deleting
94 MSFT:*_*_*_CC_FLAGS = /wd4090 /wd4718
96 GCC:*_GCC44_IA32_CC_FLAGS = "-D__cdecl=__attribute__((cdecl))" "-D__declspec(t)=__attribute__((t))"
98 # -JCryptoPkg/Include : To disable the use of the system includes provided by RVCT
99 # --diag_remark=1 : Reduce severity of "#1-D: last line of file ends without a newline"
100 RVCT:*_*_ARM_CC_FLAGS = -JCryptoPkg/Include --diag_remark=1