REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3596 Parallel hash function ParallelHash256HashAll, as defined in NIST's Special Publication 800-185, published December 2016. It utilizes multi-process to calculate the digest. Passed CI test. Onprotocol version code passed test. Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Xiaoyu Lu <xiaoyu1.lu@intel.com> Cc: Guomin Jiang <guomin.jiang@intel.com> Cc: Siyuan Fu <siyuan.fu@intel.com> Signed-off-by: Zhihao Li <zhihao.li@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| ## @file
 | |
| # CryptoPkg DSC file used to build host-based unit tests.
 | |
| #
 | |
| # Copyright (c) Microsoft Corporation.<BR>
 | |
| # Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
 | |
| # SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| #
 | |
| ##
 | |
| 
 | |
| [Defines]
 | |
|   PLATFORM_NAME           = CryptoPkgHostTest
 | |
|   PLATFORM_GUID           = C7F97D6D-54AC-45A9-8197-CC99B20CC7EC
 | |
|   PLATFORM_VERSION        = 0.1
 | |
|   DSC_SPECIFICATION       = 0x00010005
 | |
|   OUTPUT_DIRECTORY        = Build/CryptoPkg/HostTest
 | |
|   SUPPORTED_ARCHITECTURES = IA32|X64
 | |
|   BUILD_TARGETS           = NOOPT
 | |
|   SKUID_IDENTIFIER        = DEFAULT
 | |
| 
 | |
| !include UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc
 | |
| 
 | |
| [LibraryClasses]
 | |
|   OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
 | |
|   BaseCryptLib|CryptoPkg/Library/BaseCryptLib/UnitTestHostBaseCryptLib.inf
 | |
|   MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
 | |
|   SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
 | |
|   TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
 | |
| 
 | |
| [LibraryClasses.AARCH64, LibraryClasses.ARM]
 | |
|   RngLib|MdePkg/Library/BaseRngLibNull/BaseRngLibNull.inf
 | |
| 
 | |
| [LibraryClasses.X64, LibraryClasses.IA32]
 | |
|   RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
 | |
| 
 | |
| [Components]
 | |
|   #
 | |
|   # Build HOST_APPLICATION that tests the SampleUnitTest
 | |
|   #
 | |
|   CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestBaseCryptLibHost.inf
 | |
| 
 | |
| [BuildOptions]
 | |
|   *_*_*_CC_FLAGS       = -D DISABLE_NEW_DEPRECATED_INTERFACES
 | |
|   MSFT:*_*_*_CC_FLAGS  = /D ENABLE_MD5_DEPRECATED_INTERFACES
 | |
|   INTEL:*_*_*_CC_FLAGS = /D ENABLE_MD5_DEPRECATED_INTERFACES
 | |
|   GCC:*_*_*_CC_FLAGS   = -D ENABLE_MD5_DEPRECATED_INTERFACES
 | |
|   RVCT:*_*_*_CC_FLAGS  = -DENABLE_MD5_DEPRECATED_INTERFACES
 |