Provide API to check if integrity algorithm is enabled for the session.
Change-Id: I6d57b5d964c9cbcf361ab97667fb43ae7fe03b6f
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
diff --git a/session.hpp b/session.hpp
index 99bb81d..553f992 100644
--- a/session.hpp
+++ b/session.hpp
@@ -173,6 +173,15 @@
integrityAlgoInterface = std::move(integrityAlgo);
}
+ /** @brief Check if integrity algorithm is enabled for this session.
+ *
+ * @return true if integrity algorithm is enabled else false.
+ */
+ auto isIntegrityAlgoEnabled()
+ {
+ return integrityAlgoInterface ? true : false;
+ }
+
/*
* @brief Get Session's Confidentiality Algorithm
*