Clean up: Function abstraction in password file
Abstracted verifyPassword function in password source file
to make it more readable by creating a new function named
verifyIntegrityCheck.
Tested:
No oob-bios functionality impact.
Change-Id: Id500b824f8d99b28c580ceb244f4a0114060e57e
Signed-off-by: Smriti-Ayushi <smriti.ayushi@linux.intel.com>
diff --git a/include/password.hpp b/include/password.hpp
index d79616b..ede47b7 100644
--- a/include/password.hpp
+++ b/include/password.hpp
@@ -84,6 +84,9 @@
bool isMatch(const std::array<uint8_t, maxHashSize>& expected,
const std::array<uint8_t, maxSeedSize>& seed,
const std::string& rawData, const std::string& algo);
+ bool verifyIntegrityCheck(std::string& newPassword,
+ std::array<uint8_t, maxSeedSize>& seed,
+ unsigned int mdLen, const EVP_MD* digestFunc);
sdbusplus::asio::object_server& objServer;
std::shared_ptr<sdbusplus::asio::connection>& systemBus;
std::filesystem::path seedFile;