]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
CryptoPkg/BaseCryptLib: Enabled CryptSha512 for Smm/Runtime drivers
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / RuntimeCryptLib.inf
... / ...
CommitLineData
1## @file\r
2# Cryptographic Library Instance for DXE_RUNTIME_DRIVER.\r
3#\r
4# Caution: This module requires additional review when modified.\r
5# This library will have external input - signature.\r
6# This external input must be validated carefully to avoid security issues such as\r
7# buffer overflow or integer overflow.\r
8#\r
9# Note: SHA-384 Digest functions, SHA-512 Digest functions,\r
10# HMAC-SHA256 functions, AES functions, RSA external\r
11# functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, and\r
12# authenticode signature verification functions are not supported in this instance.\r
13#\r
14# Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<BR>\r
15# Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>\r
16# SPDX-License-Identifier: BSD-2-Clause-Patent\r
17#\r
18##\r
19\r
20[Defines]\r
21 INF_VERSION = 0x00010005\r
22 BASE_NAME = RuntimeCryptLib\r
23 MODULE_UNI_FILE = RuntimeCryptLib.uni\r
24 FILE_GUID = 78189cc0-727d-46a4-84ea-f7dd860de64a\r
25 MODULE_TYPE = DXE_RUNTIME_DRIVER\r
26 VERSION_STRING = 1.0\r
27 LIBRARY_CLASS = BaseCryptLib|DXE_RUNTIME_DRIVER\r
28 CONSTRUCTOR = RuntimeCryptLibConstructor\r
29\r
30#\r
31# The following information is for reference only and not required by the build tools.\r
32#\r
33# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64\r
34#\r
35\r
36[Sources]\r
37 InternalCryptLib.h\r
38 Hash/CryptMd5.c\r
39 Hash/CryptSha1.c\r
40 Hash/CryptSha256.c\r
41 Hash/CryptSm3.c\r
42 Hash/CryptSha512.c\r
43 Hmac/CryptHmacSha256.c\r
44 Kdf/CryptHkdf.c\r
45 Cipher/CryptAes.c\r
46 Pk/CryptRsaBasic.c\r
47 Pk/CryptRsaExtNull.c\r
48 Pk/CryptPkcs1OaepNull.c\r
49 Pk/CryptPkcs5Pbkdf2Null.c\r
50 Pk/CryptPkcs7SignNull.c\r
51 Pk/CryptPkcs7VerifyCommon.c\r
52 Pk/CryptPkcs7VerifyRuntime.c\r
53 Pk/CryptPkcs7VerifyEkuRuntime.c\r
54 Pk/CryptDhNull.c\r
55 Pk/CryptX509.c\r
56 Pk/CryptAuthenticodeNull.c\r
57 Pk/CryptTsNull.c\r
58 Pk/CryptRsaPssNull.c\r
59 Pk/CryptRsaPssSignNull.c\r
60 Pem/CryptPem.c\r
61\r
62 SysCall/CrtWrapper.c\r
63 SysCall/TimerWrapper.c\r
64 SysCall/RuntimeMemAllocation.c\r
65\r
66[Sources.Ia32]\r
67 Rand/CryptRandTsc.c\r
68\r
69[Sources.X64]\r
70 Rand/CryptRandTsc.c\r
71\r
72[Sources.ARM]\r
73 Rand/CryptRand.c\r
74\r
75[Sources.AARCH64]\r
76 Rand/CryptRand.c\r
77\r
78[Sources.RISCV64]\r
79 Rand/CryptRand.c\r
80\r
81[Packages]\r
82 MdePkg/MdePkg.dec\r
83 CryptoPkg/CryptoPkg.dec\r
84\r
85[LibraryClasses]\r
86 BaseLib\r
87 BaseMemoryLib\r
88 UefiBootServicesTableLib\r
89 UefiRuntimeServicesTableLib\r
90 DebugLib\r
91 OpensslLib\r
92 IntrinsicLib\r
93 PrintLib\r
94\r
95#\r
96# Remove these [BuildOptions] after this library is cleaned up\r
97#\r
98[BuildOptions]\r
99 #\r
100 # suppress the following warnings so we do not break the build with warnings-as-errors:\r
101 # C4090: 'function' : different 'const' qualifiers\r
102 #\r
103 MSFT:*_*_*_CC_FLAGS = /wd4090\r
104\r
105 # -JCryptoPkg/Include : To disable the use of the system includes provided by RVCT\r
106 # --diag_remark=1 : Reduce severity of "#1-D: last line of file ends without a newline"\r
107 RVCT:*_*_ARM_CC_FLAGS = -JCryptoPkg/Include --diag_remark=1\r
108\r
109 GCC:*_CLANG35_*_CC_FLAGS = -std=c99\r
110 GCC:*_CLANG38_*_CC_FLAGS = -std=c99\r
111 GCC:*_CLANGPDB_*_CC_FLAGS = -std=c99 -Wno-error=incompatible-pointer-types\r
112\r
113 XCODE:*_*_*_CC_FLAGS = -std=c99\r