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
-
For Gerrit Dashboard: QTBUG-59770 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
189932,8 | QCryptographicHash: make SHA3 calculate SHA3, not Keccak | 5.8 | qt/qtbase | Status: MERGED | +2 | 0 |
190253,2 | QCryptographicHash: make SHA3 calculate SHA3, not Keccak | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |
203054,3 | QCryptographicHash: re-add support for Keccak hashing | dev | qt/qtbase | Status: MERGED | +2 | 0 |
204144,1 | QCryptographicHash: re-add support for Keccak hashing | 5.9 | qt/qtbase | Status: ABANDONED | -1 | 0 |