Michael Kubacki 
							
						 
					 
					
						
						
							
						
						c411b485b6 
					 
					
						
						
							
							SecurityPkg: Apply uncrustify changes  
						
						... 
						
						
						
						REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 
Apply uncrustify changes to .c/.h files in the SecurityPkg package
Cc: Andrew Fish <afish@apple.com >
Cc: Leif Lindholm <leif@nuviainc.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com >
Reviewed-by: Jian J Wang <jian.j.wang@intel.com > 
						
						
					 
					
						2021-12-07 17:24:28 +00:00 
						 
				 
			
				
					
						
							
							
								Michael D Kinney 
							
						 
					 
					
						
						
							
						
						12710fe93b 
					 
					
						
						
							
							SecurityPkg: Change OPTIONAL keyword usage style  
						
						... 
						
						
						
						REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3760 
Update all use of ', OPTIONAL' to ' OPTIONAL,' for function params.
Cc: Andrew Fish <afish@apple.com >
Cc: Leif Lindholm <leif@nuviainc.com >
Cc: Michael Kubacki <michael.kubacki@microsoft.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jian J Wang <jian.j.wang@intel.com > 
						
						
					 
					
						2021-12-07 17:24:28 +00:00 
						 
				 
			
				
					
						
							
							
								Michael D Kinney 
							
						 
					 
					
						
						
							
						
						d939a25d41 
					 
					
						
						
							
							SecurityPkg: Reproduce builds across source format changes  
						
						... 
						
						
						
						REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3688 
Use DEBUG_LINE_NUMBER instead of __LINE__.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Michael Kubacki <michael.kubacki@microsoft.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com >
Tested-by: Michael Kubacki <michael.kubacki@microsoft.com > 
						
						
					 
					
						2021-11-08 18:01:35 +00:00 
						 
				 
			
				
					
						
							
							
								Stefan Berger 
							
						 
					 
					
						
						
							
						
						2906e572c6 
					 
					
						
						
							
							SecurityPkg/Tcg: Make Tcg2PlatformDxe buildable and fix style issues  
						
						... 
						
						
						
						Signed-off-by: Stefan Berger <stefanb@linux.ibm.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2021-09-13 16:53:14 +00:00 
						 
				 
			
				
					
						
							
							
								Stefan Berger 
							
						 
					 
					
						
						
							
						
						610d8073f2 
					 
					
						
						
							
							SecurityPkg/TPM: Import PeiDxeTpmPlatformHierarchyLib.c from edk2-platforms  
						
						... 
						
						
						
						Import PeiDxeTpmPlatformHierarchyLib from edk2-platforms without any
modifications.
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com > 
						
						
					 
					
						2021-09-13 16:53:14 +00:00 
						 
				 
			
				
					
						
							
							
								Grzegorz Bernacki 
							
						 
					 
					
						
						
							
						
						9732659698 
					 
					
						
						
							
							SecurityPkg: Create library for enrolling Secure Boot variables.  
						
						... 
						
						
						
						This commits add library, which consist functions to
enrolll Secure Boot keys and initialize Secure Boot
default variables. Some of the functions was moved
 from SecureBootConfigImpl.c file.
Signed-off-by: Grzegorz Bernacki <gjb@semihalf.com >
Reviewed-by: Sunny Wang <sunny.wang@arm.com >
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com > 
						
						
					 
					
						2021-08-03 07:26:41 +00:00 
						 
				 
			
				
					
						
							
							
								Grzegorz Bernacki 
							
						 
					 
					
						
						
							
						
						bb806a6e88 
					 
					
						
						
							
							SecurityPkg: Create SecureBootVariableLib.  
						
						... 
						
						
						
						This commits add library, which consist helper functions related
to creation/removal Secure Boot variables. Some of the functions
was moved from SecureBootConfigImpl.c file.
Signed-off-by: Grzegorz Bernacki <gjb@semihalf.com >
Reviewed-by: Sunny Wang <sunny.wang@arm.com >
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com > 
						
						
					 
					
						2021-08-03 07:26:41 +00:00 
						 
				 
			
				
					
						
							
							
								Kun Qin 
							
						 
					 
					
						
						
							
						
						3c2dc30d1b 
					 
					
						
						
							
							SecurityPkg: Tcg2Smm: Separate Tcg2Smm into 2 modules  
						
						... 
						
						
						
						REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3169 
