Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.8.0
-
None
-
88a8feeacb9bdaff9ee06164424e407eb904cd10
Description
The SHA3 family of message digest is a modified version of Keccak. Qt seems to be calculating Keccak, not SHA3:
qDebug() << QCryptographicHash::hash("abc", QCryptographicHash::Sha3_224).toHex();
outputs
"c30411768506ebe1c2871b1ee2e87d38df342317300a9b97a95ec6a8"
(wrong: correct is e642824c3f8cf24ad09234ee7d3c766fc9a3a5168d0c94ad73b46fdf).
Other test vectors: http://csrc.nist.gov/groups/ST/toolkit/examples.html#aHashing
Attachments
Issue Links
- relates to
-
QTBUG-62385 QCryptographicHash::Sha3_512 generate different hashes on Windows and Linux
-
- Closed
-