]> git.proxmox.com Git - mirror_edk2.git/blame - CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
CryptoPkg: Add BigNum support
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / PeiCryptLib.inf
CommitLineData
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
0a6fc3d0 9# Note:\r
c812d320 10# HMAC-SHA256 functions, AES 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
c1e66210 16# Copyright (c) 2010 - 2022, 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
9e55ce6b 37 InternalCryptLib.h\r
97f98500
HT
38 Hash/CryptMd5.c\r
39 Hash/CryptSha1.c\r
40 Hash/CryptSha256.c\r
f0718d1d 41 Hash/CryptSm3.c\r
d69e8a7b 42 Hash/CryptSha512.c\r
c1e66210 43 Hash/CryptParallelHashNull.c\r
cbb3b6b9 44 Hmac/CryptHmac.c\r
52dbaaea 45 Kdf/CryptHkdf.c\r
532616bb 46 Cipher/CryptAesNull.c\r
a23f76e1 47 Cipher/CryptAeadAesGcmNull.c\r
532616bb 48 Pk/CryptRsaBasic.c\r
49 Pk/CryptRsaExtNull.c\r
933f1990 50 Pk/CryptPkcs1OaepNull.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
23c3178c 55 Pk/CryptPkcs7VerifyEku.c\r
532616bb 56 Pk/CryptDhNull.c\r
57 Pk/CryptX509Null.c\r
58 Pk/CryptAuthenticodeNull.c\r
2ac68e8b 59 Pk/CryptTsNull.c\r
22ac5cc9
SA
60 Pk/CryptRsaPss.c\r
61 Pk/CryptRsaPssSignNull.c\r
532616bb 62 Pem/CryptPemNull.c\r
532616bb 63 Rand/CryptRandNull.c\r
fd0ad0c3 64 Bn/CryptBnNull.c\r
97f98500
HT
65\r
66 SysCall/CrtWrapper.c\r
efad60c5 67 SysCall/ConstantTimeClock.c\r
97f98500
HT
68 SysCall/BaseMemAllocation.c\r
69\r
97f98500
HT
70[Packages]\r
71 MdePkg/MdePkg.dec\r
72 CryptoPkg/CryptoPkg.dec\r
73\r
74[LibraryClasses]\r
75 BaseLib\r
76 BaseMemoryLib\r
77 MemoryAllocationLib\r
78 DebugLib\r
79 OpensslLib\r
80 IntrinsicLib\r
81\r
b06a007b 82[FixedPcd]\r
43613b2f 83 gEfiCryptoPkgTokenSpaceGuid.PcdOpensslEcEnabled\r
b06a007b 84\r
97f98500
HT
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
f03859ea 96 GCC:*_CLANG35_*_CC_FLAGS = -std=c99\r
c51f8bae 97 GCC:*_CLANG38_*_CC_FLAGS = -std=c99\r
8ecd8c49 98 GCC:*_CLANGPDB_*_CC_FLAGS = -std=c99 -Wno-error=incompatible-pointer-types\r
466c6634
XL
99\r
100 XCODE:*_*_*_CC_FLAGS = -std=c99\r