]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
1bbe4f435aec09d5b6fdc55e830d4e3da9b47c23
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / BaseCryptLib.inf
1 ## @file
2 # Cryptographic Library Instance for DXE_DRIVER.
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 # Copyright (c) 2009 - 2019, Intel Corporation. All rights reserved.<BR>
10 # SPDX-License-Identifier: BSD-2-Clause-Patent
11 #
12 ##
13
14 [Defines]
15 INF_VERSION = 0x00010005
16 BASE_NAME = BaseCryptLib
17 MODULE_UNI_FILE = BaseCryptLib.uni
18 FILE_GUID = be3bb803-91b6-4da0-bd91-a8b21c18ca5d
19 MODULE_TYPE = DXE_DRIVER
20 VERSION_STRING = 1.0
21 LIBRARY_CLASS = BaseCryptLib|DXE_DRIVER DXE_CORE UEFI_APPLICATION UEFI_DRIVER
22
23 #
24 # The following information is for reference only and not required by the build tools.
25 #
26 # VALID_ARCHITECTURES = IA32 X64 ARM AARCH64
27 #
28
29 [Sources]
30 InternalCryptLib.h
31 Hash/CryptMd4.c
32 Hash/CryptMd5.c
33 Hash/CryptSha1.c
34 Hash/CryptSha256.c
35 Hash/CryptSha512.c
36 Hash/CryptSm3.c
37 Hmac/CryptHmacMd5.c
38 Hmac/CryptHmacSha1.c
39 Hmac/CryptHmacSha256.c
40 Kdf/CryptHkdf.c
41 Cipher/CryptAes.c
42 Cipher/CryptTdes.c
43 Cipher/CryptArc4.c
44 Pk/CryptRsaBasic.c
45 Pk/CryptRsaExt.c
46 Pk/CryptPkcs1Oaep.c
47 Pk/CryptPkcs5Pbkdf2.c
48 Pk/CryptPkcs7Sign.c
49 Pk/CryptPkcs7VerifyCommon.c
50 Pk/CryptPkcs7VerifyBase.c
51 Pk/CryptPkcs7VerifyEku.c
52 Pk/CryptDh.c
53 Pk/CryptX509.c
54 Pk/CryptAuthenticode.c
55 Pk/CryptTs.c
56 Pem/CryptPem.c
57
58 SysCall/CrtWrapper.c
59 SysCall/TimerWrapper.c
60 SysCall/BaseMemAllocation.c
61 SysCall/inet_pton.c
62
63 [Sources.Ia32]
64 Rand/CryptRandTsc.c
65
66 [Sources.X64]
67 Rand/CryptRandTsc.c
68
69 [Sources.ARM]
70 Rand/CryptRand.c
71
72 [Sources.AARCH64]
73 Rand/CryptRand.c
74
75 [Packages]
76 MdePkg/MdePkg.dec
77 CryptoPkg/CryptoPkg.dec
78
79 [LibraryClasses]
80 BaseLib
81 BaseMemoryLib
82 MemoryAllocationLib
83 UefiRuntimeServicesTableLib
84 DebugLib
85 OpensslLib
86 IntrinsicLib
87 PrintLib
88
89 #
90 # Remove these [BuildOptions] after this library is cleaned up
91 #
92 [BuildOptions]
93 #
94 # suppress the following warnings so we do not break the build with warnings-as-errors:
95 # C4090: 'function' : different 'const' qualifiers
96 #
97 MSFT:*_*_*_CC_FLAGS = /wd4090
98
99 # -JCryptoPkg/Include : To disable the use of the system includes provided by RVCT
100 # --diag_remark=1 : Reduce severity of "#1-D: last line of file ends without a newline"
101 RVCT:*_*_ARM_CC_FLAGS = -JCryptoPkg/Include --diag_remark=1
102
103 GCC:*_CLANG35_*_CC_FLAGS = -std=c99
104 GCC:*_CLANG38_*_CC_FLAGS = -std=c99
105 GCC:*_CLANGPDB_*_CC_FLAGS = -std=c99 -Wno-error=incompatible-pointer-types
106
107 XCODE:*_*_*_CC_FLAGS = -std=c99