On Sat, Jan 28, 2023 at 09:58:35PM +0800, Min Xu wrote: > From: Min M Xu <min.m...@intel.com> > > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4243 > > MeasureFvImage once was implemented in PeilessStartupLib and it does > measurement and logging for Configuration FV (Cfv) image in one go, > using TpmMeasureAndLogData(). But it doesn't work in SEC. > > This patch splits MeasureFvImage into 2 functions and implement them in > SecTdxHelperLib. > - TdxHelperMeasureCfvImage > - TdxHelperBuildGuidHobForTdxMeasurement > > TdxHelperMeasureCfvImage measures the Cfv image and stores the hash value > in WorkArea. TdxHelperBuildGuidHobForTdxMeasurement builds GuidHob for the > measurement based on the hash value in WorkArea. > > After these 2 functions are introduced, PeilessStartupLib should also be > updated: > - Call these 2 functions instead of the MeasureFvImage > - Delete the duplicated codes in PeilessStartupLib
Acked-by: Gerd Hoffmann <kra...@redhat.com> -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#99477): https://edk2.groups.io/g/devel/message/99477 Mute This Topic: https://groups.io/mt/96587219/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-