diff --git a/src/corelib/tools/qcryptographichash.cpp b/src/corelib/tools/qcryptographichash.cpp index 0a9b6d5d622..32580113237 100644 --- a/src/corelib/tools/qcryptographichash.cpp +++ b/src/corelib/tools/qcryptographichash.cpp @@ -1151,11 +1151,12 @@ void QMessageAuthenticationCodePrivate::finalizeUnchecked() for (int i = 0; i < blockSize; ++i) oKeyPad[i] = keyData[i] ^ 0x5c; - QCryptographicHash hash(method); + QCryptographicHashPrivate hash(method); hash.addData(oKeyPad); hash.addData(hashedMessage); + hash.finalizeUnchecked(); - result = hash.result(); + result = hash.resultView().toByteArray(); } /*!