mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-18 20:47:58 +00:00
updated TpmPcrEvent and EvConstants for the next 2 SPDM events
This commit is contained in:
parent
7037429f06
commit
6c6892b36b
@ -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";
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user