qt5base-lts/tests/auto/corelib/tools/qcryptographichash
Marc Mutz 35453446a5 QCryptographicHash: don't present the same data over and over again
Need to decrement 'remaining' (check), but also increment data (meep).

Testing is a bit complicated, as most algorithms are just too slow to
fit into the 5min QTestLib timeout.  Picked the fast ones and Sha512
(which completes here in < 17s, with threads), at least.

Amends e12577b563.

[ChangeLog][QtCore][QCryptographicHash] Fixed a bug where presenting
more than 4GiB in a single addData() call would calculate the wrong
result().

Pick-to: 6.1 6.2
Change-Id: Ic72916ebc33ba087d58225af6d8240e46e41f434
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2021-07-06 01:17:26 +02:00
..
data QCryptographicHash: allow to hash the content of a QIODevice 2011-12-22 19:47:47 +01:00
.gitignore Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
CMakeLists.txt CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
testdata.qrc Android: Fix QCryptographicHash test 2015-01-06 16:44:38 +01:00
tst_qcryptographichash.cpp QCryptographicHash: don't present the same data over and over again 2021-07-06 01:17:26 +02:00