QCryptographicHash: allow to hash the content of a QIODevice
authorSune Vuorela <sune@vuorela.dk>
Tue, 20 Dec 2011 18:46:28 +0000 (19:46 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 22 Dec 2011 18:47:47 +0000 (19:47 +0100)
commitef03396072e3959e7d03f55d91c2ffa1faa51d8d
treedf07f15b52e8e44f151c3b856c3b15c0bc8587bb
parenteff09a2794bcb4b5373fcee85faa498b36fac27c
QCryptographicHash: allow to hash the content of a QIODevice

This adds a new function (and tests) to give the possibility of doing a
QCryptographicHash of a QIODevice, like a QFile or whatever people
needs.

It is a quite handy overload in many cases.

Change-Id: I22fd272f05571844641b3daefcc6746be4e5c7c3
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qcryptographichash.cpp
src/corelib/tools/qcryptographichash.h
tests/auto/corelib/tools/qcryptographichash/data/2c1517dad3678f03917f15849b052fd5.md5 [new file with mode: 0644]
tests/auto/corelib/tools/qcryptographichash/data/d41d8cd98f00b204e9800998ecf8427e.md5 [new file with mode: 0644]
tests/auto/corelib/tools/qcryptographichash/qcryptographichash.pro
tests/auto/corelib/tools/qcryptographichash/tst_qcryptographichash.cpp