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 
							
						 
					 
					
						
						
							
						
						e905fbb05a 
					 
					
						
						
							
							SecurityPkg: Change use of EFI_D_* to DEBUG_*  
						
						... 
						
						
						
						REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3739 
Update all use of EFI_D_* defines in DEBUG() macros to DEBUG_* defines.
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 
						 
				 
			
				
					
						
							
							
								Qi Zhang 
							
						 
					 
					
						
						
							
						
						3887820e5f 
					 
					
						
						
							
							SecurityPkg/Tcg2Config: remove TPM2_ChangEPS if it is not supported.  
						
						... 
						
						
						
						REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2793 
In current implementation TPM2_ChangeEPS command is always available
in the TPM2 operation pull down list in TCG2 Configuration, which
is confusing when the command is not supported by specific TPM chip.
As a user experience improvement, TPM2_ChangeEPS command should be
removed from the list when it is not supported.
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 
						 
				 
			
				
					
						
							
							
								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 
						 
				 
			
				
					
						
							
							
								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 
						 
				 
			
				
					
						
							
							
								Thomas Palmer 
							
						 
					 
					
						
						
							
						
						efa5343a23 
					 
					
						
						
							
							SecurityPkg/Tcg2Config: Update RouteConfig function  
						
						... 
						
						
						
						According to UEFI spec, the RouteConfig protocol function should populate
the Progress pointer with an address inside Configuration.  This patch
ensures that these functions are compliant when EFI_NOT_FOUND is returned.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Thomas Palmer <thomas.palmer@hpe.com >
Reviewed-by: Dandan Bi <dandan.bi@intel.com >
Reviewed-by: Eric Dong <eric.dong@intel.com > 
						
						
					 
					
						2018-05-03 10:49:49 +08:00 
						 
				 
			
				
					
						
							
							
								Zhang, Chao B 
							
						 
					 
					
						
						
							
						
						363dc42226 
					 
					
						
						
							
							SecurityPkg: Tcg2ConfigDxe/Tcg2Smm: Fix TPM2 HID issue  
						
						... 
						
						
						
						Fix wrong TPM2 HID generation logic.
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: Star Zeng <star.zeng@intel.com >
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com > 
						
						
					 
					
						2017-01-10 15:16:46 +08:00 
						 
				 
			
				
					
						
							
							
								Zhang, Chao B 
							
						 
					 
					
						
						
							
						
						fca4228907 
					 
					
						
						
							
							SecurityPkg: Tcg2Config: TPM2 ACPI Table Rev Option  
						
						... 
						
						
						
						Add TPM2 ACPI Table Rev Option in Tcg2Config UI. Rev 4 is defined in
TCG ACPI Specification 00.37
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: Star Zeng <star.zeng@intel.com >
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com > 
						
						
					 
					
						2017-01-10 14:18:42 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						133834858a 
					 
					
						
						
							
							SecurityPkg Tcg2ConfigDxe: Refine debug message and comments  
						
						... 
						
						
						
						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 > 
						
						
					 
					
						2017-01-09 16:08:51 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						3613af9139 
					 
					
						
						
							
							SecurityPkg Tcg2ConfigDxe: Typecast to (CHAR8*) as para of AsciiStrSize  
						
						... 
						
						
						
						Cc: Dandan Bi <dandan.bi@intel.com >
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: Dandan Bi <dandan.bi@intel.com > 
						
						
					 
					
						2017-01-09 11:10:03 +08:00 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						dd6d0a520e 
					 
					
						
						
							
							SecurityPkg Tcg2ConfigDxe: Add setup option to configure PPI version  
						
						... 
						
						
						
						REF: https://bugzilla.tianocore.org/show_bug.cgi?id=288 
gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer was
introduced to configure physical presence interface version. but test
or user needs to build different images to support different versions
separately as the PCD does not support Dynamic types.
This patch is to extend the PCD to support Dynamic types and add a
setup option in Tcg2ConfigDxe driver to configure the physical
presence interface version, the PCD needs to be DynamicHii type and
maps to the setup option.
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 > 
						
						
					 
					
						2017-01-06 18:06:37 +08:00 
						 
				 
			
				
					
						
							
							
								Zhang, Chao B 
							
						 
					 
					
						
						
							
						
						60c9860c43 
					 
					
						
						
							
							SecurityPkg: Tcg2ConfigDxe: Remove duplicate local variable  
						
						... 
						
						
						
						Remove duplicate local status variable declaration.
Cc: Bi Dandan <dandan.bi@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chao Zhang <chao.b.zhang@intel.com >
Reviewed-by: Bi Dandan <dandan.bi@intel.com > 
						
						
					 
					
						2017-01-06 09:51:27 +08:00 
						 
				 
			
				
					
						
							
							
								Zhang, Chao B 
							
						 
					 
					
						
						
							
						
						3304abc101 
					 
					
						
						
							
							SecuritPkg: Tcg2: Fix coding style issue  
						
						... 
						
						
						
						Fix coding style issue
