updated TpmPcrEvent and EvConstants for the next 2 SPDM events

This commit is contained in:
iadgovuser58 2024-06-20 15:35:59 -04:00
parent 7037429f06
commit 6c6892b36b
2 changed files with 22 additions and 0 deletions

View File

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

View File

@ -167,4 +167,12 @@ public final class EvConstants {
* EFI SPDM Firmware Blob Event ID. * EFI SPDM Firmware Blob Event ID.
*/ */
public static final int EV_EFI_SPDM_FIRMWARE_BLOB = 0x800000E1; 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;
} }