mirror of https://github.com/acidanthera/audk.git
SecurityPkg Tcg2Pei: Add comments into LogHashEvent()
Add comments into LogHashEvent() to describe the usage of GetDigestListSize (DigestList). 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>
This commit is contained in:
parent
a9f1b2e2d7
commit
3cabe66b20
|
@ -317,6 +317,10 @@ LogHashEvent (
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case EFI_TCG2_EVENT_LOG_FORMAT_TCG_2:
|
case EFI_TCG2_EVENT_LOG_FORMAT_TCG_2:
|
||||||
|
//
|
||||||
|
// Use GetDigestListSize (DigestList) in the GUID HOB DataLength calculation
|
||||||
|
// to reserve enough buffer to hold TPML_DIGEST_VALUES compact binary.
|
||||||
|
//
|
||||||
HobData = BuildGuidHob (
|
HobData = BuildGuidHob (
|
||||||
&gTcgEvent2EntryHobGuid,
|
&gTcgEvent2EntryHobGuid,
|
||||||
sizeof(TcgPcrEvent2->PCRIndex) + sizeof(TcgPcrEvent2->EventType) + GetDigestListSize (DigestList) + sizeof(TcgPcrEvent2->EventSize) + NewEventHdr->EventSize
|
sizeof(TcgPcrEvent2->PCRIndex) + sizeof(TcgPcrEvent2->EventType) + GetDigestListSize (DigestList) + sizeof(TcgPcrEvent2->EventSize) + NewEventHdr->EventSize
|
||||||
|
|
Loading…
Reference in New Issue