This change separated the original Tcg2Smm module into 2 drivers: the
SMM driver that registers callback for physical presence and memory
clear; the Tcg2Acpi driver that patches and publishes ACPI table for
runtime use.
Tcg2Smm introduced an SMI root handler to allow Tcg2Acpi to communicate
the NVS region used by Tpm.asl and exchange the registered SwSmiValue.
Lastly, Tcg2Smm driver will publish gTcg2MmSwSmiRegisteredGuid at the end
of entrypoint to ensure Tcg2Acpi to load after Tcg2Smm is ready to
communicate.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Qi Zhang <qi1.zhang@intel.com >
Cc: Rahul Kumar <rahul1.kumar@intel.com >
Signed-off-by: Kun Qin <kun.q@outlook.com >
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com >
Message-Id: <MWHPR06MB310295CC623EF7C062844DFFF3969@MWHPR06MB3102.namprd06.prod.outlook.com > 
						
						
					 
					
						2021-03-05 15:25:07 +00:00 
						 
				 
			
				
					
						
							
							
								gaoliming 
							
						 
					 
					
						
						
							
						
						e9d62effa3 
					 
					
						
						
							
							Revert "SecurityPkg: Add RPMC Index to the RpmcLib"  
						
						... 
						
						
						
						This reverts commit 6c8dd15c4ahttps://edk2.groups.io/g/devel/message/67764 ,
this change is regarded as the feature request. But, it doesn't pass
reviewed before 202011 stable tag soft feature freeze. So, it should
not be merged into 202011 stable tag.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Nishant C Mistry <nishant.c.mistry@intel.com >
Signed-off-by: Liming Gao <gaoliming@byosoft.com.cn >
Acked-by: Jiewen Yao <Jiewen.yao@intel.com >
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com > 
						
						
					 
					
						2020-11-26 01:22:29 +00:00 
						 
				 
			
				
					
						
							
							
								Nishant Mistry 
							
						 
					 
					
						
						
							
						
						6c8dd15c4a 
					 
					
						
						
							
							SecurityPkg: Add RPMC Index to the RpmcLib  
						
						... 
						
						
						
						REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2594 
The re-design requires multiple RPMC counter usages.
The consumer will be capable of selecting amongst multiple counters.
Signed-off-by: Nishant C Mistry <nishant.c.mistry@intel.com >
Reviewed-by: Jian J Wang <jian.j.wang@intel.com > 
						
						
					 
					
						2020-11-19 08:18:03 +00:00 
						 
				 
			
				
					
						
							
							
								Qi Zhang 
							
						 
					 
					
						
						
							
						
						547067dd86 
					 
					
						
						
							
							SecurityPkg/Tcg2: handle PRE HASH and LOG ONLY  
						
						... 
						
						
						
						REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2376 
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Qi Zhang <qi1.zhang@intel.com >
Cc: Rahul Kumar <rahul1.kumar@intel.com >
Signed-off-by: Qi Zhang <qi1.zhang@intel.com >
Message-Id: <20200818062618.3698-8-qi1.zhang@intel.com >
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com >
Reviewed-by: Jian J Wang <jian.j.wang@intel.com > 
						
						
					 
					
						2020-08-26 15:56:11 +00:00 
						 
				 
			
				
					
						
							
							
								Qi Zhang 
							
						 
					 
					
						
						
							
						
						a13947b2fa 
					 
					
						
						
							
							SecurityPkg/TcgEventLogRecordLib: add new lib for firmware measurement  
						
						... 
						
						
						
						REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2376 
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Jian J Wang <jian.j.wang@intel.com >
Signed-off-by: Qi Zhang <qi1.zhang@intel.com >
Message-Id: <20200818062618.3698-2-qi1.zhang@intel.com >
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com >
Reviewed-by: Jian J Wang <jian.j.wang@intel.com > 
						
						
					 
					
						2020-08-26 15:56:11 +00:00 
						 
				 
			
				
					
						
							
							
								Zhang, Qi 
							
						 
					 
					
						
						
							
						
						1b0d659e6d 
					 
					
						
						
							
							SecurityPkg/Tpm2CommandLib: add a new function  
						
						... 
						
						
						
						Tpm2GetCapabilityIsCommandImplemented
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2793 
check if the commad is supported by comparing the command code with
command index.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Chao Zhang <chao.b.zhang@intel.com >
Cc: Rahul Kumar <rahul1.kumar@intel.com >
Signed-off-by: Qi Zhang <qi1.zhang@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2020-07-28 09:56:25 +00:00 
						 
				 
			
				
					
						
							
							
								Jiewen Yao 
							
						 
					 
					
						
						
							
						
						b630feee02 
					 
					
						
						
							
							SecurityPkg/TcgPpi: Add TcgPpi header file.  
						
						... 
						
						
						
						REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2841 
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Qi Zhang <qi1.zhang@intel.com >
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com >
Reviewed-by: Qi Zhang <qi1.zhang@intel.com >
Reviewed-by: Jian J Wang <jian.j.wang@intel.com > 
						
						
					 
					
						2020-07-23 01:31:43 +00:00 
						 
				 
			
				
					
						
							
							
								Maggie Chu 
							
						 
					 
					
						
						
							
						
						1a2ad3ba9e 
					 
					
						
						
							
							SecurityPkg: Change default value source  
						
						... 
						
						
						
						https://bugzilla.tianocore.org/show_bug.cgi?id=2713 
