X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fcrypter.cpp;h=2501305edc2b3ba55b9f08fe0b2a8c9b9d6165cf;hb=9fb89c26f3a3991d197b207f44ef79b1d16c26fc;hp=83041addb46ecd7f721badea24c307a885625737;hpb=0dd710acb6ae14bb88b33a9f86c549bdbb4b6975;p=novacoin.git diff --git a/src/crypter.cpp b/src/crypter.cpp index 83041ad..2501305 100644 --- a/src/crypter.cpp +++ b/src/crypter.cpp @@ -31,7 +31,7 @@ bool CCrypter::SetKeyFromPassphrase(const SecureString& strKeyData, const std::v i = EVP_BytesToKey(EVP_aes_256_cbc(), EVP_sha512(), &chSalt[0], (unsigned char *)&strKeyData[0], strKeyData.size(), nRounds, chKey, chIV); - if (i != WALLET_CRYPTO_KEY_SIZE) + if (i != (int)WALLET_CRYPTO_KEY_SIZE) { memset(&chKey, 0, sizeof chKey); memset(&chIV, 0, sizeof chIV);