]> git.proxmox.com Git - mirror_edk2.git/blame - CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
Add comment for modules which have external input.
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / SmmCryptLib.inf
CommitLineData
a8c44645 1## @file\r
2# Cryptographic Library Instance for SMM driver.\r
3#\r
38fcd027 4# This library instance uses ConstantTimeClock.c thus does not provide\r
5# functionality for following APIs which need system time support:\r
6# 1) RsaGenerateKey\r
7# 2) RsaCheckKey\r
8# 3) RsaPkcs1Sign\r
9# 4) Pkcs7Sign\r
10# 5) DhGenerateParameter\r
11# 6) DhGenerateKey\r
12#\r
dc204d5a
JY
13# Caution: This module requires additional review when modified.\r
14# This library will have external input - signature.\r
15# This external input must be validated carefully to avoid security issue like\r
16# buffer overflow, integer overflow.\r
17#\r
e8b4eb04 18# Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.<BR>\r
a8c44645 19# This program and the accompanying materials\r
20# are licensed and made available under the terms and conditions of the BSD License\r
21# which accompanies this distribution. The full text of the license may be found at\r
22# http://opensource.org/licenses/bsd-license.php\r
23# \r
24# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
25# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
26# \r
27##\r
28\r
29[Defines]\r
30 INF_VERSION = 0x00010005\r
31 BASE_NAME = SmmCryptLib\r
32 FILE_GUID = 028080a3-8958-4a62-a1a8-0fa1da162007\r
33 MODULE_TYPE = DXE_SMM_DRIVER\r
34 VERSION_STRING = 1.0\r
b7d320f8 35 PI_SPECIFICATION_VERSION = 0x0001000A\r
a8c44645 36 LIBRARY_CLASS = BaseCryptLib|DXE_SMM_DRIVER SMM_CORE\r
37\r
38#\r
39# The following information is for reference only and not required by the build tools.\r
40#\r
41# VALID_ARCHITECTURES = IA32 X64\r
42#\r
43\r
44[Sources]\r
45 Hash/CryptMd5.c\r
46 Hash/CryptSha1.c\r
47 Hash/CryptSha256.c\r
48 Pk/CryptRsa.c\r
49 Pk/CryptPkcs7.c\r
e8b4eb04 50 Pk/CryptX509.c\r
b7d320f8 51 Pem/CryptPem.c\r
a8c44645 52\r
53 SysCall/CrtWrapper.c\r
38fcd027 54 SysCall/ConstantTimeClock.c\r
a8c44645 55 SysCall/BaseMemAllocation.c\r
56\r
57[Sources.Ia32]\r
a8c44645 58 SysCall/Ia32/MathMultS64x64.c | MSFT\r
59 SysCall/Ia32/MathDivU64x64.c | MSFT\r
60 SysCall/Ia32/MathReminderU64x64.c | MSFT\r
61 SysCall/Ia32/MathLShiftS64.c | MSFT\r
62 SysCall/Ia32/MathRShiftU64.c | MSFT\r
63\r
64 SysCall/Ia32/MathMultS64x64.c | INTEL\r
65 SysCall/Ia32/MathDivU64x64.c | INTEL\r
66 SysCall/Ia32/MathReminderU64x64.c | INTEL\r
67 SysCall/Ia32/MathLShiftS64.c | INTEL\r
68 SysCall/Ia32/MathRShiftU64.c | INTEL\r
69\r
70 SysCall/Ia32/MathMultS64x64.S | GCC\r
71 SysCall/Ia32/MathDivU64x64.S | GCC\r
72 SysCall/Ia32/MathReminderU64x64.S | GCC\r
73 SysCall/Ia32/MathLShiftS64.S | GCC\r
74 SysCall/Ia32/MathRShiftU64.S | GCC\r
75\r
7ce960e7 76 Rand/CryptRandTsc.c\r
77\r
78[Sources.X64]\r
79 Rand/CryptRandTsc.c\r
80\r
81[Sources.IPF]\r
82 Rand/CryptRandItc.c\r
83\r
84[Sources.ARM]\r
85 Rand/CryptRand.c\r
86\r
a8c44645 87[Packages]\r
88 MdePkg/MdePkg.dec\r
89 CryptoPkg/CryptoPkg.dec\r
90\r
91[LibraryClasses]\r
92 BaseLib\r
93 IoLib\r
94 BaseMemoryLib\r
95 MemoryAllocationLib\r
96 OpensslLib\r
97 IntrinsicLib\r
7ce960e7 98 PrintLib\r
a8c44645 99\r
100#\r
101# Remove these [BuildOptions] after this library is cleaned up\r
102#\r
103[BuildOptions]\r
104 GCC:*_GCC44_IA32_CC_FLAGS = "-D__cdecl=__attribute__((cdecl))" "-D__declspec(t)=__attribute__((t))"\r
105 \r