]>
Commit | Line | Data |
---|---|---|
97f98500 HT |
1 | ## @file\r |
2 | # Cryptographic Library Instance for PEIM.\r | |
3 | #\r | |
dc204d5a JY |
4 | # Caution: This module requires additional review when modified.\r |
5 | # This library will have external input - signature.\r | |
2ac68e8b | 6 | # This external input must be validated carefully to avoid security issues such as\r |
dda856b3 | 7 | # buffer overflow or integer overflow.\r |
dc204d5a | 8 | #\r |
630f67dd | 9 | # Note: MD4 Digest functions,\r |
72009c62 | 10 | # HMAC-MD5 functions, HMAC-SHA1/SHA256 functions, AES/TDES/ARC4 functions, RSA external\r |
630f67dd LG |
11 | # functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, X.509\r |
12 | # certificate handler functions, authenticode signature verification functions,\r | |
13 | # PEM handler functions, and pseudorandom number generator functions are not\r | |
2ac68e8b | 14 | # supported in this instance.\r |
532616bb | 15 | #\r |
d69e8a7b | 16 | # Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r |
2009f6b4 | 17 | # SPDX-License-Identifier: BSD-2-Clause-Patent\r |
2ac68e8b | 18 | #\r |
97f98500 HT |
19 | ##\r |
20 | \r | |
21 | [Defines]\r | |
22 | INF_VERSION = 0x00010005\r | |
23 | BASE_NAME = PeiCryptLib\r | |
dda856b3 | 24 | MODULE_UNI_FILE = PeiCryptLib.uni\r |
97f98500 HT |
25 | FILE_GUID = 9a2a4375-194c-4e97-9f67-547ec98d96ca\r |
26 | MODULE_TYPE = PEIM\r | |
27 | VERSION_STRING = 1.0\r | |
532616bb | 28 | LIBRARY_CLASS = BaseCryptLib|PEIM PEI_CORE\r |
97f98500 HT |
29 | \r |
30 | #\r | |
31 | # The following information is for reference only and not required by the build tools.\r | |
32 | #\r | |
33 | # VALID_ARCHITECTURES = IA32 X64\r | |
34 | #\r | |
35 | \r | |
36 | [Sources]\r | |
532616bb | 37 | Hash/CryptMd4Null.c\r |
97f98500 HT |
38 | Hash/CryptMd5.c\r |
39 | Hash/CryptSha1.c\r | |
40 | Hash/CryptSha256.c\r | |
d69e8a7b | 41 | Hash/CryptSha512.c\r |
532616bb | 42 | Hmac/CryptHmacMd5Null.c\r |
43 | Hmac/CryptHmacSha1Null.c\r | |
72009c62 | 44 | Hmac/CryptHmacSha256Null.c\r |
532616bb | 45 | Cipher/CryptAesNull.c\r |
46 | Cipher/CryptTdesNull.c\r | |
47 | Cipher/CryptArc4Null.c\r | |
48 | \r | |
49 | Pk/CryptRsaBasic.c\r | |
50 | Pk/CryptRsaExtNull.c\r | |
a8f37449 | 51 | Pk/CryptPkcs5Pbkdf2Null.c\r |
532616bb | 52 | Pk/CryptPkcs7SignNull.c\r |
cc01b26e JW |
53 | Pk/CryptPkcs7VerifyCommon.c\r |
54 | Pk/CryptPkcs7VerifyBase.c\r | |
532616bb | 55 | \r |
56 | Pk/CryptDhNull.c\r | |
57 | Pk/CryptX509Null.c\r | |
58 | Pk/CryptAuthenticodeNull.c\r | |
2ac68e8b | 59 | Pk/CryptTsNull.c\r |
532616bb | 60 | Pem/CryptPemNull.c\r |
61 | \r | |
62 | Rand/CryptRandNull.c\r | |
97f98500 HT |
63 | \r |
64 | SysCall/CrtWrapper.c\r | |
efad60c5 | 65 | SysCall/ConstantTimeClock.c\r |
97f98500 HT |
66 | SysCall/BaseMemAllocation.c\r |
67 | \r | |
97f98500 HT |
68 | [Packages]\r |
69 | MdePkg/MdePkg.dec\r | |
70 | CryptoPkg/CryptoPkg.dec\r | |
71 | \r | |
72 | [LibraryClasses]\r | |
73 | BaseLib\r | |
74 | BaseMemoryLib\r | |
75 | MemoryAllocationLib\r | |
76 | DebugLib\r | |
77 | OpensslLib\r | |
78 | IntrinsicLib\r | |
79 | \r | |
80 | #\r | |
81 | # Remove these [BuildOptions] after this library is cleaned up\r | |
82 | #\r | |
83 | [BuildOptions]\r | |
ec7ad9e1 QL |
84 | #\r |
85 | # suppress the following warnings so we do not break the build with warnings-as-errors:\r | |
86 | # C4090: 'function' : different 'const' qualifiers\r | |
f663ed8a | 87 | # C4718: 'function call' : recursive call has no side effects, deleting\r |
ec7ad9e1 | 88 | #\r |
f663ed8a | 89 | MSFT:*_*_*_CC_FLAGS = /wd4090 /wd4718\r |
ec7ad9e1 | 90 | \r |
5fa05671 AB |
91 | # -JCryptoPkg/Include : To disable the use of the system includes provided by RVCT\r |
92 | # --diag_remark=1 : Reduce severity of "#1-D: last line of file ends without a newline"\r | |
93 | RVCT:*_*_ARM_CC_FLAGS = -JCryptoPkg/Include --diag_remark=1\r |