In current code, If TCG2_PHYSICAL_PRESENCE_FLAGS_VARIABLE variable
is not exist, code will get default value from two places.
This fix is to make the default value comes from the PCD
gEfiSecurityPkgTokenSpaceGuid.PcdTcg2PhysicalPresenceFlags
Signed-off-by: Maggie Chu <maggie.chu@intel.com >
Cc: Eric Dong <eric.dong@intel.com >
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Chao Zhang <chao.b.zhang@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
					
						2020-05-21 15:48:57 +00:00 
						 
				 
			
				
					
						
							
							
								Jian J Wang 
							
						 
					 
					
						
						
							
						
						5042ee43d9 
					 
					
						
						
							
							SecurityPkg: add RpmcLib and VariableKeyLib public headers  
						
						... 
						
						
						
						REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2594 
RpmcLib.h and VariableKeyLib.h are header files required to access RPMC
device and Key generator from platform. They will be used to ensure the
integrity and confidentiality of NV variables.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Chao Zhang <chao.b.zhang@intel.com >
Cc: Nishant C Mistry <nishant.c.mistry@intel.com >
Signed-off-by: Jian J Wang <jian.j.wang@intel.com >
Reviewed-by: Michael Kubacki <michael.kubacki@microsoft.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2020-03-27 16:41:05 +00:00 
						 
				 
			
				
					
						
							
							
								Antoine Coeur 
							
						 
					 
					
						
						
							
						
						dd40a1f85c 
					 
					
						
						
							
							SecurityPkg/Tcg: Fix various typos  
						
						... 
						
						
						
						Fix various typos in documentation, comments and debug strings.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Chao Zhang <chao.b.zhang@intel.com >
Signed-off-by: Antoine Coeur <coeur@gmx.fr >
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com >
Message-Id: <20200207010831.9046-66-philmd@redhat.com >
[lersek@redhat.com: replace EFI_D_xxx w/ DEBUG_xxx to shut up PatchCheck] 
						
						
					 
					
						2020-02-10 22:30:07 +00:00 
						 
				 
			
				
					
						
							
							
								Antoine Coeur 
							
						 
					 
					
						
						
							
						
						f9fd0c2108 
					 
					
						
						
							
							SecurityPkg/Library/Tpm: Fix various typos  
						
						... 
						
						
						
						Fix various typos in comments and documentation.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Chao Zhang <chao.b.zhang@intel.com >
