mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-20 05:28:22 +00:00
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:
parent
693968059b
commit
24a7ea19dd
@ -219,7 +219,7 @@ public class UefiSignatureList {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
sigInfo.append(" UEFI Signature List Type = " + signatureType.toString() + "\n");
|
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++) {
|
for (int i = 0; i < sigList.size(); i++) {
|
||||||
UefiSignatureData certData = sigList.get(i);
|
UefiSignatureData certData = sigList.get(i);
|
||||||
|
@ -201,7 +201,15 @@ public class UefiVariable {
|
|||||||
efiVariable.append("Data not provided ");
|
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) {
|
for (UefiSignatureList uefiSigList : certSuperList) {
|
||||||
|
efiVariable.append("UEFI Signature List # " + certSuperListCnt++ + " of " +
|
||||||
|
certSuperList.size() + ":\n");
|
||||||
efiVariable.append(uefiSigList.toString());
|
efiVariable.append(uefiSigList.toString());
|
||||||
}
|
}
|
||||||
if(invalidSignatureListEncountered) {
|
if(invalidSignatureListEncountered) {
|
||||||
@ -209,6 +217,7 @@ public class UefiVariable {
|
|||||||
efiVariable.append("*** Encountered invalid Signature Type - " +
|
efiVariable.append("*** Encountered invalid Signature Type - " +
|
||||||
"Stopped processing of this event data\n");
|
"Stopped processing of this event data\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
return efiVariable.toString();
|
return efiVariable.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user