updated TpmPcrEvent and EvConstants for the next 2 SPDM events

This commit is contained in:
iadgovuser58 2024-06-20 15:35:59 -04:00 committed by chubtub
parent 50ce985b45
commit 45755a345c
2 changed files with 22 additions and 0 deletions

View File

@ -395,6 +395,10 @@ public class TpmPcrEvent {
sb.append(ueEx.toString());
}
break;
case EvConstants.EV_EFI_SPDM_FIRMWARE_CONFIG:
break;
case EvConstants.EV_EFI_SPDM_DEVICE_POLICY:
break;
default:
sb.append("Unknown Event found\n");
}
@ -561,6 +565,12 @@ public class TpmPcrEvent {
case EvConstants.EV_EFI_SPDM_FIRMWARE_BLOB:
description += "Event Content:\n" + new EvEfiSpdmFirmwareBlob(content).toString();
break;
case EvConstants.EV_EFI_SPDM_FIRMWARE_CONFIG:
description += "Event Content:\n" + new EvEfiSpdmFirmwareConfig(content).toString();
break;
case EvConstants.EV_EFI_SPDM_DEVICE_POLICY:
description += "Event Content:\n" + new EvEfiSpdmDevicePolicy(content).toString();
break;
default:
description += " Unknown Event found" + "\n";
}
@ -640,6 +650,10 @@ public class TpmPcrEvent {
return "EV_EFI_VARIABLE_AUTHORITY";
} else if (event == EvConstants.EV_EFI_SPDM_FIRMWARE_BLOB) {
return "EV_EFI_SPDM_FIRMWARE_BLOB";
} else if (event == EvConstants.EV_EFI_SPDM_FIRMWARE_CONFIG) {
return "EV_EFI_SPDM_FIRMWARE_CONFIG";
} else if (event == EvConstants.EV_EFI_SPDM_DEVICE_POLICY) {
return "EV_EFI_SPDM_DEVICE_POLICY";
} else {
return "Unknown Event ID " + event + " encountered";
}

View File

@ -167,4 +167,12 @@ public final class EvConstants {
* EFI SPDM Firmware Blob Event ID.
*/
public static final int EV_EFI_SPDM_FIRMWARE_BLOB = 0x800000E1;
/**
* EFI SPDM Firmware Config Event ID.
*/
public static final int EV_EFI_SPDM_FIRMWARE_CONFIG = 0x800000E2;
/**
* EFI SPDM Device Policy Event ID.
*/
public static final int EV_EFI_SPDM_DEVICE_POLICY = 0x800000E3;
}