diff options
-rw-r--r-- | SecurityPkg/Library/SecTpmMeasurementLib/IntelTdx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/SecurityPkg/Library/SecTpmMeasurementLib/IntelTdx.c b/SecurityPkg/Library/SecTpmMeasurementLib/IntelTdx.c index 95d69ed..08e1915 100644 --- a/SecurityPkg/Library/SecTpmMeasurementLib/IntelTdx.c +++ b/SecurityPkg/Library/SecTpmMeasurementLib/IntelTdx.c @@ -58,7 +58,8 @@ TdxHashLogExtendEvent ( }
MrIndex = TdxMeasurementMapPcrToMrIndex (PcrIndex);
- if (MrIndex == CC_MR_INDEX_INVALID) {
+ // MRTD is NOT extendable in TDVF.
+ if ((MrIndex == CC_MR_INDEX_INVALID) || (MrIndex == CC_MR_INDEX_0_MRTD)) {
return EFI_INVALID_PARAMETER;
}
|