Don't give up asking for the password after one decryption error (twofish db)

git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@349 b624d157-de02-0410-bad0-e51aec6abb33
master
sniperbeamer 15 years ago
parent e0d26d94d7
commit 327ca86ee2
  1. 1
      src/Kdb3Database.cpp

@ -609,6 +609,7 @@ bool Kdb3Database::loadReal(QString filename, bool readOnly, bool differentEncod
if ((crypto_size > 2147483446) || (!crypto_size && NumGroups)){
error=tr("Decryption failed.\nThe key is wrong or the file is damaged.");
KeyError=true;
LOAD_RETURN_CLEANUP
}
SHA256::hashBuffer(buffer+DB_HEADER_SIZE,FinalKey,crypto_size);