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
This commit is contained in:
parent
8409e57be1
commit
5f8095706e
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue