Merge pull request #802 from nsacyber/v3_issue-801

[#801] Log hash strings for debug purposes
This commit is contained in:
chubtub 2024-07-17 13:41:15 -04:00 committed by GitHub
commit 86646a2766
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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