2 # Cryptographic Library Instance for DXE_RUNTIME_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 # Note: SHA-384 Digest functions, SHA-512 Digest functions,
10 # HMAC-SHA256 functions, AES functions, RSA external
11 # functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, and
12 # authenticode signature verification functions are not supported in this instance.
14 # Copyright (c) 2009 - 2020, Intel Corporation. All rights reserved.<BR>
15 # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
16 # SPDX-License-Identifier: BSD-2-Clause-Patent
21 INF_VERSION = 0x00010005
22 BASE_NAME = RuntimeCryptLib
23 MODULE_UNI_FILE = RuntimeCryptLib.uni
24 FILE_GUID = 78189cc0-727d-46a4-84ea-f7dd860de64a
25 MODULE_TYPE = DXE_RUNTIME_DRIVER
27 LIBRARY_CLASS = BaseCryptLib|DXE_RUNTIME_DRIVER
28 CONSTRUCTOR = RuntimeCryptLibConstructor
31 # The following information is for reference only and not required by the build tools.
33 # VALID_ARCHITECTURES = IA32 X64 ARM AARCH64
42 Hash/CryptSha512Null.c
43 Hmac/CryptHmacSha256.c
48 Pk/CryptPkcs1OaepNull.c
49 Pk/CryptPkcs5Pbkdf2Null.c
50 Pk/CryptPkcs7SignNull.c
51 Pk/CryptPkcs7VerifyCommon.c
52 Pk/CryptPkcs7VerifyRuntime.c
53 Pk/CryptPkcs7VerifyEkuRuntime.c
56 Pk/CryptAuthenticodeNull.c
61 SysCall/TimerWrapper.c
62 SysCall/RuntimeMemAllocation.c
81 CryptoPkg/CryptoPkg.dec
86 UefiBootServicesTableLib
87 UefiRuntimeServicesTableLib
94 # Remove these [BuildOptions] after this library is cleaned up
98 # suppress the following warnings so we do not break the build with warnings-as-errors:
99 # C4090: 'function' : different 'const' qualifiers
101 MSFT:*_*_*_CC_FLAGS = /wd4090
103 # -JCryptoPkg/Include : To disable the use of the system includes provided by RVCT
104 # --diag_remark=1 : Reduce severity of "#1-D: last line of file ends without a newline"
105 RVCT:*_*_ARM_CC_FLAGS = -JCryptoPkg/Include --diag_remark=1
107 GCC:*_CLANG35_*_CC_FLAGS = -std=c99
108 GCC:*_CLANG38_*_CC_FLAGS = -std=c99
109 GCC:*_CLANGPDB_*_CC_FLAGS = -std=c99 -Wno-error=incompatible-pointer-types
111 XCODE:*_*_*_CC_FLAGS = -std=c99