diff options
Diffstat (limited to 'src/corelib/tools/qmessageauthenticationcode.cpp')
-rw-r--r-- | src/corelib/tools/qmessageauthenticationcode.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/corelib/tools/qmessageauthenticationcode.cpp b/src/corelib/tools/qmessageauthenticationcode.cpp index 2d0145147a..9580b024c2 100644 --- a/src/corelib/tools/qmessageauthenticationcode.cpp +++ b/src/corelib/tools/qmessageauthenticationcode.cpp @@ -122,10 +122,7 @@ void QMessageAuthenticationCodePrivate::initMessageHash() const int blockSize = qt_hash_block_size(method); if (key.size() > blockSize) { - QCryptographicHash hash(method); - hash.addData(key); - key = hash.result(); - hash.reset(); + key = QCryptographicHash::hash(key, method); } if (key.size() < blockSize) { |