]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
CryptoPkg: Fix possible build problem with Clang
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / RuntimeCryptLib.inf
1 ## @file
2 # Cryptographic Library Instance for DXE_RUNTIME_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 # Note: MD4 Digest functions, SHA-384 Digest functions, SHA-512 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, and
12 # authenticode signature verification functions are not supported in this instance.
13 #
14 # Copyright (c) 2009 - 2019, Intel Corporation. All rights reserved.<BR>
15 # SPDX-License-Identifier: BSD-2-Clause-Patent
16 #
17 ##
18
19 [Defines]
20 INF_VERSION = 0x00010005
21 BASE_NAME = RuntimeCryptLib
22 MODULE_UNI_FILE = RuntimeCryptLib.uni
23 FILE_GUID = 78189cc0-727d-46a4-84ea-f7dd860de64a
24 MODULE_TYPE = DXE_RUNTIME_DRIVER
25 VERSION_STRING = 1.0
26 LIBRARY_CLASS = BaseCryptLib|DXE_RUNTIME_DRIVER
27 CONSTRUCTOR = RuntimeCryptLibConstructor
28
29 #
30 # The following information is for reference only and not required by the build tools.
31 #
32 # VALID_ARCHITECTURES = IA32 X64 ARM AARCH64
33 #
34
35 [Sources]
36 Hash/CryptMd4Null.c
37 Hash/CryptMd5.c
38 Hash/CryptSha1.c
39 Hash/CryptSha256.c
40 Hash/CryptSha512Null.c
41 Hmac/CryptHmacMd5Null.c
42 Hmac/CryptHmacSha1Null.c
43 Hmac/CryptHmacSha256Null.c
44 Cipher/CryptAesNull.c
45 Cipher/CryptTdesNull.c
46 Cipher/CryptArc4Null.c
47 Pk/CryptRsaBasic.c
48 Pk/CryptRsaExtNull.c
49 Pk/CryptPkcs1OaepNull.c
50 Pk/CryptPkcs5Pbkdf2Null.c
51 Pk/CryptPkcs7SignNull.c
52 Pk/CryptPkcs7VerifyCommon.c
53 Pk/CryptPkcs7VerifyRuntime.c
54 Pk/CryptPkcs7VerifyEkuRuntime.c
55 Pk/CryptDhNull.c
56 Pk/CryptX509.c
57 Pk/CryptAuthenticodeNull.c
58 Pk/CryptTsNull.c
59 Pem/CryptPem.c
60
61 SysCall/CrtWrapper.c
62 SysCall/TimerWrapper.c
63 SysCall/RuntimeMemAllocation.c
64
65 [Sources.Ia32]
66 Rand/CryptRandTsc.c
67
68 [Sources.X64]
69 Rand/CryptRandTsc.c
70
71 [Sources.ARM]
72 Rand/CryptRand.c
73
74 [Sources.AARCH64]
75 Rand/CryptRand.c
76
77 [Packages]
78 MdePkg/MdePkg.dec
79 CryptoPkg/CryptoPkg.dec
80
81 [LibraryClasses]
82 BaseLib
83 BaseMemoryLib
84 UefiBootServicesTableLib
85 UefiRuntimeServicesTableLib
86 DebugLib
87 OpensslLib
88 IntrinsicLib
89 PrintLib
90
91 #
92 # Remove these [BuildOptions] after this library is cleaned up
93 #
94 [BuildOptions]
95 #
96 # suppress the following warnings so we do not break the build with warnings-as-errors:
97 # C4090: 'function' : different 'const' qualifiers
98 #
99 MSFT:*_*_*_CC_FLAGS = /wd4090
100
101 # -JCryptoPkg/Include : To disable the use of the system includes provided by RVCT
102 # --diag_remark=1 : Reduce severity of "#1-D: last line of file ends without a newline"
103 RVCT:*_*_ARM_CC_FLAGS = -JCryptoPkg/Include --diag_remark=1
104
105 GCC:*_CLANG38_*_CC_FLAGS = -std=c99