1 | ## @file
|
---|
2 | # Cryptographic Library Instance for PEIM.
|
---|
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 functions, AES/TDES/ARC4 functions, RSA external
|
---|
11 | # functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, X.509
|
---|
12 | # certificate handler functions, authenticode signature verification functions,
|
---|
13 | # PEM handler functions, and pseudorandom number generator functions are not
|
---|
14 | # supported in this instance.
|
---|
15 | #
|
---|
16 | # Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
|
---|
17 | # This program and the accompanying materials
|
---|
18 | # are licensed and made available under the terms and conditions of the BSD License
|
---|
19 | # which accompanies this distribution. The full text of the license may be found at
|
---|
20 | # http://opensource.org/licenses/bsd-license.php
|
---|
21 | #
|
---|
22 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
---|
23 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
---|
24 | #
|
---|
25 | ##
|
---|
26 |
|
---|
27 | [Defines]
|
---|
28 | INF_VERSION = 0x00010005
|
---|
29 | BASE_NAME = PeiCryptLib
|
---|
30 | MODULE_UNI_FILE = PeiCryptLib.uni
|
---|
31 | FILE_GUID = 9a2a4375-194c-4e97-9f67-547ec98d96ca
|
---|
32 | MODULE_TYPE = PEIM
|
---|
33 | VERSION_STRING = 1.0
|
---|
34 | LIBRARY_CLASS = BaseCryptLib|PEIM PEI_CORE
|
---|
35 |
|
---|
36 | #
|
---|
37 | # The following information is for reference only and not required by the build tools.
|
---|
38 | #
|
---|
39 | # VALID_ARCHITECTURES = IA32 X64
|
---|
40 | #
|
---|
41 |
|
---|
42 | [Sources]
|
---|
43 | Hash/CryptMd4Null.c
|
---|
44 | Hash/CryptMd5.c
|
---|
45 | Hash/CryptSha1.c
|
---|
46 | Hash/CryptSha256.c
|
---|
47 | Hash/CryptSha512Null.c
|
---|
48 | Hmac/CryptHmacMd5Null.c
|
---|
49 | Hmac/CryptHmacSha1Null.c
|
---|
50 | Cipher/CryptAesNull.c
|
---|
51 | Cipher/CryptTdesNull.c
|
---|
52 | Cipher/CryptArc4Null.c
|
---|
53 |
|
---|
54 | Pk/CryptRsaBasic.c
|
---|
55 | Pk/CryptRsaExtNull.c
|
---|
56 | Pk/CryptPkcs7SignNull.c
|
---|
57 | Pk/CryptPkcs7Verify.c
|
---|
58 |
|
---|
59 | Pk/CryptDhNull.c
|
---|
60 | Pk/CryptX509Null.c
|
---|
61 | Pk/CryptAuthenticodeNull.c
|
---|
62 | Pk/CryptTsNull.c
|
---|
63 | Pem/CryptPemNull.c
|
---|
64 |
|
---|
65 | Rand/CryptRandNull.c
|
---|
66 |
|
---|
67 | SysCall/CrtWrapper.c
|
---|
68 | SysCall/ConstantTimeClock.c
|
---|
69 | SysCall/BaseMemAllocation.c
|
---|
70 |
|
---|
71 | [Packages]
|
---|
72 | MdePkg/MdePkg.dec
|
---|
73 | CryptoPkg/CryptoPkg.dec
|
---|
74 |
|
---|
75 | [LibraryClasses]
|
---|
76 | BaseLib
|
---|
77 | BaseMemoryLib
|
---|
78 | MemoryAllocationLib
|
---|
79 | DebugLib
|
---|
80 | OpensslLib
|
---|
81 | IntrinsicLib
|
---|
82 |
|
---|
83 | #
|
---|
84 | # Remove these [BuildOptions] after this library is cleaned up
|
---|
85 | #
|
---|
86 | [BuildOptions]
|
---|
87 | GCC:*_GCC44_IA32_CC_FLAGS = "-D__cdecl=__attribute__((cdecl))" "-D__declspec(t)=__attribute__((t))"
|
---|