added output to show up front how many UEFI Signature Lists there are, and be more descriptive about how many certs/hashes in each List

This commit is contained in:
iadgovuser58 2024-05-09 16:40:05 -04:00
parent 693968059b
commit 24a7ea19dd
2 changed files with 10 additions and 1 deletions

View File

@ -219,7 +219,7 @@ public class UefiSignatureList {
}
else {
sigInfo.append(" UEFI Signature List Type = " + signatureType.toString() + "\n");
sigInfo.append(" Number of items (certs, hashes, etc) = " + numberOfCerts + "\n");
sigInfo.append(" Number of Certs or Hashes in UEFI Signature List = " + numberOfCerts + "\n");
for (int i = 0; i < sigList.size(); i++) {
UefiSignatureData certData = sigList.get(i);

View File

@ -201,7 +201,15 @@ public class UefiVariable {
efiVariable.append("Data not provided ");
}
}
// Signature List output (if there are any Signature Lists)
if (certSuperList.size() > 0){
efiVariable.append("Number of UEFI Signature Lists = " + certSuperList.size() + "\n");
}
int certSuperListCnt = 1;
for (UefiSignatureList uefiSigList : certSuperList) {
efiVariable.append("UEFI Signature List # " + certSuperListCnt++ + " of " +
certSuperList.size() + ":\n");
efiVariable.append(uefiSigList.toString());
}
if(invalidSignatureListEncountered) {
@ -209,6 +217,7 @@ public class UefiVariable {
efiVariable.append("*** Encountered invalid Signature Type - " +
"Stopped processing of this event data\n");
}
return efiVariable.toString();
}