diff --git a/inc/integretychecker.h b/inc/integretychecker.h index 0227068..04f9334 100644 --- a/inc/integretychecker.h +++ b/inc/integretychecker.h @@ -28,6 +28,4 @@ public: private: CryptoPP::RSA::PublicKey m_publicKey; CryptoPP::RSA::PrivateKey m_privateKey; - std::string tmp; - CryptoPP::SecByteBlock tmpSec; }; diff --git a/src/integretychecker.cpp b/src/integretychecker.cpp index c2d6c6a..efb19a3 100644 --- a/src/integretychecker.cpp +++ b/src/integretychecker.cpp @@ -104,7 +104,6 @@ std::string IntegretyCheck::generateFileHash(const std::string &filepath) { void IntegretyCheck::signHashList(std::string &hashList) { CryptoPP::AutoSeededRandomPool rng; - tmp = hashList; CryptoPP::RSASSA_PKCS1v15_SHA_Signer signer(m_privateKey); size_t signature_length = signer.MaxSignatureLength(); @@ -114,7 +113,6 @@ void IntegretyCheck::signHashList(std::string &hashList) { hashList.length(), signature); std::cerr << signature_length << std::endl; signature.resize(signature_length); - tmpSec = signature; // transfrom binary signature to base64 encoded string std::string strHexSignature;