Cc: Bi Dandan <dandan.bi@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chao Zhang <chao.b.zhang@intel.com >
Reviewed-by: Bi Dandan <dandan.bi@intel.com > 
						
						
					 
					
						2017-01-05 10:47:03 +08:00 
						 
				 
			
				
					
						
							
							
								Zhang, Chao B 
							
						 
					 
					
						
						
							
						
						a6e0e994d0 
					 
					
						
						
							
							SecurityPkg: Tcg2ConfigDxe: Display TPM2 HID in Tcg2Config  
						
						... 
						
						
						
						Display TPM2 HID from TPM2 ACPI device object in Tcg2Config UI
Cc: Long Qin <qin.long@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: Long Qin <qin.long@intel.com >
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com > 
						
						
					 
					
						2017-01-05 09:30:15 +08:00 
						 
				 
			
				
					
						
							
							
								Hao Wu 
							
						 
					 
					
						
						
							
						
						72388f9c10 
					 
					
						
						
							
							SecurityPkg Tcg2: Remove use of module internal API InternalIsZeroBuffer()  
						
						... 
						
						
						
						This commit removes the internal implementation of the function
InternalIsZeroBuffer(). Instead, it will use the API IsZeroBuffer() from
BaseMemoryLib in MdePkg.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Chao Zhang <chao.b.zhang@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com >
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com > 
						
						
					 
					
						2016-08-22 18:54:32 +08:00 
						 
				 
			
				
					
						
							
							
								Hao Wu 
							
						 
					 
					
						
						
							
						
						bce0133b7f 
					 
					
						
						
							
							SecurityPkg Tcg2: Rename internal API IsZeroBuffer to InternalIsZeroBuffer  
						
						... 
						
						
						
						Before adding API IsZeroBuffer() in BaseMemoryLib at MdePkg, rename the
internal implementations of IsZeroBuffer() within SecurityPkg/Tcg modules
to avoid breaking bisection.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Chao Zhang <chao.b.zhang@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com >
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com > 
						
						
					 
					
						2016-08-22 18:54:29 +08:00 
						 
				 
			
				
					
						
							
							
								Yao, Jiewen 
							
						 
					 
					
						
						
							
						
						518b6f6565 
					 
					
						
						
							
							SecurityPkg: Add TPM PTP support in TCG2 Config.  
						
						... 
						
						
						
						This patch add PTP CRB support in BIOS Setup.
It can:
1) Display the PTP capability (TIS/FIFO/CRB)
2) Display the PTP current interface (TIS/FIFO/CRB)
3) Let user select CRB/FIFO, if supported.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <jiewen.yao@intel.com >
Reviewed-by: "Zhang, Chao B" <chao.b.zhang@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19743  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2016-01-26 01:30:55 +00:00 
						 
				 
			
				
					
						
							
							
								Yao, Jiewen 
							
						 
					 
					
						
						
							
						
						c41eeb447d 
					 
					
						
						
							
							Add suppressif around TCG hash seleciton checkbox in TCG2  
						
						... 
						
						
						
						Previous TCG2 configuration UI always add all TCG defined hash algorithm to let user select which one need be used.
This brings risk that user might select unsupported hash, and selection is rejected later.
So we enhance to UI to hide unsupported hash algorithm.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <jiewen.yao@intel.com >
Reviewed-by: "Zhang, Chao B" <chao.b.zhang@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18676  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2015-10-27 03:49:31 +00:00 
						 
				 
			
				
					
						
							
							
								Qiu Shumin 
							
						 
					 
					
						
						
							
						
						d2e8af9714 
					 
					
						
						
							
							SecurityPkg: Use safe string function.  
						
						... 
						
						
						
						Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com >
Reviewed-by: Yao Jiewen <Jiewen.Yao@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18344  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2015-08-28 02:51:50 +00:00 
						 
				 
			
				
					
						
							
							
								Yao, Jiewen 
							
						 
					 
					
						
						
							
						
						1abfa4ce48 
					 
					
						
						
							
							Add TPM2 support defined in trusted computing group.  
						
						... 
						
						
						
						TCG EFI Protocol Specification for TPM Family 2.0 Revision 1.0 Version 9 at http://www.trustedcomputinggroup.org/resources/tcg_efi_protocol_specification 
TCG Physical Presence Interface Specification Version 1.30, Revision 00.52 at http://www.trustedcomputinggroup.org/resources/tcg_physical_presence_interface_specification 
Add Tcg2XXX, similar file/directory as TrEEXXX. Old TrEE driver/library can be deprecated.
1) Add Tcg2Pei/Dxe/Smm driver to log event and provide services.
2) Add Dxe/Pei/SmmTcg2PhysicalPresenceLib to support TCG PP.
3) Update Tpm2 library to use TCG2 protocol instead of TrEE protocol.
Test Win8/Win10 with SecureBoot enabled, PCR7 shows bound.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <Jiewen.Yao@intel.com >
Reviewed-by: "Zhang, Chao B" <chao.b.zhang@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18219  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2015-08-13 08:24:17 +00:00