Signed-off-by: Antoine Coeur <coeur@gmx.fr >
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com >
Message-Id: <20200207010831.9046-65-philmd@redhat.com > 
						
						
					 
					
						2020-02-10 22:30:07 +00:00 
						 
				 
			
				
					
						
							
							
								Jiewen Yao 
							
						 
					 
					
						
						
							
						
						df73a69faf 
					 
					
						
						
							
							SecurityPkg/Guid: Add TCG 800-155 event GUID definition.  
						
						... 
						
						
						
						REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2439 
The PEIM can produce the 800-155 event and the event
will be recorded to TCG event log by the TCG2 DXE.
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Chao Zhang <chao.b.zhang@intel.com >
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com >
Reviewed-by: Jian J Wang <jian.j.wang@intel.com > 
						
						
					 
					
						2020-01-06 06:23:19 +00:00 
						 
				 
			
				
					
						
							
							
								Sean Brogan 
							
						 
					 
					
						
						
							
						
						d6b926e76e 
					 
					
						
						
							
							SecurityPkg: Fix spelling errors  
						
						... 
						
						
						
						https://bugzilla.tianocore.org/show_bug.cgi?id=2265 
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Chao Zhang <chao.b.zhang@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com >
Reviewed-by: Jian J Wang <jian.j.wang@intel.com > 
					
						2019-10-23 10:23:23 -07:00 
						 
				 
			
				
					
						
							
							
								Imran Desai 
							
						 
					 
					
						
						
							
						
						edf6ef246d 
					 
					
						
						
							
							SecurityPkg: introduce the SM3 digest algorithm  
						
						... 
						
						
						
						BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1781 
GITHUB: https://github.com/idesai/edk2/tree/enable_sm3_measured_boot_v6 
EDK2 Support for SM3 digest algorithm is needed to enable TPM with SM3 PCR
banks. This digest algorithm is part of the China Crypto algorithm suite.
This integration has dependency on the openssl_1_1_1b integration into
edk2.
This patch add SM3 algorithm in the hashinstance library.
Delta in v7:
1. Dropped 95a040cff from v6 to address https://edk2.groups.io/g/devel/topic/ 
32454898?p=,,,20,0,0,0::Created,,sm3,20,2,0,32454898,ct=1&ct=1
2. Relocated SM3 GUID definition from MdePkg to SecurityPkg in 9728b54f4
Cc: Chao Zhang <chao.b.zhang@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Jian Wang <jian.j.wang@intel.com >
Signed-off-by: Imran Desai <imran.desai@intel.com >
Message-Id: <20190718225326.40839-2-imran.desai@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
Reviewed-by: Jian J Wang <jian.j.wang@intel.com > 
						
						
					 
					
						2019-07-19 14:31:52 +02:00 
						 
				 
			
				
					
						
							
							
								Laszlo Ersek 
							
						 
					 
					
						
						
							
						
						a9faafb156 
					 
					
						
						
							
							Revert "SecurityPkg: introduce the SM3 digest algorithm"  
						
						... 
						
						
						
						This reverts commit 06dd5863b649c1e683c4chao.b.zhang@intel.com >
Cc: Imran Desai <imran.desai@intel.com >
Cc: Jian Wang <jian.j.wang@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Leif Lindholm <leif.lindholm@linaro.org >
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1781 
Signed-off-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org >
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com > 
						
						
					 
					
						2019-07-04 17:50:48 +02:00 
						 
				 
			
				
					
						
							
							
								Imran Desai 
							
						 
					 
					
						
						
							
						
						06dd5863b6 
					 
					
						
						
							
							SecurityPkg: introduce the SM3 digest algorithm  
						
						... 
						
						
						
						BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1781 
EDK2 Support for SM3 digest algorithm is needed to enable TPM with SM3 PCR
banks. This digest algorithm is part of the China Crypto algorithm suite.
This integration has dependency on the openssl_1_1_1b integration into
edk2.
This patch add SM3 algorithm in the hashinstance library.
Cc: Chao Zhang <chao.b.zhang@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Jian Wang <jian.j.wang@intel.com >
Signed-off-by: Imran Desai <imran.desai@intel.com >
Reviewed-by: Jian J Wang <jian.j.wang@intel.com >
Reviewed-by: jiewen.yao@intel.com  
						
						
					 
					
						2019-07-03 16:31:54 +08:00 
						 
				 
			
				
					
						
							
							
								Jian J Wang 
							
						 
					 
					
						
						
							
						
						beda3f76af 
					 
					
						
						
							
							SecurityPkg: add definitions for OBB verification  
						
						... 
						
						
						
						https://bugzilla.tianocore.org/show_bug.cgi?id=1617 
