]>
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 |
2ac68e8b | 9 | # Note: MD4 Digest functions, SHA-384 Digest functions, SHA-512 Digest functions,\r |
72009c62 | 10 | # HMAC-MD5 functions, HMAC-SHA1/SHA256 functions, AES/TDES/ARC4 functions, RSA external\r |
2ac68e8b QL |
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 | |
14 | # supported in this instance.\r | |
532616bb | 15 | #\r |
ec7ad9e1 | 16 | # Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>\r |
97f98500 HT |
17 | # This program and the accompanying materials\r |
18 | # are licensed and made available under the terms and conditions of the BSD License\r | |
19 | # which accompanies this distribution. The full text of the license may be found at\r | |
20 | # http://opensource.org/licenses/bsd-license.php\r | |
2ac68e8b | 21 | #\r |
97f98500 HT |
22 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r |
23 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
2ac68e8b | 24 | #\r |
97f98500 HT |
25 | ##\r |
26 | \r | |
27 | [Defines]\r | |
28 | INF_VERSION = 0x00010005\r | |
29 | BASE_NAME = PeiCryptLib\r | |
dda856b3 | 30 | MODULE_UNI_FILE = PeiCryptLib.uni\r |
97f98500 HT |
31 | FILE_GUID = 9a2a4375-194c-4e97-9f67-547ec98d96ca\r |
32 | MODULE_TYPE = PEIM\r | |
33 | VERSION_STRING = 1.0\r | |
532616bb | 34 | LIBRARY_CLASS = BaseCryptLib|PEIM PEI_CORE\r |
97f98500 HT |
35 | \r |
36 | #\r | |
37 | # The following information is for reference only and not required by the build tools.\r | |
38 | #\r | |
39 | # VALID_ARCHITECTURES = IA32 X64\r | |
40 | #\r | |
41 | \r | |
42 | [Sources]\r | |
532616bb | 43 | Hash/CryptMd4Null.c\r |
97f98500 HT |
44 | Hash/CryptMd5.c\r |
45 | Hash/CryptSha1.c\r | |
46 | Hash/CryptSha256.c\r | |
2ac68e8b | 47 | Hash/CryptSha512Null.c\r |
532616bb | 48 | Hmac/CryptHmacMd5Null.c\r |
49 | Hmac/CryptHmacSha1Null.c\r | |
72009c62 | 50 | Hmac/CryptHmacSha256Null.c\r |
532616bb | 51 | Cipher/CryptAesNull.c\r |
52 | Cipher/CryptTdesNull.c\r | |
53 | Cipher/CryptArc4Null.c\r | |
54 | \r | |
55 | Pk/CryptRsaBasic.c\r | |
56 | Pk/CryptRsaExtNull.c\r | |
a8f37449 | 57 | Pk/CryptPkcs5Pbkdf2Null.c\r |
532616bb | 58 | Pk/CryptPkcs7SignNull.c\r |
59 | Pk/CryptPkcs7Verify.c\r | |
60 | \r | |
61 | Pk/CryptDhNull.c\r | |
62 | Pk/CryptX509Null.c\r | |
63 | Pk/CryptAuthenticodeNull.c\r | |
2ac68e8b | 64 | Pk/CryptTsNull.c\r |
532616bb | 65 | Pem/CryptPemNull.c\r |
66 | \r | |
67 | Rand/CryptRandNull.c\r | |
97f98500 HT |
68 | \r |
69 | SysCall/CrtWrapper.c\r | |
efad60c5 | 70 | SysCall/ConstantTimeClock.c\r |
97f98500 HT |
71 | SysCall/BaseMemAllocation.c\r |
72 | \r | |
97f98500 HT |
73 | [Packages]\r |
74 | MdePkg/MdePkg.dec\r | |
75 | CryptoPkg/CryptoPkg.dec\r | |
76 | \r | |
77 | [LibraryClasses]\r | |
78 | BaseLib\r | |
79 | BaseMemoryLib\r | |
80 | MemoryAllocationLib\r | |
81 | DebugLib\r | |
82 | OpensslLib\r | |
83 | IntrinsicLib\r | |
84 | \r | |
85 | #\r | |
86 | # Remove these [BuildOptions] after this library is cleaned up\r | |
87 | #\r | |
88 | [BuildOptions]\r | |
ec7ad9e1 QL |
89 | #\r |
90 | # suppress the following warnings so we do not break the build with warnings-as-errors:\r | |
91 | # C4090: 'function' : different 'const' qualifiers\r | |
f663ed8a | 92 | # C4718: 'function call' : recursive call has no side effects, deleting\r |
ec7ad9e1 | 93 | #\r |
f663ed8a | 94 | MSFT:*_*_*_CC_FLAGS = /wd4090 /wd4718\r |
ec7ad9e1 | 95 | \r |
97f98500 | 96 | GCC:*_GCC44_IA32_CC_FLAGS = "-D__cdecl=__attribute__((cdecl))" "-D__declspec(t)=__attribute__((t))"\r |
5fa05671 AB |
97 | \r |
98 | # -JCryptoPkg/Include : To disable the use of the system includes provided by RVCT\r | |
99 | # --diag_remark=1 : Reduce severity of "#1-D: last line of file ends without a newline"\r | |
100 | RVCT:*_*_ARM_CC_FLAGS = -JCryptoPkg/Include --diag_remark=1\r |