mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 05:34:31 +02:00
MdeModulePkg: TpmMeasureLib: Re-prioritize TCG/TCG2 protocol
TPM1.2 is obsoleted by TPM2.0. switch TCG/TCG2 protocol check to apply this trend Cc: Long, Qin <qin.long@intel.com> Cc: Yao, Jiewen <jiewen.yao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhang, Chao B <chao.b.zhang@intel.com> Reviewed-by: Yao, Jiewen <jiewen.yao@intel.com>
This commit is contained in:
parent
5da2c9b27a
commit
d9e206d4bf
@ -184,21 +184,22 @@ TpmMeasureAndLogData (
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Try to measure using Tpm1.2 protocol
|
// Try to measure using Tpm20 protocol
|
||||||
//
|
//
|
||||||
Status = Tpm12MeasureAndLogData(
|
Status = Tpm20MeasureAndLogData(
|
||||||
PcrIndex,
|
PcrIndex,
|
||||||
EventType,
|
EventType,
|
||||||
EventLog,
|
EventLog,
|
||||||
LogLen,
|
LogLen,
|
||||||
HashData,
|
HashData,
|
||||||
HashDataLen
|
HashDataLen
|
||||||
);
|
);
|
||||||
|
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
//
|
//
|
||||||
// Try to measure using Tpm20 protocol
|
// Try to measure using Tpm1.2 protocol
|
||||||
//
|
//
|
||||||
Status = Tpm20MeasureAndLogData(
|
Status = Tpm12MeasureAndLogData(
|
||||||
PcrIndex,
|
PcrIndex,
|
||||||
EventType,
|
EventType,
|
||||||
EventLog,
|
EventLog,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user