mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-24 07:06:46 +00:00
Merge pull request #802 from nsacyber/v3_issue-801
[#801] Log hash strings for debug purposes
This commit is contained in:
commit
86646a2766
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user