From 2b21ecfeb78e4f828337656d40887960be661921 Mon Sep 17 00:00:00 2001 From: iadgovuser58 <124906646+iadgovuser58@users.noreply.github.com> Date: Thu, 13 Jul 2023 17:47:07 -0400 Subject: [PATCH] added one function to TCGEventLog that was from master --- .../main/java/hirs/utils/tpm/eventlog/TCGEventLog.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/TCGEventLog.java b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/TCGEventLog.java index ff5bdd2f..aa65b313 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/TCGEventLog.java +++ b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/TCGEventLog.java @@ -315,6 +315,15 @@ public final class TCGEventLog { return this.toString(); } + /** + * Returns the TCG Algorithm Registry defined string for the Digest Algorithm + * used in the event log. + * @return TCG Defined Algorithm name + */ + public String getEventLogHashAlgorithm() { + return algorithm; + } + /** * Returns the TCG Algorithm Registry defined ID for the Digest Algorithm * used in the event log.