Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
#ifdef USE_CRYPTOPP
{
const unsigned char *key = (const unsigned char *)secret.c_str();
- const unsigned char *in_buf;
string ciphertext;
CryptoPP::AES::Encryption aesEncryption(key, CryptoPP::AES::DEFAULT_KEYLENGTH);
for (std::list<bufferptr>::const_iterator it = in.buffers().begin();
it != in.buffers().end(); ++it) {
- in_buf = (const unsigned char *)it->c_str();
-
+ const unsigned char *in_buf = (const unsigned char *)it->c_str();
stfEncryptor.Put(in_buf, it->length());
}
try {