]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SecurityPkg: Tcg2Dxe: Measure BootOrder, Boot#### to PCR[1]
authorZhang, Chao B <chao.b.zhang@intel.com>
Fri, 3 Mar 2017 03:15:01 +0000 (11:15 +0800)
committerZhang, Chao B <chao.b.zhang@intel.com>
Mon, 6 Mar 2017 01:57:24 +0000 (09:57 +0800)
Measure BootOrder, Boot#### to PCR[1] according to TCG PC-Client PFP Spec
00.21 Section 2.4.4.2
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: Star Zeng <star.zeng@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c

index 79d614ce52246a29d1be1e585660dce584089963..1d2ac9afb5054d92d44f2d4c4fc4dd5a345d9e16 100644 (file)
@@ -1982,7 +1982,8 @@ ReadAndMeasureVariable (
 }\r
 \r
 /**\r
-  Read then Measure and log an EFI boot variable, and extend the measurement result into PCR[5].\r
+  Read then Measure and log an EFI boot variable, and extend the measurement result into PCR[1].\r
+according to TCG PC Client PFP spec 0021 Section 2.4.4.2\r
 \r
   @param[in]   VarName          A Null-terminated string that is the name of the vendor's variable.\r
   @param[in]   VendorGuid       A unique identifier for the vendor.\r
@@ -2003,7 +2004,7 @@ ReadAndMeasureBootVariable (
   )\r
 {\r
   return ReadAndMeasureVariable (\r
-           5,\r
+           1,\r
            EV_EFI_VARIABLE_BOOT,\r
            VarName,\r
            VendorGuid,\r