]> git.proxmox.com Git - mirror_edk2.git/commit
Security: Add SecTpmMeasurementLibTdx
authorMin M Xu <min.m.xu@intel.com>
Sun, 5 Jun 2022 01:02:46 +0000 (09:02 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 7 Jun 2022 11:05:53 +0000 (11:05 +0000)
commit2818fda9bc6ab923a87961f3a7ba9976452a4899
treecf1d547c7b6e239892ff21f4d1d7b48bef661267
parent4f89e4b3e80329b9a445500009c658d2ebce8475
Security: Add SecTpmMeasurementLibTdx

SecTpmMeasurementLitTdx is an instance of TpmMeasurementLib. It is
designed to used in a Td guest. This lib measures and logs data, and
extendx the measurement result into a specific RTMR.

SecTpmMeasurementLibTdx is a refactored lib of
OvmfPkg/Library/SecMeasurementLibTdx and it just copies
GetMappedRtmrIndex/TdxMeasureAndLogData from that lib. At the end of
this patch-set SecMeasurementLibTdx will be deleted.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
SecurityPkg/Library/SecTpmMeasurementLib/SecTpmMeasurementLibTdx.c [new file with mode: 0644]
SecurityPkg/Library/SecTpmMeasurementLib/SecTpmMeasurementLibTdx.inf [new file with mode: 0644]
SecurityPkg/SecurityPkg.dsc