remove debugging variables
parent
57c6026f34
commit
275a90f658
|
|
@ -28,6 +28,4 @@ public:
|
||||||
private:
|
private:
|
||||||
CryptoPP::RSA::PublicKey m_publicKey;
|
CryptoPP::RSA::PublicKey m_publicKey;
|
||||||
CryptoPP::RSA::PrivateKey m_privateKey;
|
CryptoPP::RSA::PrivateKey m_privateKey;
|
||||||
std::string tmp;
|
|
||||||
CryptoPP::SecByteBlock tmpSec;
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,6 @@ std::string IntegretyCheck::generateFileHash(const std::string &filepath) {
|
||||||
|
|
||||||
void IntegretyCheck::signHashList(std::string &hashList) {
|
void IntegretyCheck::signHashList(std::string &hashList) {
|
||||||
CryptoPP::AutoSeededRandomPool rng;
|
CryptoPP::AutoSeededRandomPool rng;
|
||||||
tmp = hashList;
|
|
||||||
|
|
||||||
CryptoPP::RSASSA_PKCS1v15_SHA_Signer signer(m_privateKey);
|
CryptoPP::RSASSA_PKCS1v15_SHA_Signer signer(m_privateKey);
|
||||||
size_t signature_length = signer.MaxSignatureLength();
|
size_t signature_length = signer.MaxSignatureLength();
|
||||||
|
|
@ -114,7 +113,6 @@ void IntegretyCheck::signHashList(std::string &hashList) {
|
||||||
hashList.length(), signature);
|
hashList.length(), signature);
|
||||||
std::cerr << signature_length << std::endl;
|
std::cerr << signature_length << std::endl;
|
||||||
signature.resize(signature_length);
|
signature.resize(signature_length);
|
||||||
tmpSec = signature;
|
|
||||||
|
|
||||||
// transfrom binary signature to base64 encoded string
|
// transfrom binary signature to base64 encoded string
|
||||||
std::string strHexSignature;
|
std::string strHexSignature;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue