Log calculatedString and quoteString for firmware validation

This commit is contained in:
chubtub 2024-07-05 10:24:21 -04:00
parent 19d3bdd1ac
commit dbe6d0e532

View File

@ -217,6 +217,9 @@ public class PcrValidator {
// other information.
String calculatedString = Hex.encodeHexString(
pcrInfoShort.getCalculatedDigest());
log.debug("Validating PCR information with the following:" +
System.lineSeparator() + "calculatedString = " + calculatedString +
System.lineSeparator() + "quoteString = " + quoteString);
validated = quoteString.contains(calculatedString);
if (!validated) {
log.warn(calculatedString + " not found in " + quoteString);