Fix composite keys in KeePass1Reader.

This commit is contained in:
Felix Geyer 2012-05-10 19:33:49 +02:00
parent 7fd8154ea8
commit c02b5abc6e

View File

@ -842,7 +842,7 @@ QByteArray KeePass1Key::rawKey() const
}
else {
CryptoHash keyHash(CryptoHash::Sha256);
keyHash.addData(m_password);
keyHash.addData(CryptoHash::hash(m_password, CryptoHash::Sha256));
keyHash.addData(m_keyfileData);
return keyHash.result();
}