mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-28 00:38:56 +00:00
working spdm
This commit is contained in:
parent
63e77a9b36
commit
39bdd26b58
@ -344,6 +344,7 @@ public class TpmPcrEvent {
|
|||||||
break;
|
break;
|
||||||
case EvConstants.EV_EFI_VARIABLE_BOOT:
|
case EvConstants.EV_EFI_VARIABLE_BOOT:
|
||||||
case EvConstants.EV_EFI_VARIABLE_AUTHORITY:
|
case EvConstants.EV_EFI_VARIABLE_AUTHORITY:
|
||||||
|
case EvConstants.EV_EFI_SPDM_DEVICE_POLICY:
|
||||||
try {
|
try {
|
||||||
sb.append(new UefiVariable(eventContent).toString());
|
sb.append(new UefiVariable(eventContent).toString());
|
||||||
} catch (CertificateException cEx) {
|
} catch (CertificateException cEx) {
|
||||||
@ -397,8 +398,6 @@ public class TpmPcrEvent {
|
|||||||
sb.append(ueEx.toString());
|
sb.append(ueEx.toString());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case EvConstants.EV_EFI_SPDM_DEVICE_POLICY:
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
sb.append("Unknown Event found\n");
|
sb.append("Unknown Event found\n");
|
||||||
}
|
}
|
||||||
@ -569,7 +568,9 @@ public class TpmPcrEvent {
|
|||||||
description += "Event Content:\n" + new EvEfiSpdmDeviceSecurityEvent(content).toString();
|
description += "Event Content:\n" + new EvEfiSpdmDeviceSecurityEvent(content).toString();
|
||||||
break;
|
break;
|
||||||
case EvConstants.EV_EFI_SPDM_DEVICE_POLICY:
|
case EvConstants.EV_EFI_SPDM_DEVICE_POLICY:
|
||||||
description += "Event Content:\n" + new EvEfiSpdmDevicePolicy(content).toString();
|
UefiVariable efiSpdmDevPol = new UefiVariable(content);
|
||||||
|
description += "Event Content:\n" + efiSpdmDevPol.toString();
|
||||||
|
vendorTableFileStatus = efiSpdmDevPol.getVendorTableFileStatus();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
description += " Unknown Event found" + "\n";
|
description += " Unknown Event found" + "\n";
|
||||||
|
@ -128,6 +128,8 @@ public class UefiVariable {
|
|||||||
case "dbx":
|
case "dbx":
|
||||||
processSigList(uefiVariableData);
|
processSigList(uefiVariableData);
|
||||||
break;
|
break;
|
||||||
|
case "devdb":
|
||||||
|
// if it's POLICY, process Sig List; if it's AUTHORITY, process Sig Data
|
||||||
case "Boot00":
|
case "Boot00":
|
||||||
bootv = new UefiBootVariable(uefiVariableData);
|
bootv = new UefiBootVariable(uefiVariableData);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user