Add Tools::readFromDevice() and make FileKey use it.

This commit is contained in:
Felix Geyer 2012-05-10 19:00:36 +02:00
parent 6eebd95de1
commit cc6f524168
4 changed files with 38 additions and 7 deletions

View file

@ -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());
}