summaryrefslogtreecommitdiffstats
path: root/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/SmmCryptLib.inf
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2019-11-21 09:24:53 -0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-02-07 16:32:13 +0000
commitcd70de1cc0c954dd9608e63093fac0d4f50be630 (patch)
tree3e1247c095fc701db4caeb69769a441fca0c2dcb /CryptoPkg/Library/BaseCryptLibOnProtocolPpi/SmmCryptLib.inf
parentcc1d13c9228d988071834b12c8494efb28b55802 (diff)
downloadedk2-cd70de1cc0c954dd9608e63093fac0d4f50be630.tar.gz
edk2-cd70de1cc0c954dd9608e63093fac0d4f50be630.tar.bz2
edk2-cd70de1cc0c954dd9608e63093fac0d4f50be630.zip
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>
Diffstat (limited to 'CryptoPkg/Library/BaseCryptLibOnProtocolPpi/SmmCryptLib.inf')
-rw-r--r--CryptoPkg/Library/BaseCryptLibOnProtocolPpi/SmmCryptLib.inf44
1 files changed, 44 insertions, 0 deletions
diff --git a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/SmmCryptLib.inf b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/SmmCryptLib.inf
new file mode 100644
index 0000000000..b1285b4447
--- /dev/null
+++ b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/SmmCryptLib.inf
@@ -0,0 +1,44 @@
+## @file
+# Implements the BaseCryptLib and TlsLib using the services of the EDK II Crypto
+# SMM Protocol.
+#
+# Copyright (C) Microsoft Corporation. All rights reserved.
+# SPDX-License-Identifier: BSD-2-Clause-Patent
+#
+##
+
+[Defines]
+ INF_VERSION = 0x0001001B
+ BASE_NAME = SmmCryptLib
+ MODULE_UNI_FILE = CryptLib.uni
+ FILE_GUID = 5CC6ECC9-E961-46A9-8D5C-6581A060DC0D
+ VERSION_STRING = 1.0
+ MODULE_TYPE = DXE_SMM_DRIVER
+ LIBRARY_CLASS = BaseCryptLib | DXE_SMM_DRIVER
+ LIBRARY_CLASS = TlsLib | DXE_SMM_DRIVER
+ CONSTRUCTOR = SmmCryptLibConstructor
+
+#
+# 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
+ SmmServicesTableLib
+
+[Sources]
+ SmmCryptLib.c
+ CryptLib.c
+
+[Protocols]
+ gEdkiiSmmCryptoProtocolGuid ## CONSUMES
+
+[Depex]
+ gEdkiiSmmCryptoProtocolGuid