i'm getting two weird errors when i try to compile crypto++:
error: declaration does not declare anything
error: 'check' was not declared in this scope
below is the entire method (found in default.cpp) that contains the
errors and i've commented the appropriate lines:
void DefaultDecryptor::CheckKey(const byte *salt, const byte
*keyCheck)
{
SecByteBlock check(STDMAX((unsigned int)2*BLOCKSIZE, (unsigned
int)DefaultHashModule::DIGESTSIZE)); // <- FIRST ERROR
DefaultHashModule hash;
hash.Update(m_passphrase, m_passphrase.size());
hash.Update(salt, SALTLENGTH);
hash.Final(check); // <- SECOND ERROR
SecByteBlock key(KEYLENGTH);
SecByteBlock IV(BLOCKSIZE);
GenerateKeyIV(m_passphrase, m_passphrase.size(), salt, SALTLENGTH,
key, IV);
m_cipher.SetKeyWithIV(key, key.size(), IV);
std::auto_ptr<StreamTransformationFilter> decryptor(new
StreamTransformationFilter(m_cipher));
decryptor->Put(keyCheck, BLOCKSIZE);
decryptor->ForceNextPut();
decryptor->Get(check+BLOCKSIZE, BLOCKSIZE);
SetFilter(decryptor.release());
if (memcmp(check, check+BLOCKSIZE, BLOCKSIZE))
{
m_state = KEY_BAD;
if (m_throwException)
throw KeyBadErr();
}
else
m_state = KEY_GOOD;
}
any idea what's causing this and/or any work-arounds? thanks
--
You received this message because you are subscribed to the "Crypto++ Users"
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at
http://www.cryptopp.com.
To unsubscribe from this group, send email to
cryptopp-users+unsubscribegooglegroups.com or reply to this email with the
words "REMOVE ME" as the subject.