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>
		
			
				
	
	
		
			45 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
## @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
 |