]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
CryptoPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / PeiCryptLib.inf
1 ## @file
2 # Cryptographic Library Instance for PEIM.
3 #
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.
8 #
9 # Note: MD4 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.
15 #
16 # Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
17 # SPDX-License-Identifier: BSD-2-Clause-Patent
18 #
19 ##
20
21 [Defines]
22 INF_VERSION = 0x00010005
23 BASE_NAME = PeiCryptLib
24 MODULE_UNI_FILE = PeiCryptLib.uni
25 FILE_GUID = 9a2a4375-194c-4e97-9f67-547ec98d96ca
26 MODULE_TYPE = PEIM
27 VERSION_STRING = 1.0
28 LIBRARY_CLASS = BaseCryptLib|PEIM PEI_CORE
29
30 #
31 # The following information is for reference only and not required by the build tools.
32 #
33 # VALID_ARCHITECTURES = IA32 X64
34 #
35
36 [Sources]
37 Hash/CryptMd4Null.c
38 Hash/CryptMd5.c
39 Hash/CryptSha1.c
40 Hash/CryptSha256.c
41 Hash/CryptSha512.c
42 Hmac/CryptHmacMd5Null.c
43 Hmac/CryptHmacSha1Null.c
44 Hmac/CryptHmacSha256Null.c
45 Cipher/CryptAesNull.c
46 Cipher/CryptTdesNull.c
47 Cipher/CryptArc4Null.c
48
49 Pk/CryptRsaBasic.c
50 Pk/CryptRsaExtNull.c
51 Pk/CryptPkcs5Pbkdf2Null.c
52 Pk/CryptPkcs7SignNull.c
53 Pk/CryptPkcs7VerifyCommon.c
54 Pk/CryptPkcs7VerifyBase.c
55
56 Pk/CryptDhNull.c
57 Pk/CryptX509Null.c
58 Pk/CryptAuthenticodeNull.c
59 Pk/CryptTsNull.c
60 Pem/CryptPemNull.c
61
62 Rand/CryptRandNull.c
63
64 SysCall/CrtWrapper.c
65 SysCall/ConstantTimeClock.c
66 SysCall/BaseMemAllocation.c
67
68 [Packages]
69 MdePkg/MdePkg.dec
70 CryptoPkg/CryptoPkg.dec
71
72 [LibraryClasses]
73 BaseLib
74 BaseMemoryLib
75 MemoryAllocationLib
76 DebugLib
77 OpensslLib
78 IntrinsicLib
79
80 #
81 # Remove these [BuildOptions] after this library is cleaned up
82 #
83 [BuildOptions]
84 #
85 # suppress the following warnings so we do not break the build with warnings-as-errors:
86 # C4090: 'function' : different 'const' qualifiers
87 # C4718: 'function call' : recursive call has no side effects, deleting
88 #
89 MSFT:*_*_*_CC_FLAGS = /wd4090 /wd4718
90
91 # -JCryptoPkg/Include : To disable the use of the system includes provided by RVCT
92 # --diag_remark=1 : Reduce severity of "#1-D: last line of file ends without a newline"
93 RVCT:*_*_ARM_CC_FLAGS = -JCryptoPkg/Include --diag_remark=1