Add SHA-224, SHA-256, SHA-384, and SHA-512 support to QCryptographicHash
authorBradley T. Hughes <bradley.hughes@nokia.com>
Fri, 3 Feb 2012 11:28:13 +0000 (12:28 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 27 Feb 2012 21:24:00 +0000 (22:24 +0100)
commitb51296c06433d4923e4dcfd2bc104ae3ab67fb43
treeb97cbca6a01d898bce4c93a0cee31687c04fef7a
parentbc6ad75d18a029da363afc4f6007aefc7962a8ad
Add SHA-224, SHA-256, SHA-384, and SHA-512 support to QCryptographicHash

This adds Sha224, Sha256, Sha384, and Sha512 enum values to
QCryptographicHash::Algorithm. The implementation comes from RFC 6234,
http://tools.ietf.org/html/rfc6234, which is added to
src/3rdparty/rfc6234. Only the headers and SHA-2 code is included in
src/3rdparty/rfc6234 (the SHA1, HMAC, and HKDF code is not included).

Change-Id: I85139fd118291f15efc22899a5ddd1cc83810cfb
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/3rdparty/rfc6234/sha-private.h [new file with mode: 0644]
src/3rdparty/rfc6234/sha.h [new file with mode: 0644]
src/3rdparty/rfc6234/sha224-256.c [new file with mode: 0644]
src/3rdparty/rfc6234/sha384-512.c [new file with mode: 0644]
src/corelib/tools/qcryptographichash.cpp
src/corelib/tools/qcryptographichash.h
tests/auto/corelib/tools/qcryptographichash/tst_qcryptographichash.cpp