gEdkiiPeiFirmwareVolumeInfoStoredHashFvPpiGuid should be installed by
platform to pass FV hash information to the common FV verify/report
driver, in which the hash value will be calculated again based on the
information fed in and then verified.
The information passed in this PPI include:
  - FVs location in flash and length
  - Hash values for different boot mode
The hash value must be calculated in following way (if 3 FVs to calc):
  FV1 -> Hash1
  FV2 -> Hash2
  FV3 -> Hash3
  Hash1 + Hash2 + Hash3 -> HashAll
Only HashAll is stored in this PPI. The purposes for this algorithm
are two:
  1. To report each FV's hash to TCG driver and verify HashAll at the
     same time without the burden to calculate the hash twice;
  2. To save hash value storage due to potential hardware limitation
Different boot mode may have its own hash value so that each mode can
decide which FV will be verified. For example, for the sake of performance,
S3 may choose to skip some FVs verification and normal boot will verify
all FVs it concerns.
So in this PPI, each FV information has flag to indicate which boot mode
it will be taken into hash calculation.
And if multiple hash values passed in this PPI, each has a flag to indicate
which boot mode it's used for. Note one hash value supports more than one
boot modes if they're just the same.
PcdStatusCodeFvVerificationPass and PcdStatusCodeFvVerificationFail are
introduced to report status back to platform, and platform can choose how
to act upon verification success and failure.
Cc: Chao Zhang <chao.b.zhang@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: "Hernandez Beltran, Jorge" <jorge.hernandez.beltran@intel.com >
Cc: Harry Han <harry.han@intel.com >
Signed-off-by: Jian J Wang <jian.j.wang@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com > 
					
						2019-06-26 21:18:43 +08:00 
						 
				 
			
				
					
						
							
							
								Eric Dong 
							
						 
					 
					
						
						
							
						
						e0972cfc7d 
					 
					
						
						
							
							SecurityPkg/SecurityPkg.dec: Change BlockSID default policy  
						
						... 
						
						
						
						https://bugzilla.tianocore.org/show_bug.cgi?id=1782 
Change BlockSID default policy, default enable BlockSid.
Signed-off-by: Eric Dong <eric.dong@intel.com >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com > 
					
						2019-05-09 14:32:46 +08:00 
						 
				 
			
				
					
						
							
							
								Michael D Kinney 
							
						 
					 
					
						
						
							
						
						289b714b77 
					 
					
						
						
							
							SecurityPkg: Replace BSD License with BSD+Patent License  
						
						... 
						
						
						
						https://bugzilla.tianocore.org/show_bug.cgi?id=1373 
Replace BSD 2-Clause License with BSD+Patent License.  This change is
based on the following emails:
  https://lists.01.org/pipermail/edk2-devel/2019-February/036260.html 
  https://lists.01.org/pipermail/edk2-devel/2018-October/030385.html 
RFCs with detailed process for the license change:
  V3: https://lists.01.org/pipermail/edk2-devel/2019-March/038116.html 
  V2: https://lists.01.org/pipermail/edk2-devel/2019-March/037669.html 
  V1: https://lists.01.org/pipermail/edk2-devel/2019-March/037500.html 
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com >
Reviewed-by: Jian J Wang <jian.j.wang@intel.com > 
					
						2019-04-09 10:58:23 -07:00 
						 
				 
			
				
					
						
							
							
								Dandan Bi 
							
						 
					 
					
						
						
							
						
						c8eada5ca0 
					 
					
						
						
							
							SecurityPkg: Remove duplicated BSD license  
						
						... 
						
						
						
						REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1612 
