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

QCryptographicHash gives wrong hash result in QT 5.9.1

XMLWordPrintable

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

      QT Creator 4.4.0

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes