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

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

No files matched your search

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