Cc: Chao Zhang <chao.b.zhang@intel.com >
Cc: Jian Wang <jian.j.wang@intel.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com >
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com > 
						
						
					 
					
						2019-03-12 23:08:17 -07:00 
						 
				 
			
				
					
						
							
							
								Chen A Chen 
							
						 
					 
					
						
						
							
						
						514c55c185 
					 
					
						
						
							
							SecurityPkg: Remove code under UserIdentification folder.  
						
						... 
						
						
						
						BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1427 
1. UserIdentifyManagerDxe is used to provide UserManagerProtocol.
2. UserProfileManagerDxe provides UI setting
3. PwdCredentialProviderDxe & UsbCredentialProviderDxe are implementation
   examples.
Remove above features because of no platform use it.
Cc: Zhang Chao B <chao.b.zhang@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Chen A Chen <chen.a.chen@intel.com >
Reviewed-by: Zhang Chao B <chao.b.zhang@intel.com > 
						
						
					 
					
						2019-01-14 08:55:35 +08:00 
						 
				 
			
				
					
						
							
							
								Eric Dong 
							
						 
					 
					
						
						
							
						
						d2aefa0adf 
					 
					
						
						
							
							SecurityPkg/Include/Library/TcgStorageOpalLib.h: Update Pyrite spec revision.  
						
						... 
						
						
						
						Pyrite 2.0 spec has been published, update the spec link info for this file.
Cc: Hao Wu <hao.a.wu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Eric Dong <eric.dong@intel.com >
Reviewed-by: Hao Wu <hao.a.wu@intel.com > 
						
						
					 
					
						2018-10-26 09:44:47 +08:00 
						 
				 
			
				
					
						
							
							
								Eric Dong 
							
						 
					 
					
						
						
							
						
						0ca81c0d37 
					 
					
						
						
							
							SecurityPkg/TcgStorageCoreLib.h: Use ascii instead of unicode.  
						
						... 
						
						
						
						_FILE_ parameter is an ASCII string. Current implementation used
as unicode string instead of ascii string. This patch fixed this
issue.
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1081 
Cc: Hao Wu <hao.a.wu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed_off_by: Eric Dong <eric.dong@intel.com >
Reviewed-by: Hao Wu <hao.a.wu@intel.com > 
						
						
					 
					
						2018-08-16 08:41:59 +08:00 
						 
				 
			
				
					
						
							
							
								Zhang, Chao B 
							
						 
					 
					
						
						
							
						
						8d7aef3d1e 
					 
					
						
						
							
							SecurityPkg: HashLib: Add SHA384, SHA512 HashLib  
						
						... 
						
						
						
						Add SHA384, 512 Hash lib support. Now only CryptoPkg support PEI/DXE
version.
Cc: Long Qin <qin.long@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhang Chao B <chao.b.zhang@intel.com >
Reviewed-by: Long Qin <qin.long@intel.com > 
						
						
					 
					
						2018-07-27 17:58:38 +08:00 
						 
				 
			
				
					
						
							
							
								Liming Gao 
							
						 
					 
					
						
						
							
						
						b3548d32dd 
					 
					
						
						
							
							SecurityPkg: Clean up source files  
						
						... 
						
						
						
						1. Do not use tab characters
2. No trailing white space in one line
3. All files must end with CRLF
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com > 
						
						
					 
					
						2018-06-28 11:19:50 +08:00 
						 
				 
			
				
					
						
							
							
								Zhang, Chao B 
							
						 
					 
					
						
						
							
						
						f15cb995bb 
					 
					
						
						
							
							SecurityPkg: Cache TPM interface type info  
						
						... 
						
						
						
						Cache TPM interface type info to avoid excessive interface ID register read
Cc: Long Qin <qin.long@intel.com >
Cc: Yao Jiewen <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Chao Zhang <chao.b.zhang@intel.com >
Reviewed-by: Long Qin <qin.long@intel.com > 
						
						
					 
					
						2018-06-25 10:55:08 +08:00 
						 
				 
			
				
					
						
							
							
								Eric Dong 
							
						 
					 
					
						
						
							
						
						4b8552d794 
					 
					
						
						
							
							SecurityPkg/TcgStorage*Lib.h: Fix ECC reported issues.  
						
						... 
						
						
						
						Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Eric Dong <eric.dong@intel.com >
Reviewed-by: Dandan Bi <dandan.bi@intel.com > 
						
						
					 
					
						2018-05-24 10:48:32 +08:00 
						 
				 
			
				
					
						
							
							
								Eric Dong 
							
						 
					 
					
						
						
							
						
						4b8067392d 
					 
					
						
						
							
							SecurityPkg/TcgSTorage*Lib.h: Add referenced spec information.  
						
						... 
						
						
						
						Add link and version info for the referenced spec.
Cc: Jiewen yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Eric Dong <eric.dong@intel.com >
Reviewed-by: Hao Wu <hao.a.wu@intel.com > 
						
						
					 
					
						2018-05-17 14:14:50 +08:00 
						 
				 
			
				
					
						
							
							
								Eric Dong 
							
						 
					 
					
						
						
							
						
						a3068f06e6 
					 
					
						
						
							
							SecurityPkg/TcgStorageOpalLib: Add supports for pyrite 2.0 spec.  
						
						... 
						
						
						
						Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Eric Dong <eric.dong@intel.com >
Reviewed-by: Hao Wu <hao.a.wu@intel.com > 
						
						
					 
					
						2018-05-07 15:03:24 +08:00 
						 
				 
			
				
					
						
							
							
								Jiewen Yao 
							
						 
					 
					
						
						
							
						
						f5a343f5ef 
					 
					
						
						
							
							SecurityPkg/include: remove TrEE.  
						
						... 
						
						
						
						TrEE is deprecated. We need use Tcg2.
Cc: Chao B Zhang <chao.b.zhang@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com >
Reviewed-by: Chao B Zhang <chao.b.zhang@intel.com > 
						
						
					 
					
						2018-03-16 14:19:53 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						a998027ba8 
					 
					
						
						
							
							SecurityPkg OpalPasswordExtraInfoVariable.h: Remove it  
						
						... 
						
						
						
						Remove OpalPasswordExtraInfoVariable.h as it is not been used
anymore.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Eric Dong <eric.dong@intel.com >
Cc: Chao Zhang <chao.b.zhang@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2018-03-08 21:33:51 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						1101ffbf84 
					 
					
						
						
							
							SecurityPkg OpalPasswordSupportLib: Remove it  
						
						... 
						
						
						
						Remove OpalPasswordSupportLib as it is not been used
anymore.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Eric Dong <eric.dong@intel.com >
Cc: Chao Zhang <chao.b.zhang@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2018-03-08 21:33:51 +08:00 
						 
				 
			
				
					
						
							
							
								Liming Gao 
							
						 
					 
					
						
						
							
						
						dcd70885ca 
					 
					
						
						
							
							SecurityPkg: Convert source file to DOS format  
						
						... 
						
						
						
						Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com >
Cc: Qin Long <qin.long@intel.com >
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com > 
						
						
					 
					
						2017-12-28 12:48:02 +08:00 
						 
				 
			
				
					
						
							
							
								Zhang, Chao B 
							
						 
					 
					
						
						
							
						
						d7c054f985 
					 
					
						
						
							
							SecurityPkg\Tcg2Pei: FV measure performance enhancement  
						
						... 
						
						
						
						1. Leverage Pre-Hashed FV PPI to reduce duplicated hash
2. Only measure BFV at the beginning. Other FVs are measured in FVinfo callback with nested
   FV check. https://bugzilla.tianocore.org/show_bug.cgi?id=662 
Cc: Long Qin <qin.long@intel.com >
Cc: Yao Jiewen <jiewen.yao@intel.com >
Cc: Sean Brogan <sean.brogan@microsoft.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chao Zhang <chao.b.zhang@intel.com >
Reviewed-by: Long Qin <qin.long@intel.com >
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com > 
						
						
					 
					
						2017-10-15 08:16:36 +08:00 
						 
				 
			
				
					
						
							
							
								Jiewen Yao 
							
						 
					 
					
						
						
							
						
						087132a84a 
					 
					
						
						
							
							SecurityPkg/TpmCommandLib: Add Tpm2ReadPublic.  
						
						... 
						
						
						
						Cc: Chao Zhang <chao.b.zhang@intel.com >
Cc: Long Qin <qin.long@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yao Jiewen <jiewen.yao@intel.com >
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com > 
						
						
					 
					
						2017-02-21 16:47:18 +08:00 
						 
				 
			
				
					
						
							
							
								Zhang, Chao B 
							
						 
					 
					
						
						
							
						
						18458db1d4 
					 
					
						
						
							
							SecurityPkg: Tcg2Dxe: Log Startup Locality Event  
						
						... 
						
						
						
						Log Startup Locality Event according to TCG PC Client PFP 00.21.
Event should be placed before any extend to PCR[0]
http://www.trustedcomputinggroup.org/wp-content/uploads/PC-ClientSpecific_Platform_Profile_for_TPM_2p0_Systems_v21.pdf 
Cc: Star Zeng <star.zeng@intel.com >
Cc: Yao Jiewen <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chao Zhang <chao.b.zhang@intel.com >
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com > 
						
						
					 
					
						2017-01-24 10:22:25 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						e92ddda2b5 
					 
					
						
						
							
							SecurityPkg Tcg2PPLib: Support BlockSID related actions  
						
						... 
						
						
						
						Then Tcg2PhysicalPresenceLib can support TCG2 PP TPM2,
storage management and vendor specific requests according
to Physical Presence Interface Specification.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Chao Zhang <chao.b.zhang@intel.com >
Cc: Eric Dong <eric.dong@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
Reviewed-by: Eric Dong <eric.dong@intel.com > 
						
						
					 
					
						2016-11-28 14:50:42 +08:00 
						 
				 
			
				
					
						
							
							
								Eric Dong 
							
						 
					 
					
						
						
							
						
						252b891b2b 
					 
					
						
						
							
							Revert old "Enable BlockSid related PP actions" patch series.  
						
						... 
						
						
						
						New solution for this issue will be provided.
This reverts commits from d1947ce509bda034c34djiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com > 
						
						
					 
					
						2016-11-23 16:30:03 +08:00 
						 
				 
			
				
					
						
							
							
								Eric Dong 
							
						 
					 
					
						
						
							
						
						132b73dd5c 
					 
					
						
						
							
							SecurityPkg: Add header file for TcgPhysicalPresenceStorageLib.  
						
						... 
						
						
						
						Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com > 
						
						
					 
					
						2016-11-21 15:37:53 +08:00 
						 
				 
			
				
					
						
							
							
								Eric Dong 
							
						 
					 
					
						
						
							
						
						d1947ce509 
					 
					
						
						
							
							SecurityPkg: Add definition for Physical Presence storage flag.  
						
						... 
						
						
						
						Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com > 
						
						
					 
					
						2016-11-21 15:37:53 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						ae1a4284a0 
					 
					
						
						
							
							SecurityPkg TPM2: Update desc for param Buffer of GetDigestListSize()  
						
						... 
						
						
						
						To make the description more clear, update the description
for parameter Buffer of GetDigestListSize() to
"Buffer to hold copied TPML_DIGEST_VALUES compact binary.".
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Chao Zhang <chao.b.zhang@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by : Chao Zhang <chao.b.zhang@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2016-11-21 10:38:31 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						b8ae1f4de7 
					 
					
						
						
							
							SecurityPkg TPM2: Add GetHashMaskFromAlgo() into Tpm2CommandLib  
						
						... 
						
						
						
						Add GetHashMaskFromAlgo() into Tpm2CommandLib for coming consumer.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Chao Zhang <chao.b.zhang@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by : Chao Zhang <chao.b.zhang@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com > 
						
						
					 
					
						2016-11-21 10:38:31 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						697c30b157 
					 
					
						
						
							
							SecurityPkg TPM2: Make IsHashAlgSupportedInHashAlgorithmMask external  
						
						... 
						
						
						
						Current IsHashAlgSupportedInHashAlgorithmMask is only an internal
function, this patch makes it external for coming consumer.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Chao Zhang <chao.b.zhang@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
Reviewed-by : Chao Zhang <chao.b.zhang@intel.com > 
						
						
					 
					
						2016-11-21 10:38:30 +08:00