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