diff --git a/src/corelib/tools/qcryptographichash.cpp b/src/corelib/tools/qcryptographichash.cpp index 2b45033a967..c1a4220ec19 100644 --- a/src/corelib/tools/qcryptographichash.cpp +++ b/src/corelib/tools/qcryptographichash.cpp @@ -1159,11 +1159,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(); } /*!