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

QCryptographicHash gives wrong hash result in QT 5.9.1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • 5.9.2
    • 5.9.1
    • Core: Other
    • None
    • macOS 10.12.6

      QT Creator 4.4.0

    Description

      QCryptographicHash h(QCryptographicHash::Sha3_224);

      is giving completely wrong hash result() output under 5.9.1. Qt 5.8, 5.7, 5.5 & 5.4 all match and are different to 5.9.1.

      To repro, 

         QCryptographicHash h(QCryptographicHash::Sha3_224);

         h.reset();

         h.addData(seedBytes);

         h.addData(serialBytes);

         QByteArray hash = h.result();

      where seedBytes is a QByteArray of length 12 and serialBytes is a QByteArray of length 10. Compare "hash" from 5.9.1 to other QT versions listed above.

      Attachments

        Issue Links

          Activity

            People

              thiago Thiago Macieira
              msmithers Michael Smithers
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: