mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-20 18:56:07 -05:00
Add Tools::readFromDevice() and make FileKey use it.
This commit is contained in:
parent
6eebd95de1
commit
cc6f524168
4 changed files with 38 additions and 7 deletions
|
|
@ -66,6 +66,10 @@ void CryptoHash::addData(const QByteArray& data)
|
|||
{
|
||||
Q_D(CryptoHash);
|
||||
|
||||
if (data.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
gcry_md_write(d->ctx, data.constData(), data.size());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue