CryptoPkg/Library: Add BaseCryptLibOnProtocolPpi instances
https://bugzilla.tianocore.org/show_bug.cgi?id=2420 Based on the following package with changes to merge into CryptoPkg. https://github.com/microsoft/mu_plus/tree/dev/201908/SharedCryptoPkg Add the PeiCryptLib, DxeCryptLib, and SmmCryptLib instances of the BaseCryptLib library classes that are implemented using the services of EDK II Crypto Protocols/PPIs. These library instances all set a dependency expression on the EDK II Crypto Protocols/PPIs, so any modules that use these library instances are not dispatched until the modules that produce the EDK II Crypto Protocols/PPIs are dispatched. Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Xiaoyu Lu <xiaoyux.lu@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
This commit is contained in:
committed by
mergify[bot]
parent
cc1d13c922
commit
cd70de1cc0
44
CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
Normal file
44
CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
Normal file
@@ -0,0 +1,44 @@
|
||||
## @file
|
||||
# Implements the BaseCryptLib and TlsLib using the services of the EDK II Crypto
|
||||
# Protocol.
|
||||
#
|
||||
# Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#
|
||||
##
|
||||
|
||||
[Defines]
|
||||
INF_VERSION = 0x0001001B
|
||||
BASE_NAME = DxeCryptLib
|
||||
MODULE_UNI_FILE = CryptLib.uni
|
||||
FILE_GUID = B38CBDA6-8017-4111-8232-9E8328DE82F6
|
||||
VERSION_STRING = 1.0
|
||||
MODULE_TYPE = DXE_DRIVER
|
||||
LIBRARY_CLASS = BaseCryptLib | DXE_DRIVER UEFI_DRIVER UEFI_APPLICATION
|
||||
LIBRARY_CLASS = TlsLib | DXE_DRIVER UEFI_DRIVER UEFI_APPLICATION
|
||||
CONSTRUCTOR = DxeCryptLibConstructor
|
||||
|
||||
#
|
||||
# The following information is for reference only and not required by the build tools.
|
||||
#
|
||||
# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64
|
||||
#
|
||||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
CryptoPkg/CryptoPkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
BaseLib
|
||||
DebugLib
|
||||
UefiBootServicesTableLib
|
||||
|
||||
[Sources]
|
||||
DxeCryptLib.c
|
||||
CryptLib.c
|
||||
|
||||
[Protocols]
|
||||
gEdkiiCryptoProtocolGuid ## CONSUMES
|
||||
|
||||
[Depex]
|
||||
gEdkiiCryptoProtocolGuid
|
Reference in New Issue
Block a user