]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
CryptoPkg: Need to enable crypto functions
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / PeiCryptLib.inf
... / ...
CommitLineData
1## @file\r
2# Cryptographic Library Instance for PEIM.\r
3#\r
4# Caution: This module requires additional review when modified.\r
5# This library will have external input - signature.\r
6# This external input must be validated carefully to avoid security issues such as\r
7# buffer overflow or integer overflow.\r
8#\r
9# Note:\r
10# HMAC-SHA256 functions, AES functions, RSA external\r
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
15#\r
16# Copyright (c) 2010 - 2022, Intel Corporation. All rights reserved.<BR>\r
17# SPDX-License-Identifier: BSD-2-Clause-Patent\r
18#\r
19##\r
20\r
21[Defines]\r
22 INF_VERSION = 0x00010005\r
23 BASE_NAME = PeiCryptLib\r
24 MODULE_UNI_FILE = PeiCryptLib.uni\r
25 FILE_GUID = 9a2a4375-194c-4e97-9f67-547ec98d96ca\r
26 MODULE_TYPE = PEIM\r
27 VERSION_STRING = 1.0\r
28 LIBRARY_CLASS = BaseCryptLib|PEIM PEI_CORE\r
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
37 InternalCryptLib.h\r
38 Hash/CryptMd5.c\r
39 Hash/CryptSha1.c\r
40 Hash/CryptSha256.c\r
41 Hash/CryptSm3.c\r
42 Hash/CryptSha512.c\r
43 Hash/CryptSha3.c\r
44 Hash/CryptXkcp.c\r
45 Hash/CryptCShake256.c\r
46 Hash/CryptParallelHash.c\r
47 Hash/CryptDispatchApPei.c\r
48 Hmac/CryptHmac.c\r
49 Kdf/CryptHkdf.c\r
50 Cipher/CryptAes.c\r
51 Cipher/CryptAeadAesGcmNull.c\r
52 Pk/CryptRsaBasic.c\r
53 Pk/CryptRsaExtNull.c\r
54 Pk/CryptPkcs1OaepNull.c\r
55 Pk/CryptPkcs5Pbkdf2Null.c\r
56 Pk/CryptPkcs7SignNull.c\r
57 Pk/CryptPkcs7VerifyCommon.c\r
58 Pk/CryptPkcs7VerifyBase.c\r
59 Pk/CryptPkcs7VerifyEku.c\r
60 Pk/CryptDhNull.c\r
61 Pk/CryptX509Null.c\r
62 Pk/CryptAuthenticodeNull.c\r
63 Pk/CryptTsNull.c\r
64 Pk/CryptRsaPss.c\r
65 Pk/CryptRsaPssSignNull.c\r
66 Pk/CryptEcNull.c\r
67 Pem/CryptPemNull.c\r
68 Rand/CryptRandNull.c\r
69 Bn/CryptBnNull.c\r
70\r
71 SysCall/CrtWrapper.c\r
72 SysCall/ConstantTimeClock.c\r
73 SysCall/BaseMemAllocation.c\r
74\r
75[Packages]\r
76 MdePkg/MdePkg.dec\r
77 CryptoPkg/CryptoPkg.dec\r
78\r
79[LibraryClasses]\r
80 BaseLib\r
81 BaseMemoryLib\r
82 MemoryAllocationLib\r
83 DebugLib\r
84 OpensslLib\r
85 IntrinsicLib\r
86 PrintLib\r
87 PeiServicesTablePointerLib\r
88 PeiServicesLib\r
89 SynchronizationLib\r
90\r
91[Ppis]\r
92 gEfiPeiMpServicesPpiGuid\r
93#\r
94# Remove these [BuildOptions] after this library is cleaned up\r
95#\r
96[BuildOptions]\r
97 #\r
98 # suppress the following warnings so we do not break the build with warnings-as-errors:\r
99 #\r
100 GCC:*_CLANG35_*_CC_FLAGS = -std=c99\r
101 GCC:*_CLANG38_*_CC_FLAGS = -std=c99\r
102 GCC:*_CLANGPDB_*_CC_FLAGS = -std=c99 -Wno-error=incompatible-pointer-types\r
103\r
104 XCODE:*_*_*_CC_FLAGS = -std=c99\r