2 # Cryptographic Library Instance for DXE_DRIVER.
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.
9 # Copyright (c) 2009 - 2022, Intel Corporation. All rights reserved.<BR>
10 # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
11 # Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
12 # SPDX-License-Identifier: BSD-2-Clause-Patent
17 INF_VERSION = 0x00010005
18 BASE_NAME = BaseCryptLib
19 MODULE_UNI_FILE = BaseCryptLib.uni
20 FILE_GUID = be3bb803-91b6-4da0-bd91-a8b21c18ca5d
21 MODULE_TYPE = DXE_DRIVER
23 LIBRARY_CLASS = BaseCryptLib|DXE_DRIVER DXE_CORE UEFI_APPLICATION UEFI_DRIVER
26 # The following information is for reference only and not required by the build tools.
28 # VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64
41 Hash/CryptParallelHash.c
42 Hash/CryptDispatchApDxe.c
46 Cipher/CryptAeadAesGcm.c
52 Pk/CryptPkcs7VerifyCommon.c
53 Pk/CryptPkcs7VerifyBase.c
54 Pk/CryptPkcs7VerifyEku.c
57 Pk/CryptAuthenticode.c
66 SysCall/TimerWrapper.c
67 SysCall/BaseMemAllocation.c
89 CryptoPkg/CryptoPkg.dec
95 UefiRuntimeServicesTableLib
100 UefiBootServicesTableLib
104 gEfiMpServiceProtocolGuid
107 # Remove these [BuildOptions] after this library is cleaned up
111 # suppress the following warnings so we do not break the build with warnings-as-errors:
113 GCC:*_CLANG35_*_CC_FLAGS = -std=c99
114 GCC:*_CLANG38_*_CC_FLAGS = -std=c99
115 GCC:*_CLANGPDB_*_CC_FLAGS = -std=c99 -Wno-error=incompatible-pointer-types
117 XCODE:*_*_*_CC_FLAGS = -std=c99