Clean up in Password code file

Abstracted functions to make code more readable.

Tested:
Verified oob-bios functionality is not altered.

Change-Id: I616a2e90566fc687702f08511955ef9a6fed3c59
Signed-off-by: Smriti-Ayushi <smriti.ayushi@linux.intel.com>
diff --git a/include/password.hpp b/include/password.hpp
index ee7ace3..154de4a 100644
--- a/include/password.hpp
+++ b/include/password.hpp
@@ -79,6 +79,10 @@
   private:
     void verifyPassword(std::string userName, std::string currentPassword,
                         std::string newPassword);
+    bool compareDigest(const EVP_MD* digestFunc, size_t digestLen,
+                       const std::array<uint8_t, maxHashSize>& expected,
+                       const std::array<uint8_t, maxSeedSize>& seed,
+                       const std::string& rawData);
     bool isMatch(const std::array<uint8_t, maxHashSize>& expected,
                  const std::array<uint8_t, maxSeedSize>& seed,
                  const std::string& rawData, const std::string& algo);