Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-59770

SHA3-224 hashing is actually Keccak224

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.9
    • 5.8.0
    • Core: Other
    • 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

          For Gerrit Dashboard: QTBUG-59770
          # Subject Branch Project Status CR V

          Activity

            People

              peppe Giuseppe D'Angelo
              peppe Giuseppe D'Angelo
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes