From b7ffc6da51383d53c197b166af5ff9e5cc582177 Mon Sep 17 00:00:00 2001 From: iadgovuser58 <124906646+iadgovuser58@users.noreply.github.com> Date: Fri, 2 Aug 2024 18:42:03 -0400 Subject: [PATCH] parsing SPDM cert chain --- .../utils/tpm/eventlog/spdm/SpdmCertificateChain.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/spdm/SpdmCertificateChain.java b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/spdm/SpdmCertificateChain.java index 7aaf1cb2..91efedf3 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/spdm/SpdmCertificateChain.java +++ b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/spdm/SpdmCertificateChain.java @@ -155,11 +155,11 @@ public class SpdmCertificateChain { if(spdmBaseHashAlgoError != "") { spdmCertChainInfo += "\n *** ERROR with SPDM base hash algorithm size ***"; - spdmCertChainInfo += "\n " + spdmBaseHashAlgoError; - spdmCertChainInfo += "\n Stopping processing of this cert chain"; + spdmCertChainInfo += "\n " + spdmBaseHashAlgoError; + spdmCertChainInfo += "\n Stopping processing of this cert chain"; } else { - spdmCertChainInfo += "\n Root hash = " + rootHash.toString(); + spdmCertChainInfo += "\n Root hash = " + HexUtils.byteArrayToHexString(rootHash); spdmCertChainInfo += "\n Number of certs in chain = " + numberOfCerts + "\n"; int certCnt = 1; @@ -171,8 +171,8 @@ public class SpdmCertificateChain { if (certProcessingError != "") { spdmCertChainInfo += " *** ERROR processing cert ***"; - spdmCertChainInfo += "\n " + certProcessingError; - spdmCertChainInfo += "\n Stopping processing of this cert chain"; + spdmCertChainInfo += "\n " + certProcessingError; + spdmCertChainInfo += "\n Stopping processing of this cert chain"; } } return spdmCertChainInfo;