aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2022-08-31 16:24:53 +0200
committerLinus Jahn <lnj@kaidan.im>2022-08-31 16:24:53 +0200
commit8538fa898bf66193c2dc0d41eaf4aa40aa0647c8 (patch)
treeaaaa27766eb54a32e2170d5499ab774624c00bde /src
parent395d2af80de7817dd2b092c2c7d9dfa3fa3f2744 (diff)
downloadqxmpp-8538fa898bf66193c2dc0d41eaf4aa40aa0647c8.tar.gz
BobContentId: Fix names of SHA-2 algorithmns
The new version of bits of binary specifies how other algorithmns than SHA-1 are called by referencing the IANA registry. We were missing the dash for SHA-224/256/384/512.
Diffstat (limited to 'src')
-rw-r--r--src/base/QXmppBitsOfBinaryContentId.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/base/QXmppBitsOfBinaryContentId.cpp b/src/base/QXmppBitsOfBinaryContentId.cpp
index 24722e62..35ba5163 100644
--- a/src/base/QXmppBitsOfBinaryContentId.cpp
+++ b/src/base/QXmppBitsOfBinaryContentId.cpp
@@ -38,10 +38,10 @@ static const QMap<QCryptographicHash::Algorithm, QString> HASH_ALGORITHMS = {
#ifndef QT_CRYPTOGRAPHICHASH_ONLY_SHA1
{ QCryptographicHash::Md4, QStringLiteral("md4") },
{ QCryptographicHash::Md5, QStringLiteral("md5") },
- { QCryptographicHash::Sha224, QStringLiteral("sha224") },
- { QCryptographicHash::Sha256, QStringLiteral("sha256") },
- { QCryptographicHash::Sha384, QStringLiteral("sha384") },
- { QCryptographicHash::Sha512, QStringLiteral("sha512") },
+ { QCryptographicHash::Sha224, QStringLiteral("sha-224") },
+ { QCryptographicHash::Sha256, QStringLiteral("sha-256") },
+ { QCryptographicHash::Sha384, QStringLiteral("sha-384") },
+ { QCryptographicHash::Sha512, QStringLiteral("sha-512") },
{ QCryptographicHash::Sha3_224, QStringLiteral("sha3-224") },
{ QCryptographicHash::Sha3_256, QStringLiteral("sha3-256") },
{ QCryptographicHash::Sha3_384, QStringLiteral("sha3-384") },