summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/sha3
Commit message (Collapse)AuthorAgeFilesLines
* Fix more warnings, found by cross-compiling QtThiago Macieira2013-05-011-4/+4
| | | | | | | | | | | | | | | | | | | | | | | KeccakF-1600-opt32.c:497:5: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] harfbuzz-thai.c:264:49: error: comparison is always false due to limited range of data type [-Werror=type-limits] These warnings are caused by "char" defaulting to unsigned on ARM. In particular, the second warning was introduced by commit 785e95ef0a95ca8fb39ef57678cd4876ee657c43, which is not upstream... qbenchmarkvalgrind.cpp:224:5: error: variable ‘_qzz_res’ set but not used [-Werror=unused-but-set-variable] This one was fixed for x86-64 in 7b54571ec2032628ea71b0af but not for the other platforms. KeccakF-1600-opt32.c:250:5: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] This one is wasn't caught before because it applies only to big-endian code. Change-Id: Ice33b639e55d95140cbf912bb81b6f508ed3744a Reviewed-by: Richard J. Moore <rich@kde.org> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Disable the SHA-3 Hash function: QCryptographicHash doesn't need itThiago Macieira2013-02-241-1/+2
| | | | | | | | | QCryptographicHash will do the full Init/Update/Final calls, so we don't need the Hash function. Disable it from the compilation to avoid a warning about a function defined but not used. Change-Id: Ib48ae4a7be91089fdcffa00851b786816b798cd9 Reviewed-by: Richard J. Moore <rich@kde.org>
* Add support for SHA3 to QCryptographicHash.Richard Moore2013-02-097-90/+94
| | | | | | | | | | | This commit adds SHA3 support to QCryptographicHash. Two implementations are provided, one optimised for 32 bit and one for 64 bits. The code has been written to make it easy to add further implementations, for example ones using NEON instructions on ARM. Change-Id: I3be9c45bbd4fcc2771d697e7f7ae74e48a831e8f Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Add the pristine SHA3 reference sources.Richard Moore2013-02-0615-0/+3159
Add the SHA3 reference implementation (public domain) which will be used in a later commit to add support for SHA3 to QCryptographicHash. Change-Id: Id0e9d47d628cc94f1d3d2a7696836bc43f6ddf61 Reviewed-by: Lars Knoll <lars.knoll@digia.com>