Provide API to check if the confidentiality algo is enabled for the session.

Change-Id: Ia0585907191a921d7081e855e19d7a5fa9771c6b
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
diff --git a/session.hpp b/session.hpp
index 553f992..ce80a86 100644
--- a/session.hpp
+++ b/session.hpp
@@ -211,6 +211,16 @@
             cryptAlgoInterface = std::move(cryptAlgo);
         }
 
+        /** @brief Check if confidentiality algorithm is enabled for this
+         *         session.
+         *
+         *  @return true if confidentiality algorithm is enabled else false.
+         */
+        auto isCryptAlgoEnabled()
+        {
+            return cryptAlgoInterface ? true : false;
+        }
+
         void updateLastTransactionTime()
         {
             lastTime = std::chrono::steady_clock::now();