1 | ## @file
|
---|
2 | # Cryptographic Library Instance for SMM 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: SHA-384 Digest functions, SHA-512 Digest functions,
|
---|
10 | # RSA external functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, and
|
---|
11 | # authenticode signature verification functions are not supported in this instance.
|
---|
12 | #
|
---|
13 | # Copyright (c) 2023, Intel Corporation. All rights reserved.<BR>
|
---|
14 | # SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
15 | #
|
---|
16 | ##
|
---|
17 |
|
---|
18 | [Defines]
|
---|
19 | INF_VERSION = 0x00010005
|
---|
20 | BASE_NAME = SmmCryptLib
|
---|
21 | MODULE_UNI_FILE = SmmCryptLib.uni
|
---|
22 | FILE_GUID = CF104633-9901-4504-AD7A-91690926A253
|
---|
23 | MODULE_TYPE = DXE_SMM_DRIVER
|
---|
24 | VERSION_STRING = 1.0
|
---|
25 | PI_SPECIFICATION_VERSION = 0x0001000A
|
---|
26 | LIBRARY_CLASS = BaseCryptLib|DXE_SMM_DRIVER SMM_CORE MM_STANDALONE
|
---|
27 |
|
---|
28 | #
|
---|
29 | # The following information is for reference only and not required by the build tools.
|
---|
30 | #
|
---|
31 | # VALID_ARCHITECTURES = IA32 X64 ARM AARCH64
|
---|
32 | #
|
---|
33 |
|
---|
34 | [Sources]
|
---|
35 | InternalCryptLib.h
|
---|
36 | Hash/CryptMd5.c
|
---|
37 | Hash/CryptSha1.c
|
---|
38 | Hash/CryptSha256.c
|
---|
39 | Hash/CryptSha512.c
|
---|
40 | Hash/CryptParallelHashNull.c
|
---|
41 | Hash/CryptSm3.c
|
---|
42 | Hmac/CryptHmac.c
|
---|
43 | Kdf/CryptHkdf.c
|
---|
44 | Cipher/CryptAes.c
|
---|
45 | Cipher/CryptAeadAesGcmNull.c
|
---|
46 | Pk/CryptRsaBasic.c
|
---|
47 | Pk/CryptRsaExtNull.c
|
---|
48 | Pk/CryptPkcs1Oaep.c
|
---|
49 | Pk/CryptPkcs5Pbkdf2.c
|
---|
50 | Pk/CryptPkcs7SignNull.c
|
---|
51 | Pk/CryptPkcs7VerifyCommon.c
|
---|
52 | Pk/CryptPkcs7VerifyBase.c
|
---|
53 | Pk/CryptPkcs7VerifyEku.c
|
---|
54 | Pk/CryptDhNull.c
|
---|
55 | Pk/CryptX509.c
|
---|
56 | Pk/CryptAuthenticodeNull.c
|
---|
57 | Pk/CryptTsNull.c
|
---|
58 | Pk/CryptRsaPss.c
|
---|
59 | Pk/CryptRsaPssSignNull.c
|
---|
60 | Pk/CryptEcNull.c
|
---|
61 | Pem/CryptPem.c
|
---|
62 | Bn/CryptBnNull.c
|
---|
63 | Rand/CryptRand.c
|
---|
64 |
|
---|
65 | SysCall/CrtWrapper.c
|
---|
66 | SysCall/DummyOpensslSupport.c
|
---|
67 | SysCall/BaseMemAllocation.c
|
---|
68 | SysCall/ConstantTimeClock.c
|
---|
69 |
|
---|
70 | [Packages]
|
---|
71 | MdePkg/MdePkg.dec
|
---|
72 | CryptoPkg/CryptoPkg.dec
|
---|
73 |
|
---|
74 | [LibraryClasses]
|
---|
75 | BaseLib
|
---|
76 | BaseMemoryLib
|
---|
77 | MemoryAllocationLib
|
---|
78 | MbedTlsLib
|
---|
79 | OpensslLib
|
---|
80 | IntrinsicLib
|
---|
81 | PrintLib
|
---|
82 | MmServicesTableLib
|
---|
83 | RngLib
|
---|
84 | SynchronizationLib
|
---|
85 |
|
---|
86 | #
|
---|
87 | # Remove these [BuildOptions] after this library is cleaned up
|
---|
88 | #
|
---|
89 | [BuildOptions]
|
---|
90 | XCODE:*_*_*_CC_FLAGS = -mmmx -msse -std=c99
|
---|
91 |
|
---|
92 | GCC:*_CLANGDWARF_*_CC_FLAGS = -std=gnu99
|
---|
93 | GCC:*_CLANGPDB_*_CC_FLAGS = -std=c99 -Wno-error=incompatible-pointer-types
|
---|