Add reset() and blockSize().

This commit is contained in:
Felix Geyer committed 2010-09-13 23:18:31 +02:00
1 parent 26de957a98
commit bb6ae3a014
3 files changed
+35 -3

No files matched your search

+2 -1
View File
@@ -43,7 +43,8 @@ CryptoHash::CryptoHash(CryptoHash::Algorithm algo)
break;
}
gcry_md_open(&d->ctx, algoGcrypt, 0); // TODO error handling
gcry_error_t error = gcry_md_open(&d->ctx, algoGcrypt, 0);
Q_ASSERT(error == 0); // TODO error handling
d->hashLen = gcry_md_get_algo_dlen(algoGcrypt);
}