From dbe6d0e5326f10fc774f944a7f3dcb9657f52dca Mon Sep 17 00:00:00 2001 From: chubtub <43381989+chubtub@users.noreply.github.com> Date: Fri, 5 Jul 2024 10:24:21 -0400 Subject: [PATCH] Log calculatedString and quoteString for firmware validation --- .../hirs/attestationca/persist/validation/PcrValidator.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/validation/PcrValidator.java b/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/validation/PcrValidator.java index 3c835d9a..b53296ba 100644 --- a/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/validation/PcrValidator.java +++ b/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/validation/PcrValidator.java @@ -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);