fixed bug #005693 (problem with 64 byte keyfiles)

git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@27 b624d157-de02-0410-bad0-e51aec6abb33
master
tariq 19 years ago
parent 8409e57be1
commit 5f8095706e
  1. 9
      src/PwManager.cpp

@ -352,6 +352,15 @@ if(FileSize == 32){
file.close();
return false;}
}
else if(FileSize == 64){
char hex[64];
if(file.readBlock(hex,64) != 64){
file.close();
return false;}
file.close();
if(!convHexToBinaryKey(hex,(char*)FileKey)) return false;
}
else{
sha256_starts(&sha32);
unsigned char* buffer = new unsigned char[2048];