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